diff --git a/sdk/media/azure-mgmt-media/README.rst b/sdk/media/azure-mgmt-media/README.rst index ad17d99b5e5a..cb0c1ed606a6 100644 --- a/sdk/media/azure-mgmt-media/README.rst +++ b/sdk/media/azure-mgmt-media/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Media Services Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/__init__.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/__init__.py index 9d8be928b720..bfa736c133cd 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/__init__.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .azure_media_services import AzureMediaServices -from .version import VERSION +from ._configuration import AzureMediaServicesConfiguration +from ._azure_media_services import AzureMediaServices +__all__ = ['AzureMediaServices', 'AzureMediaServicesConfiguration'] -__all__ = ['AzureMediaServices'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/azure_media_services.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/_azure_media_services.py similarity index 69% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/azure_media_services.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/_azure_media_services.py index e62aea9c5796..5a3d6fac6449 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/azure_media_services.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/_azure_media_services.py @@ -11,56 +11,23 @@ from msrest.service_client import SDKClient 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 -from .operations.streaming_policies_operations import StreamingPoliciesOperations -from .operations.streaming_locators_operations import StreamingLocatorsOperations -from .operations.live_events_operations import LiveEventsOperations -from .operations.live_outputs_operations import LiveOutputsOperations -from .operations.streaming_endpoints_operations import StreamingEndpointsOperations -from . import models - - -class AzureMediaServicesConfiguration(AzureConfiguration): - """Configuration for AzureMediaServices - Note that all parameters used to create this instance are saved as instance - attributes. - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The unique identifier for a Microsoft Azure - subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(AzureMediaServicesConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-media/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import AzureMediaServicesConfiguration +from .operations import AccountFiltersOperations +from .operations import Operations +from .operations import MediaservicesOperations +from .operations import LocationsOperations +from .operations import AssetsOperations +from .operations import AssetFiltersOperations +from .operations import ContentKeyPoliciesOperations +from .operations import TransformsOperations +from .operations import JobsOperations +from .operations import StreamingPoliciesOperations +from .operations import StreamingLocatorsOperations +from .operations import LiveEventsOperations +from .operations import LiveOutputsOperations +from .operations import StreamingEndpointsOperations +from . import models class AzureMediaServices(SDKClient): diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py new file mode 100644 index 000000000000..842d5dcd6c44 --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py @@ -0,0 +1,49 @@ +# 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 msrestazure import AzureConfiguration + +from .version import VERSION + + +class AzureMediaServicesConfiguration(AzureConfiguration): + """Configuration for AzureMediaServices + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The unique identifier for a Microsoft Azure + subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(AzureMediaServicesConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-media/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/__init__.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/__init__.py index b288dbfab357..a2509214395a 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/__init__.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/__init__.py @@ -10,306 +10,312 @@ # -------------------------------------------------------------------------- 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 .check_name_availability_input_py3 import CheckNameAvailabilityInput - from .asset_container_sas_py3 import AssetContainerSas - 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 - from .content_key_policy_play_ready_content_encryption_key_from_header_py3 import ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader - from .content_key_policy_play_ready_content_encryption_key_from_key_identifier_py3 import ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier - from .content_key_policy_play_ready_play_right_py3 import ContentKeyPolicyPlayReadyPlayRight - from .content_key_policy_token_claim_py3 import ContentKeyPolicyTokenClaim - from .content_key_policy_play_ready_license_py3 import ContentKeyPolicyPlayReadyLicense - from .content_key_policy_restriction_py3 import ContentKeyPolicyRestriction - from .content_key_policy_open_restriction_py3 import ContentKeyPolicyOpenRestriction - from .content_key_policy_unknown_restriction_py3 import ContentKeyPolicyUnknownRestriction - from .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - from .content_key_policy_restriction_token_key_py3 import ContentKeyPolicyRestrictionTokenKey - from .content_key_policy_symmetric_token_key_py3 import ContentKeyPolicySymmetricTokenKey - from .content_key_policy_rsa_token_key_py3 import ContentKeyPolicyRsaTokenKey - from .content_key_policy_x509_certificate_token_key_py3 import ContentKeyPolicyX509CertificateTokenKey - from .content_key_policy_token_restriction_py3 import ContentKeyPolicyTokenRestriction - from .content_key_policy_clear_key_configuration_py3 import ContentKeyPolicyClearKeyConfiguration - from .content_key_policy_unknown_configuration_py3 import ContentKeyPolicyUnknownConfiguration - from .content_key_policy_widevine_configuration_py3 import ContentKeyPolicyWidevineConfiguration - from .content_key_policy_play_ready_configuration_py3 import ContentKeyPolicyPlayReadyConfiguration - from .content_key_policy_fair_play_configuration_py3 import ContentKeyPolicyFairPlayConfiguration - from .content_key_policy_option_py3 import ContentKeyPolicyOption - from .content_key_policy_properties_py3 import ContentKeyPolicyProperties - from .content_key_policy_py3 import ContentKeyPolicy - from .preset_py3 import Preset - from .codec_py3 import Codec - from .audio_py3 import Audio - from .aac_audio_py3 import AacAudio - from .face_detector_preset_py3 import FaceDetectorPreset - from .audio_analyzer_preset_py3 import AudioAnalyzerPreset - from .overlay_py3 import Overlay - from .audio_overlay_py3 import AudioOverlay - from .copy_video_py3 import CopyVideo - from .video_py3 import Video - from .image_py3 import Image - from .format_py3 import Format - from .image_format_py3 import ImageFormat - from .jpg_format_py3 import JpgFormat - from .png_format_py3 import PngFormat - from .copy_audio_py3 import CopyAudio - from .deinterlace_py3 import Deinterlace - from .rectangle_py3 import Rectangle - from .filters_py3 import Filters - from .layer_py3 import Layer - from .video_layer_py3 import VideoLayer - from .h264_layer_py3 import H264Layer - from .h264_video_py3 import H264Video - from .jpg_layer_py3 import JpgLayer - from .jpg_image_py3 import JpgImage - from .output_file_py3 import OutputFile - from .multi_bitrate_format_py3 import MultiBitrateFormat - from .mp4_format_py3 import Mp4Format - from .png_layer_py3 import PngLayer - from .png_image_py3 import PngImage - from .built_in_standard_encoder_preset_py3 import BuiltInStandardEncoderPreset - from .standard_encoder_preset_py3 import StandardEncoderPreset - from .video_analyzer_preset_py3 import VideoAnalyzerPreset - from .transport_stream_format_py3 import TransportStreamFormat - from .video_overlay_py3 import VideoOverlay - from .transform_output_py3 import TransformOutput - from .transform_py3 import Transform - from .job_input_py3 import JobInput - from .job_input_clip_py3 import JobInputClip - from .job_inputs_py3 import JobInputs - from .job_input_asset_py3 import JobInputAsset - from .job_input_http_py3 import JobInputHttp - from .job_error_detail_py3 import JobErrorDetail - from .job_error_py3 import JobError - from .job_output_py3 import JobOutput - from .job_output_asset_py3 import JobOutputAsset - from .job_py3 import Job - from .track_property_condition_py3 import TrackPropertyCondition - from .track_selection_py3 import TrackSelection - from .default_key_py3 import DefaultKey - from .streaming_policy_content_key_py3 import StreamingPolicyContentKey - from .streaming_policy_content_keys_py3 import StreamingPolicyContentKeys - from .streaming_policy_play_ready_configuration_py3 import StreamingPolicyPlayReadyConfiguration - from .streaming_policy_widevine_configuration_py3 import StreamingPolicyWidevineConfiguration - from .streaming_policy_fair_play_configuration_py3 import StreamingPolicyFairPlayConfiguration - from .cbcs_drm_configuration_py3 import CbcsDrmConfiguration - from .cenc_drm_configuration_py3 import CencDrmConfiguration - from .enabled_protocols_py3 import EnabledProtocols - from .no_encryption_py3 import NoEncryption - from .envelope_encryption_py3 import EnvelopeEncryption - from .common_encryption_cenc_py3 import CommonEncryptionCenc - from .common_encryption_cbcs_py3 import CommonEncryptionCbcs - from .streaming_policy_py3 import StreamingPolicy - from .streaming_locator_content_key_py3 import StreamingLocatorContentKey - from .streaming_path_py3 import StreamingPath - from .list_content_keys_response_py3 import ListContentKeysResponse - from .list_paths_response_py3 import ListPathsResponse - from .streaming_locator_py3 import StreamingLocator - from .hls_py3 import Hls - from .live_output_py3 import LiveOutput - from .live_event_endpoint_py3 import LiveEventEndpoint - 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 - from .cross_site_access_policies_py3 import CrossSiteAccessPolicies - from .live_event_action_input_py3 import LiveEventActionInput - from .live_event_py3 import LiveEvent - from .akamai_signature_header_authentication_key_py3 import AkamaiSignatureHeaderAuthenticationKey - from .akamai_access_control_py3 import AkamaiAccessControl - from .streaming_endpoint_access_control_py3 import StreamingEndpointAccessControl - from .streaming_entity_scale_unit_py3 import StreamingEntityScaleUnit - from .streaming_endpoint_py3 import StreamingEndpoint + from ._models_py3 import AacAudio + from ._models_py3 import AbsoluteClipTime + from ._models_py3 import AccountFilter + from ._models_py3 import AkamaiAccessControl + from ._models_py3 import AkamaiSignatureHeaderAuthenticationKey + from ._models_py3 import ApiError, ApiErrorException + from ._models_py3 import Asset + from ._models_py3 import AssetContainerSas + from ._models_py3 import AssetFileEncryptionMetadata + from ._models_py3 import AssetFilter + from ._models_py3 import AssetStreamingLocator + from ._models_py3 import Audio + from ._models_py3 import AudioAnalyzerPreset + from ._models_py3 import AudioOverlay + from ._models_py3 import BuiltInStandardEncoderPreset + from ._models_py3 import CbcsDrmConfiguration + from ._models_py3 import CencDrmConfiguration + from ._models_py3 import CheckNameAvailabilityInput + from ._models_py3 import ClipTime + from ._models_py3 import Codec + from ._models_py3 import CommonEncryptionCbcs + from ._models_py3 import CommonEncryptionCenc + from ._models_py3 import ContentKeyPolicy + from ._models_py3 import ContentKeyPolicyClearKeyConfiguration + from ._models_py3 import ContentKeyPolicyConfiguration + from ._models_py3 import ContentKeyPolicyFairPlayConfiguration + from ._models_py3 import ContentKeyPolicyFairPlayOfflineRentalConfiguration + from ._models_py3 import ContentKeyPolicyOpenRestriction + from ._models_py3 import ContentKeyPolicyOption + from ._models_py3 import ContentKeyPolicyPlayReadyConfiguration + from ._models_py3 import ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader + from ._models_py3 import ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + from ._models_py3 import ContentKeyPolicyPlayReadyContentKeyLocation + from ._models_py3 import ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction + from ._models_py3 import ContentKeyPolicyPlayReadyLicense + from ._models_py3 import ContentKeyPolicyPlayReadyPlayRight + from ._models_py3 import ContentKeyPolicyProperties + from ._models_py3 import ContentKeyPolicyRestriction + from ._models_py3 import ContentKeyPolicyRestrictionTokenKey + from ._models_py3 import ContentKeyPolicyRsaTokenKey + from ._models_py3 import ContentKeyPolicySymmetricTokenKey + from ._models_py3 import ContentKeyPolicyTokenClaim + from ._models_py3 import ContentKeyPolicyTokenRestriction + from ._models_py3 import ContentKeyPolicyUnknownConfiguration + from ._models_py3 import ContentKeyPolicyUnknownRestriction + from ._models_py3 import ContentKeyPolicyWidevineConfiguration + from ._models_py3 import ContentKeyPolicyX509CertificateTokenKey + from ._models_py3 import CopyAudio + from ._models_py3 import CopyVideo + from ._models_py3 import CrossSiteAccessPolicies + from ._models_py3 import DefaultKey + from ._models_py3 import Deinterlace + from ._models_py3 import EnabledProtocols + from ._models_py3 import EntityNameAvailabilityCheckOutput + from ._models_py3 import EnvelopeEncryption + from ._models_py3 import FaceDetectorPreset + from ._models_py3 import Filters + from ._models_py3 import FilterTrackPropertyCondition + from ._models_py3 import FilterTrackSelection + from ._models_py3 import FirstQuality + from ._models_py3 import Format + from ._models_py3 import H264Layer + from ._models_py3 import H264Video + from ._models_py3 import Hls + from ._models_py3 import Image + from ._models_py3 import ImageFormat + from ._models_py3 import IPAccessControl + from ._models_py3 import IPRange + from ._models_py3 import Job + from ._models_py3 import JobError + from ._models_py3 import JobErrorDetail + from ._models_py3 import JobInput + from ._models_py3 import JobInputAsset + from ._models_py3 import JobInputClip + from ._models_py3 import JobInputHttp + from ._models_py3 import JobInputs + from ._models_py3 import JobOutput + from ._models_py3 import JobOutputAsset + from ._models_py3 import JpgFormat + from ._models_py3 import JpgImage + from ._models_py3 import JpgLayer + from ._models_py3 import Layer + from ._models_py3 import ListContainerSasInput + from ._models_py3 import ListContentKeysResponse + from ._models_py3 import ListPathsResponse + from ._models_py3 import ListStreamingLocatorsResponse + from ._models_py3 import LiveEvent + from ._models_py3 import LiveEventActionInput + from ._models_py3 import LiveEventEncoding + from ._models_py3 import LiveEventEndpoint + from ._models_py3 import LiveEventInput + from ._models_py3 import LiveEventInputAccessControl + from ._models_py3 import LiveEventPreview + from ._models_py3 import LiveEventPreviewAccessControl + from ._models_py3 import LiveOutput + from ._models_py3 import Location + from ._models_py3 import MediaService + from ._models_py3 import Metric + from ._models_py3 import MetricDimension + from ._models_py3 import MetricProperties + from ._models_py3 import Mp4Format + from ._models_py3 import MultiBitrateFormat + from ._models_py3 import NoEncryption + from ._models_py3 import ODataError + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OutputFile + from ._models_py3 import Overlay + from ._models_py3 import PngFormat + from ._models_py3 import PngImage + from ._models_py3 import PngLayer + from ._models_py3 import PresentationTimeRange + from ._models_py3 import Preset + from ._models_py3 import Provider + from ._models_py3 import ProxyResource + from ._models_py3 import Rectangle + from ._models_py3 import Resource + from ._models_py3 import ServiceSpecification + from ._models_py3 import StandardEncoderPreset + from ._models_py3 import StorageAccount + from ._models_py3 import StorageEncryptedAssetDecryptionData + from ._models_py3 import StreamingEndpoint + from ._models_py3 import StreamingEndpointAccessControl + from ._models_py3 import StreamingEntityScaleUnit + from ._models_py3 import StreamingLocator + from ._models_py3 import StreamingLocatorContentKey + from ._models_py3 import StreamingPath + from ._models_py3 import StreamingPolicy + from ._models_py3 import StreamingPolicyContentKey + from ._models_py3 import StreamingPolicyContentKeys + from ._models_py3 import StreamingPolicyFairPlayConfiguration + from ._models_py3 import StreamingPolicyPlayReadyConfiguration + from ._models_py3 import StreamingPolicyWidevineConfiguration + from ._models_py3 import SubscriptionMediaService + from ._models_py3 import SyncStorageKeysInput + from ._models_py3 import TrackedResource + from ._models_py3 import TrackPropertyCondition + from ._models_py3 import TrackSelection + from ._models_py3 import Transform + from ._models_py3 import TransformOutput + from ._models_py3 import TransportStreamFormat + from ._models_py3 import Video + from ._models_py3 import VideoAnalyzerPreset + from ._models_py3 import VideoLayer + from ._models_py3 import VideoOverlay 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 .check_name_availability_input import CheckNameAvailabilityInput - from .asset_container_sas import AssetContainerSas - 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 - from .content_key_policy_play_ready_content_encryption_key_from_header import ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader - from .content_key_policy_play_ready_content_encryption_key_from_key_identifier import ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier - from .content_key_policy_play_ready_play_right import ContentKeyPolicyPlayReadyPlayRight - from .content_key_policy_token_claim import ContentKeyPolicyTokenClaim - from .content_key_policy_play_ready_license import ContentKeyPolicyPlayReadyLicense - from .content_key_policy_restriction import ContentKeyPolicyRestriction - from .content_key_policy_open_restriction import ContentKeyPolicyOpenRestriction - from .content_key_policy_unknown_restriction import ContentKeyPolicyUnknownRestriction - from .content_key_policy_configuration import ContentKeyPolicyConfiguration - from .content_key_policy_restriction_token_key import ContentKeyPolicyRestrictionTokenKey - from .content_key_policy_symmetric_token_key import ContentKeyPolicySymmetricTokenKey - from .content_key_policy_rsa_token_key import ContentKeyPolicyRsaTokenKey - from .content_key_policy_x509_certificate_token_key import ContentKeyPolicyX509CertificateTokenKey - from .content_key_policy_token_restriction import ContentKeyPolicyTokenRestriction - from .content_key_policy_clear_key_configuration import ContentKeyPolicyClearKeyConfiguration - from .content_key_policy_unknown_configuration import ContentKeyPolicyUnknownConfiguration - from .content_key_policy_widevine_configuration import ContentKeyPolicyWidevineConfiguration - from .content_key_policy_play_ready_configuration import ContentKeyPolicyPlayReadyConfiguration - from .content_key_policy_fair_play_configuration import ContentKeyPolicyFairPlayConfiguration - from .content_key_policy_option import ContentKeyPolicyOption - from .content_key_policy_properties import ContentKeyPolicyProperties - from .content_key_policy import ContentKeyPolicy - from .preset import Preset - from .codec import Codec - from .audio import Audio - from .aac_audio import AacAudio - from .face_detector_preset import FaceDetectorPreset - from .audio_analyzer_preset import AudioAnalyzerPreset - from .overlay import Overlay - from .audio_overlay import AudioOverlay - from .copy_video import CopyVideo - from .video import Video - from .image import Image - from .format import Format - from .image_format import ImageFormat - from .jpg_format import JpgFormat - from .png_format import PngFormat - from .copy_audio import CopyAudio - from .deinterlace import Deinterlace - from .rectangle import Rectangle - from .filters import Filters - from .layer import Layer - from .video_layer import VideoLayer - from .h264_layer import H264Layer - from .h264_video import H264Video - from .jpg_layer import JpgLayer - from .jpg_image import JpgImage - from .output_file import OutputFile - from .multi_bitrate_format import MultiBitrateFormat - from .mp4_format import Mp4Format - from .png_layer import PngLayer - from .png_image import PngImage - from .built_in_standard_encoder_preset import BuiltInStandardEncoderPreset - from .standard_encoder_preset import StandardEncoderPreset - from .video_analyzer_preset import VideoAnalyzerPreset - from .transport_stream_format import TransportStreamFormat - from .video_overlay import VideoOverlay - from .transform_output import TransformOutput - from .transform import Transform - from .job_input import JobInput - from .job_input_clip import JobInputClip - from .job_inputs import JobInputs - from .job_input_asset import JobInputAsset - from .job_input_http import JobInputHttp - from .job_error_detail import JobErrorDetail - from .job_error import JobError - from .job_output import JobOutput - from .job_output_asset import JobOutputAsset - from .job import Job - from .track_property_condition import TrackPropertyCondition - from .track_selection import TrackSelection - from .default_key import DefaultKey - from .streaming_policy_content_key import StreamingPolicyContentKey - from .streaming_policy_content_keys import StreamingPolicyContentKeys - from .streaming_policy_play_ready_configuration import StreamingPolicyPlayReadyConfiguration - from .streaming_policy_widevine_configuration import StreamingPolicyWidevineConfiguration - from .streaming_policy_fair_play_configuration import StreamingPolicyFairPlayConfiguration - from .cbcs_drm_configuration import CbcsDrmConfiguration - from .cenc_drm_configuration import CencDrmConfiguration - from .enabled_protocols import EnabledProtocols - from .no_encryption import NoEncryption - from .envelope_encryption import EnvelopeEncryption - from .common_encryption_cenc import CommonEncryptionCenc - from .common_encryption_cbcs import CommonEncryptionCbcs - from .streaming_policy import StreamingPolicy - from .streaming_locator_content_key import StreamingLocatorContentKey - from .streaming_path import StreamingPath - from .list_content_keys_response import ListContentKeysResponse - from .list_paths_response import ListPathsResponse - from .streaming_locator import StreamingLocator - from .hls import Hls - from .live_output import LiveOutput - from .live_event_endpoint import LiveEventEndpoint - 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 - from .cross_site_access_policies import CrossSiteAccessPolicies - from .live_event_action_input import LiveEventActionInput - from .live_event import LiveEvent - from .akamai_signature_header_authentication_key import AkamaiSignatureHeaderAuthenticationKey - from .akamai_access_control import AkamaiAccessControl - 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 -from .streaming_policy_paged import StreamingPolicyPaged -from .streaming_locator_paged import StreamingLocatorPaged -from .live_event_paged import LiveEventPaged -from .live_output_paged import LiveOutputPaged -from .streaming_endpoint_paged import StreamingEndpointPaged -from .azure_media_services_enums import ( + from ._models import AacAudio + from ._models import AbsoluteClipTime + from ._models import AccountFilter + from ._models import AkamaiAccessControl + from ._models import AkamaiSignatureHeaderAuthenticationKey + from ._models import ApiError, ApiErrorException + from ._models import Asset + from ._models import AssetContainerSas + from ._models import AssetFileEncryptionMetadata + from ._models import AssetFilter + from ._models import AssetStreamingLocator + from ._models import Audio + from ._models import AudioAnalyzerPreset + from ._models import AudioOverlay + from ._models import BuiltInStandardEncoderPreset + from ._models import CbcsDrmConfiguration + from ._models import CencDrmConfiguration + from ._models import CheckNameAvailabilityInput + from ._models import ClipTime + from ._models import Codec + from ._models import CommonEncryptionCbcs + from ._models import CommonEncryptionCenc + from ._models import ContentKeyPolicy + from ._models import ContentKeyPolicyClearKeyConfiguration + from ._models import ContentKeyPolicyConfiguration + from ._models import ContentKeyPolicyFairPlayConfiguration + from ._models import ContentKeyPolicyFairPlayOfflineRentalConfiguration + from ._models import ContentKeyPolicyOpenRestriction + from ._models import ContentKeyPolicyOption + from ._models import ContentKeyPolicyPlayReadyConfiguration + from ._models import ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader + from ._models import ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + from ._models import ContentKeyPolicyPlayReadyContentKeyLocation + from ._models import ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction + from ._models import ContentKeyPolicyPlayReadyLicense + from ._models import ContentKeyPolicyPlayReadyPlayRight + from ._models import ContentKeyPolicyProperties + from ._models import ContentKeyPolicyRestriction + from ._models import ContentKeyPolicyRestrictionTokenKey + from ._models import ContentKeyPolicyRsaTokenKey + from ._models import ContentKeyPolicySymmetricTokenKey + from ._models import ContentKeyPolicyTokenClaim + from ._models import ContentKeyPolicyTokenRestriction + from ._models import ContentKeyPolicyUnknownConfiguration + from ._models import ContentKeyPolicyUnknownRestriction + from ._models import ContentKeyPolicyWidevineConfiguration + from ._models import ContentKeyPolicyX509CertificateTokenKey + from ._models import CopyAudio + from ._models import CopyVideo + from ._models import CrossSiteAccessPolicies + from ._models import DefaultKey + from ._models import Deinterlace + from ._models import EnabledProtocols + from ._models import EntityNameAvailabilityCheckOutput + from ._models import EnvelopeEncryption + from ._models import FaceDetectorPreset + from ._models import Filters + from ._models import FilterTrackPropertyCondition + from ._models import FilterTrackSelection + from ._models import FirstQuality + from ._models import Format + from ._models import H264Layer + from ._models import H264Video + from ._models import Hls + from ._models import Image + from ._models import ImageFormat + from ._models import IPAccessControl + from ._models import IPRange + from ._models import Job + from ._models import JobError + from ._models import JobErrorDetail + from ._models import JobInput + from ._models import JobInputAsset + from ._models import JobInputClip + from ._models import JobInputHttp + from ._models import JobInputs + from ._models import JobOutput + from ._models import JobOutputAsset + from ._models import JpgFormat + from ._models import JpgImage + from ._models import JpgLayer + from ._models import Layer + from ._models import ListContainerSasInput + from ._models import ListContentKeysResponse + from ._models import ListPathsResponse + from ._models import ListStreamingLocatorsResponse + from ._models import LiveEvent + from ._models import LiveEventActionInput + from ._models import LiveEventEncoding + from ._models import LiveEventEndpoint + from ._models import LiveEventInput + from ._models import LiveEventInputAccessControl + from ._models import LiveEventPreview + from ._models import LiveEventPreviewAccessControl + from ._models import LiveOutput + from ._models import Location + from ._models import MediaService + from ._models import Metric + from ._models import MetricDimension + from ._models import MetricProperties + from ._models import Mp4Format + from ._models import MultiBitrateFormat + from ._models import NoEncryption + from ._models import ODataError + from ._models import Operation + from ._models import OperationDisplay + from ._models import OutputFile + from ._models import Overlay + from ._models import PngFormat + from ._models import PngImage + from ._models import PngLayer + from ._models import PresentationTimeRange + from ._models import Preset + from ._models import Provider + from ._models import ProxyResource + from ._models import Rectangle + from ._models import Resource + from ._models import ServiceSpecification + from ._models import StandardEncoderPreset + from ._models import StorageAccount + from ._models import StorageEncryptedAssetDecryptionData + from ._models import StreamingEndpoint + from ._models import StreamingEndpointAccessControl + from ._models import StreamingEntityScaleUnit + from ._models import StreamingLocator + from ._models import StreamingLocatorContentKey + from ._models import StreamingPath + from ._models import StreamingPolicy + from ._models import StreamingPolicyContentKey + from ._models import StreamingPolicyContentKeys + from ._models import StreamingPolicyFairPlayConfiguration + from ._models import StreamingPolicyPlayReadyConfiguration + from ._models import StreamingPolicyWidevineConfiguration + from ._models import SubscriptionMediaService + from ._models import SyncStorageKeysInput + from ._models import TrackedResource + from ._models import TrackPropertyCondition + from ._models import TrackSelection + from ._models import Transform + from ._models import TransformOutput + from ._models import TransportStreamFormat + from ._models import Video + from ._models import VideoAnalyzerPreset + from ._models import VideoLayer + from ._models import VideoOverlay +from ._paged_models import AccountFilterPaged +from ._paged_models import AssetFilterPaged +from ._paged_models import AssetPaged +from ._paged_models import ContentKeyPolicyPaged +from ._paged_models import JobPaged +from ._paged_models import LiveEventPaged +from ._paged_models import LiveOutputPaged +from ._paged_models import MediaServicePaged +from ._paged_models import OperationPaged +from ._paged_models import StreamingEndpointPaged +from ._paged_models import StreamingLocatorPaged +from ._paged_models import StreamingPolicyPaged +from ._paged_models import SubscriptionMediaServicePaged +from ._paged_models import TransformPaged +from ._azure_media_services_enums import ( FilterTrackPropertyType, FilterTrackPropertyCompareOperation, MetricUnit, @@ -353,148 +359,151 @@ ) __all__ = [ - 'PresentationTimeRange', - 'FilterTrackPropertyCondition', - 'FirstQuality', - 'FilterTrackSelection', + 'AacAudio', + 'AbsoluteClipTime', 'AccountFilter', - 'ODataError', + 'AkamaiAccessControl', + 'AkamaiSignatureHeaderAuthenticationKey', 'ApiError', 'ApiErrorException', - 'TrackedResource', - 'Resource', - 'ProxyResource', - 'Provider', - 'OperationDisplay', - 'MetricDimension', - 'Metric', - 'ServiceSpecification', - 'MetricProperties', - 'Operation', - 'Location', - 'EntityNameAvailabilityCheckOutput', - 'StorageAccount', - 'SyncStorageKeysInput', - 'MediaService', - 'SubscriptionMediaService', - 'CheckNameAvailabilityInput', + 'Asset', 'AssetContainerSas', 'AssetFileEncryptionMetadata', - 'StorageEncryptedAssetDecryptionData', - 'AssetStreamingLocator', - 'ListStreamingLocatorsResponse', - 'Asset', 'AssetFilter', - 'ListContainerSasInput', - 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction', - 'ContentKeyPolicyPlayReadyContentKeyLocation', + 'AssetStreamingLocator', + 'Audio', + 'AudioAnalyzerPreset', + 'AudioOverlay', + 'BuiltInStandardEncoderPreset', + 'CbcsDrmConfiguration', + 'CencDrmConfiguration', + 'CheckNameAvailabilityInput', + 'ClipTime', + 'Codec', + 'CommonEncryptionCbcs', + 'CommonEncryptionCenc', + 'ContentKeyPolicy', + 'ContentKeyPolicyClearKeyConfiguration', + 'ContentKeyPolicyConfiguration', + 'ContentKeyPolicyFairPlayConfiguration', + 'ContentKeyPolicyFairPlayOfflineRentalConfiguration', + 'ContentKeyPolicyOpenRestriction', + 'ContentKeyPolicyOption', + 'ContentKeyPolicyPlayReadyConfiguration', 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier', - 'ContentKeyPolicyPlayReadyPlayRight', - 'ContentKeyPolicyTokenClaim', + 'ContentKeyPolicyPlayReadyContentKeyLocation', + 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction', 'ContentKeyPolicyPlayReadyLicense', + 'ContentKeyPolicyPlayReadyPlayRight', + 'ContentKeyPolicyProperties', 'ContentKeyPolicyRestriction', - 'ContentKeyPolicyOpenRestriction', - 'ContentKeyPolicyUnknownRestriction', - 'ContentKeyPolicyConfiguration', 'ContentKeyPolicyRestrictionTokenKey', - 'ContentKeyPolicySymmetricTokenKey', 'ContentKeyPolicyRsaTokenKey', - 'ContentKeyPolicyX509CertificateTokenKey', + 'ContentKeyPolicySymmetricTokenKey', + 'ContentKeyPolicyTokenClaim', 'ContentKeyPolicyTokenRestriction', - 'ContentKeyPolicyClearKeyConfiguration', 'ContentKeyPolicyUnknownConfiguration', + 'ContentKeyPolicyUnknownRestriction', 'ContentKeyPolicyWidevineConfiguration', - 'ContentKeyPolicyPlayReadyConfiguration', - 'ContentKeyPolicyFairPlayConfiguration', - 'ContentKeyPolicyOption', - 'ContentKeyPolicyProperties', - 'ContentKeyPolicy', - 'Preset', - 'Codec', - 'Audio', - 'AacAudio', - 'FaceDetectorPreset', - 'AudioAnalyzerPreset', - 'Overlay', - 'AudioOverlay', - 'CopyVideo', - 'Video', - 'Image', - 'Format', - 'ImageFormat', - 'JpgFormat', - 'PngFormat', + 'ContentKeyPolicyX509CertificateTokenKey', 'CopyAudio', + 'CopyVideo', + 'CrossSiteAccessPolicies', + 'DefaultKey', 'Deinterlace', - 'Rectangle', + 'EnabledProtocols', + 'EntityNameAvailabilityCheckOutput', + 'EnvelopeEncryption', + 'FaceDetectorPreset', 'Filters', - 'Layer', - 'VideoLayer', + 'FilterTrackPropertyCondition', + 'FilterTrackSelection', + 'FirstQuality', + 'Format', 'H264Layer', 'H264Video', - 'JpgLayer', - 'JpgImage', - 'OutputFile', - 'MultiBitrateFormat', - 'Mp4Format', - 'PngLayer', - 'PngImage', - 'BuiltInStandardEncoderPreset', - 'StandardEncoderPreset', - 'VideoAnalyzerPreset', - 'TransportStreamFormat', - 'VideoOverlay', - 'TransformOutput', - 'Transform', + 'Hls', + 'Image', + 'ImageFormat', + 'IPAccessControl', + 'IPRange', + 'Job', + 'JobError', + 'JobErrorDetail', 'JobInput', - 'JobInputClip', - 'JobInputs', 'JobInputAsset', + 'JobInputClip', 'JobInputHttp', - 'JobErrorDetail', - 'JobError', + 'JobInputs', 'JobOutput', 'JobOutputAsset', - 'Job', - 'TrackPropertyCondition', - 'TrackSelection', - 'DefaultKey', - 'StreamingPolicyContentKey', - 'StreamingPolicyContentKeys', - 'StreamingPolicyPlayReadyConfiguration', - 'StreamingPolicyWidevineConfiguration', - 'StreamingPolicyFairPlayConfiguration', - 'CbcsDrmConfiguration', - 'CencDrmConfiguration', - 'EnabledProtocols', - 'NoEncryption', - 'EnvelopeEncryption', - 'CommonEncryptionCenc', - 'CommonEncryptionCbcs', - 'StreamingPolicy', - 'StreamingLocatorContentKey', - 'StreamingPath', + 'JpgFormat', + 'JpgImage', + 'JpgLayer', + 'Layer', + 'ListContainerSasInput', 'ListContentKeysResponse', 'ListPathsResponse', - 'StreamingLocator', - 'Hls', - 'LiveOutput', + 'ListStreamingLocatorsResponse', + 'LiveEvent', + 'LiveEventActionInput', + 'LiveEventEncoding', 'LiveEventEndpoint', - 'IPRange', - 'IPAccessControl', - 'LiveEventInputAccessControl', 'LiveEventInput', - 'LiveEventPreviewAccessControl', + 'LiveEventInputAccessControl', 'LiveEventPreview', - 'LiveEventEncoding', - 'CrossSiteAccessPolicies', - 'LiveEventActionInput', - 'LiveEvent', - 'AkamaiSignatureHeaderAuthenticationKey', - 'AkamaiAccessControl', + 'LiveEventPreviewAccessControl', + 'LiveOutput', + 'Location', + 'MediaService', + 'Metric', + 'MetricDimension', + 'MetricProperties', + 'Mp4Format', + 'MultiBitrateFormat', + 'NoEncryption', + 'ODataError', + 'Operation', + 'OperationDisplay', + 'OutputFile', + 'Overlay', + 'PngFormat', + 'PngImage', + 'PngLayer', + 'PresentationTimeRange', + 'Preset', + 'Provider', + 'ProxyResource', + 'Rectangle', + 'Resource', + 'ServiceSpecification', + 'StandardEncoderPreset', + 'StorageAccount', + 'StorageEncryptedAssetDecryptionData', + 'StreamingEndpoint', 'StreamingEndpointAccessControl', 'StreamingEntityScaleUnit', - 'StreamingEndpoint', + 'StreamingLocator', + 'StreamingLocatorContentKey', + 'StreamingPath', + 'StreamingPolicy', + 'StreamingPolicyContentKey', + 'StreamingPolicyContentKeys', + 'StreamingPolicyFairPlayConfiguration', + 'StreamingPolicyPlayReadyConfiguration', + 'StreamingPolicyWidevineConfiguration', + 'SubscriptionMediaService', + 'SyncStorageKeysInput', + 'TrackedResource', + 'TrackPropertyCondition', + 'TrackSelection', + 'Transform', + 'TransformOutput', + 'TransportStreamFormat', + 'Video', + 'VideoAnalyzerPreset', + 'VideoLayer', + 'VideoOverlay', 'AccountFilterPaged', 'OperationPaged', 'MediaServicePaged', diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/azure_media_services_enums.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.py similarity index 95% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/models/azure_media_services_enums.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.py index ad5cb5143127..858dcb3bc4a1 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/azure_media_services_enums.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_azure_media_services_enums.py @@ -95,6 +95,7 @@ class ContentKeyPolicyFairPlayRentalAndLeaseKeyType(str, Enum): unknown = "Unknown" #: Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version. undefined = "Undefined" #: Key duration is not specified. + dual_expiry = "DualExpiry" #: Dual expiry for offline rental. persistent_unlimited = "PersistentUnlimited" #: Content key can be persisted with an unlimited duration persistent_limited = "PersistentLimited" #: Content key can be persisted and the valid duration is limited by the Rental Duration value @@ -173,6 +174,7 @@ class EncoderNamedPreset(str, Enum): adaptive_streaming = "AdaptiveStreaming" #: Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming. aac_good_quality_audio = "AACGoodQualityAudio" #: Produces a single MP4 file containing only stereo audio encoded at 192 kbps. content_aware_encoding_experimental = "ContentAwareEncodingExperimental" #: Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved. + content_aware_encoding = "ContentAwareEncoding" #: Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved. h264_multiple_bitrate1080p = "H264MultipleBitrate1080p" #: Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. h264_multiple_bitrate720p = "H264MultipleBitrate720p" #: Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p. h264_multiple_bitrate_sd = "H264MultipleBitrateSD" #: Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p. @@ -290,6 +292,7 @@ class LiveEventEncodingType(str, Enum): none = "None" basic = "Basic" standard = "Standard" + premium1080p = "Premium1080p" class LiveEventResourceState(str, Enum): diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models.py new file mode 100644 index 000000000000..6331946dfa3d --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models.py @@ -0,0 +1,5591 @@ +# 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.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Codec(Model): + """Describes the basic properties of all codecs. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Audio, CopyVideo, Video, CopyAudio + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Audio': 'Audio', '#Microsoft.Media.CopyVideo': 'CopyVideo', '#Microsoft.Media.Video': 'Video', '#Microsoft.Media.CopyAudio': 'CopyAudio'} + } + + def __init__(self, **kwargs): + super(Codec, self).__init__(**kwargs) + self.label = kwargs.get('label', None) + self.odatatype = None + + +class Audio(Codec): + """Defines the common properties for all audio codecs. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AacAudio + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param channels: The number of channels in the audio. + :type channels: int + :param sampling_rate: The sampling rate to use for encoding in hertz. + :type sampling_rate: int + :param bitrate: The bitrate, in bits per second, of the output encoded + audio. + :type bitrate: int + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'channels': {'key': 'channels', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AacAudio': 'AacAudio'} + } + + def __init__(self, **kwargs): + super(Audio, self).__init__(**kwargs) + self.channels = kwargs.get('channels', None) + self.sampling_rate = kwargs.get('sampling_rate', None) + self.bitrate = kwargs.get('bitrate', None) + self.odatatype = '#Microsoft.Media.Audio' + + +class AacAudio(Audio): + """Describes Advanced Audio Codec (AAC) audio encoding settings. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param channels: The number of channels in the audio. + :type channels: int + :param sampling_rate: The sampling rate to use for encoding in hertz. + :type sampling_rate: int + :param bitrate: The bitrate, in bits per second, of the output encoded + audio. + :type bitrate: int + :param profile: The encoding profile to be used when encoding audio with + AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2' + :type profile: str or ~azure.mgmt.media.models.AacAudioProfile + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'channels': {'key': 'channels', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'profile': {'key': 'profile', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AacAudio, self).__init__(**kwargs) + self.profile = kwargs.get('profile', None) + self.odatatype = '#Microsoft.Media.AacAudio' + + +class ClipTime(Model): + """Base class for specifying a clip time. Use sub classes of this class to + specify the time position in the media. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AbsoluteClipTime + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AbsoluteClipTime': 'AbsoluteClipTime'} + } + + def __init__(self, **kwargs): + super(ClipTime, self).__init__(**kwargs) + self.odatatype = None + + +class AbsoluteClipTime(ClipTime): + """Specifies the clip time as an absolute time position in the media file. + The absolute time can point to a different position depending on whether + the media file starts from a timestamp of zero or not. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param time: Required. The time position on the timeline of the input + media. It is usually specified as an ISO8601 period. e.g PT30S for 30 + seconds. + :type time: timedelta + """ + + _validation = { + 'odatatype': {'required': True}, + 'time': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'duration'}, + } + + def __init__(self, **kwargs): + super(AbsoluteClipTime, self).__init__(**kwargs) + self.time = kwargs.get('time', None) + self.odatatype = '#Microsoft.Media.AbsoluteClipTime' + + +class Resource(Model): + """The core properties of ARM resources. + + 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 + """ + + _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'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. + + 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 + """ + + _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'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + + +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) + + +class AkamaiAccessControl(Model): + """Akamai access control. + + :param akamai_signature_header_authentication_key_list: authentication key + list + :type akamai_signature_header_authentication_key_list: + list[~azure.mgmt.media.models.AkamaiSignatureHeaderAuthenticationKey] + """ + + _attribute_map = { + 'akamai_signature_header_authentication_key_list': {'key': 'akamaiSignatureHeaderAuthenticationKeyList', 'type': '[AkamaiSignatureHeaderAuthenticationKey]'}, + } + + def __init__(self, **kwargs): + super(AkamaiAccessControl, self).__init__(**kwargs) + self.akamai_signature_header_authentication_key_list = kwargs.get('akamai_signature_header_authentication_key_list', None) + + +class AkamaiSignatureHeaderAuthenticationKey(Model): + """Akamai Signature Header authentication key. + + :param identifier: identifier of the key + :type identifier: str + :param base64_key: authentication key + :type base64_key: str + :param expiration: The expiration time of the authentication key. + :type expiration: datetime + """ + + _attribute_map = { + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'base64_key': {'key': 'base64Key', 'type': 'str'}, + 'expiration': {'key': 'expiration', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AkamaiSignatureHeaderAuthenticationKey, self).__init__(**kwargs) + self.identifier = kwargs.get('identifier', None) + self.base64_key = kwargs.get('base64_key', None) + self.expiration = kwargs.get('expiration', None) + + +class ApiError(Model): + """The API error. + + :param error: ApiError. The error properties. + :type error: ~azure.mgmt.media.models.ODataError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ODataError'}, + } + + def __init__(self, **kwargs): + super(ApiError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ApiErrorException(HttpOperationError): + """Server responsed with exception of type: 'ApiError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) + + +class Asset(ProxyResource): + """An Asset. + + 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 + :ivar asset_id: The Asset ID. + :vartype asset_id: str + :ivar created: The creation date of the Asset. + :vartype created: datetime + :ivar last_modified: The last modified date of the Asset. + :vartype last_modified: datetime + :param alternate_id: The alternate ID of the Asset. + :type alternate_id: str + :param description: The Asset description. + :type description: str + :param container: The name of the asset blob container. + :type container: str + :param storage_account_name: The name of the storage account. + :type storage_account_name: str + :ivar storage_encryption_format: The Asset encryption format. One of None + or MediaStorageEncryption. Possible values include: 'None', + 'MediaStorageClientEncryption' + :vartype storage_encryption_format: str or + ~azure.mgmt.media.models.AssetStorageEncryptionFormat + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'storage_encryption_format': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'asset_id': {'key': 'properties.assetId', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'alternate_id': {'key': 'properties.alternateId', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'container': {'key': 'properties.container', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'storage_encryption_format': {'key': 'properties.storageEncryptionFormat', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Asset, self).__init__(**kwargs) + self.asset_id = None + self.created = None + self.last_modified = None + self.alternate_id = kwargs.get('alternate_id', None) + self.description = kwargs.get('description', None) + self.container = kwargs.get('container', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.storage_encryption_format = None + + +class AssetContainerSas(Model): + """The Asset Storage container SAS URLs. + + :param asset_container_sas_urls: The list of Asset container SAS URLs. + :type asset_container_sas_urls: list[str] + """ + + _attribute_map = { + 'asset_container_sas_urls': {'key': 'assetContainerSasUrls', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AssetContainerSas, self).__init__(**kwargs) + self.asset_container_sas_urls = kwargs.get('asset_container_sas_urls', None) + + +class AssetFileEncryptionMetadata(Model): + """The Asset File Storage encryption metadata. + + All required parameters must be populated in order to send to Azure. + + :param initialization_vector: The Asset File initialization vector. + :type initialization_vector: str + :param asset_file_name: The Asset File name. + :type asset_file_name: str + :param asset_file_id: Required. The Asset File Id. + :type asset_file_id: str + """ + + _validation = { + 'asset_file_id': {'required': True}, + } + + _attribute_map = { + 'initialization_vector': {'key': 'initializationVector', 'type': 'str'}, + 'asset_file_name': {'key': 'assetFileName', 'type': 'str'}, + 'asset_file_id': {'key': 'assetFileId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AssetFileEncryptionMetadata, self).__init__(**kwargs) + self.initialization_vector = kwargs.get('initialization_vector', None) + self.asset_file_name = kwargs.get('asset_file_name', None) + self.asset_file_id = kwargs.get('asset_file_id', None) + + +class AssetFilter(ProxyResource): + """An Asset 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(AssetFilter, 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) + + +class AssetStreamingLocator(Model): + """Properties of the Streaming Locator. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Streaming Locator name. + :vartype name: str + :ivar asset_name: Asset Name. + :vartype asset_name: str + :ivar created: The creation time of the Streaming Locator. + :vartype created: datetime + :ivar start_time: The start time of the Streaming Locator. + :vartype start_time: datetime + :ivar end_time: The end time of the Streaming Locator. + :vartype end_time: datetime + :ivar streaming_locator_id: StreamingLocatorId of the Streaming Locator. + :vartype streaming_locator_id: str + :ivar streaming_policy_name: Name of the Streaming Policy used by this + Streaming Locator. + :vartype streaming_policy_name: str + :ivar default_content_key_policy_name: Name of the default + ContentKeyPolicy used by this Streaming Locator. + :vartype default_content_key_policy_name: str + """ + + _validation = { + 'name': {'readonly': True}, + 'asset_name': {'readonly': True}, + 'created': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'streaming_locator_id': {'readonly': True}, + 'streaming_policy_name': {'readonly': True}, + 'default_content_key_policy_name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + 'created': {'key': 'created', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'streaming_locator_id': {'key': 'streamingLocatorId', 'type': 'str'}, + 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, + 'default_content_key_policy_name': {'key': 'defaultContentKeyPolicyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AssetStreamingLocator, self).__init__(**kwargs) + self.name = None + self.asset_name = None + self.created = None + self.start_time = None + self.end_time = None + self.streaming_locator_id = None + self.streaming_policy_name = None + self.default_content_key_policy_name = None + + +class Preset(Model): + """Base type for all Presets, which define the recipe or instructions on how + the input media files should be processed. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: FaceDetectorPreset, AudioAnalyzerPreset, + BuiltInStandardEncoderPreset, StandardEncoderPreset + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.FaceDetectorPreset': 'FaceDetectorPreset', '#Microsoft.Media.AudioAnalyzerPreset': 'AudioAnalyzerPreset', '#Microsoft.Media.BuiltInStandardEncoderPreset': 'BuiltInStandardEncoderPreset', '#Microsoft.Media.StandardEncoderPreset': 'StandardEncoderPreset'} + } + + def __init__(self, **kwargs): + super(Preset, self).__init__(**kwargs) + self.odatatype = None + + +class AudioAnalyzerPreset(Preset): + """The Audio Analyzer preset applies a pre-defined set of AI-based analysis + operations, including speech transcription. Currently, the preset supports + processing of content with a single audio track. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VideoAnalyzerPreset + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param audio_language: The language for the audio payload in the input + using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you + know the language of your content, it is recommended that you specify it. + If the language isn't specified or set to null, automatic language + detection will choose the first language detected and process with the + selected language for the duration of the file. It does not currently + support dynamically switching between languages after the first language + is detected. The automatic detection works best with audio recordings with + clearly discernable speech. If automatic detection fails to find the + language, transcription would fallback to 'en-US'." The list of supported + languages is available here: + https://go.microsoft.com/fwlink/?linkid=2109463 + :type audio_language: str + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.VideoAnalyzerPreset': 'VideoAnalyzerPreset'} + } + + def __init__(self, **kwargs): + super(AudioAnalyzerPreset, self).__init__(**kwargs) + self.audio_language = kwargs.get('audio_language', None) + self.experimental_options = kwargs.get('experimental_options', None) + self.odatatype = '#Microsoft.Media.AudioAnalyzerPreset' + + +class Overlay(Model): + """Base type for all overlays - image, audio or video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AudioOverlay, VideoOverlay + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AudioOverlay': 'AudioOverlay', '#Microsoft.Media.VideoOverlay': 'VideoOverlay'} + } + + def __init__(self, **kwargs): + super(Overlay, self).__init__(**kwargs) + self.input_label = kwargs.get('input_label', None) + self.start = kwargs.get('start', None) + self.end = kwargs.get('end', None) + self.fade_in_duration = kwargs.get('fade_in_duration', None) + self.fade_out_duration = kwargs.get('fade_out_duration', None) + self.audio_gain_level = kwargs.get('audio_gain_level', None) + self.odatatype = None + + +class AudioOverlay(Overlay): + """Describes the properties of an audio overlay. + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AudioOverlay, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.AudioOverlay' + + +class BuiltInStandardEncoderPreset(Preset): + """Describes a built-in preset for encoding the input video with the Standard + Encoder. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param preset_name: Required. The built-in preset to be used for encoding + videos. Possible values include: 'H264SingleBitrateSD', + 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', + 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', + 'ContentAwareEncoding', 'H264MultipleBitrate1080p', + 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + :type preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset + """ + + _validation = { + 'odatatype': {'required': True}, + 'preset_name': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'preset_name': {'key': 'presetName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BuiltInStandardEncoderPreset, self).__init__(**kwargs) + self.preset_name = kwargs.get('preset_name', None) + self.odatatype = '#Microsoft.Media.BuiltInStandardEncoderPreset' + + +class CbcsDrmConfiguration(Model): + """Class to specify DRM configurations of CommonEncryptionCbcs scheme in + Streaming Policy. + + :param fair_play: FairPlay configurations + :type fair_play: + ~azure.mgmt.media.models.StreamingPolicyFairPlayConfiguration + :param play_ready: PlayReady configurations + :type play_ready: + ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration + :param widevine: Widevine configurations + :type widevine: + ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration + """ + + _attribute_map = { + 'fair_play': {'key': 'fairPlay', 'type': 'StreamingPolicyFairPlayConfiguration'}, + 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, + 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, + } + + def __init__(self, **kwargs): + super(CbcsDrmConfiguration, self).__init__(**kwargs) + self.fair_play = kwargs.get('fair_play', None) + self.play_ready = kwargs.get('play_ready', None) + self.widevine = kwargs.get('widevine', None) + + +class CencDrmConfiguration(Model): + """Class to specify DRM configurations of CommonEncryptionCenc scheme in + Streaming Policy. + + :param play_ready: PlayReady configurations + :type play_ready: + ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration + :param widevine: Widevine configurations + :type widevine: + ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration + """ + + _attribute_map = { + 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, + 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, + } + + def __init__(self, **kwargs): + super(CencDrmConfiguration, self).__init__(**kwargs) + self.play_ready = kwargs.get('play_ready', None) + self.widevine = kwargs.get('widevine', None) + + +class CheckNameAvailabilityInput(Model): + """The input to the check name availability request. + + :param name: The account name. + :type name: str + :param type: The account type. For a Media Services account, this should + be 'MediaServices'. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CommonEncryptionCbcs(Model): + """Class for CommonEncryptionCbcs encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param drm: Configuration of DRMs for current encryption scheme + :type drm: ~azure.mgmt.media.models.CbcsDrmConfiguration + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'drm': {'key': 'drm', 'type': 'CbcsDrmConfiguration'}, + } + + def __init__(self, **kwargs): + super(CommonEncryptionCbcs, self).__init__(**kwargs) + self.enabled_protocols = kwargs.get('enabled_protocols', None) + self.clear_tracks = kwargs.get('clear_tracks', None) + self.content_keys = kwargs.get('content_keys', None) + self.drm = kwargs.get('drm', None) + + +class CommonEncryptionCenc(Model): + """Class for envelope encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param drm: Configuration of DRMs for CommonEncryptionCenc encryption + scheme + :type drm: ~azure.mgmt.media.models.CencDrmConfiguration + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'drm': {'key': 'drm', 'type': 'CencDrmConfiguration'}, + } + + def __init__(self, **kwargs): + super(CommonEncryptionCenc, self).__init__(**kwargs) + self.enabled_protocols = kwargs.get('enabled_protocols', None) + self.clear_tracks = kwargs.get('clear_tracks', None) + self.content_keys = kwargs.get('content_keys', None) + self.drm = kwargs.get('drm', None) + + +class ContentKeyPolicy(ProxyResource): + """A Content Key Policy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar policy_id: The legacy Policy ID. + :vartype policy_id: str + :ivar created: The creation date of the Policy + :vartype created: datetime + :ivar last_modified: The last modified date of the Policy + :vartype last_modified: datetime + :param description: A description for the Policy. + :type description: str + :param options: Required. The Key Policy options. + :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'policy_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'options': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'policy_id': {'key': 'properties.policyId', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'options': {'key': 'properties.options', 'type': '[ContentKeyPolicyOption]'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicy, self).__init__(**kwargs) + self.policy_id = None + self.created = None + self.last_modified = None + self.description = kwargs.get('description', None) + self.options = kwargs.get('options', None) + + +class ContentKeyPolicyConfiguration(Model): + """Base class for Content Key Policy configuration. A derived class must be + used to create a configuration. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyClearKeyConfiguration, + ContentKeyPolicyUnknownConfiguration, + ContentKeyPolicyWidevineConfiguration, + ContentKeyPolicyPlayReadyConfiguration, + ContentKeyPolicyFairPlayConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration': 'ContentKeyPolicyClearKeyConfiguration', '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration': 'ContentKeyPolicyUnknownConfiguration', '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration': 'ContentKeyPolicyWidevineConfiguration', '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration': 'ContentKeyPolicyPlayReadyConfiguration', '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration': 'ContentKeyPolicyFairPlayConfiguration'} + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyConfiguration, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration): + """Represents a configuration for non-DRM keys. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyClearKeyConfiguration, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration' + + +class ContentKeyPolicyFairPlayConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for FairPlay licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param ask: Required. The key that must be used as FairPlay Application + Secret key. + :type ask: bytearray + :param fair_play_pfx_password: Required. The password encrypting FairPlay + certificate in PKCS 12 (pfx) format. + :type fair_play_pfx_password: str + :param fair_play_pfx: Required. The Base64 representation of FairPlay + certificate in PKCS 12 (pfx) format (including private key). + :type fair_play_pfx: str + :param rental_and_lease_key_type: Required. The rental and lease key type. + Possible values include: 'Unknown', 'Undefined', 'DualExpiry', + 'PersistentUnlimited', 'PersistentLimited' + :type rental_and_lease_key_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyFairPlayRentalAndLeaseKeyType + :param rental_duration: Required. The rental duration. Must be greater + than or equal to 0. + :type rental_duration: long + :param offline_rental_configuration: Offline rental policy + :type offline_rental_configuration: + ~azure.mgmt.media.models.ContentKeyPolicyFairPlayOfflineRentalConfiguration + """ + + _validation = { + 'odatatype': {'required': True}, + 'ask': {'required': True}, + 'fair_play_pfx_password': {'required': True}, + 'fair_play_pfx': {'required': True}, + 'rental_and_lease_key_type': {'required': True}, + 'rental_duration': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'ask': {'key': 'ask', 'type': 'bytearray'}, + 'fair_play_pfx_password': {'key': 'fairPlayPfxPassword', 'type': 'str'}, + 'fair_play_pfx': {'key': 'fairPlayPfx', 'type': 'str'}, + 'rental_and_lease_key_type': {'key': 'rentalAndLeaseKeyType', 'type': 'str'}, + 'rental_duration': {'key': 'rentalDuration', 'type': 'long'}, + 'offline_rental_configuration': {'key': 'offlineRentalConfiguration', 'type': 'ContentKeyPolicyFairPlayOfflineRentalConfiguration'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyFairPlayConfiguration, self).__init__(**kwargs) + self.ask = kwargs.get('ask', None) + self.fair_play_pfx_password = kwargs.get('fair_play_pfx_password', None) + self.fair_play_pfx = kwargs.get('fair_play_pfx', None) + self.rental_and_lease_key_type = kwargs.get('rental_and_lease_key_type', None) + self.rental_duration = kwargs.get('rental_duration', None) + self.offline_rental_configuration = kwargs.get('offline_rental_configuration', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' + + +class ContentKeyPolicyFairPlayOfflineRentalConfiguration(Model): + """ContentKeyPolicyFairPlayOfflineRentalConfiguration. + + All required parameters must be populated in order to send to Azure. + + :param playback_duration_seconds: Required. Playback duration + :type playback_duration_seconds: long + :param storage_duration_seconds: Required. Storage duration + :type storage_duration_seconds: long + """ + + _validation = { + 'playback_duration_seconds': {'required': True}, + 'storage_duration_seconds': {'required': True}, + } + + _attribute_map = { + 'playback_duration_seconds': {'key': 'playbackDurationSeconds', 'type': 'long'}, + 'storage_duration_seconds': {'key': 'storageDurationSeconds', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyFairPlayOfflineRentalConfiguration, self).__init__(**kwargs) + self.playback_duration_seconds = kwargs.get('playback_duration_seconds', None) + self.storage_duration_seconds = kwargs.get('storage_duration_seconds', None) + + +class ContentKeyPolicyRestriction(Model): + """Base class for Content Key Policy restrictions. A derived class must be + used to create a restriction. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyOpenRestriction, + ContentKeyPolicyUnknownRestriction, ContentKeyPolicyTokenRestriction + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyOpenRestriction': 'ContentKeyPolicyOpenRestriction', '#Microsoft.Media.ContentKeyPolicyUnknownRestriction': 'ContentKeyPolicyUnknownRestriction', '#Microsoft.Media.ContentKeyPolicyTokenRestriction': 'ContentKeyPolicyTokenRestriction'} + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyRestriction, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyOpenRestriction(ContentKeyPolicyRestriction): + """Represents an open restriction. License or key will be delivered on every + request. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyOpenRestriction, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyOpenRestriction' + + +class ContentKeyPolicyOption(Model): + """Represents a policy option. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar policy_option_id: The legacy Policy Option ID. + :vartype policy_option_id: str + :param name: The Policy Option description. + :type name: str + :param configuration: Required. The key delivery configuration. + :type configuration: + ~azure.mgmt.media.models.ContentKeyPolicyConfiguration + :param restriction: Required. The requirements that must be met to deliver + keys with this configuration + :type restriction: ~azure.mgmt.media.models.ContentKeyPolicyRestriction + """ + + _validation = { + 'policy_option_id': {'readonly': True}, + 'configuration': {'required': True}, + 'restriction': {'required': True}, + } + + _attribute_map = { + 'policy_option_id': {'key': 'policyOptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ContentKeyPolicyConfiguration'}, + 'restriction': {'key': 'restriction', 'type': 'ContentKeyPolicyRestriction'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyOption, self).__init__(**kwargs) + self.policy_option_id = None + self.name = kwargs.get('name', None) + self.configuration = kwargs.get('configuration', None) + self.restriction = kwargs.get('restriction', None) + + +class ContentKeyPolicyPlayReadyConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for PlayReady licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param licenses: Required. The PlayReady licenses. + :type licenses: + list[~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense] + :param response_custom_data: The custom response data. + :type response_custom_data: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'licenses': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'licenses': {'key': 'licenses', 'type': '[ContentKeyPolicyPlayReadyLicense]'}, + 'response_custom_data': {'key': 'responseCustomData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyConfiguration, self).__init__(**kwargs) + self.licenses = kwargs.get('licenses', None) + self.response_custom_data = kwargs.get('response_custom_data', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration' + + +class ContentKeyPolicyPlayReadyContentKeyLocation(Model): + """Base class for content key ID location. A derived class must be used to + represent the location. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, + ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'} + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyContentKeyLocation, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader(ContentKeyPolicyPlayReadyContentKeyLocation): + """Specifies that the content key ID is in the PlayReady header. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader' + + +class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(ContentKeyPolicyPlayReadyContentKeyLocation): + """Specifies that the content key ID is specified in the PlayReady + configuration. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_id: Required. The content key ID. + :type key_id: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'key_id': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_id': {'key': 'keyId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, self).__init__(**kwargs) + self.key_id = kwargs.get('key_id', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier' + + +class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction(Model): + """Configures the Explicit Analog Television Output Restriction control bits. + For further details see the PlayReady Compliance Rules. + + All required parameters must be populated in order to send to Azure. + + :param best_effort: Required. Indicates whether this restriction is + enforced on a Best Effort basis. + :type best_effort: bool + :param configuration_data: Required. Configures the restriction control + bits. Must be between 0 and 3 inclusive. + :type configuration_data: int + """ + + _validation = { + 'best_effort': {'required': True}, + 'configuration_data': {'required': True}, + } + + _attribute_map = { + 'best_effort': {'key': 'bestEffort', 'type': 'bool'}, + 'configuration_data': {'key': 'configurationData', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, self).__init__(**kwargs) + self.best_effort = kwargs.get('best_effort', None) + self.configuration_data = kwargs.get('configuration_data', None) + + +class ContentKeyPolicyPlayReadyLicense(Model): + """The PlayReady license. + + All required parameters must be populated in order to send to Azure. + + :param allow_test_devices: Required. A flag indicating whether test + devices can use the license. + :type allow_test_devices: bool + :param begin_date: The begin date of license + :type begin_date: datetime + :param expiration_date: The expiration date of license. + :type expiration_date: datetime + :param relative_begin_date: The relative begin date of license. + :type relative_begin_date: timedelta + :param relative_expiration_date: The relative expiration date of license. + :type relative_expiration_date: timedelta + :param grace_period: The grace period of license. + :type grace_period: timedelta + :param play_right: The license PlayRight + :type play_right: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyPlayRight + :param license_type: Required. The license type. Possible values include: + 'Unknown', 'NonPersistent', 'Persistent' + :type license_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicenseType + :param content_key_location: Required. The content key location. + :type content_key_location: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentKeyLocation + :param content_type: Required. The PlayReady content type. Possible values + include: 'Unknown', 'Unspecified', 'UltraVioletDownload', + 'UltraVioletStreaming' + :type content_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentType + """ + + _validation = { + 'allow_test_devices': {'required': True}, + 'license_type': {'required': True}, + 'content_key_location': {'required': True}, + 'content_type': {'required': True}, + } + + _attribute_map = { + 'allow_test_devices': {'key': 'allowTestDevices', 'type': 'bool'}, + 'begin_date': {'key': 'beginDate', 'type': 'iso-8601'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'relative_begin_date': {'key': 'relativeBeginDate', 'type': 'duration'}, + 'relative_expiration_date': {'key': 'relativeExpirationDate', 'type': 'duration'}, + 'grace_period': {'key': 'gracePeriod', 'type': 'duration'}, + 'play_right': {'key': 'playRight', 'type': 'ContentKeyPolicyPlayReadyPlayRight'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'content_key_location': {'key': 'contentKeyLocation', 'type': 'ContentKeyPolicyPlayReadyContentKeyLocation'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyLicense, self).__init__(**kwargs) + self.allow_test_devices = kwargs.get('allow_test_devices', None) + self.begin_date = kwargs.get('begin_date', None) + self.expiration_date = kwargs.get('expiration_date', None) + self.relative_begin_date = kwargs.get('relative_begin_date', None) + self.relative_expiration_date = kwargs.get('relative_expiration_date', None) + self.grace_period = kwargs.get('grace_period', None) + self.play_right = kwargs.get('play_right', None) + self.license_type = kwargs.get('license_type', None) + self.content_key_location = kwargs.get('content_key_location', None) + self.content_type = kwargs.get('content_type', None) + + +class ContentKeyPolicyPlayReadyPlayRight(Model): + """Configures the Play Right in the PlayReady license. + + All required parameters must be populated in order to send to Azure. + + :param first_play_expiration: The amount of time that the license is valid + after the license is first used to play content. + :type first_play_expiration: timedelta + :param scms_restriction: Configures the Serial Copy Management System + (SCMS) in the license. Must be between 0 and 3 inclusive. + :type scms_restriction: int + :param agc_and_color_stripe_restriction: Configures Automatic Gain Control + (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive. + :type agc_and_color_stripe_restriction: int + :param explicit_analog_television_output_restriction: Configures the + Explicit Analog Television Output Restriction in the license. + Configuration data must be between 0 and 3 inclusive. + :type explicit_analog_television_output_restriction: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction + :param digital_video_only_content_restriction: Required. Enables the Image + Constraint For Analog Component Video Restriction in the license. + :type digital_video_only_content_restriction: bool + :param image_constraint_for_analog_component_video_restriction: Required. + Enables the Image Constraint For Analog Component Video Restriction in the + license. + :type image_constraint_for_analog_component_video_restriction: bool + :param image_constraint_for_analog_computer_monitor_restriction: Required. + Enables the Image Constraint For Analog Component Video Restriction in the + license. + :type image_constraint_for_analog_computer_monitor_restriction: bool + :param allow_passing_video_content_to_unknown_output: Required. Configures + Unknown output handling settings of the license. Possible values include: + 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction' + :type allow_passing_video_content_to_unknown_output: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption + :param uncompressed_digital_video_opl: Specifies the output protection + level for uncompressed digital video. + :type uncompressed_digital_video_opl: int + :param compressed_digital_video_opl: Specifies the output protection level + for compressed digital video. + :type compressed_digital_video_opl: int + :param analog_video_opl: Specifies the output protection level for + compressed digital audio. + :type analog_video_opl: int + :param compressed_digital_audio_opl: Specifies the output protection level + for compressed digital audio. + :type compressed_digital_audio_opl: int + :param uncompressed_digital_audio_opl: Specifies the output protection + level for uncompressed digital audio. + :type uncompressed_digital_audio_opl: int + """ + + _validation = { + 'digital_video_only_content_restriction': {'required': True}, + 'image_constraint_for_analog_component_video_restriction': {'required': True}, + 'image_constraint_for_analog_computer_monitor_restriction': {'required': True}, + 'allow_passing_video_content_to_unknown_output': {'required': True}, + } + + _attribute_map = { + 'first_play_expiration': {'key': 'firstPlayExpiration', 'type': 'duration'}, + 'scms_restriction': {'key': 'scmsRestriction', 'type': 'int'}, + 'agc_and_color_stripe_restriction': {'key': 'agcAndColorStripeRestriction', 'type': 'int'}, + 'explicit_analog_television_output_restriction': {'key': 'explicitAnalogTelevisionOutputRestriction', 'type': 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction'}, + 'digital_video_only_content_restriction': {'key': 'digitalVideoOnlyContentRestriction', 'type': 'bool'}, + 'image_constraint_for_analog_component_video_restriction': {'key': 'imageConstraintForAnalogComponentVideoRestriction', 'type': 'bool'}, + 'image_constraint_for_analog_computer_monitor_restriction': {'key': 'imageConstraintForAnalogComputerMonitorRestriction', 'type': 'bool'}, + 'allow_passing_video_content_to_unknown_output': {'key': 'allowPassingVideoContentToUnknownOutput', 'type': 'str'}, + 'uncompressed_digital_video_opl': {'key': 'uncompressedDigitalVideoOpl', 'type': 'int'}, + 'compressed_digital_video_opl': {'key': 'compressedDigitalVideoOpl', 'type': 'int'}, + 'analog_video_opl': {'key': 'analogVideoOpl', 'type': 'int'}, + 'compressed_digital_audio_opl': {'key': 'compressedDigitalAudioOpl', 'type': 'int'}, + 'uncompressed_digital_audio_opl': {'key': 'uncompressedDigitalAudioOpl', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyPlayReadyPlayRight, self).__init__(**kwargs) + self.first_play_expiration = kwargs.get('first_play_expiration', None) + self.scms_restriction = kwargs.get('scms_restriction', None) + self.agc_and_color_stripe_restriction = kwargs.get('agc_and_color_stripe_restriction', None) + self.explicit_analog_television_output_restriction = kwargs.get('explicit_analog_television_output_restriction', None) + self.digital_video_only_content_restriction = kwargs.get('digital_video_only_content_restriction', None) + self.image_constraint_for_analog_component_video_restriction = kwargs.get('image_constraint_for_analog_component_video_restriction', None) + self.image_constraint_for_analog_computer_monitor_restriction = kwargs.get('image_constraint_for_analog_computer_monitor_restriction', None) + self.allow_passing_video_content_to_unknown_output = kwargs.get('allow_passing_video_content_to_unknown_output', None) + self.uncompressed_digital_video_opl = kwargs.get('uncompressed_digital_video_opl', None) + self.compressed_digital_video_opl = kwargs.get('compressed_digital_video_opl', None) + self.analog_video_opl = kwargs.get('analog_video_opl', None) + self.compressed_digital_audio_opl = kwargs.get('compressed_digital_audio_opl', None) + self.uncompressed_digital_audio_opl = kwargs.get('uncompressed_digital_audio_opl', None) + + +class ContentKeyPolicyProperties(Model): + """The properties of the Content Key Policy. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar policy_id: The legacy Policy ID. + :vartype policy_id: str + :ivar created: The creation date of the Policy + :vartype created: datetime + :ivar last_modified: The last modified date of the Policy + :vartype last_modified: datetime + :param description: A description for the Policy. + :type description: str + :param options: Required. The Key Policy options. + :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] + """ + + _validation = { + 'policy_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'options': {'required': True}, + } + + _attribute_map = { + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'created': {'key': 'created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'options': {'key': 'options', 'type': '[ContentKeyPolicyOption]'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyProperties, self).__init__(**kwargs) + self.policy_id = None + self.created = None + self.last_modified = None + self.description = kwargs.get('description', None) + self.options = kwargs.get('options', None) + + +class ContentKeyPolicyRestrictionTokenKey(Model): + """Base class for Content Key Policy key for token validation. A derived class + must be used to create a token key. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicySymmetricTokenKey, + ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicySymmetricTokenKey': 'ContentKeyPolicySymmetricTokenKey', '#Microsoft.Media.ContentKeyPolicyRsaTokenKey': 'ContentKeyPolicyRsaTokenKey', '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey': 'ContentKeyPolicyX509CertificateTokenKey'} + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyRestrictionTokenKey, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyRsaTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a RSA key for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param exponent: Required. The RSA Parameter exponent + :type exponent: bytearray + :param modulus: Required. The RSA Parameter modulus + :type modulus: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'exponent': {'required': True}, + 'modulus': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'exponent': {'key': 'exponent', 'type': 'bytearray'}, + 'modulus': {'key': 'modulus', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyRsaTokenKey, self).__init__(**kwargs) + self.exponent = kwargs.get('exponent', None) + self.modulus = kwargs.get('modulus', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyRsaTokenKey' + + +class ContentKeyPolicySymmetricTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a symmetric key for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_value: Required. The key value of the key + :type key_value: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'key_value': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_value': {'key': 'keyValue', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicySymmetricTokenKey, self).__init__(**kwargs) + self.key_value = kwargs.get('key_value', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicySymmetricTokenKey' + + +class ContentKeyPolicyTokenClaim(Model): + """Represents a token claim. + + :param claim_type: Token claim type. + :type claim_type: str + :param claim_value: Token claim value. + :type claim_value: str + """ + + _attribute_map = { + 'claim_type': {'key': 'claimType', 'type': 'str'}, + 'claim_value': {'key': 'claimValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyTokenClaim, self).__init__(**kwargs) + self.claim_type = kwargs.get('claim_type', None) + self.claim_value = kwargs.get('claim_value', None) + + +class ContentKeyPolicyTokenRestriction(ContentKeyPolicyRestriction): + """Represents a token restriction. Provided token must match these + requirements for successful license or key delivery. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param issuer: Required. The token issuer. + :type issuer: str + :param audience: Required. The audience for the token. + :type audience: str + :param primary_verification_key: Required. The primary verification key. + :type primary_verification_key: + ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey + :param alternate_verification_keys: A list of alternative verification + keys. + :type alternate_verification_keys: + list[~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey] + :param required_claims: A list of required token claims. + :type required_claims: + list[~azure.mgmt.media.models.ContentKeyPolicyTokenClaim] + :param restriction_token_type: Required. The type of token. Possible + values include: 'Unknown', 'Swt', 'Jwt' + :type restriction_token_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenType + :param open_id_connect_discovery_document: The OpenID connect discovery + document. + :type open_id_connect_discovery_document: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'issuer': {'required': True}, + 'audience': {'required': True}, + 'primary_verification_key': {'required': True}, + 'restriction_token_type': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + 'primary_verification_key': {'key': 'primaryVerificationKey', 'type': 'ContentKeyPolicyRestrictionTokenKey'}, + 'alternate_verification_keys': {'key': 'alternateVerificationKeys', 'type': '[ContentKeyPolicyRestrictionTokenKey]'}, + 'required_claims': {'key': 'requiredClaims', 'type': '[ContentKeyPolicyTokenClaim]'}, + 'restriction_token_type': {'key': 'restrictionTokenType', 'type': 'str'}, + 'open_id_connect_discovery_document': {'key': 'openIdConnectDiscoveryDocument', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyTokenRestriction, self).__init__(**kwargs) + self.issuer = kwargs.get('issuer', None) + self.audience = kwargs.get('audience', None) + self.primary_verification_key = kwargs.get('primary_verification_key', None) + self.alternate_verification_keys = kwargs.get('alternate_verification_keys', None) + self.required_claims = kwargs.get('required_claims', None) + self.restriction_token_type = kwargs.get('restriction_token_type', None) + self.open_id_connect_discovery_document = kwargs.get('open_id_connect_discovery_document', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyTokenRestriction' + + +class ContentKeyPolicyUnknownConfiguration(ContentKeyPolicyConfiguration): + """Represents a ContentKeyPolicyConfiguration that is unavailable in the + current API version. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyUnknownConfiguration, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration' + + +class ContentKeyPolicyUnknownRestriction(ContentKeyPolicyRestriction): + """Represents a ContentKeyPolicyRestriction that is unavailable in the current + API version. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyUnknownRestriction, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownRestriction' + + +class ContentKeyPolicyWidevineConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for Widevine licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param widevine_template: Required. The Widevine template. + :type widevine_template: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'widevine_template': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'widevine_template': {'key': 'widevineTemplate', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyWidevineConfiguration, self).__init__(**kwargs) + self.widevine_template = kwargs.get('widevine_template', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration' + + +class ContentKeyPolicyX509CertificateTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a certificate for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param raw_body: Required. The raw data field of a certificate in PKCS 12 + format (X509Certificate2 in .NET) + :type raw_body: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'raw_body': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'raw_body': {'key': 'rawBody', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(ContentKeyPolicyX509CertificateTokenKey, self).__init__(**kwargs) + self.raw_body = kwargs.get('raw_body', None) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey' + + +class CopyAudio(Codec): + """A codec flag, which tells the encoder to copy the input audio bitstream. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CopyAudio, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.CopyAudio' + + +class CopyVideo(Codec): + """A codec flag, which tells the encoder to copy the input video bitstream + without re-encoding. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CopyVideo, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.CopyVideo' + + +class CrossSiteAccessPolicies(Model): + """The client access policy. + + :param client_access_policy: The content of clientaccesspolicy.xml used by + Silverlight. + :type client_access_policy: str + :param cross_domain_policy: The content of crossdomain.xml used by + Silverlight. + :type cross_domain_policy: str + """ + + _attribute_map = { + 'client_access_policy': {'key': 'clientAccessPolicy', 'type': 'str'}, + 'cross_domain_policy': {'key': 'crossDomainPolicy', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CrossSiteAccessPolicies, self).__init__(**kwargs) + self.client_access_policy = kwargs.get('client_access_policy', None) + self.cross_domain_policy = kwargs.get('cross_domain_policy', None) + + +class DefaultKey(Model): + """Class to specify properties of default content key for each encryption + scheme. + + :param label: Label can be used to specify Content Key when creating a + Streaming Locator + :type label: str + :param policy_name: Policy used by Default Key + :type policy_name: str + """ + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DefaultKey, self).__init__(**kwargs) + self.label = kwargs.get('label', None) + self.policy_name = kwargs.get('policy_name', None) + + +class Deinterlace(Model): + """Describes the de-interlacing settings. + + :param parity: The field parity for de-interlacing, defaults to Auto. + Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst' + :type parity: str or ~azure.mgmt.media.models.DeinterlaceParity + :param mode: The deinterlacing mode. Defaults to AutoPixelAdaptive. + Possible values include: 'Off', 'AutoPixelAdaptive' + :type mode: str or ~azure.mgmt.media.models.DeinterlaceMode + """ + + _attribute_map = { + 'parity': {'key': 'parity', 'type': 'str'}, + 'mode': {'key': 'mode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Deinterlace, self).__init__(**kwargs) + self.parity = kwargs.get('parity', None) + self.mode = kwargs.get('mode', None) + + +class EnabledProtocols(Model): + """Class to specify which protocols are enabled. + + All required parameters must be populated in order to send to Azure. + + :param download: Required. Enable Download protocol or not + :type download: bool + :param dash: Required. Enable DASH protocol or not + :type dash: bool + :param hls: Required. Enable HLS protocol or not + :type hls: bool + :param smooth_streaming: Required. Enable SmoothStreaming protocol or not + :type smooth_streaming: bool + """ + + _validation = { + 'download': {'required': True}, + 'dash': {'required': True}, + 'hls': {'required': True}, + 'smooth_streaming': {'required': True}, + } + + _attribute_map = { + 'download': {'key': 'download', 'type': 'bool'}, + 'dash': {'key': 'dash', 'type': 'bool'}, + 'hls': {'key': 'hls', 'type': 'bool'}, + 'smooth_streaming': {'key': 'smoothStreaming', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(EnabledProtocols, self).__init__(**kwargs) + self.download = kwargs.get('download', None) + self.dash = kwargs.get('dash', None) + self.hls = kwargs.get('hls', None) + self.smooth_streaming = kwargs.get('smooth_streaming', None) + + +class EntityNameAvailabilityCheckOutput(Model): + """The response from the check name availability request. + + All required parameters must be populated in order to send to Azure. + + :param name_available: Required. Specifies if the name is available. + :type name_available: bool + :param reason: Specifies the reason if the name is not available. + :type reason: str + :param message: Specifies the detailed reason if the name is not + available. + :type message: str + """ + + _validation = { + 'name_available': {'required': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EntityNameAvailabilityCheckOutput, self).__init__(**kwargs) + self.name_available = kwargs.get('name_available', None) + self.reason = kwargs.get('reason', None) + self.message = kwargs.get('message', None) + + +class EnvelopeEncryption(Model): + """Class for EnvelopeEncryption encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param custom_key_acquisition_url_template: Template for the URL of the + custom service delivering keys to end user players. Not required when + using Azure Media Services for issuing keys. The template supports + replaceable tokens that the service will update at runtime with the value + specific to the request. The currently supported token values are + {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_key_acquisition_url_template: str + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'custom_key_acquisition_url_template': {'key': 'customKeyAcquisitionUrlTemplate', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EnvelopeEncryption, self).__init__(**kwargs) + self.enabled_protocols = kwargs.get('enabled_protocols', None) + self.clear_tracks = kwargs.get('clear_tracks', None) + self.content_keys = kwargs.get('content_keys', None) + self.custom_key_acquisition_url_template = kwargs.get('custom_key_acquisition_url_template', None) + + +class FaceDetectorPreset(Preset): + """Describes all the settings to be used when analyzing a video in order to + detect all the faces present. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param resolution: Specifies the maximum resolution at which your video is + analyzed. The default behavior is "SourceResolution," which will keep the + input video at its original resolution when analyzed. Using + "StandardDefinition" will resize input videos to standard definition while + preserving the appropriate aspect ratio. It will only resize if the video + is of higher resolution. For example, a 1920x1080 input would be scaled to + 640x360 before processing. Switching to "StandardDefinition" will reduce + the time it takes to process high resolution video. It may also reduce the + cost of using this component (see + https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics + for details). However, faces that end up being too small in the resized + video may not be detected. Possible values include: 'SourceResolution', + 'StandardDefinition' + :type resolution: str or ~azure.mgmt.media.models.AnalysisResolution + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'resolution': {'key': 'resolution', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(FaceDetectorPreset, self).__init__(**kwargs) + self.resolution = kwargs.get('resolution', None) + self.experimental_options = kwargs.get('experimental_options', None) + self.odatatype = '#Microsoft.Media.FaceDetectorPreset' + + +class Filters(Model): + """Describes all the filtering operations, such as de-interlacing, rotation + etc. that are to be applied to the input media before encoding. + + :param deinterlace: The de-interlacing settings. + :type deinterlace: ~azure.mgmt.media.models.Deinterlace + :param rotation: The rotation, if any, to be applied to the input video, + before it is encoded. Default is Auto. Possible values include: 'Auto', + 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270' + :type rotation: str or ~azure.mgmt.media.models.Rotation + :param crop: The parameters for the rectangular window with which to crop + the input video. + :type crop: ~azure.mgmt.media.models.Rectangle + :param overlays: The properties of overlays to be applied to the input + video. These could be audio, image or video overlays. + :type overlays: list[~azure.mgmt.media.models.Overlay] + """ + + _attribute_map = { + 'deinterlace': {'key': 'deinterlace', 'type': 'Deinterlace'}, + 'rotation': {'key': 'rotation', 'type': 'str'}, + 'crop': {'key': 'crop', 'type': 'Rectangle'}, + 'overlays': {'key': 'overlays', 'type': '[Overlay]'}, + } + + def __init__(self, **kwargs): + super(Filters, self).__init__(**kwargs) + self.deinterlace = kwargs.get('deinterlace', None) + self.rotation = kwargs.get('rotation', None) + self.crop = kwargs.get('crop', None) + self.overlays = kwargs.get('overlays', None) + + +class FilterTrackPropertyCondition(Model): + """The class to specify one track property condition. + + All required parameters must be populated in order to send to Azure. + + :param property: Required. The track property type. Possible values + include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate' + :type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType + :param value: Required. The track property value. + :type value: str + :param operation: Required. The track property condition operation. + Possible values include: 'Equal', 'NotEqual' + :type operation: str or + ~azure.mgmt.media.models.FilterTrackPropertyCompareOperation + """ + + _validation = { + 'property': {'required': True}, + 'value': {'required': True}, + 'operation': {'required': True}, + } + + _attribute_map = { + 'property': {'key': 'property', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FilterTrackPropertyCondition, self).__init__(**kwargs) + self.property = kwargs.get('property', None) + self.value = kwargs.get('value', None) + self.operation = kwargs.get('operation', None) + + +class FilterTrackSelection(Model): + """Representing a list of FilterTrackPropertyConditions to select a track. + The filters are combined using a logical AND operation. + + All required parameters must be populated in order to send to Azure. + + :param track_selections: Required. The track selections. + :type track_selections: + list[~azure.mgmt.media.models.FilterTrackPropertyCondition] + """ + + _validation = { + 'track_selections': {'required': True}, + } + + _attribute_map = { + 'track_selections': {'key': 'trackSelections', 'type': '[FilterTrackPropertyCondition]'}, + } + + def __init__(self, **kwargs): + super(FilterTrackSelection, self).__init__(**kwargs) + self.track_selections = kwargs.get('track_selections', None) + + +class FirstQuality(Model): + """Filter First Quality. + + All required parameters must be populated in order to send to Azure. + + :param bitrate: Required. The first quality bitrate. + :type bitrate: int + """ + + _validation = { + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(FirstQuality, self).__init__(**kwargs) + self.bitrate = kwargs.get('bitrate', None) + + +class Format(Model): + """Base class for output. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ImageFormat, MultiBitrateFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ImageFormat': 'ImageFormat', '#Microsoft.Media.MultiBitrateFormat': 'MultiBitrateFormat'} + } + + def __init__(self, **kwargs): + super(Format, self).__init__(**kwargs) + self.filename_pattern = kwargs.get('filename_pattern', None) + self.odatatype = None + + +class Layer(Model): + """The encoder can be configured to produce video and/or images (thumbnails) + at different resolutions, by specifying a layer for each desired + resolution. A layer represents the properties for the video or image at a + resolution. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VideoLayer, JpgLayer, PngLayer + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.VideoLayer': 'VideoLayer', '#Microsoft.Media.JpgLayer': 'JpgLayer', '#Microsoft.Media.PngLayer': 'PngLayer'} + } + + def __init__(self, **kwargs): + super(Layer, self).__init__(**kwargs) + self.width = kwargs.get('width', None) + self.height = kwargs.get('height', None) + self.label = kwargs.get('label', None) + self.odatatype = None + + +class VideoLayer(Layer): + """Describes the settings to be used when encoding the input video into a + desired output bitrate layer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: H264Layer + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param bitrate: Required. The average bitrate in bits per second at which + to encode the input video when generating this layer. This is a required + field. + :type bitrate: int + :param max_bitrate: The maximum bitrate (in bits per second), at which the + VBV buffer should be assumed to refill. If not specified, defaults to the + same value as bitrate. + :type max_bitrate: int + :param b_frames: The number of B-frames to be used when encoding this + layer. If not specified, the encoder chooses an appropriate number based + on the video profile and level. + :type b_frames: int + :param frame_rate: The frame rate (in frames per second) at which to + encode this layer. The value can be in the form of M/N where M and N are + integers (For example, 30000/1001), or in the form of a number (For + example, 30, or 29.97). The encoder enforces constraints on allowed frame + rates based on the profile and level. If it is not specified, the encoder + will use the same frame rate as the input video. + :type frame_rate: str + :param slices: The number of slices to be used when encoding this layer. + If not specified, default is zero, which means that encoder will use a + single slice for each frame. + :type slices: int + :param adaptive_bframe: Whether or not adaptive B-frames are to be used + when encoding this layer. If not specified, the encoder will turn it on + whenever the video profile permits its use. + :type adaptive_bframe: bool + """ + + _validation = { + 'odatatype': {'required': True}, + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, + 'b_frames': {'key': 'bFrames', 'type': 'int'}, + 'frame_rate': {'key': 'frameRate', 'type': 'str'}, + 'slices': {'key': 'slices', 'type': 'int'}, + 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.H264Layer': 'H264Layer'} + } + + def __init__(self, **kwargs): + super(VideoLayer, self).__init__(**kwargs) + self.bitrate = kwargs.get('bitrate', None) + self.max_bitrate = kwargs.get('max_bitrate', None) + self.b_frames = kwargs.get('b_frames', None) + self.frame_rate = kwargs.get('frame_rate', None) + self.slices = kwargs.get('slices', None) + self.adaptive_bframe = kwargs.get('adaptive_bframe', None) + self.odatatype = '#Microsoft.Media.VideoLayer' + + +class H264Layer(VideoLayer): + """Describes the settings to be used when encoding the input video into a + desired output bitrate layer with the H.264 video codec. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param bitrate: Required. The average bitrate in bits per second at which + to encode the input video when generating this layer. This is a required + field. + :type bitrate: int + :param max_bitrate: The maximum bitrate (in bits per second), at which the + VBV buffer should be assumed to refill. If not specified, defaults to the + same value as bitrate. + :type max_bitrate: int + :param b_frames: The number of B-frames to be used when encoding this + layer. If not specified, the encoder chooses an appropriate number based + on the video profile and level. + :type b_frames: int + :param frame_rate: The frame rate (in frames per second) at which to + encode this layer. The value can be in the form of M/N where M and N are + integers (For example, 30000/1001), or in the form of a number (For + example, 30, or 29.97). The encoder enforces constraints on allowed frame + rates based on the profile and level. If it is not specified, the encoder + will use the same frame rate as the input video. + :type frame_rate: str + :param slices: The number of slices to be used when encoding this layer. + If not specified, default is zero, which means that encoder will use a + single slice for each frame. + :type slices: int + :param adaptive_bframe: Whether or not adaptive B-frames are to be used + when encoding this layer. If not specified, the encoder will turn it on + whenever the video profile permits its use. + :type adaptive_bframe: bool + :param profile: We currently support Baseline, Main, High, High422, + High444. Default is Auto. Possible values include: 'Auto', 'Baseline', + 'Main', 'High', 'High422', 'High444' + :type profile: str or ~azure.mgmt.media.models.H264VideoProfile + :param level: We currently support Level up to 6.2. The value can be Auto, + or a number that matches the H.264 profile. If not specified, the default + is Auto, which lets the encoder choose the Level that is appropriate for + this layer. + :type level: str + :param buffer_window: The VBV buffer window length. The value should be in + ISO 8601 format. The value should be in the range [0.1-100] seconds. The + default is 5 seconds (for example, PT5S). + :type buffer_window: timedelta + :param reference_frames: The number of reference frames to be used when + encoding this layer. If not specified, the encoder determines an + appropriate number based on the encoder complexity setting. + :type reference_frames: int + :param entropy_mode: The entropy mode to be used for this layer. If not + specified, the encoder chooses the mode that is appropriate for the + profile and level. Possible values include: 'Cabac', 'Cavlc' + :type entropy_mode: str or ~azure.mgmt.media.models.EntropyMode + """ + + _validation = { + 'odatatype': {'required': True}, + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, + 'b_frames': {'key': 'bFrames', 'type': 'int'}, + 'frame_rate': {'key': 'frameRate', 'type': 'str'}, + 'slices': {'key': 'slices', 'type': 'int'}, + 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, + 'profile': {'key': 'profile', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'buffer_window': {'key': 'bufferWindow', 'type': 'duration'}, + 'reference_frames': {'key': 'referenceFrames', 'type': 'int'}, + 'entropy_mode': {'key': 'entropyMode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(H264Layer, self).__init__(**kwargs) + self.profile = kwargs.get('profile', None) + self.level = kwargs.get('level', None) + self.buffer_window = kwargs.get('buffer_window', None) + self.reference_frames = kwargs.get('reference_frames', None) + self.entropy_mode = kwargs.get('entropy_mode', None) + self.odatatype = '#Microsoft.Media.H264Layer' + + +class Video(Codec): + """Describes the basic properties for encoding the input video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Image, H264Video + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Image': 'Image', '#Microsoft.Media.H264Video': 'H264Video'} + } + + def __init__(self, **kwargs): + super(Video, self).__init__(**kwargs) + self.key_frame_interval = kwargs.get('key_frame_interval', None) + self.stretch_mode = kwargs.get('stretch_mode', None) + self.odatatype = '#Microsoft.Media.Video' + + +class H264Video(Video): + """Describes all the properties for encoding a video with the H.264 codec. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param scene_change_detection: Whether or not the encoder should insert + key frames at scene changes. If not specified, the default is false. This + flag should be set to true only when the encoder is being configured to + produce a single output video. + :type scene_change_detection: bool + :param complexity: Tells the encoder how to choose its encoding settings. + The default value is Balanced. Possible values include: 'Speed', + 'Balanced', 'Quality' + :type complexity: str or ~azure.mgmt.media.models.H264Complexity + :param layers: The collection of output H.264 layers to be produced by the + encoder. + :type layers: list[~azure.mgmt.media.models.H264Layer] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'scene_change_detection': {'key': 'sceneChangeDetection', 'type': 'bool'}, + 'complexity': {'key': 'complexity', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[H264Layer]'}, + } + + def __init__(self, **kwargs): + super(H264Video, self).__init__(**kwargs) + self.scene_change_detection = kwargs.get('scene_change_detection', None) + self.complexity = kwargs.get('complexity', None) + self.layers = kwargs.get('layers', None) + self.odatatype = '#Microsoft.Media.H264Video' + + +class Hls(Model): + """The HLS configuration. + + :param fragments_per_ts_segment: The amount of fragments per HTTP Live + Streaming (HLS) segment. + :type fragments_per_ts_segment: int + """ + + _attribute_map = { + 'fragments_per_ts_segment': {'key': 'fragmentsPerTsSegment', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Hls, self).__init__(**kwargs) + self.fragments_per_ts_segment = kwargs.get('fragments_per_ts_segment', None) + + +class Image(Video): + """Describes the basic properties for generating thumbnails from the input + video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JpgImage, PngImage + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JpgImage': 'JpgImage', '#Microsoft.Media.PngImage': 'PngImage'} + } + + def __init__(self, **kwargs): + super(Image, self).__init__(**kwargs) + self.start = kwargs.get('start', None) + self.step = kwargs.get('step', None) + self.range = kwargs.get('range', None) + self.odatatype = '#Microsoft.Media.Image' + + +class ImageFormat(Format): + """Describes the properties for an output image file. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JpgFormat, PngFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JpgFormat': 'JpgFormat', '#Microsoft.Media.PngFormat': 'PngFormat'} + } + + def __init__(self, **kwargs): + super(ImageFormat, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ImageFormat' + + +class IPAccessControl(Model): + """The IP access control. + + :param allow: The IP allow list. + :type allow: list[~azure.mgmt.media.models.IPRange] + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': '[IPRange]'}, + } + + def __init__(self, **kwargs): + super(IPAccessControl, self).__init__(**kwargs) + self.allow = kwargs.get('allow', None) + + +class IPRange(Model): + """The IP address range in the CIDR scheme. + + :param name: The friendly name for the IP address range. + :type name: str + :param address: The IP address. + :type address: str + :param subnet_prefix_length: The subnet mask prefix length (see CIDR + notation). + :type subnet_prefix_length: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'subnet_prefix_length': {'key': 'subnetPrefixLength', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(IPRange, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.address = kwargs.get('address', None) + self.subnet_prefix_length = kwargs.get('subnet_prefix_length', None) + + +class Job(ProxyResource): + """A Job resource type. The progress and state can be obtained by polling a + Job or subscribing to events using EventGrid. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar created: The UTC date and time when the Job was created, in + 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype created: datetime + :ivar state: The current state of the job. Possible values include: + 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', + 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :param description: Optional customer supplied description of the Job. + :type description: str + :param input: Required. The inputs for the Job. + :type input: ~azure.mgmt.media.models.JobInput + :ivar last_modified: The UTC date and time when the Job was last updated, + in 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype last_modified: datetime + :param outputs: Required. The outputs for the Job. + :type outputs: list[~azure.mgmt.media.models.JobOutput] + :param priority: Priority with which the job should be processed. Higher + priority jobs are processed before lower priority jobs. If not set, the + default is normal. Possible values include: 'Low', 'Normal', 'High' + :type priority: str or ~azure.mgmt.media.models.Priority + :param correlation_data: Customer provided key, value pairs that will be + returned in Job and JobOutput state events. + :type correlation_data: dict[str, str] + :ivar start_time: The UTC date and time at which this Job began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job finished + processing. + :vartype end_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + 'state': {'readonly': True}, + 'input': {'required': True}, + 'last_modified': {'readonly': True}, + 'outputs': {'required': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'input': {'key': 'properties.input', 'type': 'JobInput'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'outputs': {'key': 'properties.outputs', 'type': '[JobOutput]'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'correlation_data': {'key': 'properties.correlationData', 'type': '{str}'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(Job, self).__init__(**kwargs) + self.created = None + self.state = None + self.description = kwargs.get('description', None) + self.input = kwargs.get('input', None) + self.last_modified = None + self.outputs = kwargs.get('outputs', None) + self.priority = kwargs.get('priority', None) + self.correlation_data = kwargs.get('correlation_data', None) + self.start_time = None + self.end_time = None + + +class JobError(Model): + """Details of JobOutput errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code describing the error. Possible values include: + 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', + 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', + 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' + :vartype code: str or ~azure.mgmt.media.models.JobErrorCode + :ivar message: A human-readable language-dependent representation of the + error. + :vartype message: str + :ivar category: Helps with categorization of errors. Possible values + include: 'Service', 'Download', 'Upload', 'Configuration', 'Content' + :vartype category: str or ~azure.mgmt.media.models.JobErrorCategory + :ivar retry: Indicates that it may be possible to retry the Job. If retry + is unsuccessful, please contact Azure support via Azure Portal. Possible + values include: 'DoNotRetry', 'MayRetry' + :vartype retry: str or ~azure.mgmt.media.models.JobRetry + :ivar details: An array of details about specific errors that led to this + reported error. + :vartype details: list[~azure.mgmt.media.models.JobErrorDetail] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'category': {'readonly': True}, + 'retry': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'retry': {'key': 'retry', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[JobErrorDetail]'}, + } + + def __init__(self, **kwargs): + super(JobError, self).__init__(**kwargs) + self.code = None + self.message = None + self.category = None + self.retry = None + self.details = None + + +class JobErrorDetail(Model): + """Details of JobOutput errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Code describing the error detail. + :vartype code: str + :ivar message: A human-readable representation of the error. + :vartype message: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(JobErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + + +class JobInput(Model): + """Base class for inputs to a Job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobInputClip, JobInputs + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobInputClip': 'JobInputClip', '#Microsoft.Media.JobInputs': 'JobInputs'} + } + + def __init__(self, **kwargs): + super(JobInput, self).__init__(**kwargs) + self.odatatype = None + + +class JobInputClip(JobInput): + """Represents input files for a Job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobInputAsset, JobInputHttp + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobInputAsset': 'JobInputAsset', '#Microsoft.Media.JobInputHttp': 'JobInputHttp'} + } + + def __init__(self, **kwargs): + super(JobInputClip, self).__init__(**kwargs) + self.files = kwargs.get('files', None) + self.start = kwargs.get('start', None) + self.end = kwargs.get('end', None) + self.label = kwargs.get('label', None) + self.odatatype = '#Microsoft.Media.JobInputClip' + + +class JobInputAsset(JobInputClip): + """Represents an Asset for input into a Job. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + :param asset_name: Required. The name of the input Asset. + :type asset_name: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'asset_name': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(JobInputAsset, self).__init__(**kwargs) + self.asset_name = kwargs.get('asset_name', None) + self.odatatype = '#Microsoft.Media.JobInputAsset' + + +class JobInputHttp(JobInputClip): + """Represents HTTPS job input. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + :param base_uri: Base URI for HTTPS job input. It will be concatenated + with provided file names. If no base uri is given, then the provided file + list is assumed to be fully qualified uris. Maximum length of 4000 + characters. + :type base_uri: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(JobInputHttp, self).__init__(**kwargs) + self.base_uri = kwargs.get('base_uri', None) + self.odatatype = '#Microsoft.Media.JobInputHttp' + + +class JobInputs(JobInput): + """Describes a list of inputs to a Job. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param inputs: List of inputs to a Job. + :type inputs: list[~azure.mgmt.media.models.JobInput] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[JobInput]'}, + } + + def __init__(self, **kwargs): + super(JobInputs, self).__init__(**kwargs) + self.inputs = kwargs.get('inputs', None) + self.odatatype = '#Microsoft.Media.JobInputs' + + +class JobOutput(Model): + """Describes all the properties of a JobOutput. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobOutputAsset + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar error: If the JobOutput is in the Error state, it contains the + details of the error. + :vartype error: ~azure.mgmt.media.models.JobError + :ivar state: Describes the state of the JobOutput. Possible values + include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', + 'Queued', 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :ivar progress: If the JobOutput is in a Processing state, this contains + the Job completion percentage. The value is an estimate and not intended + to be used to predict Job completion times. To determine if the JobOutput + is complete, use the State property. + :vartype progress: int + :param label: A label that is assigned to a JobOutput in order to help + uniquely identify it. This is useful when your Transform has more than one + TransformOutput, whereby your Job has more than one JobOutput. In such + cases, when you submit the Job, you will add two or more JobOutputs, in + the same order as TransformOutputs in the Transform. Subsequently, when + you retrieve the Job, either through events or on a GET request, you can + use the label to easily identify the JobOutput. If a label is not + provided, a default value of '{presetName}_{outputIndex}' will be used, + where the preset name is the name of the preset in the corresponding + TransformOutput and the output index is the relative index of the this + JobOutput within the Job. Note that this index is the same as the relative + index of the corresponding TransformOutput within its Transform. + :type label: str + :ivar start_time: The UTC date and time at which this Job Output began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job Output finished + processing. + :vartype end_time: datetime + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'error': {'readonly': True}, + 'state': {'readonly': True}, + 'progress': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'JobError'}, + 'state': {'key': 'state', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'int'}, + 'label': {'key': 'label', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobOutputAsset': 'JobOutputAsset'} + } + + def __init__(self, **kwargs): + super(JobOutput, self).__init__(**kwargs) + self.error = None + self.state = None + self.progress = None + self.label = kwargs.get('label', None) + self.start_time = None + self.end_time = None + self.odatatype = None + + +class JobOutputAsset(JobOutput): + """Represents an Asset used as a JobOutput. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar error: If the JobOutput is in the Error state, it contains the + details of the error. + :vartype error: ~azure.mgmt.media.models.JobError + :ivar state: Describes the state of the JobOutput. Possible values + include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', + 'Queued', 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :ivar progress: If the JobOutput is in a Processing state, this contains + the Job completion percentage. The value is an estimate and not intended + to be used to predict Job completion times. To determine if the JobOutput + is complete, use the State property. + :vartype progress: int + :param label: A label that is assigned to a JobOutput in order to help + uniquely identify it. This is useful when your Transform has more than one + TransformOutput, whereby your Job has more than one JobOutput. In such + cases, when you submit the Job, you will add two or more JobOutputs, in + the same order as TransformOutputs in the Transform. Subsequently, when + you retrieve the Job, either through events or on a GET request, you can + use the label to easily identify the JobOutput. If a label is not + provided, a default value of '{presetName}_{outputIndex}' will be used, + where the preset name is the name of the preset in the corresponding + TransformOutput and the output index is the relative index of the this + JobOutput within the Job. Note that this index is the same as the relative + index of the corresponding TransformOutput within its Transform. + :type label: str + :ivar start_time: The UTC date and time at which this Job Output began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job Output finished + processing. + :vartype end_time: datetime + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param asset_name: Required. The name of the output Asset. + :type asset_name: str + """ + + _validation = { + 'error': {'readonly': True}, + 'state': {'readonly': True}, + 'progress': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'odatatype': {'required': True}, + 'asset_name': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'JobError'}, + 'state': {'key': 'state', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'int'}, + 'label': {'key': 'label', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(JobOutputAsset, self).__init__(**kwargs) + self.asset_name = kwargs.get('asset_name', None) + self.odatatype = '#Microsoft.Media.JobOutputAsset' + + +class JpgFormat(ImageFormat): + """Describes the settings for producing JPEG thumbnails. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(JpgFormat, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.JpgFormat' + + +class JpgImage(Image): + """Describes the properties for producing a series of JPEG images from the + input video. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + :param layers: A collection of output JPEG image layers to be produced by + the encoder. + :type layers: list[~azure.mgmt.media.models.JpgLayer] + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[JpgLayer]'}, + } + + def __init__(self, **kwargs): + super(JpgImage, self).__init__(**kwargs) + self.layers = kwargs.get('layers', None) + self.odatatype = '#Microsoft.Media.JpgImage' + + +class JpgLayer(Layer): + """Describes the settings to produce a JPEG image from the input video. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param quality: The compression quality of the JPEG output. Range is from + 0-100 and the default is 70. + :type quality: int + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'quality': {'key': 'quality', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(JpgLayer, self).__init__(**kwargs) + self.quality = kwargs.get('quality', None) + self.odatatype = '#Microsoft.Media.JpgLayer' + + +class ListContainerSasInput(Model): + """The parameters to the list SAS request. + + :param permissions: The permissions to set on the SAS URL. Possible values + include: 'Read', 'ReadWrite', 'ReadWriteDelete' + :type permissions: str or + ~azure.mgmt.media.models.AssetContainerPermission + :param expiry_time: The SAS URL expiration time. This must be less than + 24 hours from the current time. + :type expiry_time: datetime + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'str'}, + 'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(ListContainerSasInput, self).__init__(**kwargs) + self.permissions = kwargs.get('permissions', None) + self.expiry_time = kwargs.get('expiry_time', None) + + +class ListContentKeysResponse(Model): + """Class of response for listContentKeys action. + + :param content_keys: ContentKeys used by current Streaming Locator + :type content_keys: + list[~azure.mgmt.media.models.StreamingLocatorContentKey] + """ + + _attribute_map = { + 'content_keys': {'key': 'contentKeys', 'type': '[StreamingLocatorContentKey]'}, + } + + def __init__(self, **kwargs): + super(ListContentKeysResponse, self).__init__(**kwargs) + self.content_keys = kwargs.get('content_keys', None) + + +class ListPathsResponse(Model): + """Class of response for listPaths action. + + :param streaming_paths: Streaming Paths supported by current Streaming + Locator + :type streaming_paths: list[~azure.mgmt.media.models.StreamingPath] + :param download_paths: Download Paths supported by current Streaming + Locator + :type download_paths: list[str] + """ + + _attribute_map = { + 'streaming_paths': {'key': 'streamingPaths', 'type': '[StreamingPath]'}, + 'download_paths': {'key': 'downloadPaths', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ListPathsResponse, self).__init__(**kwargs) + self.streaming_paths = kwargs.get('streaming_paths', None) + self.download_paths = kwargs.get('download_paths', None) + + +class ListStreamingLocatorsResponse(Model): + """The Streaming Locators associated with this Asset. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar streaming_locators: The list of Streaming Locators. + :vartype streaming_locators: + list[~azure.mgmt.media.models.AssetStreamingLocator] + """ + + _validation = { + 'streaming_locators': {'readonly': True}, + } + + _attribute_map = { + 'streaming_locators': {'key': 'streamingLocators', 'type': '[AssetStreamingLocator]'}, + } + + def __init__(self, **kwargs): + super(ListStreamingLocatorsResponse, self).__init__(**kwargs) + self.streaming_locators = None + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked resource. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + """ + + _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'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + +class LiveEvent(TrackedResource): + """The Live Event. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :param description: The Live Event description. + :type description: str + :param input: Required. The Live Event input. + :type input: ~azure.mgmt.media.models.LiveEventInput + :param preview: The Live Event preview. + :type preview: ~azure.mgmt.media.models.LiveEventPreview + :param encoding: The Live Event encoding. + :type encoding: ~azure.mgmt.media.models.LiveEventEncoding + :ivar provisioning_state: The provisioning state of the Live Event. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the Live Event. Possible + values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.media.models.LiveEventResourceState + :param cross_site_access_policies: The Live Event access policies. + :type cross_site_access_policies: + ~azure.mgmt.media.models.CrossSiteAccessPolicies + :param vanity_url: Specifies whether to use a vanity url with the Live + Event. This value is specified at creation time and cannot be updated. + :type vanity_url: bool + :param stream_options: The options to use for the LiveEvent. This value + is specified at creation time and cannot be updated. + :type stream_options: list[str or + ~azure.mgmt.media.models.StreamOptionsFlag] + :ivar created: The exact time the Live Event was created. + :vartype created: datetime + :ivar last_modified: The exact time the Live Event was last modified. + :vartype last_modified: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'input': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'input': {'key': 'properties.input', 'type': 'LiveEventInput'}, + 'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'}, + 'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, + 'vanity_url': {'key': 'properties.vanityUrl', 'type': 'bool'}, + 'stream_options': {'key': 'properties.streamOptions', 'type': '[str]'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(LiveEvent, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.input = kwargs.get('input', None) + self.preview = kwargs.get('preview', None) + self.encoding = kwargs.get('encoding', None) + self.provisioning_state = None + self.resource_state = None + self.cross_site_access_policies = kwargs.get('cross_site_access_policies', None) + self.vanity_url = kwargs.get('vanity_url', None) + self.stream_options = kwargs.get('stream_options', None) + self.created = None + self.last_modified = None + + +class LiveEventActionInput(Model): + """The LiveEvent action input parameter definition. + + :param remove_outputs_on_stop: The flag indicates if remove LiveOutputs on + Stop. + :type remove_outputs_on_stop: bool + """ + + _attribute_map = { + 'remove_outputs_on_stop': {'key': 'removeOutputsOnStop', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(LiveEventActionInput, self).__init__(**kwargs) + self.remove_outputs_on_stop = kwargs.get('remove_outputs_on_stop', None) + + +class LiveEventEncoding(Model): + """The Live Event encoding. + + :param encoding_type: The encoding type for Live Event. This value is + specified at creation time and cannot be updated. Possible values include: + 'None', 'Basic', 'Standard', 'Premium1080p' + :type encoding_type: str or ~azure.mgmt.media.models.LiveEventEncodingType + :param preset_name: The encoding preset name. This value is specified at + creation time and cannot be updated. + :type preset_name: str + """ + + _attribute_map = { + 'encoding_type': {'key': 'encodingType', 'type': 'str'}, + 'preset_name': {'key': 'presetName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LiveEventEncoding, self).__init__(**kwargs) + self.encoding_type = kwargs.get('encoding_type', None) + self.preset_name = kwargs.get('preset_name', None) + + +class LiveEventEndpoint(Model): + """The Live Event endpoint. + + :param protocol: The endpoint protocol. + :type protocol: str + :param url: The endpoint URL. + :type url: str + """ + + _attribute_map = { + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LiveEventEndpoint, self).__init__(**kwargs) + self.protocol = kwargs.get('protocol', None) + self.url = kwargs.get('url', None) + + +class LiveEventInput(Model): + """The Live Event input. + + All required parameters must be populated in order to send to Azure. + + :param streaming_protocol: Required. The streaming protocol for the Live + Event. This is specified at creation time and cannot be updated. Possible + values include: 'FragmentedMP4', 'RTMP' + :type streaming_protocol: str or + ~azure.mgmt.media.models.LiveEventInputProtocol + :param access_control: The access control for LiveEvent Input. + :type access_control: ~azure.mgmt.media.models.LiveEventInputAccessControl + :param key_frame_interval_duration: ISO 8601 timespan duration of the key + frame interval duration. + :type key_frame_interval_duration: str + :param access_token: A unique identifier for a stream. This can be + specified at creation time but cannot be updated. If omitted, the service + will generate a unique value. + :type access_token: str + :param endpoints: The input endpoints for the Live Event. + :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] + """ + + _validation = { + 'streaming_protocol': {'required': True}, + } + + _attribute_map = { + 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, + 'access_control': {'key': 'accessControl', 'type': 'LiveEventInputAccessControl'}, + 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, + } + + def __init__(self, **kwargs): + super(LiveEventInput, self).__init__(**kwargs) + self.streaming_protocol = kwargs.get('streaming_protocol', None) + self.access_control = kwargs.get('access_control', None) + self.key_frame_interval_duration = kwargs.get('key_frame_interval_duration', None) + self.access_token = kwargs.get('access_token', None) + self.endpoints = kwargs.get('endpoints', None) + + +class LiveEventInputAccessControl(Model): + """The IP access control for Live Event Input. + + :param ip: The IP access control properties. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, **kwargs): + super(LiveEventInputAccessControl, self).__init__(**kwargs) + self.ip = kwargs.get('ip', None) + + +class LiveEventPreview(Model): + """The Live Event preview. + + :param endpoints: The endpoints for preview. + :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] + :param access_control: The access control for LiveEvent preview. + :type access_control: + ~azure.mgmt.media.models.LiveEventPreviewAccessControl + :param preview_locator: The identifier of the preview locator in Guid + format. Specifying this at creation time allows the caller to know the + preview locator url before the event is created. If omitted, the service + will generate a random identifier. This value cannot be updated once the + live event is created. + :type preview_locator: str + :param streaming_policy_name: The name of streaming policy used for the + LiveEvent preview. This value is specified at creation time and cannot be + updated. + :type streaming_policy_name: str + :param alternative_media_id: An Alternative Media Identifier associated + with the StreamingLocator created for the preview. This value is + specified at creation time and cannot be updated. The identifier can be + used in the CustomLicenseAcquisitionUrlTemplate or the + CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the + StreamingPolicyName field. + :type alternative_media_id: str + """ + + _attribute_map = { + 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, + 'access_control': {'key': 'accessControl', 'type': 'LiveEventPreviewAccessControl'}, + 'preview_locator': {'key': 'previewLocator', 'type': 'str'}, + 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, + 'alternative_media_id': {'key': 'alternativeMediaId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LiveEventPreview, self).__init__(**kwargs) + self.endpoints = kwargs.get('endpoints', None) + self.access_control = kwargs.get('access_control', None) + self.preview_locator = kwargs.get('preview_locator', None) + self.streaming_policy_name = kwargs.get('streaming_policy_name', None) + self.alternative_media_id = kwargs.get('alternative_media_id', None) + + +class LiveEventPreviewAccessControl(Model): + """The IP access control for Live Event preview. + + :param ip: The IP access control properties. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, **kwargs): + super(LiveEventPreviewAccessControl, self).__init__(**kwargs) + self.ip = kwargs.get('ip', None) + + +class LiveOutput(ProxyResource): + """The Live Output. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 description: The description of the Live Output. + :type description: str + :param asset_name: Required. The asset name. + :type asset_name: str + :param archive_window_length: Required. ISO 8601 timespan duration of the + archive window length. This is duration that customer want to retain the + recorded content. + :type archive_window_length: timedelta + :param manifest_name: The manifest file name. If not provided, the + service will generate one automatically. + :type manifest_name: str + :param hls: The HLS configuration. + :type hls: ~azure.mgmt.media.models.Hls + :param output_snap_time: The output snapshot time. + :type output_snap_time: long + :ivar created: The exact time the Live Output was created. + :vartype created: datetime + :ivar last_modified: The exact time the Live Output was last modified. + :vartype last_modified: datetime + :ivar provisioning_state: The provisioning state of the Live Output. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the Live Output. Possible + values include: 'Creating', 'Running', 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.media.models.LiveOutputResourceState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_name': {'required': True}, + 'archive_window_length': {'required': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, + 'archive_window_length': {'key': 'properties.archiveWindowLength', 'type': 'duration'}, + 'manifest_name': {'key': 'properties.manifestName', 'type': 'str'}, + 'hls': {'key': 'properties.hls', 'type': 'Hls'}, + 'output_snap_time': {'key': 'properties.outputSnapTime', 'type': 'long'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LiveOutput, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.asset_name = kwargs.get('asset_name', None) + self.archive_window_length = kwargs.get('archive_window_length', None) + self.manifest_name = kwargs.get('manifest_name', None) + self.hls = kwargs.get('hls', None) + self.output_snap_time = kwargs.get('output_snap_time', None) + self.created = None + self.last_modified = None + self.provisioning_state = None + self.resource_state = None + + +class Location(Model): + """Location. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Location, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class MediaService(TrackedResource): + """A Media Services account. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :ivar media_service_id: The Media Services account ID. + :vartype media_service_id: str + :param storage_accounts: The storage accounts for this resource. + :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'media_service_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, **kwargs): + super(MediaService, self).__init__(**kwargs) + self.media_service_id = None + self.storage_accounts = kwargs.get('storage_accounts', None) + + +class Metric(Model): + """A metric emitted by service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The metric name. + :vartype name: str + :ivar display_name: The metric display name. + :vartype display_name: str + :ivar display_description: The metric display description. + :vartype display_description: str + :ivar unit: The metric unit. Possible values include: 'Bytes', 'Count', + 'Milliseconds' + :vartype unit: str or ~azure.mgmt.media.models.MetricUnit + :ivar aggregation_type: The metric aggregation type. Possible values + include: 'Average', 'Count', 'Total' + :vartype aggregation_type: str or + ~azure.mgmt.media.models.MetricAggregationType + :ivar dimensions: The metric dimensions. + :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'display_description': {'readonly': True}, + 'unit': {'readonly': True}, + 'aggregation_type': {'readonly': True}, + 'dimensions': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + } + + def __init__(self, **kwargs): + super(Metric, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.display_description = None + self.unit = None + self.aggregation_type = None + self.dimensions = None + + +class MetricDimension(Model): + """A metric dimension. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The metric dimension name. + :vartype name: str + :ivar display_name: The display name for the dimension. + :vartype display_name: str + :ivar to_be_exported_for_shoebox: Whether to export metric to shoebox. + :vartype to_be_exported_for_shoebox: bool + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'to_be_exported_for_shoebox': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(MetricDimension, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.to_be_exported_for_shoebox = None + + +class MetricProperties(Model): + """Metric properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar service_specification: The service specifications. + :vartype service_specification: + ~azure.mgmt.media.models.ServiceSpecification + """ + + _validation = { + 'service_specification': {'readonly': True}, + } + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(MetricProperties, self).__init__(**kwargs) + self.service_specification = None + + +class MultiBitrateFormat(Format): + """Describes the properties for producing a collection of GOP aligned + multi-bitrate files. The default behavior is to produce one output file for + each video layer which is muxed together with all the audios. The exact + output files produced can be controlled by specifying the outputFiles + collection. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Mp4Format, TransportStreamFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Mp4Format': 'Mp4Format', '#Microsoft.Media.TransportStreamFormat': 'TransportStreamFormat'} + } + + def __init__(self, **kwargs): + super(MultiBitrateFormat, self).__init__(**kwargs) + self.output_files = kwargs.get('output_files', None) + self.odatatype = '#Microsoft.Media.MultiBitrateFormat' + + +class Mp4Format(MultiBitrateFormat): + """Describes the properties for an output ISO MP4 file. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + def __init__(self, **kwargs): + super(Mp4Format, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.Mp4Format' + + +class NoEncryption(Model): + """Class for NoEncryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + } + + def __init__(self, **kwargs): + super(NoEncryption, self).__init__(**kwargs) + self.enabled_protocols = kwargs.get('enabled_protocols', None) + + +class ODataError(Model): + """Information about an error. + + :param code: A language-independent error name. + :type code: str + :param message: The error message. + :type message: str + :param target: The target of the error (for example, the name of the + property in error). + :type target: str + :param details: The error details. + :type details: list[~azure.mgmt.media.models.ODataError] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ODataError]'}, + } + + def __init__(self, **kwargs): + super(ODataError, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class Operation(Model): + """An operation. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The operation name. + :type name: str + :param display: The operation display name. + :type display: ~azure.mgmt.media.models.OperationDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Operation properties format. + :type properties: ~azure.mgmt.media.models.MetricProperties + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'MetricProperties'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) + + +class OperationDisplay(Model): + """Operation details. + + :param provider: The service provider. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + :param operation: The operation type. + :type operation: str + :param description: The operation description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OutputFile(Model): + """Represents an output file produced. + + All required parameters must be populated in order to send to Azure. + + :param labels: Required. The list of labels that describe how the encoder + should multiplex video and audio into an output file. For example, if the + encoder is producing two video layers with labels v1 and v2, and one audio + layer with label a1, then an array like '[v1, a1]' tells the encoder to + produce an output file with the video track represented by v1 and the + audio track represented by a1. + :type labels: list[str] + """ + + _validation = { + 'labels': {'required': True}, + } + + _attribute_map = { + 'labels': {'key': 'labels', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(OutputFile, self).__init__(**kwargs) + self.labels = kwargs.get('labels', None) + + +class PngFormat(ImageFormat): + """Describes the settings for producing PNG thumbnails. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PngFormat, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.PngFormat' + + +class PngImage(Image): + """Describes the properties for producing a series of PNG images from the + input video. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + :param layers: A collection of output PNG image layers to be produced by + the encoder. + :type layers: list[~azure.mgmt.media.models.PngLayer] + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[PngLayer]'}, + } + + def __init__(self, **kwargs): + super(PngImage, self).__init__(**kwargs) + self.layers = kwargs.get('layers', None) + self.odatatype = '#Microsoft.Media.PngImage' + + +class PngLayer(Layer): + """Describes the settings to produce a PNG image from the input video. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PngLayer, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.PngLayer' + + +class PresentationTimeRange(Model): + """The presentation time range, this is asset related and not recommended for + Account Filter. + + :param start_timestamp: The absolute start time boundary. + :type start_timestamp: long + :param end_timestamp: The absolute end time boundary. + :type end_timestamp: long + :param presentation_window_duration: The relative to end sliding window. + :type presentation_window_duration: long + :param live_backoff_duration: The relative to end right edge. + :type live_backoff_duration: long + :param timescale: The time scale of time stamps. + :type timescale: long + :param force_end_timestamp: The indicator of forcing existing of end time + stamp. + :type force_end_timestamp: bool + """ + + _attribute_map = { + 'start_timestamp': {'key': 'startTimestamp', 'type': 'long'}, + 'end_timestamp': {'key': 'endTimestamp', 'type': 'long'}, + 'presentation_window_duration': {'key': 'presentationWindowDuration', 'type': 'long'}, + 'live_backoff_duration': {'key': 'liveBackoffDuration', 'type': 'long'}, + 'timescale': {'key': 'timescale', 'type': 'long'}, + 'force_end_timestamp': {'key': 'forceEndTimestamp', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(PresentationTimeRange, self).__init__(**kwargs) + self.start_timestamp = kwargs.get('start_timestamp', None) + self.end_timestamp = kwargs.get('end_timestamp', None) + self.presentation_window_duration = kwargs.get('presentation_window_duration', None) + self.live_backoff_duration = kwargs.get('live_backoff_duration', None) + self.timescale = kwargs.get('timescale', None) + self.force_end_timestamp = kwargs.get('force_end_timestamp', None) + + +class Provider(Model): + """A resource provider. + + All required parameters must be populated in order to send to Azure. + + :param provider_name: Required. The provider name. + :type provider_name: str + """ + + _validation = { + 'provider_name': {'required': True}, + } + + _attribute_map = { + 'provider_name': {'key': 'providerName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.provider_name = kwargs.get('provider_name', None) + + +class Rectangle(Model): + """Describes the properties of a rectangular window applied to the input media + before processing it. + + :param left: The number of pixels from the left-margin. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type left: str + :param top: The number of pixels from the top-margin. This can be absolute + pixel value (e.g 100), or relative to the size of the video (For example, + 50%). + :type top: str + :param width: The width of the rectangular region in pixels. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type width: str + :param height: The height of the rectangular region in pixels. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type height: str + """ + + _attribute_map = { + 'left': {'key': 'left', 'type': 'str'}, + 'top': {'key': 'top', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Rectangle, self).__init__(**kwargs) + self.left = kwargs.get('left', None) + self.top = kwargs.get('top', None) + self.width = kwargs.get('width', None) + self.height = kwargs.get('height', None) + + +class ServiceSpecification(Model): + """The service metric specifications. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar metric_specifications: List of metric specifications. + :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] + """ + + _validation = { + 'metric_specifications': {'readonly': True}, + } + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, + } + + def __init__(self, **kwargs): + super(ServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = None + + +class StandardEncoderPreset(Preset): + """Describes all the settings to be used when encoding the input video with + the Standard Encoder. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param filters: One or more filtering operations that are applied to the + input media before encoding. + :type filters: ~azure.mgmt.media.models.Filters + :param codecs: Required. The list of codecs to be used when encoding the + input video. + :type codecs: list[~azure.mgmt.media.models.Codec] + :param formats: Required. The list of outputs to be produced by the + encoder. + :type formats: list[~azure.mgmt.media.models.Format] + """ + + _validation = { + 'odatatype': {'required': True}, + 'codecs': {'required': True}, + 'formats': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'filters': {'key': 'filters', 'type': 'Filters'}, + 'codecs': {'key': 'codecs', 'type': '[Codec]'}, + 'formats': {'key': 'formats', 'type': '[Format]'}, + } + + def __init__(self, **kwargs): + super(StandardEncoderPreset, self).__init__(**kwargs) + self.filters = kwargs.get('filters', None) + self.codecs = kwargs.get('codecs', None) + self.formats = kwargs.get('formats', None) + self.odatatype = '#Microsoft.Media.StandardEncoderPreset' + + +class StorageAccount(Model): + """The storage account details. + + All required parameters must be populated in order to send to Azure. + + :param id: The ID of the storage account resource. Media Services relies + on tables and queues as well as blobs, so the primary storage account must + be a Standard Storage account (either Microsoft.ClassicStorage or + Microsoft.Storage). Blob only storage accounts can be added as secondary + storage accounts. + :type id: str + :param type: Required. The type of the storage account. Possible values + include: 'Primary', 'Secondary' + :type type: str or ~azure.mgmt.media.models.StorageAccountType + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StorageAccount, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.type = kwargs.get('type', None) + + +class StorageEncryptedAssetDecryptionData(Model): + """Data needed to decrypt asset files encrypted with legacy storage + encryption. + + :param key: The Asset File storage encryption key. + :type key: bytearray + :param asset_file_encryption_metadata: Asset File encryption metadata. + :type asset_file_encryption_metadata: + list[~azure.mgmt.media.models.AssetFileEncryptionMetadata] + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'bytearray'}, + 'asset_file_encryption_metadata': {'key': 'assetFileEncryptionMetadata', 'type': '[AssetFileEncryptionMetadata]'}, + } + + def __init__(self, **kwargs): + super(StorageEncryptedAssetDecryptionData, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.asset_file_encryption_metadata = kwargs.get('asset_file_encryption_metadata', None) + + +class StreamingEndpoint(TrackedResource): + """The StreamingEndpoint. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :param description: The StreamingEndpoint description. + :type description: str + :param scale_units: Required. The number of scale units. Use the Scale + operation to adjust this value. + :type scale_units: int + :param availability_set_name: The name of the AvailabilitySet used with + this StreamingEndpoint for high availability streaming. This value can + only be set at creation time. + :type availability_set_name: str + :param access_control: The access control definition of the + StreamingEndpoint. + :type access_control: + ~azure.mgmt.media.models.StreamingEndpointAccessControl + :param max_cache_age: Max cache age + :type max_cache_age: long + :param custom_host_names: The custom host names of the StreamingEndpoint + :type custom_host_names: list[str] + :ivar host_name: The StreamingEndpoint host name. + :vartype host_name: str + :param cdn_enabled: The CDN enabled flag. + :type cdn_enabled: bool + :param cdn_provider: The CDN provider name. + :type cdn_provider: str + :param cdn_profile: The CDN profile name. + :type cdn_profile: str + :ivar provisioning_state: The provisioning state of the StreamingEndpoint. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the StreamingEndpoint. + Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', + 'Deleting', 'Scaling' + :vartype resource_state: str or + ~azure.mgmt.media.models.StreamingEndpointResourceState + :param cross_site_access_policies: The StreamingEndpoint access policies. + :type cross_site_access_policies: + ~azure.mgmt.media.models.CrossSiteAccessPolicies + :ivar free_trial_end_time: The free trial expiration time. + :vartype free_trial_end_time: datetime + :ivar created: The exact time the StreamingEndpoint was created. + :vartype created: datetime + :ivar last_modified: The exact time the StreamingEndpoint was last + modified. + :vartype last_modified: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'scale_units': {'required': True}, + 'host_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + 'free_trial_end_time': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'scale_units': {'key': 'properties.scaleUnits', 'type': 'int'}, + 'availability_set_name': {'key': 'properties.availabilitySetName', 'type': 'str'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'StreamingEndpointAccessControl'}, + 'max_cache_age': {'key': 'properties.maxCacheAge', 'type': 'long'}, + 'custom_host_names': {'key': 'properties.customHostNames', 'type': '[str]'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'cdn_enabled': {'key': 'properties.cdnEnabled', 'type': 'bool'}, + 'cdn_provider': {'key': 'properties.cdnProvider', 'type': 'str'}, + 'cdn_profile': {'key': 'properties.cdnProfile', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, + 'free_trial_end_time': {'key': 'properties.freeTrialEndTime', 'type': 'iso-8601'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(StreamingEndpoint, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.scale_units = kwargs.get('scale_units', None) + self.availability_set_name = kwargs.get('availability_set_name', None) + self.access_control = kwargs.get('access_control', None) + self.max_cache_age = kwargs.get('max_cache_age', None) + self.custom_host_names = kwargs.get('custom_host_names', None) + self.host_name = None + self.cdn_enabled = kwargs.get('cdn_enabled', None) + self.cdn_provider = kwargs.get('cdn_provider', None) + self.cdn_profile = kwargs.get('cdn_profile', None) + self.provisioning_state = None + self.resource_state = None + self.cross_site_access_policies = kwargs.get('cross_site_access_policies', None) + self.free_trial_end_time = None + self.created = None + self.last_modified = None + + +class StreamingEndpointAccessControl(Model): + """StreamingEndpoint access control definition. + + :param akamai: The access control of Akamai + :type akamai: ~azure.mgmt.media.models.AkamaiAccessControl + :param ip: The IP access control of the StreamingEndpoint. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'akamai': {'key': 'akamai', 'type': 'AkamaiAccessControl'}, + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, **kwargs): + super(StreamingEndpointAccessControl, self).__init__(**kwargs) + self.akamai = kwargs.get('akamai', None) + self.ip = kwargs.get('ip', None) + + +class StreamingEntityScaleUnit(Model): + """scale units definition. + + :param scale_unit: The scale unit number of the StreamingEndpoint. + :type scale_unit: int + """ + + _attribute_map = { + 'scale_unit': {'key': 'scaleUnit', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(StreamingEntityScaleUnit, self).__init__(**kwargs) + self.scale_unit = kwargs.get('scale_unit', None) + + +class StreamingLocator(ProxyResource): + """A Streaming Locator resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 asset_name: Required. Asset Name + :type asset_name: str + :ivar created: The creation time of the Streaming Locator. + :vartype created: datetime + :param start_time: The start time of the Streaming Locator. + :type start_time: datetime + :param end_time: The end time of the Streaming Locator. + :type end_time: datetime + :param streaming_locator_id: The StreamingLocatorId of the Streaming + Locator. + :type streaming_locator_id: str + :param streaming_policy_name: Required. Name of the Streaming Policy used + by this Streaming Locator. Either specify the name of Streaming Policy you + created or use one of the predefined Streaming Policies. The predefined + Streaming Policies available are: 'Predefined_DownloadOnly', + 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', + 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and + 'Predefined_MultiDrmStreaming' + :type streaming_policy_name: str + :param default_content_key_policy_name: Name of the default + ContentKeyPolicy used by this Streaming Locator. + :type default_content_key_policy_name: str + :param content_keys: The ContentKeys used by this Streaming Locator. + :type content_keys: + list[~azure.mgmt.media.models.StreamingLocatorContentKey] + :param alternative_media_id: Alternative Media ID of this Streaming + Locator + :type alternative_media_id: str + :param filters: A list of asset or account filters which apply to this + streaming locator + :type filters: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_name': {'required': True}, + 'created': {'readonly': True}, + 'streaming_policy_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'streaming_locator_id': {'key': 'properties.streamingLocatorId', 'type': 'str'}, + 'streaming_policy_name': {'key': 'properties.streamingPolicyName', 'type': 'str'}, + 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, + 'content_keys': {'key': 'properties.contentKeys', 'type': '[StreamingLocatorContentKey]'}, + 'alternative_media_id': {'key': 'properties.alternativeMediaId', 'type': 'str'}, + 'filters': {'key': 'properties.filters', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StreamingLocator, self).__init__(**kwargs) + self.asset_name = kwargs.get('asset_name', None) + self.created = None + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.streaming_locator_id = kwargs.get('streaming_locator_id', None) + self.streaming_policy_name = kwargs.get('streaming_policy_name', None) + self.default_content_key_policy_name = kwargs.get('default_content_key_policy_name', None) + self.content_keys = kwargs.get('content_keys', None) + self.alternative_media_id = kwargs.get('alternative_media_id', None) + self.filters = kwargs.get('filters', None) + + +class StreamingLocatorContentKey(Model): + """Class for content key in Streaming Locator. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. ID of Content Key + :type id: str + :ivar type: Encryption type of Content Key. Possible values include: + 'CommonEncryptionCenc', 'CommonEncryptionCbcs', 'EnvelopeEncryption' + :vartype type: str or + ~azure.mgmt.media.models.StreamingLocatorContentKeyType + :param label_reference_in_streaming_policy: Label of Content Key as + specified in the Streaming Policy + :type label_reference_in_streaming_policy: str + :param value: Value of Content Key + :type value: str + :ivar policy_name: ContentKeyPolicy used by Content Key + :vartype policy_name: str + :ivar tracks: Tracks which use this Content Key + :vartype tracks: list[~azure.mgmt.media.models.TrackSelection] + """ + + _validation = { + 'id': {'required': True}, + 'type': {'readonly': True}, + 'policy_name': {'readonly': True}, + 'tracks': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'label_reference_in_streaming_policy': {'key': 'labelReferenceInStreamingPolicy', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, + } + + def __init__(self, **kwargs): + super(StreamingLocatorContentKey, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.type = None + self.label_reference_in_streaming_policy = kwargs.get('label_reference_in_streaming_policy', None) + self.value = kwargs.get('value', None) + self.policy_name = None + self.tracks = None + + +class StreamingPath(Model): + """Class of paths for streaming. + + All required parameters must be populated in order to send to Azure. + + :param streaming_protocol: Required. Streaming protocol. Possible values + include: 'Hls', 'Dash', 'SmoothStreaming', 'Download' + :type streaming_protocol: str or + ~azure.mgmt.media.models.StreamingPolicyStreamingProtocol + :param encryption_scheme: Required. Encryption scheme. Possible values + include: 'NoEncryption', 'EnvelopeEncryption', 'CommonEncryptionCenc', + 'CommonEncryptionCbcs' + :type encryption_scheme: str or ~azure.mgmt.media.models.EncryptionScheme + :param paths: Streaming paths for each protocol and encryptionScheme pair + :type paths: list[str] + """ + + _validation = { + 'streaming_protocol': {'required': True}, + 'encryption_scheme': {'required': True}, + } + + _attribute_map = { + 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, + 'encryption_scheme': {'key': 'encryptionScheme', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(StreamingPath, self).__init__(**kwargs) + self.streaming_protocol = kwargs.get('streaming_protocol', None) + self.encryption_scheme = kwargs.get('encryption_scheme', None) + self.paths = kwargs.get('paths', None) + + +class StreamingPolicy(ProxyResource): + """A Streaming Policy resource. + + 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 + :ivar created: Creation time of Streaming Policy + :vartype created: datetime + :param default_content_key_policy_name: Default ContentKey used by current + Streaming Policy + :type default_content_key_policy_name: str + :param envelope_encryption: Configuration of EnvelopeEncryption + :type envelope_encryption: ~azure.mgmt.media.models.EnvelopeEncryption + :param common_encryption_cenc: Configuration of CommonEncryptionCenc + :type common_encryption_cenc: + ~azure.mgmt.media.models.CommonEncryptionCenc + :param common_encryption_cbcs: Configuration of CommonEncryptionCbcs + :type common_encryption_cbcs: + ~azure.mgmt.media.models.CommonEncryptionCbcs + :param no_encryption: Configurations of NoEncryption + :type no_encryption: ~azure.mgmt.media.models.NoEncryption + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, + 'envelope_encryption': {'key': 'properties.envelopeEncryption', 'type': 'EnvelopeEncryption'}, + 'common_encryption_cenc': {'key': 'properties.commonEncryptionCenc', 'type': 'CommonEncryptionCenc'}, + 'common_encryption_cbcs': {'key': 'properties.commonEncryptionCbcs', 'type': 'CommonEncryptionCbcs'}, + 'no_encryption': {'key': 'properties.noEncryption', 'type': 'NoEncryption'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicy, self).__init__(**kwargs) + self.created = None + self.default_content_key_policy_name = kwargs.get('default_content_key_policy_name', None) + self.envelope_encryption = kwargs.get('envelope_encryption', None) + self.common_encryption_cenc = kwargs.get('common_encryption_cenc', None) + self.common_encryption_cbcs = kwargs.get('common_encryption_cbcs', None) + self.no_encryption = kwargs.get('no_encryption', None) + + +class StreamingPolicyContentKey(Model): + """Class to specify properties of content key. + + :param label: Label can be used to specify Content Key when creating a + Streaming Locator + :type label: str + :param policy_name: Policy used by Content Key + :type policy_name: str + :param tracks: Tracks which use this content key + :type tracks: list[~azure.mgmt.media.models.TrackSelection] + """ + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicyContentKey, self).__init__(**kwargs) + self.label = kwargs.get('label', None) + self.policy_name = kwargs.get('policy_name', None) + self.tracks = kwargs.get('tracks', None) + + +class StreamingPolicyContentKeys(Model): + """Class to specify properties of all content keys in Streaming Policy. + + :param default_key: Default content key for an encryption scheme + :type default_key: ~azure.mgmt.media.models.DefaultKey + :param key_to_track_mappings: Representing tracks needs separate content + key + :type key_to_track_mappings: + list[~azure.mgmt.media.models.StreamingPolicyContentKey] + """ + + _attribute_map = { + 'default_key': {'key': 'defaultKey', 'type': 'DefaultKey'}, + 'key_to_track_mappings': {'key': 'keyToTrackMappings', 'type': '[StreamingPolicyContentKey]'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicyContentKeys, self).__init__(**kwargs) + self.default_key = kwargs.get('default_key', None) + self.key_to_track_mappings = kwargs.get('key_to_track_mappings', None) + + +class StreamingPolicyFairPlayConfiguration(Model): + """Class to specify configurations of FairPlay in Streaming Policy. + + All required parameters must be populated in order to send to Azure. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + :param allow_persistent_license: Required. All license to be persistent or + not + :type allow_persistent_license: bool + """ + + _validation = { + 'allow_persistent_license': {'required': True}, + } + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + 'allow_persistent_license': {'key': 'allowPersistentLicense', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicyFairPlayConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) + self.allow_persistent_license = kwargs.get('allow_persistent_license', None) + + +class StreamingPolicyPlayReadyConfiguration(Model): + """Class to specify configurations of PlayReady in Streaming Policy. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + :param play_ready_custom_attributes: Custom attributes for PlayReady + :type play_ready_custom_attributes: str + """ + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + 'play_ready_custom_attributes': {'key': 'playReadyCustomAttributes', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicyPlayReadyConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) + self.play_ready_custom_attributes = kwargs.get('play_ready_custom_attributes', None) + + +class StreamingPolicyWidevineConfiguration(Model): + """Class to specify configurations of Widevine in Streaming Policy. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + """ + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StreamingPolicyWidevineConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) + + +class SubscriptionMediaService(TrackedResource): + """A Media Services account. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :ivar media_service_id: The Media Services account ID. + :vartype media_service_id: str + :param storage_accounts: The storage accounts for this resource. + :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'media_service_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, **kwargs): + super(SubscriptionMediaService, self).__init__(**kwargs) + self.media_service_id = None + self.storage_accounts = kwargs.get('storage_accounts', None) + + +class SyncStorageKeysInput(Model): + """The input to the sync storage keys request. + + :param id: The ID of the storage account resource. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SyncStorageKeysInput, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TrackPropertyCondition(Model): + """Class to specify one track property condition. + + All required parameters must be populated in order to send to Azure. + + :param property: Required. Track property type. Possible values include: + 'Unknown', 'FourCC' + :type property: str or ~azure.mgmt.media.models.TrackPropertyType + :param operation: Required. Track property condition operation. Possible + values include: 'Unknown', 'Equal' + :type operation: str or + ~azure.mgmt.media.models.TrackPropertyCompareOperation + :param value: Track property value + :type value: str + """ + + _validation = { + 'property': {'required': True}, + 'operation': {'required': True}, + } + + _attribute_map = { + 'property': {'key': 'property', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackPropertyCondition, self).__init__(**kwargs) + self.property = kwargs.get('property', None) + self.operation = kwargs.get('operation', None) + self.value = kwargs.get('value', None) + + +class TrackSelection(Model): + """Class to select a track. + + :param track_selections: TrackSelections is a track property condition + list which can specify track(s) + :type track_selections: + list[~azure.mgmt.media.models.TrackPropertyCondition] + """ + + _attribute_map = { + 'track_selections': {'key': 'trackSelections', 'type': '[TrackPropertyCondition]'}, + } + + def __init__(self, **kwargs): + super(TrackSelection, self).__init__(**kwargs) + self.track_selections = kwargs.get('track_selections', None) + + +class Transform(ProxyResource): + """A Transform encapsulates the rules or instructions for generating desired + outputs from input media, such as by transcoding or by extracting insights. + After the Transform is created, it can be applied to input media by + creating Jobs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar created: The UTC date and time when the Transform was created, in + 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype created: datetime + :param description: An optional verbose description of the Transform. + :type description: str + :ivar last_modified: The UTC date and time when the Transform was last + updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype last_modified: datetime + :param outputs: Required. An array of one or more TransformOutputs that + the Transform should generate. + :type outputs: list[~azure.mgmt.media.models.TransformOutput] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'outputs': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'outputs': {'key': 'properties.outputs', 'type': '[TransformOutput]'}, + } + + def __init__(self, **kwargs): + super(Transform, self).__init__(**kwargs) + self.created = None + self.description = kwargs.get('description', None) + self.last_modified = None + self.outputs = kwargs.get('outputs', None) + + +class TransformOutput(Model): + """Describes the properties of a TransformOutput, which are the rules to be + applied while generating the desired output. + + All required parameters must be populated in order to send to Azure. + + :param on_error: A Transform can define more than one outputs. This + property defines what the service should do when one output fails - either + continue to produce other outputs, or, stop the other outputs. The overall + Job state will not reflect failures of outputs that are specified with + 'ContinueJob'. The default is 'StopProcessingJob'. Possible values + include: 'StopProcessingJob', 'ContinueJob' + :type on_error: str or ~azure.mgmt.media.models.OnErrorType + :param relative_priority: Sets the relative priority of the + TransformOutputs within a Transform. This sets the priority that the + service uses for processing TransformOutputs. The default priority is + Normal. Possible values include: 'Low', 'Normal', 'High' + :type relative_priority: str or ~azure.mgmt.media.models.Priority + :param preset: Required. Preset that describes the operations that will be + used to modify, transcode, or extract insights from the source file to + generate the output. + :type preset: ~azure.mgmt.media.models.Preset + """ + + _validation = { + 'preset': {'required': True}, + } + + _attribute_map = { + 'on_error': {'key': 'onError', 'type': 'str'}, + 'relative_priority': {'key': 'relativePriority', 'type': 'str'}, + 'preset': {'key': 'preset', 'type': 'Preset'}, + } + + def __init__(self, **kwargs): + super(TransformOutput, self).__init__(**kwargs) + self.on_error = kwargs.get('on_error', None) + self.relative_priority = kwargs.get('relative_priority', None) + self.preset = kwargs.get('preset', None) + + +class TransportStreamFormat(MultiBitrateFormat): + """Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC + 13818-1) output video file(s). + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + def __init__(self, **kwargs): + super(TransportStreamFormat, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.TransportStreamFormat' + + +class VideoAnalyzerPreset(AudioAnalyzerPreset): + """A video analyzer preset that extracts insights (rich metadata) from both + audio and video, and outputs a JSON format file. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param audio_language: The language for the audio payload in the input + using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you + know the language of your content, it is recommended that you specify it. + If the language isn't specified or set to null, automatic language + detection will choose the first language detected and process with the + selected language for the duration of the file. It does not currently + support dynamically switching between languages after the first language + is detected. The automatic detection works best with audio recordings with + clearly discernable speech. If automatic detection fails to find the + language, transcription would fallback to 'en-US'." The list of supported + languages is available here: + https://go.microsoft.com/fwlink/?linkid=2109463 + :type audio_language: str + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + :param insights_to_extract: Defines the type of insights that you want the + service to generate. The allowed values are 'AudioInsightsOnly', + 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you + set this to AllInsights and the input is audio only, then only audio + insights are generated. Similarly if the input is video only, then only + video insights are generated. It is recommended that you not use + AudioInsightsOnly if you expect some of your inputs to be video only; or + use VideoInsightsOnly if you expect some of your inputs to be audio only. + Your Jobs in such conditions would error out. Possible values include: + 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' + :type insights_to_extract: str or ~azure.mgmt.media.models.InsightsType + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + 'insights_to_extract': {'key': 'insightsToExtract', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VideoAnalyzerPreset, self).__init__(**kwargs) + self.insights_to_extract = kwargs.get('insights_to_extract', None) + self.odatatype = '#Microsoft.Media.VideoAnalyzerPreset' + + +class VideoOverlay(Overlay): + """Describes the properties of a video overlay. + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param position: The location in the input video where the overlay is + applied. + :type position: ~azure.mgmt.media.models.Rectangle + :param opacity: The opacity of the overlay. This is a value in the range + [0 - 1.0]. Default is 1.0 which mean the overlay is opaque. + :type opacity: float + :param crop_rectangle: An optional rectangular window used to crop the + overlay image or video. + :type crop_rectangle: ~azure.mgmt.media.models.Rectangle + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'Rectangle'}, + 'opacity': {'key': 'opacity', 'type': 'float'}, + 'crop_rectangle': {'key': 'cropRectangle', 'type': 'Rectangle'}, + } + + def __init__(self, **kwargs): + super(VideoOverlay, self).__init__(**kwargs) + self.position = kwargs.get('position', None) + self.opacity = kwargs.get('opacity', None) + self.crop_rectangle = kwargs.get('crop_rectangle', None) + self.odatatype = '#Microsoft.Media.VideoOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models_py3.py new file mode 100644 index 000000000000..d113cfdcd264 --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models_py3.py @@ -0,0 +1,5591 @@ +# 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.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Codec(Model): + """Describes the basic properties of all codecs. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Audio, CopyVideo, Video, CopyAudio + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Audio': 'Audio', '#Microsoft.Media.CopyVideo': 'CopyVideo', '#Microsoft.Media.Video': 'Video', '#Microsoft.Media.CopyAudio': 'CopyAudio'} + } + + def __init__(self, *, label: str=None, **kwargs) -> None: + super(Codec, self).__init__(**kwargs) + self.label = label + self.odatatype = None + + +class Audio(Codec): + """Defines the common properties for all audio codecs. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AacAudio + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param channels: The number of channels in the audio. + :type channels: int + :param sampling_rate: The sampling rate to use for encoding in hertz. + :type sampling_rate: int + :param bitrate: The bitrate, in bits per second, of the output encoded + audio. + :type bitrate: int + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'channels': {'key': 'channels', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AacAudio': 'AacAudio'} + } + + def __init__(self, *, label: str=None, channels: int=None, sampling_rate: int=None, bitrate: int=None, **kwargs) -> None: + super(Audio, self).__init__(label=label, **kwargs) + self.channels = channels + self.sampling_rate = sampling_rate + self.bitrate = bitrate + self.odatatype = '#Microsoft.Media.Audio' + + +class AacAudio(Audio): + """Describes Advanced Audio Codec (AAC) audio encoding settings. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param channels: The number of channels in the audio. + :type channels: int + :param sampling_rate: The sampling rate to use for encoding in hertz. + :type sampling_rate: int + :param bitrate: The bitrate, in bits per second, of the output encoded + audio. + :type bitrate: int + :param profile: The encoding profile to be used when encoding audio with + AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2' + :type profile: str or ~azure.mgmt.media.models.AacAudioProfile + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'channels': {'key': 'channels', 'type': 'int'}, + 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'profile': {'key': 'profile', 'type': 'str'}, + } + + def __init__(self, *, label: str=None, channels: int=None, sampling_rate: int=None, bitrate: int=None, profile=None, **kwargs) -> None: + super(AacAudio, self).__init__(label=label, channels=channels, sampling_rate=sampling_rate, bitrate=bitrate, **kwargs) + self.profile = profile + self.odatatype = '#Microsoft.Media.AacAudio' + + +class ClipTime(Model): + """Base class for specifying a clip time. Use sub classes of this class to + specify the time position in the media. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AbsoluteClipTime + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AbsoluteClipTime': 'AbsoluteClipTime'} + } + + def __init__(self, **kwargs) -> None: + super(ClipTime, self).__init__(**kwargs) + self.odatatype = None + + +class AbsoluteClipTime(ClipTime): + """Specifies the clip time as an absolute time position in the media file. + The absolute time can point to a different position depending on whether + the media file starts from a timestamp of zero or not. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param time: Required. The time position on the timeline of the input + media. It is usually specified as an ISO8601 period. e.g PT30S for 30 + seconds. + :type time: timedelta + """ + + _validation = { + 'odatatype': {'required': True}, + 'time': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'duration'}, + } + + def __init__(self, *, time, **kwargs) -> None: + super(AbsoluteClipTime, self).__init__(**kwargs) + self.time = time + self.odatatype = '#Microsoft.Media.AbsoluteClipTime' + + +class Resource(Model): + """The core properties of ARM resources. + + 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 + """ + + _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'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. + + 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 + """ + + _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'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + + +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, *, presentation_time_range=None, first_quality=None, tracks=None, **kwargs) -> None: + super(AccountFilter, self).__init__(**kwargs) + self.presentation_time_range = presentation_time_range + self.first_quality = first_quality + self.tracks = tracks + + +class AkamaiAccessControl(Model): + """Akamai access control. + + :param akamai_signature_header_authentication_key_list: authentication key + list + :type akamai_signature_header_authentication_key_list: + list[~azure.mgmt.media.models.AkamaiSignatureHeaderAuthenticationKey] + """ + + _attribute_map = { + 'akamai_signature_header_authentication_key_list': {'key': 'akamaiSignatureHeaderAuthenticationKeyList', 'type': '[AkamaiSignatureHeaderAuthenticationKey]'}, + } + + def __init__(self, *, akamai_signature_header_authentication_key_list=None, **kwargs) -> None: + super(AkamaiAccessControl, self).__init__(**kwargs) + self.akamai_signature_header_authentication_key_list = akamai_signature_header_authentication_key_list + + +class AkamaiSignatureHeaderAuthenticationKey(Model): + """Akamai Signature Header authentication key. + + :param identifier: identifier of the key + :type identifier: str + :param base64_key: authentication key + :type base64_key: str + :param expiration: The expiration time of the authentication key. + :type expiration: datetime + """ + + _attribute_map = { + 'identifier': {'key': 'identifier', 'type': 'str'}, + 'base64_key': {'key': 'base64Key', 'type': 'str'}, + 'expiration': {'key': 'expiration', 'type': 'iso-8601'}, + } + + def __init__(self, *, identifier: str=None, base64_key: str=None, expiration=None, **kwargs) -> None: + super(AkamaiSignatureHeaderAuthenticationKey, self).__init__(**kwargs) + self.identifier = identifier + self.base64_key = base64_key + self.expiration = expiration + + +class ApiError(Model): + """The API error. + + :param error: ApiError. The error properties. + :type error: ~azure.mgmt.media.models.ODataError + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ODataError'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(ApiError, self).__init__(**kwargs) + self.error = error + + +class ApiErrorException(HttpOperationError): + """Server responsed with exception of type: 'ApiError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) + + +class Asset(ProxyResource): + """An Asset. + + 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 + :ivar asset_id: The Asset ID. + :vartype asset_id: str + :ivar created: The creation date of the Asset. + :vartype created: datetime + :ivar last_modified: The last modified date of the Asset. + :vartype last_modified: datetime + :param alternate_id: The alternate ID of the Asset. + :type alternate_id: str + :param description: The Asset description. + :type description: str + :param container: The name of the asset blob container. + :type container: str + :param storage_account_name: The name of the storage account. + :type storage_account_name: str + :ivar storage_encryption_format: The Asset encryption format. One of None + or MediaStorageEncryption. Possible values include: 'None', + 'MediaStorageClientEncryption' + :vartype storage_encryption_format: str or + ~azure.mgmt.media.models.AssetStorageEncryptionFormat + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'storage_encryption_format': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'asset_id': {'key': 'properties.assetId', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'alternate_id': {'key': 'properties.alternateId', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'container': {'key': 'properties.container', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'storage_encryption_format': {'key': 'properties.storageEncryptionFormat', 'type': 'str'}, + } + + def __init__(self, *, alternate_id: str=None, description: str=None, container: str=None, storage_account_name: str=None, **kwargs) -> None: + super(Asset, self).__init__(**kwargs) + self.asset_id = None + self.created = None + self.last_modified = None + self.alternate_id = alternate_id + self.description = description + self.container = container + self.storage_account_name = storage_account_name + self.storage_encryption_format = None + + +class AssetContainerSas(Model): + """The Asset Storage container SAS URLs. + + :param asset_container_sas_urls: The list of Asset container SAS URLs. + :type asset_container_sas_urls: list[str] + """ + + _attribute_map = { + 'asset_container_sas_urls': {'key': 'assetContainerSasUrls', 'type': '[str]'}, + } + + def __init__(self, *, asset_container_sas_urls=None, **kwargs) -> None: + super(AssetContainerSas, self).__init__(**kwargs) + self.asset_container_sas_urls = asset_container_sas_urls + + +class AssetFileEncryptionMetadata(Model): + """The Asset File Storage encryption metadata. + + All required parameters must be populated in order to send to Azure. + + :param initialization_vector: The Asset File initialization vector. + :type initialization_vector: str + :param asset_file_name: The Asset File name. + :type asset_file_name: str + :param asset_file_id: Required. The Asset File Id. + :type asset_file_id: str + """ + + _validation = { + 'asset_file_id': {'required': True}, + } + + _attribute_map = { + 'initialization_vector': {'key': 'initializationVector', 'type': 'str'}, + 'asset_file_name': {'key': 'assetFileName', 'type': 'str'}, + 'asset_file_id': {'key': 'assetFileId', 'type': 'str'}, + } + + def __init__(self, *, asset_file_id: str, initialization_vector: str=None, asset_file_name: str=None, **kwargs) -> None: + super(AssetFileEncryptionMetadata, self).__init__(**kwargs) + self.initialization_vector = initialization_vector + self.asset_file_name = asset_file_name + self.asset_file_id = asset_file_id + + +class AssetFilter(ProxyResource): + """An Asset 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, *, presentation_time_range=None, first_quality=None, tracks=None, **kwargs) -> None: + super(AssetFilter, self).__init__(**kwargs) + self.presentation_time_range = presentation_time_range + self.first_quality = first_quality + self.tracks = tracks + + +class AssetStreamingLocator(Model): + """Properties of the Streaming Locator. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Streaming Locator name. + :vartype name: str + :ivar asset_name: Asset Name. + :vartype asset_name: str + :ivar created: The creation time of the Streaming Locator. + :vartype created: datetime + :ivar start_time: The start time of the Streaming Locator. + :vartype start_time: datetime + :ivar end_time: The end time of the Streaming Locator. + :vartype end_time: datetime + :ivar streaming_locator_id: StreamingLocatorId of the Streaming Locator. + :vartype streaming_locator_id: str + :ivar streaming_policy_name: Name of the Streaming Policy used by this + Streaming Locator. + :vartype streaming_policy_name: str + :ivar default_content_key_policy_name: Name of the default + ContentKeyPolicy used by this Streaming Locator. + :vartype default_content_key_policy_name: str + """ + + _validation = { + 'name': {'readonly': True}, + 'asset_name': {'readonly': True}, + 'created': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'streaming_locator_id': {'readonly': True}, + 'streaming_policy_name': {'readonly': True}, + 'default_content_key_policy_name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + 'created': {'key': 'created', 'type': 'iso-8601'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'streaming_locator_id': {'key': 'streamingLocatorId', 'type': 'str'}, + 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, + 'default_content_key_policy_name': {'key': 'defaultContentKeyPolicyName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AssetStreamingLocator, self).__init__(**kwargs) + self.name = None + self.asset_name = None + self.created = None + self.start_time = None + self.end_time = None + self.streaming_locator_id = None + self.streaming_policy_name = None + self.default_content_key_policy_name = None + + +class Preset(Model): + """Base type for all Presets, which define the recipe or instructions on how + the input media files should be processed. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: FaceDetectorPreset, AudioAnalyzerPreset, + BuiltInStandardEncoderPreset, StandardEncoderPreset + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.FaceDetectorPreset': 'FaceDetectorPreset', '#Microsoft.Media.AudioAnalyzerPreset': 'AudioAnalyzerPreset', '#Microsoft.Media.BuiltInStandardEncoderPreset': 'BuiltInStandardEncoderPreset', '#Microsoft.Media.StandardEncoderPreset': 'StandardEncoderPreset'} + } + + def __init__(self, **kwargs) -> None: + super(Preset, self).__init__(**kwargs) + self.odatatype = None + + +class AudioAnalyzerPreset(Preset): + """The Audio Analyzer preset applies a pre-defined set of AI-based analysis + operations, including speech transcription. Currently, the preset supports + processing of content with a single audio track. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VideoAnalyzerPreset + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param audio_language: The language for the audio payload in the input + using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you + know the language of your content, it is recommended that you specify it. + If the language isn't specified or set to null, automatic language + detection will choose the first language detected and process with the + selected language for the duration of the file. It does not currently + support dynamically switching between languages after the first language + is detected. The automatic detection works best with audio recordings with + clearly discernable speech. If automatic detection fails to find the + language, transcription would fallback to 'en-US'." The list of supported + languages is available here: + https://go.microsoft.com/fwlink/?linkid=2109463 + :type audio_language: str + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.VideoAnalyzerPreset': 'VideoAnalyzerPreset'} + } + + def __init__(self, *, audio_language: str=None, experimental_options=None, **kwargs) -> None: + super(AudioAnalyzerPreset, self).__init__(**kwargs) + self.audio_language = audio_language + self.experimental_options = experimental_options + self.odatatype = '#Microsoft.Media.AudioAnalyzerPreset' + + +class Overlay(Model): + """Base type for all overlays - image, audio or video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AudioOverlay, VideoOverlay + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.AudioOverlay': 'AudioOverlay', '#Microsoft.Media.VideoOverlay': 'VideoOverlay'} + } + + def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, **kwargs) -> None: + super(Overlay, self).__init__(**kwargs) + self.input_label = input_label + self.start = start + self.end = end + self.fade_in_duration = fade_in_duration + self.fade_out_duration = fade_out_duration + self.audio_gain_level = audio_gain_level + self.odatatype = None + + +class AudioOverlay(Overlay): + """Describes the properties of an audio overlay. + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, **kwargs) -> None: + super(AudioOverlay, self).__init__(input_label=input_label, start=start, end=end, fade_in_duration=fade_in_duration, fade_out_duration=fade_out_duration, audio_gain_level=audio_gain_level, **kwargs) + self.odatatype = '#Microsoft.Media.AudioOverlay' + + +class BuiltInStandardEncoderPreset(Preset): + """Describes a built-in preset for encoding the input video with the Standard + Encoder. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param preset_name: Required. The built-in preset to be used for encoding + videos. Possible values include: 'H264SingleBitrateSD', + 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', + 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', + 'ContentAwareEncoding', 'H264MultipleBitrate1080p', + 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + :type preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset + """ + + _validation = { + 'odatatype': {'required': True}, + 'preset_name': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'preset_name': {'key': 'presetName', 'type': 'str'}, + } + + def __init__(self, *, preset_name, **kwargs) -> None: + super(BuiltInStandardEncoderPreset, self).__init__(**kwargs) + self.preset_name = preset_name + self.odatatype = '#Microsoft.Media.BuiltInStandardEncoderPreset' + + +class CbcsDrmConfiguration(Model): + """Class to specify DRM configurations of CommonEncryptionCbcs scheme in + Streaming Policy. + + :param fair_play: FairPlay configurations + :type fair_play: + ~azure.mgmt.media.models.StreamingPolicyFairPlayConfiguration + :param play_ready: PlayReady configurations + :type play_ready: + ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration + :param widevine: Widevine configurations + :type widevine: + ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration + """ + + _attribute_map = { + 'fair_play': {'key': 'fairPlay', 'type': 'StreamingPolicyFairPlayConfiguration'}, + 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, + 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, + } + + def __init__(self, *, fair_play=None, play_ready=None, widevine=None, **kwargs) -> None: + super(CbcsDrmConfiguration, self).__init__(**kwargs) + self.fair_play = fair_play + self.play_ready = play_ready + self.widevine = widevine + + +class CencDrmConfiguration(Model): + """Class to specify DRM configurations of CommonEncryptionCenc scheme in + Streaming Policy. + + :param play_ready: PlayReady configurations + :type play_ready: + ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration + :param widevine: Widevine configurations + :type widevine: + ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration + """ + + _attribute_map = { + 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, + 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, + } + + def __init__(self, *, play_ready=None, widevine=None, **kwargs) -> None: + super(CencDrmConfiguration, self).__init__(**kwargs) + self.play_ready = play_ready + self.widevine = widevine + + +class CheckNameAvailabilityInput(Model): + """The input to the check name availability request. + + :param name: The account name. + :type name: str + :param type: The account type. For a Media Services account, this should + be 'MediaServices'. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: + super(CheckNameAvailabilityInput, self).__init__(**kwargs) + self.name = name + self.type = type + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CommonEncryptionCbcs(Model): + """Class for CommonEncryptionCbcs encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param drm: Configuration of DRMs for current encryption scheme + :type drm: ~azure.mgmt.media.models.CbcsDrmConfiguration + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'drm': {'key': 'drm', 'type': 'CbcsDrmConfiguration'}, + } + + def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs) -> None: + super(CommonEncryptionCbcs, self).__init__(**kwargs) + self.enabled_protocols = enabled_protocols + self.clear_tracks = clear_tracks + self.content_keys = content_keys + self.drm = drm + + +class CommonEncryptionCenc(Model): + """Class for envelope encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param drm: Configuration of DRMs for CommonEncryptionCenc encryption + scheme + :type drm: ~azure.mgmt.media.models.CencDrmConfiguration + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'drm': {'key': 'drm', 'type': 'CencDrmConfiguration'}, + } + + def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs) -> None: + super(CommonEncryptionCenc, self).__init__(**kwargs) + self.enabled_protocols = enabled_protocols + self.clear_tracks = clear_tracks + self.content_keys = content_keys + self.drm = drm + + +class ContentKeyPolicy(ProxyResource): + """A Content Key Policy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar policy_id: The legacy Policy ID. + :vartype policy_id: str + :ivar created: The creation date of the Policy + :vartype created: datetime + :ivar last_modified: The last modified date of the Policy + :vartype last_modified: datetime + :param description: A description for the Policy. + :type description: str + :param options: Required. The Key Policy options. + :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'policy_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'options': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'policy_id': {'key': 'properties.policyId', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'options': {'key': 'properties.options', 'type': '[ContentKeyPolicyOption]'}, + } + + def __init__(self, *, options, description: str=None, **kwargs) -> None: + super(ContentKeyPolicy, self).__init__(**kwargs) + self.policy_id = None + self.created = None + self.last_modified = None + self.description = description + self.options = options + + +class ContentKeyPolicyConfiguration(Model): + """Base class for Content Key Policy configuration. A derived class must be + used to create a configuration. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyClearKeyConfiguration, + ContentKeyPolicyUnknownConfiguration, + ContentKeyPolicyWidevineConfiguration, + ContentKeyPolicyPlayReadyConfiguration, + ContentKeyPolicyFairPlayConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration': 'ContentKeyPolicyClearKeyConfiguration', '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration': 'ContentKeyPolicyUnknownConfiguration', '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration': 'ContentKeyPolicyWidevineConfiguration', '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration': 'ContentKeyPolicyPlayReadyConfiguration', '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration': 'ContentKeyPolicyFairPlayConfiguration'} + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyConfiguration, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration): + """Represents a configuration for non-DRM keys. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyClearKeyConfiguration, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration' + + +class ContentKeyPolicyFairPlayConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for FairPlay licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param ask: Required. The key that must be used as FairPlay Application + Secret key. + :type ask: bytearray + :param fair_play_pfx_password: Required. The password encrypting FairPlay + certificate in PKCS 12 (pfx) format. + :type fair_play_pfx_password: str + :param fair_play_pfx: Required. The Base64 representation of FairPlay + certificate in PKCS 12 (pfx) format (including private key). + :type fair_play_pfx: str + :param rental_and_lease_key_type: Required. The rental and lease key type. + Possible values include: 'Unknown', 'Undefined', 'DualExpiry', + 'PersistentUnlimited', 'PersistentLimited' + :type rental_and_lease_key_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyFairPlayRentalAndLeaseKeyType + :param rental_duration: Required. The rental duration. Must be greater + than or equal to 0. + :type rental_duration: long + :param offline_rental_configuration: Offline rental policy + :type offline_rental_configuration: + ~azure.mgmt.media.models.ContentKeyPolicyFairPlayOfflineRentalConfiguration + """ + + _validation = { + 'odatatype': {'required': True}, + 'ask': {'required': True}, + 'fair_play_pfx_password': {'required': True}, + 'fair_play_pfx': {'required': True}, + 'rental_and_lease_key_type': {'required': True}, + 'rental_duration': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'ask': {'key': 'ask', 'type': 'bytearray'}, + 'fair_play_pfx_password': {'key': 'fairPlayPfxPassword', 'type': 'str'}, + 'fair_play_pfx': {'key': 'fairPlayPfx', 'type': 'str'}, + 'rental_and_lease_key_type': {'key': 'rentalAndLeaseKeyType', 'type': 'str'}, + 'rental_duration': {'key': 'rentalDuration', 'type': 'long'}, + 'offline_rental_configuration': {'key': 'offlineRentalConfiguration', 'type': 'ContentKeyPolicyFairPlayOfflineRentalConfiguration'}, + } + + def __init__(self, *, ask: bytearray, fair_play_pfx_password: str, fair_play_pfx: str, rental_and_lease_key_type, rental_duration: int, offline_rental_configuration=None, **kwargs) -> None: + super(ContentKeyPolicyFairPlayConfiguration, self).__init__(**kwargs) + self.ask = ask + self.fair_play_pfx_password = fair_play_pfx_password + self.fair_play_pfx = fair_play_pfx + self.rental_and_lease_key_type = rental_and_lease_key_type + self.rental_duration = rental_duration + self.offline_rental_configuration = offline_rental_configuration + self.odatatype = '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' + + +class ContentKeyPolicyFairPlayOfflineRentalConfiguration(Model): + """ContentKeyPolicyFairPlayOfflineRentalConfiguration. + + All required parameters must be populated in order to send to Azure. + + :param playback_duration_seconds: Required. Playback duration + :type playback_duration_seconds: long + :param storage_duration_seconds: Required. Storage duration + :type storage_duration_seconds: long + """ + + _validation = { + 'playback_duration_seconds': {'required': True}, + 'storage_duration_seconds': {'required': True}, + } + + _attribute_map = { + 'playback_duration_seconds': {'key': 'playbackDurationSeconds', 'type': 'long'}, + 'storage_duration_seconds': {'key': 'storageDurationSeconds', 'type': 'long'}, + } + + def __init__(self, *, playback_duration_seconds: int, storage_duration_seconds: int, **kwargs) -> None: + super(ContentKeyPolicyFairPlayOfflineRentalConfiguration, self).__init__(**kwargs) + self.playback_duration_seconds = playback_duration_seconds + self.storage_duration_seconds = storage_duration_seconds + + +class ContentKeyPolicyRestriction(Model): + """Base class for Content Key Policy restrictions. A derived class must be + used to create a restriction. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyOpenRestriction, + ContentKeyPolicyUnknownRestriction, ContentKeyPolicyTokenRestriction + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyOpenRestriction': 'ContentKeyPolicyOpenRestriction', '#Microsoft.Media.ContentKeyPolicyUnknownRestriction': 'ContentKeyPolicyUnknownRestriction', '#Microsoft.Media.ContentKeyPolicyTokenRestriction': 'ContentKeyPolicyTokenRestriction'} + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyRestriction, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyOpenRestriction(ContentKeyPolicyRestriction): + """Represents an open restriction. License or key will be delivered on every + request. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyOpenRestriction, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyOpenRestriction' + + +class ContentKeyPolicyOption(Model): + """Represents a policy option. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar policy_option_id: The legacy Policy Option ID. + :vartype policy_option_id: str + :param name: The Policy Option description. + :type name: str + :param configuration: Required. The key delivery configuration. + :type configuration: + ~azure.mgmt.media.models.ContentKeyPolicyConfiguration + :param restriction: Required. The requirements that must be met to deliver + keys with this configuration + :type restriction: ~azure.mgmt.media.models.ContentKeyPolicyRestriction + """ + + _validation = { + 'policy_option_id': {'readonly': True}, + 'configuration': {'required': True}, + 'restriction': {'required': True}, + } + + _attribute_map = { + 'policy_option_id': {'key': 'policyOptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'ContentKeyPolicyConfiguration'}, + 'restriction': {'key': 'restriction', 'type': 'ContentKeyPolicyRestriction'}, + } + + def __init__(self, *, configuration, restriction, name: str=None, **kwargs) -> None: + super(ContentKeyPolicyOption, self).__init__(**kwargs) + self.policy_option_id = None + self.name = name + self.configuration = configuration + self.restriction = restriction + + +class ContentKeyPolicyPlayReadyConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for PlayReady licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param licenses: Required. The PlayReady licenses. + :type licenses: + list[~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense] + :param response_custom_data: The custom response data. + :type response_custom_data: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'licenses': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'licenses': {'key': 'licenses', 'type': '[ContentKeyPolicyPlayReadyLicense]'}, + 'response_custom_data': {'key': 'responseCustomData', 'type': 'str'}, + } + + def __init__(self, *, licenses, response_custom_data: str=None, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyConfiguration, self).__init__(**kwargs) + self.licenses = licenses + self.response_custom_data = response_custom_data + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration' + + +class ContentKeyPolicyPlayReadyContentKeyLocation(Model): + """Base class for content key ID location. A derived class must be used to + represent the location. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, + ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'} + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyContentKeyLocation, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader(ContentKeyPolicyPlayReadyContentKeyLocation): + """Specifies that the content key ID is in the PlayReady header. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader' + + +class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(ContentKeyPolicyPlayReadyContentKeyLocation): + """Specifies that the content key ID is specified in the PlayReady + configuration. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_id: Required. The content key ID. + :type key_id: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'key_id': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_id': {'key': 'keyId', 'type': 'str'}, + } + + def __init__(self, *, key_id: str, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, self).__init__(**kwargs) + self.key_id = key_id + self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier' + + +class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction(Model): + """Configures the Explicit Analog Television Output Restriction control bits. + For further details see the PlayReady Compliance Rules. + + All required parameters must be populated in order to send to Azure. + + :param best_effort: Required. Indicates whether this restriction is + enforced on a Best Effort basis. + :type best_effort: bool + :param configuration_data: Required. Configures the restriction control + bits. Must be between 0 and 3 inclusive. + :type configuration_data: int + """ + + _validation = { + 'best_effort': {'required': True}, + 'configuration_data': {'required': True}, + } + + _attribute_map = { + 'best_effort': {'key': 'bestEffort', 'type': 'bool'}, + 'configuration_data': {'key': 'configurationData', 'type': 'int'}, + } + + def __init__(self, *, best_effort: bool, configuration_data: int, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, self).__init__(**kwargs) + self.best_effort = best_effort + self.configuration_data = configuration_data + + +class ContentKeyPolicyPlayReadyLicense(Model): + """The PlayReady license. + + All required parameters must be populated in order to send to Azure. + + :param allow_test_devices: Required. A flag indicating whether test + devices can use the license. + :type allow_test_devices: bool + :param begin_date: The begin date of license + :type begin_date: datetime + :param expiration_date: The expiration date of license. + :type expiration_date: datetime + :param relative_begin_date: The relative begin date of license. + :type relative_begin_date: timedelta + :param relative_expiration_date: The relative expiration date of license. + :type relative_expiration_date: timedelta + :param grace_period: The grace period of license. + :type grace_period: timedelta + :param play_right: The license PlayRight + :type play_right: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyPlayRight + :param license_type: Required. The license type. Possible values include: + 'Unknown', 'NonPersistent', 'Persistent' + :type license_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicenseType + :param content_key_location: Required. The content key location. + :type content_key_location: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentKeyLocation + :param content_type: Required. The PlayReady content type. Possible values + include: 'Unknown', 'Unspecified', 'UltraVioletDownload', + 'UltraVioletStreaming' + :type content_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentType + """ + + _validation = { + 'allow_test_devices': {'required': True}, + 'license_type': {'required': True}, + 'content_key_location': {'required': True}, + 'content_type': {'required': True}, + } + + _attribute_map = { + 'allow_test_devices': {'key': 'allowTestDevices', 'type': 'bool'}, + 'begin_date': {'key': 'beginDate', 'type': 'iso-8601'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, + 'relative_begin_date': {'key': 'relativeBeginDate', 'type': 'duration'}, + 'relative_expiration_date': {'key': 'relativeExpirationDate', 'type': 'duration'}, + 'grace_period': {'key': 'gracePeriod', 'type': 'duration'}, + 'play_right': {'key': 'playRight', 'type': 'ContentKeyPolicyPlayReadyPlayRight'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'content_key_location': {'key': 'contentKeyLocation', 'type': 'ContentKeyPolicyPlayReadyContentKeyLocation'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, *, allow_test_devices: bool, license_type, content_key_location, content_type, begin_date=None, expiration_date=None, relative_begin_date=None, relative_expiration_date=None, grace_period=None, play_right=None, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyLicense, self).__init__(**kwargs) + self.allow_test_devices = allow_test_devices + self.begin_date = begin_date + self.expiration_date = expiration_date + self.relative_begin_date = relative_begin_date + self.relative_expiration_date = relative_expiration_date + self.grace_period = grace_period + self.play_right = play_right + self.license_type = license_type + self.content_key_location = content_key_location + self.content_type = content_type + + +class ContentKeyPolicyPlayReadyPlayRight(Model): + """Configures the Play Right in the PlayReady license. + + All required parameters must be populated in order to send to Azure. + + :param first_play_expiration: The amount of time that the license is valid + after the license is first used to play content. + :type first_play_expiration: timedelta + :param scms_restriction: Configures the Serial Copy Management System + (SCMS) in the license. Must be between 0 and 3 inclusive. + :type scms_restriction: int + :param agc_and_color_stripe_restriction: Configures Automatic Gain Control + (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive. + :type agc_and_color_stripe_restriction: int + :param explicit_analog_television_output_restriction: Configures the + Explicit Analog Television Output Restriction in the license. + Configuration data must be between 0 and 3 inclusive. + :type explicit_analog_television_output_restriction: + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction + :param digital_video_only_content_restriction: Required. Enables the Image + Constraint For Analog Component Video Restriction in the license. + :type digital_video_only_content_restriction: bool + :param image_constraint_for_analog_component_video_restriction: Required. + Enables the Image Constraint For Analog Component Video Restriction in the + license. + :type image_constraint_for_analog_component_video_restriction: bool + :param image_constraint_for_analog_computer_monitor_restriction: Required. + Enables the Image Constraint For Analog Component Video Restriction in the + license. + :type image_constraint_for_analog_computer_monitor_restriction: bool + :param allow_passing_video_content_to_unknown_output: Required. Configures + Unknown output handling settings of the license. Possible values include: + 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction' + :type allow_passing_video_content_to_unknown_output: str or + ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption + :param uncompressed_digital_video_opl: Specifies the output protection + level for uncompressed digital video. + :type uncompressed_digital_video_opl: int + :param compressed_digital_video_opl: Specifies the output protection level + for compressed digital video. + :type compressed_digital_video_opl: int + :param analog_video_opl: Specifies the output protection level for + compressed digital audio. + :type analog_video_opl: int + :param compressed_digital_audio_opl: Specifies the output protection level + for compressed digital audio. + :type compressed_digital_audio_opl: int + :param uncompressed_digital_audio_opl: Specifies the output protection + level for uncompressed digital audio. + :type uncompressed_digital_audio_opl: int + """ + + _validation = { + 'digital_video_only_content_restriction': {'required': True}, + 'image_constraint_for_analog_component_video_restriction': {'required': True}, + 'image_constraint_for_analog_computer_monitor_restriction': {'required': True}, + 'allow_passing_video_content_to_unknown_output': {'required': True}, + } + + _attribute_map = { + 'first_play_expiration': {'key': 'firstPlayExpiration', 'type': 'duration'}, + 'scms_restriction': {'key': 'scmsRestriction', 'type': 'int'}, + 'agc_and_color_stripe_restriction': {'key': 'agcAndColorStripeRestriction', 'type': 'int'}, + 'explicit_analog_television_output_restriction': {'key': 'explicitAnalogTelevisionOutputRestriction', 'type': 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction'}, + 'digital_video_only_content_restriction': {'key': 'digitalVideoOnlyContentRestriction', 'type': 'bool'}, + 'image_constraint_for_analog_component_video_restriction': {'key': 'imageConstraintForAnalogComponentVideoRestriction', 'type': 'bool'}, + 'image_constraint_for_analog_computer_monitor_restriction': {'key': 'imageConstraintForAnalogComputerMonitorRestriction', 'type': 'bool'}, + 'allow_passing_video_content_to_unknown_output': {'key': 'allowPassingVideoContentToUnknownOutput', 'type': 'str'}, + 'uncompressed_digital_video_opl': {'key': 'uncompressedDigitalVideoOpl', 'type': 'int'}, + 'compressed_digital_video_opl': {'key': 'compressedDigitalVideoOpl', 'type': 'int'}, + 'analog_video_opl': {'key': 'analogVideoOpl', 'type': 'int'}, + 'compressed_digital_audio_opl': {'key': 'compressedDigitalAudioOpl', 'type': 'int'}, + 'uncompressed_digital_audio_opl': {'key': 'uncompressedDigitalAudioOpl', 'type': 'int'}, + } + + def __init__(self, *, digital_video_only_content_restriction: bool, image_constraint_for_analog_component_video_restriction: bool, image_constraint_for_analog_computer_monitor_restriction: bool, allow_passing_video_content_to_unknown_output, first_play_expiration=None, scms_restriction: int=None, agc_and_color_stripe_restriction: int=None, explicit_analog_television_output_restriction=None, uncompressed_digital_video_opl: int=None, compressed_digital_video_opl: int=None, analog_video_opl: int=None, compressed_digital_audio_opl: int=None, uncompressed_digital_audio_opl: int=None, **kwargs) -> None: + super(ContentKeyPolicyPlayReadyPlayRight, self).__init__(**kwargs) + self.first_play_expiration = first_play_expiration + self.scms_restriction = scms_restriction + self.agc_and_color_stripe_restriction = agc_and_color_stripe_restriction + self.explicit_analog_television_output_restriction = explicit_analog_television_output_restriction + self.digital_video_only_content_restriction = digital_video_only_content_restriction + self.image_constraint_for_analog_component_video_restriction = image_constraint_for_analog_component_video_restriction + self.image_constraint_for_analog_computer_monitor_restriction = image_constraint_for_analog_computer_monitor_restriction + self.allow_passing_video_content_to_unknown_output = allow_passing_video_content_to_unknown_output + self.uncompressed_digital_video_opl = uncompressed_digital_video_opl + self.compressed_digital_video_opl = compressed_digital_video_opl + self.analog_video_opl = analog_video_opl + self.compressed_digital_audio_opl = compressed_digital_audio_opl + self.uncompressed_digital_audio_opl = uncompressed_digital_audio_opl + + +class ContentKeyPolicyProperties(Model): + """The properties of the Content Key Policy. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar policy_id: The legacy Policy ID. + :vartype policy_id: str + :ivar created: The creation date of the Policy + :vartype created: datetime + :ivar last_modified: The last modified date of the Policy + :vartype last_modified: datetime + :param description: A description for the Policy. + :type description: str + :param options: Required. The Key Policy options. + :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] + """ + + _validation = { + 'policy_id': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'options': {'required': True}, + } + + _attribute_map = { + 'policy_id': {'key': 'policyId', 'type': 'str'}, + 'created': {'key': 'created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'options': {'key': 'options', 'type': '[ContentKeyPolicyOption]'}, + } + + def __init__(self, *, options, description: str=None, **kwargs) -> None: + super(ContentKeyPolicyProperties, self).__init__(**kwargs) + self.policy_id = None + self.created = None + self.last_modified = None + self.description = description + self.options = options + + +class ContentKeyPolicyRestrictionTokenKey(Model): + """Base class for Content Key Policy key for token validation. A derived class + must be used to create a token key. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ContentKeyPolicySymmetricTokenKey, + ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ContentKeyPolicySymmetricTokenKey': 'ContentKeyPolicySymmetricTokenKey', '#Microsoft.Media.ContentKeyPolicyRsaTokenKey': 'ContentKeyPolicyRsaTokenKey', '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey': 'ContentKeyPolicyX509CertificateTokenKey'} + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyRestrictionTokenKey, self).__init__(**kwargs) + self.odatatype = None + + +class ContentKeyPolicyRsaTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a RSA key for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param exponent: Required. The RSA Parameter exponent + :type exponent: bytearray + :param modulus: Required. The RSA Parameter modulus + :type modulus: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'exponent': {'required': True}, + 'modulus': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'exponent': {'key': 'exponent', 'type': 'bytearray'}, + 'modulus': {'key': 'modulus', 'type': 'bytearray'}, + } + + def __init__(self, *, exponent: bytearray, modulus: bytearray, **kwargs) -> None: + super(ContentKeyPolicyRsaTokenKey, self).__init__(**kwargs) + self.exponent = exponent + self.modulus = modulus + self.odatatype = '#Microsoft.Media.ContentKeyPolicyRsaTokenKey' + + +class ContentKeyPolicySymmetricTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a symmetric key for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_value: Required. The key value of the key + :type key_value: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'key_value': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_value': {'key': 'keyValue', 'type': 'bytearray'}, + } + + def __init__(self, *, key_value: bytearray, **kwargs) -> None: + super(ContentKeyPolicySymmetricTokenKey, self).__init__(**kwargs) + self.key_value = key_value + self.odatatype = '#Microsoft.Media.ContentKeyPolicySymmetricTokenKey' + + +class ContentKeyPolicyTokenClaim(Model): + """Represents a token claim. + + :param claim_type: Token claim type. + :type claim_type: str + :param claim_value: Token claim value. + :type claim_value: str + """ + + _attribute_map = { + 'claim_type': {'key': 'claimType', 'type': 'str'}, + 'claim_value': {'key': 'claimValue', 'type': 'str'}, + } + + def __init__(self, *, claim_type: str=None, claim_value: str=None, **kwargs) -> None: + super(ContentKeyPolicyTokenClaim, self).__init__(**kwargs) + self.claim_type = claim_type + self.claim_value = claim_value + + +class ContentKeyPolicyTokenRestriction(ContentKeyPolicyRestriction): + """Represents a token restriction. Provided token must match these + requirements for successful license or key delivery. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param issuer: Required. The token issuer. + :type issuer: str + :param audience: Required. The audience for the token. + :type audience: str + :param primary_verification_key: Required. The primary verification key. + :type primary_verification_key: + ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey + :param alternate_verification_keys: A list of alternative verification + keys. + :type alternate_verification_keys: + list[~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey] + :param required_claims: A list of required token claims. + :type required_claims: + list[~azure.mgmt.media.models.ContentKeyPolicyTokenClaim] + :param restriction_token_type: Required. The type of token. Possible + values include: 'Unknown', 'Swt', 'Jwt' + :type restriction_token_type: str or + ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenType + :param open_id_connect_discovery_document: The OpenID connect discovery + document. + :type open_id_connect_discovery_document: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'issuer': {'required': True}, + 'audience': {'required': True}, + 'primary_verification_key': {'required': True}, + 'restriction_token_type': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + 'primary_verification_key': {'key': 'primaryVerificationKey', 'type': 'ContentKeyPolicyRestrictionTokenKey'}, + 'alternate_verification_keys': {'key': 'alternateVerificationKeys', 'type': '[ContentKeyPolicyRestrictionTokenKey]'}, + 'required_claims': {'key': 'requiredClaims', 'type': '[ContentKeyPolicyTokenClaim]'}, + 'restriction_token_type': {'key': 'restrictionTokenType', 'type': 'str'}, + 'open_id_connect_discovery_document': {'key': 'openIdConnectDiscoveryDocument', 'type': 'str'}, + } + + def __init__(self, *, issuer: str, audience: str, primary_verification_key, restriction_token_type, alternate_verification_keys=None, required_claims=None, open_id_connect_discovery_document: str=None, **kwargs) -> None: + super(ContentKeyPolicyTokenRestriction, self).__init__(**kwargs) + self.issuer = issuer + self.audience = audience + self.primary_verification_key = primary_verification_key + self.alternate_verification_keys = alternate_verification_keys + self.required_claims = required_claims + self.restriction_token_type = restriction_token_type + self.open_id_connect_discovery_document = open_id_connect_discovery_document + self.odatatype = '#Microsoft.Media.ContentKeyPolicyTokenRestriction' + + +class ContentKeyPolicyUnknownConfiguration(ContentKeyPolicyConfiguration): + """Represents a ContentKeyPolicyConfiguration that is unavailable in the + current API version. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyUnknownConfiguration, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration' + + +class ContentKeyPolicyUnknownRestriction(ContentKeyPolicyRestriction): + """Represents a ContentKeyPolicyRestriction that is unavailable in the current + API version. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ContentKeyPolicyUnknownRestriction, self).__init__(**kwargs) + self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownRestriction' + + +class ContentKeyPolicyWidevineConfiguration(ContentKeyPolicyConfiguration): + """Specifies a configuration for Widevine licenses. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param widevine_template: Required. The Widevine template. + :type widevine_template: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'widevine_template': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'widevine_template': {'key': 'widevineTemplate', 'type': 'str'}, + } + + def __init__(self, *, widevine_template: str, **kwargs) -> None: + super(ContentKeyPolicyWidevineConfiguration, self).__init__(**kwargs) + self.widevine_template = widevine_template + self.odatatype = '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration' + + +class ContentKeyPolicyX509CertificateTokenKey(ContentKeyPolicyRestrictionTokenKey): + """Specifies a certificate for token validation. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param raw_body: Required. The raw data field of a certificate in PKCS 12 + format (X509Certificate2 in .NET) + :type raw_body: bytearray + """ + + _validation = { + 'odatatype': {'required': True}, + 'raw_body': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'raw_body': {'key': 'rawBody', 'type': 'bytearray'}, + } + + def __init__(self, *, raw_body: bytearray, **kwargs) -> None: + super(ContentKeyPolicyX509CertificateTokenKey, self).__init__(**kwargs) + self.raw_body = raw_body + self.odatatype = '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey' + + +class CopyAudio(Codec): + """A codec flag, which tells the encoder to copy the input audio bitstream. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, label: str=None, **kwargs) -> None: + super(CopyAudio, self).__init__(label=label, **kwargs) + self.odatatype = '#Microsoft.Media.CopyAudio' + + +class CopyVideo(Codec): + """A codec flag, which tells the encoder to copy the input video bitstream + without re-encoding. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, label: str=None, **kwargs) -> None: + super(CopyVideo, self).__init__(label=label, **kwargs) + self.odatatype = '#Microsoft.Media.CopyVideo' + + +class CrossSiteAccessPolicies(Model): + """The client access policy. + + :param client_access_policy: The content of clientaccesspolicy.xml used by + Silverlight. + :type client_access_policy: str + :param cross_domain_policy: The content of crossdomain.xml used by + Silverlight. + :type cross_domain_policy: str + """ + + _attribute_map = { + 'client_access_policy': {'key': 'clientAccessPolicy', 'type': 'str'}, + 'cross_domain_policy': {'key': 'crossDomainPolicy', 'type': 'str'}, + } + + def __init__(self, *, client_access_policy: str=None, cross_domain_policy: str=None, **kwargs) -> None: + super(CrossSiteAccessPolicies, self).__init__(**kwargs) + self.client_access_policy = client_access_policy + self.cross_domain_policy = cross_domain_policy + + +class DefaultKey(Model): + """Class to specify properties of default content key for each encryption + scheme. + + :param label: Label can be used to specify Content Key when creating a + Streaming Locator + :type label: str + :param policy_name: Policy used by Default Key + :type policy_name: str + """ + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + } + + def __init__(self, *, label: str=None, policy_name: str=None, **kwargs) -> None: + super(DefaultKey, self).__init__(**kwargs) + self.label = label + self.policy_name = policy_name + + +class Deinterlace(Model): + """Describes the de-interlacing settings. + + :param parity: The field parity for de-interlacing, defaults to Auto. + Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst' + :type parity: str or ~azure.mgmt.media.models.DeinterlaceParity + :param mode: The deinterlacing mode. Defaults to AutoPixelAdaptive. + Possible values include: 'Off', 'AutoPixelAdaptive' + :type mode: str or ~azure.mgmt.media.models.DeinterlaceMode + """ + + _attribute_map = { + 'parity': {'key': 'parity', 'type': 'str'}, + 'mode': {'key': 'mode', 'type': 'str'}, + } + + def __init__(self, *, parity=None, mode=None, **kwargs) -> None: + super(Deinterlace, self).__init__(**kwargs) + self.parity = parity + self.mode = mode + + +class EnabledProtocols(Model): + """Class to specify which protocols are enabled. + + All required parameters must be populated in order to send to Azure. + + :param download: Required. Enable Download protocol or not + :type download: bool + :param dash: Required. Enable DASH protocol or not + :type dash: bool + :param hls: Required. Enable HLS protocol or not + :type hls: bool + :param smooth_streaming: Required. Enable SmoothStreaming protocol or not + :type smooth_streaming: bool + """ + + _validation = { + 'download': {'required': True}, + 'dash': {'required': True}, + 'hls': {'required': True}, + 'smooth_streaming': {'required': True}, + } + + _attribute_map = { + 'download': {'key': 'download', 'type': 'bool'}, + 'dash': {'key': 'dash', 'type': 'bool'}, + 'hls': {'key': 'hls', 'type': 'bool'}, + 'smooth_streaming': {'key': 'smoothStreaming', 'type': 'bool'}, + } + + def __init__(self, *, download: bool, dash: bool, hls: bool, smooth_streaming: bool, **kwargs) -> None: + super(EnabledProtocols, self).__init__(**kwargs) + self.download = download + self.dash = dash + self.hls = hls + self.smooth_streaming = smooth_streaming + + +class EntityNameAvailabilityCheckOutput(Model): + """The response from the check name availability request. + + All required parameters must be populated in order to send to Azure. + + :param name_available: Required. Specifies if the name is available. + :type name_available: bool + :param reason: Specifies the reason if the name is not available. + :type reason: str + :param message: Specifies the detailed reason if the name is not + available. + :type message: str + """ + + _validation = { + 'name_available': {'required': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, name_available: bool, reason: str=None, message: str=None, **kwargs) -> None: + super(EntityNameAvailabilityCheckOutput, self).__init__(**kwargs) + self.name_available = name_available + self.reason = reason + self.message = message + + +class EnvelopeEncryption(Model): + """Class for EnvelopeEncryption encryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + :param clear_tracks: Representing which tracks should not be encrypted + :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] + :param content_keys: Representing default content key for each encryption + scheme and separate content keys for specific tracks + :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys + :param custom_key_acquisition_url_template: Template for the URL of the + custom service delivering keys to end user players. Not required when + using Azure Media Services for issuing keys. The template supports + replaceable tokens that the service will update at runtime with the value + specific to the request. The currently supported token values are + {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_key_acquisition_url_template: str + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, + 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, + 'custom_key_acquisition_url_template': {'key': 'customKeyAcquisitionUrlTemplate', 'type': 'str'}, + } + + def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, custom_key_acquisition_url_template: str=None, **kwargs) -> None: + super(EnvelopeEncryption, self).__init__(**kwargs) + self.enabled_protocols = enabled_protocols + self.clear_tracks = clear_tracks + self.content_keys = content_keys + self.custom_key_acquisition_url_template = custom_key_acquisition_url_template + + +class FaceDetectorPreset(Preset): + """Describes all the settings to be used when analyzing a video in order to + detect all the faces present. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param resolution: Specifies the maximum resolution at which your video is + analyzed. The default behavior is "SourceResolution," which will keep the + input video at its original resolution when analyzed. Using + "StandardDefinition" will resize input videos to standard definition while + preserving the appropriate aspect ratio. It will only resize if the video + is of higher resolution. For example, a 1920x1080 input would be scaled to + 640x360 before processing. Switching to "StandardDefinition" will reduce + the time it takes to process high resolution video. It may also reduce the + cost of using this component (see + https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics + for details). However, faces that end up being too small in the resized + video may not be detected. Possible values include: 'SourceResolution', + 'StandardDefinition' + :type resolution: str or ~azure.mgmt.media.models.AnalysisResolution + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'resolution': {'key': 'resolution', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + } + + def __init__(self, *, resolution=None, experimental_options=None, **kwargs) -> None: + super(FaceDetectorPreset, self).__init__(**kwargs) + self.resolution = resolution + self.experimental_options = experimental_options + self.odatatype = '#Microsoft.Media.FaceDetectorPreset' + + +class Filters(Model): + """Describes all the filtering operations, such as de-interlacing, rotation + etc. that are to be applied to the input media before encoding. + + :param deinterlace: The de-interlacing settings. + :type deinterlace: ~azure.mgmt.media.models.Deinterlace + :param rotation: The rotation, if any, to be applied to the input video, + before it is encoded. Default is Auto. Possible values include: 'Auto', + 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270' + :type rotation: str or ~azure.mgmt.media.models.Rotation + :param crop: The parameters for the rectangular window with which to crop + the input video. + :type crop: ~azure.mgmt.media.models.Rectangle + :param overlays: The properties of overlays to be applied to the input + video. These could be audio, image or video overlays. + :type overlays: list[~azure.mgmt.media.models.Overlay] + """ + + _attribute_map = { + 'deinterlace': {'key': 'deinterlace', 'type': 'Deinterlace'}, + 'rotation': {'key': 'rotation', 'type': 'str'}, + 'crop': {'key': 'crop', 'type': 'Rectangle'}, + 'overlays': {'key': 'overlays', 'type': '[Overlay]'}, + } + + def __init__(self, *, deinterlace=None, rotation=None, crop=None, overlays=None, **kwargs) -> None: + super(Filters, self).__init__(**kwargs) + self.deinterlace = deinterlace + self.rotation = rotation + self.crop = crop + self.overlays = overlays + + +class FilterTrackPropertyCondition(Model): + """The class to specify one track property condition. + + All required parameters must be populated in order to send to Azure. + + :param property: Required. The track property type. Possible values + include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate' + :type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType + :param value: Required. The track property value. + :type value: str + :param operation: Required. The track property condition operation. + Possible values include: 'Equal', 'NotEqual' + :type operation: str or + ~azure.mgmt.media.models.FilterTrackPropertyCompareOperation + """ + + _validation = { + 'property': {'required': True}, + 'value': {'required': True}, + 'operation': {'required': True}, + } + + _attribute_map = { + 'property': {'key': 'property', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, *, property, value: str, operation, **kwargs) -> None: + super(FilterTrackPropertyCondition, self).__init__(**kwargs) + self.property = property + self.value = value + self.operation = operation + + +class FilterTrackSelection(Model): + """Representing a list of FilterTrackPropertyConditions to select a track. + The filters are combined using a logical AND operation. + + All required parameters must be populated in order to send to Azure. + + :param track_selections: Required. The track selections. + :type track_selections: + list[~azure.mgmt.media.models.FilterTrackPropertyCondition] + """ + + _validation = { + 'track_selections': {'required': True}, + } + + _attribute_map = { + 'track_selections': {'key': 'trackSelections', 'type': '[FilterTrackPropertyCondition]'}, + } + + def __init__(self, *, track_selections, **kwargs) -> None: + super(FilterTrackSelection, self).__init__(**kwargs) + self.track_selections = track_selections + + +class FirstQuality(Model): + """Filter First Quality. + + All required parameters must be populated in order to send to Azure. + + :param bitrate: Required. The first quality bitrate. + :type bitrate: int + """ + + _validation = { + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + } + + def __init__(self, *, bitrate: int, **kwargs) -> None: + super(FirstQuality, self).__init__(**kwargs) + self.bitrate = bitrate + + +class Format(Model): + """Base class for output. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ImageFormat, MultiBitrateFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.ImageFormat': 'ImageFormat', '#Microsoft.Media.MultiBitrateFormat': 'MultiBitrateFormat'} + } + + def __init__(self, *, filename_pattern: str, **kwargs) -> None: + super(Format, self).__init__(**kwargs) + self.filename_pattern = filename_pattern + self.odatatype = None + + +class Layer(Model): + """The encoder can be configured to produce video and/or images (thumbnails) + at different resolutions, by specifying a layer for each desired + resolution. A layer represents the properties for the video or image at a + resolution. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VideoLayer, JpgLayer, PngLayer + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.VideoLayer': 'VideoLayer', '#Microsoft.Media.JpgLayer': 'JpgLayer', '#Microsoft.Media.PngLayer': 'PngLayer'} + } + + def __init__(self, *, width: str=None, height: str=None, label: str=None, **kwargs) -> None: + super(Layer, self).__init__(**kwargs) + self.width = width + self.height = height + self.label = label + self.odatatype = None + + +class VideoLayer(Layer): + """Describes the settings to be used when encoding the input video into a + desired output bitrate layer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: H264Layer + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param bitrate: Required. The average bitrate in bits per second at which + to encode the input video when generating this layer. This is a required + field. + :type bitrate: int + :param max_bitrate: The maximum bitrate (in bits per second), at which the + VBV buffer should be assumed to refill. If not specified, defaults to the + same value as bitrate. + :type max_bitrate: int + :param b_frames: The number of B-frames to be used when encoding this + layer. If not specified, the encoder chooses an appropriate number based + on the video profile and level. + :type b_frames: int + :param frame_rate: The frame rate (in frames per second) at which to + encode this layer. The value can be in the form of M/N where M and N are + integers (For example, 30000/1001), or in the form of a number (For + example, 30, or 29.97). The encoder enforces constraints on allowed frame + rates based on the profile and level. If it is not specified, the encoder + will use the same frame rate as the input video. + :type frame_rate: str + :param slices: The number of slices to be used when encoding this layer. + If not specified, default is zero, which means that encoder will use a + single slice for each frame. + :type slices: int + :param adaptive_bframe: Whether or not adaptive B-frames are to be used + when encoding this layer. If not specified, the encoder will turn it on + whenever the video profile permits its use. + :type adaptive_bframe: bool + """ + + _validation = { + 'odatatype': {'required': True}, + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, + 'b_frames': {'key': 'bFrames', 'type': 'int'}, + 'frame_rate': {'key': 'frameRate', 'type': 'str'}, + 'slices': {'key': 'slices', 'type': 'int'}, + 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.H264Layer': 'H264Layer'} + } + + def __init__(self, *, bitrate: int, width: str=None, height: str=None, label: str=None, max_bitrate: int=None, b_frames: int=None, frame_rate: str=None, slices: int=None, adaptive_bframe: bool=None, **kwargs) -> None: + super(VideoLayer, self).__init__(width=width, height=height, label=label, **kwargs) + self.bitrate = bitrate + self.max_bitrate = max_bitrate + self.b_frames = b_frames + self.frame_rate = frame_rate + self.slices = slices + self.adaptive_bframe = adaptive_bframe + self.odatatype = '#Microsoft.Media.VideoLayer' + + +class H264Layer(VideoLayer): + """Describes the settings to be used when encoding the input video into a + desired output bitrate layer with the H.264 video codec. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param bitrate: Required. The average bitrate in bits per second at which + to encode the input video when generating this layer. This is a required + field. + :type bitrate: int + :param max_bitrate: The maximum bitrate (in bits per second), at which the + VBV buffer should be assumed to refill. If not specified, defaults to the + same value as bitrate. + :type max_bitrate: int + :param b_frames: The number of B-frames to be used when encoding this + layer. If not specified, the encoder chooses an appropriate number based + on the video profile and level. + :type b_frames: int + :param frame_rate: The frame rate (in frames per second) at which to + encode this layer. The value can be in the form of M/N where M and N are + integers (For example, 30000/1001), or in the form of a number (For + example, 30, or 29.97). The encoder enforces constraints on allowed frame + rates based on the profile and level. If it is not specified, the encoder + will use the same frame rate as the input video. + :type frame_rate: str + :param slices: The number of slices to be used when encoding this layer. + If not specified, default is zero, which means that encoder will use a + single slice for each frame. + :type slices: int + :param adaptive_bframe: Whether or not adaptive B-frames are to be used + when encoding this layer. If not specified, the encoder will turn it on + whenever the video profile permits its use. + :type adaptive_bframe: bool + :param profile: We currently support Baseline, Main, High, High422, + High444. Default is Auto. Possible values include: 'Auto', 'Baseline', + 'Main', 'High', 'High422', 'High444' + :type profile: str or ~azure.mgmt.media.models.H264VideoProfile + :param level: We currently support Level up to 6.2. The value can be Auto, + or a number that matches the H.264 profile. If not specified, the default + is Auto, which lets the encoder choose the Level that is appropriate for + this layer. + :type level: str + :param buffer_window: The VBV buffer window length. The value should be in + ISO 8601 format. The value should be in the range [0.1-100] seconds. The + default is 5 seconds (for example, PT5S). + :type buffer_window: timedelta + :param reference_frames: The number of reference frames to be used when + encoding this layer. If not specified, the encoder determines an + appropriate number based on the encoder complexity setting. + :type reference_frames: int + :param entropy_mode: The entropy mode to be used for this layer. If not + specified, the encoder chooses the mode that is appropriate for the + profile and level. Possible values include: 'Cabac', 'Cavlc' + :type entropy_mode: str or ~azure.mgmt.media.models.EntropyMode + """ + + _validation = { + 'odatatype': {'required': True}, + 'bitrate': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'bitrate': {'key': 'bitrate', 'type': 'int'}, + 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, + 'b_frames': {'key': 'bFrames', 'type': 'int'}, + 'frame_rate': {'key': 'frameRate', 'type': 'str'}, + 'slices': {'key': 'slices', 'type': 'int'}, + 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, + 'profile': {'key': 'profile', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'buffer_window': {'key': 'bufferWindow', 'type': 'duration'}, + 'reference_frames': {'key': 'referenceFrames', 'type': 'int'}, + 'entropy_mode': {'key': 'entropyMode', 'type': 'str'}, + } + + def __init__(self, *, bitrate: int, width: str=None, height: str=None, label: str=None, max_bitrate: int=None, b_frames: int=None, frame_rate: str=None, slices: int=None, adaptive_bframe: bool=None, profile=None, level: str=None, buffer_window=None, reference_frames: int=None, entropy_mode=None, **kwargs) -> None: + super(H264Layer, self).__init__(width=width, height=height, label=label, bitrate=bitrate, max_bitrate=max_bitrate, b_frames=b_frames, frame_rate=frame_rate, slices=slices, adaptive_bframe=adaptive_bframe, **kwargs) + self.profile = profile + self.level = level + self.buffer_window = buffer_window + self.reference_frames = reference_frames + self.entropy_mode = entropy_mode + self.odatatype = '#Microsoft.Media.H264Layer' + + +class Video(Codec): + """Describes the basic properties for encoding the input video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Image, H264Video + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Image': 'Image', '#Microsoft.Media.H264Video': 'H264Video'} + } + + def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, **kwargs) -> None: + super(Video, self).__init__(label=label, **kwargs) + self.key_frame_interval = key_frame_interval + self.stretch_mode = stretch_mode + self.odatatype = '#Microsoft.Media.Video' + + +class H264Video(Video): + """Describes all the properties for encoding a video with the H.264 codec. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param scene_change_detection: Whether or not the encoder should insert + key frames at scene changes. If not specified, the default is false. This + flag should be set to true only when the encoder is being configured to + produce a single output video. + :type scene_change_detection: bool + :param complexity: Tells the encoder how to choose its encoding settings. + The default value is Balanced. Possible values include: 'Speed', + 'Balanced', 'Quality' + :type complexity: str or ~azure.mgmt.media.models.H264Complexity + :param layers: The collection of output H.264 layers to be produced by the + encoder. + :type layers: list[~azure.mgmt.media.models.H264Layer] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'scene_change_detection': {'key': 'sceneChangeDetection', 'type': 'bool'}, + 'complexity': {'key': 'complexity', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[H264Layer]'}, + } + + def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, scene_change_detection: bool=None, complexity=None, layers=None, **kwargs) -> None: + super(H264Video, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, **kwargs) + self.scene_change_detection = scene_change_detection + self.complexity = complexity + self.layers = layers + self.odatatype = '#Microsoft.Media.H264Video' + + +class Hls(Model): + """The HLS configuration. + + :param fragments_per_ts_segment: The amount of fragments per HTTP Live + Streaming (HLS) segment. + :type fragments_per_ts_segment: int + """ + + _attribute_map = { + 'fragments_per_ts_segment': {'key': 'fragmentsPerTsSegment', 'type': 'int'}, + } + + def __init__(self, *, fragments_per_ts_segment: int=None, **kwargs) -> None: + super(Hls, self).__init__(**kwargs) + self.fragments_per_ts_segment = fragments_per_ts_segment + + +class Image(Video): + """Describes the basic properties for generating thumbnails from the input + video. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JpgImage, PngImage + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JpgImage': 'JpgImage', '#Microsoft.Media.PngImage': 'PngImage'} + } + + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, **kwargs) -> None: + super(Image, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, **kwargs) + self.start = start + self.step = step + self.range = range + self.odatatype = '#Microsoft.Media.Image' + + +class ImageFormat(Format): + """Describes the properties for an output image file. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JpgFormat, PngFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JpgFormat': 'JpgFormat', '#Microsoft.Media.PngFormat': 'PngFormat'} + } + + def __init__(self, *, filename_pattern: str, **kwargs) -> None: + super(ImageFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) + self.odatatype = '#Microsoft.Media.ImageFormat' + + +class IPAccessControl(Model): + """The IP access control. + + :param allow: The IP allow list. + :type allow: list[~azure.mgmt.media.models.IPRange] + """ + + _attribute_map = { + 'allow': {'key': 'allow', 'type': '[IPRange]'}, + } + + def __init__(self, *, allow=None, **kwargs) -> None: + super(IPAccessControl, self).__init__(**kwargs) + self.allow = allow + + +class IPRange(Model): + """The IP address range in the CIDR scheme. + + :param name: The friendly name for the IP address range. + :type name: str + :param address: The IP address. + :type address: str + :param subnet_prefix_length: The subnet mask prefix length (see CIDR + notation). + :type subnet_prefix_length: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'subnet_prefix_length': {'key': 'subnetPrefixLength', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, address: str=None, subnet_prefix_length: int=None, **kwargs) -> None: + super(IPRange, self).__init__(**kwargs) + self.name = name + self.address = address + self.subnet_prefix_length = subnet_prefix_length + + +class Job(ProxyResource): + """A Job resource type. The progress and state can be obtained by polling a + Job or subscribing to events using EventGrid. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar created: The UTC date and time when the Job was created, in + 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype created: datetime + :ivar state: The current state of the job. Possible values include: + 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', + 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :param description: Optional customer supplied description of the Job. + :type description: str + :param input: Required. The inputs for the Job. + :type input: ~azure.mgmt.media.models.JobInput + :ivar last_modified: The UTC date and time when the Job was last updated, + in 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype last_modified: datetime + :param outputs: Required. The outputs for the Job. + :type outputs: list[~azure.mgmt.media.models.JobOutput] + :param priority: Priority with which the job should be processed. Higher + priority jobs are processed before lower priority jobs. If not set, the + default is normal. Possible values include: 'Low', 'Normal', 'High' + :type priority: str or ~azure.mgmt.media.models.Priority + :param correlation_data: Customer provided key, value pairs that will be + returned in Job and JobOutput state events. + :type correlation_data: dict[str, str] + :ivar start_time: The UTC date and time at which this Job began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job finished + processing. + :vartype end_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + 'state': {'readonly': True}, + 'input': {'required': True}, + 'last_modified': {'readonly': True}, + 'outputs': {'required': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'input': {'key': 'properties.input', 'type': 'JobInput'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'outputs': {'key': 'properties.outputs', 'type': '[JobOutput]'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'correlation_data': {'key': 'properties.correlationData', 'type': '{str}'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, input, outputs, description: str=None, priority=None, correlation_data=None, **kwargs) -> None: + super(Job, self).__init__(**kwargs) + self.created = None + self.state = None + self.description = description + self.input = input + self.last_modified = None + self.outputs = outputs + self.priority = priority + self.correlation_data = correlation_data + self.start_time = None + self.end_time = None + + +class JobError(Model): + """Details of JobOutput errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code describing the error. Possible values include: + 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', + 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', + 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' + :vartype code: str or ~azure.mgmt.media.models.JobErrorCode + :ivar message: A human-readable language-dependent representation of the + error. + :vartype message: str + :ivar category: Helps with categorization of errors. Possible values + include: 'Service', 'Download', 'Upload', 'Configuration', 'Content' + :vartype category: str or ~azure.mgmt.media.models.JobErrorCategory + :ivar retry: Indicates that it may be possible to retry the Job. If retry + is unsuccessful, please contact Azure support via Azure Portal. Possible + values include: 'DoNotRetry', 'MayRetry' + :vartype retry: str or ~azure.mgmt.media.models.JobRetry + :ivar details: An array of details about specific errors that led to this + reported error. + :vartype details: list[~azure.mgmt.media.models.JobErrorDetail] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'category': {'readonly': True}, + 'retry': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'retry': {'key': 'retry', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[JobErrorDetail]'}, + } + + def __init__(self, **kwargs) -> None: + super(JobError, self).__init__(**kwargs) + self.code = None + self.message = None + self.category = None + self.retry = None + self.details = None + + +class JobErrorDetail(Model): + """Details of JobOutput errors. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Code describing the error detail. + :vartype code: str + :ivar message: A human-readable representation of the error. + :vartype message: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(JobErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + + +class JobInput(Model): + """Base class for inputs to a Job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobInputClip, JobInputs + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobInputClip': 'JobInputClip', '#Microsoft.Media.JobInputs': 'JobInputs'} + } + + def __init__(self, **kwargs) -> None: + super(JobInput, self).__init__(**kwargs) + self.odatatype = None + + +class JobInputClip(JobInput): + """Represents input files for a Job. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobInputAsset, JobInputHttp + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobInputAsset': 'JobInputAsset', '#Microsoft.Media.JobInputHttp': 'JobInputHttp'} + } + + def __init__(self, *, files=None, start=None, end=None, label: str=None, **kwargs) -> None: + super(JobInputClip, self).__init__(**kwargs) + self.files = files + self.start = start + self.end = end + self.label = label + self.odatatype = '#Microsoft.Media.JobInputClip' + + +class JobInputAsset(JobInputClip): + """Represents an Asset for input into a Job. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + :param asset_name: Required. The name of the input Asset. + :type asset_name: str + """ + + _validation = { + 'odatatype': {'required': True}, + 'asset_name': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + } + + def __init__(self, *, asset_name: str, files=None, start=None, end=None, label: str=None, **kwargs) -> None: + super(JobInputAsset, self).__init__(files=files, start=start, end=end, label=label, **kwargs) + self.asset_name = asset_name + self.odatatype = '#Microsoft.Media.JobInputAsset' + + +class JobInputHttp(JobInputClip): + """Represents HTTPS job input. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param files: List of files. Required for JobInputHttp. Maximum of 4000 + characters each. + :type files: list[str] + :param start: Defines a point on the timeline of the input media at which + processing will start. Defaults to the beginning of the input media. + :type start: ~azure.mgmt.media.models.ClipTime + :param end: Defines a point on the timeline of the input media at which + processing will end. Defaults to the end of the input media. + :type end: ~azure.mgmt.media.models.ClipTime + :param label: A label that is assigned to a JobInputClip, that is used to + satisfy a reference used in the Transform. For example, a Transform can be + authored so as to take an image file with the label 'xyz' and apply it as + an overlay onto the input video before it is encoded. When submitting a + Job, exactly one of the JobInputs should be the image file, and it should + have the label 'xyz'. + :type label: str + :param base_uri: Base URI for HTTPS job input. It will be concatenated + with provided file names. If no base uri is given, then the provided file + list is assumed to be fully qualified uris. Maximum length of 4000 + characters. + :type base_uri: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'files': {'key': 'files', 'type': '[str]'}, + 'start': {'key': 'start', 'type': 'ClipTime'}, + 'end': {'key': 'end', 'type': 'ClipTime'}, + 'label': {'key': 'label', 'type': 'str'}, + 'base_uri': {'key': 'baseUri', 'type': 'str'}, + } + + def __init__(self, *, files=None, start=None, end=None, label: str=None, base_uri: str=None, **kwargs) -> None: + super(JobInputHttp, self).__init__(files=files, start=start, end=end, label=label, **kwargs) + self.base_uri = base_uri + self.odatatype = '#Microsoft.Media.JobInputHttp' + + +class JobInputs(JobInput): + """Describes a list of inputs to a Job. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param inputs: List of inputs to a Job. + :type inputs: list[~azure.mgmt.media.models.JobInput] + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[JobInput]'}, + } + + def __init__(self, *, inputs=None, **kwargs) -> None: + super(JobInputs, self).__init__(**kwargs) + self.inputs = inputs + self.odatatype = '#Microsoft.Media.JobInputs' + + +class JobOutput(Model): + """Describes all the properties of a JobOutput. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: JobOutputAsset + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar error: If the JobOutput is in the Error state, it contains the + details of the error. + :vartype error: ~azure.mgmt.media.models.JobError + :ivar state: Describes the state of the JobOutput. Possible values + include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', + 'Queued', 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :ivar progress: If the JobOutput is in a Processing state, this contains + the Job completion percentage. The value is an estimate and not intended + to be used to predict Job completion times. To determine if the JobOutput + is complete, use the State property. + :vartype progress: int + :param label: A label that is assigned to a JobOutput in order to help + uniquely identify it. This is useful when your Transform has more than one + TransformOutput, whereby your Job has more than one JobOutput. In such + cases, when you submit the Job, you will add two or more JobOutputs, in + the same order as TransformOutputs in the Transform. Subsequently, when + you retrieve the Job, either through events or on a GET request, you can + use the label to easily identify the JobOutput. If a label is not + provided, a default value of '{presetName}_{outputIndex}' will be used, + where the preset name is the name of the preset in the corresponding + TransformOutput and the output index is the relative index of the this + JobOutput within the Job. Note that this index is the same as the relative + index of the corresponding TransformOutput within its Transform. + :type label: str + :ivar start_time: The UTC date and time at which this Job Output began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job Output finished + processing. + :vartype end_time: datetime + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'error': {'readonly': True}, + 'state': {'readonly': True}, + 'progress': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'JobError'}, + 'state': {'key': 'state', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'int'}, + 'label': {'key': 'label', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.JobOutputAsset': 'JobOutputAsset'} + } + + def __init__(self, *, label: str=None, **kwargs) -> None: + super(JobOutput, self).__init__(**kwargs) + self.error = None + self.state = None + self.progress = None + self.label = label + self.start_time = None + self.end_time = None + self.odatatype = None + + +class JobOutputAsset(JobOutput): + """Represents an Asset used as a JobOutput. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar error: If the JobOutput is in the Error state, it contains the + details of the error. + :vartype error: ~azure.mgmt.media.models.JobError + :ivar state: Describes the state of the JobOutput. Possible values + include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', + 'Queued', 'Scheduled' + :vartype state: str or ~azure.mgmt.media.models.JobState + :ivar progress: If the JobOutput is in a Processing state, this contains + the Job completion percentage. The value is an estimate and not intended + to be used to predict Job completion times. To determine if the JobOutput + is complete, use the State property. + :vartype progress: int + :param label: A label that is assigned to a JobOutput in order to help + uniquely identify it. This is useful when your Transform has more than one + TransformOutput, whereby your Job has more than one JobOutput. In such + cases, when you submit the Job, you will add two or more JobOutputs, in + the same order as TransformOutputs in the Transform. Subsequently, when + you retrieve the Job, either through events or on a GET request, you can + use the label to easily identify the JobOutput. If a label is not + provided, a default value of '{presetName}_{outputIndex}' will be used, + where the preset name is the name of the preset in the corresponding + TransformOutput and the output index is the relative index of the this + JobOutput within the Job. Note that this index is the same as the relative + index of the corresponding TransformOutput within its Transform. + :type label: str + :ivar start_time: The UTC date and time at which this Job Output began + processing. + :vartype start_time: datetime + :ivar end_time: The UTC date and time at which this Job Output finished + processing. + :vartype end_time: datetime + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param asset_name: Required. The name of the output Asset. + :type asset_name: str + """ + + _validation = { + 'error': {'readonly': True}, + 'state': {'readonly': True}, + 'progress': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'odatatype': {'required': True}, + 'asset_name': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'JobError'}, + 'state': {'key': 'state', 'type': 'str'}, + 'progress': {'key': 'progress', 'type': 'int'}, + 'label': {'key': 'label', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'asset_name': {'key': 'assetName', 'type': 'str'}, + } + + def __init__(self, *, asset_name: str, label: str=None, **kwargs) -> None: + super(JobOutputAsset, self).__init__(label=label, **kwargs) + self.asset_name = asset_name + self.odatatype = '#Microsoft.Media.JobOutputAsset' + + +class JpgFormat(ImageFormat): + """Describes the settings for producing JPEG thumbnails. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, filename_pattern: str, **kwargs) -> None: + super(JpgFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) + self.odatatype = '#Microsoft.Media.JpgFormat' + + +class JpgImage(Image): + """Describes the properties for producing a series of JPEG images from the + input video. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + :param layers: A collection of output JPEG image layers to be produced by + the encoder. + :type layers: list[~azure.mgmt.media.models.JpgLayer] + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[JpgLayer]'}, + } + + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, layers=None, **kwargs) -> None: + super(JpgImage, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, start=start, step=step, range=range, **kwargs) + self.layers = layers + self.odatatype = '#Microsoft.Media.JpgImage' + + +class JpgLayer(Layer): + """Describes the settings to produce a JPEG image from the input video. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param quality: The compression quality of the JPEG output. Range is from + 0-100 and the default is 70. + :type quality: int + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'quality': {'key': 'quality', 'type': 'int'}, + } + + def __init__(self, *, width: str=None, height: str=None, label: str=None, quality: int=None, **kwargs) -> None: + super(JpgLayer, self).__init__(width=width, height=height, label=label, **kwargs) + self.quality = quality + self.odatatype = '#Microsoft.Media.JpgLayer' + + +class ListContainerSasInput(Model): + """The parameters to the list SAS request. + + :param permissions: The permissions to set on the SAS URL. Possible values + include: 'Read', 'ReadWrite', 'ReadWriteDelete' + :type permissions: str or + ~azure.mgmt.media.models.AssetContainerPermission + :param expiry_time: The SAS URL expiration time. This must be less than + 24 hours from the current time. + :type expiry_time: datetime + """ + + _attribute_map = { + 'permissions': {'key': 'permissions', 'type': 'str'}, + 'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, permissions=None, expiry_time=None, **kwargs) -> None: + super(ListContainerSasInput, self).__init__(**kwargs) + self.permissions = permissions + self.expiry_time = expiry_time + + +class ListContentKeysResponse(Model): + """Class of response for listContentKeys action. + + :param content_keys: ContentKeys used by current Streaming Locator + :type content_keys: + list[~azure.mgmt.media.models.StreamingLocatorContentKey] + """ + + _attribute_map = { + 'content_keys': {'key': 'contentKeys', 'type': '[StreamingLocatorContentKey]'}, + } + + def __init__(self, *, content_keys=None, **kwargs) -> None: + super(ListContentKeysResponse, self).__init__(**kwargs) + self.content_keys = content_keys + + +class ListPathsResponse(Model): + """Class of response for listPaths action. + + :param streaming_paths: Streaming Paths supported by current Streaming + Locator + :type streaming_paths: list[~azure.mgmt.media.models.StreamingPath] + :param download_paths: Download Paths supported by current Streaming + Locator + :type download_paths: list[str] + """ + + _attribute_map = { + 'streaming_paths': {'key': 'streamingPaths', 'type': '[StreamingPath]'}, + 'download_paths': {'key': 'downloadPaths', 'type': '[str]'}, + } + + def __init__(self, *, streaming_paths=None, download_paths=None, **kwargs) -> None: + super(ListPathsResponse, self).__init__(**kwargs) + self.streaming_paths = streaming_paths + self.download_paths = download_paths + + +class ListStreamingLocatorsResponse(Model): + """The Streaming Locators associated with this Asset. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar streaming_locators: The list of Streaming Locators. + :vartype streaming_locators: + list[~azure.mgmt.media.models.AssetStreamingLocator] + """ + + _validation = { + 'streaming_locators': {'readonly': True}, + } + + _attribute_map = { + 'streaming_locators': {'key': 'streamingLocators', 'type': '[AssetStreamingLocator]'}, + } + + def __init__(self, **kwargs) -> None: + super(ListStreamingLocatorsResponse, self).__init__(**kwargs) + self.streaming_locators = None + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked resource. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + """ + + _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'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, tags=None, location: str=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class LiveEvent(TrackedResource): + """The Live Event. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :param description: The Live Event description. + :type description: str + :param input: Required. The Live Event input. + :type input: ~azure.mgmt.media.models.LiveEventInput + :param preview: The Live Event preview. + :type preview: ~azure.mgmt.media.models.LiveEventPreview + :param encoding: The Live Event encoding. + :type encoding: ~azure.mgmt.media.models.LiveEventEncoding + :ivar provisioning_state: The provisioning state of the Live Event. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the Live Event. Possible + values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.media.models.LiveEventResourceState + :param cross_site_access_policies: The Live Event access policies. + :type cross_site_access_policies: + ~azure.mgmt.media.models.CrossSiteAccessPolicies + :param vanity_url: Specifies whether to use a vanity url with the Live + Event. This value is specified at creation time and cannot be updated. + :type vanity_url: bool + :param stream_options: The options to use for the LiveEvent. This value + is specified at creation time and cannot be updated. + :type stream_options: list[str or + ~azure.mgmt.media.models.StreamOptionsFlag] + :ivar created: The exact time the Live Event was created. + :vartype created: datetime + :ivar last_modified: The exact time the Live Event was last modified. + :vartype last_modified: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'input': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'input': {'key': 'properties.input', 'type': 'LiveEventInput'}, + 'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'}, + 'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, + 'vanity_url': {'key': 'properties.vanityUrl', 'type': 'bool'}, + 'stream_options': {'key': 'properties.streamOptions', 'type': '[str]'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + } + + def __init__(self, *, input, tags=None, location: str=None, description: str=None, preview=None, encoding=None, cross_site_access_policies=None, vanity_url: bool=None, stream_options=None, **kwargs) -> None: + super(LiveEvent, self).__init__(tags=tags, location=location, **kwargs) + self.description = description + self.input = input + self.preview = preview + self.encoding = encoding + self.provisioning_state = None + self.resource_state = None + self.cross_site_access_policies = cross_site_access_policies + self.vanity_url = vanity_url + self.stream_options = stream_options + self.created = None + self.last_modified = None + + +class LiveEventActionInput(Model): + """The LiveEvent action input parameter definition. + + :param remove_outputs_on_stop: The flag indicates if remove LiveOutputs on + Stop. + :type remove_outputs_on_stop: bool + """ + + _attribute_map = { + 'remove_outputs_on_stop': {'key': 'removeOutputsOnStop', 'type': 'bool'}, + } + + def __init__(self, *, remove_outputs_on_stop: bool=None, **kwargs) -> None: + super(LiveEventActionInput, self).__init__(**kwargs) + self.remove_outputs_on_stop = remove_outputs_on_stop + + +class LiveEventEncoding(Model): + """The Live Event encoding. + + :param encoding_type: The encoding type for Live Event. This value is + specified at creation time and cannot be updated. Possible values include: + 'None', 'Basic', 'Standard', 'Premium1080p' + :type encoding_type: str or ~azure.mgmt.media.models.LiveEventEncodingType + :param preset_name: The encoding preset name. This value is specified at + creation time and cannot be updated. + :type preset_name: str + """ + + _attribute_map = { + 'encoding_type': {'key': 'encodingType', 'type': 'str'}, + 'preset_name': {'key': 'presetName', 'type': 'str'}, + } + + def __init__(self, *, encoding_type=None, preset_name: str=None, **kwargs) -> None: + super(LiveEventEncoding, self).__init__(**kwargs) + self.encoding_type = encoding_type + self.preset_name = preset_name + + +class LiveEventEndpoint(Model): + """The Live Event endpoint. + + :param protocol: The endpoint protocol. + :type protocol: str + :param url: The endpoint URL. + :type url: str + """ + + _attribute_map = { + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__(self, *, protocol: str=None, url: str=None, **kwargs) -> None: + super(LiveEventEndpoint, self).__init__(**kwargs) + self.protocol = protocol + self.url = url + + +class LiveEventInput(Model): + """The Live Event input. + + All required parameters must be populated in order to send to Azure. + + :param streaming_protocol: Required. The streaming protocol for the Live + Event. This is specified at creation time and cannot be updated. Possible + values include: 'FragmentedMP4', 'RTMP' + :type streaming_protocol: str or + ~azure.mgmt.media.models.LiveEventInputProtocol + :param access_control: The access control for LiveEvent Input. + :type access_control: ~azure.mgmt.media.models.LiveEventInputAccessControl + :param key_frame_interval_duration: ISO 8601 timespan duration of the key + frame interval duration. + :type key_frame_interval_duration: str + :param access_token: A unique identifier for a stream. This can be + specified at creation time but cannot be updated. If omitted, the service + will generate a unique value. + :type access_token: str + :param endpoints: The input endpoints for the Live Event. + :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] + """ + + _validation = { + 'streaming_protocol': {'required': True}, + } + + _attribute_map = { + 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, + 'access_control': {'key': 'accessControl', 'type': 'LiveEventInputAccessControl'}, + 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, + } + + def __init__(self, *, streaming_protocol, access_control=None, key_frame_interval_duration: str=None, access_token: str=None, endpoints=None, **kwargs) -> None: + super(LiveEventInput, self).__init__(**kwargs) + self.streaming_protocol = streaming_protocol + self.access_control = access_control + self.key_frame_interval_duration = key_frame_interval_duration + self.access_token = access_token + self.endpoints = endpoints + + +class LiveEventInputAccessControl(Model): + """The IP access control for Live Event Input. + + :param ip: The IP access control properties. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, *, ip=None, **kwargs) -> None: + super(LiveEventInputAccessControl, self).__init__(**kwargs) + self.ip = ip + + +class LiveEventPreview(Model): + """The Live Event preview. + + :param endpoints: The endpoints for preview. + :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] + :param access_control: The access control for LiveEvent preview. + :type access_control: + ~azure.mgmt.media.models.LiveEventPreviewAccessControl + :param preview_locator: The identifier of the preview locator in Guid + format. Specifying this at creation time allows the caller to know the + preview locator url before the event is created. If omitted, the service + will generate a random identifier. This value cannot be updated once the + live event is created. + :type preview_locator: str + :param streaming_policy_name: The name of streaming policy used for the + LiveEvent preview. This value is specified at creation time and cannot be + updated. + :type streaming_policy_name: str + :param alternative_media_id: An Alternative Media Identifier associated + with the StreamingLocator created for the preview. This value is + specified at creation time and cannot be updated. The identifier can be + used in the CustomLicenseAcquisitionUrlTemplate or the + CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the + StreamingPolicyName field. + :type alternative_media_id: str + """ + + _attribute_map = { + 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, + 'access_control': {'key': 'accessControl', 'type': 'LiveEventPreviewAccessControl'}, + 'preview_locator': {'key': 'previewLocator', 'type': 'str'}, + 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, + 'alternative_media_id': {'key': 'alternativeMediaId', 'type': 'str'}, + } + + def __init__(self, *, endpoints=None, access_control=None, preview_locator: str=None, streaming_policy_name: str=None, alternative_media_id: str=None, **kwargs) -> None: + super(LiveEventPreview, self).__init__(**kwargs) + self.endpoints = endpoints + self.access_control = access_control + self.preview_locator = preview_locator + self.streaming_policy_name = streaming_policy_name + self.alternative_media_id = alternative_media_id + + +class LiveEventPreviewAccessControl(Model): + """The IP access control for Live Event preview. + + :param ip: The IP access control properties. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, *, ip=None, **kwargs) -> None: + super(LiveEventPreviewAccessControl, self).__init__(**kwargs) + self.ip = ip + + +class LiveOutput(ProxyResource): + """The Live Output. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 description: The description of the Live Output. + :type description: str + :param asset_name: Required. The asset name. + :type asset_name: str + :param archive_window_length: Required. ISO 8601 timespan duration of the + archive window length. This is duration that customer want to retain the + recorded content. + :type archive_window_length: timedelta + :param manifest_name: The manifest file name. If not provided, the + service will generate one automatically. + :type manifest_name: str + :param hls: The HLS configuration. + :type hls: ~azure.mgmt.media.models.Hls + :param output_snap_time: The output snapshot time. + :type output_snap_time: long + :ivar created: The exact time the Live Output was created. + :vartype created: datetime + :ivar last_modified: The exact time the Live Output was last modified. + :vartype last_modified: datetime + :ivar provisioning_state: The provisioning state of the Live Output. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the Live Output. Possible + values include: 'Creating', 'Running', 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.media.models.LiveOutputResourceState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_name': {'required': True}, + 'archive_window_length': {'required': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, + 'archive_window_length': {'key': 'properties.archiveWindowLength', 'type': 'duration'}, + 'manifest_name': {'key': 'properties.manifestName', 'type': 'str'}, + 'hls': {'key': 'properties.hls', 'type': 'Hls'}, + 'output_snap_time': {'key': 'properties.outputSnapTime', 'type': 'long'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + } + + def __init__(self, *, asset_name: str, archive_window_length, description: str=None, manifest_name: str=None, hls=None, output_snap_time: int=None, **kwargs) -> None: + super(LiveOutput, self).__init__(**kwargs) + self.description = description + self.asset_name = asset_name + self.archive_window_length = archive_window_length + self.manifest_name = manifest_name + self.hls = hls + self.output_snap_time = output_snap_time + self.created = None + self.last_modified = None + self.provisioning_state = None + self.resource_state = None + + +class Location(Model): + """Location. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str, **kwargs) -> None: + super(Location, self).__init__(**kwargs) + self.name = name + + +class MediaService(TrackedResource): + """A Media Services account. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :ivar media_service_id: The Media Services account ID. + :vartype media_service_id: str + :param storage_accounts: The storage accounts for this resource. + :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'media_service_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, *, tags=None, location: str=None, storage_accounts=None, **kwargs) -> None: + super(MediaService, self).__init__(tags=tags, location=location, **kwargs) + self.media_service_id = None + self.storage_accounts = storage_accounts + + +class Metric(Model): + """A metric emitted by service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The metric name. + :vartype name: str + :ivar display_name: The metric display name. + :vartype display_name: str + :ivar display_description: The metric display description. + :vartype display_description: str + :ivar unit: The metric unit. Possible values include: 'Bytes', 'Count', + 'Milliseconds' + :vartype unit: str or ~azure.mgmt.media.models.MetricUnit + :ivar aggregation_type: The metric aggregation type. Possible values + include: 'Average', 'Count', 'Total' + :vartype aggregation_type: str or + ~azure.mgmt.media.models.MetricAggregationType + :ivar dimensions: The metric dimensions. + :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'display_description': {'readonly': True}, + 'unit': {'readonly': True}, + 'aggregation_type': {'readonly': True}, + 'dimensions': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + } + + def __init__(self, **kwargs) -> None: + super(Metric, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.display_description = None + self.unit = None + self.aggregation_type = None + self.dimensions = None + + +class MetricDimension(Model): + """A metric dimension. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The metric dimension name. + :vartype name: str + :ivar display_name: The display name for the dimension. + :vartype display_name: str + :ivar to_be_exported_for_shoebox: Whether to export metric to shoebox. + :vartype to_be_exported_for_shoebox: bool + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'to_be_exported_for_shoebox': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + + def __init__(self, **kwargs) -> None: + super(MetricDimension, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.to_be_exported_for_shoebox = None + + +class MetricProperties(Model): + """Metric properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar service_specification: The service specifications. + :vartype service_specification: + ~azure.mgmt.media.models.ServiceSpecification + """ + + _validation = { + 'service_specification': {'readonly': True}, + } + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, **kwargs) -> None: + super(MetricProperties, self).__init__(**kwargs) + self.service_specification = None + + +class MultiBitrateFormat(Format): + """Describes the properties for producing a collection of GOP aligned + multi-bitrate files. The default behavior is to produce one output file for + each video layer which is muxed together with all the audios. The exact + output files produced can be controlled by specifying the outputFiles + collection. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Mp4Format, TransportStreamFormat + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Media.Mp4Format': 'Mp4Format', '#Microsoft.Media.TransportStreamFormat': 'TransportStreamFormat'} + } + + def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: + super(MultiBitrateFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) + self.output_files = output_files + self.odatatype = '#Microsoft.Media.MultiBitrateFormat' + + +class Mp4Format(MultiBitrateFormat): + """Describes the properties for an output ISO MP4 file. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: + super(Mp4Format, self).__init__(filename_pattern=filename_pattern, output_files=output_files, **kwargs) + self.odatatype = '#Microsoft.Media.Mp4Format' + + +class NoEncryption(Model): + """Class for NoEncryption scheme. + + :param enabled_protocols: Representing supported protocols + :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols + """ + + _attribute_map = { + 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, + } + + def __init__(self, *, enabled_protocols=None, **kwargs) -> None: + super(NoEncryption, self).__init__(**kwargs) + self.enabled_protocols = enabled_protocols + + +class ODataError(Model): + """Information about an error. + + :param code: A language-independent error name. + :type code: str + :param message: The error message. + :type message: str + :param target: The target of the error (for example, the name of the + property in error). + :type target: str + :param details: The error details. + :type details: list[~azure.mgmt.media.models.ODataError] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ODataError]'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None: + super(ODataError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class Operation(Model): + """An operation. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The operation name. + :type name: str + :param display: The operation display name. + :type display: ~azure.mgmt.media.models.OperationDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Operation properties format. + :type properties: ~azure.mgmt.media.models.MetricProperties + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'MetricProperties'}, + } + + def __init__(self, *, name: str, display=None, origin: str=None, properties=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.properties = properties + + +class OperationDisplay(Model): + """Operation details. + + :param provider: The service provider. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + :param operation: The operation type. + :type operation: str + :param description: The operation description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OutputFile(Model): + """Represents an output file produced. + + All required parameters must be populated in order to send to Azure. + + :param labels: Required. The list of labels that describe how the encoder + should multiplex video and audio into an output file. For example, if the + encoder is producing two video layers with labels v1 and v2, and one audio + layer with label a1, then an array like '[v1, a1]' tells the encoder to + produce an output file with the video track represented by v1 and the + audio track represented by a1. + :type labels: list[str] + """ + + _validation = { + 'labels': {'required': True}, + } + + _attribute_map = { + 'labels': {'key': 'labels', 'type': '[str]'}, + } + + def __init__(self, *, labels, **kwargs) -> None: + super(OutputFile, self).__init__(**kwargs) + self.labels = labels + + +class PngFormat(ImageFormat): + """Describes the settings for producing PNG thumbnails. + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, filename_pattern: str, **kwargs) -> None: + super(PngFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) + self.odatatype = '#Microsoft.Media.PngFormat' + + +class PngImage(Image): + """Describes the properties for producing a series of PNG images from the + input video. + + All required parameters must be populated in order to send to Azure. + + :param label: An optional label for the codec. The label can be used to + control muxing behavior. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param key_frame_interval: The distance between two key frames, thereby + defining a group of pictures (GOP). The value should be a non-zero integer + in the range [1, 30] seconds, specified in ISO 8601 format. The default is + 2 seconds (PT2S). + :type key_frame_interval: timedelta + :param stretch_mode: The resizing mode - how the input video will be + resized to fit the desired output resolution(s). Default is AutoSize. + Possible values include: 'None', 'AutoSize', 'AutoFit' + :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode + :param start: Required. The position in the input video from where to + start generating thumbnails. The value can be in absolute timestamp (ISO + 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), + or a relative value (For example, 1%). Also supports a macro {Best}, which + tells the encoder to select the best thumbnail from the first few seconds + of the video. + :type start: str + :param step: The intervals at which thumbnails are generated. The value + can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 + seconds), or a frame count (For example, 30 for every 30 frames), or a + relative value (For example, 1%). + :type step: str + :param range: The position in the input video at which to stop generating + thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S + to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 + to stop at the 300th frame), or a relative value (For example, 100%). + :type range: str + :param layers: A collection of output PNG image layers to be produced by + the encoder. + :type layers: list[~azure.mgmt.media.models.PngLayer] + """ + + _validation = { + 'odatatype': {'required': True}, + 'start': {'required': True}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, + 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'str'}, + 'step': {'key': 'step', 'type': 'str'}, + 'range': {'key': 'range', 'type': 'str'}, + 'layers': {'key': 'layers', 'type': '[PngLayer]'}, + } + + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, layers=None, **kwargs) -> None: + super(PngImage, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, start=start, step=step, range=range, **kwargs) + self.layers = layers + self.odatatype = '#Microsoft.Media.PngImage' + + +class PngLayer(Layer): + """Describes the settings to produce a PNG image from the input video. + + All required parameters must be populated in order to send to Azure. + + :param width: The width of the output video for this layer. The value can + be absolute (in pixels) or relative (in percentage). For example 50% means + the output video has half as many pixels in width as the input. + :type width: str + :param height: The height of the output video for this layer. The value + can be absolute (in pixels) or relative (in percentage). For example 50% + means the output video has half as many pixels in height as the input. + :type height: str + :param label: The alphanumeric label for this layer, which can be used in + multiplexing different video and audio layers, or in naming the output + file. + :type label: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__(self, *, width: str=None, height: str=None, label: str=None, **kwargs) -> None: + super(PngLayer, self).__init__(width=width, height=height, label=label, **kwargs) + self.odatatype = '#Microsoft.Media.PngLayer' + + +class PresentationTimeRange(Model): + """The presentation time range, this is asset related and not recommended for + Account Filter. + + :param start_timestamp: The absolute start time boundary. + :type start_timestamp: long + :param end_timestamp: The absolute end time boundary. + :type end_timestamp: long + :param presentation_window_duration: The relative to end sliding window. + :type presentation_window_duration: long + :param live_backoff_duration: The relative to end right edge. + :type live_backoff_duration: long + :param timescale: The time scale of time stamps. + :type timescale: long + :param force_end_timestamp: The indicator of forcing existing of end time + stamp. + :type force_end_timestamp: bool + """ + + _attribute_map = { + 'start_timestamp': {'key': 'startTimestamp', 'type': 'long'}, + 'end_timestamp': {'key': 'endTimestamp', 'type': 'long'}, + 'presentation_window_duration': {'key': 'presentationWindowDuration', 'type': 'long'}, + 'live_backoff_duration': {'key': 'liveBackoffDuration', 'type': 'long'}, + 'timescale': {'key': 'timescale', 'type': 'long'}, + 'force_end_timestamp': {'key': 'forceEndTimestamp', 'type': 'bool'}, + } + + def __init__(self, *, start_timestamp: int=None, end_timestamp: int=None, presentation_window_duration: int=None, live_backoff_duration: int=None, timescale: int=None, force_end_timestamp: bool=None, **kwargs) -> None: + super(PresentationTimeRange, self).__init__(**kwargs) + self.start_timestamp = start_timestamp + self.end_timestamp = end_timestamp + self.presentation_window_duration = presentation_window_duration + self.live_backoff_duration = live_backoff_duration + self.timescale = timescale + self.force_end_timestamp = force_end_timestamp + + +class Provider(Model): + """A resource provider. + + All required parameters must be populated in order to send to Azure. + + :param provider_name: Required. The provider name. + :type provider_name: str + """ + + _validation = { + 'provider_name': {'required': True}, + } + + _attribute_map = { + 'provider_name': {'key': 'providerName', 'type': 'str'}, + } + + def __init__(self, *, provider_name: str, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.provider_name = provider_name + + +class Rectangle(Model): + """Describes the properties of a rectangular window applied to the input media + before processing it. + + :param left: The number of pixels from the left-margin. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type left: str + :param top: The number of pixels from the top-margin. This can be absolute + pixel value (e.g 100), or relative to the size of the video (For example, + 50%). + :type top: str + :param width: The width of the rectangular region in pixels. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type width: str + :param height: The height of the rectangular region in pixels. This can be + absolute pixel value (e.g 100), or relative to the size of the video (For + example, 50%). + :type height: str + """ + + _attribute_map = { + 'left': {'key': 'left', 'type': 'str'}, + 'top': {'key': 'top', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'str'}, + 'height': {'key': 'height', 'type': 'str'}, + } + + def __init__(self, *, left: str=None, top: str=None, width: str=None, height: str=None, **kwargs) -> None: + super(Rectangle, self).__init__(**kwargs) + self.left = left + self.top = top + self.width = width + self.height = height + + +class ServiceSpecification(Model): + """The service metric specifications. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar metric_specifications: List of metric specifications. + :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] + """ + + _validation = { + 'metric_specifications': {'readonly': True}, + } + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, + } + + def __init__(self, **kwargs) -> None: + super(ServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = None + + +class StandardEncoderPreset(Preset): + """Describes all the settings to be used when encoding the input video with + the Standard Encoder. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param filters: One or more filtering operations that are applied to the + input media before encoding. + :type filters: ~azure.mgmt.media.models.Filters + :param codecs: Required. The list of codecs to be used when encoding the + input video. + :type codecs: list[~azure.mgmt.media.models.Codec] + :param formats: Required. The list of outputs to be produced by the + encoder. + :type formats: list[~azure.mgmt.media.models.Format] + """ + + _validation = { + 'odatatype': {'required': True}, + 'codecs': {'required': True}, + 'formats': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'filters': {'key': 'filters', 'type': 'Filters'}, + 'codecs': {'key': 'codecs', 'type': '[Codec]'}, + 'formats': {'key': 'formats', 'type': '[Format]'}, + } + + def __init__(self, *, codecs, formats, filters=None, **kwargs) -> None: + super(StandardEncoderPreset, self).__init__(**kwargs) + self.filters = filters + self.codecs = codecs + self.formats = formats + self.odatatype = '#Microsoft.Media.StandardEncoderPreset' + + +class StorageAccount(Model): + """The storage account details. + + All required parameters must be populated in order to send to Azure. + + :param id: The ID of the storage account resource. Media Services relies + on tables and queues as well as blobs, so the primary storage account must + be a Standard Storage account (either Microsoft.ClassicStorage or + Microsoft.Storage). Blob only storage accounts can be added as secondary + storage accounts. + :type id: str + :param type: Required. The type of the storage account. Possible values + include: 'Primary', 'Secondary' + :type type: str or ~azure.mgmt.media.models.StorageAccountType + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type, id: str=None, **kwargs) -> None: + super(StorageAccount, self).__init__(**kwargs) + self.id = id + self.type = type + + +class StorageEncryptedAssetDecryptionData(Model): + """Data needed to decrypt asset files encrypted with legacy storage + encryption. + + :param key: The Asset File storage encryption key. + :type key: bytearray + :param asset_file_encryption_metadata: Asset File encryption metadata. + :type asset_file_encryption_metadata: + list[~azure.mgmt.media.models.AssetFileEncryptionMetadata] + """ + + _attribute_map = { + 'key': {'key': 'key', 'type': 'bytearray'}, + 'asset_file_encryption_metadata': {'key': 'assetFileEncryptionMetadata', 'type': '[AssetFileEncryptionMetadata]'}, + } + + def __init__(self, *, key: bytearray=None, asset_file_encryption_metadata=None, **kwargs) -> None: + super(StorageEncryptedAssetDecryptionData, self).__init__(**kwargs) + self.key = key + self.asset_file_encryption_metadata = asset_file_encryption_metadata + + +class StreamingEndpoint(TrackedResource): + """The StreamingEndpoint. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :param description: The StreamingEndpoint description. + :type description: str + :param scale_units: Required. The number of scale units. Use the Scale + operation to adjust this value. + :type scale_units: int + :param availability_set_name: The name of the AvailabilitySet used with + this StreamingEndpoint for high availability streaming. This value can + only be set at creation time. + :type availability_set_name: str + :param access_control: The access control definition of the + StreamingEndpoint. + :type access_control: + ~azure.mgmt.media.models.StreamingEndpointAccessControl + :param max_cache_age: Max cache age + :type max_cache_age: long + :param custom_host_names: The custom host names of the StreamingEndpoint + :type custom_host_names: list[str] + :ivar host_name: The StreamingEndpoint host name. + :vartype host_name: str + :param cdn_enabled: The CDN enabled flag. + :type cdn_enabled: bool + :param cdn_provider: The CDN provider name. + :type cdn_provider: str + :param cdn_profile: The CDN profile name. + :type cdn_profile: str + :ivar provisioning_state: The provisioning state of the StreamingEndpoint. + :vartype provisioning_state: str + :ivar resource_state: The resource state of the StreamingEndpoint. + Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', + 'Deleting', 'Scaling' + :vartype resource_state: str or + ~azure.mgmt.media.models.StreamingEndpointResourceState + :param cross_site_access_policies: The StreamingEndpoint access policies. + :type cross_site_access_policies: + ~azure.mgmt.media.models.CrossSiteAccessPolicies + :ivar free_trial_end_time: The free trial expiration time. + :vartype free_trial_end_time: datetime + :ivar created: The exact time the StreamingEndpoint was created. + :vartype created: datetime + :ivar last_modified: The exact time the StreamingEndpoint was last + modified. + :vartype last_modified: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'scale_units': {'required': True}, + 'host_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + 'free_trial_end_time': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'scale_units': {'key': 'properties.scaleUnits', 'type': 'int'}, + 'availability_set_name': {'key': 'properties.availabilitySetName', 'type': 'str'}, + 'access_control': {'key': 'properties.accessControl', 'type': 'StreamingEndpointAccessControl'}, + 'max_cache_age': {'key': 'properties.maxCacheAge', 'type': 'long'}, + 'custom_host_names': {'key': 'properties.customHostNames', 'type': '[str]'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'cdn_enabled': {'key': 'properties.cdnEnabled', 'type': 'bool'}, + 'cdn_provider': {'key': 'properties.cdnProvider', 'type': 'str'}, + 'cdn_profile': {'key': 'properties.cdnProfile', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, + 'free_trial_end_time': {'key': 'properties.freeTrialEndTime', 'type': 'iso-8601'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + } + + def __init__(self, *, scale_units: int, tags=None, location: str=None, description: str=None, availability_set_name: str=None, access_control=None, max_cache_age: int=None, custom_host_names=None, cdn_enabled: bool=None, cdn_provider: str=None, cdn_profile: str=None, cross_site_access_policies=None, **kwargs) -> None: + super(StreamingEndpoint, self).__init__(tags=tags, location=location, **kwargs) + self.description = description + self.scale_units = scale_units + self.availability_set_name = availability_set_name + self.access_control = access_control + self.max_cache_age = max_cache_age + self.custom_host_names = custom_host_names + self.host_name = None + self.cdn_enabled = cdn_enabled + self.cdn_provider = cdn_provider + self.cdn_profile = cdn_profile + self.provisioning_state = None + self.resource_state = None + self.cross_site_access_policies = cross_site_access_policies + self.free_trial_end_time = None + self.created = None + self.last_modified = None + + +class StreamingEndpointAccessControl(Model): + """StreamingEndpoint access control definition. + + :param akamai: The access control of Akamai + :type akamai: ~azure.mgmt.media.models.AkamaiAccessControl + :param ip: The IP access control of the StreamingEndpoint. + :type ip: ~azure.mgmt.media.models.IPAccessControl + """ + + _attribute_map = { + 'akamai': {'key': 'akamai', 'type': 'AkamaiAccessControl'}, + 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, + } + + def __init__(self, *, akamai=None, ip=None, **kwargs) -> None: + super(StreamingEndpointAccessControl, self).__init__(**kwargs) + self.akamai = akamai + self.ip = ip + + +class StreamingEntityScaleUnit(Model): + """scale units definition. + + :param scale_unit: The scale unit number of the StreamingEndpoint. + :type scale_unit: int + """ + + _attribute_map = { + 'scale_unit': {'key': 'scaleUnit', 'type': 'int'}, + } + + def __init__(self, *, scale_unit: int=None, **kwargs) -> None: + super(StreamingEntityScaleUnit, self).__init__(**kwargs) + self.scale_unit = scale_unit + + +class StreamingLocator(ProxyResource): + """A Streaming Locator resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 asset_name: Required. Asset Name + :type asset_name: str + :ivar created: The creation time of the Streaming Locator. + :vartype created: datetime + :param start_time: The start time of the Streaming Locator. + :type start_time: datetime + :param end_time: The end time of the Streaming Locator. + :type end_time: datetime + :param streaming_locator_id: The StreamingLocatorId of the Streaming + Locator. + :type streaming_locator_id: str + :param streaming_policy_name: Required. Name of the Streaming Policy used + by this Streaming Locator. Either specify the name of Streaming Policy you + created or use one of the predefined Streaming Policies. The predefined + Streaming Policies available are: 'Predefined_DownloadOnly', + 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', + 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and + 'Predefined_MultiDrmStreaming' + :type streaming_policy_name: str + :param default_content_key_policy_name: Name of the default + ContentKeyPolicy used by this Streaming Locator. + :type default_content_key_policy_name: str + :param content_keys: The ContentKeys used by this Streaming Locator. + :type content_keys: + list[~azure.mgmt.media.models.StreamingLocatorContentKey] + :param alternative_media_id: Alternative Media ID of this Streaming + Locator + :type alternative_media_id: str + :param filters: A list of asset or account filters which apply to this + streaming locator + :type filters: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'asset_name': {'required': True}, + 'created': {'readonly': True}, + 'streaming_policy_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, + 'streaming_locator_id': {'key': 'properties.streamingLocatorId', 'type': 'str'}, + 'streaming_policy_name': {'key': 'properties.streamingPolicyName', 'type': 'str'}, + 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, + 'content_keys': {'key': 'properties.contentKeys', 'type': '[StreamingLocatorContentKey]'}, + 'alternative_media_id': {'key': 'properties.alternativeMediaId', 'type': 'str'}, + 'filters': {'key': 'properties.filters', 'type': '[str]'}, + } + + def __init__(self, *, asset_name: str, streaming_policy_name: str, start_time=None, end_time=None, streaming_locator_id: str=None, default_content_key_policy_name: str=None, content_keys=None, alternative_media_id: str=None, filters=None, **kwargs) -> None: + super(StreamingLocator, self).__init__(**kwargs) + self.asset_name = asset_name + self.created = None + self.start_time = start_time + self.end_time = end_time + self.streaming_locator_id = streaming_locator_id + self.streaming_policy_name = streaming_policy_name + self.default_content_key_policy_name = default_content_key_policy_name + self.content_keys = content_keys + self.alternative_media_id = alternative_media_id + self.filters = filters + + +class StreamingLocatorContentKey(Model): + """Class for content key in Streaming Locator. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. ID of Content Key + :type id: str + :ivar type: Encryption type of Content Key. Possible values include: + 'CommonEncryptionCenc', 'CommonEncryptionCbcs', 'EnvelopeEncryption' + :vartype type: str or + ~azure.mgmt.media.models.StreamingLocatorContentKeyType + :param label_reference_in_streaming_policy: Label of Content Key as + specified in the Streaming Policy + :type label_reference_in_streaming_policy: str + :param value: Value of Content Key + :type value: str + :ivar policy_name: ContentKeyPolicy used by Content Key + :vartype policy_name: str + :ivar tracks: Tracks which use this Content Key + :vartype tracks: list[~azure.mgmt.media.models.TrackSelection] + """ + + _validation = { + 'id': {'required': True}, + 'type': {'readonly': True}, + 'policy_name': {'readonly': True}, + 'tracks': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'label_reference_in_streaming_policy': {'key': 'labelReferenceInStreamingPolicy', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, + } + + def __init__(self, *, id: str, label_reference_in_streaming_policy: str=None, value: str=None, **kwargs) -> None: + super(StreamingLocatorContentKey, self).__init__(**kwargs) + self.id = id + self.type = None + self.label_reference_in_streaming_policy = label_reference_in_streaming_policy + self.value = value + self.policy_name = None + self.tracks = None + + +class StreamingPath(Model): + """Class of paths for streaming. + + All required parameters must be populated in order to send to Azure. + + :param streaming_protocol: Required. Streaming protocol. Possible values + include: 'Hls', 'Dash', 'SmoothStreaming', 'Download' + :type streaming_protocol: str or + ~azure.mgmt.media.models.StreamingPolicyStreamingProtocol + :param encryption_scheme: Required. Encryption scheme. Possible values + include: 'NoEncryption', 'EnvelopeEncryption', 'CommonEncryptionCenc', + 'CommonEncryptionCbcs' + :type encryption_scheme: str or ~azure.mgmt.media.models.EncryptionScheme + :param paths: Streaming paths for each protocol and encryptionScheme pair + :type paths: list[str] + """ + + _validation = { + 'streaming_protocol': {'required': True}, + 'encryption_scheme': {'required': True}, + } + + _attribute_map = { + 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, + 'encryption_scheme': {'key': 'encryptionScheme', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[str]'}, + } + + def __init__(self, *, streaming_protocol, encryption_scheme, paths=None, **kwargs) -> None: + super(StreamingPath, self).__init__(**kwargs) + self.streaming_protocol = streaming_protocol + self.encryption_scheme = encryption_scheme + self.paths = paths + + +class StreamingPolicy(ProxyResource): + """A Streaming Policy resource. + + 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 + :ivar created: Creation time of Streaming Policy + :vartype created: datetime + :param default_content_key_policy_name: Default ContentKey used by current + Streaming Policy + :type default_content_key_policy_name: str + :param envelope_encryption: Configuration of EnvelopeEncryption + :type envelope_encryption: ~azure.mgmt.media.models.EnvelopeEncryption + :param common_encryption_cenc: Configuration of CommonEncryptionCenc + :type common_encryption_cenc: + ~azure.mgmt.media.models.CommonEncryptionCenc + :param common_encryption_cbcs: Configuration of CommonEncryptionCbcs + :type common_encryption_cbcs: + ~azure.mgmt.media.models.CommonEncryptionCbcs + :param no_encryption: Configurations of NoEncryption + :type no_encryption: ~azure.mgmt.media.models.NoEncryption + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, + 'envelope_encryption': {'key': 'properties.envelopeEncryption', 'type': 'EnvelopeEncryption'}, + 'common_encryption_cenc': {'key': 'properties.commonEncryptionCenc', 'type': 'CommonEncryptionCenc'}, + 'common_encryption_cbcs': {'key': 'properties.commonEncryptionCbcs', 'type': 'CommonEncryptionCbcs'}, + 'no_encryption': {'key': 'properties.noEncryption', 'type': 'NoEncryption'}, + } + + def __init__(self, *, default_content_key_policy_name: str=None, envelope_encryption=None, common_encryption_cenc=None, common_encryption_cbcs=None, no_encryption=None, **kwargs) -> None: + super(StreamingPolicy, self).__init__(**kwargs) + self.created = None + self.default_content_key_policy_name = default_content_key_policy_name + self.envelope_encryption = envelope_encryption + self.common_encryption_cenc = common_encryption_cenc + self.common_encryption_cbcs = common_encryption_cbcs + self.no_encryption = no_encryption + + +class StreamingPolicyContentKey(Model): + """Class to specify properties of content key. + + :param label: Label can be used to specify Content Key when creating a + Streaming Locator + :type label: str + :param policy_name: Policy used by Content Key + :type policy_name: str + :param tracks: Tracks which use this content key + :type tracks: list[~azure.mgmt.media.models.TrackSelection] + """ + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, + } + + def __init__(self, *, label: str=None, policy_name: str=None, tracks=None, **kwargs) -> None: + super(StreamingPolicyContentKey, self).__init__(**kwargs) + self.label = label + self.policy_name = policy_name + self.tracks = tracks + + +class StreamingPolicyContentKeys(Model): + """Class to specify properties of all content keys in Streaming Policy. + + :param default_key: Default content key for an encryption scheme + :type default_key: ~azure.mgmt.media.models.DefaultKey + :param key_to_track_mappings: Representing tracks needs separate content + key + :type key_to_track_mappings: + list[~azure.mgmt.media.models.StreamingPolicyContentKey] + """ + + _attribute_map = { + 'default_key': {'key': 'defaultKey', 'type': 'DefaultKey'}, + 'key_to_track_mappings': {'key': 'keyToTrackMappings', 'type': '[StreamingPolicyContentKey]'}, + } + + def __init__(self, *, default_key=None, key_to_track_mappings=None, **kwargs) -> None: + super(StreamingPolicyContentKeys, self).__init__(**kwargs) + self.default_key = default_key + self.key_to_track_mappings = key_to_track_mappings + + +class StreamingPolicyFairPlayConfiguration(Model): + """Class to specify configurations of FairPlay in Streaming Policy. + + All required parameters must be populated in order to send to Azure. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + :param allow_persistent_license: Required. All license to be persistent or + not + :type allow_persistent_license: bool + """ + + _validation = { + 'allow_persistent_license': {'required': True}, + } + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + 'allow_persistent_license': {'key': 'allowPersistentLicense', 'type': 'bool'}, + } + + def __init__(self, *, allow_persistent_license: bool, custom_license_acquisition_url_template: str=None, **kwargs) -> None: + super(StreamingPolicyFairPlayConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = custom_license_acquisition_url_template + self.allow_persistent_license = allow_persistent_license + + +class StreamingPolicyPlayReadyConfiguration(Model): + """Class to specify configurations of PlayReady in Streaming Policy. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + :param play_ready_custom_attributes: Custom attributes for PlayReady + :type play_ready_custom_attributes: str + """ + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + 'play_ready_custom_attributes': {'key': 'playReadyCustomAttributes', 'type': 'str'}, + } + + def __init__(self, *, custom_license_acquisition_url_template: str=None, play_ready_custom_attributes: str=None, **kwargs) -> None: + super(StreamingPolicyPlayReadyConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = custom_license_acquisition_url_template + self.play_ready_custom_attributes = play_ready_custom_attributes + + +class StreamingPolicyWidevineConfiguration(Model): + """Class to specify configurations of Widevine in Streaming Policy. + + :param custom_license_acquisition_url_template: Template for the URL of + the custom service delivering licenses to end user players. Not required + when using Azure Media Services for issuing licenses. The template + supports replaceable tokens that the service will update at runtime with + the value specific to the request. The currently supported token values + are {AlternativeMediaId}, which is replaced with the value of + StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + replaced with the value of identifier of the key being requested. + :type custom_license_acquisition_url_template: str + """ + + _attribute_map = { + 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, + } + + def __init__(self, *, custom_license_acquisition_url_template: str=None, **kwargs) -> None: + super(StreamingPolicyWidevineConfiguration, self).__init__(**kwargs) + self.custom_license_acquisition_url_template = custom_license_acquisition_url_template + + +class SubscriptionMediaService(TrackedResource): + """A Media Services account. + + 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 tags: Resource tags. + :type tags: dict[str, str] + :param location: The Azure Region of the resource. + :type location: str + :ivar media_service_id: The Media Services account ID. + :vartype media_service_id: str + :param storage_accounts: The storage accounts for this resource. + :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'media_service_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, *, tags=None, location: str=None, storage_accounts=None, **kwargs) -> None: + super(SubscriptionMediaService, self).__init__(tags=tags, location=location, **kwargs) + self.media_service_id = None + self.storage_accounts = storage_accounts + + +class SyncStorageKeysInput(Model): + """The input to the sync storage keys request. + + :param id: The ID of the storage account resource. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SyncStorageKeysInput, self).__init__(**kwargs) + self.id = id + + +class TrackPropertyCondition(Model): + """Class to specify one track property condition. + + All required parameters must be populated in order to send to Azure. + + :param property: Required. Track property type. Possible values include: + 'Unknown', 'FourCC' + :type property: str or ~azure.mgmt.media.models.TrackPropertyType + :param operation: Required. Track property condition operation. Possible + values include: 'Unknown', 'Equal' + :type operation: str or + ~azure.mgmt.media.models.TrackPropertyCompareOperation + :param value: Track property value + :type value: str + """ + + _validation = { + 'property': {'required': True}, + 'operation': {'required': True}, + } + + _attribute_map = { + 'property': {'key': 'property', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, property, operation, value: str=None, **kwargs) -> None: + super(TrackPropertyCondition, self).__init__(**kwargs) + self.property = property + self.operation = operation + self.value = value + + +class TrackSelection(Model): + """Class to select a track. + + :param track_selections: TrackSelections is a track property condition + list which can specify track(s) + :type track_selections: + list[~azure.mgmt.media.models.TrackPropertyCondition] + """ + + _attribute_map = { + 'track_selections': {'key': 'trackSelections', 'type': '[TrackPropertyCondition]'}, + } + + def __init__(self, *, track_selections=None, **kwargs) -> None: + super(TrackSelection, self).__init__(**kwargs) + self.track_selections = track_selections + + +class Transform(ProxyResource): + """A Transform encapsulates the rules or instructions for generating desired + outputs from input media, such as by transcoding or by extracting insights. + After the Transform is created, it can be applied to input media by + creating Jobs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :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 + :ivar created: The UTC date and time when the Transform was created, in + 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype created: datetime + :param description: An optional verbose description of the Transform. + :type description: str + :ivar last_modified: The UTC date and time when the Transform was last + updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + :vartype last_modified: datetime + :param outputs: Required. An array of one or more TransformOutputs that + the Transform should generate. + :type outputs: list[~azure.mgmt.media.models.TransformOutput] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created': {'readonly': True}, + 'last_modified': {'readonly': True}, + 'outputs': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created': {'key': 'properties.created', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'outputs': {'key': 'properties.outputs', 'type': '[TransformOutput]'}, + } + + def __init__(self, *, outputs, description: str=None, **kwargs) -> None: + super(Transform, self).__init__(**kwargs) + self.created = None + self.description = description + self.last_modified = None + self.outputs = outputs + + +class TransformOutput(Model): + """Describes the properties of a TransformOutput, which are the rules to be + applied while generating the desired output. + + All required parameters must be populated in order to send to Azure. + + :param on_error: A Transform can define more than one outputs. This + property defines what the service should do when one output fails - either + continue to produce other outputs, or, stop the other outputs. The overall + Job state will not reflect failures of outputs that are specified with + 'ContinueJob'. The default is 'StopProcessingJob'. Possible values + include: 'StopProcessingJob', 'ContinueJob' + :type on_error: str or ~azure.mgmt.media.models.OnErrorType + :param relative_priority: Sets the relative priority of the + TransformOutputs within a Transform. This sets the priority that the + service uses for processing TransformOutputs. The default priority is + Normal. Possible values include: 'Low', 'Normal', 'High' + :type relative_priority: str or ~azure.mgmt.media.models.Priority + :param preset: Required. Preset that describes the operations that will be + used to modify, transcode, or extract insights from the source file to + generate the output. + :type preset: ~azure.mgmt.media.models.Preset + """ + + _validation = { + 'preset': {'required': True}, + } + + _attribute_map = { + 'on_error': {'key': 'onError', 'type': 'str'}, + 'relative_priority': {'key': 'relativePriority', 'type': 'str'}, + 'preset': {'key': 'preset', 'type': 'Preset'}, + } + + def __init__(self, *, preset, on_error=None, relative_priority=None, **kwargs) -> None: + super(TransformOutput, self).__init__(**kwargs) + self.on_error = on_error + self.relative_priority = relative_priority + self.preset = preset + + +class TransportStreamFormat(MultiBitrateFormat): + """Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC + 13818-1) output video file(s). + + All required parameters must be populated in order to send to Azure. + + :param filename_pattern: Required. The pattern of the file names for the + generated output files. The following macros are supported in the file + name: {Basename} - The base name of the input video {Extension} - The + appropriate extension for this format. {Label} - The label assigned to the + codec/layer. {Index} - A unique index for thumbnails. Only applicable to + thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted + macros will be collapsed and removed from the filename. + :type filename_pattern: str + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param output_files: The list of output files to produce. Each entry in + the list is a set of audio and video layer labels to be muxed together . + :type output_files: list[~azure.mgmt.media.models.OutputFile] + """ + + _validation = { + 'filename_pattern': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, + } + + def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: + super(TransportStreamFormat, self).__init__(filename_pattern=filename_pattern, output_files=output_files, **kwargs) + self.odatatype = '#Microsoft.Media.TransportStreamFormat' + + +class VideoAnalyzerPreset(AudioAnalyzerPreset): + """A video analyzer preset that extracts insights (rich metadata) from both + audio and video, and outputs a JSON format file. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param audio_language: The language for the audio payload in the input + using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you + know the language of your content, it is recommended that you specify it. + If the language isn't specified or set to null, automatic language + detection will choose the first language detected and process with the + selected language for the duration of the file. It does not currently + support dynamically switching between languages after the first language + is detected. The automatic detection works best with audio recordings with + clearly discernable speech. If automatic detection fails to find the + language, transcription would fallback to 'en-US'." The list of supported + languages is available here: + https://go.microsoft.com/fwlink/?linkid=2109463 + :type audio_language: str + :param experimental_options: Dictionary containing key value pairs for + parameters not exposed in the preset itself + :type experimental_options: dict[str, str] + :param insights_to_extract: Defines the type of insights that you want the + service to generate. The allowed values are 'AudioInsightsOnly', + 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you + set this to AllInsights and the input is audio only, then only audio + insights are generated. Similarly if the input is video only, then only + video insights are generated. It is recommended that you not use + AudioInsightsOnly if you expect some of your inputs to be video only; or + use VideoInsightsOnly if you expect some of your inputs to be audio only. + Your Jobs in such conditions would error out. Possible values include: + 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' + :type insights_to_extract: str or ~azure.mgmt.media.models.InsightsType + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, + 'experimental_options': {'key': 'experimentalOptions', 'type': '{str}'}, + 'insights_to_extract': {'key': 'insightsToExtract', 'type': 'str'}, + } + + def __init__(self, *, audio_language: str=None, experimental_options=None, insights_to_extract=None, **kwargs) -> None: + super(VideoAnalyzerPreset, self).__init__(audio_language=audio_language, experimental_options=experimental_options, **kwargs) + self.insights_to_extract = insights_to_extract + self.odatatype = '#Microsoft.Media.VideoAnalyzerPreset' + + +class VideoOverlay(Overlay): + """Describes the properties of a video overlay. + + All required parameters must be populated in order to send to Azure. + + :param input_label: Required. The label of the job input which is to be + used as an overlay. The Input must specify exactly one file. You can + specify an image file in JPG or PNG formats, or an audio file (such as a + WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats + for the complete list of supported audio and video file formats. + :type input_label: str + :param start: The start position, with reference to the input video, at + which the overlay starts. The value should be in ISO 8601 format. For + example, PT05S to start the overlay at 5 seconds in to the input video. If + not specified the overlay starts from the beginning of the input video. + :type start: timedelta + :param end: The position in the input video at which the overlay ends. The + value should be in ISO 8601 duration format. For example, PT30S to end the + overlay at 30 seconds in to the input video. If not specified the overlay + will be applied until the end of the input video if inputLoop is true. + Else, if inputLoop is false, then overlay will last as long as the + duration of the overlay media. + :type end: timedelta + :param fade_in_duration: The duration over which the overlay fades in onto + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade in (same as PT0S). + :type fade_in_duration: timedelta + :param fade_out_duration: The duration over which the overlay fades out of + the input video. The value should be in ISO 8601 duration format. If not + specified the default behavior is to have no fade out (same as PT0S). + :type fade_out_duration: timedelta + :param audio_gain_level: The gain level of audio in the overlay. The value + should be in the range [0, 1.0]. The default is 1.0. + :type audio_gain_level: float + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param position: The location in the input video where the overlay is + applied. + :type position: ~azure.mgmt.media.models.Rectangle + :param opacity: The opacity of the overlay. This is a value in the range + [0 - 1.0]. Default is 1.0 which mean the overlay is opaque. + :type opacity: float + :param crop_rectangle: An optional rectangular window used to crop the + overlay image or video. + :type crop_rectangle: ~azure.mgmt.media.models.Rectangle + """ + + _validation = { + 'input_label': {'required': True}, + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'input_label': {'key': 'inputLabel', 'type': 'str'}, + 'start': {'key': 'start', 'type': 'duration'}, + 'end': {'key': 'end', 'type': 'duration'}, + 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, + 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, + 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'position': {'key': 'position', 'type': 'Rectangle'}, + 'opacity': {'key': 'opacity', 'type': 'float'}, + 'crop_rectangle': {'key': 'cropRectangle', 'type': 'Rectangle'}, + } + + def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, position=None, opacity: float=None, crop_rectangle=None, **kwargs) -> None: + super(VideoOverlay, self).__init__(input_label=input_label, start=start, end=end, fade_in_duration=fade_in_duration, fade_out_duration=fade_out_duration, audio_gain_level=audio_gain_level, **kwargs) + self.position = position + self.opacity = opacity + self.crop_rectangle = crop_rectangle + self.odatatype = '#Microsoft.Media.VideoOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_paged_models.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_paged_models.py new file mode 100644 index 000000000000..0cda239e7ac6 --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_paged_models.py @@ -0,0 +1,196 @@ +# 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 ` 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) +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) +class MediaServicePaged(Paged): + """ + A paging container for iterating over a list of :class:`MediaService ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MediaService]'} + } + + def __init__(self, *args, **kwargs): + + super(MediaServicePaged, self).__init__(*args, **kwargs) +class SubscriptionMediaServicePaged(Paged): + """ + A paging container for iterating over a list of :class:`SubscriptionMediaService ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SubscriptionMediaService]'} + } + + def __init__(self, *args, **kwargs): + + super(SubscriptionMediaServicePaged, self).__init__(*args, **kwargs) +class AssetPaged(Paged): + """ + A paging container for iterating over a list of :class:`Asset ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Asset]'} + } + + def __init__(self, *args, **kwargs): + + super(AssetPaged, self).__init__(*args, **kwargs) +class AssetFilterPaged(Paged): + """ + A paging container for iterating over a list of :class:`AssetFilter ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AssetFilter]'} + } + + def __init__(self, *args, **kwargs): + + super(AssetFilterPaged, self).__init__(*args, **kwargs) +class ContentKeyPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`ContentKeyPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ContentKeyPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(ContentKeyPolicyPaged, self).__init__(*args, **kwargs) +class TransformPaged(Paged): + """ + A paging container for iterating over a list of :class:`Transform ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Transform]'} + } + + def __init__(self, *args, **kwargs): + + super(TransformPaged, self).__init__(*args, **kwargs) +class JobPaged(Paged): + """ + A paging container for iterating over a list of :class:`Job ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Job]'} + } + + def __init__(self, *args, **kwargs): + + super(JobPaged, self).__init__(*args, **kwargs) +class StreamingPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`StreamingPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StreamingPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(StreamingPolicyPaged, self).__init__(*args, **kwargs) +class StreamingLocatorPaged(Paged): + """ + A paging container for iterating over a list of :class:`StreamingLocator ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StreamingLocator]'} + } + + def __init__(self, *args, **kwargs): + + super(StreamingLocatorPaged, self).__init__(*args, **kwargs) +class LiveEventPaged(Paged): + """ + A paging container for iterating over a list of :class:`LiveEvent ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LiveEvent]'} + } + + def __init__(self, *args, **kwargs): + + super(LiveEventPaged, self).__init__(*args, **kwargs) +class LiveOutputPaged(Paged): + """ + A paging container for iterating over a list of :class:`LiveOutput ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LiveOutput]'} + } + + def __init__(self, *args, **kwargs): + + super(LiveOutputPaged, self).__init__(*args, **kwargs) +class StreamingEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`StreamingEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StreamingEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(StreamingEndpointPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio.py deleted file mode 100644 index 6b21b6b0e203..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .audio import Audio - - -class AacAudio(Audio): - """Describes Advanced Audio Codec (AAC) audio encoding settings. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param channels: The number of channels in the audio. - :type channels: int - :param sampling_rate: The sampling rate to use for encoding in hertz. - :type sampling_rate: int - :param bitrate: The bitrate, in bits per second, of the output encoded - audio. - :type bitrate: int - :param profile: The encoding profile to be used when encoding audio with - AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2' - :type profile: str or ~azure.mgmt.media.models.AacAudioProfile - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'channels': {'key': 'channels', 'type': 'int'}, - 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'profile': {'key': 'profile', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AacAudio, self).__init__(**kwargs) - self.profile = kwargs.get('profile', None) - self.odatatype = '#Microsoft.Media.AacAudio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio_py3.py deleted file mode 100644 index 0afd3bbadf6f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/aac_audio_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .audio_py3 import Audio - - -class AacAudio(Audio): - """Describes Advanced Audio Codec (AAC) audio encoding settings. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param channels: The number of channels in the audio. - :type channels: int - :param sampling_rate: The sampling rate to use for encoding in hertz. - :type sampling_rate: int - :param bitrate: The bitrate, in bits per second, of the output encoded - audio. - :type bitrate: int - :param profile: The encoding profile to be used when encoding audio with - AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2' - :type profile: str or ~azure.mgmt.media.models.AacAudioProfile - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'channels': {'key': 'channels', 'type': 'int'}, - 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'profile': {'key': 'profile', 'type': 'str'}, - } - - def __init__(self, *, label: str=None, channels: int=None, sampling_rate: int=None, bitrate: int=None, profile=None, **kwargs) -> None: - super(AacAudio, self).__init__(label=label, channels=channels, sampling_rate=sampling_rate, bitrate=bitrate, **kwargs) - self.profile = profile - self.odatatype = '#Microsoft.Media.AacAudio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter.py deleted file mode 100644 index 1fbb17b33478..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_paged.py deleted file mode 100644 index 85be59b48d21..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ` 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) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_py3.py deleted file mode 100644 index ad44b4042617..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/account_filter_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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_py3 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, *, presentation_time_range=None, first_quality=None, tracks=None, **kwargs) -> None: - super(AccountFilter, self).__init__(**kwargs) - self.presentation_time_range = presentation_time_range - self.first_quality = first_quality - self.tracks = tracks diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control.py deleted file mode 100644 index 46e828e912cb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class AkamaiAccessControl(Model): - """Akamai access control. - - :param akamai_signature_header_authentication_key_list: authentication key - list - :type akamai_signature_header_authentication_key_list: - list[~azure.mgmt.media.models.AkamaiSignatureHeaderAuthenticationKey] - """ - - _attribute_map = { - 'akamai_signature_header_authentication_key_list': {'key': 'akamaiSignatureHeaderAuthenticationKeyList', 'type': '[AkamaiSignatureHeaderAuthenticationKey]'}, - } - - def __init__(self, **kwargs): - super(AkamaiAccessControl, self).__init__(**kwargs) - self.akamai_signature_header_authentication_key_list = kwargs.get('akamai_signature_header_authentication_key_list', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control_py3.py deleted file mode 100644 index e5025071e8ac..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_access_control_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class AkamaiAccessControl(Model): - """Akamai access control. - - :param akamai_signature_header_authentication_key_list: authentication key - list - :type akamai_signature_header_authentication_key_list: - list[~azure.mgmt.media.models.AkamaiSignatureHeaderAuthenticationKey] - """ - - _attribute_map = { - 'akamai_signature_header_authentication_key_list': {'key': 'akamaiSignatureHeaderAuthenticationKeyList', 'type': '[AkamaiSignatureHeaderAuthenticationKey]'}, - } - - def __init__(self, *, akamai_signature_header_authentication_key_list=None, **kwargs) -> None: - super(AkamaiAccessControl, self).__init__(**kwargs) - self.akamai_signature_header_authentication_key_list = akamai_signature_header_authentication_key_list diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key.py deleted file mode 100644 index a8f5cf92b2a1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class AkamaiSignatureHeaderAuthenticationKey(Model): - """Akamai Signature Header authentication key. - - :param identifier: identifier of the key - :type identifier: str - :param base64_key: authentication key - :type base64_key: str - :param expiration: The expiration time of the authentication key. - :type expiration: datetime - """ - - _attribute_map = { - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'base64_key': {'key': 'base64Key', 'type': 'str'}, - 'expiration': {'key': 'expiration', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(AkamaiSignatureHeaderAuthenticationKey, self).__init__(**kwargs) - self.identifier = kwargs.get('identifier', None) - self.base64_key = kwargs.get('base64_key', None) - self.expiration = kwargs.get('expiration', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key_py3.py deleted file mode 100644 index ca8fcf6ec53c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/akamai_signature_header_authentication_key_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class AkamaiSignatureHeaderAuthenticationKey(Model): - """Akamai Signature Header authentication key. - - :param identifier: identifier of the key - :type identifier: str - :param base64_key: authentication key - :type base64_key: str - :param expiration: The expiration time of the authentication key. - :type expiration: datetime - """ - - _attribute_map = { - 'identifier': {'key': 'identifier', 'type': 'str'}, - 'base64_key': {'key': 'base64Key', 'type': 'str'}, - 'expiration': {'key': 'expiration', 'type': 'iso-8601'}, - } - - def __init__(self, *, identifier: str=None, base64_key: str=None, expiration=None, **kwargs) -> None: - super(AkamaiSignatureHeaderAuthenticationKey, self).__init__(**kwargs) - self.identifier = identifier - self.base64_key = base64_key - self.expiration = expiration diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error.py deleted file mode 100644 index 0443e9b1e04a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ApiError(Model): - """The API error. - - :param error: ApiError. The error properties. - :type error: ~azure.mgmt.media.models.ODataError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ODataError'}, - } - - def __init__(self, **kwargs): - super(ApiError, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ApiErrorException(HttpOperationError): - """Server responsed with exception of type: 'ApiError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error_py3.py deleted file mode 100644 index ba67fd69a832..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/api_error_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ApiError(Model): - """The API error. - - :param error: ApiError. The error properties. - :type error: ~azure.mgmt.media.models.ODataError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ODataError'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(ApiError, self).__init__(**kwargs) - self.error = error - - -class ApiErrorException(HttpOperationError): - """Server responsed with exception of type: 'ApiError'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ApiErrorException, self).__init__(deserialize, response, 'ApiError', *args) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset.py deleted file mode 100644 index c187fe55f5b1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 Asset(ProxyResource): - """An Asset. - - 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 - :ivar asset_id: The Asset ID. - :vartype asset_id: str - :ivar created: The creation date of the Asset. - :vartype created: datetime - :ivar last_modified: The last modified date of the Asset. - :vartype last_modified: datetime - :param alternate_id: The alternate ID of the Asset. - :type alternate_id: str - :param description: The Asset description. - :type description: str - :param container: The name of the asset blob container. - :type container: str - :param storage_account_name: The name of the storage account. - :type storage_account_name: str - :ivar storage_encryption_format: The Asset encryption format. One of None - or MediaStorageEncryption. Possible values include: 'None', - 'MediaStorageClientEncryption' - :vartype storage_encryption_format: str or - ~azure.mgmt.media.models.AssetStorageEncryptionFormat - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'storage_encryption_format': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'asset_id': {'key': 'properties.assetId', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'alternate_id': {'key': 'properties.alternateId', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'container': {'key': 'properties.container', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'storage_encryption_format': {'key': 'properties.storageEncryptionFormat', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Asset, self).__init__(**kwargs) - self.asset_id = None - self.created = None - self.last_modified = None - self.alternate_id = kwargs.get('alternate_id', None) - self.description = kwargs.get('description', None) - self.container = kwargs.get('container', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.storage_encryption_format = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas.py deleted file mode 100644 index 99da871311ad..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class AssetContainerSas(Model): - """The Asset Storage container SAS URLs. - - :param asset_container_sas_urls: The list of Asset container SAS URLs. - :type asset_container_sas_urls: list[str] - """ - - _attribute_map = { - 'asset_container_sas_urls': {'key': 'assetContainerSasUrls', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AssetContainerSas, self).__init__(**kwargs) - self.asset_container_sas_urls = kwargs.get('asset_container_sas_urls', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas_py3.py deleted file mode 100644 index c4f6a21679f0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_container_sas_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class AssetContainerSas(Model): - """The Asset Storage container SAS URLs. - - :param asset_container_sas_urls: The list of Asset container SAS URLs. - :type asset_container_sas_urls: list[str] - """ - - _attribute_map = { - 'asset_container_sas_urls': {'key': 'assetContainerSasUrls', 'type': '[str]'}, - } - - def __init__(self, *, asset_container_sas_urls=None, **kwargs) -> None: - super(AssetContainerSas, self).__init__(**kwargs) - self.asset_container_sas_urls = asset_container_sas_urls diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata.py deleted file mode 100644 index 5c10d567373d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class AssetFileEncryptionMetadata(Model): - """The Asset File Storage encryption metadata. - - All required parameters must be populated in order to send to Azure. - - :param initialization_vector: The Asset File initialization vector. - :type initialization_vector: str - :param asset_file_name: The Asset File name. - :type asset_file_name: str - :param asset_file_id: Required. The Asset File Id. - :type asset_file_id: str - """ - - _validation = { - 'asset_file_id': {'required': True}, - } - - _attribute_map = { - 'initialization_vector': {'key': 'initializationVector', 'type': 'str'}, - 'asset_file_name': {'key': 'assetFileName', 'type': 'str'}, - 'asset_file_id': {'key': 'assetFileId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AssetFileEncryptionMetadata, self).__init__(**kwargs) - self.initialization_vector = kwargs.get('initialization_vector', None) - self.asset_file_name = kwargs.get('asset_file_name', None) - self.asset_file_id = kwargs.get('asset_file_id', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata_py3.py deleted file mode 100644 index e4e0fd18382e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_file_encryption_metadata_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class AssetFileEncryptionMetadata(Model): - """The Asset File Storage encryption metadata. - - All required parameters must be populated in order to send to Azure. - - :param initialization_vector: The Asset File initialization vector. - :type initialization_vector: str - :param asset_file_name: The Asset File name. - :type asset_file_name: str - :param asset_file_id: Required. The Asset File Id. - :type asset_file_id: str - """ - - _validation = { - 'asset_file_id': {'required': True}, - } - - _attribute_map = { - 'initialization_vector': {'key': 'initializationVector', 'type': 'str'}, - 'asset_file_name': {'key': 'assetFileName', 'type': 'str'}, - 'asset_file_id': {'key': 'assetFileId', 'type': 'str'}, - } - - def __init__(self, *, asset_file_id: str, initialization_vector: str=None, asset_file_name: str=None, **kwargs) -> None: - super(AssetFileEncryptionMetadata, self).__init__(**kwargs) - self.initialization_vector = initialization_vector - self.asset_file_name = asset_file_name - self.asset_file_id = asset_file_id diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter.py deleted file mode 100644 index 3ce9ac059845..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 AssetFilter(ProxyResource): - """An Asset 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(AssetFilter, 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) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_paged.py deleted file mode 100644 index a4811a6f843b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 AssetFilterPaged(Paged): - """ - A paging container for iterating over a list of :class:`AssetFilter ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AssetFilter]'} - } - - def __init__(self, *args, **kwargs): - - super(AssetFilterPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_py3.py deleted file mode 100644 index b502bdd4f2d2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_filter_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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_py3 import ProxyResource - - -class AssetFilter(ProxyResource): - """An Asset 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, *, presentation_time_range=None, first_quality=None, tracks=None, **kwargs) -> None: - super(AssetFilter, self).__init__(**kwargs) - self.presentation_time_range = presentation_time_range - self.first_quality = first_quality - self.tracks = tracks diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_paged.py deleted file mode 100644 index 686e394ddb51..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 AssetPaged(Paged): - """ - A paging container for iterating over a list of :class:`Asset ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Asset]'} - } - - def __init__(self, *args, **kwargs): - - super(AssetPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_py3.py deleted file mode 100644 index 23245ca86c1e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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_py3 import ProxyResource - - -class Asset(ProxyResource): - """An Asset. - - 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 - :ivar asset_id: The Asset ID. - :vartype asset_id: str - :ivar created: The creation date of the Asset. - :vartype created: datetime - :ivar last_modified: The last modified date of the Asset. - :vartype last_modified: datetime - :param alternate_id: The alternate ID of the Asset. - :type alternate_id: str - :param description: The Asset description. - :type description: str - :param container: The name of the asset blob container. - :type container: str - :param storage_account_name: The name of the storage account. - :type storage_account_name: str - :ivar storage_encryption_format: The Asset encryption format. One of None - or MediaStorageEncryption. Possible values include: 'None', - 'MediaStorageClientEncryption' - :vartype storage_encryption_format: str or - ~azure.mgmt.media.models.AssetStorageEncryptionFormat - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'storage_encryption_format': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'asset_id': {'key': 'properties.assetId', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'alternate_id': {'key': 'properties.alternateId', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'container': {'key': 'properties.container', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'storage_encryption_format': {'key': 'properties.storageEncryptionFormat', 'type': 'str'}, - } - - def __init__(self, *, alternate_id: str=None, description: str=None, container: str=None, storage_account_name: str=None, **kwargs) -> None: - super(Asset, self).__init__(**kwargs) - self.asset_id = None - self.created = None - self.last_modified = None - self.alternate_id = alternate_id - self.description = description - self.container = container - self.storage_account_name = storage_account_name - self.storage_encryption_format = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator.py deleted file mode 100644 index 836dba6a6dd4..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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.serialization import Model - - -class AssetStreamingLocator(Model): - """Properties of the Streaming Locator. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Streaming Locator name. - :vartype name: str - :ivar asset_name: Asset Name. - :vartype asset_name: str - :ivar created: The creation time of the Streaming Locator. - :vartype created: datetime - :ivar start_time: The start time of the Streaming Locator. - :vartype start_time: datetime - :ivar end_time: The end time of the Streaming Locator. - :vartype end_time: datetime - :ivar streaming_locator_id: StreamingLocatorId of the Streaming Locator. - :vartype streaming_locator_id: str - :ivar streaming_policy_name: Name of the Streaming Policy used by this - Streaming Locator. - :vartype streaming_policy_name: str - :ivar default_content_key_policy_name: Name of the default - ContentKeyPolicy used by this Streaming Locator. - :vartype default_content_key_policy_name: str - """ - - _validation = { - 'name': {'readonly': True}, - 'asset_name': {'readonly': True}, - 'created': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'streaming_locator_id': {'readonly': True}, - 'streaming_policy_name': {'readonly': True}, - 'default_content_key_policy_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - 'created': {'key': 'created', 'type': 'iso-8601'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'streaming_locator_id': {'key': 'streamingLocatorId', 'type': 'str'}, - 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, - 'default_content_key_policy_name': {'key': 'defaultContentKeyPolicyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AssetStreamingLocator, self).__init__(**kwargs) - self.name = None - self.asset_name = None - self.created = None - self.start_time = None - self.end_time = None - self.streaming_locator_id = None - self.streaming_policy_name = None - self.default_content_key_policy_name = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator_py3.py deleted file mode 100644 index 7e0a49d60455..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/asset_streaming_locator_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# 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.serialization import Model - - -class AssetStreamingLocator(Model): - """Properties of the Streaming Locator. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Streaming Locator name. - :vartype name: str - :ivar asset_name: Asset Name. - :vartype asset_name: str - :ivar created: The creation time of the Streaming Locator. - :vartype created: datetime - :ivar start_time: The start time of the Streaming Locator. - :vartype start_time: datetime - :ivar end_time: The end time of the Streaming Locator. - :vartype end_time: datetime - :ivar streaming_locator_id: StreamingLocatorId of the Streaming Locator. - :vartype streaming_locator_id: str - :ivar streaming_policy_name: Name of the Streaming Policy used by this - Streaming Locator. - :vartype streaming_policy_name: str - :ivar default_content_key_policy_name: Name of the default - ContentKeyPolicy used by this Streaming Locator. - :vartype default_content_key_policy_name: str - """ - - _validation = { - 'name': {'readonly': True}, - 'asset_name': {'readonly': True}, - 'created': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'streaming_locator_id': {'readonly': True}, - 'streaming_policy_name': {'readonly': True}, - 'default_content_key_policy_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - 'created': {'key': 'created', 'type': 'iso-8601'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'streaming_locator_id': {'key': 'streamingLocatorId', 'type': 'str'}, - 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, - 'default_content_key_policy_name': {'key': 'defaultContentKeyPolicyName', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AssetStreamingLocator, self).__init__(**kwargs) - self.name = None - self.asset_name = None - self.created = None - self.start_time = None - self.end_time = None - self.streaming_locator_id = None - self.streaming_policy_name = None - self.default_content_key_policy_name = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio.py deleted file mode 100644 index c1d4c50115ba..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .codec import Codec - - -class Audio(Codec): - """Defines the common properties for all audio codecs. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AacAudio - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param channels: The number of channels in the audio. - :type channels: int - :param sampling_rate: The sampling rate to use for encoding in hertz. - :type sampling_rate: int - :param bitrate: The bitrate, in bits per second, of the output encoded - audio. - :type bitrate: int - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'channels': {'key': 'channels', 'type': 'int'}, - 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.AacAudio': 'AacAudio'} - } - - def __init__(self, **kwargs): - super(Audio, self).__init__(**kwargs) - self.channels = kwargs.get('channels', None) - self.sampling_rate = kwargs.get('sampling_rate', None) - self.bitrate = kwargs.get('bitrate', None) - self.odatatype = '#Microsoft.Media.Audio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset.py deleted file mode 100644 index 2897152a3398..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .preset import Preset - - -class AudioAnalyzerPreset(Preset): - """The Audio Analyzer preset applies a pre-defined set of AI-based analysis - operations, including speech transcription. Currently, the preset supports - processing of content with a single audio track. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: VideoAnalyzerPreset - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param audio_language: The language for the audio payload in the input - using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list - of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' - and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), - Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' - and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If - you know the language of your content, it is recommended that you specify - it. If the language isn't specified or set to null, automatic language - detection will choose the first language detected and process with the - selected language for the duration of the file. This language detection - feature currently supports English, Chinese, French, German, Italian, - Japanese, Spanish, Russian, and Portuguese. It does not currently support - dynamically switching between languages after the first language is - detected. The automatic detection works best with audio recordings with - clearly discernable speech. If automatic detection fails to find the - language, transcription would fallback to 'en-US'." - :type audio_language: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.VideoAnalyzerPreset': 'VideoAnalyzerPreset'} - } - - def __init__(self, **kwargs): - super(AudioAnalyzerPreset, self).__init__(**kwargs) - self.audio_language = kwargs.get('audio_language', None) - self.odatatype = '#Microsoft.Media.AudioAnalyzerPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset_py3.py deleted file mode 100644 index 956bf227bff6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_analyzer_preset_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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 .preset_py3 import Preset - - -class AudioAnalyzerPreset(Preset): - """The Audio Analyzer preset applies a pre-defined set of AI-based analysis - operations, including speech transcription. Currently, the preset supports - processing of content with a single audio track. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: VideoAnalyzerPreset - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param audio_language: The language for the audio payload in the input - using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list - of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' - and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), - Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' - and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If - you know the language of your content, it is recommended that you specify - it. If the language isn't specified or set to null, automatic language - detection will choose the first language detected and process with the - selected language for the duration of the file. This language detection - feature currently supports English, Chinese, French, German, Italian, - Japanese, Spanish, Russian, and Portuguese. It does not currently support - dynamically switching between languages after the first language is - detected. The automatic detection works best with audio recordings with - clearly discernable speech. If automatic detection fails to find the - language, transcription would fallback to 'en-US'." - :type audio_language: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.VideoAnalyzerPreset': 'VideoAnalyzerPreset'} - } - - def __init__(self, *, audio_language: str=None, **kwargs) -> None: - super(AudioAnalyzerPreset, self).__init__(**kwargs) - self.audio_language = audio_language - self.odatatype = '#Microsoft.Media.AudioAnalyzerPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay.py deleted file mode 100644 index 9650f363101a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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 .overlay import Overlay - - -class AudioOverlay(Overlay): - """Describes the properties of an audio overlay. - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AudioOverlay, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.AudioOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay_py3.py deleted file mode 100644 index f00a28492e71..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_overlay_py3.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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 .overlay_py3 import Overlay - - -class AudioOverlay(Overlay): - """Describes the properties of an audio overlay. - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, **kwargs) -> None: - super(AudioOverlay, self).__init__(input_label=input_label, start=start, end=end, fade_in_duration=fade_in_duration, fade_out_duration=fade_out_duration, audio_gain_level=audio_gain_level, **kwargs) - self.odatatype = '#Microsoft.Media.AudioOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_py3.py deleted file mode 100644 index 373ae47a86d5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/audio_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .codec_py3 import Codec - - -class Audio(Codec): - """Defines the common properties for all audio codecs. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AacAudio - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param channels: The number of channels in the audio. - :type channels: int - :param sampling_rate: The sampling rate to use for encoding in hertz. - :type sampling_rate: int - :param bitrate: The bitrate, in bits per second, of the output encoded - audio. - :type bitrate: int - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'channels': {'key': 'channels', 'type': 'int'}, - 'sampling_rate': {'key': 'samplingRate', 'type': 'int'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.AacAudio': 'AacAudio'} - } - - def __init__(self, *, label: str=None, channels: int=None, sampling_rate: int=None, bitrate: int=None, **kwargs) -> None: - super(Audio, self).__init__(label=label, **kwargs) - self.channels = channels - self.sampling_rate = sampling_rate - self.bitrate = bitrate - self.odatatype = '#Microsoft.Media.Audio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset.py deleted file mode 100644 index e4e0c3f532ea..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .preset import Preset - - -class BuiltInStandardEncoderPreset(Preset): - """Describes a built-in preset for encoding the input video with the Standard - Encoder. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param preset_name: Required. The built-in preset to be used for encoding - videos. Possible values include: 'H264SingleBitrateSD', - 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', - 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', - 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', - 'H264MultipleBitrateSD' - :type preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset - """ - - _validation = { - 'odatatype': {'required': True}, - 'preset_name': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'preset_name': {'key': 'presetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BuiltInStandardEncoderPreset, self).__init__(**kwargs) - self.preset_name = kwargs.get('preset_name', None) - self.odatatype = '#Microsoft.Media.BuiltInStandardEncoderPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset_py3.py deleted file mode 100644 index 8e8fbe2c9c9d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/built_in_standard_encoder_preset_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .preset_py3 import Preset - - -class BuiltInStandardEncoderPreset(Preset): - """Describes a built-in preset for encoding the input video with the Standard - Encoder. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param preset_name: Required. The built-in preset to be used for encoding - videos. Possible values include: 'H264SingleBitrateSD', - 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', - 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', - 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', - 'H264MultipleBitrateSD' - :type preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset - """ - - _validation = { - 'odatatype': {'required': True}, - 'preset_name': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'preset_name': {'key': 'presetName', 'type': 'str'}, - } - - def __init__(self, *, preset_name, **kwargs) -> None: - super(BuiltInStandardEncoderPreset, self).__init__(**kwargs) - self.preset_name = preset_name - self.odatatype = '#Microsoft.Media.BuiltInStandardEncoderPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration.py deleted file mode 100644 index 564702848147..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class CbcsDrmConfiguration(Model): - """Class to specify DRM configurations of CommonEncryptionCbcs scheme in - Streaming Policy. - - :param fair_play: FairPlay configurations - :type fair_play: - ~azure.mgmt.media.models.StreamingPolicyFairPlayConfiguration - :param play_ready: PlayReady configurations - :type play_ready: - ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration - :param widevine: Widevine configurations - :type widevine: - ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration - """ - - _attribute_map = { - 'fair_play': {'key': 'fairPlay', 'type': 'StreamingPolicyFairPlayConfiguration'}, - 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, - 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, - } - - def __init__(self, **kwargs): - super(CbcsDrmConfiguration, self).__init__(**kwargs) - self.fair_play = kwargs.get('fair_play', None) - self.play_ready = kwargs.get('play_ready', None) - self.widevine = kwargs.get('widevine', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration_py3.py deleted file mode 100644 index 9c675227d218..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cbcs_drm_configuration_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class CbcsDrmConfiguration(Model): - """Class to specify DRM configurations of CommonEncryptionCbcs scheme in - Streaming Policy. - - :param fair_play: FairPlay configurations - :type fair_play: - ~azure.mgmt.media.models.StreamingPolicyFairPlayConfiguration - :param play_ready: PlayReady configurations - :type play_ready: - ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration - :param widevine: Widevine configurations - :type widevine: - ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration - """ - - _attribute_map = { - 'fair_play': {'key': 'fairPlay', 'type': 'StreamingPolicyFairPlayConfiguration'}, - 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, - 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, - } - - def __init__(self, *, fair_play=None, play_ready=None, widevine=None, **kwargs) -> None: - super(CbcsDrmConfiguration, self).__init__(**kwargs) - self.fair_play = fair_play - self.play_ready = play_ready - self.widevine = widevine diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration.py deleted file mode 100644 index 28e0d535dded..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class CencDrmConfiguration(Model): - """Class to specify DRM configurations of CommonEncryptionCenc scheme in - Streaming Policy. - - :param play_ready: PlayReady configurations - :type play_ready: - ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration - :param widevine: Widevine configurations - :type widevine: - ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration - """ - - _attribute_map = { - 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, - 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, - } - - def __init__(self, **kwargs): - super(CencDrmConfiguration, self).__init__(**kwargs) - self.play_ready = kwargs.get('play_ready', None) - self.widevine = kwargs.get('widevine', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration_py3.py deleted file mode 100644 index e72bff93ebbc..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cenc_drm_configuration_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class CencDrmConfiguration(Model): - """Class to specify DRM configurations of CommonEncryptionCenc scheme in - Streaming Policy. - - :param play_ready: PlayReady configurations - :type play_ready: - ~azure.mgmt.media.models.StreamingPolicyPlayReadyConfiguration - :param widevine: Widevine configurations - :type widevine: - ~azure.mgmt.media.models.StreamingPolicyWidevineConfiguration - """ - - _attribute_map = { - 'play_ready': {'key': 'playReady', 'type': 'StreamingPolicyPlayReadyConfiguration'}, - 'widevine': {'key': 'widevine', 'type': 'StreamingPolicyWidevineConfiguration'}, - } - - def __init__(self, *, play_ready=None, widevine=None, **kwargs) -> None: - super(CencDrmConfiguration, self).__init__(**kwargs) - self.play_ready = play_ready - self.widevine = widevine diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py deleted file mode 100644 index 9b480d2aa25e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.serialization import Model - - -class CheckNameAvailabilityInput(Model): - """The input to the check name availability request. - - :param name: The account name. - :type name: str - :param type: The account type. For a Media Services account, this should - be 'MediaServices'. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input_py3.py deleted file mode 100644 index 98aedbde602e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/check_name_availability_input_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# 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.serialization import Model - - -class CheckNameAvailabilityInput(Model): - """The input to the check name availability request. - - :param name: The account name. - :type name: str - :param type: The account type. For a Media Services account, this should - be 'MediaServices'. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None: - super(CheckNameAvailabilityInput, self).__init__(**kwargs) - self.name = name - self.type = type diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec.py deleted file mode 100644 index 52f9ac8be98d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class Codec(Model): - """Describes the basic properties of all codecs. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Audio, CopyVideo, Video, CopyAudio - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Audio': 'Audio', '#Microsoft.Media.CopyVideo': 'CopyVideo', '#Microsoft.Media.Video': 'Video', '#Microsoft.Media.CopyAudio': 'CopyAudio'} - } - - def __init__(self, **kwargs): - super(Codec, self).__init__(**kwargs) - self.label = kwargs.get('label', None) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec_py3.py deleted file mode 100644 index cc9ef8ab89c0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/codec_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class Codec(Model): - """Describes the basic properties of all codecs. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Audio, CopyVideo, Video, CopyAudio - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Audio': 'Audio', '#Microsoft.Media.CopyVideo': 'CopyVideo', '#Microsoft.Media.Video': 'Video', '#Microsoft.Media.CopyAudio': 'CopyAudio'} - } - - def __init__(self, *, label: str=None, **kwargs) -> None: - super(Codec, self).__init__(**kwargs) - self.label = label - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs.py deleted file mode 100644 index c8596503045f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CommonEncryptionCbcs(Model): - """Class for CommonEncryptionCbcs encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param drm: Configuration of DRMs for current encryption scheme - :type drm: ~azure.mgmt.media.models.CbcsDrmConfiguration - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'drm': {'key': 'drm', 'type': 'CbcsDrmConfiguration'}, - } - - def __init__(self, **kwargs): - super(CommonEncryptionCbcs, self).__init__(**kwargs) - self.enabled_protocols = kwargs.get('enabled_protocols', None) - self.clear_tracks = kwargs.get('clear_tracks', None) - self.content_keys = kwargs.get('content_keys', None) - self.drm = kwargs.get('drm', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs_py3.py deleted file mode 100644 index 19da7ab16bae..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cbcs_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CommonEncryptionCbcs(Model): - """Class for CommonEncryptionCbcs encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param drm: Configuration of DRMs for current encryption scheme - :type drm: ~azure.mgmt.media.models.CbcsDrmConfiguration - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'drm': {'key': 'drm', 'type': 'CbcsDrmConfiguration'}, - } - - def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs) -> None: - super(CommonEncryptionCbcs, self).__init__(**kwargs) - self.enabled_protocols = enabled_protocols - self.clear_tracks = clear_tracks - self.content_keys = content_keys - self.drm = drm diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc.py deleted file mode 100644 index 71138a5b8c77..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class CommonEncryptionCenc(Model): - """Class for envelope encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param drm: Configuration of DRMs for CommonEncryptionCenc encryption - scheme - :type drm: ~azure.mgmt.media.models.CencDrmConfiguration - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'drm': {'key': 'drm', 'type': 'CencDrmConfiguration'}, - } - - def __init__(self, **kwargs): - super(CommonEncryptionCenc, self).__init__(**kwargs) - self.enabled_protocols = kwargs.get('enabled_protocols', None) - self.clear_tracks = kwargs.get('clear_tracks', None) - self.content_keys = kwargs.get('content_keys', None) - self.drm = kwargs.get('drm', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc_py3.py deleted file mode 100644 index c7b8336e9324..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/common_encryption_cenc_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class CommonEncryptionCenc(Model): - """Class for envelope encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param drm: Configuration of DRMs for CommonEncryptionCenc encryption - scheme - :type drm: ~azure.mgmt.media.models.CencDrmConfiguration - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'drm': {'key': 'drm', 'type': 'CencDrmConfiguration'}, - } - - def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, drm=None, **kwargs) -> None: - super(CommonEncryptionCenc, self).__init__(**kwargs) - self.enabled_protocols = enabled_protocols - self.clear_tracks = clear_tracks - self.content_keys = content_keys - self.drm = drm diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy.py deleted file mode 100644 index e0a7602c2cce..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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 ContentKeyPolicy(ProxyResource): - """A Content Key Policy resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar policy_id: The legacy Policy ID. - :vartype policy_id: str - :ivar created: The creation date of the Policy - :vartype created: datetime - :ivar last_modified: The last modified date of the Policy - :vartype last_modified: datetime - :param description: A description for the Policy. - :type description: str - :param options: Required. The Key Policy options. - :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'policy_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'options': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'policy_id': {'key': 'properties.policyId', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'options': {'key': 'properties.options', 'type': '[ContentKeyPolicyOption]'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicy, self).__init__(**kwargs) - self.policy_id = None - self.created = None - self.last_modified = None - self.description = kwargs.get('description', None) - self.options = kwargs.get('options', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration.py deleted file mode 100644 index 88e7693ef578..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 .content_key_policy_configuration import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration): - """Represents a configuration for non-DRM keys. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyClearKeyConfiguration, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration_py3.py deleted file mode 100644 index 436fd3dac992..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_clear_key_configuration_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration): - """Represents a configuration for non-DRM keys. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyClearKeyConfiguration, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration.py deleted file mode 100644 index b6b453831e6f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyConfiguration(Model): - """Base class for Content Key Policy configuration. A derived class must be - used to create a configuration. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyClearKeyConfiguration, - ContentKeyPolicyUnknownConfiguration, - ContentKeyPolicyWidevineConfiguration, - ContentKeyPolicyPlayReadyConfiguration, - ContentKeyPolicyFairPlayConfiguration - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration': 'ContentKeyPolicyClearKeyConfiguration', '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration': 'ContentKeyPolicyUnknownConfiguration', '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration': 'ContentKeyPolicyWidevineConfiguration', '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration': 'ContentKeyPolicyPlayReadyConfiguration', '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration': 'ContentKeyPolicyFairPlayConfiguration'} - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyConfiguration, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration_py3.py deleted file mode 100644 index 4d8ae44f93fc..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_configuration_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyConfiguration(Model): - """Base class for Content Key Policy configuration. A derived class must be - used to create a configuration. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyClearKeyConfiguration, - ContentKeyPolicyUnknownConfiguration, - ContentKeyPolicyWidevineConfiguration, - ContentKeyPolicyPlayReadyConfiguration, - ContentKeyPolicyFairPlayConfiguration - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration': 'ContentKeyPolicyClearKeyConfiguration', '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration': 'ContentKeyPolicyUnknownConfiguration', '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration': 'ContentKeyPolicyWidevineConfiguration', '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration': 'ContentKeyPolicyPlayReadyConfiguration', '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration': 'ContentKeyPolicyFairPlayConfiguration'} - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyConfiguration, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration.py deleted file mode 100644 index 7b3153af96db..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 .content_key_policy_configuration import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyFairPlayConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for FairPlay licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param ask: Required. The key that must be used as FairPlay Application - Secret key. - :type ask: bytearray - :param fair_play_pfx_password: Required. The password encrypting FairPlay - certificate in PKCS 12 (pfx) format. - :type fair_play_pfx_password: str - :param fair_play_pfx: Required. The Base64 representation of FairPlay - certificate in PKCS 12 (pfx) format (including private key). - :type fair_play_pfx: str - :param rental_and_lease_key_type: Required. The rental and lease key type. - Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', - 'PersistentLimited' - :type rental_and_lease_key_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyFairPlayRentalAndLeaseKeyType - :param rental_duration: Required. The rental duration. Must be greater - than or equal to 0. - :type rental_duration: long - """ - - _validation = { - 'odatatype': {'required': True}, - 'ask': {'required': True}, - 'fair_play_pfx_password': {'required': True}, - 'fair_play_pfx': {'required': True}, - 'rental_and_lease_key_type': {'required': True}, - 'rental_duration': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'ask': {'key': 'ask', 'type': 'bytearray'}, - 'fair_play_pfx_password': {'key': 'fairPlayPfxPassword', 'type': 'str'}, - 'fair_play_pfx': {'key': 'fairPlayPfx', 'type': 'str'}, - 'rental_and_lease_key_type': {'key': 'rentalAndLeaseKeyType', 'type': 'str'}, - 'rental_duration': {'key': 'rentalDuration', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyFairPlayConfiguration, self).__init__(**kwargs) - self.ask = kwargs.get('ask', None) - self.fair_play_pfx_password = kwargs.get('fair_play_pfx_password', None) - self.fair_play_pfx = kwargs.get('fair_play_pfx', None) - self.rental_and_lease_key_type = kwargs.get('rental_and_lease_key_type', None) - self.rental_duration = kwargs.get('rental_duration', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration_py3.py deleted file mode 100644 index 61cf2e128b02..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_fair_play_configuration_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# 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 .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyFairPlayConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for FairPlay licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param ask: Required. The key that must be used as FairPlay Application - Secret key. - :type ask: bytearray - :param fair_play_pfx_password: Required. The password encrypting FairPlay - certificate in PKCS 12 (pfx) format. - :type fair_play_pfx_password: str - :param fair_play_pfx: Required. The Base64 representation of FairPlay - certificate in PKCS 12 (pfx) format (including private key). - :type fair_play_pfx: str - :param rental_and_lease_key_type: Required. The rental and lease key type. - Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', - 'PersistentLimited' - :type rental_and_lease_key_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyFairPlayRentalAndLeaseKeyType - :param rental_duration: Required. The rental duration. Must be greater - than or equal to 0. - :type rental_duration: long - """ - - _validation = { - 'odatatype': {'required': True}, - 'ask': {'required': True}, - 'fair_play_pfx_password': {'required': True}, - 'fair_play_pfx': {'required': True}, - 'rental_and_lease_key_type': {'required': True}, - 'rental_duration': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'ask': {'key': 'ask', 'type': 'bytearray'}, - 'fair_play_pfx_password': {'key': 'fairPlayPfxPassword', 'type': 'str'}, - 'fair_play_pfx': {'key': 'fairPlayPfx', 'type': 'str'}, - 'rental_and_lease_key_type': {'key': 'rentalAndLeaseKeyType', 'type': 'str'}, - 'rental_duration': {'key': 'rentalDuration', 'type': 'long'}, - } - - def __init__(self, *, ask: bytearray, fair_play_pfx_password: str, fair_play_pfx: str, rental_and_lease_key_type, rental_duration: int, **kwargs) -> None: - super(ContentKeyPolicyFairPlayConfiguration, self).__init__(**kwargs) - self.ask = ask - self.fair_play_pfx_password = fair_play_pfx_password - self.fair_play_pfx = fair_play_pfx - self.rental_and_lease_key_type = rental_and_lease_key_type - self.rental_duration = rental_duration - self.odatatype = '#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction.py deleted file mode 100644 index ff31f1c4c091..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_restriction import ContentKeyPolicyRestriction - - -class ContentKeyPolicyOpenRestriction(ContentKeyPolicyRestriction): - """Represents an open restriction. License or key will be delivered on every - request. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyOpenRestriction, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyOpenRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction_py3.py deleted file mode 100644 index 3fca48a998ef..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_open_restriction_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_restriction_py3 import ContentKeyPolicyRestriction - - -class ContentKeyPolicyOpenRestriction(ContentKeyPolicyRestriction): - """Represents an open restriction. License or key will be delivered on every - request. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyOpenRestriction, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyOpenRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option.py deleted file mode 100644 index 7815a1cde7e4..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyOption(Model): - """Represents a policy option. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar policy_option_id: The legacy Policy Option ID. - :vartype policy_option_id: str - :param name: The Policy Option description. - :type name: str - :param configuration: Required. The key delivery configuration. - :type configuration: - ~azure.mgmt.media.models.ContentKeyPolicyConfiguration - :param restriction: Required. The requirements that must be met to deliver - keys with this configuration - :type restriction: ~azure.mgmt.media.models.ContentKeyPolicyRestriction - """ - - _validation = { - 'policy_option_id': {'readonly': True}, - 'configuration': {'required': True}, - 'restriction': {'required': True}, - } - - _attribute_map = { - 'policy_option_id': {'key': 'policyOptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ContentKeyPolicyConfiguration'}, - 'restriction': {'key': 'restriction', 'type': 'ContentKeyPolicyRestriction'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyOption, self).__init__(**kwargs) - self.policy_option_id = None - self.name = kwargs.get('name', None) - self.configuration = kwargs.get('configuration', None) - self.restriction = kwargs.get('restriction', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option_py3.py deleted file mode 100644 index 79a9b5a6b02e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_option_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyOption(Model): - """Represents a policy option. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar policy_option_id: The legacy Policy Option ID. - :vartype policy_option_id: str - :param name: The Policy Option description. - :type name: str - :param configuration: Required. The key delivery configuration. - :type configuration: - ~azure.mgmt.media.models.ContentKeyPolicyConfiguration - :param restriction: Required. The requirements that must be met to deliver - keys with this configuration - :type restriction: ~azure.mgmt.media.models.ContentKeyPolicyRestriction - """ - - _validation = { - 'policy_option_id': {'readonly': True}, - 'configuration': {'required': True}, - 'restriction': {'required': True}, - } - - _attribute_map = { - 'policy_option_id': {'key': 'policyOptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'ContentKeyPolicyConfiguration'}, - 'restriction': {'key': 'restriction', 'type': 'ContentKeyPolicyRestriction'}, - } - - def __init__(self, *, configuration, restriction, name: str=None, **kwargs) -> None: - super(ContentKeyPolicyOption, self).__init__(**kwargs) - self.policy_option_id = None - self.name = name - self.configuration = configuration - self.restriction = restriction diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_paged.py deleted file mode 100644 index 2432813cf934..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 ContentKeyPolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`ContentKeyPolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ContentKeyPolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(ContentKeyPolicyPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration.py deleted file mode 100644 index aaef5a06230b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .content_key_policy_configuration import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyPlayReadyConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for PlayReady licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param licenses: Required. The PlayReady licenses. - :type licenses: - list[~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense] - :param response_custom_data: The custom response data. - :type response_custom_data: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'licenses': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'licenses': {'key': 'licenses', 'type': '[ContentKeyPolicyPlayReadyLicense]'}, - 'response_custom_data': {'key': 'responseCustomData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyConfiguration, self).__init__(**kwargs) - self.licenses = kwargs.get('licenses', None) - self.response_custom_data = kwargs.get('response_custom_data', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration_py3.py deleted file mode 100644 index 586f874a5a6d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_configuration_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyPlayReadyConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for PlayReady licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param licenses: Required. The PlayReady licenses. - :type licenses: - list[~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense] - :param response_custom_data: The custom response data. - :type response_custom_data: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'licenses': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'licenses': {'key': 'licenses', 'type': '[ContentKeyPolicyPlayReadyLicense]'}, - 'response_custom_data': {'key': 'responseCustomData', 'type': 'str'}, - } - - def __init__(self, *, licenses, response_custom_data: str=None, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyConfiguration, self).__init__(**kwargs) - self.licenses = licenses - self.response_custom_data = response_custom_data - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header.py deleted file mode 100644 index b4a4e2d20a50..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 .content_key_policy_play_ready_content_key_location import ContentKeyPolicyPlayReadyContentKeyLocation - - -class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader(ContentKeyPolicyPlayReadyContentKeyLocation): - """Specifies that the content key ID is in the PlayReady header. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header_py3.py deleted file mode 100644 index fb0532bbdbe7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_header_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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 .content_key_policy_play_ready_content_key_location_py3 import ContentKeyPolicyPlayReadyContentKeyLocation - - -class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader(ContentKeyPolicyPlayReadyContentKeyLocation): - """Specifies that the content key ID is in the PlayReady header. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.py deleted file mode 100644 index c98eebdb30a3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .content_key_policy_play_ready_content_key_location import ContentKeyPolicyPlayReadyContentKeyLocation - - -class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(ContentKeyPolicyPlayReadyContentKeyLocation): - """Specifies that the content key ID is specified in the PlayReady - configuration. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_id: Required. The content key ID. - :type key_id: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'key_id': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_id': {'key': 'keyId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, self).__init__(**kwargs) - self.key_id = kwargs.get('key_id', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier_py3.py deleted file mode 100644 index 9e3cbc177153..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .content_key_policy_play_ready_content_key_location_py3 import ContentKeyPolicyPlayReadyContentKeyLocation - - -class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(ContentKeyPolicyPlayReadyContentKeyLocation): - """Specifies that the content key ID is specified in the PlayReady - configuration. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_id: Required. The content key ID. - :type key_id: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'key_id': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_id': {'key': 'keyId', 'type': 'str'}, - } - - def __init__(self, *, key_id: str, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, self).__init__(**kwargs) - self.key_id = key_id - self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location.py deleted file mode 100644 index 924c2b7a790a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyContentKeyLocation(Model): - """Base class for content key ID location. A derived class must be used to - represent the location. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, - ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'} - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyContentKeyLocation, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location_py3.py deleted file mode 100644 index 7741aed6515d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_content_key_location_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyContentKeyLocation(Model): - """Base class for content key ID location. A derived class must be used to - represent the location. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, - ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', '#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier': 'ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'} - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyContentKeyLocation, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction.py deleted file mode 100644 index 351e69865ab1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction(Model): - """Configures the Explicit Analog Television Output Restriction control bits. - For further details see the PlayReady Compliance Rules. - - All required parameters must be populated in order to send to Azure. - - :param best_effort: Required. Indicates whether this restriction is - enforced on a Best Effort basis. - :type best_effort: bool - :param configuration_data: Required. Configures the restriction control - bits. Must be between 0 and 3 inclusive. - :type configuration_data: int - """ - - _validation = { - 'best_effort': {'required': True}, - 'configuration_data': {'required': True}, - } - - _attribute_map = { - 'best_effort': {'key': 'bestEffort', 'type': 'bool'}, - 'configuration_data': {'key': 'configurationData', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, self).__init__(**kwargs) - self.best_effort = kwargs.get('best_effort', None) - self.configuration_data = kwargs.get('configuration_data', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction_py3.py deleted file mode 100644 index d163c3aba8eb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_explicit_analog_television_restriction_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction(Model): - """Configures the Explicit Analog Television Output Restriction control bits. - For further details see the PlayReady Compliance Rules. - - All required parameters must be populated in order to send to Azure. - - :param best_effort: Required. Indicates whether this restriction is - enforced on a Best Effort basis. - :type best_effort: bool - :param configuration_data: Required. Configures the restriction control - bits. Must be between 0 and 3 inclusive. - :type configuration_data: int - """ - - _validation = { - 'best_effort': {'required': True}, - 'configuration_data': {'required': True}, - } - - _attribute_map = { - 'best_effort': {'key': 'bestEffort', 'type': 'bool'}, - 'configuration_data': {'key': 'configurationData', 'type': 'int'}, - } - - def __init__(self, *, best_effort: bool, configuration_data: int, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, self).__init__(**kwargs) - self.best_effort = best_effort - self.configuration_data = configuration_data diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license.py deleted file mode 100644 index 07976bd9765a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyLicense(Model): - """The PlayReady license. - - All required parameters must be populated in order to send to Azure. - - :param allow_test_devices: Required. A flag indicating whether test - devices can use the license. - :type allow_test_devices: bool - :param begin_date: The begin date of license - :type begin_date: datetime - :param expiration_date: The expiration date of license. - :type expiration_date: datetime - :param relative_begin_date: The relative begin date of license. - :type relative_begin_date: timedelta - :param relative_expiration_date: The relative expiration date of license. - :type relative_expiration_date: timedelta - :param grace_period: The grace period of license. - :type grace_period: timedelta - :param play_right: The license PlayRight - :type play_right: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyPlayRight - :param license_type: Required. The license type. Possible values include: - 'Unknown', 'NonPersistent', 'Persistent' - :type license_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicenseType - :param content_key_location: Required. The content key location. - :type content_key_location: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentKeyLocation - :param content_type: Required. The PlayReady content type. Possible values - include: 'Unknown', 'Unspecified', 'UltraVioletDownload', - 'UltraVioletStreaming' - :type content_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentType - """ - - _validation = { - 'allow_test_devices': {'required': True}, - 'license_type': {'required': True}, - 'content_key_location': {'required': True}, - 'content_type': {'required': True}, - } - - _attribute_map = { - 'allow_test_devices': {'key': 'allowTestDevices', 'type': 'bool'}, - 'begin_date': {'key': 'beginDate', 'type': 'iso-8601'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'relative_begin_date': {'key': 'relativeBeginDate', 'type': 'duration'}, - 'relative_expiration_date': {'key': 'relativeExpirationDate', 'type': 'duration'}, - 'grace_period': {'key': 'gracePeriod', 'type': 'duration'}, - 'play_right': {'key': 'playRight', 'type': 'ContentKeyPolicyPlayReadyPlayRight'}, - 'license_type': {'key': 'licenseType', 'type': 'str'}, - 'content_key_location': {'key': 'contentKeyLocation', 'type': 'ContentKeyPolicyPlayReadyContentKeyLocation'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyLicense, self).__init__(**kwargs) - self.allow_test_devices = kwargs.get('allow_test_devices', None) - self.begin_date = kwargs.get('begin_date', None) - self.expiration_date = kwargs.get('expiration_date', None) - self.relative_begin_date = kwargs.get('relative_begin_date', None) - self.relative_expiration_date = kwargs.get('relative_expiration_date', None) - self.grace_period = kwargs.get('grace_period', None) - self.play_right = kwargs.get('play_right', None) - self.license_type = kwargs.get('license_type', None) - self.content_key_location = kwargs.get('content_key_location', None) - self.content_type = kwargs.get('content_type', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license_py3.py deleted file mode 100644 index 35f0eb24d602..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_license_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyLicense(Model): - """The PlayReady license. - - All required parameters must be populated in order to send to Azure. - - :param allow_test_devices: Required. A flag indicating whether test - devices can use the license. - :type allow_test_devices: bool - :param begin_date: The begin date of license - :type begin_date: datetime - :param expiration_date: The expiration date of license. - :type expiration_date: datetime - :param relative_begin_date: The relative begin date of license. - :type relative_begin_date: timedelta - :param relative_expiration_date: The relative expiration date of license. - :type relative_expiration_date: timedelta - :param grace_period: The grace period of license. - :type grace_period: timedelta - :param play_right: The license PlayRight - :type play_right: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyPlayRight - :param license_type: Required. The license type. Possible values include: - 'Unknown', 'NonPersistent', 'Persistent' - :type license_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicenseType - :param content_key_location: Required. The content key location. - :type content_key_location: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentKeyLocation - :param content_type: Required. The PlayReady content type. Possible values - include: 'Unknown', 'Unspecified', 'UltraVioletDownload', - 'UltraVioletStreaming' - :type content_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyContentType - """ - - _validation = { - 'allow_test_devices': {'required': True}, - 'license_type': {'required': True}, - 'content_key_location': {'required': True}, - 'content_type': {'required': True}, - } - - _attribute_map = { - 'allow_test_devices': {'key': 'allowTestDevices', 'type': 'bool'}, - 'begin_date': {'key': 'beginDate', 'type': 'iso-8601'}, - 'expiration_date': {'key': 'expirationDate', 'type': 'iso-8601'}, - 'relative_begin_date': {'key': 'relativeBeginDate', 'type': 'duration'}, - 'relative_expiration_date': {'key': 'relativeExpirationDate', 'type': 'duration'}, - 'grace_period': {'key': 'gracePeriod', 'type': 'duration'}, - 'play_right': {'key': 'playRight', 'type': 'ContentKeyPolicyPlayReadyPlayRight'}, - 'license_type': {'key': 'licenseType', 'type': 'str'}, - 'content_key_location': {'key': 'contentKeyLocation', 'type': 'ContentKeyPolicyPlayReadyContentKeyLocation'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - } - - def __init__(self, *, allow_test_devices: bool, license_type, content_key_location, content_type, begin_date=None, expiration_date=None, relative_begin_date=None, relative_expiration_date=None, grace_period=None, play_right=None, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyLicense, self).__init__(**kwargs) - self.allow_test_devices = allow_test_devices - self.begin_date = begin_date - self.expiration_date = expiration_date - self.relative_begin_date = relative_begin_date - self.relative_expiration_date = relative_expiration_date - self.grace_period = grace_period - self.play_right = play_right - self.license_type = license_type - self.content_key_location = content_key_location - self.content_type = content_type diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right.py deleted file mode 100644 index 8239813a7f50..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyPlayRight(Model): - """Configures the Play Right in the PlayReady license. - - All required parameters must be populated in order to send to Azure. - - :param first_play_expiration: The amount of time that the license is valid - after the license is first used to play content. - :type first_play_expiration: timedelta - :param scms_restriction: Configures the Serial Copy Management System - (SCMS) in the license. Must be between 0 and 3 inclusive. - :type scms_restriction: int - :param agc_and_color_stripe_restriction: Configures Automatic Gain Control - (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive. - :type agc_and_color_stripe_restriction: int - :param explicit_analog_television_output_restriction: Configures the - Explicit Analog Television Output Restriction in the license. - Configuration data must be between 0 and 3 inclusive. - :type explicit_analog_television_output_restriction: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction - :param digital_video_only_content_restriction: Required. Enables the Image - Constraint For Analog Component Video Restriction in the license. - :type digital_video_only_content_restriction: bool - :param image_constraint_for_analog_component_video_restriction: Required. - Enables the Image Constraint For Analog Component Video Restriction in the - license. - :type image_constraint_for_analog_component_video_restriction: bool - :param image_constraint_for_analog_computer_monitor_restriction: Required. - Enables the Image Constraint For Analog Component Video Restriction in the - license. - :type image_constraint_for_analog_computer_monitor_restriction: bool - :param allow_passing_video_content_to_unknown_output: Required. Configures - Unknown output handling settings of the license. Possible values include: - 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction' - :type allow_passing_video_content_to_unknown_output: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption - :param uncompressed_digital_video_opl: Specifies the output protection - level for uncompressed digital video. - :type uncompressed_digital_video_opl: int - :param compressed_digital_video_opl: Specifies the output protection level - for compressed digital video. - :type compressed_digital_video_opl: int - :param analog_video_opl: Specifies the output protection level for - compressed digital audio. - :type analog_video_opl: int - :param compressed_digital_audio_opl: Specifies the output protection level - for compressed digital audio. - :type compressed_digital_audio_opl: int - :param uncompressed_digital_audio_opl: Specifies the output protection - level for uncompressed digital audio. - :type uncompressed_digital_audio_opl: int - """ - - _validation = { - 'digital_video_only_content_restriction': {'required': True}, - 'image_constraint_for_analog_component_video_restriction': {'required': True}, - 'image_constraint_for_analog_computer_monitor_restriction': {'required': True}, - 'allow_passing_video_content_to_unknown_output': {'required': True}, - } - - _attribute_map = { - 'first_play_expiration': {'key': 'firstPlayExpiration', 'type': 'duration'}, - 'scms_restriction': {'key': 'scmsRestriction', 'type': 'int'}, - 'agc_and_color_stripe_restriction': {'key': 'agcAndColorStripeRestriction', 'type': 'int'}, - 'explicit_analog_television_output_restriction': {'key': 'explicitAnalogTelevisionOutputRestriction', 'type': 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction'}, - 'digital_video_only_content_restriction': {'key': 'digitalVideoOnlyContentRestriction', 'type': 'bool'}, - 'image_constraint_for_analog_component_video_restriction': {'key': 'imageConstraintForAnalogComponentVideoRestriction', 'type': 'bool'}, - 'image_constraint_for_analog_computer_monitor_restriction': {'key': 'imageConstraintForAnalogComputerMonitorRestriction', 'type': 'bool'}, - 'allow_passing_video_content_to_unknown_output': {'key': 'allowPassingVideoContentToUnknownOutput', 'type': 'str'}, - 'uncompressed_digital_video_opl': {'key': 'uncompressedDigitalVideoOpl', 'type': 'int'}, - 'compressed_digital_video_opl': {'key': 'compressedDigitalVideoOpl', 'type': 'int'}, - 'analog_video_opl': {'key': 'analogVideoOpl', 'type': 'int'}, - 'compressed_digital_audio_opl': {'key': 'compressedDigitalAudioOpl', 'type': 'int'}, - 'uncompressed_digital_audio_opl': {'key': 'uncompressedDigitalAudioOpl', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyPlayReadyPlayRight, self).__init__(**kwargs) - self.first_play_expiration = kwargs.get('first_play_expiration', None) - self.scms_restriction = kwargs.get('scms_restriction', None) - self.agc_and_color_stripe_restriction = kwargs.get('agc_and_color_stripe_restriction', None) - self.explicit_analog_television_output_restriction = kwargs.get('explicit_analog_television_output_restriction', None) - self.digital_video_only_content_restriction = kwargs.get('digital_video_only_content_restriction', None) - self.image_constraint_for_analog_component_video_restriction = kwargs.get('image_constraint_for_analog_component_video_restriction', None) - self.image_constraint_for_analog_computer_monitor_restriction = kwargs.get('image_constraint_for_analog_computer_monitor_restriction', None) - self.allow_passing_video_content_to_unknown_output = kwargs.get('allow_passing_video_content_to_unknown_output', None) - self.uncompressed_digital_video_opl = kwargs.get('uncompressed_digital_video_opl', None) - self.compressed_digital_video_opl = kwargs.get('compressed_digital_video_opl', None) - self.analog_video_opl = kwargs.get('analog_video_opl', None) - self.compressed_digital_audio_opl = kwargs.get('compressed_digital_audio_opl', None) - self.uncompressed_digital_audio_opl = kwargs.get('uncompressed_digital_audio_opl', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right_py3.py deleted file mode 100644 index cd359073ac67..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_play_ready_play_right_py3.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyPlayReadyPlayRight(Model): - """Configures the Play Right in the PlayReady license. - - All required parameters must be populated in order to send to Azure. - - :param first_play_expiration: The amount of time that the license is valid - after the license is first used to play content. - :type first_play_expiration: timedelta - :param scms_restriction: Configures the Serial Copy Management System - (SCMS) in the license. Must be between 0 and 3 inclusive. - :type scms_restriction: int - :param agc_and_color_stripe_restriction: Configures Automatic Gain Control - (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive. - :type agc_and_color_stripe_restriction: int - :param explicit_analog_television_output_restriction: Configures the - Explicit Analog Television Output Restriction in the license. - Configuration data must be between 0 and 3 inclusive. - :type explicit_analog_television_output_restriction: - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction - :param digital_video_only_content_restriction: Required. Enables the Image - Constraint For Analog Component Video Restriction in the license. - :type digital_video_only_content_restriction: bool - :param image_constraint_for_analog_component_video_restriction: Required. - Enables the Image Constraint For Analog Component Video Restriction in the - license. - :type image_constraint_for_analog_component_video_restriction: bool - :param image_constraint_for_analog_computer_monitor_restriction: Required. - Enables the Image Constraint For Analog Component Video Restriction in the - license. - :type image_constraint_for_analog_computer_monitor_restriction: bool - :param allow_passing_video_content_to_unknown_output: Required. Configures - Unknown output handling settings of the license. Possible values include: - 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction' - :type allow_passing_video_content_to_unknown_output: str or - ~azure.mgmt.media.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption - :param uncompressed_digital_video_opl: Specifies the output protection - level for uncompressed digital video. - :type uncompressed_digital_video_opl: int - :param compressed_digital_video_opl: Specifies the output protection level - for compressed digital video. - :type compressed_digital_video_opl: int - :param analog_video_opl: Specifies the output protection level for - compressed digital audio. - :type analog_video_opl: int - :param compressed_digital_audio_opl: Specifies the output protection level - for compressed digital audio. - :type compressed_digital_audio_opl: int - :param uncompressed_digital_audio_opl: Specifies the output protection - level for uncompressed digital audio. - :type uncompressed_digital_audio_opl: int - """ - - _validation = { - 'digital_video_only_content_restriction': {'required': True}, - 'image_constraint_for_analog_component_video_restriction': {'required': True}, - 'image_constraint_for_analog_computer_monitor_restriction': {'required': True}, - 'allow_passing_video_content_to_unknown_output': {'required': True}, - } - - _attribute_map = { - 'first_play_expiration': {'key': 'firstPlayExpiration', 'type': 'duration'}, - 'scms_restriction': {'key': 'scmsRestriction', 'type': 'int'}, - 'agc_and_color_stripe_restriction': {'key': 'agcAndColorStripeRestriction', 'type': 'int'}, - 'explicit_analog_television_output_restriction': {'key': 'explicitAnalogTelevisionOutputRestriction', 'type': 'ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction'}, - 'digital_video_only_content_restriction': {'key': 'digitalVideoOnlyContentRestriction', 'type': 'bool'}, - 'image_constraint_for_analog_component_video_restriction': {'key': 'imageConstraintForAnalogComponentVideoRestriction', 'type': 'bool'}, - 'image_constraint_for_analog_computer_monitor_restriction': {'key': 'imageConstraintForAnalogComputerMonitorRestriction', 'type': 'bool'}, - 'allow_passing_video_content_to_unknown_output': {'key': 'allowPassingVideoContentToUnknownOutput', 'type': 'str'}, - 'uncompressed_digital_video_opl': {'key': 'uncompressedDigitalVideoOpl', 'type': 'int'}, - 'compressed_digital_video_opl': {'key': 'compressedDigitalVideoOpl', 'type': 'int'}, - 'analog_video_opl': {'key': 'analogVideoOpl', 'type': 'int'}, - 'compressed_digital_audio_opl': {'key': 'compressedDigitalAudioOpl', 'type': 'int'}, - 'uncompressed_digital_audio_opl': {'key': 'uncompressedDigitalAudioOpl', 'type': 'int'}, - } - - def __init__(self, *, digital_video_only_content_restriction: bool, image_constraint_for_analog_component_video_restriction: bool, image_constraint_for_analog_computer_monitor_restriction: bool, allow_passing_video_content_to_unknown_output, first_play_expiration=None, scms_restriction: int=None, agc_and_color_stripe_restriction: int=None, explicit_analog_television_output_restriction=None, uncompressed_digital_video_opl: int=None, compressed_digital_video_opl: int=None, analog_video_opl: int=None, compressed_digital_audio_opl: int=None, uncompressed_digital_audio_opl: int=None, **kwargs) -> None: - super(ContentKeyPolicyPlayReadyPlayRight, self).__init__(**kwargs) - self.first_play_expiration = first_play_expiration - self.scms_restriction = scms_restriction - self.agc_and_color_stripe_restriction = agc_and_color_stripe_restriction - self.explicit_analog_television_output_restriction = explicit_analog_television_output_restriction - self.digital_video_only_content_restriction = digital_video_only_content_restriction - self.image_constraint_for_analog_component_video_restriction = image_constraint_for_analog_component_video_restriction - self.image_constraint_for_analog_computer_monitor_restriction = image_constraint_for_analog_computer_monitor_restriction - self.allow_passing_video_content_to_unknown_output = allow_passing_video_content_to_unknown_output - self.uncompressed_digital_video_opl = uncompressed_digital_video_opl - self.compressed_digital_video_opl = compressed_digital_video_opl - self.analog_video_opl = analog_video_opl - self.compressed_digital_audio_opl = compressed_digital_audio_opl - self.uncompressed_digital_audio_opl = uncompressed_digital_audio_opl diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties.py deleted file mode 100644 index 0010cbdd70a6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyProperties(Model): - """The properties of the Content Key Policy. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar policy_id: The legacy Policy ID. - :vartype policy_id: str - :ivar created: The creation date of the Policy - :vartype created: datetime - :ivar last_modified: The last modified date of the Policy - :vartype last_modified: datetime - :param description: A description for the Policy. - :type description: str - :param options: Required. The Key Policy options. - :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] - """ - - _validation = { - 'policy_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'options': {'required': True}, - } - - _attribute_map = { - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'created': {'key': 'created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'options': {'key': 'options', 'type': '[ContentKeyPolicyOption]'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyProperties, self).__init__(**kwargs) - self.policy_id = None - self.created = None - self.last_modified = None - self.description = kwargs.get('description', None) - self.options = kwargs.get('options', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties_py3.py deleted file mode 100644 index 94c5c153301b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_properties_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyProperties(Model): - """The properties of the Content Key Policy. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar policy_id: The legacy Policy ID. - :vartype policy_id: str - :ivar created: The creation date of the Policy - :vartype created: datetime - :ivar last_modified: The last modified date of the Policy - :vartype last_modified: datetime - :param description: A description for the Policy. - :type description: str - :param options: Required. The Key Policy options. - :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] - """ - - _validation = { - 'policy_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'options': {'required': True}, - } - - _attribute_map = { - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'created': {'key': 'created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'options': {'key': 'options', 'type': '[ContentKeyPolicyOption]'}, - } - - def __init__(self, *, options, description: str=None, **kwargs) -> None: - super(ContentKeyPolicyProperties, self).__init__(**kwargs) - self.policy_id = None - self.created = None - self.last_modified = None - self.description = description - self.options = options diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_py3.py deleted file mode 100644 index 8d96e1b8953f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# 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_py3 import ProxyResource - - -class ContentKeyPolicy(ProxyResource): - """A Content Key Policy resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar policy_id: The legacy Policy ID. - :vartype policy_id: str - :ivar created: The creation date of the Policy - :vartype created: datetime - :ivar last_modified: The last modified date of the Policy - :vartype last_modified: datetime - :param description: A description for the Policy. - :type description: str - :param options: Required. The Key Policy options. - :type options: list[~azure.mgmt.media.models.ContentKeyPolicyOption] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'policy_id': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'options': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'policy_id': {'key': 'properties.policyId', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'options': {'key': 'properties.options', 'type': '[ContentKeyPolicyOption]'}, - } - - def __init__(self, *, options, description: str=None, **kwargs) -> None: - super(ContentKeyPolicy, self).__init__(**kwargs) - self.policy_id = None - self.created = None - self.last_modified = None - self.description = description - self.options = options diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction.py deleted file mode 100644 index 62f0ece04491..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyRestriction(Model): - """Base class for Content Key Policy restrictions. A derived class must be - used to create a restriction. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyOpenRestriction, - ContentKeyPolicyUnknownRestriction, ContentKeyPolicyTokenRestriction - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyOpenRestriction': 'ContentKeyPolicyOpenRestriction', '#Microsoft.Media.ContentKeyPolicyUnknownRestriction': 'ContentKeyPolicyUnknownRestriction', '#Microsoft.Media.ContentKeyPolicyTokenRestriction': 'ContentKeyPolicyTokenRestriction'} - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyRestriction, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_py3.py deleted file mode 100644 index 2da5cfd57e43..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyRestriction(Model): - """Base class for Content Key Policy restrictions. A derived class must be - used to create a restriction. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicyOpenRestriction, - ContentKeyPolicyUnknownRestriction, ContentKeyPolicyTokenRestriction - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicyOpenRestriction': 'ContentKeyPolicyOpenRestriction', '#Microsoft.Media.ContentKeyPolicyUnknownRestriction': 'ContentKeyPolicyUnknownRestriction', '#Microsoft.Media.ContentKeyPolicyTokenRestriction': 'ContentKeyPolicyTokenRestriction'} - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyRestriction, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key.py deleted file mode 100644 index ad77803eb7a1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyRestrictionTokenKey(Model): - """Base class for Content Key Policy key for token validation. A derived class - must be used to create a token key. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicySymmetricTokenKey, - ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicySymmetricTokenKey': 'ContentKeyPolicySymmetricTokenKey', '#Microsoft.Media.ContentKeyPolicyRsaTokenKey': 'ContentKeyPolicyRsaTokenKey', '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey': 'ContentKeyPolicyX509CertificateTokenKey'} - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyRestrictionTokenKey, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key_py3.py deleted file mode 100644 index e07e43fe3abf..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_restriction_token_key_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyRestrictionTokenKey(Model): - """Base class for Content Key Policy key for token validation. A derived class - must be used to create a token key. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ContentKeyPolicySymmetricTokenKey, - ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ContentKeyPolicySymmetricTokenKey': 'ContentKeyPolicySymmetricTokenKey', '#Microsoft.Media.ContentKeyPolicyRsaTokenKey': 'ContentKeyPolicyRsaTokenKey', '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey': 'ContentKeyPolicyX509CertificateTokenKey'} - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyRestrictionTokenKey, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key.py deleted file mode 100644 index 1dbb5f458602..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .content_key_policy_restriction_token_key import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicyRsaTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a RSA key for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param exponent: Required. The RSA Parameter exponent - :type exponent: bytearray - :param modulus: Required. The RSA Parameter modulus - :type modulus: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'exponent': {'required': True}, - 'modulus': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'exponent': {'key': 'exponent', 'type': 'bytearray'}, - 'modulus': {'key': 'modulus', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyRsaTokenKey, self).__init__(**kwargs) - self.exponent = kwargs.get('exponent', None) - self.modulus = kwargs.get('modulus', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyRsaTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key_py3.py deleted file mode 100644 index beaae41e76ac..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_rsa_token_key_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 .content_key_policy_restriction_token_key_py3 import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicyRsaTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a RSA key for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param exponent: Required. The RSA Parameter exponent - :type exponent: bytearray - :param modulus: Required. The RSA Parameter modulus - :type modulus: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'exponent': {'required': True}, - 'modulus': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'exponent': {'key': 'exponent', 'type': 'bytearray'}, - 'modulus': {'key': 'modulus', 'type': 'bytearray'}, - } - - def __init__(self, *, exponent: bytearray, modulus: bytearray, **kwargs) -> None: - super(ContentKeyPolicyRsaTokenKey, self).__init__(**kwargs) - self.exponent = exponent - self.modulus = modulus - self.odatatype = '#Microsoft.Media.ContentKeyPolicyRsaTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key.py deleted file mode 100644 index 5ff050533399..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .content_key_policy_restriction_token_key import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicySymmetricTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a symmetric key for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_value: Required. The key value of the key - :type key_value: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'key_value': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_value': {'key': 'keyValue', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicySymmetricTokenKey, self).__init__(**kwargs) - self.key_value = kwargs.get('key_value', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicySymmetricTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key_py3.py deleted file mode 100644 index ab0fe70a3eb3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_symmetric_token_key_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .content_key_policy_restriction_token_key_py3 import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicySymmetricTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a symmetric key for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_value: Required. The key value of the key - :type key_value: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'key_value': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_value': {'key': 'keyValue', 'type': 'bytearray'}, - } - - def __init__(self, *, key_value: bytearray, **kwargs) -> None: - super(ContentKeyPolicySymmetricTokenKey, self).__init__(**kwargs) - self.key_value = key_value - self.odatatype = '#Microsoft.Media.ContentKeyPolicySymmetricTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim.py deleted file mode 100644 index 54ee25764f12..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyTokenClaim(Model): - """Represents a token claim. - - :param claim_type: Token claim type. - :type claim_type: str - :param claim_value: Token claim value. - :type claim_value: str - """ - - _attribute_map = { - 'claim_type': {'key': 'claimType', 'type': 'str'}, - 'claim_value': {'key': 'claimValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyTokenClaim, self).__init__(**kwargs) - self.claim_type = kwargs.get('claim_type', None) - self.claim_value = kwargs.get('claim_value', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim_py3.py deleted file mode 100644 index 15ca42300599..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_claim_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class ContentKeyPolicyTokenClaim(Model): - """Represents a token claim. - - :param claim_type: Token claim type. - :type claim_type: str - :param claim_value: Token claim value. - :type claim_value: str - """ - - _attribute_map = { - 'claim_type': {'key': 'claimType', 'type': 'str'}, - 'claim_value': {'key': 'claimValue', 'type': 'str'}, - } - - def __init__(self, *, claim_type: str=None, claim_value: str=None, **kwargs) -> None: - super(ContentKeyPolicyTokenClaim, self).__init__(**kwargs) - self.claim_type = claim_type - self.claim_value = claim_value diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction.py deleted file mode 100644 index d6d5a7d04678..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .content_key_policy_restriction import ContentKeyPolicyRestriction - - -class ContentKeyPolicyTokenRestriction(ContentKeyPolicyRestriction): - """Represents a token restriction. Provided token must match these - requirements for successful license or key delivery. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param issuer: Required. The token issuer. - :type issuer: str - :param audience: Required. The audience for the token. - :type audience: str - :param primary_verification_key: Required. The primary verification key. - :type primary_verification_key: - ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey - :param alternate_verification_keys: A list of alternative verification - keys. - :type alternate_verification_keys: - list[~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey] - :param required_claims: A list of required token claims. - :type required_claims: - list[~azure.mgmt.media.models.ContentKeyPolicyTokenClaim] - :param restriction_token_type: Required. The type of token. Possible - values include: 'Unknown', 'Swt', 'Jwt' - :type restriction_token_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenType - :param open_id_connect_discovery_document: The OpenID connect discovery - document. - :type open_id_connect_discovery_document: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'issuer': {'required': True}, - 'audience': {'required': True}, - 'primary_verification_key': {'required': True}, - 'restriction_token_type': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'primary_verification_key': {'key': 'primaryVerificationKey', 'type': 'ContentKeyPolicyRestrictionTokenKey'}, - 'alternate_verification_keys': {'key': 'alternateVerificationKeys', 'type': '[ContentKeyPolicyRestrictionTokenKey]'}, - 'required_claims': {'key': 'requiredClaims', 'type': '[ContentKeyPolicyTokenClaim]'}, - 'restriction_token_type': {'key': 'restrictionTokenType', 'type': 'str'}, - 'open_id_connect_discovery_document': {'key': 'openIdConnectDiscoveryDocument', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyTokenRestriction, self).__init__(**kwargs) - self.issuer = kwargs.get('issuer', None) - self.audience = kwargs.get('audience', None) - self.primary_verification_key = kwargs.get('primary_verification_key', None) - self.alternate_verification_keys = kwargs.get('alternate_verification_keys', None) - self.required_claims = kwargs.get('required_claims', None) - self.restriction_token_type = kwargs.get('restriction_token_type', None) - self.open_id_connect_discovery_document = kwargs.get('open_id_connect_discovery_document', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyTokenRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction_py3.py deleted file mode 100644 index de11ed6e5712..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_token_restriction_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .content_key_policy_restriction_py3 import ContentKeyPolicyRestriction - - -class ContentKeyPolicyTokenRestriction(ContentKeyPolicyRestriction): - """Represents a token restriction. Provided token must match these - requirements for successful license or key delivery. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param issuer: Required. The token issuer. - :type issuer: str - :param audience: Required. The audience for the token. - :type audience: str - :param primary_verification_key: Required. The primary verification key. - :type primary_verification_key: - ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey - :param alternate_verification_keys: A list of alternative verification - keys. - :type alternate_verification_keys: - list[~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenKey] - :param required_claims: A list of required token claims. - :type required_claims: - list[~azure.mgmt.media.models.ContentKeyPolicyTokenClaim] - :param restriction_token_type: Required. The type of token. Possible - values include: 'Unknown', 'Swt', 'Jwt' - :type restriction_token_type: str or - ~azure.mgmt.media.models.ContentKeyPolicyRestrictionTokenType - :param open_id_connect_discovery_document: The OpenID connect discovery - document. - :type open_id_connect_discovery_document: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'issuer': {'required': True}, - 'audience': {'required': True}, - 'primary_verification_key': {'required': True}, - 'restriction_token_type': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'issuer': {'key': 'issuer', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'primary_verification_key': {'key': 'primaryVerificationKey', 'type': 'ContentKeyPolicyRestrictionTokenKey'}, - 'alternate_verification_keys': {'key': 'alternateVerificationKeys', 'type': '[ContentKeyPolicyRestrictionTokenKey]'}, - 'required_claims': {'key': 'requiredClaims', 'type': '[ContentKeyPolicyTokenClaim]'}, - 'restriction_token_type': {'key': 'restrictionTokenType', 'type': 'str'}, - 'open_id_connect_discovery_document': {'key': 'openIdConnectDiscoveryDocument', 'type': 'str'}, - } - - def __init__(self, *, issuer: str, audience: str, primary_verification_key, restriction_token_type, alternate_verification_keys=None, required_claims=None, open_id_connect_discovery_document: str=None, **kwargs) -> None: - super(ContentKeyPolicyTokenRestriction, self).__init__(**kwargs) - self.issuer = issuer - self.audience = audience - self.primary_verification_key = primary_verification_key - self.alternate_verification_keys = alternate_verification_keys - self.required_claims = required_claims - self.restriction_token_type = restriction_token_type - self.open_id_connect_discovery_document = open_id_connect_discovery_document - self.odatatype = '#Microsoft.Media.ContentKeyPolicyTokenRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration.py deleted file mode 100644 index 80f233c0310b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_configuration import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyUnknownConfiguration(ContentKeyPolicyConfiguration): - """Represents a ContentKeyPolicyConfiguration that is unavailable in the - current API version. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyUnknownConfiguration, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration_py3.py deleted file mode 100644 index 7cd968b4e470..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_configuration_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyUnknownConfiguration(ContentKeyPolicyConfiguration): - """Represents a ContentKeyPolicyConfiguration that is unavailable in the - current API version. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyUnknownConfiguration, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction.py deleted file mode 100644 index 06d4cb146b0e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_restriction import ContentKeyPolicyRestriction - - -class ContentKeyPolicyUnknownRestriction(ContentKeyPolicyRestriction): - """Represents a ContentKeyPolicyRestriction that is unavailable in the current - API version. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyUnknownRestriction, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction_py3.py deleted file mode 100644 index 5e399a52ff61..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_unknown_restriction_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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 .content_key_policy_restriction_py3 import ContentKeyPolicyRestriction - - -class ContentKeyPolicyUnknownRestriction(ContentKeyPolicyRestriction): - """Represents a ContentKeyPolicyRestriction that is unavailable in the current - API version. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ContentKeyPolicyUnknownRestriction, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyUnknownRestriction' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration.py deleted file mode 100644 index a2eb19a6bd62..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .content_key_policy_configuration import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyWidevineConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for Widevine licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param widevine_template: Required. The Widevine template. - :type widevine_template: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'widevine_template': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'widevine_template': {'key': 'widevineTemplate', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyWidevineConfiguration, self).__init__(**kwargs) - self.widevine_template = kwargs.get('widevine_template', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration_py3.py deleted file mode 100644 index dfa5937c8553..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_widevine_configuration_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration - - -class ContentKeyPolicyWidevineConfiguration(ContentKeyPolicyConfiguration): - """Specifies a configuration for Widevine licenses. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param widevine_template: Required. The Widevine template. - :type widevine_template: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'widevine_template': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'widevine_template': {'key': 'widevineTemplate', 'type': 'str'}, - } - - def __init__(self, *, widevine_template: str, **kwargs) -> None: - super(ContentKeyPolicyWidevineConfiguration, self).__init__(**kwargs) - self.widevine_template = widevine_template - self.odatatype = '#Microsoft.Media.ContentKeyPolicyWidevineConfiguration' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key.py deleted file mode 100644 index 6f9e82fc388d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .content_key_policy_restriction_token_key import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicyX509CertificateTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a certificate for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param raw_body: Required. The raw data field of a certificate in PKCS 12 - format (X509Certificate2 in .NET) - :type raw_body: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'raw_body': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'raw_body': {'key': 'rawBody', 'type': 'bytearray'}, - } - - def __init__(self, **kwargs): - super(ContentKeyPolicyX509CertificateTokenKey, self).__init__(**kwargs) - self.raw_body = kwargs.get('raw_body', None) - self.odatatype = '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key_py3.py deleted file mode 100644 index 71fbe3a3aa20..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/content_key_policy_x509_certificate_token_key_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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 .content_key_policy_restriction_token_key_py3 import ContentKeyPolicyRestrictionTokenKey - - -class ContentKeyPolicyX509CertificateTokenKey(ContentKeyPolicyRestrictionTokenKey): - """Specifies a certificate for token validation. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param raw_body: Required. The raw data field of a certificate in PKCS 12 - format (X509Certificate2 in .NET) - :type raw_body: bytearray - """ - - _validation = { - 'odatatype': {'required': True}, - 'raw_body': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'raw_body': {'key': 'rawBody', 'type': 'bytearray'}, - } - - def __init__(self, *, raw_body: bytearray, **kwargs) -> None: - super(ContentKeyPolicyX509CertificateTokenKey, self).__init__(**kwargs) - self.raw_body = raw_body - self.odatatype = '#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio.py deleted file mode 100644 index d62218069c9a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 .codec import Codec - - -class CopyAudio(Codec): - """A codec flag, which tells the encoder to copy the input audio bitstream. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CopyAudio, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.CopyAudio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio_py3.py deleted file mode 100644 index 3317729d5bed..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_audio_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 .codec_py3 import Codec - - -class CopyAudio(Codec): - """A codec flag, which tells the encoder to copy the input audio bitstream. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, label: str=None, **kwargs) -> None: - super(CopyAudio, self).__init__(label=label, **kwargs) - self.odatatype = '#Microsoft.Media.CopyAudio' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video.py deleted file mode 100644 index 93240ad80385..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .codec import Codec - - -class CopyVideo(Codec): - """A codec flag, which tells the encoder to copy the input video bitstream - without re-encoding. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CopyVideo, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.CopyVideo' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video_py3.py deleted file mode 100644 index 359adcea40fb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/copy_video_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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 .codec_py3 import Codec - - -class CopyVideo(Codec): - """A codec flag, which tells the encoder to copy the input video bitstream - without re-encoding. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, label: str=None, **kwargs) -> None: - super(CopyVideo, self).__init__(label=label, **kwargs) - self.odatatype = '#Microsoft.Media.CopyVideo' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies.py deleted file mode 100644 index 0056b0b09fc5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CrossSiteAccessPolicies(Model): - """The client access policy. - - :param client_access_policy: The content of clientaccesspolicy.xml used by - Silverlight. - :type client_access_policy: str - :param cross_domain_policy: The content of crossdomain.xml used by - Silverlight. - :type cross_domain_policy: str - """ - - _attribute_map = { - 'client_access_policy': {'key': 'clientAccessPolicy', 'type': 'str'}, - 'cross_domain_policy': {'key': 'crossDomainPolicy', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CrossSiteAccessPolicies, self).__init__(**kwargs) - self.client_access_policy = kwargs.get('client_access_policy', None) - self.cross_domain_policy = kwargs.get('cross_domain_policy', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies_py3.py deleted file mode 100644 index d4908fbca74e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/cross_site_access_policies_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CrossSiteAccessPolicies(Model): - """The client access policy. - - :param client_access_policy: The content of clientaccesspolicy.xml used by - Silverlight. - :type client_access_policy: str - :param cross_domain_policy: The content of crossdomain.xml used by - Silverlight. - :type cross_domain_policy: str - """ - - _attribute_map = { - 'client_access_policy': {'key': 'clientAccessPolicy', 'type': 'str'}, - 'cross_domain_policy': {'key': 'crossDomainPolicy', 'type': 'str'}, - } - - def __init__(self, *, client_access_policy: str=None, cross_domain_policy: str=None, **kwargs) -> None: - super(CrossSiteAccessPolicies, self).__init__(**kwargs) - self.client_access_policy = client_access_policy - self.cross_domain_policy = cross_domain_policy diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key.py deleted file mode 100644 index 4e44c96fdee6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class DefaultKey(Model): - """Class to specify properties of default content key for each encryption - scheme. - - :param label: Label can be used to specify Content Key when creating a - Streaming Locator - :type label: str - :param policy_name: Policy used by Default Key - :type policy_name: str - """ - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DefaultKey, self).__init__(**kwargs) - self.label = kwargs.get('label', None) - self.policy_name = kwargs.get('policy_name', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key_py3.py deleted file mode 100644 index 9dd748a97a9b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/default_key_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class DefaultKey(Model): - """Class to specify properties of default content key for each encryption - scheme. - - :param label: Label can be used to specify Content Key when creating a - Streaming Locator - :type label: str - :param policy_name: Policy used by Default Key - :type policy_name: str - """ - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - } - - def __init__(self, *, label: str=None, policy_name: str=None, **kwargs) -> None: - super(DefaultKey, self).__init__(**kwargs) - self.label = label - self.policy_name = policy_name diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace.py deleted file mode 100644 index d5ac42d7a4d0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Deinterlace(Model): - """Describes the de-interlacing settings. - - :param parity: The field parity for de-interlacing, defaults to Auto. - Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst' - :type parity: str or ~azure.mgmt.media.models.DeinterlaceParity - :param mode: The deinterlacing mode. Defaults to AutoPixelAdaptive. - Possible values include: 'Off', 'AutoPixelAdaptive' - :type mode: str or ~azure.mgmt.media.models.DeinterlaceMode - """ - - _attribute_map = { - 'parity': {'key': 'parity', 'type': 'str'}, - 'mode': {'key': 'mode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Deinterlace, self).__init__(**kwargs) - self.parity = kwargs.get('parity', None) - self.mode = kwargs.get('mode', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace_py3.py deleted file mode 100644 index beb639e213de..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/deinterlace_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Deinterlace(Model): - """Describes the de-interlacing settings. - - :param parity: The field parity for de-interlacing, defaults to Auto. - Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst' - :type parity: str or ~azure.mgmt.media.models.DeinterlaceParity - :param mode: The deinterlacing mode. Defaults to AutoPixelAdaptive. - Possible values include: 'Off', 'AutoPixelAdaptive' - :type mode: str or ~azure.mgmt.media.models.DeinterlaceMode - """ - - _attribute_map = { - 'parity': {'key': 'parity', 'type': 'str'}, - 'mode': {'key': 'mode', 'type': 'str'}, - } - - def __init__(self, *, parity=None, mode=None, **kwargs) -> None: - super(Deinterlace, self).__init__(**kwargs) - self.parity = parity - self.mode = mode diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols.py deleted file mode 100644 index c19ef9e6c19b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class EnabledProtocols(Model): - """Class to specify which protocols are enabled. - - All required parameters must be populated in order to send to Azure. - - :param download: Required. Enable Download protocol or not - :type download: bool - :param dash: Required. Enable DASH protocol or not - :type dash: bool - :param hls: Required. Enable HLS protocol or not - :type hls: bool - :param smooth_streaming: Required. Enable SmoothStreaming protocol or not - :type smooth_streaming: bool - """ - - _validation = { - 'download': {'required': True}, - 'dash': {'required': True}, - 'hls': {'required': True}, - 'smooth_streaming': {'required': True}, - } - - _attribute_map = { - 'download': {'key': 'download', 'type': 'bool'}, - 'dash': {'key': 'dash', 'type': 'bool'}, - 'hls': {'key': 'hls', 'type': 'bool'}, - 'smooth_streaming': {'key': 'smoothStreaming', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(EnabledProtocols, self).__init__(**kwargs) - self.download = kwargs.get('download', None) - self.dash = kwargs.get('dash', None) - self.hls = kwargs.get('hls', None) - self.smooth_streaming = kwargs.get('smooth_streaming', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols_py3.py deleted file mode 100644 index 7dd6c08c651b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/enabled_protocols_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class EnabledProtocols(Model): - """Class to specify which protocols are enabled. - - All required parameters must be populated in order to send to Azure. - - :param download: Required. Enable Download protocol or not - :type download: bool - :param dash: Required. Enable DASH protocol or not - :type dash: bool - :param hls: Required. Enable HLS protocol or not - :type hls: bool - :param smooth_streaming: Required. Enable SmoothStreaming protocol or not - :type smooth_streaming: bool - """ - - _validation = { - 'download': {'required': True}, - 'dash': {'required': True}, - 'hls': {'required': True}, - 'smooth_streaming': {'required': True}, - } - - _attribute_map = { - 'download': {'key': 'download', 'type': 'bool'}, - 'dash': {'key': 'dash', 'type': 'bool'}, - 'hls': {'key': 'hls', 'type': 'bool'}, - 'smooth_streaming': {'key': 'smoothStreaming', 'type': 'bool'}, - } - - def __init__(self, *, download: bool, dash: bool, hls: bool, smooth_streaming: bool, **kwargs) -> None: - super(EnabledProtocols, self).__init__(**kwargs) - self.download = download - self.dash = dash - self.hls = hls - self.smooth_streaming = smooth_streaming diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output.py deleted file mode 100644 index b243094c5f3b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class EntityNameAvailabilityCheckOutput(Model): - """The response from the check name availability request. - - All required parameters must be populated in order to send to Azure. - - :param name_available: Required. Specifies if the name is available. - :type name_available: bool - :param reason: Specifies the reason if the name is not available. - :type reason: str - :param message: Specifies the detailed reason if the name is not - available. - :type message: str - """ - - _validation = { - 'name_available': {'required': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EntityNameAvailabilityCheckOutput, self).__init__(**kwargs) - self.name_available = kwargs.get('name_available', None) - self.reason = kwargs.get('reason', None) - self.message = kwargs.get('message', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output_py3.py deleted file mode 100644 index 1fa0eeec979c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/entity_name_availability_check_output_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class EntityNameAvailabilityCheckOutput(Model): - """The response from the check name availability request. - - All required parameters must be populated in order to send to Azure. - - :param name_available: Required. Specifies if the name is available. - :type name_available: bool - :param reason: Specifies the reason if the name is not available. - :type reason: str - :param message: Specifies the detailed reason if the name is not - available. - :type message: str - """ - - _validation = { - 'name_available': {'required': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, name_available: bool, reason: str=None, message: str=None, **kwargs) -> None: - super(EntityNameAvailabilityCheckOutput, self).__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption.py deleted file mode 100644 index be1db0b91753..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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.serialization import Model - - -class EnvelopeEncryption(Model): - """Class for EnvelopeEncryption encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param custom_key_acquisition_url_template: Template for the URL of the - custom service delivering keys to end user players. Not required when - using Azure Media Services for issuing keys. The template supports - replaceable tokens that the service will update at runtime with the value - specific to the request. The currently supported token values are - {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_key_acquisition_url_template: str - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'custom_key_acquisition_url_template': {'key': 'customKeyAcquisitionUrlTemplate', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(EnvelopeEncryption, self).__init__(**kwargs) - self.enabled_protocols = kwargs.get('enabled_protocols', None) - self.clear_tracks = kwargs.get('clear_tracks', None) - self.content_keys = kwargs.get('content_keys', None) - self.custom_key_acquisition_url_template = kwargs.get('custom_key_acquisition_url_template', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption_py3.py deleted file mode 100644 index 250c50f00915..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/envelope_encryption_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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.serialization import Model - - -class EnvelopeEncryption(Model): - """Class for EnvelopeEncryption encryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - :param clear_tracks: Representing which tracks should not be encrypted - :type clear_tracks: list[~azure.mgmt.media.models.TrackSelection] - :param content_keys: Representing default content key for each encryption - scheme and separate content keys for specific tracks - :type content_keys: ~azure.mgmt.media.models.StreamingPolicyContentKeys - :param custom_key_acquisition_url_template: Template for the URL of the - custom service delivering keys to end user players. Not required when - using Azure Media Services for issuing keys. The template supports - replaceable tokens that the service will update at runtime with the value - specific to the request. The currently supported token values are - {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_key_acquisition_url_template: str - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - 'clear_tracks': {'key': 'clearTracks', 'type': '[TrackSelection]'}, - 'content_keys': {'key': 'contentKeys', 'type': 'StreamingPolicyContentKeys'}, - 'custom_key_acquisition_url_template': {'key': 'customKeyAcquisitionUrlTemplate', 'type': 'str'}, - } - - def __init__(self, *, enabled_protocols=None, clear_tracks=None, content_keys=None, custom_key_acquisition_url_template: str=None, **kwargs) -> None: - super(EnvelopeEncryption, self).__init__(**kwargs) - self.enabled_protocols = enabled_protocols - self.clear_tracks = clear_tracks - self.content_keys = content_keys - self.custom_key_acquisition_url_template = custom_key_acquisition_url_template diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset.py deleted file mode 100644 index b834740de5a2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .preset import Preset - - -class FaceDetectorPreset(Preset): - """Describes all the settings to be used when analyzing a video in order to - detect all the faces present. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param resolution: Specifies the maximum resolution at which your video is - analyzed. The default behavior is "SourceResolution," which will keep the - input video at its original resolution when analyzed. Using - "StandardDefinition" will resize input videos to standard definition while - preserving the appropriate aspect ratio. It will only resize if the video - is of higher resolution. For example, a 1920x1080 input would be scaled to - 640x360 before processing. Switching to "StandardDefinition" will reduce - the time it takes to process high resolution video. It may also reduce the - cost of using this component (see - https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics - for details). However, faces that end up being too small in the resized - video may not be detected. Possible values include: 'SourceResolution', - 'StandardDefinition' - :type resolution: str or ~azure.mgmt.media.models.AnalysisResolution - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'resolution': {'key': 'resolution', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FaceDetectorPreset, self).__init__(**kwargs) - self.resolution = kwargs.get('resolution', None) - self.odatatype = '#Microsoft.Media.FaceDetectorPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset_py3.py deleted file mode 100644 index 58f33a47dbac..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/face_detector_preset_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .preset_py3 import Preset - - -class FaceDetectorPreset(Preset): - """Describes all the settings to be used when analyzing a video in order to - detect all the faces present. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param resolution: Specifies the maximum resolution at which your video is - analyzed. The default behavior is "SourceResolution," which will keep the - input video at its original resolution when analyzed. Using - "StandardDefinition" will resize input videos to standard definition while - preserving the appropriate aspect ratio. It will only resize if the video - is of higher resolution. For example, a 1920x1080 input would be scaled to - 640x360 before processing. Switching to "StandardDefinition" will reduce - the time it takes to process high resolution video. It may also reduce the - cost of using this component (see - https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics - for details). However, faces that end up being too small in the resized - video may not be detected. Possible values include: 'SourceResolution', - 'StandardDefinition' - :type resolution: str or ~azure.mgmt.media.models.AnalysisResolution - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'resolution': {'key': 'resolution', 'type': 'str'}, - } - - def __init__(self, *, resolution=None, **kwargs) -> None: - super(FaceDetectorPreset, self).__init__(**kwargs) - self.resolution = resolution - self.odatatype = '#Microsoft.Media.FaceDetectorPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition.py deleted file mode 100644 index 4fb9b2ae53bc..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class FilterTrackPropertyCondition(Model): - """The class to specify one track property condition. - - All required parameters must be populated in order to send to Azure. - - :param property: Required. The track property type. Possible values - include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate' - :type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType - :param value: Required. The track proprty value. - :type value: str - :param operation: Required. The track property condition operation. - Possible values include: 'Equal', 'NotEqual' - :type operation: str or - ~azure.mgmt.media.models.FilterTrackPropertyCompareOperation - """ - - _validation = { - 'property': {'required': True}, - 'value': {'required': True}, - 'operation': {'required': True}, - } - - _attribute_map = { - 'property': {'key': 'property', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FilterTrackPropertyCondition, self).__init__(**kwargs) - self.property = kwargs.get('property', None) - self.value = kwargs.get('value', None) - self.operation = kwargs.get('operation', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition_py3.py deleted file mode 100644 index e3ff59ff555e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_property_condition_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class FilterTrackPropertyCondition(Model): - """The class to specify one track property condition. - - All required parameters must be populated in order to send to Azure. - - :param property: Required. The track property type. Possible values - include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate' - :type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType - :param value: Required. The track proprty value. - :type value: str - :param operation: Required. The track property condition operation. - Possible values include: 'Equal', 'NotEqual' - :type operation: str or - ~azure.mgmt.media.models.FilterTrackPropertyCompareOperation - """ - - _validation = { - 'property': {'required': True}, - 'value': {'required': True}, - 'operation': {'required': True}, - } - - _attribute_map = { - 'property': {'key': 'property', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, *, property, value: str, operation, **kwargs) -> None: - super(FilterTrackPropertyCondition, self).__init__(**kwargs) - self.property = property - self.value = value - self.operation = operation diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection.py deleted file mode 100644 index 04ad9d71c383..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class FilterTrackSelection(Model): - """Representing a list of FilterTrackPropertyConditions to select a track. - The filters are combined using a logical AND operation. - - All required parameters must be populated in order to send to Azure. - - :param track_selections: Required. The track selections. - :type track_selections: - list[~azure.mgmt.media.models.FilterTrackPropertyCondition] - """ - - _validation = { - 'track_selections': {'required': True}, - } - - _attribute_map = { - 'track_selections': {'key': 'trackSelections', 'type': '[FilterTrackPropertyCondition]'}, - } - - def __init__(self, **kwargs): - super(FilterTrackSelection, self).__init__(**kwargs) - self.track_selections = kwargs.get('track_selections', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection_py3.py deleted file mode 100644 index e3dd68283ba3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filter_track_selection_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class FilterTrackSelection(Model): - """Representing a list of FilterTrackPropertyConditions to select a track. - The filters are combined using a logical AND operation. - - All required parameters must be populated in order to send to Azure. - - :param track_selections: Required. The track selections. - :type track_selections: - list[~azure.mgmt.media.models.FilterTrackPropertyCondition] - """ - - _validation = { - 'track_selections': {'required': True}, - } - - _attribute_map = { - 'track_selections': {'key': 'trackSelections', 'type': '[FilterTrackPropertyCondition]'}, - } - - def __init__(self, *, track_selections, **kwargs) -> None: - super(FilterTrackSelection, self).__init__(**kwargs) - self.track_selections = track_selections diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters.py deleted file mode 100644 index f0868e86445a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Filters(Model): - """Describes all the filtering operations, such as de-interlacing, rotation - etc. that are to be applied to the input media before encoding. - - :param deinterlace: The de-interlacing settings. - :type deinterlace: ~azure.mgmt.media.models.Deinterlace - :param rotation: The rotation, if any, to be applied to the input video, - before it is encoded. Default is Auto. Possible values include: 'Auto', - 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270' - :type rotation: str or ~azure.mgmt.media.models.Rotation - :param crop: The parameters for the rectangular window with which to crop - the input video. - :type crop: ~azure.mgmt.media.models.Rectangle - :param overlays: The properties of overlays to be applied to the input - video. These could be audio, image or video overlays. - :type overlays: list[~azure.mgmt.media.models.Overlay] - """ - - _attribute_map = { - 'deinterlace': {'key': 'deinterlace', 'type': 'Deinterlace'}, - 'rotation': {'key': 'rotation', 'type': 'str'}, - 'crop': {'key': 'crop', 'type': 'Rectangle'}, - 'overlays': {'key': 'overlays', 'type': '[Overlay]'}, - } - - def __init__(self, **kwargs): - super(Filters, self).__init__(**kwargs) - self.deinterlace = kwargs.get('deinterlace', None) - self.rotation = kwargs.get('rotation', None) - self.crop = kwargs.get('crop', None) - self.overlays = kwargs.get('overlays', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters_py3.py deleted file mode 100644 index 9c848bf549aa..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/filters_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Filters(Model): - """Describes all the filtering operations, such as de-interlacing, rotation - etc. that are to be applied to the input media before encoding. - - :param deinterlace: The de-interlacing settings. - :type deinterlace: ~azure.mgmt.media.models.Deinterlace - :param rotation: The rotation, if any, to be applied to the input video, - before it is encoded. Default is Auto. Possible values include: 'Auto', - 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270' - :type rotation: str or ~azure.mgmt.media.models.Rotation - :param crop: The parameters for the rectangular window with which to crop - the input video. - :type crop: ~azure.mgmt.media.models.Rectangle - :param overlays: The properties of overlays to be applied to the input - video. These could be audio, image or video overlays. - :type overlays: list[~azure.mgmt.media.models.Overlay] - """ - - _attribute_map = { - 'deinterlace': {'key': 'deinterlace', 'type': 'Deinterlace'}, - 'rotation': {'key': 'rotation', 'type': 'str'}, - 'crop': {'key': 'crop', 'type': 'Rectangle'}, - 'overlays': {'key': 'overlays', 'type': '[Overlay]'}, - } - - def __init__(self, *, deinterlace=None, rotation=None, crop=None, overlays=None, **kwargs) -> None: - super(Filters, self).__init__(**kwargs) - self.deinterlace = deinterlace - self.rotation = rotation - self.crop = crop - self.overlays = overlays diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality.py deleted file mode 100644 index bb814dad000c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class FirstQuality(Model): - """Filter First Quality. - - All required parameters must be populated in order to send to Azure. - - :param bitrate: Required. The first quality bitrate. - :type bitrate: int - """ - - _validation = { - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(FirstQuality, self).__init__(**kwargs) - self.bitrate = kwargs.get('bitrate', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality_py3.py deleted file mode 100644 index 1b68b1b79a52..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/first_quality_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class FirstQuality(Model): - """Filter First Quality. - - All required parameters must be populated in order to send to Azure. - - :param bitrate: Required. The first quality bitrate. - :type bitrate: int - """ - - _validation = { - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - } - - def __init__(self, *, bitrate: int, **kwargs) -> None: - super(FirstQuality, self).__init__(**kwargs) - self.bitrate = bitrate diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format.py deleted file mode 100644 index 334c7dd3103f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class Format(Model): - """Base class for output. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ImageFormat, MultiBitrateFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ImageFormat': 'ImageFormat', '#Microsoft.Media.MultiBitrateFormat': 'MultiBitrateFormat'} - } - - def __init__(self, **kwargs): - super(Format, self).__init__(**kwargs) - self.filename_pattern = kwargs.get('filename_pattern', None) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format_py3.py deleted file mode 100644 index 62b347df9b8c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/format_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class Format(Model): - """Base class for output. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ImageFormat, MultiBitrateFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.ImageFormat': 'ImageFormat', '#Microsoft.Media.MultiBitrateFormat': 'MultiBitrateFormat'} - } - - def __init__(self, *, filename_pattern: str, **kwargs) -> None: - super(Format, self).__init__(**kwargs) - self.filename_pattern = filename_pattern - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer.py deleted file mode 100644 index 403850269934..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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 .video_layer import VideoLayer - - -class H264Layer(VideoLayer): - """Describes the settings to be used when encoding the input video into a - desired output bitrate layer with the H.264 video codec. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param bitrate: Required. The average bitrate in bits per second at which - to encode the input video when generating this layer. This is a required - field. - :type bitrate: int - :param max_bitrate: The maximum bitrate (in bits per second), at which the - VBV buffer should be assumed to refill. If not specified, defaults to the - same value as bitrate. - :type max_bitrate: int - :param b_frames: The number of B-frames to be used when encoding this - layer. If not specified, the encoder chooses an appropriate number based - on the video profile and level. - :type b_frames: int - :param frame_rate: The frame rate (in frames per second) at which to - encode this layer. The value can be in the form of M/N where M and N are - integers (For example, 30000/1001), or in the form of a number (For - example, 30, or 29.97). The encoder enforces constraints on allowed frame - rates based on the profile and level. If it is not specified, the encoder - will use the same frame rate as the input video. - :type frame_rate: str - :param slices: The number of slices to be used when encoding this layer. - If not specified, default is zero, which means that encoder will use a - single slice for each frame. - :type slices: int - :param adaptive_bframe: Whether or not adaptive B-frames are to be used - when encoding this layer. If not specified, the encoder will turn it on - whenever the video profile permits its use. - :type adaptive_bframe: bool - :param profile: We currently support Baseline, Main, High, High422, - High444. Default is Auto. Possible values include: 'Auto', 'Baseline', - 'Main', 'High', 'High422', 'High444' - :type profile: str or ~azure.mgmt.media.models.H264VideoProfile - :param level: We currently support Level up to 6.2. The value can be Auto, - or a number that matches the H.264 profile. If not specified, the default - is Auto, which lets the encoder choose the Level that is appropriate for - this layer. - :type level: str - :param buffer_window: The VBV buffer window length. The value should be in - ISO 8601 format. The value should be in the range [0.1-100] seconds. The - default is 5 seconds (for example, PT5S). - :type buffer_window: timedelta - :param reference_frames: The number of reference frames to be used when - encoding this layer. If not specified, the encoder determines an - appropriate number based on the encoder complexity setting. - :type reference_frames: int - :param entropy_mode: The entropy mode to be used for this layer. If not - specified, the encoder chooses the mode that is appropriate for the - profile and level. Possible values include: 'Cabac', 'Cavlc' - :type entropy_mode: str or ~azure.mgmt.media.models.EntropyMode - """ - - _validation = { - 'odatatype': {'required': True}, - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, - 'b_frames': {'key': 'bFrames', 'type': 'int'}, - 'frame_rate': {'key': 'frameRate', 'type': 'str'}, - 'slices': {'key': 'slices', 'type': 'int'}, - 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, - 'profile': {'key': 'profile', 'type': 'str'}, - 'level': {'key': 'level', 'type': 'str'}, - 'buffer_window': {'key': 'bufferWindow', 'type': 'duration'}, - 'reference_frames': {'key': 'referenceFrames', 'type': 'int'}, - 'entropy_mode': {'key': 'entropyMode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(H264Layer, self).__init__(**kwargs) - self.profile = kwargs.get('profile', None) - self.level = kwargs.get('level', None) - self.buffer_window = kwargs.get('buffer_window', None) - self.reference_frames = kwargs.get('reference_frames', None) - self.entropy_mode = kwargs.get('entropy_mode', None) - self.odatatype = '#Microsoft.Media.H264Layer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer_py3.py deleted file mode 100644 index eda6746aeb2b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_layer_py3.py +++ /dev/null @@ -1,115 +0,0 @@ -# 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 .video_layer_py3 import VideoLayer - - -class H264Layer(VideoLayer): - """Describes the settings to be used when encoding the input video into a - desired output bitrate layer with the H.264 video codec. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param bitrate: Required. The average bitrate in bits per second at which - to encode the input video when generating this layer. This is a required - field. - :type bitrate: int - :param max_bitrate: The maximum bitrate (in bits per second), at which the - VBV buffer should be assumed to refill. If not specified, defaults to the - same value as bitrate. - :type max_bitrate: int - :param b_frames: The number of B-frames to be used when encoding this - layer. If not specified, the encoder chooses an appropriate number based - on the video profile and level. - :type b_frames: int - :param frame_rate: The frame rate (in frames per second) at which to - encode this layer. The value can be in the form of M/N where M and N are - integers (For example, 30000/1001), or in the form of a number (For - example, 30, or 29.97). The encoder enforces constraints on allowed frame - rates based on the profile and level. If it is not specified, the encoder - will use the same frame rate as the input video. - :type frame_rate: str - :param slices: The number of slices to be used when encoding this layer. - If not specified, default is zero, which means that encoder will use a - single slice for each frame. - :type slices: int - :param adaptive_bframe: Whether or not adaptive B-frames are to be used - when encoding this layer. If not specified, the encoder will turn it on - whenever the video profile permits its use. - :type adaptive_bframe: bool - :param profile: We currently support Baseline, Main, High, High422, - High444. Default is Auto. Possible values include: 'Auto', 'Baseline', - 'Main', 'High', 'High422', 'High444' - :type profile: str or ~azure.mgmt.media.models.H264VideoProfile - :param level: We currently support Level up to 6.2. The value can be Auto, - or a number that matches the H.264 profile. If not specified, the default - is Auto, which lets the encoder choose the Level that is appropriate for - this layer. - :type level: str - :param buffer_window: The VBV buffer window length. The value should be in - ISO 8601 format. The value should be in the range [0.1-100] seconds. The - default is 5 seconds (for example, PT5S). - :type buffer_window: timedelta - :param reference_frames: The number of reference frames to be used when - encoding this layer. If not specified, the encoder determines an - appropriate number based on the encoder complexity setting. - :type reference_frames: int - :param entropy_mode: The entropy mode to be used for this layer. If not - specified, the encoder chooses the mode that is appropriate for the - profile and level. Possible values include: 'Cabac', 'Cavlc' - :type entropy_mode: str or ~azure.mgmt.media.models.EntropyMode - """ - - _validation = { - 'odatatype': {'required': True}, - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, - 'b_frames': {'key': 'bFrames', 'type': 'int'}, - 'frame_rate': {'key': 'frameRate', 'type': 'str'}, - 'slices': {'key': 'slices', 'type': 'int'}, - 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, - 'profile': {'key': 'profile', 'type': 'str'}, - 'level': {'key': 'level', 'type': 'str'}, - 'buffer_window': {'key': 'bufferWindow', 'type': 'duration'}, - 'reference_frames': {'key': 'referenceFrames', 'type': 'int'}, - 'entropy_mode': {'key': 'entropyMode', 'type': 'str'}, - } - - def __init__(self, *, bitrate: int, width: str=None, height: str=None, label: str=None, max_bitrate: int=None, b_frames: int=None, frame_rate: str=None, slices: int=None, adaptive_bframe: bool=None, profile=None, level: str=None, buffer_window=None, reference_frames: int=None, entropy_mode=None, **kwargs) -> None: - super(H264Layer, self).__init__(width=width, height=height, label=label, bitrate=bitrate, max_bitrate=max_bitrate, b_frames=b_frames, frame_rate=frame_rate, slices=slices, adaptive_bframe=adaptive_bframe, **kwargs) - self.profile = profile - self.level = level - self.buffer_window = buffer_window - self.reference_frames = reference_frames - self.entropy_mode = entropy_mode - self.odatatype = '#Microsoft.Media.H264Layer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video.py deleted file mode 100644 index 49b5eed891df..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 .video import Video - - -class H264Video(Video): - """Describes all the properties for encoding a video with the H.264 codec. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param scene_change_detection: Whether or not the encoder should insert - key frames at scene changes. If not specified, the default is false. This - flag should be set to true only when the encoder is being configured to - produce a single output video. - :type scene_change_detection: bool - :param complexity: Tells the encoder how to choose its encoding settings. - The default value is Balanced. Possible values include: 'Speed', - 'Balanced', 'Quality' - :type complexity: str or ~azure.mgmt.media.models.H264Complexity - :param layers: The collection of output H.264 layers to be produced by the - encoder. - :type layers: list[~azure.mgmt.media.models.H264Layer] - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'scene_change_detection': {'key': 'sceneChangeDetection', 'type': 'bool'}, - 'complexity': {'key': 'complexity', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[H264Layer]'}, - } - - def __init__(self, **kwargs): - super(H264Video, self).__init__(**kwargs) - self.scene_change_detection = kwargs.get('scene_change_detection', None) - self.complexity = kwargs.get('complexity', None) - self.layers = kwargs.get('layers', None) - self.odatatype = '#Microsoft.Media.H264Video' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video_py3.py deleted file mode 100644 index 85eeb18f748a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/h264_video_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# 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 .video_py3 import Video - - -class H264Video(Video): - """Describes all the properties for encoding a video with the H.264 codec. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param scene_change_detection: Whether or not the encoder should insert - key frames at scene changes. If not specified, the default is false. This - flag should be set to true only when the encoder is being configured to - produce a single output video. - :type scene_change_detection: bool - :param complexity: Tells the encoder how to choose its encoding settings. - The default value is Balanced. Possible values include: 'Speed', - 'Balanced', 'Quality' - :type complexity: str or ~azure.mgmt.media.models.H264Complexity - :param layers: The collection of output H.264 layers to be produced by the - encoder. - :type layers: list[~azure.mgmt.media.models.H264Layer] - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'scene_change_detection': {'key': 'sceneChangeDetection', 'type': 'bool'}, - 'complexity': {'key': 'complexity', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[H264Layer]'}, - } - - def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, scene_change_detection: bool=None, complexity=None, layers=None, **kwargs) -> None: - super(H264Video, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, **kwargs) - self.scene_change_detection = scene_change_detection - self.complexity = complexity - self.layers = layers - self.odatatype = '#Microsoft.Media.H264Video' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls.py deleted file mode 100644 index d4216998c757..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class Hls(Model): - """The HLS configuration. - - :param fragments_per_ts_segment: The amount of fragments per HTTP Live - Streaming (HLS) segment. - :type fragments_per_ts_segment: int - """ - - _attribute_map = { - 'fragments_per_ts_segment': {'key': 'fragmentsPerTsSegment', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Hls, self).__init__(**kwargs) - self.fragments_per_ts_segment = kwargs.get('fragments_per_ts_segment', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls_py3.py deleted file mode 100644 index 9671877f1dc6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/hls_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class Hls(Model): - """The HLS configuration. - - :param fragments_per_ts_segment: The amount of fragments per HTTP Live - Streaming (HLS) segment. - :type fragments_per_ts_segment: int - """ - - _attribute_map = { - 'fragments_per_ts_segment': {'key': 'fragmentsPerTsSegment', 'type': 'int'}, - } - - def __init__(self, *, fragments_per_ts_segment: int=None, **kwargs) -> None: - super(Hls, self).__init__(**kwargs) - self.fragments_per_ts_segment = fragments_per_ts_segment diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image.py deleted file mode 100644 index 494ef1711066..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 .video import Video - - -class Image(Video): - """Describes the basic properties for generating thumbnails from the input - video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JpgImage, PngImage - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JpgImage': 'JpgImage', '#Microsoft.Media.PngImage': 'PngImage'} - } - - def __init__(self, **kwargs): - super(Image, self).__init__(**kwargs) - self.start = kwargs.get('start', None) - self.step = kwargs.get('step', None) - self.range = kwargs.get('range', None) - self.odatatype = '#Microsoft.Media.Image' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format.py deleted file mode 100644 index 9114e08860ff..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 .format import Format - - -class ImageFormat(Format): - """Describes the properties for an output image file. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JpgFormat, PngFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JpgFormat': 'JpgFormat', '#Microsoft.Media.PngFormat': 'PngFormat'} - } - - def __init__(self, **kwargs): - super(ImageFormat, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.ImageFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format_py3.py deleted file mode 100644 index b9cf38ed833c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_format_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 .format_py3 import Format - - -class ImageFormat(Format): - """Describes the properties for an output image file. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JpgFormat, PngFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JpgFormat': 'JpgFormat', '#Microsoft.Media.PngFormat': 'PngFormat'} - } - - def __init__(self, *, filename_pattern: str, **kwargs) -> None: - super(ImageFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) - self.odatatype = '#Microsoft.Media.ImageFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_py3.py deleted file mode 100644 index 86467ce40ac3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/image_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# 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 .video_py3 import Video - - -class Image(Video): - """Describes the basic properties for generating thumbnails from the input - video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JpgImage, PngImage - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JpgImage': 'JpgImage', '#Microsoft.Media.PngImage': 'PngImage'} - } - - def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, **kwargs) -> None: - super(Image, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, **kwargs) - self.start = start - self.step = step - self.range = range - self.odatatype = '#Microsoft.Media.Image' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control.py deleted file mode 100644 index 85ad2e0802a8..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class IPAccessControl(Model): - """The IP access control. - - :param allow: The IP allow list. - :type allow: list[~azure.mgmt.media.models.IPRange] - """ - - _attribute_map = { - 'allow': {'key': 'allow', 'type': '[IPRange]'}, - } - - def __init__(self, **kwargs): - super(IPAccessControl, self).__init__(**kwargs) - self.allow = kwargs.get('allow', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control_py3.py deleted file mode 100644 index 63efe5140cef..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_access_control_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class IPAccessControl(Model): - """The IP access control. - - :param allow: The IP allow list. - :type allow: list[~azure.mgmt.media.models.IPRange] - """ - - _attribute_map = { - 'allow': {'key': 'allow', 'type': '[IPRange]'}, - } - - def __init__(self, *, allow=None, **kwargs) -> None: - super(IPAccessControl, self).__init__(**kwargs) - self.allow = allow diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range.py deleted file mode 100644 index 83b693c034b9..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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.serialization import Model - - -class IPRange(Model): - """The IP address range in the CIDR scheme. - - :param name: The friendly name for the IP address range. - :type name: str - :param address: The IP address. - :type address: str - :param subnet_prefix_length: The subnet mask prefix length (see CIDR - notation). - :type subnet_prefix_length: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'address': {'key': 'address', 'type': 'str'}, - 'subnet_prefix_length': {'key': 'subnetPrefixLength', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(IPRange, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.address = kwargs.get('address', None) - self.subnet_prefix_length = kwargs.get('subnet_prefix_length', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range_py3.py deleted file mode 100644 index e0f3b65c228d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/ip_range_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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.serialization import Model - - -class IPRange(Model): - """The IP address range in the CIDR scheme. - - :param name: The friendly name for the IP address range. - :type name: str - :param address: The IP address. - :type address: str - :param subnet_prefix_length: The subnet mask prefix length (see CIDR - notation). - :type subnet_prefix_length: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'address': {'key': 'address', 'type': 'str'}, - 'subnet_prefix_length': {'key': 'subnetPrefixLength', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, address: str=None, subnet_prefix_length: int=None, **kwargs) -> None: - super(IPRange, self).__init__(**kwargs) - self.name = name - self.address = address - self.subnet_prefix_length = subnet_prefix_length diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job.py deleted file mode 100644 index 9a761401192a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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 Job(ProxyResource): - """A Job resource type. The progress and state can be obtained by polling a - Job or subscribing to events using EventGrid. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar created: The UTC date and time when the Job was created, in - 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype created: datetime - :ivar state: The current state of the job. Possible values include: - 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', - 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :param description: Optional customer supplied description of the Job. - :type description: str - :param input: Required. The inputs for the Job. - :type input: ~azure.mgmt.media.models.JobInput - :ivar last_modified: The UTC date and time when the Job was last updated, - in 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype last_modified: datetime - :param outputs: Required. The outputs for the Job. - :type outputs: list[~azure.mgmt.media.models.JobOutput] - :param priority: Priority with which the job should be processed. Higher - priority jobs are processed before lower priority jobs. If not set, the - default is normal. Possible values include: 'Low', 'Normal', 'High' - :type priority: str or ~azure.mgmt.media.models.Priority - :param correlation_data: Customer provided key, value pairs that will be - returned in Job and JobOutput state events. - :type correlation_data: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - 'state': {'readonly': True}, - 'input': {'required': True}, - 'last_modified': {'readonly': True}, - 'outputs': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'input': {'key': 'properties.input', 'type': 'JobInput'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'outputs': {'key': 'properties.outputs', 'type': '[JobOutput]'}, - 'priority': {'key': 'properties.priority', 'type': 'str'}, - 'correlation_data': {'key': 'properties.correlationData', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Job, self).__init__(**kwargs) - self.created = None - self.state = None - self.description = kwargs.get('description', None) - self.input = kwargs.get('input', None) - self.last_modified = None - self.outputs = kwargs.get('outputs', None) - self.priority = kwargs.get('priority', None) - self.correlation_data = kwargs.get('correlation_data', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error.py deleted file mode 100644 index 8df997220316..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class JobError(Model): - """Details of JobOutput errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code describing the error. Possible values include: - 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', - 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', - 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' - :vartype code: str or ~azure.mgmt.media.models.JobErrorCode - :ivar message: A human-readable language-dependent representation of the - error. - :vartype message: str - :ivar category: Helps with categorization of errors. Possible values - include: 'Service', 'Download', 'Upload', 'Configuration', 'Content' - :vartype category: str or ~azure.mgmt.media.models.JobErrorCategory - :ivar retry: Indicates that it may be possible to retry the Job. If retry - is unsuccessful, please contact Azure support via Azure Portal. Possible - values include: 'DoNotRetry', 'MayRetry' - :vartype retry: str or ~azure.mgmt.media.models.JobRetry - :ivar details: An array of details about specific errors that led to this - reported error. - :vartype details: list[~azure.mgmt.media.models.JobErrorDetail] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'category': {'readonly': True}, - 'retry': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'retry': {'key': 'retry', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[JobErrorDetail]'}, - } - - def __init__(self, **kwargs): - super(JobError, self).__init__(**kwargs) - self.code = None - self.message = None - self.category = None - self.retry = None - self.details = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail.py deleted file mode 100644 index 7979ec519d34..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class JobErrorDetail(Model): - """Details of JobOutput errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Code describing the error detail. - :vartype code: str - :ivar message: A human-readable representation of the error. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(JobErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail_py3.py deleted file mode 100644 index 67e8ecec8c4b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_detail_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class JobErrorDetail(Model): - """Details of JobOutput errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Code describing the error detail. - :vartype code: str - :ivar message: A human-readable representation of the error. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(JobErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py deleted file mode 100644 index 418b177bb346..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_error_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class JobError(Model): - """Details of JobOutput errors. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code describing the error. Possible values include: - 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', - 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', - 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' - :vartype code: str or ~azure.mgmt.media.models.JobErrorCode - :ivar message: A human-readable language-dependent representation of the - error. - :vartype message: str - :ivar category: Helps with categorization of errors. Possible values - include: 'Service', 'Download', 'Upload', 'Configuration', 'Content' - :vartype category: str or ~azure.mgmt.media.models.JobErrorCategory - :ivar retry: Indicates that it may be possible to retry the Job. If retry - is unsuccessful, please contact Azure support via Azure Portal. Possible - values include: 'DoNotRetry', 'MayRetry' - :vartype retry: str or ~azure.mgmt.media.models.JobRetry - :ivar details: An array of details about specific errors that led to this - reported error. - :vartype details: list[~azure.mgmt.media.models.JobErrorDetail] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'category': {'readonly': True}, - 'retry': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'retry': {'key': 'retry', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[JobErrorDetail]'}, - } - - def __init__(self, **kwargs) -> None: - super(JobError, self).__init__(**kwargs) - self.code = None - self.message = None - self.category = None - self.retry = None - self.details = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input.py deleted file mode 100644 index 5a65a203cc3e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class JobInput(Model): - """Base class for inputs to a Job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobInputClip, JobInputs - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobInputClip': 'JobInputClip', '#Microsoft.Media.JobInputs': 'JobInputs'} - } - - def __init__(self, **kwargs): - super(JobInput, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset.py deleted file mode 100644 index 687100fc2c90..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .job_input_clip import JobInputClip - - -class JobInputAsset(JobInputClip): - """Represents an Asset for input into a Job. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - :param asset_name: Required. The name of the input Asset. - :type asset_name: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'asset_name': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(JobInputAsset, self).__init__(**kwargs) - self.asset_name = kwargs.get('asset_name', None) - self.odatatype = '#Microsoft.Media.JobInputAsset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset_py3.py deleted file mode 100644 index 263d4ac593c8..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_asset_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# 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 .job_input_clip_py3 import JobInputClip - - -class JobInputAsset(JobInputClip): - """Represents an Asset for input into a Job. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - :param asset_name: Required. The name of the input Asset. - :type asset_name: str - """ - - _validation = { - 'odatatype': {'required': True}, - 'asset_name': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - } - - def __init__(self, *, asset_name: str, files=None, label: str=None, **kwargs) -> None: - super(JobInputAsset, self).__init__(files=files, label=label, **kwargs) - self.asset_name = asset_name - self.odatatype = '#Microsoft.Media.JobInputAsset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip.py deleted file mode 100644 index 5187d14e6234..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 .job_input import JobInput - - -class JobInputClip(JobInput): - """Represents input files for a Job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobInputAsset, JobInputHttp - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobInputAsset': 'JobInputAsset', '#Microsoft.Media.JobInputHttp': 'JobInputHttp'} - } - - def __init__(self, **kwargs): - super(JobInputClip, self).__init__(**kwargs) - self.files = kwargs.get('files', None) - self.label = kwargs.get('label', None) - self.odatatype = '#Microsoft.Media.JobInputClip' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip_py3.py deleted file mode 100644 index b6bbdb3e4e1e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_clip_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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 .job_input_py3 import JobInput - - -class JobInputClip(JobInput): - """Represents input files for a Job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobInputAsset, JobInputHttp - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobInputAsset': 'JobInputAsset', '#Microsoft.Media.JobInputHttp': 'JobInputHttp'} - } - - def __init__(self, *, files=None, label: str=None, **kwargs) -> None: - super(JobInputClip, self).__init__(**kwargs) - self.files = files - self.label = label - self.odatatype = '#Microsoft.Media.JobInputClip' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http.py deleted file mode 100644 index a12e24dec5a1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .job_input_clip import JobInputClip - - -class JobInputHttp(JobInputClip): - """Represents HTTPS job input. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - :param base_uri: Base URI for HTTPS job input. It will be concatenated - with provided file names. If no base uri is given, then the provided file - list is assumed to be fully qualified uris. Maximum length of 4000 - characters. - :type base_uri: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(JobInputHttp, self).__init__(**kwargs) - self.base_uri = kwargs.get('base_uri', None) - self.odatatype = '#Microsoft.Media.JobInputHttp' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http_py3.py deleted file mode 100644 index 0cc04900ba5e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_http_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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 .job_input_clip_py3 import JobInputClip - - -class JobInputHttp(JobInputClip): - """Represents HTTPS job input. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param files: List of files. Required for JobInputHttp. Maximum of 4000 - characters each. - :type files: list[str] - :param label: A label that is assigned to a JobInputClip, that is used to - satisfy a reference used in the Transform. For example, a Transform can be - authored so as to take an image file with the label 'xyz' and apply it as - an overlay onto the input video before it is encoded. When submitting a - Job, exactly one of the JobInputs should be the image file, and it should - have the label 'xyz'. - :type label: str - :param base_uri: Base URI for HTTPS job input. It will be concatenated - with provided file names. If no base uri is given, then the provided file - list is assumed to be fully qualified uris. Maximum length of 4000 - characters. - :type base_uri: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'files': {'key': 'files', 'type': '[str]'}, - 'label': {'key': 'label', 'type': 'str'}, - 'base_uri': {'key': 'baseUri', 'type': 'str'}, - } - - def __init__(self, *, files=None, label: str=None, base_uri: str=None, **kwargs) -> None: - super(JobInputHttp, self).__init__(files=files, label=label, **kwargs) - self.base_uri = base_uri - self.odatatype = '#Microsoft.Media.JobInputHttp' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_py3.py deleted file mode 100644 index e67513fe2f42..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_input_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class JobInput(Model): - """Base class for inputs to a Job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobInputClip, JobInputs - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobInputClip': 'JobInputClip', '#Microsoft.Media.JobInputs': 'JobInputs'} - } - - def __init__(self, **kwargs) -> None: - super(JobInput, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs.py deleted file mode 100644 index 315d63a7aa5d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 .job_input import JobInput - - -class JobInputs(JobInput): - """Describes a list of inputs to a Job. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param inputs: List of inputs to a Job. - :type inputs: list[~azure.mgmt.media.models.JobInput] - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[JobInput]'}, - } - - def __init__(self, **kwargs): - super(JobInputs, self).__init__(**kwargs) - self.inputs = kwargs.get('inputs', None) - self.odatatype = '#Microsoft.Media.JobInputs' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs_py3.py deleted file mode 100644 index 41fa5fb3d4d8..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_inputs_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# 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 .job_input_py3 import JobInput - - -class JobInputs(JobInput): - """Describes a list of inputs to a Job. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param inputs: List of inputs to a Job. - :type inputs: list[~azure.mgmt.media.models.JobInput] - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'inputs': {'key': 'inputs', 'type': '[JobInput]'}, - } - - def __init__(self, *, inputs=None, **kwargs) -> None: - super(JobInputs, self).__init__(**kwargs) - self.inputs = inputs - self.odatatype = '#Microsoft.Media.JobInputs' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output.py deleted file mode 100644 index 2185403d928b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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.serialization import Model - - -class JobOutput(Model): - """Describes all the properties of a JobOutput. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobOutputAsset - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar error: If the JobOutput is in the Error state, it contains the - details of the error. - :vartype error: ~azure.mgmt.media.models.JobError - :ivar state: Describes the state of the JobOutput. Possible values - include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - 'Queued', 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :ivar progress: If the JobOutput is in a Processing state, this contains - the Job completion percentage. The value is an estimate and not intended - to be used to predict Job completion times. To determine if the JobOutput - is complete, use the State property. - :vartype progress: int - :param label: A label that is assigned to a JobOutput in order to help - uniquely identify it. This is useful when your Transform has more than one - TransformOutput, whereby your Job has more than one JobOutput. In such - cases, when you submit the Job, you will add two or more JobOutputs, in - the same order as TransformOutputs in the Transform. Subsequently, when - you retrieve the Job, either through events or on a GET request, you can - use the label to easily identify the JobOutput. If a label is not - provided, a default value of '{presetName}_{outputIndex}' will be used, - where the preset name is the name of the preset in the corresponding - TransformOutput and the output index is the relative index of the this - JobOutput within the Job. Note that this index is the same as the relative - index of the corresponding TransformOutput within its Transform. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'error': {'readonly': True}, - 'state': {'readonly': True}, - 'progress': {'readonly': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'JobError'}, - 'state': {'key': 'state', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'int'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobOutputAsset': 'JobOutputAsset'} - } - - def __init__(self, **kwargs): - super(JobOutput, self).__init__(**kwargs) - self.error = None - self.state = None - self.progress = None - self.label = kwargs.get('label', None) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset.py deleted file mode 100644 index 46740f4c5239..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .job_output import JobOutput - - -class JobOutputAsset(JobOutput): - """Represents an Asset used as a JobOutput. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar error: If the JobOutput is in the Error state, it contains the - details of the error. - :vartype error: ~azure.mgmt.media.models.JobError - :ivar state: Describes the state of the JobOutput. Possible values - include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - 'Queued', 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :ivar progress: If the JobOutput is in a Processing state, this contains - the Job completion percentage. The value is an estimate and not intended - to be used to predict Job completion times. To determine if the JobOutput - is complete, use the State property. - :vartype progress: int - :param label: A label that is assigned to a JobOutput in order to help - uniquely identify it. This is useful when your Transform has more than one - TransformOutput, whereby your Job has more than one JobOutput. In such - cases, when you submit the Job, you will add two or more JobOutputs, in - the same order as TransformOutputs in the Transform. Subsequently, when - you retrieve the Job, either through events or on a GET request, you can - use the label to easily identify the JobOutput. If a label is not - provided, a default value of '{presetName}_{outputIndex}' will be used, - where the preset name is the name of the preset in the corresponding - TransformOutput and the output index is the relative index of the this - JobOutput within the Job. Note that this index is the same as the relative - index of the corresponding TransformOutput within its Transform. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param asset_name: Required. The name of the output Asset. - :type asset_name: str - """ - - _validation = { - 'error': {'readonly': True}, - 'state': {'readonly': True}, - 'progress': {'readonly': True}, - 'odatatype': {'required': True}, - 'asset_name': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'JobError'}, - 'state': {'key': 'state', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'int'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(JobOutputAsset, self).__init__(**kwargs) - self.asset_name = kwargs.get('asset_name', None) - self.odatatype = '#Microsoft.Media.JobOutputAsset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset_py3.py deleted file mode 100644 index 6c1e7bd6e44c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_asset_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# 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 .job_output_py3 import JobOutput - - -class JobOutputAsset(JobOutput): - """Represents an Asset used as a JobOutput. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar error: If the JobOutput is in the Error state, it contains the - details of the error. - :vartype error: ~azure.mgmt.media.models.JobError - :ivar state: Describes the state of the JobOutput. Possible values - include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - 'Queued', 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :ivar progress: If the JobOutput is in a Processing state, this contains - the Job completion percentage. The value is an estimate and not intended - to be used to predict Job completion times. To determine if the JobOutput - is complete, use the State property. - :vartype progress: int - :param label: A label that is assigned to a JobOutput in order to help - uniquely identify it. This is useful when your Transform has more than one - TransformOutput, whereby your Job has more than one JobOutput. In such - cases, when you submit the Job, you will add two or more JobOutputs, in - the same order as TransformOutputs in the Transform. Subsequently, when - you retrieve the Job, either through events or on a GET request, you can - use the label to easily identify the JobOutput. If a label is not - provided, a default value of '{presetName}_{outputIndex}' will be used, - where the preset name is the name of the preset in the corresponding - TransformOutput and the output index is the relative index of the this - JobOutput within the Job. Note that this index is the same as the relative - index of the corresponding TransformOutput within its Transform. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param asset_name: Required. The name of the output Asset. - :type asset_name: str - """ - - _validation = { - 'error': {'readonly': True}, - 'state': {'readonly': True}, - 'progress': {'readonly': True}, - 'odatatype': {'required': True}, - 'asset_name': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'JobError'}, - 'state': {'key': 'state', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'int'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'asset_name': {'key': 'assetName', 'type': 'str'}, - } - - def __init__(self, *, asset_name: str, label: str=None, **kwargs) -> None: - super(JobOutputAsset, self).__init__(label=label, **kwargs) - self.asset_name = asset_name - self.odatatype = '#Microsoft.Media.JobOutputAsset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_py3.py deleted file mode 100644 index e7f0c13c06d5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_output_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# 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.serialization import Model - - -class JobOutput(Model): - """Describes all the properties of a JobOutput. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: JobOutputAsset - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar error: If the JobOutput is in the Error state, it contains the - details of the error. - :vartype error: ~azure.mgmt.media.models.JobError - :ivar state: Describes the state of the JobOutput. Possible values - include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - 'Queued', 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :ivar progress: If the JobOutput is in a Processing state, this contains - the Job completion percentage. The value is an estimate and not intended - to be used to predict Job completion times. To determine if the JobOutput - is complete, use the State property. - :vartype progress: int - :param label: A label that is assigned to a JobOutput in order to help - uniquely identify it. This is useful when your Transform has more than one - TransformOutput, whereby your Job has more than one JobOutput. In such - cases, when you submit the Job, you will add two or more JobOutputs, in - the same order as TransformOutputs in the Transform. Subsequently, when - you retrieve the Job, either through events or on a GET request, you can - use the label to easily identify the JobOutput. If a label is not - provided, a default value of '{presetName}_{outputIndex}' will be used, - where the preset name is the name of the preset in the corresponding - TransformOutput and the output index is the relative index of the this - JobOutput within the Job. Note that this index is the same as the relative - index of the corresponding TransformOutput within its Transform. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'error': {'readonly': True}, - 'state': {'readonly': True}, - 'progress': {'readonly': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'JobError'}, - 'state': {'key': 'state', 'type': 'str'}, - 'progress': {'key': 'progress', 'type': 'int'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.JobOutputAsset': 'JobOutputAsset'} - } - - def __init__(self, *, label: str=None, **kwargs) -> None: - super(JobOutput, self).__init__(**kwargs) - self.error = None - self.state = None - self.progress = None - self.label = label - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_paged.py deleted file mode 100644 index d4ec685d540d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 JobPaged(Paged): - """ - A paging container for iterating over a list of :class:`Job ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Job]'} - } - - def __init__(self, *args, **kwargs): - - super(JobPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_py3.py deleted file mode 100644 index 6f6955010d60..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/job_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# 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_py3 import ProxyResource - - -class Job(ProxyResource): - """A Job resource type. The progress and state can be obtained by polling a - Job or subscribing to events using EventGrid. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar created: The UTC date and time when the Job was created, in - 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype created: datetime - :ivar state: The current state of the job. Possible values include: - 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', - 'Scheduled' - :vartype state: str or ~azure.mgmt.media.models.JobState - :param description: Optional customer supplied description of the Job. - :type description: str - :param input: Required. The inputs for the Job. - :type input: ~azure.mgmt.media.models.JobInput - :ivar last_modified: The UTC date and time when the Job was last updated, - in 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype last_modified: datetime - :param outputs: Required. The outputs for the Job. - :type outputs: list[~azure.mgmt.media.models.JobOutput] - :param priority: Priority with which the job should be processed. Higher - priority jobs are processed before lower priority jobs. If not set, the - default is normal. Possible values include: 'Low', 'Normal', 'High' - :type priority: str or ~azure.mgmt.media.models.Priority - :param correlation_data: Customer provided key, value pairs that will be - returned in Job and JobOutput state events. - :type correlation_data: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - 'state': {'readonly': True}, - 'input': {'required': True}, - 'last_modified': {'readonly': True}, - 'outputs': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'input': {'key': 'properties.input', 'type': 'JobInput'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'outputs': {'key': 'properties.outputs', 'type': '[JobOutput]'}, - 'priority': {'key': 'properties.priority', 'type': 'str'}, - 'correlation_data': {'key': 'properties.correlationData', 'type': '{str}'}, - } - - def __init__(self, *, input, outputs, description: str=None, priority=None, correlation_data=None, **kwargs) -> None: - super(Job, self).__init__(**kwargs) - self.created = None - self.state = None - self.description = description - self.input = input - self.last_modified = None - self.outputs = outputs - self.priority = priority - self.correlation_data = correlation_data diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format.py deleted file mode 100644 index 5ac2f5dd8275..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .image_format import ImageFormat - - -class JpgFormat(ImageFormat): - """Describes the settings for producing JPEG thumbnails. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(JpgFormat, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.JpgFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format_py3.py deleted file mode 100644 index e15163904bfd..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_format_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .image_format_py3 import ImageFormat - - -class JpgFormat(ImageFormat): - """Describes the settings for producing JPEG thumbnails. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, filename_pattern: str, **kwargs) -> None: - super(JpgFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) - self.odatatype = '#Microsoft.Media.JpgFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image.py deleted file mode 100644 index 37cc8ad558f7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image.py +++ /dev/null @@ -1,76 +0,0 @@ -# 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 .image import Image - - -class JpgImage(Image): - """Describes the properties for producing a series of JPEG images from the - input video. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - :param layers: A collection of output JPEG image layers to be produced by - the encoder. - :type layers: list[~azure.mgmt.media.models.JpgLayer] - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[JpgLayer]'}, - } - - def __init__(self, **kwargs): - super(JpgImage, self).__init__(**kwargs) - self.layers = kwargs.get('layers', None) - self.odatatype = '#Microsoft.Media.JpgImage' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image_py3.py deleted file mode 100644 index 9f1ca28a41f7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_image_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# 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 .image_py3 import Image - - -class JpgImage(Image): - """Describes the properties for producing a series of JPEG images from the - input video. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - :param layers: A collection of output JPEG image layers to be produced by - the encoder. - :type layers: list[~azure.mgmt.media.models.JpgLayer] - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[JpgLayer]'}, - } - - def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, layers=None, **kwargs) -> None: - super(JpgImage, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, start=start, step=step, range=range, **kwargs) - self.layers = layers - self.odatatype = '#Microsoft.Media.JpgImage' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer.py deleted file mode 100644 index f1b9128e7195..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .layer import Layer - - -class JpgLayer(Layer): - """Describes the settings to produce a JPEG image from the input video. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param quality: The compression quality of the JPEG output. Range is from - 0-100 and the default is 70. - :type quality: int - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'quality': {'key': 'quality', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(JpgLayer, self).__init__(**kwargs) - self.quality = kwargs.get('quality', None) - self.odatatype = '#Microsoft.Media.JpgLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer_py3.py deleted file mode 100644 index 1379442b6ca2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/jpg_layer_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .layer_py3 import Layer - - -class JpgLayer(Layer): - """Describes the settings to produce a JPEG image from the input video. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param quality: The compression quality of the JPEG output. Range is from - 0-100 and the default is 70. - :type quality: int - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'quality': {'key': 'quality', 'type': 'int'}, - } - - def __init__(self, *, width: str=None, height: str=None, label: str=None, quality: int=None, **kwargs) -> None: - super(JpgLayer, self).__init__(width=width, height=height, label=label, **kwargs) - self.quality = quality - self.odatatype = '#Microsoft.Media.JpgLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer.py deleted file mode 100644 index c0df1d599fdd..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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.serialization import Model - - -class Layer(Model): - """The encoder can be configured to produce video and/or images (thumbnails) - at different resolutions, by specifying a layer for each desired - resolution. A layer represents the properties for the video or image at a - resolution. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: VideoLayer, JpgLayer, PngLayer - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.VideoLayer': 'VideoLayer', '#Microsoft.Media.JpgLayer': 'JpgLayer', '#Microsoft.Media.PngLayer': 'PngLayer'} - } - - def __init__(self, **kwargs): - super(Layer, self).__init__(**kwargs) - self.width = kwargs.get('width', None) - self.height = kwargs.get('height', None) - self.label = kwargs.get('label', None) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer_py3.py deleted file mode 100644 index b932fe7d93b0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/layer_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# 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.serialization import Model - - -class Layer(Model): - """The encoder can be configured to produce video and/or images (thumbnails) - at different resolutions, by specifying a layer for each desired - resolution. A layer represents the properties for the video or image at a - resolution. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: VideoLayer, JpgLayer, PngLayer - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.VideoLayer': 'VideoLayer', '#Microsoft.Media.JpgLayer': 'JpgLayer', '#Microsoft.Media.PngLayer': 'PngLayer'} - } - - def __init__(self, *, width: str=None, height: str=None, label: str=None, **kwargs) -> None: - super(Layer, self).__init__(**kwargs) - self.width = width - self.height = height - self.label = label - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input.py deleted file mode 100644 index 7cf48c322dd1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class ListContainerSasInput(Model): - """The parameters to the list SAS request. - - :param permissions: The permissions to set on the SAS URL. Possible values - include: 'Read', 'ReadWrite', 'ReadWriteDelete' - :type permissions: str or - ~azure.mgmt.media.models.AssetContainerPermission - :param expiry_time: The SAS URL expiration time. This must be less than - 24 hours from the current time. - :type expiry_time: datetime - """ - - _attribute_map = { - 'permissions': {'key': 'permissions', 'type': 'str'}, - 'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(ListContainerSasInput, self).__init__(**kwargs) - self.permissions = kwargs.get('permissions', None) - self.expiry_time = kwargs.get('expiry_time', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input_py3.py deleted file mode 100644 index b43bc94ece72..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_container_sas_input_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class ListContainerSasInput(Model): - """The parameters to the list SAS request. - - :param permissions: The permissions to set on the SAS URL. Possible values - include: 'Read', 'ReadWrite', 'ReadWriteDelete' - :type permissions: str or - ~azure.mgmt.media.models.AssetContainerPermission - :param expiry_time: The SAS URL expiration time. This must be less than - 24 hours from the current time. - :type expiry_time: datetime - """ - - _attribute_map = { - 'permissions': {'key': 'permissions', 'type': 'str'}, - 'expiry_time': {'key': 'expiryTime', 'type': 'iso-8601'}, - } - - def __init__(self, *, permissions=None, expiry_time=None, **kwargs) -> None: - super(ListContainerSasInput, self).__init__(**kwargs) - self.permissions = permissions - self.expiry_time = expiry_time diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response.py deleted file mode 100644 index c0c83ec675fb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class ListContentKeysResponse(Model): - """Class of response for listContentKeys action. - - :param content_keys: ContentKeys used by current Streaming Locator - :type content_keys: - list[~azure.mgmt.media.models.StreamingLocatorContentKey] - """ - - _attribute_map = { - 'content_keys': {'key': 'contentKeys', 'type': '[StreamingLocatorContentKey]'}, - } - - def __init__(self, **kwargs): - super(ListContentKeysResponse, self).__init__(**kwargs) - self.content_keys = kwargs.get('content_keys', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response_py3.py deleted file mode 100644 index f678d8a7d9e8..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_content_keys_response_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class ListContentKeysResponse(Model): - """Class of response for listContentKeys action. - - :param content_keys: ContentKeys used by current Streaming Locator - :type content_keys: - list[~azure.mgmt.media.models.StreamingLocatorContentKey] - """ - - _attribute_map = { - 'content_keys': {'key': 'contentKeys', 'type': '[StreamingLocatorContentKey]'}, - } - - def __init__(self, *, content_keys=None, **kwargs) -> None: - super(ListContentKeysResponse, self).__init__(**kwargs) - self.content_keys = content_keys diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response.py deleted file mode 100644 index 8cd1ee823142..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class ListPathsResponse(Model): - """Class of response for listPaths action. - - :param streaming_paths: Streaming Paths supported by current Streaming - Locator - :type streaming_paths: list[~azure.mgmt.media.models.StreamingPath] - :param download_paths: Download Paths supported by current Streaming - Locator - :type download_paths: list[str] - """ - - _attribute_map = { - 'streaming_paths': {'key': 'streamingPaths', 'type': '[StreamingPath]'}, - 'download_paths': {'key': 'downloadPaths', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(ListPathsResponse, self).__init__(**kwargs) - self.streaming_paths = kwargs.get('streaming_paths', None) - self.download_paths = kwargs.get('download_paths', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response_py3.py deleted file mode 100644 index a6eca6a6cc97..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_paths_response_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class ListPathsResponse(Model): - """Class of response for listPaths action. - - :param streaming_paths: Streaming Paths supported by current Streaming - Locator - :type streaming_paths: list[~azure.mgmt.media.models.StreamingPath] - :param download_paths: Download Paths supported by current Streaming - Locator - :type download_paths: list[str] - """ - - _attribute_map = { - 'streaming_paths': {'key': 'streamingPaths', 'type': '[StreamingPath]'}, - 'download_paths': {'key': 'downloadPaths', 'type': '[str]'}, - } - - def __init__(self, *, streaming_paths=None, download_paths=None, **kwargs) -> None: - super(ListPathsResponse, self).__init__(**kwargs) - self.streaming_paths = streaming_paths - self.download_paths = download_paths diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response.py deleted file mode 100644 index f165f46b19d1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class ListStreamingLocatorsResponse(Model): - """The Streaming Locators associated with this Asset. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar streaming_locators: The list of Streaming Locators. - :vartype streaming_locators: - list[~azure.mgmt.media.models.AssetStreamingLocator] - """ - - _validation = { - 'streaming_locators': {'readonly': True}, - } - - _attribute_map = { - 'streaming_locators': {'key': 'streamingLocators', 'type': '[AssetStreamingLocator]'}, - } - - def __init__(self, **kwargs): - super(ListStreamingLocatorsResponse, self).__init__(**kwargs) - self.streaming_locators = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response_py3.py deleted file mode 100644 index a9f307de2cc5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/list_streaming_locators_response_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class ListStreamingLocatorsResponse(Model): - """The Streaming Locators associated with this Asset. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar streaming_locators: The list of Streaming Locators. - :vartype streaming_locators: - list[~azure.mgmt.media.models.AssetStreamingLocator] - """ - - _validation = { - 'streaming_locators': {'readonly': True}, - } - - _attribute_map = { - 'streaming_locators': {'key': 'streamingLocators', 'type': '[AssetStreamingLocator]'}, - } - - def __init__(self, **kwargs) -> None: - super(ListStreamingLocatorsResponse, self).__init__(**kwargs) - self.streaming_locators = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event.py deleted file mode 100644 index ee3e149c9db5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class LiveEvent(TrackedResource): - """The Live Event. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :param description: The Live Event description. - :type description: str - :param input: Required. The Live Event input. - :type input: ~azure.mgmt.media.models.LiveEventInput - :param preview: The Live Event preview. - :type preview: ~azure.mgmt.media.models.LiveEventPreview - :param encoding: The Live Event encoding. - :type encoding: ~azure.mgmt.media.models.LiveEventEncoding - :ivar provisioning_state: The provisioning state of the Live Event. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the Live Event. Possible - values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.media.models.LiveEventResourceState - :param cross_site_access_policies: The Live Event access policies. - :type cross_site_access_policies: - ~azure.mgmt.media.models.CrossSiteAccessPolicies - :param vanity_url: Specifies whether to use a vanity url with the Live - Event. This value is specified at creation time and cannot be updated. - :type vanity_url: bool - :param stream_options: The options to use for the LiveEvent. This value - is specified at creation time and cannot be updated. - :type stream_options: list[str or - ~azure.mgmt.media.models.StreamOptionsFlag] - :ivar created: The exact time the Live Event was created. - :vartype created: datetime - :ivar last_modified: The exact time the Live Event was last modified. - :vartype last_modified: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'input': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'input': {'key': 'properties.input', 'type': 'LiveEventInput'}, - 'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'}, - 'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'LiveEventResourceState'}, - 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, - 'vanity_url': {'key': 'properties.vanityUrl', 'type': 'bool'}, - 'stream_options': {'key': 'properties.streamOptions', 'type': '[StreamOptionsFlag]'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(LiveEvent, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.input = kwargs.get('input', None) - self.preview = kwargs.get('preview', None) - self.encoding = kwargs.get('encoding', None) - self.provisioning_state = None - self.resource_state = None - self.cross_site_access_policies = kwargs.get('cross_site_access_policies', None) - self.vanity_url = kwargs.get('vanity_url', None) - self.stream_options = kwargs.get('stream_options', None) - self.created = None - self.last_modified = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input.py deleted file mode 100644 index d6823c3cb013..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class LiveEventActionInput(Model): - """The LiveEvent action input parameter definition. - - :param remove_outputs_on_stop: The flag indicates if remove LiveOutputs on - Stop. - :type remove_outputs_on_stop: bool - """ - - _attribute_map = { - 'remove_outputs_on_stop': {'key': 'removeOutputsOnStop', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(LiveEventActionInput, self).__init__(**kwargs) - self.remove_outputs_on_stop = kwargs.get('remove_outputs_on_stop', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input_py3.py deleted file mode 100644 index 59f7b0869060..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_action_input_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class LiveEventActionInput(Model): - """The LiveEvent action input parameter definition. - - :param remove_outputs_on_stop: The flag indicates if remove LiveOutputs on - Stop. - :type remove_outputs_on_stop: bool - """ - - _attribute_map = { - 'remove_outputs_on_stop': {'key': 'removeOutputsOnStop', 'type': 'bool'}, - } - - def __init__(self, *, remove_outputs_on_stop: bool=None, **kwargs) -> None: - super(LiveEventActionInput, self).__init__(**kwargs) - self.remove_outputs_on_stop = remove_outputs_on_stop diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding.py deleted file mode 100644 index ccda7e13e359..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class LiveEventEncoding(Model): - """The Live Event encoding. - - :param encoding_type: The encoding type for Live Event. This value is - specified at creation time and cannot be updated. Possible values include: - 'None', 'Basic', 'Standard' - :type encoding_type: str or ~azure.mgmt.media.models.LiveEventEncodingType - :param preset_name: The encoding preset name. This value is specified at - creation time and cannot be updated. - :type preset_name: str - """ - - _attribute_map = { - 'encoding_type': {'key': 'encodingType', 'type': 'LiveEventEncodingType'}, - 'preset_name': {'key': 'presetName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LiveEventEncoding, self).__init__(**kwargs) - self.encoding_type = kwargs.get('encoding_type', None) - self.preset_name = kwargs.get('preset_name', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding_py3.py deleted file mode 100644 index f6dd61de8d2c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_encoding_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class LiveEventEncoding(Model): - """The Live Event encoding. - - :param encoding_type: The encoding type for Live Event. This value is - specified at creation time and cannot be updated. Possible values include: - 'None', 'Basic', 'Standard' - :type encoding_type: str or ~azure.mgmt.media.models.LiveEventEncodingType - :param preset_name: The encoding preset name. This value is specified at - creation time and cannot be updated. - :type preset_name: str - """ - - _attribute_map = { - 'encoding_type': {'key': 'encodingType', 'type': 'LiveEventEncodingType'}, - 'preset_name': {'key': 'presetName', 'type': 'str'}, - } - - def __init__(self, *, encoding_type=None, preset_name: str=None, **kwargs) -> None: - super(LiveEventEncoding, self).__init__(**kwargs) - self.encoding_type = encoding_type - self.preset_name = preset_name diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint.py deleted file mode 100644 index e354476a30cd..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class LiveEventEndpoint(Model): - """The Live Event endpoint. - - :param protocol: The endpoint protocol. - :type protocol: str - :param url: The endpoint URL. - :type url: str - """ - - _attribute_map = { - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LiveEventEndpoint, self).__init__(**kwargs) - self.protocol = kwargs.get('protocol', None) - self.url = kwargs.get('url', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint_py3.py deleted file mode 100644 index b864d8ac354e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_endpoint_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class LiveEventEndpoint(Model): - """The Live Event endpoint. - - :param protocol: The endpoint protocol. - :type protocol: str - :param url: The endpoint URL. - :type url: str - """ - - _attribute_map = { - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__(self, *, protocol: str=None, url: str=None, **kwargs) -> None: - super(LiveEventEndpoint, self).__init__(**kwargs) - self.protocol = protocol - self.url = url diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input.py deleted file mode 100644 index 5182171471fa..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class LiveEventInput(Model): - """The Live Event input. - - All required parameters must be populated in order to send to Azure. - - :param streaming_protocol: Required. The streaming protocol for the Live - Event. This is specified at creation time and cannot be updated. Possible - values include: 'FragmentedMP4', 'RTMP' - :type streaming_protocol: str or - ~azure.mgmt.media.models.LiveEventInputProtocol - :param access_control: The access control for LiveEvent Input. - :type access_control: ~azure.mgmt.media.models.LiveEventInputAccessControl - :param key_frame_interval_duration: ISO 8601 timespan duration of the key - frame interval duration. - :type key_frame_interval_duration: str - :param access_token: A unique identifier for a stream. This can be - specified at creation time but cannot be updated. If omitted, the service - will generate a unique value. - :type access_token: str - :param endpoints: The input endpoints for the Live Event. - :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] - """ - - _validation = { - 'streaming_protocol': {'required': True}, - } - - _attribute_map = { - 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'LiveEventInputProtocol'}, - 'access_control': {'key': 'accessControl', 'type': 'LiveEventInputAccessControl'}, - 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, - } - - def __init__(self, **kwargs): - super(LiveEventInput, self).__init__(**kwargs) - self.streaming_protocol = kwargs.get('streaming_protocol', None) - self.access_control = kwargs.get('access_control', None) - self.key_frame_interval_duration = kwargs.get('key_frame_interval_duration', None) - self.access_token = kwargs.get('access_token', None) - self.endpoints = kwargs.get('endpoints', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control.py deleted file mode 100644 index 00f0b5b5af32..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class LiveEventInputAccessControl(Model): - """The IP access control for Live Event Input. - - :param ip: The IP access control properties. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, **kwargs): - super(LiveEventInputAccessControl, self).__init__(**kwargs) - self.ip = kwargs.get('ip', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control_py3.py deleted file mode 100644 index 976f68002798..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_access_control_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class LiveEventInputAccessControl(Model): - """The IP access control for Live Event Input. - - :param ip: The IP access control properties. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, *, ip=None, **kwargs) -> None: - super(LiveEventInputAccessControl, self).__init__(**kwargs) - self.ip = ip diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_py3.py deleted file mode 100644 index 278eec4b9e0c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_input_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class LiveEventInput(Model): - """The Live Event input. - - All required parameters must be populated in order to send to Azure. - - :param streaming_protocol: Required. The streaming protocol for the Live - Event. This is specified at creation time and cannot be updated. Possible - values include: 'FragmentedMP4', 'RTMP' - :type streaming_protocol: str or - ~azure.mgmt.media.models.LiveEventInputProtocol - :param access_control: The access control for LiveEvent Input. - :type access_control: ~azure.mgmt.media.models.LiveEventInputAccessControl - :param key_frame_interval_duration: ISO 8601 timespan duration of the key - frame interval duration. - :type key_frame_interval_duration: str - :param access_token: A unique identifier for a stream. This can be - specified at creation time but cannot be updated. If omitted, the service - will generate a unique value. - :type access_token: str - :param endpoints: The input endpoints for the Live Event. - :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] - """ - - _validation = { - 'streaming_protocol': {'required': True}, - } - - _attribute_map = { - 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'LiveEventInputProtocol'}, - 'access_control': {'key': 'accessControl', 'type': 'LiveEventInputAccessControl'}, - 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, - 'access_token': {'key': 'accessToken', 'type': 'str'}, - 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, - } - - def __init__(self, *, streaming_protocol, access_control=None, key_frame_interval_duration: str=None, access_token: str=None, endpoints=None, **kwargs) -> None: - super(LiveEventInput, self).__init__(**kwargs) - self.streaming_protocol = streaming_protocol - self.access_control = access_control - self.key_frame_interval_duration = key_frame_interval_duration - self.access_token = access_token - self.endpoints = endpoints diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_paged.py deleted file mode 100644 index 068ca39686fe..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 LiveEventPaged(Paged): - """ - A paging container for iterating over a list of :class:`LiveEvent ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LiveEvent]'} - } - - def __init__(self, *args, **kwargs): - - super(LiveEventPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview.py deleted file mode 100644 index 0c69f5653ef7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class LiveEventPreview(Model): - """The Live Event preview. - - :param endpoints: The endpoints for preview. - :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] - :param access_control: The access control for LiveEvent preview. - :type access_control: - ~azure.mgmt.media.models.LiveEventPreviewAccessControl - :param preview_locator: The identifier of the preview locator in Guid - format. Specifying this at creation time allows the caller to know the - preview locator url before the event is created. If omitted, the service - will generate a random identifier. This value cannot be updated once the - live event is created. - :type preview_locator: str - :param streaming_policy_name: The name of streaming policy used for the - LiveEvent preview. This value is specified at creation time and cannot be - updated. - :type streaming_policy_name: str - :param alternative_media_id: An Alternative Media Identifier associated - with the StreamingLocator created for the preview. This value is - specified at creation time and cannot be updated. The identifier can be - used in the CustomLicenseAcquisitionUrlTemplate or the - CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the - StreamingPolicyName field. - :type alternative_media_id: str - """ - - _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, - 'access_control': {'key': 'accessControl', 'type': 'LiveEventPreviewAccessControl'}, - 'preview_locator': {'key': 'previewLocator', 'type': 'str'}, - 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, - 'alternative_media_id': {'key': 'alternativeMediaId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LiveEventPreview, self).__init__(**kwargs) - self.endpoints = kwargs.get('endpoints', None) - self.access_control = kwargs.get('access_control', None) - self.preview_locator = kwargs.get('preview_locator', None) - self.streaming_policy_name = kwargs.get('streaming_policy_name', None) - self.alternative_media_id = kwargs.get('alternative_media_id', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control.py deleted file mode 100644 index 9cd24c1ff0ab..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class LiveEventPreviewAccessControl(Model): - """The IP access control for Live Event preview. - - :param ip: The IP access control properties. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, **kwargs): - super(LiveEventPreviewAccessControl, self).__init__(**kwargs) - self.ip = kwargs.get('ip', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control_py3.py deleted file mode 100644 index ed228f117709..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_access_control_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class LiveEventPreviewAccessControl(Model): - """The IP access control for Live Event preview. - - :param ip: The IP access control properties. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, *, ip=None, **kwargs) -> None: - super(LiveEventPreviewAccessControl, self).__init__(**kwargs) - self.ip = ip diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_py3.py deleted file mode 100644 index 8240b773b9d3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_preview_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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.serialization import Model - - -class LiveEventPreview(Model): - """The Live Event preview. - - :param endpoints: The endpoints for preview. - :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] - :param access_control: The access control for LiveEvent preview. - :type access_control: - ~azure.mgmt.media.models.LiveEventPreviewAccessControl - :param preview_locator: The identifier of the preview locator in Guid - format. Specifying this at creation time allows the caller to know the - preview locator url before the event is created. If omitted, the service - will generate a random identifier. This value cannot be updated once the - live event is created. - :type preview_locator: str - :param streaming_policy_name: The name of streaming policy used for the - LiveEvent preview. This value is specified at creation time and cannot be - updated. - :type streaming_policy_name: str - :param alternative_media_id: An Alternative Media Identifier associated - with the StreamingLocator created for the preview. This value is - specified at creation time and cannot be updated. The identifier can be - used in the CustomLicenseAcquisitionUrlTemplate or the - CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the - StreamingPolicyName field. - :type alternative_media_id: str - """ - - _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, - 'access_control': {'key': 'accessControl', 'type': 'LiveEventPreviewAccessControl'}, - 'preview_locator': {'key': 'previewLocator', 'type': 'str'}, - 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, - 'alternative_media_id': {'key': 'alternativeMediaId', 'type': 'str'}, - } - - def __init__(self, *, endpoints=None, access_control=None, preview_locator: str=None, streaming_policy_name: str=None, alternative_media_id: str=None, **kwargs) -> None: - super(LiveEventPreview, self).__init__(**kwargs) - self.endpoints = endpoints - self.access_control = access_control - self.preview_locator = preview_locator - self.streaming_policy_name = streaming_policy_name - self.alternative_media_id = alternative_media_id diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_py3.py deleted file mode 100644 index 75659a2a9e1c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_event_py3.py +++ /dev/null @@ -1,105 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class LiveEvent(TrackedResource): - """The Live Event. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :param description: The Live Event description. - :type description: str - :param input: Required. The Live Event input. - :type input: ~azure.mgmt.media.models.LiveEventInput - :param preview: The Live Event preview. - :type preview: ~azure.mgmt.media.models.LiveEventPreview - :param encoding: The Live Event encoding. - :type encoding: ~azure.mgmt.media.models.LiveEventEncoding - :ivar provisioning_state: The provisioning state of the Live Event. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the Live Event. Possible - values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.media.models.LiveEventResourceState - :param cross_site_access_policies: The Live Event access policies. - :type cross_site_access_policies: - ~azure.mgmt.media.models.CrossSiteAccessPolicies - :param vanity_url: Specifies whether to use a vanity url with the Live - Event. This value is specified at creation time and cannot be updated. - :type vanity_url: bool - :param stream_options: The options to use for the LiveEvent. This value - is specified at creation time and cannot be updated. - :type stream_options: list[str or - ~azure.mgmt.media.models.StreamOptionsFlag] - :ivar created: The exact time the Live Event was created. - :vartype created: datetime - :ivar last_modified: The exact time the Live Event was last modified. - :vartype last_modified: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'input': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'input': {'key': 'properties.input', 'type': 'LiveEventInput'}, - 'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'}, - 'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'LiveEventResourceState'}, - 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, - 'vanity_url': {'key': 'properties.vanityUrl', 'type': 'bool'}, - 'stream_options': {'key': 'properties.streamOptions', 'type': '[StreamOptionsFlag]'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - } - - def __init__(self, *, input, tags=None, location: str=None, description: str=None, preview=None, encoding=None, cross_site_access_policies=None, vanity_url: bool=None, stream_options=None, **kwargs) -> None: - super(LiveEvent, self).__init__(tags=tags, location=location, **kwargs) - self.description = description - self.input = input - self.preview = preview - self.encoding = encoding - self.provisioning_state = None - self.resource_state = None - self.cross_site_access_policies = cross_site_access_policies - self.vanity_url = vanity_url - self.stream_options = stream_options - self.created = None - self.last_modified = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output.py deleted file mode 100644 index aacba416697b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 LiveOutput(ProxyResource): - """The Live Output. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 description: The description of the Live Output. - :type description: str - :param asset_name: Required. The asset name. - :type asset_name: str - :param archive_window_length: Required. ISO 8601 timespan duration of the - archive window length. This is duration that customer want to retain the - recorded content. - :type archive_window_length: timedelta - :param manifest_name: The manifest file name. If not provided, the - service will generate one automatically. - :type manifest_name: str - :param hls: The HLS configuration. - :type hls: ~azure.mgmt.media.models.Hls - :param output_snap_time: The output snapshot time. - :type output_snap_time: long - :ivar created: The exact time the Live Output was created. - :vartype created: datetime - :ivar last_modified: The exact time the Live Output was last modified. - :vartype last_modified: datetime - :ivar provisioning_state: The provisioning state of the Live Output. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the Live Output. Possible - values include: 'Creating', 'Running', 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.media.models.LiveOutputResourceState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_name': {'required': True}, - 'archive_window_length': {'required': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, - 'archive_window_length': {'key': 'properties.archiveWindowLength', 'type': 'duration'}, - 'manifest_name': {'key': 'properties.manifestName', 'type': 'str'}, - 'hls': {'key': 'properties.hls', 'type': 'Hls'}, - 'output_snap_time': {'key': 'properties.outputSnapTime', 'type': 'long'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'LiveOutputResourceState'}, - } - - def __init__(self, **kwargs): - super(LiveOutput, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.asset_name = kwargs.get('asset_name', None) - self.archive_window_length = kwargs.get('archive_window_length', None) - self.manifest_name = kwargs.get('manifest_name', None) - self.hls = kwargs.get('hls', None) - self.output_snap_time = kwargs.get('output_snap_time', None) - self.created = None - self.last_modified = None - self.provisioning_state = None - self.resource_state = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_paged.py deleted file mode 100644 index 89f2f975d280..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 LiveOutputPaged(Paged): - """ - A paging container for iterating over a list of :class:`LiveOutput ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LiveOutput]'} - } - - def __init__(self, *args, **kwargs): - - super(LiveOutputPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_py3.py deleted file mode 100644 index 529f2da31efa..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/live_output_py3.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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_py3 import ProxyResource - - -class LiveOutput(ProxyResource): - """The Live Output. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 description: The description of the Live Output. - :type description: str - :param asset_name: Required. The asset name. - :type asset_name: str - :param archive_window_length: Required. ISO 8601 timespan duration of the - archive window length. This is duration that customer want to retain the - recorded content. - :type archive_window_length: timedelta - :param manifest_name: The manifest file name. If not provided, the - service will generate one automatically. - :type manifest_name: str - :param hls: The HLS configuration. - :type hls: ~azure.mgmt.media.models.Hls - :param output_snap_time: The output snapshot time. - :type output_snap_time: long - :ivar created: The exact time the Live Output was created. - :vartype created: datetime - :ivar last_modified: The exact time the Live Output was last modified. - :vartype last_modified: datetime - :ivar provisioning_state: The provisioning state of the Live Output. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the Live Output. Possible - values include: 'Creating', 'Running', 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.media.models.LiveOutputResourceState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_name': {'required': True}, - 'archive_window_length': {'required': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, - 'archive_window_length': {'key': 'properties.archiveWindowLength', 'type': 'duration'}, - 'manifest_name': {'key': 'properties.manifestName', 'type': 'str'}, - 'hls': {'key': 'properties.hls', 'type': 'Hls'}, - 'output_snap_time': {'key': 'properties.outputSnapTime', 'type': 'long'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'LiveOutputResourceState'}, - } - - def __init__(self, *, asset_name: str, archive_window_length, description: str=None, manifest_name: str=None, hls=None, output_snap_time: int=None, **kwargs) -> None: - super(LiveOutput, self).__init__(**kwargs) - self.description = description - self.asset_name = asset_name - self.archive_window_length = archive_window_length - self.manifest_name = manifest_name - self.hls = hls - self.output_snap_time = output_snap_time - self.created = None - self.last_modified = None - self.provisioning_state = None - self.resource_state = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location.py deleted file mode 100644 index 6917d46e2feb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Location(Model): - """Location. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Location, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location_py3.py deleted file mode 100644 index f42365dd8b57..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/location_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Location(Model): - """Location. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. - :type name: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, name: str, **kwargs) -> None: - super(Location, self).__init__(**kwargs) - self.name = name diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service.py deleted file mode 100644 index 984ce5d1b579..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class MediaService(TrackedResource): - """A Media Services account. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :ivar media_service_id: The Media Services account ID. - :vartype media_service_id: str - :param storage_accounts: The storage accounts for this resource. - :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'media_service_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, **kwargs): - super(MediaService, self).__init__(**kwargs) - self.media_service_id = None - self.storage_accounts = kwargs.get('storage_accounts', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py deleted file mode 100644 index 13bff186258e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 MediaServicePaged(Paged): - """ - A paging container for iterating over a list of :class:`MediaService ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[MediaService]'} - } - - def __init__(self, *args, **kwargs): - - super(MediaServicePaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_py3.py deleted file mode 100644 index 17a18f0f93db..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/media_service_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class MediaService(TrackedResource): - """A Media Services account. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :ivar media_service_id: The Media Services account ID. - :vartype media_service_id: str - :param storage_accounts: The storage accounts for this resource. - :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'media_service_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, *, tags=None, location: str=None, storage_accounts=None, **kwargs) -> None: - super(MediaService, self).__init__(tags=tags, location=location, **kwargs) - self.media_service_id = None - self.storage_accounts = storage_accounts diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric.py deleted file mode 100644 index 8beec776ac31..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class Metric(Model): - """A metric emitted by service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The metric name. - :vartype name: str - :ivar display_name: The metric display name. - :vartype display_name: str - :ivar display_description: The metric display description. - :vartype display_description: str - :ivar unit: The metric unit. Possible values include: 'Bytes', 'Count', - 'Milliseconds' - :vartype unit: str or ~azure.mgmt.media.models.MetricUnit - :ivar aggregation_type: The metric aggregation type. Possible values - include: 'Average', 'Count', 'Total' - :vartype aggregation_type: str or - ~azure.mgmt.media.models.MetricAggregationType - :ivar dimensions: The metric dimensions. - :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] - """ - - _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'display_description': {'readonly': True}, - 'unit': {'readonly': True}, - 'aggregation_type': {'readonly': True}, - 'dimensions': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'display_description': {'key': 'displayDescription', 'type': 'str'}, - 'unit': {'key': 'unit', 'type': 'str'}, - 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, - 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, - } - - def __init__(self, **kwargs): - super(Metric, self).__init__(**kwargs) - self.name = None - self.display_name = None - self.display_description = None - self.unit = None - self.aggregation_type = None - self.dimensions = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension.py deleted file mode 100644 index cbf83600fed5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class MetricDimension(Model): - """A metric dimension. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The metric dimension name. - :vartype name: str - :ivar display_name: The display name for the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether to export metric to shoebox. - :vartype to_be_exported_for_shoebox: bool - """ - - _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'to_be_exported_for_shoebox': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(MetricDimension, self).__init__(**kwargs) - self.name = None - self.display_name = None - self.to_be_exported_for_shoebox = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension_py3.py deleted file mode 100644 index 8304cbeac402..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_dimension_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class MetricDimension(Model): - """A metric dimension. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The metric dimension name. - :vartype name: str - :ivar display_name: The display name for the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether to export metric to shoebox. - :vartype to_be_exported_for_shoebox: bool - """ - - _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'to_be_exported_for_shoebox': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, - } - - def __init__(self, **kwargs) -> None: - super(MetricDimension, self).__init__(**kwargs) - self.name = None - self.display_name = None - self.to_be_exported_for_shoebox = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties.py deleted file mode 100644 index 6c8713c20666..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class MetricProperties(Model): - """Metric properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar service_specification: The service specifications. - :vartype service_specification: - ~azure.mgmt.media.models.ServiceSpecification - """ - - _validation = { - 'service_specification': {'readonly': True}, - } - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, - } - - def __init__(self, **kwargs): - super(MetricProperties, self).__init__(**kwargs) - self.service_specification = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties_py3.py deleted file mode 100644 index 39e9393415d1..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_properties_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# 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.serialization import Model - - -class MetricProperties(Model): - """Metric properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar service_specification: The service specifications. - :vartype service_specification: - ~azure.mgmt.media.models.ServiceSpecification - """ - - _validation = { - 'service_specification': {'readonly': True}, - } - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, - } - - def __init__(self, **kwargs) -> None: - super(MetricProperties, self).__init__(**kwargs) - self.service_specification = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_py3.py deleted file mode 100644 index 10b3aed46e8a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/metric_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class Metric(Model): - """A metric emitted by service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The metric name. - :vartype name: str - :ivar display_name: The metric display name. - :vartype display_name: str - :ivar display_description: The metric display description. - :vartype display_description: str - :ivar unit: The metric unit. Possible values include: 'Bytes', 'Count', - 'Milliseconds' - :vartype unit: str or ~azure.mgmt.media.models.MetricUnit - :ivar aggregation_type: The metric aggregation type. Possible values - include: 'Average', 'Count', 'Total' - :vartype aggregation_type: str or - ~azure.mgmt.media.models.MetricAggregationType - :ivar dimensions: The metric dimensions. - :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] - """ - - _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'display_description': {'readonly': True}, - 'unit': {'readonly': True}, - 'aggregation_type': {'readonly': True}, - 'dimensions': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'display_description': {'key': 'displayDescription', 'type': 'str'}, - 'unit': {'key': 'unit', 'type': 'str'}, - 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, - 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, - } - - def __init__(self, **kwargs) -> None: - super(Metric, self).__init__(**kwargs) - self.name = None - self.display_name = None - self.display_description = None - self.unit = None - self.aggregation_type = None - self.dimensions = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format.py deleted file mode 100644 index 36cd267a07ac..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 .multi_bitrate_format import MultiBitrateFormat - - -class Mp4Format(MultiBitrateFormat): - """Describes the properties for an output ISO MP4 file. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - def __init__(self, **kwargs): - super(Mp4Format, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.Mp4Format' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format_py3.py deleted file mode 100644 index 3e2397bce3a7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/mp4_format_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 .multi_bitrate_format_py3 import MultiBitrateFormat - - -class Mp4Format(MultiBitrateFormat): - """Describes the properties for an output ISO MP4 file. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: - super(Mp4Format, self).__init__(filename_pattern=filename_pattern, output_files=output_files, **kwargs) - self.odatatype = '#Microsoft.Media.Mp4Format' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format.py deleted file mode 100644 index 1ca1dc7d1bc2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 .format import Format - - -class MultiBitrateFormat(Format): - """Describes the properties for producing a collection of GOP aligned - multi-bitrate files. The default behavior is to produce one output file for - each video layer which is muxed together with all the audios. The exact - output files produced can be controlled by specifying the outputFiles - collection. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Mp4Format, TransportStreamFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Mp4Format': 'Mp4Format', '#Microsoft.Media.TransportStreamFormat': 'TransportStreamFormat'} - } - - def __init__(self, **kwargs): - super(MultiBitrateFormat, self).__init__(**kwargs) - self.output_files = kwargs.get('output_files', None) - self.odatatype = '#Microsoft.Media.MultiBitrateFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format_py3.py deleted file mode 100644 index d6657f2b213d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/multi_bitrate_format_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 .format_py3 import Format - - -class MultiBitrateFormat(Format): - """Describes the properties for producing a collection of GOP aligned - multi-bitrate files. The default behavior is to produce one output file for - each video layer which is muxed together with all the audios. The exact - output files produced can be controlled by specifying the outputFiles - collection. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Mp4Format, TransportStreamFormat - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Mp4Format': 'Mp4Format', '#Microsoft.Media.TransportStreamFormat': 'TransportStreamFormat'} - } - - def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: - super(MultiBitrateFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) - self.output_files = output_files - self.odatatype = '#Microsoft.Media.MultiBitrateFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption.py deleted file mode 100644 index 6deff4d347ff..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class NoEncryption(Model): - """Class for NoEncryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - } - - def __init__(self, **kwargs): - super(NoEncryption, self).__init__(**kwargs) - self.enabled_protocols = kwargs.get('enabled_protocols', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption_py3.py deleted file mode 100644 index e289bc3f1b9f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/no_encryption_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class NoEncryption(Model): - """Class for NoEncryption scheme. - - :param enabled_protocols: Representing supported protocols - :type enabled_protocols: ~azure.mgmt.media.models.EnabledProtocols - """ - - _attribute_map = { - 'enabled_protocols': {'key': 'enabledProtocols', 'type': 'EnabledProtocols'}, - } - - def __init__(self, *, enabled_protocols=None, **kwargs) -> None: - super(NoEncryption, self).__init__(**kwargs) - self.enabled_protocols = enabled_protocols diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error.py deleted file mode 100644 index 583e385478b2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class ODataError(Model): - """Information about an error. - - :param code: A language-independent error name. - :type code: str - :param message: The error message. - :type message: str - :param target: The target of the error (for example, the name of the - property in error). - :type target: str - :param details: The error details. - :type details: list[~azure.mgmt.media.models.ODataError] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ODataError]'}, - } - - def __init__(self, **kwargs): - super(ODataError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error_py3.py deleted file mode 100644 index 3c2d42fcf2af..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/odata_error_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class ODataError(Model): - """Information about an error. - - :param code: A language-independent error name. - :type code: str - :param message: The error message. - :type message: str - :param target: The target of the error (for example, the name of the - property in error). - :type target: str - :param details: The error details. - :type details: list[~azure.mgmt.media.models.ODataError] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ODataError]'}, - } - - def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, **kwargs) -> None: - super(ODataError, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation.py deleted file mode 100644 index c10dee416561..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class Operation(Model): - """An operation. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The operation name. - :type name: str - :param display: The operation display name. - :type display: ~azure.mgmt.media.models.OperationDisplay - :param origin: Origin of the operation. - :type origin: str - :param properties: Operation properties format. - :type properties: ~azure.mgmt.media.models.MetricProperties - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MetricProperties'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display.py deleted file mode 100644 index 0cd7330e9eda..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class OperationDisplay(Model): - """Operation details. - - :param provider: The service provider. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - :param operation: The operation type. - :type operation: str - :param description: The operation description. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display_py3.py deleted file mode 100644 index b77ea7d07e8a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_display_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class OperationDisplay(Model): - """Operation details. - - :param provider: The service provider. - :type provider: str - :param resource: Resource on which the operation is performed. - :type resource: str - :param operation: The operation type. - :type operation: str - :param description: The operation description. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_paged.py deleted file mode 100644 index 324d893e3f01..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_py3.py deleted file mode 100644 index 7d2026e582f0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/operation_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class Operation(Model): - """An operation. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The operation name. - :type name: str - :param display: The operation display name. - :type display: ~azure.mgmt.media.models.OperationDisplay - :param origin: Origin of the operation. - :type origin: str - :param properties: Operation properties format. - :type properties: ~azure.mgmt.media.models.MetricProperties - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MetricProperties'}, - } - - def __init__(self, *, name: str, display=None, origin: str=None, properties=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.properties = properties diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file.py deleted file mode 100644 index 6d6ec390b536..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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.serialization import Model - - -class OutputFile(Model): - """Represents an output file produced. - - All required parameters must be populated in order to send to Azure. - - :param labels: Required. The list of labels that describe how the encoder - should multiplex video and audio into an output file. For example, if the - encoder is producing two video layers with labels v1 and v2, and one audio - layer with label a1, then an array like '[v1, a1]' tells the encoder to - produce an output file with the video track represented by v1 and the - audio track represented by a1. - :type labels: list[str] - """ - - _validation = { - 'labels': {'required': True}, - } - - _attribute_map = { - 'labels': {'key': 'labels', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(OutputFile, self).__init__(**kwargs) - self.labels = kwargs.get('labels', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py deleted file mode 100644 index 7986361806ba..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/output_file_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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.serialization import Model - - -class OutputFile(Model): - """Represents an output file produced. - - All required parameters must be populated in order to send to Azure. - - :param labels: Required. The list of labels that describe how the encoder - should multiplex video and audio into an output file. For example, if the - encoder is producing two video layers with labels v1 and v2, and one audio - layer with label a1, then an array like '[v1, a1]' tells the encoder to - produce an output file with the video track represented by v1 and the - audio track represented by a1. - :type labels: list[str] - """ - - _validation = { - 'labels': {'required': True}, - } - - _attribute_map = { - 'labels': {'key': 'labels', 'type': '[str]'}, - } - - def __init__(self, *, labels, **kwargs) -> None: - super(OutputFile, self).__init__(**kwargs) - self.labels = labels diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay.py deleted file mode 100644 index 734fc0fef46d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay.py +++ /dev/null @@ -1,83 +0,0 @@ -# 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.serialization import Model - - -class Overlay(Model): - """Base type for all overlays - image, audio or video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AudioOverlay, VideoOverlay - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.AudioOverlay': 'AudioOverlay', '#Microsoft.Media.VideoOverlay': 'VideoOverlay'} - } - - def __init__(self, **kwargs): - super(Overlay, self).__init__(**kwargs) - self.input_label = kwargs.get('input_label', None) - self.start = kwargs.get('start', None) - self.end = kwargs.get('end', None) - self.fade_in_duration = kwargs.get('fade_in_duration', None) - self.fade_out_duration = kwargs.get('fade_out_duration', None) - self.audio_gain_level = kwargs.get('audio_gain_level', None) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay_py3.py deleted file mode 100644 index adce5be8b52a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/overlay_py3.py +++ /dev/null @@ -1,83 +0,0 @@ -# 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.serialization import Model - - -class Overlay(Model): - """Base type for all overlays - image, audio or video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AudioOverlay, VideoOverlay - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.AudioOverlay': 'AudioOverlay', '#Microsoft.Media.VideoOverlay': 'VideoOverlay'} - } - - def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, **kwargs) -> None: - super(Overlay, self).__init__(**kwargs) - self.input_label = input_label - self.start = start - self.end = end - self.fade_in_duration = fade_in_duration - self.fade_out_duration = fade_out_duration - self.audio_gain_level = audio_gain_level - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format.py deleted file mode 100644 index 8e242e416dd2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .image_format import ImageFormat - - -class PngFormat(ImageFormat): - """Describes the settings for producing PNG thumbnails. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PngFormat, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.PngFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format_py3.py deleted file mode 100644 index 1cbe8b042b41..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_format_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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 .image_format_py3 import ImageFormat - - -class PngFormat(ImageFormat): - """Describes the settings for producing PNG thumbnails. - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, filename_pattern: str, **kwargs) -> None: - super(PngFormat, self).__init__(filename_pattern=filename_pattern, **kwargs) - self.odatatype = '#Microsoft.Media.PngFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image.py deleted file mode 100644 index 3f1c90f83fe5..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image.py +++ /dev/null @@ -1,76 +0,0 @@ -# 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 .image import Image - - -class PngImage(Image): - """Describes the properties for producing a series of PNG images from the - input video. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - :param layers: A collection of output PNG image layers to be produced by - the encoder. - :type layers: list[~azure.mgmt.media.models.PngLayer] - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[PngLayer]'}, - } - - def __init__(self, **kwargs): - super(PngImage, self).__init__(**kwargs) - self.layers = kwargs.get('layers', None) - self.odatatype = '#Microsoft.Media.PngImage' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image_py3.py deleted file mode 100644 index 4dee64d04d6e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_image_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# 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 .image_py3 import Image - - -class PngImage(Image): - """Describes the properties for producing a series of PNG images from the - input video. - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - :param start: Required. The position in the input video from where to - start generating thumbnails. The value can be in absolute timestamp (ISO - 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - or a relative value (For example, 1%). Also supports a macro {Best}, which - tells the encoder to select the best thumbnail from the first few seconds - of the video. - :type start: str - :param step: The intervals at which thumbnails are generated. The value - can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 - seconds), or a frame count (For example, 30 for every 30 frames), or a - relative value (For example, 1%). - :type step: str - :param range: The position in the input video at which to stop generating - thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S - to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 - to stop at the 300th frame), or a relative value (For example, 100%). - :type range: str - :param layers: A collection of output PNG image layers to be produced by - the encoder. - :type layers: list[~azure.mgmt.media.models.PngLayer] - """ - - _validation = { - 'odatatype': {'required': True}, - 'start': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'str'}, - 'step': {'key': 'step', 'type': 'str'}, - 'range': {'key': 'range', 'type': 'str'}, - 'layers': {'key': 'layers', 'type': '[PngLayer]'}, - } - - def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, step: str=None, range: str=None, layers=None, **kwargs) -> None: - super(PngImage, self).__init__(label=label, key_frame_interval=key_frame_interval, stretch_mode=stretch_mode, start=start, step=step, range=range, **kwargs) - self.layers = layers - self.odatatype = '#Microsoft.Media.PngImage' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer.py deleted file mode 100644 index b0a8d4defaea..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 .layer import Layer - - -class PngLayer(Layer): - """Describes the settings to produce a PNG image from the input video. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PngLayer, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.PngLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer_py3.py deleted file mode 100644 index 1dd03ac3857b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/png_layer_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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 .layer_py3 import Layer - - -class PngLayer(Layer): - """Describes the settings to produce a PNG image from the input video. - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - def __init__(self, *, width: str=None, height: str=None, label: str=None, **kwargs) -> None: - super(PngLayer, self).__init__(width=width, height=height, label=label, **kwargs) - self.odatatype = '#Microsoft.Media.PngLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range.py deleted file mode 100644 index 9e6e119a3f0d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class PresentationTimeRange(Model): - """The presentation time range, this is asset related and not recommended for - Account Filter. - - :param start_timestamp: The absolute start time boundary. - :type start_timestamp: long - :param end_timestamp: The absolute end time boundary. - :type end_timestamp: long - :param presentation_window_duration: The relative to end sliding window. - :type presentation_window_duration: long - :param live_backoff_duration: The relative to end right edge. - :type live_backoff_duration: long - :param timescale: The time scale of time stamps. - :type timescale: long - :param force_end_timestamp: The indicator of forcing exsiting of end time - stamp. - :type force_end_timestamp: bool - """ - - _attribute_map = { - 'start_timestamp': {'key': 'startTimestamp', 'type': 'long'}, - 'end_timestamp': {'key': 'endTimestamp', 'type': 'long'}, - 'presentation_window_duration': {'key': 'presentationWindowDuration', 'type': 'long'}, - 'live_backoff_duration': {'key': 'liveBackoffDuration', 'type': 'long'}, - 'timescale': {'key': 'timescale', 'type': 'long'}, - 'force_end_timestamp': {'key': 'forceEndTimestamp', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(PresentationTimeRange, self).__init__(**kwargs) - self.start_timestamp = kwargs.get('start_timestamp', None) - self.end_timestamp = kwargs.get('end_timestamp', None) - self.presentation_window_duration = kwargs.get('presentation_window_duration', None) - self.live_backoff_duration = kwargs.get('live_backoff_duration', None) - self.timescale = kwargs.get('timescale', None) - self.force_end_timestamp = kwargs.get('force_end_timestamp', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range_py3.py deleted file mode 100644 index db3a2aeae583..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/presentation_time_range_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class PresentationTimeRange(Model): - """The presentation time range, this is asset related and not recommended for - Account Filter. - - :param start_timestamp: The absolute start time boundary. - :type start_timestamp: long - :param end_timestamp: The absolute end time boundary. - :type end_timestamp: long - :param presentation_window_duration: The relative to end sliding window. - :type presentation_window_duration: long - :param live_backoff_duration: The relative to end right edge. - :type live_backoff_duration: long - :param timescale: The time scale of time stamps. - :type timescale: long - :param force_end_timestamp: The indicator of forcing exsiting of end time - stamp. - :type force_end_timestamp: bool - """ - - _attribute_map = { - 'start_timestamp': {'key': 'startTimestamp', 'type': 'long'}, - 'end_timestamp': {'key': 'endTimestamp', 'type': 'long'}, - 'presentation_window_duration': {'key': 'presentationWindowDuration', 'type': 'long'}, - 'live_backoff_duration': {'key': 'liveBackoffDuration', 'type': 'long'}, - 'timescale': {'key': 'timescale', 'type': 'long'}, - 'force_end_timestamp': {'key': 'forceEndTimestamp', 'type': 'bool'}, - } - - def __init__(self, *, start_timestamp: int=None, end_timestamp: int=None, presentation_window_duration: int=None, live_backoff_duration: int=None, timescale: int=None, force_end_timestamp: bool=None, **kwargs) -> None: - super(PresentationTimeRange, self).__init__(**kwargs) - self.start_timestamp = start_timestamp - self.end_timestamp = end_timestamp - self.presentation_window_duration = presentation_window_duration - self.live_backoff_duration = live_backoff_duration - self.timescale = timescale - self.force_end_timestamp = force_end_timestamp diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset.py deleted file mode 100644 index 9f6cba9f8e6c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class Preset(Model): - """Base type for all Presets, which define the recipe or instructions on how - the input media files should be processed. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: FaceDetectorPreset, AudioAnalyzerPreset, - BuiltInStandardEncoderPreset, StandardEncoderPreset - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.FaceDetectorPreset': 'FaceDetectorPreset', '#Microsoft.Media.AudioAnalyzerPreset': 'AudioAnalyzerPreset', '#Microsoft.Media.BuiltInStandardEncoderPreset': 'BuiltInStandardEncoderPreset', '#Microsoft.Media.StandardEncoderPreset': 'StandardEncoderPreset'} - } - - def __init__(self, **kwargs): - super(Preset, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset_py3.py deleted file mode 100644 index 4cbc48fd9a82..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/preset_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class Preset(Model): - """Base type for all Presets, which define the recipe or instructions on how - the input media files should be processed. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: FaceDetectorPreset, AudioAnalyzerPreset, - BuiltInStandardEncoderPreset, StandardEncoderPreset - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.FaceDetectorPreset': 'FaceDetectorPreset', '#Microsoft.Media.AudioAnalyzerPreset': 'AudioAnalyzerPreset', '#Microsoft.Media.BuiltInStandardEncoderPreset': 'BuiltInStandardEncoderPreset', '#Microsoft.Media.StandardEncoderPreset': 'StandardEncoderPreset'} - } - - def __init__(self, **kwargs) -> None: - super(Preset, self).__init__(**kwargs) - self.odatatype = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider.py deleted file mode 100644 index 6e50464ff557..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Provider(Model): - """A resource provider. - - All required parameters must be populated in order to send to Azure. - - :param provider_name: Required. The provider name. - :type provider_name: str - """ - - _validation = { - 'provider_name': {'required': True}, - } - - _attribute_map = { - 'provider_name': {'key': 'providerName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.provider_name = kwargs.get('provider_name', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider_py3.py deleted file mode 100644 index f0513a77ec1b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/provider_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class Provider(Model): - """A resource provider. - - All required parameters must be populated in order to send to Azure. - - :param provider_name: Required. The provider name. - :type provider_name: str - """ - - _validation = { - 'provider_name': {'required': True}, - } - - _attribute_map = { - 'provider_name': {'key': 'providerName', 'type': 'str'}, - } - - def __init__(self, *, provider_name: str, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.provider_name = provider_name diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource.py deleted file mode 100644 index dce280d542e0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 .resource import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. - - 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 - """ - - _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'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource_py3.py deleted file mode 100644 index 2bfbcd84d6f0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/proxy_resource_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 .resource_py3 import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. - - 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 - """ - - _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'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle.py deleted file mode 100644 index 38f04915cd8b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class Rectangle(Model): - """Describes the properties of a rectangular window applied to the input media - before processing it. - - :param left: The number of pixels from the left-margin. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type left: str - :param top: The number of pixels from the top-margin. This can be absolute - pixel value (e.g 100), or relative to the size of the video (For example, - 50%). - :type top: str - :param width: The width of the rectangular region in pixels. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type width: str - :param height: The height of the rectangular region in pixels. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type height: str - """ - - _attribute_map = { - 'left': {'key': 'left', 'type': 'str'}, - 'top': {'key': 'top', 'type': 'str'}, - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Rectangle, self).__init__(**kwargs) - self.left = kwargs.get('left', None) - self.top = kwargs.get('top', None) - self.width = kwargs.get('width', None) - self.height = kwargs.get('height', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle_py3.py deleted file mode 100644 index db1ea8714e53..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/rectangle_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class Rectangle(Model): - """Describes the properties of a rectangular window applied to the input media - before processing it. - - :param left: The number of pixels from the left-margin. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type left: str - :param top: The number of pixels from the top-margin. This can be absolute - pixel value (e.g 100), or relative to the size of the video (For example, - 50%). - :type top: str - :param width: The width of the rectangular region in pixels. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type width: str - :param height: The height of the rectangular region in pixels. This can be - absolute pixel value (e.g 100), or relative to the size of the video (For - example, 50%). - :type height: str - """ - - _attribute_map = { - 'left': {'key': 'left', 'type': 'str'}, - 'top': {'key': 'top', 'type': 'str'}, - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - } - - def __init__(self, *, left: str=None, top: str=None, width: str=None, height: str=None, **kwargs) -> None: - super(Rectangle, self).__init__(**kwargs) - self.left = left - self.top = top - self.width = width - self.height = height diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource.py deleted file mode 100644 index ab33c5d9edf6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Resource(Model): - """The core properties of ARM resources. - - 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 - """ - - _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'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource_py3.py deleted file mode 100644 index 85e76a4dc55a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Resource(Model): - """The core properties of ARM resources. - - 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 - """ - - _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'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification.py deleted file mode 100644 index c1b360d2ee40..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class ServiceSpecification(Model): - """The service metric specifications. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar metric_specifications: List of metric specifications. - :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] - """ - - _validation = { - 'metric_specifications': {'readonly': True}, - } - - _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, - } - - def __init__(self, **kwargs): - super(ServiceSpecification, self).__init__(**kwargs) - self.metric_specifications = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification_py3.py deleted file mode 100644 index c46af945238e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/service_specification_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class ServiceSpecification(Model): - """The service metric specifications. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar metric_specifications: List of metric specifications. - :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] - """ - - _validation = { - 'metric_specifications': {'readonly': True}, - } - - _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, - } - - def __init__(self, **kwargs) -> None: - super(ServiceSpecification, self).__init__(**kwargs) - self.metric_specifications = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset.py deleted file mode 100644 index 875e096e7707..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 .preset import Preset - - -class StandardEncoderPreset(Preset): - """Describes all the settings to be used when encoding the input video with - the Standard Encoder. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param filters: One or more filtering operations that are applied to the - input media before encoding. - :type filters: ~azure.mgmt.media.models.Filters - :param codecs: Required. The list of codecs to be used when encoding the - input video. - :type codecs: list[~azure.mgmt.media.models.Codec] - :param formats: Required. The list of outputs to be produced by the - encoder. - :type formats: list[~azure.mgmt.media.models.Format] - """ - - _validation = { - 'odatatype': {'required': True}, - 'codecs': {'required': True}, - 'formats': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'filters': {'key': 'filters', 'type': 'Filters'}, - 'codecs': {'key': 'codecs', 'type': '[Codec]'}, - 'formats': {'key': 'formats', 'type': '[Format]'}, - } - - def __init__(self, **kwargs): - super(StandardEncoderPreset, self).__init__(**kwargs) - self.filters = kwargs.get('filters', None) - self.codecs = kwargs.get('codecs', None) - self.formats = kwargs.get('formats', None) - self.odatatype = '#Microsoft.Media.StandardEncoderPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset_py3.py deleted file mode 100644 index 23f9592716bc..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/standard_encoder_preset_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 .preset_py3 import Preset - - -class StandardEncoderPreset(Preset): - """Describes all the settings to be used when encoding the input video with - the Standard Encoder. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param filters: One or more filtering operations that are applied to the - input media before encoding. - :type filters: ~azure.mgmt.media.models.Filters - :param codecs: Required. The list of codecs to be used when encoding the - input video. - :type codecs: list[~azure.mgmt.media.models.Codec] - :param formats: Required. The list of outputs to be produced by the - encoder. - :type formats: list[~azure.mgmt.media.models.Format] - """ - - _validation = { - 'odatatype': {'required': True}, - 'codecs': {'required': True}, - 'formats': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'filters': {'key': 'filters', 'type': 'Filters'}, - 'codecs': {'key': 'codecs', 'type': '[Codec]'}, - 'formats': {'key': 'formats', 'type': '[Format]'}, - } - - def __init__(self, *, codecs, formats, filters=None, **kwargs) -> None: - super(StandardEncoderPreset, self).__init__(**kwargs) - self.filters = filters - self.codecs = codecs - self.formats = formats - self.odatatype = '#Microsoft.Media.StandardEncoderPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account.py deleted file mode 100644 index a71897fb1a28..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class StorageAccount(Model): - """The storage account details. - - All required parameters must be populated in order to send to Azure. - - :param id: The ID of the storage account resource. Media Services relies - on tables and queues as well as blobs, so the primary storage account must - be a Standard Storage account (either Microsoft.ClassicStorage or - Microsoft.Storage). Blob only storage accounts can be added as secondary - storage accounts. - :type id: str - :param type: Required. The type of the storage account. Possible values - include: 'Primary', 'Secondary' - :type type: str or ~azure.mgmt.media.models.StorageAccountType - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StorageAccount, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.type = kwargs.get('type', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account_py3.py deleted file mode 100644 index 563be683e37e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_account_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class StorageAccount(Model): - """The storage account details. - - All required parameters must be populated in order to send to Azure. - - :param id: The ID of the storage account resource. Media Services relies - on tables and queues as well as blobs, so the primary storage account must - be a Standard Storage account (either Microsoft.ClassicStorage or - Microsoft.Storage). Blob only storage accounts can be added as secondary - storage accounts. - :type id: str - :param type: Required. The type of the storage account. Possible values - include: 'Primary', 'Secondary' - :type type: str or ~azure.mgmt.media.models.StorageAccountType - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, type, id: str=None, **kwargs) -> None: - super(StorageAccount, self).__init__(**kwargs) - self.id = id - self.type = type diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data.py deleted file mode 100644 index b5dd5feb9bda..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class StorageEncryptedAssetDecryptionData(Model): - """Data needed to decrypt asset files encrypted with legacy storage - encryption. - - :param key: The Asset File storage encryption key. - :type key: bytearray - :param asset_file_encryption_metadata: Asset File encryption metadata. - :type asset_file_encryption_metadata: - list[~azure.mgmt.media.models.AssetFileEncryptionMetadata] - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'bytearray'}, - 'asset_file_encryption_metadata': {'key': 'assetFileEncryptionMetadata', 'type': '[AssetFileEncryptionMetadata]'}, - } - - def __init__(self, **kwargs): - super(StorageEncryptedAssetDecryptionData, self).__init__(**kwargs) - self.key = kwargs.get('key', None) - self.asset_file_encryption_metadata = kwargs.get('asset_file_encryption_metadata', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data_py3.py deleted file mode 100644 index 2180f3000c68..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/storage_encrypted_asset_decryption_data_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class StorageEncryptedAssetDecryptionData(Model): - """Data needed to decrypt asset files encrypted with legacy storage - encryption. - - :param key: The Asset File storage encryption key. - :type key: bytearray - :param asset_file_encryption_metadata: Asset File encryption metadata. - :type asset_file_encryption_metadata: - list[~azure.mgmt.media.models.AssetFileEncryptionMetadata] - """ - - _attribute_map = { - 'key': {'key': 'key', 'type': 'bytearray'}, - 'asset_file_encryption_metadata': {'key': 'assetFileEncryptionMetadata', 'type': '[AssetFileEncryptionMetadata]'}, - } - - def __init__(self, *, key: bytearray=None, asset_file_encryption_metadata=None, **kwargs) -> None: - super(StorageEncryptedAssetDecryptionData, self).__init__(**kwargs) - self.key = key - self.asset_file_encryption_metadata = asset_file_encryption_metadata diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint.py deleted file mode 100644 index 9e09f9317e07..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint.py +++ /dev/null @@ -1,131 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class StreamingEndpoint(TrackedResource): - """The StreamingEndpoint. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :param description: The StreamingEndpoint description. - :type description: str - :param scale_units: Required. The number of scale units. Use the Scale - operation to adjust this value. - :type scale_units: int - :param availability_set_name: The name of the AvailabilitySet used with - this StreamingEndpoint for high availability streaming. This value can - only be set at creation time. - :type availability_set_name: str - :param access_control: The access control definition of the - StreamingEndpoint. - :type access_control: - ~azure.mgmt.media.models.StreamingEndpointAccessControl - :param max_cache_age: Max cache age - :type max_cache_age: long - :param custom_host_names: The custom host names of the StreamingEndpoint - :type custom_host_names: list[str] - :ivar host_name: The StreamingEndpoint host name. - :vartype host_name: str - :param cdn_enabled: The CDN enabled flag. - :type cdn_enabled: bool - :param cdn_provider: The CDN provider name. - :type cdn_provider: str - :param cdn_profile: The CDN profile name. - :type cdn_profile: str - :ivar provisioning_state: The provisioning state of the StreamingEndpoint. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the StreamingEndpoint. - Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', - 'Deleting', 'Scaling' - :vartype resource_state: str or - ~azure.mgmt.media.models.StreamingEndpointResourceState - :param cross_site_access_policies: The StreamingEndpoint access policies. - :type cross_site_access_policies: - ~azure.mgmt.media.models.CrossSiteAccessPolicies - :ivar free_trial_end_time: The free trial expiration time. - :vartype free_trial_end_time: datetime - :ivar created: The exact time the StreamingEndpoint was created. - :vartype created: datetime - :ivar last_modified: The exact time the StreamingEndpoint was last - modified. - :vartype last_modified: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'scale_units': {'required': True}, - 'host_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - 'free_trial_end_time': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'scale_units': {'key': 'properties.scaleUnits', 'type': 'int'}, - 'availability_set_name': {'key': 'properties.availabilitySetName', 'type': 'str'}, - 'access_control': {'key': 'properties.accessControl', 'type': 'StreamingEndpointAccessControl'}, - 'max_cache_age': {'key': 'properties.maxCacheAge', 'type': 'long'}, - 'custom_host_names': {'key': 'properties.customHostNames', 'type': '[str]'}, - 'host_name': {'key': 'properties.hostName', 'type': 'str'}, - 'cdn_enabled': {'key': 'properties.cdnEnabled', 'type': 'bool'}, - 'cdn_provider': {'key': 'properties.cdnProvider', 'type': 'str'}, - 'cdn_profile': {'key': 'properties.cdnProfile', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'StreamingEndpointResourceState'}, - 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, - 'free_trial_end_time': {'key': 'properties.freeTrialEndTime', 'type': 'iso-8601'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(StreamingEndpoint, self).__init__(**kwargs) - self.description = kwargs.get('description', None) - self.scale_units = kwargs.get('scale_units', None) - self.availability_set_name = kwargs.get('availability_set_name', None) - self.access_control = kwargs.get('access_control', None) - self.max_cache_age = kwargs.get('max_cache_age', None) - self.custom_host_names = kwargs.get('custom_host_names', None) - self.host_name = None - self.cdn_enabled = kwargs.get('cdn_enabled', None) - self.cdn_provider = kwargs.get('cdn_provider', None) - self.cdn_profile = kwargs.get('cdn_profile', None) - self.provisioning_state = None - self.resource_state = None - self.cross_site_access_policies = kwargs.get('cross_site_access_policies', None) - self.free_trial_end_time = None - self.created = None - self.last_modified = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control.py deleted file mode 100644 index 5e15b30df7fd..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class StreamingEndpointAccessControl(Model): - """StreamingEndpoint access control definition. - - :param akamai: The access control of Akamai - :type akamai: ~azure.mgmt.media.models.AkamaiAccessControl - :param ip: The IP access control of the StreamingEndpoint. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'akamai': {'key': 'akamai', 'type': 'AkamaiAccessControl'}, - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, **kwargs): - super(StreamingEndpointAccessControl, self).__init__(**kwargs) - self.akamai = kwargs.get('akamai', None) - self.ip = kwargs.get('ip', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control_py3.py deleted file mode 100644 index 87030a6ad58a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_access_control_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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.serialization import Model - - -class StreamingEndpointAccessControl(Model): - """StreamingEndpoint access control definition. - - :param akamai: The access control of Akamai - :type akamai: ~azure.mgmt.media.models.AkamaiAccessControl - :param ip: The IP access control of the StreamingEndpoint. - :type ip: ~azure.mgmt.media.models.IPAccessControl - """ - - _attribute_map = { - 'akamai': {'key': 'akamai', 'type': 'AkamaiAccessControl'}, - 'ip': {'key': 'ip', 'type': 'IPAccessControl'}, - } - - def __init__(self, *, akamai=None, ip=None, **kwargs) -> None: - super(StreamingEndpointAccessControl, self).__init__(**kwargs) - self.akamai = akamai - self.ip = ip diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_paged.py deleted file mode 100644 index 6579e32a0efe..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 StreamingEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`StreamingEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StreamingEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(StreamingEndpointPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_py3.py deleted file mode 100644 index 155128da3000..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_endpoint_py3.py +++ /dev/null @@ -1,131 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class StreamingEndpoint(TrackedResource): - """The StreamingEndpoint. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :param description: The StreamingEndpoint description. - :type description: str - :param scale_units: Required. The number of scale units. Use the Scale - operation to adjust this value. - :type scale_units: int - :param availability_set_name: The name of the AvailabilitySet used with - this StreamingEndpoint for high availability streaming. This value can - only be set at creation time. - :type availability_set_name: str - :param access_control: The access control definition of the - StreamingEndpoint. - :type access_control: - ~azure.mgmt.media.models.StreamingEndpointAccessControl - :param max_cache_age: Max cache age - :type max_cache_age: long - :param custom_host_names: The custom host names of the StreamingEndpoint - :type custom_host_names: list[str] - :ivar host_name: The StreamingEndpoint host name. - :vartype host_name: str - :param cdn_enabled: The CDN enabled flag. - :type cdn_enabled: bool - :param cdn_provider: The CDN provider name. - :type cdn_provider: str - :param cdn_profile: The CDN profile name. - :type cdn_profile: str - :ivar provisioning_state: The provisioning state of the StreamingEndpoint. - :vartype provisioning_state: str - :ivar resource_state: The resource state of the StreamingEndpoint. - Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', - 'Deleting', 'Scaling' - :vartype resource_state: str or - ~azure.mgmt.media.models.StreamingEndpointResourceState - :param cross_site_access_policies: The StreamingEndpoint access policies. - :type cross_site_access_policies: - ~azure.mgmt.media.models.CrossSiteAccessPolicies - :ivar free_trial_end_time: The free trial expiration time. - :vartype free_trial_end_time: datetime - :ivar created: The exact time the StreamingEndpoint was created. - :vartype created: datetime - :ivar last_modified: The exact time the StreamingEndpoint was last - modified. - :vartype last_modified: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'scale_units': {'required': True}, - 'host_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - 'free_trial_end_time': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'scale_units': {'key': 'properties.scaleUnits', 'type': 'int'}, - 'availability_set_name': {'key': 'properties.availabilitySetName', 'type': 'str'}, - 'access_control': {'key': 'properties.accessControl', 'type': 'StreamingEndpointAccessControl'}, - 'max_cache_age': {'key': 'properties.maxCacheAge', 'type': 'long'}, - 'custom_host_names': {'key': 'properties.customHostNames', 'type': '[str]'}, - 'host_name': {'key': 'properties.hostName', 'type': 'str'}, - 'cdn_enabled': {'key': 'properties.cdnEnabled', 'type': 'bool'}, - 'cdn_provider': {'key': 'properties.cdnProvider', 'type': 'str'}, - 'cdn_profile': {'key': 'properties.cdnProfile', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'StreamingEndpointResourceState'}, - 'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'}, - 'free_trial_end_time': {'key': 'properties.freeTrialEndTime', 'type': 'iso-8601'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - } - - def __init__(self, *, scale_units: int, tags=None, location: str=None, description: str=None, availability_set_name: str=None, access_control=None, max_cache_age: int=None, custom_host_names=None, cdn_enabled: bool=None, cdn_provider: str=None, cdn_profile: str=None, cross_site_access_policies=None, **kwargs) -> None: - super(StreamingEndpoint, self).__init__(tags=tags, location=location, **kwargs) - self.description = description - self.scale_units = scale_units - self.availability_set_name = availability_set_name - self.access_control = access_control - self.max_cache_age = max_cache_age - self.custom_host_names = custom_host_names - self.host_name = None - self.cdn_enabled = cdn_enabled - self.cdn_provider = cdn_provider - self.cdn_profile = cdn_profile - self.provisioning_state = None - self.resource_state = None - self.cross_site_access_policies = cross_site_access_policies - self.free_trial_end_time = None - self.created = None - self.last_modified = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit.py deleted file mode 100644 index 4f74310062f3..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class StreamingEntityScaleUnit(Model): - """scale units definition. - - :param scale_unit: The scale unit number of the StreamingEndpoint. - :type scale_unit: int - """ - - _attribute_map = { - 'scale_unit': {'key': 'scaleUnit', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(StreamingEntityScaleUnit, self).__init__(**kwargs) - self.scale_unit = kwargs.get('scale_unit', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit_py3.py deleted file mode 100644 index a419e3158946..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class StreamingEntityScaleUnit(Model): - """scale units definition. - - :param scale_unit: The scale unit number of the StreamingEndpoint. - :type scale_unit: int - """ - - _attribute_map = { - 'scale_unit': {'key': 'scaleUnit', 'type': 'int'}, - } - - def __init__(self, *, scale_unit: int=None, **kwargs) -> None: - super(StreamingEntityScaleUnit, self).__init__(**kwargs) - self.scale_unit = scale_unit diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator.py deleted file mode 100644 index d307dc184978..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator.py +++ /dev/null @@ -1,98 +0,0 @@ -# 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 StreamingLocator(ProxyResource): - """A Streaming Locator resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 asset_name: Required. Asset Name - :type asset_name: str - :ivar created: The creation time of the Streaming Locator. - :vartype created: datetime - :param start_time: The start time of the Streaming Locator. - :type start_time: datetime - :param end_time: The end time of the Streaming Locator. - :type end_time: datetime - :param streaming_locator_id: The StreamingLocatorId of the Streaming - Locator. - :type streaming_locator_id: str - :param streaming_policy_name: Required. Name of the Streaming Policy used - by this Streaming Locator. Either specify the name of Streaming Policy you - created or use one of the predefined Streaming Policies. The predefined - Streaming Policies available are: 'Predefined_DownloadOnly', - 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', - 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and - 'Predefined_MultiDrmStreaming' - :type streaming_policy_name: str - :param default_content_key_policy_name: Name of the default - ContentKeyPolicy used by this Streaming Locator. - :type default_content_key_policy_name: str - :param content_keys: The ContentKeys used by this Streaming Locator. - :type content_keys: - list[~azure.mgmt.media.models.StreamingLocatorContentKey] - :param alternative_media_id: Alternative Media ID of this Streaming - Locator - :type alternative_media_id: str - :param filters: A list of asset or account filters which apply to this - streaming locator - :type filters: list[str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_name': {'required': True}, - 'created': {'readonly': True}, - 'streaming_policy_name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'streaming_locator_id': {'key': 'properties.streamingLocatorId', 'type': 'str'}, - 'streaming_policy_name': {'key': 'properties.streamingPolicyName', 'type': 'str'}, - 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, - 'content_keys': {'key': 'properties.contentKeys', 'type': '[StreamingLocatorContentKey]'}, - 'alternative_media_id': {'key': 'properties.alternativeMediaId', 'type': 'str'}, - 'filters': {'key': 'properties.filters', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(StreamingLocator, self).__init__(**kwargs) - self.asset_name = kwargs.get('asset_name', None) - self.created = None - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.streaming_locator_id = kwargs.get('streaming_locator_id', None) - self.streaming_policy_name = kwargs.get('streaming_policy_name', None) - self.default_content_key_policy_name = kwargs.get('default_content_key_policy_name', None) - self.content_keys = kwargs.get('content_keys', None) - self.alternative_media_id = kwargs.get('alternative_media_id', None) - self.filters = kwargs.get('filters', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key.py deleted file mode 100644 index 60c8d286f8c2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class StreamingLocatorContentKey(Model): - """Class for content key in Streaming Locator. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. ID of Content Key - :type id: str - :ivar type: Encryption type of Content Key. Possible values include: - 'CommonEncryptionCenc', 'CommonEncryptionCbcs', 'EnvelopeEncryption' - :vartype type: str or - ~azure.mgmt.media.models.StreamingLocatorContentKeyType - :param label_reference_in_streaming_policy: Label of Content Key as - specified in the Streaming Policy - :type label_reference_in_streaming_policy: str - :param value: Value of Content Key - :type value: str - :ivar policy_name: ContentKeyPolicy used by Content Key - :vartype policy_name: str - :ivar tracks: Tracks which use this Content Key - :vartype tracks: list[~azure.mgmt.media.models.TrackSelection] - """ - - _validation = { - 'id': {'required': True}, - 'type': {'readonly': True}, - 'policy_name': {'readonly': True}, - 'tracks': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'label_reference_in_streaming_policy': {'key': 'labelReferenceInStreamingPolicy', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, - } - - def __init__(self, **kwargs): - super(StreamingLocatorContentKey, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.type = None - self.label_reference_in_streaming_policy = kwargs.get('label_reference_in_streaming_policy', None) - self.value = kwargs.get('value', None) - self.policy_name = None - self.tracks = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key_py3.py deleted file mode 100644 index f1993c7f472a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_content_key_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# 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.serialization import Model - - -class StreamingLocatorContentKey(Model): - """Class for content key in Streaming Locator. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. ID of Content Key - :type id: str - :ivar type: Encryption type of Content Key. Possible values include: - 'CommonEncryptionCenc', 'CommonEncryptionCbcs', 'EnvelopeEncryption' - :vartype type: str or - ~azure.mgmt.media.models.StreamingLocatorContentKeyType - :param label_reference_in_streaming_policy: Label of Content Key as - specified in the Streaming Policy - :type label_reference_in_streaming_policy: str - :param value: Value of Content Key - :type value: str - :ivar policy_name: ContentKeyPolicy used by Content Key - :vartype policy_name: str - :ivar tracks: Tracks which use this Content Key - :vartype tracks: list[~azure.mgmt.media.models.TrackSelection] - """ - - _validation = { - 'id': {'required': True}, - 'type': {'readonly': True}, - 'policy_name': {'readonly': True}, - 'tracks': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'label_reference_in_streaming_policy': {'key': 'labelReferenceInStreamingPolicy', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, - } - - def __init__(self, *, id: str, label_reference_in_streaming_policy: str=None, value: str=None, **kwargs) -> None: - super(StreamingLocatorContentKey, self).__init__(**kwargs) - self.id = id - self.type = None - self.label_reference_in_streaming_policy = label_reference_in_streaming_policy - self.value = value - self.policy_name = None - self.tracks = None diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_paged.py deleted file mode 100644 index def5109f4443..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 StreamingLocatorPaged(Paged): - """ - A paging container for iterating over a list of :class:`StreamingLocator ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StreamingLocator]'} - } - - def __init__(self, *args, **kwargs): - - super(StreamingLocatorPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_py3.py deleted file mode 100644 index 25254abf608c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_locator_py3.py +++ /dev/null @@ -1,98 +0,0 @@ -# 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_py3 import ProxyResource - - -class StreamingLocator(ProxyResource): - """A Streaming Locator resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 asset_name: Required. Asset Name - :type asset_name: str - :ivar created: The creation time of the Streaming Locator. - :vartype created: datetime - :param start_time: The start time of the Streaming Locator. - :type start_time: datetime - :param end_time: The end time of the Streaming Locator. - :type end_time: datetime - :param streaming_locator_id: The StreamingLocatorId of the Streaming - Locator. - :type streaming_locator_id: str - :param streaming_policy_name: Required. Name of the Streaming Policy used - by this Streaming Locator. Either specify the name of Streaming Policy you - created or use one of the predefined Streaming Policies. The predefined - Streaming Policies available are: 'Predefined_DownloadOnly', - 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', - 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and - 'Predefined_MultiDrmStreaming' - :type streaming_policy_name: str - :param default_content_key_policy_name: Name of the default - ContentKeyPolicy used by this Streaming Locator. - :type default_content_key_policy_name: str - :param content_keys: The ContentKeys used by this Streaming Locator. - :type content_keys: - list[~azure.mgmt.media.models.StreamingLocatorContentKey] - :param alternative_media_id: Alternative Media ID of this Streaming - Locator - :type alternative_media_id: str - :param filters: A list of asset or account filters which apply to this - streaming locator - :type filters: list[str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'asset_name': {'required': True}, - 'created': {'readonly': True}, - 'streaming_policy_name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'asset_name': {'key': 'properties.assetName', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'streaming_locator_id': {'key': 'properties.streamingLocatorId', 'type': 'str'}, - 'streaming_policy_name': {'key': 'properties.streamingPolicyName', 'type': 'str'}, - 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, - 'content_keys': {'key': 'properties.contentKeys', 'type': '[StreamingLocatorContentKey]'}, - 'alternative_media_id': {'key': 'properties.alternativeMediaId', 'type': 'str'}, - 'filters': {'key': 'properties.filters', 'type': '[str]'}, - } - - def __init__(self, *, asset_name: str, streaming_policy_name: str, start_time=None, end_time=None, streaming_locator_id: str=None, default_content_key_policy_name: str=None, content_keys=None, alternative_media_id: str=None, filters=None, **kwargs) -> None: - super(StreamingLocator, self).__init__(**kwargs) - self.asset_name = asset_name - self.created = None - self.start_time = start_time - self.end_time = end_time - self.streaming_locator_id = streaming_locator_id - self.streaming_policy_name = streaming_policy_name - self.default_content_key_policy_name = default_content_key_policy_name - self.content_keys = content_keys - self.alternative_media_id = alternative_media_id - self.filters = filters diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path.py deleted file mode 100644 index 36b1e5f4233a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class StreamingPath(Model): - """Class of paths for streaming. - - All required parameters must be populated in order to send to Azure. - - :param streaming_protocol: Required. Streaming protocol. Possible values - include: 'Hls', 'Dash', 'SmoothStreaming', 'Download' - :type streaming_protocol: str or - ~azure.mgmt.media.models.StreamingPolicyStreamingProtocol - :param encryption_scheme: Required. Encryption scheme. Possible values - include: 'NoEncryption', 'EnvelopeEncryption', 'CommonEncryptionCenc', - 'CommonEncryptionCbcs' - :type encryption_scheme: str or ~azure.mgmt.media.models.EncryptionScheme - :param paths: Streaming paths for each protocol and encryptionScheme pair - :type paths: list[str] - """ - - _validation = { - 'streaming_protocol': {'required': True}, - 'encryption_scheme': {'required': True}, - } - - _attribute_map = { - 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, - 'encryption_scheme': {'key': 'encryptionScheme', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(StreamingPath, self).__init__(**kwargs) - self.streaming_protocol = kwargs.get('streaming_protocol', None) - self.encryption_scheme = kwargs.get('encryption_scheme', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py deleted file mode 100644 index 6cfb15e6aac9..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class StreamingPath(Model): - """Class of paths for streaming. - - All required parameters must be populated in order to send to Azure. - - :param streaming_protocol: Required. Streaming protocol. Possible values - include: 'Hls', 'Dash', 'SmoothStreaming', 'Download' - :type streaming_protocol: str or - ~azure.mgmt.media.models.StreamingPolicyStreamingProtocol - :param encryption_scheme: Required. Encryption scheme. Possible values - include: 'NoEncryption', 'EnvelopeEncryption', 'CommonEncryptionCenc', - 'CommonEncryptionCbcs' - :type encryption_scheme: str or ~azure.mgmt.media.models.EncryptionScheme - :param paths: Streaming paths for each protocol and encryptionScheme pair - :type paths: list[str] - """ - - _validation = { - 'streaming_protocol': {'required': True}, - 'encryption_scheme': {'required': True}, - } - - _attribute_map = { - 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'str'}, - 'encryption_scheme': {'key': 'encryptionScheme', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[str]'}, - } - - def __init__(self, *, streaming_protocol, encryption_scheme, paths=None, **kwargs) -> None: - super(StreamingPath, self).__init__(**kwargs) - self.streaming_protocol = streaming_protocol - self.encryption_scheme = encryption_scheme - self.paths = paths diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy.py deleted file mode 100644 index 260d68972a37..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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 StreamingPolicy(ProxyResource): - """A Streaming Policy resource. - - 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 - :ivar created: Creation time of Streaming Policy - :vartype created: datetime - :param default_content_key_policy_name: Default ContentKey used by current - Streaming Policy - :type default_content_key_policy_name: str - :param envelope_encryption: Configuration of EnvelopeEncryption - :type envelope_encryption: ~azure.mgmt.media.models.EnvelopeEncryption - :param common_encryption_cenc: Configuration of CommonEncryptionCenc - :type common_encryption_cenc: - ~azure.mgmt.media.models.CommonEncryptionCenc - :param common_encryption_cbcs: Configuration of CommonEncryptionCbcs - :type common_encryption_cbcs: - ~azure.mgmt.media.models.CommonEncryptionCbcs - :param no_encryption: Configurations of NoEncryption - :type no_encryption: ~azure.mgmt.media.models.NoEncryption - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, - 'envelope_encryption': {'key': 'properties.envelopeEncryption', 'type': 'EnvelopeEncryption'}, - 'common_encryption_cenc': {'key': 'properties.commonEncryptionCenc', 'type': 'CommonEncryptionCenc'}, - 'common_encryption_cbcs': {'key': 'properties.commonEncryptionCbcs', 'type': 'CommonEncryptionCbcs'}, - 'no_encryption': {'key': 'properties.noEncryption', 'type': 'NoEncryption'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicy, self).__init__(**kwargs) - self.created = None - self.default_content_key_policy_name = kwargs.get('default_content_key_policy_name', None) - self.envelope_encryption = kwargs.get('envelope_encryption', None) - self.common_encryption_cenc = kwargs.get('common_encryption_cenc', None) - self.common_encryption_cbcs = kwargs.get('common_encryption_cbcs', None) - self.no_encryption = kwargs.get('no_encryption', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key.py deleted file mode 100644 index 16127b9be942..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyContentKey(Model): - """Class to specify properties of content key. - - :param label: Label can be used to specify Content Key when creating a - Streaming Locator - :type label: str - :param policy_name: Policy used by Content Key - :type policy_name: str - :param tracks: Tracks which use this content key - :type tracks: list[~azure.mgmt.media.models.TrackSelection] - """ - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicyContentKey, self).__init__(**kwargs) - self.label = kwargs.get('label', None) - self.policy_name = kwargs.get('policy_name', None) - self.tracks = kwargs.get('tracks', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key_py3.py deleted file mode 100644 index 4d8772b15a9c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_key_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyContentKey(Model): - """Class to specify properties of content key. - - :param label: Label can be used to specify Content Key when creating a - Streaming Locator - :type label: str - :param policy_name: Policy used by Content Key - :type policy_name: str - :param tracks: Tracks which use this content key - :type tracks: list[~azure.mgmt.media.models.TrackSelection] - """ - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'tracks': {'key': 'tracks', 'type': '[TrackSelection]'}, - } - - def __init__(self, *, label: str=None, policy_name: str=None, tracks=None, **kwargs) -> None: - super(StreamingPolicyContentKey, self).__init__(**kwargs) - self.label = label - self.policy_name = policy_name - self.tracks = tracks diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys.py deleted file mode 100644 index 8425663f79fa..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyContentKeys(Model): - """Class to specify properties of all content keys in Streaming Policy. - - :param default_key: Default content key for an encryption scheme - :type default_key: ~azure.mgmt.media.models.DefaultKey - :param key_to_track_mappings: Representing tracks needs separate content - key - :type key_to_track_mappings: - list[~azure.mgmt.media.models.StreamingPolicyContentKey] - """ - - _attribute_map = { - 'default_key': {'key': 'defaultKey', 'type': 'DefaultKey'}, - 'key_to_track_mappings': {'key': 'keyToTrackMappings', 'type': '[StreamingPolicyContentKey]'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicyContentKeys, self).__init__(**kwargs) - self.default_key = kwargs.get('default_key', None) - self.key_to_track_mappings = kwargs.get('key_to_track_mappings', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys_py3.py deleted file mode 100644 index d37020aa89b4..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_content_keys_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyContentKeys(Model): - """Class to specify properties of all content keys in Streaming Policy. - - :param default_key: Default content key for an encryption scheme - :type default_key: ~azure.mgmt.media.models.DefaultKey - :param key_to_track_mappings: Representing tracks needs separate content - key - :type key_to_track_mappings: - list[~azure.mgmt.media.models.StreamingPolicyContentKey] - """ - - _attribute_map = { - 'default_key': {'key': 'defaultKey', 'type': 'DefaultKey'}, - 'key_to_track_mappings': {'key': 'keyToTrackMappings', 'type': '[StreamingPolicyContentKey]'}, - } - - def __init__(self, *, default_key=None, key_to_track_mappings=None, **kwargs) -> None: - super(StreamingPolicyContentKeys, self).__init__(**kwargs) - self.default_key = default_key - self.key_to_track_mappings = key_to_track_mappings diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration.py deleted file mode 100644 index a8288b311b66..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyFairPlayConfiguration(Model): - """Class to specify configurations of FairPlay in Streaming Policy. - - All required parameters must be populated in order to send to Azure. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - :param allow_persistent_license: Required. All license to be persistent or - not - :type allow_persistent_license: bool - """ - - _validation = { - 'allow_persistent_license': {'required': True}, - } - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - 'allow_persistent_license': {'key': 'allowPersistentLicense', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicyFairPlayConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) - self.allow_persistent_license = kwargs.get('allow_persistent_license', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration_py3.py deleted file mode 100644 index 90dbf01a080a..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_fair_play_configuration_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyFairPlayConfiguration(Model): - """Class to specify configurations of FairPlay in Streaming Policy. - - All required parameters must be populated in order to send to Azure. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - :param allow_persistent_license: Required. All license to be persistent or - not - :type allow_persistent_license: bool - """ - - _validation = { - 'allow_persistent_license': {'required': True}, - } - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - 'allow_persistent_license': {'key': 'allowPersistentLicense', 'type': 'bool'}, - } - - def __init__(self, *, allow_persistent_license: bool, custom_license_acquisition_url_template: str=None, **kwargs) -> None: - super(StreamingPolicyFairPlayConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = custom_license_acquisition_url_template - self.allow_persistent_license = allow_persistent_license diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_paged.py deleted file mode 100644 index 97426ed7fd01..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 StreamingPolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`StreamingPolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StreamingPolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(StreamingPolicyPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration.py deleted file mode 100644 index 9227f67acdad..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyPlayReadyConfiguration(Model): - """Class to specify configurations of PlayReady in Streaming Policy. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - :param play_ready_custom_attributes: Custom attributes for PlayReady - :type play_ready_custom_attributes: str - """ - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - 'play_ready_custom_attributes': {'key': 'playReadyCustomAttributes', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicyPlayReadyConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) - self.play_ready_custom_attributes = kwargs.get('play_ready_custom_attributes', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration_py3.py deleted file mode 100644 index 4e4105d17d0f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_play_ready_configuration_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyPlayReadyConfiguration(Model): - """Class to specify configurations of PlayReady in Streaming Policy. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - :param play_ready_custom_attributes: Custom attributes for PlayReady - :type play_ready_custom_attributes: str - """ - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - 'play_ready_custom_attributes': {'key': 'playReadyCustomAttributes', 'type': 'str'}, - } - - def __init__(self, *, custom_license_acquisition_url_template: str=None, play_ready_custom_attributes: str=None, **kwargs) -> None: - super(StreamingPolicyPlayReadyConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = custom_license_acquisition_url_template - self.play_ready_custom_attributes = play_ready_custom_attributes diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_py3.py deleted file mode 100644 index fbb416a37f4f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_py3.py +++ /dev/null @@ -1,70 +0,0 @@ -# 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_py3 import ProxyResource - - -class StreamingPolicy(ProxyResource): - """A Streaming Policy resource. - - 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 - :ivar created: Creation time of Streaming Policy - :vartype created: datetime - :param default_content_key_policy_name: Default ContentKey used by current - Streaming Policy - :type default_content_key_policy_name: str - :param envelope_encryption: Configuration of EnvelopeEncryption - :type envelope_encryption: ~azure.mgmt.media.models.EnvelopeEncryption - :param common_encryption_cenc: Configuration of CommonEncryptionCenc - :type common_encryption_cenc: - ~azure.mgmt.media.models.CommonEncryptionCenc - :param common_encryption_cbcs: Configuration of CommonEncryptionCbcs - :type common_encryption_cbcs: - ~azure.mgmt.media.models.CommonEncryptionCbcs - :param no_encryption: Configurations of NoEncryption - :type no_encryption: ~azure.mgmt.media.models.NoEncryption - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'default_content_key_policy_name': {'key': 'properties.defaultContentKeyPolicyName', 'type': 'str'}, - 'envelope_encryption': {'key': 'properties.envelopeEncryption', 'type': 'EnvelopeEncryption'}, - 'common_encryption_cenc': {'key': 'properties.commonEncryptionCenc', 'type': 'CommonEncryptionCenc'}, - 'common_encryption_cbcs': {'key': 'properties.commonEncryptionCbcs', 'type': 'CommonEncryptionCbcs'}, - 'no_encryption': {'key': 'properties.noEncryption', 'type': 'NoEncryption'}, - } - - def __init__(self, *, default_content_key_policy_name: str=None, envelope_encryption=None, common_encryption_cenc=None, common_encryption_cbcs=None, no_encryption=None, **kwargs) -> None: - super(StreamingPolicy, self).__init__(**kwargs) - self.created = None - self.default_content_key_policy_name = default_content_key_policy_name - self.envelope_encryption = envelope_encryption - self.common_encryption_cenc = common_encryption_cenc - self.common_encryption_cbcs = common_encryption_cbcs - self.no_encryption = no_encryption diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration.py deleted file mode 100644 index 83441f90a009..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyWidevineConfiguration(Model): - """Class to specify configurations of Widevine in Streaming Policy. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - """ - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StreamingPolicyWidevineConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = kwargs.get('custom_license_acquisition_url_template', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration_py3.py deleted file mode 100644 index ab3078e8384d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/streaming_policy_widevine_configuration_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# 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.serialization import Model - - -class StreamingPolicyWidevineConfiguration(Model): - """Class to specify configurations of Widevine in Streaming Policy. - - :param custom_license_acquisition_url_template: Template for the URL of - the custom service delivering licenses to end user players. Not required - when using Azure Media Services for issuing licenses. The template - supports replaceable tokens that the service will update at runtime with - the value specific to the request. The currently supported token values - are {AlternativeMediaId}, which is replaced with the value of - StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - replaced with the value of identifier of the key being requested. - :type custom_license_acquisition_url_template: str - """ - - _attribute_map = { - 'custom_license_acquisition_url_template': {'key': 'customLicenseAcquisitionUrlTemplate', 'type': 'str'}, - } - - def __init__(self, *, custom_license_acquisition_url_template: str=None, **kwargs) -> None: - super(StreamingPolicyWidevineConfiguration, self).__init__(**kwargs) - self.custom_license_acquisition_url_template = custom_license_acquisition_url_template diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service.py deleted file mode 100644 index 9b3c07205a2b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 .tracked_resource import TrackedResource - - -class SubscriptionMediaService(TrackedResource): - """A Media Services account. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :ivar media_service_id: The Media Services account ID. - :vartype media_service_id: str - :param storage_accounts: The storage accounts for this resource. - :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'media_service_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, **kwargs): - super(SubscriptionMediaService, self).__init__(**kwargs) - self.media_service_id = None - self.storage_accounts = kwargs.get('storage_accounts', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_paged.py deleted file mode 100644 index 5f3d45f5c9a0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 SubscriptionMediaServicePaged(Paged): - """ - A paging container for iterating over a list of :class:`SubscriptionMediaService ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SubscriptionMediaService]'} - } - - def __init__(self, *args, **kwargs): - - super(SubscriptionMediaServicePaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_py3.py deleted file mode 100644 index fc5df9e2748e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/subscription_media_service_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# 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 .tracked_resource_py3 import TrackedResource - - -class SubscriptionMediaService(TrackedResource): - """A Media Services account. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - :ivar media_service_id: The Media Services account ID. - :vartype media_service_id: str - :param storage_accounts: The storage accounts for this resource. - :type storage_accounts: list[~azure.mgmt.media.models.StorageAccount] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'media_service_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, *, tags=None, location: str=None, storage_accounts=None, **kwargs) -> None: - super(SubscriptionMediaService, self).__init__(tags=tags, location=location, **kwargs) - self.media_service_id = None - self.storage_accounts = storage_accounts diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input.py deleted file mode 100644 index b2a9c154132c..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class SyncStorageKeysInput(Model): - """The input to the sync storage keys request. - - :param id: The ID of the storage account resource. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SyncStorageKeysInput, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input_py3.py deleted file mode 100644 index 45b2364b3fdb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/sync_storage_keys_input_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class SyncStorageKeysInput(Model): - """The input to the sync storage keys request. - - :param id: The ID of the storage account resource. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SyncStorageKeysInput, self).__init__(**kwargs) - self.id = id diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition.py deleted file mode 100644 index 63c2f941a518..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class TrackPropertyCondition(Model): - """Class to specify one track property condition. - - All required parameters must be populated in order to send to Azure. - - :param property: Required. Track property type. Possible values include: - 'Unknown', 'FourCC' - :type property: str or ~azure.mgmt.media.models.TrackPropertyType - :param operation: Required. Track property condition operation. Possible - values include: 'Unknown', 'Equal' - :type operation: str or - ~azure.mgmt.media.models.TrackPropertyCompareOperation - :param value: Track property value - :type value: str - """ - - _validation = { - 'property': {'required': True}, - 'operation': {'required': True}, - } - - _attribute_map = { - 'property': {'key': 'property', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackPropertyCondition, self).__init__(**kwargs) - self.property = kwargs.get('property', None) - self.operation = kwargs.get('operation', None) - self.value = kwargs.get('value', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition_py3.py deleted file mode 100644 index a7ec9f92c376..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_property_condition_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# 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.serialization import Model - - -class TrackPropertyCondition(Model): - """Class to specify one track property condition. - - All required parameters must be populated in order to send to Azure. - - :param property: Required. Track property type. Possible values include: - 'Unknown', 'FourCC' - :type property: str or ~azure.mgmt.media.models.TrackPropertyType - :param operation: Required. Track property condition operation. Possible - values include: 'Unknown', 'Equal' - :type operation: str or - ~azure.mgmt.media.models.TrackPropertyCompareOperation - :param value: Track property value - :type value: str - """ - - _validation = { - 'property': {'required': True}, - 'operation': {'required': True}, - } - - _attribute_map = { - 'property': {'key': 'property', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, property, operation, value: str=None, **kwargs) -> None: - super(TrackPropertyCondition, self).__init__(**kwargs) - self.property = property - self.operation = operation - self.value = value diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection.py deleted file mode 100644 index 3c6cc1eb89f0..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class TrackSelection(Model): - """Class to select a track. - - :param track_selections: TrackSelections is a track property condition - list which can specify track(s) - :type track_selections: - list[~azure.mgmt.media.models.TrackPropertyCondition] - """ - - _attribute_map = { - 'track_selections': {'key': 'trackSelections', 'type': '[TrackPropertyCondition]'}, - } - - def __init__(self, **kwargs): - super(TrackSelection, self).__init__(**kwargs) - self.track_selections = kwargs.get('track_selections', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection_py3.py deleted file mode 100644 index 9a4c79c55584..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/track_selection_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class TrackSelection(Model): - """Class to select a track. - - :param track_selections: TrackSelections is a track property condition - list which can specify track(s) - :type track_selections: - list[~azure.mgmt.media.models.TrackPropertyCondition] - """ - - _attribute_map = { - 'track_selections': {'key': 'trackSelections', 'type': '[TrackPropertyCondition]'}, - } - - def __init__(self, *, track_selections=None, **kwargs) -> None: - super(TrackSelection, self).__init__(**kwargs) - self.track_selections = track_selections diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource.py deleted file mode 100644 index 85bf0d2148a6..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked resource. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - """ - - _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'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource_py3.py deleted file mode 100644 index eb2905a866a2..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/tracked_resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .resource_py3 import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked resource. - - 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 tags: Resource tags. - :type tags: dict[str, str] - :param location: The Azure Region of the resource. - :type location: str - """ - - _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'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, tags=None, location: str=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform.py deleted file mode 100644 index cc6274adc961..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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 Transform(ProxyResource): - """A Transform encapsulates the rules or instructions for generating desired - outputs from input media, such as by transcoding or by extracting insights. - After the Transform is created, it can be applied to input media by - creating Jobs. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar created: The UTC date and time when the Transform was created, in - 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype created: datetime - :param description: An optional verbose description of the Transform. - :type description: str - :ivar last_modified: The UTC date and time when the Transform was last - updated, in 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype last_modified: datetime - :param outputs: Required. An array of one or more TransformOutputs that - the Transform should generate. - :type outputs: list[~azure.mgmt.media.models.TransformOutput] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'outputs': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'outputs': {'key': 'properties.outputs', 'type': '[TransformOutput]'}, - } - - def __init__(self, **kwargs): - super(Transform, self).__init__(**kwargs) - self.created = None - self.description = kwargs.get('description', None) - self.last_modified = None - self.outputs = kwargs.get('outputs', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output.py deleted file mode 100644 index 736aacf60789..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class TransformOutput(Model): - """Describes the properties of a TransformOutput, which are the rules to be - applied while generating the desired output. - - All required parameters must be populated in order to send to Azure. - - :param on_error: A Transform can define more than one outputs. This - property defines what the service should do when one output fails - either - continue to produce other outputs, or, stop the other outputs. The overall - Job state will not reflect failures of outputs that are specified with - 'ContinueJob'. The default is 'StopProcessingJob'. Possible values - include: 'StopProcessingJob', 'ContinueJob' - :type on_error: str or ~azure.mgmt.media.models.OnErrorType - :param relative_priority: Sets the relative priority of the - TransformOutputs within a Transform. This sets the priority that the - service uses for processing TransformOutputs. The default priority is - Normal. Possible values include: 'Low', 'Normal', 'High' - :type relative_priority: str or ~azure.mgmt.media.models.Priority - :param preset: Required. Preset that describes the operations that will be - used to modify, transcode, or extract insights from the source file to - generate the output. - :type preset: ~azure.mgmt.media.models.Preset - """ - - _validation = { - 'preset': {'required': True}, - } - - _attribute_map = { - 'on_error': {'key': 'onError', 'type': 'str'}, - 'relative_priority': {'key': 'relativePriority', 'type': 'str'}, - 'preset': {'key': 'preset', 'type': 'Preset'}, - } - - def __init__(self, **kwargs): - super(TransformOutput, self).__init__(**kwargs) - self.on_error = kwargs.get('on_error', None) - self.relative_priority = kwargs.get('relative_priority', None) - self.preset = kwargs.get('preset', None) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output_py3.py deleted file mode 100644 index 15c246aabf0b..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_output_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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.serialization import Model - - -class TransformOutput(Model): - """Describes the properties of a TransformOutput, which are the rules to be - applied while generating the desired output. - - All required parameters must be populated in order to send to Azure. - - :param on_error: A Transform can define more than one outputs. This - property defines what the service should do when one output fails - either - continue to produce other outputs, or, stop the other outputs. The overall - Job state will not reflect failures of outputs that are specified with - 'ContinueJob'. The default is 'StopProcessingJob'. Possible values - include: 'StopProcessingJob', 'ContinueJob' - :type on_error: str or ~azure.mgmt.media.models.OnErrorType - :param relative_priority: Sets the relative priority of the - TransformOutputs within a Transform. This sets the priority that the - service uses for processing TransformOutputs. The default priority is - Normal. Possible values include: 'Low', 'Normal', 'High' - :type relative_priority: str or ~azure.mgmt.media.models.Priority - :param preset: Required. Preset that describes the operations that will be - used to modify, transcode, or extract insights from the source file to - generate the output. - :type preset: ~azure.mgmt.media.models.Preset - """ - - _validation = { - 'preset': {'required': True}, - } - - _attribute_map = { - 'on_error': {'key': 'onError', 'type': 'str'}, - 'relative_priority': {'key': 'relativePriority', 'type': 'str'}, - 'preset': {'key': 'preset', 'type': 'Preset'}, - } - - def __init__(self, *, preset, on_error=None, relative_priority=None, **kwargs) -> None: - super(TransformOutput, self).__init__(**kwargs) - self.on_error = on_error - self.relative_priority = relative_priority - self.preset = preset diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_paged.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_paged.py deleted file mode 100644 index 0061285b1634..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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 TransformPaged(Paged): - """ - A paging container for iterating over a list of :class:`Transform ` object - """ - - _attribute_map = { - 'next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Transform]'} - } - - def __init__(self, *args, **kwargs): - - super(TransformPaged, self).__init__(*args, **kwargs) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_py3.py deleted file mode 100644 index db6779ca4aed..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transform_py3.py +++ /dev/null @@ -1,69 +0,0 @@ -# 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_py3 import ProxyResource - - -class Transform(ProxyResource): - """A Transform encapsulates the rules or instructions for generating desired - outputs from input media, such as by transcoding or by extracting insights. - After the Transform is created, it can be applied to input media by - creating Jobs. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :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 - :ivar created: The UTC date and time when the Transform was created, in - 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype created: datetime - :param description: An optional verbose description of the Transform. - :type description: str - :ivar last_modified: The UTC date and time when the Transform was last - updated, in 'YYYY-MM-DDThh:mm:ssZ' format. - :vartype last_modified: datetime - :param outputs: Required. An array of one or more TransformOutputs that - the Transform should generate. - :type outputs: list[~azure.mgmt.media.models.TransformOutput] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created': {'readonly': True}, - 'last_modified': {'readonly': True}, - 'outputs': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created': {'key': 'properties.created', 'type': 'iso-8601'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, - 'outputs': {'key': 'properties.outputs', 'type': '[TransformOutput]'}, - } - - def __init__(self, *, outputs, description: str=None, **kwargs) -> None: - super(Transform, self).__init__(**kwargs) - self.created = None - self.description = description - self.last_modified = None - self.outputs = outputs diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format.py deleted file mode 100644 index 0e1f155d27fb..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .multi_bitrate_format import MultiBitrateFormat - - -class TransportStreamFormat(MultiBitrateFormat): - """Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC - 13818-1) output video file(s). - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - def __init__(self, **kwargs): - super(TransportStreamFormat, self).__init__(**kwargs) - self.odatatype = '#Microsoft.Media.TransportStreamFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format_py3.py deleted file mode 100644 index b71dd8c3052f..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/transport_stream_format_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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 .multi_bitrate_format_py3 import MultiBitrateFormat - - -class TransportStreamFormat(MultiBitrateFormat): - """Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC - 13818-1) output video file(s). - - All required parameters must be populated in order to send to Azure. - - :param filename_pattern: Required. The pattern of the file names for the - generated output files. The following macros are supported in the file - name: {Basename} - The base name of the input video {Extension} - The - appropriate extension for this format. {Label} - The label assigned to the - codec/layer. {Index} - A unique index for thumbnails. Only applicable to - thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to - thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted - macros will be collapsed and removed from the filename. - :type filename_pattern: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param output_files: The list of output files to produce. Each entry in - the list is a set of audio and video layer labels to be muxed together . - :type output_files: list[~azure.mgmt.media.models.OutputFile] - """ - - _validation = { - 'filename_pattern': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'filename_pattern': {'key': 'filenamePattern', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'output_files': {'key': 'outputFiles', 'type': '[OutputFile]'}, - } - - def __init__(self, *, filename_pattern: str, output_files=None, **kwargs) -> None: - super(TransportStreamFormat, self).__init__(filename_pattern=filename_pattern, output_files=output_files, **kwargs) - self.odatatype = '#Microsoft.Media.TransportStreamFormat' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video.py deleted file mode 100644 index 356751dfe25e..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .codec import Codec - - -class Video(Codec): - """Describes the basic properties for encoding the input video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Image, H264Video - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Image': 'Image', '#Microsoft.Media.H264Video': 'H264Video'} - } - - def __init__(self, **kwargs): - super(Video, self).__init__(**kwargs) - self.key_frame_interval = kwargs.get('key_frame_interval', None) - self.stretch_mode = kwargs.get('stretch_mode', None) - self.odatatype = '#Microsoft.Media.Video' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset.py deleted file mode 100644 index fb9a378028d7..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 .audio_analyzer_preset import AudioAnalyzerPreset - - -class VideoAnalyzerPreset(AudioAnalyzerPreset): - """A video analyzer preset that extracts insights (rich metadata) from both - audio and video, and outputs a JSON format file. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param audio_language: The language for the audio payload in the input - using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list - of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' - and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), - Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' - and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If - you know the language of your content, it is recommended that you specify - it. If the language isn't specified or set to null, automatic language - detection will choose the first language detected and process with the - selected language for the duration of the file. This language detection - feature currently supports English, Chinese, French, German, Italian, - Japanese, Spanish, Russian, and Portuguese. It does not currently support - dynamically switching between languages after the first language is - detected. The automatic detection works best with audio recordings with - clearly discernable speech. If automatic detection fails to find the - language, transcription would fallback to 'en-US'." - :type audio_language: str - :param insights_to_extract: The type of insights to be extracted. If not - set then based on the content the type will selected. If the content is - audio only then only audio insights are extracted and if it is video only. - Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', - 'AllInsights' - :type insights_to_extract: str or ~azure.mgmt.media.models.InsightsType - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, - 'insights_to_extract': {'key': 'insightsToExtract', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VideoAnalyzerPreset, self).__init__(**kwargs) - self.insights_to_extract = kwargs.get('insights_to_extract', None) - self.odatatype = '#Microsoft.Media.VideoAnalyzerPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset_py3.py deleted file mode 100644 index dfef85d00d06..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# 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 .audio_analyzer_preset_py3 import AudioAnalyzerPreset - - -class VideoAnalyzerPreset(AudioAnalyzerPreset): - """A video analyzer preset that extracts insights (rich metadata) from both - audio and video, and outputs a JSON format file. - - All required parameters must be populated in order to send to Azure. - - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param audio_language: The language for the audio payload in the input - using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list - of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' - and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), - Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' - and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If - you know the language of your content, it is recommended that you specify - it. If the language isn't specified or set to null, automatic language - detection will choose the first language detected and process with the - selected language for the duration of the file. This language detection - feature currently supports English, Chinese, French, German, Italian, - Japanese, Spanish, Russian, and Portuguese. It does not currently support - dynamically switching between languages after the first language is - detected. The automatic detection works best with audio recordings with - clearly discernable speech. If automatic detection fails to find the - language, transcription would fallback to 'en-US'." - :type audio_language: str - :param insights_to_extract: The type of insights to be extracted. If not - set then based on the content the type will selected. If the content is - audio only then only audio insights are extracted and if it is video only. - Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', - 'AllInsights' - :type insights_to_extract: str or ~azure.mgmt.media.models.InsightsType - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'audio_language': {'key': 'audioLanguage', 'type': 'str'}, - 'insights_to_extract': {'key': 'insightsToExtract', 'type': 'str'}, - } - - def __init__(self, *, audio_language: str=None, insights_to_extract=None, **kwargs) -> None: - super(VideoAnalyzerPreset, self).__init__(audio_language=audio_language, **kwargs) - self.insights_to_extract = insights_to_extract - self.odatatype = '#Microsoft.Media.VideoAnalyzerPreset' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer.py deleted file mode 100644 index bc142466ce60..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 .layer import Layer - - -class VideoLayer(Layer): - """Describes the settings to be used when encoding the input video into a - desired output bitrate layer. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: H264Layer - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param bitrate: Required. The average bitrate in bits per second at which - to encode the input video when generating this layer. This is a required - field. - :type bitrate: int - :param max_bitrate: The maximum bitrate (in bits per second), at which the - VBV buffer should be assumed to refill. If not specified, defaults to the - same value as bitrate. - :type max_bitrate: int - :param b_frames: The number of B-frames to be used when encoding this - layer. If not specified, the encoder chooses an appropriate number based - on the video profile and level. - :type b_frames: int - :param frame_rate: The frame rate (in frames per second) at which to - encode this layer. The value can be in the form of M/N where M and N are - integers (For example, 30000/1001), or in the form of a number (For - example, 30, or 29.97). The encoder enforces constraints on allowed frame - rates based on the profile and level. If it is not specified, the encoder - will use the same frame rate as the input video. - :type frame_rate: str - :param slices: The number of slices to be used when encoding this layer. - If not specified, default is zero, which means that encoder will use a - single slice for each frame. - :type slices: int - :param adaptive_bframe: Whether or not adaptive B-frames are to be used - when encoding this layer. If not specified, the encoder will turn it on - whenever the video profile permits its use. - :type adaptive_bframe: bool - """ - - _validation = { - 'odatatype': {'required': True}, - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, - 'b_frames': {'key': 'bFrames', 'type': 'int'}, - 'frame_rate': {'key': 'frameRate', 'type': 'str'}, - 'slices': {'key': 'slices', 'type': 'int'}, - 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.H264Layer': 'H264Layer'} - } - - def __init__(self, **kwargs): - super(VideoLayer, self).__init__(**kwargs) - self.bitrate = kwargs.get('bitrate', None) - self.max_bitrate = kwargs.get('max_bitrate', None) - self.b_frames = kwargs.get('b_frames', None) - self.frame_rate = kwargs.get('frame_rate', None) - self.slices = kwargs.get('slices', None) - self.adaptive_bframe = kwargs.get('adaptive_bframe', None) - self.odatatype = '#Microsoft.Media.VideoLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer_py3.py deleted file mode 100644 index 755d7b259531..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_layer_py3.py +++ /dev/null @@ -1,97 +0,0 @@ -# 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 .layer_py3 import Layer - - -class VideoLayer(Layer): - """Describes the settings to be used when encoding the input video into a - desired output bitrate layer. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: H264Layer - - All required parameters must be populated in order to send to Azure. - - :param width: The width of the output video for this layer. The value can - be absolute (in pixels) or relative (in percentage). For example 50% means - the output video has half as many pixels in width as the input. - :type width: str - :param height: The height of the output video for this layer. The value - can be absolute (in pixels) or relative (in percentage). For example 50% - means the output video has half as many pixels in height as the input. - :type height: str - :param label: The alphanumeric label for this layer, which can be used in - multiplexing different video and audio layers, or in naming the output - file. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param bitrate: Required. The average bitrate in bits per second at which - to encode the input video when generating this layer. This is a required - field. - :type bitrate: int - :param max_bitrate: The maximum bitrate (in bits per second), at which the - VBV buffer should be assumed to refill. If not specified, defaults to the - same value as bitrate. - :type max_bitrate: int - :param b_frames: The number of B-frames to be used when encoding this - layer. If not specified, the encoder chooses an appropriate number based - on the video profile and level. - :type b_frames: int - :param frame_rate: The frame rate (in frames per second) at which to - encode this layer. The value can be in the form of M/N where M and N are - integers (For example, 30000/1001), or in the form of a number (For - example, 30, or 29.97). The encoder enforces constraints on allowed frame - rates based on the profile and level. If it is not specified, the encoder - will use the same frame rate as the input video. - :type frame_rate: str - :param slices: The number of slices to be used when encoding this layer. - If not specified, default is zero, which means that encoder will use a - single slice for each frame. - :type slices: int - :param adaptive_bframe: Whether or not adaptive B-frames are to be used - when encoding this layer. If not specified, the encoder will turn it on - whenever the video profile permits its use. - :type adaptive_bframe: bool - """ - - _validation = { - 'odatatype': {'required': True}, - 'bitrate': {'required': True}, - } - - _attribute_map = { - 'width': {'key': 'width', 'type': 'str'}, - 'height': {'key': 'height', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'bitrate': {'key': 'bitrate', 'type': 'int'}, - 'max_bitrate': {'key': 'maxBitrate', 'type': 'int'}, - 'b_frames': {'key': 'bFrames', 'type': 'int'}, - 'frame_rate': {'key': 'frameRate', 'type': 'str'}, - 'slices': {'key': 'slices', 'type': 'int'}, - 'adaptive_bframe': {'key': 'adaptiveBFrame', 'type': 'bool'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.H264Layer': 'H264Layer'} - } - - def __init__(self, *, bitrate: int, width: str=None, height: str=None, label: str=None, max_bitrate: int=None, b_frames: int=None, frame_rate: str=None, slices: int=None, adaptive_bframe: bool=None, **kwargs) -> None: - super(VideoLayer, self).__init__(width=width, height=height, label=label, **kwargs) - self.bitrate = bitrate - self.max_bitrate = max_bitrate - self.b_frames = b_frames - self.frame_rate = frame_rate - self.slices = slices - self.adaptive_bframe = adaptive_bframe - self.odatatype = '#Microsoft.Media.VideoLayer' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay.py deleted file mode 100644 index 1128cfdd1296..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay.py +++ /dev/null @@ -1,85 +0,0 @@ -# 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 .overlay import Overlay - - -class VideoOverlay(Overlay): - """Describes the properties of a video overlay. - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param position: The location in the input video where the overlay is - applied. - :type position: ~azure.mgmt.media.models.Rectangle - :param opacity: The opacity of the overlay. This is a value in the range - [0 - 1.0]. Default is 1.0 which mean the overlay is opaque. - :type opacity: float - :param crop_rectangle: An optional rectangular window used to crop the - overlay image or video. - :type crop_rectangle: ~azure.mgmt.media.models.Rectangle - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'Rectangle'}, - 'opacity': {'key': 'opacity', 'type': 'float'}, - 'crop_rectangle': {'key': 'cropRectangle', 'type': 'Rectangle'}, - } - - def __init__(self, **kwargs): - super(VideoOverlay, self).__init__(**kwargs) - self.position = kwargs.get('position', None) - self.opacity = kwargs.get('opacity', None) - self.crop_rectangle = kwargs.get('crop_rectangle', None) - self.odatatype = '#Microsoft.Media.VideoOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay_py3.py deleted file mode 100644 index c0d65b8d749d..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_overlay_py3.py +++ /dev/null @@ -1,85 +0,0 @@ -# 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 .overlay_py3 import Overlay - - -class VideoOverlay(Overlay): - """Describes the properties of a video overlay. - - All required parameters must be populated in order to send to Azure. - - :param input_label: Required. The label of the job input which is to be - used as an overlay. The Input must specify exactly one file. You can - specify an image file in JPG or PNG formats, or an audio file (such as a - WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - for the complete list of supported audio and video file formats. - :type input_label: str - :param start: The start position, with reference to the input video, at - which the overlay starts. The value should be in ISO 8601 format. For - example, PT05S to start the overlay at 5 seconds in to the input video. If - not specified the overlay starts from the beginning of the input video. - :type start: timedelta - :param end: The position in the input video at which the overlay ends. The - value should be in ISO 8601 duration format. For example, PT30S to end the - overlay at 30 seconds in to the input video. If not specified the overlay - will be applied until the end of the input video if inputLoop is true. - Else, if inputLoop is false, then overlay will last as long as the - duration of the overlay media. - :type end: timedelta - :param fade_in_duration: The duration over which the overlay fades in onto - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade in (same as PT0S). - :type fade_in_duration: timedelta - :param fade_out_duration: The duration over which the overlay fades out of - the input video. The value should be in ISO 8601 duration format. If not - specified the default behavior is to have no fade out (same as PT0S). - :type fade_out_duration: timedelta - :param audio_gain_level: The gain level of audio in the overlay. The value - should be in the range [0, 1.0]. The default is 1.0. - :type audio_gain_level: float - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param position: The location in the input video where the overlay is - applied. - :type position: ~azure.mgmt.media.models.Rectangle - :param opacity: The opacity of the overlay. This is a value in the range - [0 - 1.0]. Default is 1.0 which mean the overlay is opaque. - :type opacity: float - :param crop_rectangle: An optional rectangular window used to crop the - overlay image or video. - :type crop_rectangle: ~azure.mgmt.media.models.Rectangle - """ - - _validation = { - 'input_label': {'required': True}, - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'input_label': {'key': 'inputLabel', 'type': 'str'}, - 'start': {'key': 'start', 'type': 'duration'}, - 'end': {'key': 'end', 'type': 'duration'}, - 'fade_in_duration': {'key': 'fadeInDuration', 'type': 'duration'}, - 'fade_out_duration': {'key': 'fadeOutDuration', 'type': 'duration'}, - 'audio_gain_level': {'key': 'audioGainLevel', 'type': 'float'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'position': {'key': 'position', 'type': 'Rectangle'}, - 'opacity': {'key': 'opacity', 'type': 'float'}, - 'crop_rectangle': {'key': 'cropRectangle', 'type': 'Rectangle'}, - } - - def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=None, fade_out_duration=None, audio_gain_level: float=None, position=None, opacity: float=None, crop_rectangle=None, **kwargs) -> None: - super(VideoOverlay, self).__init__(input_label=input_label, start=start, end=end, fade_in_duration=fade_in_duration, fade_out_duration=fade_out_duration, audio_gain_level=audio_gain_level, **kwargs) - self.position = position - self.opacity = opacity - self.crop_rectangle = crop_rectangle - self.odatatype = '#Microsoft.Media.VideoOverlay' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_py3.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_py3.py deleted file mode 100644 index bf1c474041c4..000000000000 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/video_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# 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 .codec_py3 import Codec - - -class Video(Codec): - """Describes the basic properties for encoding the input video. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Image, H264Video - - All required parameters must be populated in order to send to Azure. - - :param label: An optional label for the codec. The label can be used to - control muxing behavior. - :type label: str - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param key_frame_interval: The distance between two key frames, thereby - defining a group of pictures (GOP). The value should be a non-zero integer - in the range [1, 30] seconds, specified in ISO 8601 format. The default is - 2 seconds (PT2S). - :type key_frame_interval: timedelta - :param stretch_mode: The resizing mode - how the input video will be - resized to fit the desired output resolution(s). Default is AutoSize. - Possible values include: 'None', 'AutoSize', 'AutoFit' - :type stretch_mode: str or ~azure.mgmt.media.models.StretchMode - """ - - _validation = { - 'odatatype': {'required': True}, - } - - _attribute_map = { - 'label': {'key': 'label', 'type': 'str'}, - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, - 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, - 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, - } - - _subtype_map = { - 'odatatype': {'#Microsoft.Media.Image': 'Image', '#Microsoft.Media.H264Video': 'H264Video'} - } - - def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, **kwargs) -> None: - super(Video, self).__init__(label=label, **kwargs) - self.key_frame_interval = key_frame_interval - self.stretch_mode = stretch_mode - self.odatatype = '#Microsoft.Media.Video' diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py index 42693e437634..3f95a0430d22 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/__init__.py @@ -9,20 +9,20 @@ # regenerated. # -------------------------------------------------------------------------- -from .account_filters_operations import AccountFiltersOperations -from .operations import Operations -from .mediaservices_operations import MediaservicesOperations -from .locations_operations import LocationsOperations -from .assets_operations import AssetsOperations -from .asset_filters_operations import AssetFiltersOperations -from .content_key_policies_operations import ContentKeyPoliciesOperations -from .transforms_operations import TransformsOperations -from .jobs_operations import JobsOperations -from .streaming_policies_operations import StreamingPoliciesOperations -from .streaming_locators_operations import StreamingLocatorsOperations -from .live_events_operations import LiveEventsOperations -from .live_outputs_operations import LiveOutputsOperations -from .streaming_endpoints_operations import StreamingEndpointsOperations +from ._account_filters_operations import AccountFiltersOperations +from ._operations import Operations +from ._mediaservices_operations import MediaservicesOperations +from ._locations_operations import LocationsOperations +from ._assets_operations import AssetsOperations +from ._asset_filters_operations import AssetFiltersOperations +from ._content_key_policies_operations import ContentKeyPoliciesOperations +from ._transforms_operations import TransformsOperations +from ._jobs_operations import JobsOperations +from ._streaming_policies_operations import StreamingPoliciesOperations +from ._streaming_locators_operations import StreamingLocatorsOperations +from ._live_events_operations import LiveEventsOperations +from ._live_outputs_operations import LiveOutputsOperations +from ._streaming_endpoints_operations import StreamingEndpointsOperations __all__ = [ 'AccountFiltersOperations', diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/account_filters_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py similarity index 97% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/account_filters_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py index 891e32e3dc9c..d5314c312e92 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/account_filters_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py @@ -18,6 +18,8 @@ class AccountFiltersOperations(object): """AccountFiltersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -58,8 +60,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -90,6 +91,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -98,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.AccountFilterPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.AccountFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.AccountFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters'} @@ -164,7 +168,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AccountFilter', response) @@ -237,7 +240,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AccountFilter', response) if response.status_code == 201: @@ -370,7 +372,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AccountFilter', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/asset_filters_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_asset_filters_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/asset_filters_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_asset_filters_operations.py index 45bb5fa9ab1e..685c716c231b 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/asset_filters_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_asset_filters_operations.py @@ -18,6 +18,8 @@ class AssetFiltersOperations(object): """AssetFiltersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -93,6 +94,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -101,12 +107,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.AssetFilterPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.AssetFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.AssetFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters'} @@ -170,7 +174,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AssetFilter', response) @@ -246,7 +249,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AssetFilter', response) if response.status_code == 201: @@ -385,7 +387,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AssetFilter', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/assets_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_assets_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/assets_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_assets_operations.py index 02511f0c2476..0a111a31565c 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/assets_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_assets_operations.py @@ -18,6 +18,8 @@ class AssetsOperations(object): """AssetsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -54,7 +56,7 @@ def list( of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. :type top: int - :param orderby: Specifies the the key by which the result collection + :param orderby: Specifies the key by which the result collection should be ordered. :type orderby: str :param dict custom_headers: headers that will be added to the request @@ -68,8 +70,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -106,6 +107,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -114,12 +120,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.AssetPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.AssetPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.AssetPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets'} @@ -180,7 +184,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Asset', response) @@ -253,7 +256,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Asset', response) if response.status_code == 201: @@ -386,7 +388,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Asset', response) @@ -468,7 +469,6 @@ def list_container_sas( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('AssetContainerSas', response) @@ -537,7 +537,6 @@ def get_encryption_key( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StorageEncryptedAssetDecryptionData', response) @@ -605,7 +604,6 @@ def list_streaming_locators( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ListStreamingLocatorsResponse', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/content_key_policies_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_content_key_policies_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/content_key_policies_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_content_key_policies_operations.py index 51a53ba8bfe7..a0705dd358a4 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/content_key_policies_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_content_key_policies_operations.py @@ -18,6 +18,8 @@ class ContentKeyPoliciesOperations(object): """ContentKeyPoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -105,6 +106,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ContentKeyPolicyPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ContentKeyPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ContentKeyPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies'} @@ -179,7 +183,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ContentKeyPolicy', response) @@ -256,7 +259,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ContentKeyPolicy', response) if response.status_code == 201: @@ -393,7 +395,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ContentKeyPolicy', response) @@ -460,7 +461,6 @@ def get_policy_properties_with_secrets( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ContentKeyPolicyProperties', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/jobs_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_jobs_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/jobs_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_jobs_operations.py index 1f578ae13075..23583c1a8569 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/jobs_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_jobs_operations.py @@ -18,6 +18,8 @@ class JobsOperations(object): """JobsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,7 +53,7 @@ def list( :type transform_name: str :param filter: Restricts the set of items returned. :type filter: str - :param orderby: Specifies the the key by which the result collection + :param orderby: Specifies the key by which the result collection should be ordered. :type orderby: str :param dict custom_headers: headers that will be added to the request @@ -65,8 +67,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -102,6 +103,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -110,12 +116,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.JobPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.JobPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.JobPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs'} @@ -179,7 +183,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Job', response) @@ -255,7 +258,6 @@ def create( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('Job', response) @@ -394,7 +396,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Job', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_events_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_events_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_events_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_events_operations.py index 6af08112a079..86967b51d56c 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_events_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_events_operations.py @@ -20,6 +20,8 @@ class LiveEventsOperations(object): """LiveEventsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -92,6 +93,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -100,12 +106,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LiveEventPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LiveEventPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LiveEventPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents'} @@ -166,7 +170,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LiveEvent', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_outputs_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_outputs_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_outputs_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_outputs_operations.py index 536bc9772000..305682fa6c4e 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/live_outputs_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_live_outputs_operations.py @@ -20,6 +20,8 @@ class LiveOutputsOperations(object): """LiveOutputsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -62,8 +64,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -95,6 +96,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -103,12 +109,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LiveOutputPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LiveOutputPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LiveOutputPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs'} @@ -172,7 +176,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('LiveOutput', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/locations_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_locations_operations.py similarity index 97% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/locations_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_locations_operations.py index 36f04426d5a2..1a1b1ed4b337 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/locations_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_locations_operations.py @@ -18,6 +18,8 @@ class LocationsOperations(object): """LocationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def check_name_availability( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('EntityNameAvailabilityCheckOutput', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/mediaservices_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_mediaservices_operations.py similarity index 97% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/mediaservices_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_mediaservices_operations.py index ef7b236eca31..3582e4a71324 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/mediaservices_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_mediaservices_operations.py @@ -18,6 +18,8 @@ class MediaservicesOperations(object): """MediaservicesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -87,6 +88,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -95,12 +101,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.MediaServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.MediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.MediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices'} @@ -158,7 +162,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('MediaService', response) @@ -228,7 +231,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('MediaService', response) if response.status_code == 201: @@ -355,7 +357,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('MediaService', response) @@ -447,8 +448,7 @@ def list_by_subscription( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] @@ -477,6 +477,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -485,12 +490,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SubscriptionMediaServicePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SubscriptionMediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SubscriptionMediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices'} @@ -544,7 +547,6 @@ def get_by_subscription( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('SubscriptionMediaService', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_operations.py similarity index 90% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_operations.py index b595bda1c84f..59ca6d6cff7b 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_operations.py @@ -18,6 +18,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -53,8 +55,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -79,6 +80,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Media/operations'} diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_endpoints_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_endpoints_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_endpoints_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_endpoints_operations.py index 2c2c6511076f..6147785d8d17 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_endpoints_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_endpoints_operations.py @@ -20,6 +20,8 @@ class StreamingEndpointsOperations(object): """StreamingEndpointsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,8 +62,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -92,6 +93,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -100,12 +106,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.StreamingEndpointPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StreamingEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StreamingEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints'} @@ -166,7 +170,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StreamingEndpoint', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_locators_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_locators_operations.py similarity index 98% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_locators_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_locators_operations.py index aa4d38517c25..8d43fac2b18a 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_locators_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_locators_operations.py @@ -18,6 +18,8 @@ class StreamingLocatorsOperations(object): """StreamingLocatorsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -105,6 +106,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.StreamingLocatorPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StreamingLocatorPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StreamingLocatorPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators'} @@ -179,7 +183,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StreamingLocator', response) @@ -252,7 +255,6 @@ def create( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('StreamingLocator', response) @@ -377,7 +379,6 @@ def list_content_keys( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ListContentKeysResponse', response) @@ -444,7 +445,6 @@ def list_paths( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ListPathsResponse', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_policies_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_policies_operations.py similarity index 97% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_policies_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_policies_operations.py index b7b44b95601f..74bbde4f4944 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/streaming_policies_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_streaming_policies_operations.py @@ -18,6 +18,8 @@ class StreamingPoliciesOperations(object): """StreamingPoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -67,8 +69,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -105,6 +106,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -113,12 +119,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.StreamingPolicyPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StreamingPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StreamingPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies'} @@ -179,7 +183,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StreamingPolicy', response) @@ -252,7 +255,6 @@ def create( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('StreamingPolicy', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/transforms_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_transforms_operations.py similarity index 97% rename from sdk/media/azure-mgmt-media/azure/mgmt/media/operations/transforms_operations.py rename to sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_transforms_operations.py index 431b81934f67..c9912fa2a59b 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/transforms_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_transforms_operations.py @@ -18,6 +18,8 @@ class TransformsOperations(object): """TransformsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -49,7 +51,7 @@ def list( :type account_name: str :param filter: Restricts the set of items returned. :type filter: str - :param orderby: Specifies the the key by which the result collection + :param orderby: Specifies the key by which the result collection should be ordered. :type orderby: str :param dict custom_headers: headers that will be added to the request @@ -63,8 +65,7 @@ def list( :raises: :class:`ApiErrorException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -99,6 +100,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -107,12 +113,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TransformPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TransformPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TransformPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms'} @@ -173,7 +177,6 @@ def get( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Transform', response) @@ -251,7 +254,6 @@ def create_or_update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Transform', response) if response.status_code == 201: @@ -389,7 +391,6 @@ def update( raise models.ApiErrorException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Transform', response) diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/version.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/version.py index 3ed20a28f4d8..8b09f47f15f0 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/version.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.1.1" +VERSION = "2018-07-01" + diff --git a/sdk/media/azure-mgmt-media/setup.py b/sdk/media/azure-mgmt-media/setup.py index 3b6aca28ce9e..9c644cbb4716 100644 --- a/sdk/media/azure-mgmt-media/setup.py +++ b/sdk/media/azure-mgmt-media/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', @@ -63,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',