Skip to content

Commit

Permalink
[AutoPR mediaservices/resource-manager] Adding version 2018-07-01 for…
Browse files Browse the repository at this point in the history
… Microsoft.Media (#3401)

* Generated from fa2a9f24f25160f19703cda53546c96088bbe1d8

Adding version 2018-07-01 for Microsoft.Media

* Packaging update of azure-mgmt-media
  • Loading branch information
AutorestCI authored Sep 27, 2018
1 parent e2fd2c5 commit c7940b7
Show file tree
Hide file tree
Showing 104 changed files with 2,975 additions and 487 deletions.
12 changes: 11 additions & 1 deletion azure-mgmt-media/azure/mgmt/media/azure_media_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.account_filters_operations import AccountFiltersOperations
from .operations.operations import Operations
from .operations.mediaservices_operations import MediaservicesOperations
from .operations.locations_operations import LocationsOperations
from .operations.assets_operations import AssetsOperations
from .operations.asset_filters_operations import AssetFiltersOperations
from .operations.content_key_policies_operations import ContentKeyPoliciesOperations
from .operations.transforms_operations import TransformsOperations
from .operations.jobs_operations import JobsOperations
Expand Down Expand Up @@ -67,6 +69,8 @@ class AzureMediaServices(SDKClient):
:ivar config: Configuration for client.
:vartype config: AzureMediaServicesConfiguration
:ivar account_filters: AccountFilters operations
:vartype account_filters: azure.mgmt.media.operations.AccountFiltersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.media.operations.Operations
:ivar mediaservices: Mediaservices operations
Expand All @@ -75,6 +79,8 @@ class AzureMediaServices(SDKClient):
:vartype locations: azure.mgmt.media.operations.LocationsOperations
:ivar assets: Assets operations
:vartype assets: azure.mgmt.media.operations.AssetsOperations
:ivar asset_filters: AssetFilters operations
:vartype asset_filters: azure.mgmt.media.operations.AssetFiltersOperations
:ivar content_key_policies: ContentKeyPolicies operations
:vartype content_key_policies: azure.mgmt.media.operations.ContentKeyPoliciesOperations
:ivar transforms: Transforms operations
Expand Down Expand Up @@ -108,10 +114,12 @@ def __init__(
super(AzureMediaServices, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-06-01-preview'
self.api_version = '2018-07-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.account_filters = AccountFiltersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.mediaservices = MediaservicesOperations(
Expand All @@ -120,6 +128,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.assets = AssetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.asset_filters = AssetFiltersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.content_key_policies = ContentKeyPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.transforms = TransformsOperations(
Expand Down
98 changes: 77 additions & 21 deletions azure-mgmt-media/azure/mgmt/media/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,37 @@
# --------------------------------------------------------------------------

try:
from .presentation_time_range_py3 import PresentationTimeRange
from .filter_track_property_condition_py3 import FilterTrackPropertyCondition
from .first_quality_py3 import FirstQuality
from .filter_track_selection_py3 import FilterTrackSelection
from .account_filter_py3 import AccountFilter
from .odata_error_py3 import ODataError
from .api_error_py3 import ApiError, ApiErrorException
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource
from .provider_py3 import Provider
from .operation_display_py3 import OperationDisplay
from .metric_dimension_py3 import MetricDimension
from .metric_py3 import Metric
from .service_specification_py3 import ServiceSpecification
from .metric_properties_py3 import MetricProperties
from .operation_py3 import Operation
from .location_py3 import Location
from .entity_name_availability_check_output_py3 import EntityNameAvailabilityCheckOutput
from .storage_account_py3 import StorageAccount
from .sync_storage_keys_input_py3 import SyncStorageKeysInput
from .media_service_py3 import MediaService
from .subscription_media_service_py3 import SubscriptionMediaService
from .odata_error_py3 import ODataError
from .api_error_py3 import ApiError, ApiErrorException
from .check_name_availability_input_py3 import CheckNameAvailabilityInput
from .proxy_resource_py3 import ProxyResource
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
from .asset_container_sas_py3 import AssetContainerSas
from .asset_storage_encryption_key_py3 import AssetStorageEncryptionKey
from .asset_file_encryption_metadata_py3 import AssetFileEncryptionMetadata
from .storage_encrypted_asset_decryption_data_py3 import StorageEncryptedAssetDecryptionData
from .asset_streaming_locator_py3 import AssetStreamingLocator
from .list_streaming_locators_response_py3 import ListStreamingLocatorsResponse
from .asset_py3 import Asset
from .asset_filter_py3 import AssetFilter
from .list_container_sas_input_py3 import ListContainerSasInput
from .content_key_policy_play_ready_explicit_analog_television_restriction_py3 import ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction
from .content_key_policy_play_ready_content_key_location_py3 import ContentKeyPolicyPlayReadyContentKeyLocation
Expand Down Expand Up @@ -123,9 +136,10 @@
from .hls_py3 import Hls
from .live_output_py3 import LiveOutput
from .live_event_endpoint_py3 import LiveEventEndpoint
from .live_event_input_py3 import LiveEventInput
from .ip_range_py3 import IPRange
from .ip_access_control_py3 import IPAccessControl
from .live_event_input_access_control_py3 import LiveEventInputAccessControl
from .live_event_input_py3 import LiveEventInput
from .live_event_preview_access_control_py3 import LiveEventPreviewAccessControl
from .live_event_preview_py3 import LiveEventPreview
from .live_event_encoding_py3 import LiveEventEncoding
Expand All @@ -138,24 +152,37 @@
from .streaming_entity_scale_unit_py3 import StreamingEntityScaleUnit
from .streaming_endpoint_py3 import StreamingEndpoint
except (SyntaxError, ImportError):
from .presentation_time_range import PresentationTimeRange
from .filter_track_property_condition import FilterTrackPropertyCondition
from .first_quality import FirstQuality
from .filter_track_selection import FilterTrackSelection
from .account_filter import AccountFilter
from .odata_error import ODataError
from .api_error import ApiError, ApiErrorException
from .tracked_resource import TrackedResource
from .resource import Resource
from .proxy_resource import ProxyResource
from .provider import Provider
from .operation_display import OperationDisplay
from .metric_dimension import MetricDimension
from .metric import Metric
from .service_specification import ServiceSpecification
from .metric_properties import MetricProperties
from .operation import Operation
from .location import Location
from .entity_name_availability_check_output import EntityNameAvailabilityCheckOutput
from .storage_account import StorageAccount
from .sync_storage_keys_input import SyncStorageKeysInput
from .media_service import MediaService
from .subscription_media_service import SubscriptionMediaService
from .odata_error import ODataError
from .api_error import ApiError, ApiErrorException
from .check_name_availability_input import CheckNameAvailabilityInput
from .proxy_resource import ProxyResource
from .resource import Resource
from .tracked_resource import TrackedResource
from .asset_container_sas import AssetContainerSas
from .asset_storage_encryption_key import AssetStorageEncryptionKey
from .asset_file_encryption_metadata import AssetFileEncryptionMetadata
from .storage_encrypted_asset_decryption_data import StorageEncryptedAssetDecryptionData
from .asset_streaming_locator import AssetStreamingLocator
from .list_streaming_locators_response import ListStreamingLocatorsResponse
from .asset import Asset
from .asset_filter import AssetFilter
from .list_container_sas_input import ListContainerSasInput
from .content_key_policy_play_ready_explicit_analog_television_restriction import ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction
from .content_key_policy_play_ready_content_key_location import ContentKeyPolicyPlayReadyContentKeyLocation
Expand Down Expand Up @@ -251,9 +278,10 @@
from .hls import Hls
from .live_output import LiveOutput
from .live_event_endpoint import LiveEventEndpoint
from .live_event_input import LiveEventInput
from .ip_range import IPRange
from .ip_access_control import IPAccessControl
from .live_event_input_access_control import LiveEventInputAccessControl
from .live_event_input import LiveEventInput
from .live_event_preview_access_control import LiveEventPreviewAccessControl
from .live_event_preview import LiveEventPreview
from .live_event_encoding import LiveEventEncoding
Expand All @@ -265,10 +293,12 @@
from .streaming_endpoint_access_control import StreamingEndpointAccessControl
from .streaming_entity_scale_unit import StreamingEntityScaleUnit
from .streaming_endpoint import StreamingEndpoint
from .account_filter_paged import AccountFilterPaged
from .operation_paged import OperationPaged
from .media_service_paged import MediaServicePaged
from .subscription_media_service_paged import SubscriptionMediaServicePaged
from .asset_paged import AssetPaged
from .asset_filter_paged import AssetFilterPaged
from .content_key_policy_paged import ContentKeyPolicyPaged
from .transform_paged import TransformPaged
from .job_paged import JobPaged
Expand All @@ -278,6 +308,10 @@
from .live_output_paged import LiveOutputPaged
from .streaming_endpoint_paged import StreamingEndpointPaged
from .azure_media_services_enums import (
FilterTrackPropertyType,
FilterTrackPropertyCompareOperation,
MetricUnit,
MetricAggregationType,
StorageAccountType,
AssetStorageEncryptionFormat,
AssetContainerPermission,
Expand All @@ -295,6 +329,7 @@
EntropyMode,
H264Complexity,
EncoderNamedPreset,
InsightsType,
OnErrorType,
Priority,
JobErrorCode,
Expand All @@ -315,24 +350,37 @@
)

__all__ = [
'PresentationTimeRange',
'FilterTrackPropertyCondition',
'FirstQuality',
'FilterTrackSelection',
'AccountFilter',
'ODataError',
'ApiError', 'ApiErrorException',
'TrackedResource',
'Resource',
'ProxyResource',
'Provider',
'OperationDisplay',
'MetricDimension',
'Metric',
'ServiceSpecification',
'MetricProperties',
'Operation',
'Location',
'EntityNameAvailabilityCheckOutput',
'StorageAccount',
'SyncStorageKeysInput',
'MediaService',
'SubscriptionMediaService',
'ODataError',
'ApiError', 'ApiErrorException',
'CheckNameAvailabilityInput',
'ProxyResource',
'Resource',
'TrackedResource',
'AssetContainerSas',
'AssetStorageEncryptionKey',
'AssetFileEncryptionMetadata',
'StorageEncryptedAssetDecryptionData',
'AssetStreamingLocator',
'ListStreamingLocatorsResponse',
'Asset',
'AssetFilter',
'ListContainerSasInput',
'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction',
'ContentKeyPolicyPlayReadyContentKeyLocation',
Expand Down Expand Up @@ -428,9 +476,10 @@
'Hls',
'LiveOutput',
'LiveEventEndpoint',
'LiveEventInput',
'IPRange',
'IPAccessControl',
'LiveEventInputAccessControl',
'LiveEventInput',
'LiveEventPreviewAccessControl',
'LiveEventPreview',
'LiveEventEncoding',
Expand All @@ -442,10 +491,12 @@
'StreamingEndpointAccessControl',
'StreamingEntityScaleUnit',
'StreamingEndpoint',
'AccountFilterPaged',
'OperationPaged',
'MediaServicePaged',
'SubscriptionMediaServicePaged',
'AssetPaged',
'AssetFilterPaged',
'ContentKeyPolicyPaged',
'TransformPaged',
'JobPaged',
Expand All @@ -454,6 +505,10 @@
'LiveEventPaged',
'LiveOutputPaged',
'StreamingEndpointPaged',
'FilterTrackPropertyType',
'FilterTrackPropertyCompareOperation',
'MetricUnit',
'MetricAggregationType',
'StorageAccountType',
'AssetStorageEncryptionFormat',
'AssetContainerPermission',
Expand All @@ -471,6 +526,7 @@
'EntropyMode',
'H264Complexity',
'EncoderNamedPreset',
'InsightsType',
'OnErrorType',
'Priority',
'JobErrorCode',
Expand Down
55 changes: 55 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/account_filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_resource import ProxyResource


class AccountFilter(ProxyResource):
"""An Account Filter.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource ID for the resource.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param presentation_time_range: The presentation time range.
:type presentation_time_range:
~azure.mgmt.media.models.PresentationTimeRange
:param first_quality: The first quality.
:type first_quality: ~azure.mgmt.media.models.FirstQuality
:param tracks: The tracks selection conditions.
:type tracks: list[~azure.mgmt.media.models.FilterTrackSelection]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'presentation_time_range': {'key': 'properties.presentationTimeRange', 'type': 'PresentationTimeRange'},
'first_quality': {'key': 'properties.firstQuality', 'type': 'FirstQuality'},
'tracks': {'key': 'properties.tracks', 'type': '[FilterTrackSelection]'},
}

def __init__(self, **kwargs):
super(AccountFilter, self).__init__(**kwargs)
self.presentation_time_range = kwargs.get('presentation_time_range', None)
self.first_quality = kwargs.get('first_quality', None)
self.tracks = kwargs.get('tracks', None)
27 changes: 27 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/account_filter_paged.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.paging import Paged


class AccountFilterPaged(Paged):
"""
A paging container for iterating over a list of :class:`AccountFilter <azure.mgmt.media.models.AccountFilter>` object
"""

_attribute_map = {
'next_link': {'key': '@odata\\.nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[AccountFilter]'}
}

def __init__(self, *args, **kwargs):

super(AccountFilterPaged, self).__init__(*args, **kwargs)
Loading

0 comments on commit c7940b7

Please sign in to comment.