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 index 5a3d6fac6449..63680195b4c3 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 @@ -16,6 +16,8 @@ from .operations import AccountFiltersOperations from .operations import Operations from .operations import MediaservicesOperations +from .operations import PrivateLinkResourcesOperations +from .operations import PrivateEndpointConnectionsOperations from .operations import LocationsOperations from .operations import AssetsOperations from .operations import AssetFiltersOperations @@ -42,6 +44,10 @@ class AzureMediaServices(SDKClient): :vartype operations: azure.mgmt.media.operations.Operations :ivar mediaservices: Mediaservices operations :vartype mediaservices: azure.mgmt.media.operations.MediaservicesOperations + :ivar private_link_resources: PrivateLinkResources operations + :vartype private_link_resources: azure.mgmt.media.operations.PrivateLinkResourcesOperations + :ivar private_endpoint_connections: PrivateEndpointConnections operations + :vartype private_endpoint_connections: azure.mgmt.media.operations.PrivateEndpointConnectionsOperations :ivar locations: Locations operations :vartype locations: azure.mgmt.media.operations.LocationsOperations :ivar assets: Assets operations @@ -81,7 +87,7 @@ def __init__( super(AzureMediaServices, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-07-01' + self.api_version = '2020-05-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -91,6 +97,10 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.mediaservices = MediaservicesOperations( self._client, self.config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) self.locations = LocationsOperations( self._client, self.config, self._serialize, self._deserialize) self.assets = AssetsOperations( 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 c6801c6972e1..8198186e2735 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 @@ -12,6 +12,7 @@ try: from ._models_py3 import AacAudio from ._models_py3 import AbsoluteClipTime + from ._models_py3 import AccountEncryption from ._models_py3 import AccountFilter from ._models_py3 import AkamaiAccessControl from ._models_py3 import AkamaiSignatureHeaderAuthenticationKey @@ -24,6 +25,7 @@ from ._models_py3 import Audio from ._models_py3 import AudioAnalyzerPreset from ._models_py3 import AudioOverlay + from ._models_py3 import AzureEntityResource from ._models_py3 import BuiltInStandardEncoderPreset from ._models_py3 import CbcsDrmConfiguration from ._models_py3 import CencDrmConfiguration @@ -94,6 +96,7 @@ from ._models_py3 import JpgFormat from ._models_py3 import JpgImage from ._models_py3 import JpgLayer + from ._models_py3 import KeyVaultProperties from ._models_py3 import Layer from ._models_py3 import ListContainerSasInput from ._models_py3 import ListContentKeysResponse @@ -110,10 +113,11 @@ from ._models_py3 import LiveEventPreviewAccessControl from ._models_py3 import LiveOutput from ._models_py3 import Location + from ._models_py3 import LogSpecification from ._models_py3 import MediaService - from ._models_py3 import Metric + from ._models_py3 import MediaServiceIdentity from ._models_py3 import MetricDimension - from ._models_py3 import MetricProperties + from ._models_py3 import MetricSpecification from ._models_py3 import Mp4Format from ._models_py3 import MultiBitrateFormat from ._models_py3 import NoEncryption @@ -127,6 +131,13 @@ from ._models_py3 import PngLayer from ._models_py3 import PresentationTimeRange from ._models_py3 import Preset + from ._models_py3 import PrivateEndpoint + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionListResult + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkResourceListResult + from ._models_py3 import PrivateLinkServiceConnectionState + from ._models_py3 import Properties from ._models_py3 import Provider from ._models_py3 import ProxyResource from ._models_py3 import Rectangle @@ -147,7 +158,6 @@ 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 @@ -162,6 +172,7 @@ except (SyntaxError, ImportError): from ._models import AacAudio from ._models import AbsoluteClipTime + from ._models import AccountEncryption from ._models import AccountFilter from ._models import AkamaiAccessControl from ._models import AkamaiSignatureHeaderAuthenticationKey @@ -174,6 +185,7 @@ from ._models import Audio from ._models import AudioAnalyzerPreset from ._models import AudioOverlay + from ._models import AzureEntityResource from ._models import BuiltInStandardEncoderPreset from ._models import CbcsDrmConfiguration from ._models import CencDrmConfiguration @@ -244,6 +256,7 @@ from ._models import JpgFormat from ._models import JpgImage from ._models import JpgLayer + from ._models import KeyVaultProperties from ._models import Layer from ._models import ListContainerSasInput from ._models import ListContentKeysResponse @@ -260,10 +273,11 @@ from ._models import LiveEventPreviewAccessControl from ._models import LiveOutput from ._models import Location + from ._models import LogSpecification from ._models import MediaService - from ._models import Metric + from ._models import MediaServiceIdentity from ._models import MetricDimension - from ._models import MetricProperties + from ._models import MetricSpecification from ._models import Mp4Format from ._models import MultiBitrateFormat from ._models import NoEncryption @@ -277,6 +291,13 @@ from ._models import PngLayer from ._models import PresentationTimeRange from ._models import Preset + from ._models import PrivateEndpoint + from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointConnectionListResult + from ._models import PrivateLinkResource + from ._models import PrivateLinkResourceListResult + from ._models import PrivateLinkServiceConnectionState + from ._models import Properties from ._models import Provider from ._models import ProxyResource from ._models import Rectangle @@ -297,7 +318,6 @@ 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 @@ -321,7 +341,6 @@ 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, @@ -329,6 +348,11 @@ MetricUnit, MetricAggregationType, StorageAccountType, + StorageAuthentication, + AccountEncryptionKeyType, + ManagedIdentityType, + PrivateEndpointConnectionProvisioningState, + PrivateEndpointServiceConnectionStatus, AssetStorageEncryptionFormat, AssetContainerPermission, ContentKeyPolicyPlayReadyUnknownOutputPassingOption, @@ -339,6 +363,7 @@ AacAudioProfile, AnalysisResolution, StretchMode, + VideoSyncMode, DeinterlaceParity, DeinterlaceMode, Rotation, @@ -369,6 +394,7 @@ __all__ = [ 'AacAudio', 'AbsoluteClipTime', + 'AccountEncryption', 'AccountFilter', 'AkamaiAccessControl', 'AkamaiSignatureHeaderAuthenticationKey', @@ -381,6 +407,7 @@ 'Audio', 'AudioAnalyzerPreset', 'AudioOverlay', + 'AzureEntityResource', 'BuiltInStandardEncoderPreset', 'CbcsDrmConfiguration', 'CencDrmConfiguration', @@ -451,6 +478,7 @@ 'JpgFormat', 'JpgImage', 'JpgLayer', + 'KeyVaultProperties', 'Layer', 'ListContainerSasInput', 'ListContentKeysResponse', @@ -467,10 +495,11 @@ 'LiveEventPreviewAccessControl', 'LiveOutput', 'Location', + 'LogSpecification', 'MediaService', - 'Metric', + 'MediaServiceIdentity', 'MetricDimension', - 'MetricProperties', + 'MetricSpecification', 'Mp4Format', 'MultiBitrateFormat', 'NoEncryption', @@ -484,6 +513,13 @@ 'PngLayer', 'PresentationTimeRange', 'Preset', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionListResult', + 'PrivateLinkResource', + 'PrivateLinkResourceListResult', + 'PrivateLinkServiceConnectionState', + 'Properties', 'Provider', 'ProxyResource', 'Rectangle', @@ -504,7 +540,6 @@ 'StreamingPolicyFairPlayConfiguration', 'StreamingPolicyPlayReadyConfiguration', 'StreamingPolicyWidevineConfiguration', - 'SubscriptionMediaService', 'SyncStorageKeysInput', 'TrackedResource', 'TrackPropertyCondition', @@ -519,7 +554,6 @@ 'AccountFilterPaged', 'OperationPaged', 'MediaServicePaged', - 'SubscriptionMediaServicePaged', 'AssetPaged', 'AssetFilterPaged', 'ContentKeyPolicyPaged', @@ -535,6 +569,11 @@ 'MetricUnit', 'MetricAggregationType', 'StorageAccountType', + 'StorageAuthentication', + 'AccountEncryptionKeyType', + 'ManagedIdentityType', + 'PrivateEndpointConnectionProvisioningState', + 'PrivateEndpointServiceConnectionStatus', 'AssetStorageEncryptionFormat', 'AssetContainerPermission', 'ContentKeyPolicyPlayReadyUnknownOutputPassingOption', @@ -545,6 +584,7 @@ 'AacAudioProfile', 'AnalysisResolution', 'StretchMode', + 'VideoSyncMode', 'DeinterlaceParity', 'DeinterlaceMode', 'Rotation', 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 index 858dcb3bc4a1..a76f2d11516c 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 @@ -48,6 +48,39 @@ class StorageAccountType(str, Enum): secondary = "Secondary" #: A secondary storage account for the Media Services account. +class StorageAuthentication(str, Enum): + + system = "System" #: System authentication. + managed_identity = "ManagedIdentity" #: Managed Identity authentication. + + +class AccountEncryptionKeyType(str, Enum): + + system_key = "SystemKey" #: The Account Key is encrypted with a System Key. + customer_key = "CustomerKey" #: The Account Key is encrypted with a Customer Key. + + +class ManagedIdentityType(str, Enum): + + system_assigned = "SystemAssigned" #: A system-assigned managed identity. + none = "None" #: No managed identity. + + +class PrivateEndpointConnectionProvisioningState(str, Enum): + + succeeded = "Succeeded" + creating = "Creating" + deleting = "Deleting" + failed = "Failed" + + +class PrivateEndpointServiceConnectionStatus(str, Enum): + + pending = "Pending" + approved = "Approved" + rejected = "Rejected" + + class AssetStorageEncryptionFormat(str, Enum): none = "None" #: The Asset does not use client-side storage encryption (this is the only allowed value for new Assets). @@ -120,6 +153,14 @@ class StretchMode(str, Enum): auto_fit = "AutoFit" #: Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right. +class VideoSyncMode(str, Enum): + + auto = "Auto" #: This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr. + passthrough = "Passthrough" #: The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior + cfr = "Cfr" #: Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value + vfr = "Vfr" #: Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input + + class DeinterlaceParity(str, Enum): auto = "Auto" #: Automatically detect the order of fields @@ -168,16 +209,16 @@ class H264Complexity(str, Enum): class EncoderNamedPreset(str, Enum): - h264_single_bitrate_sd = "H264SingleBitrateSD" #: Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. - h264_single_bitrate720p = "H264SingleBitrate720p" #: Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. - h264_single_bitrate1080p = "H264SingleBitrate1080p" #: Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. + h264_single_bitrate_sd = "H264SingleBitrateSD" #: Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. + h264_single_bitrate720p = "H264SingleBitrate720p" #: Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. + h264_single_bitrate1080p = "H264SingleBitrate1080p" #: Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. 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. + 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 180p. + 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 180p. + h264_multiple_bitrate_sd = "H264MultipleBitrateSD" #: Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p. class InsightsType(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 index 7f9aeb3e0475..d2638d3c0078 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/models/_models.py @@ -195,17 +195,47 @@ def __init__(self, **kwargs): self.odatatype = '#Microsoft.Media.AbsoluteClipTime' +class AccountEncryption(Model): + """AccountEncryption. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The type of key used to encrypt the Account Key. + Possible values include: 'SystemKey', 'CustomerKey' + :type type: str or ~azure.mgmt.media.models.AccountEncryptionKeyType + :param key_vault_properties: The properties of the key used to encrypt the + account. + :type key_vault_properties: ~azure.mgmt.media.models.KeyVaultProperties + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'KeyVaultProperties'}, + } + + def __init__(self, **kwargs): + super(AccountEncryption, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.key_vault_properties = kwargs.get('key_vault_properties', None) + + class Resource(Model): - """The core properties of ARM resources. + """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. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str """ @@ -229,16 +259,19 @@ def __init__(self, **kwargs): class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str """ @@ -264,11 +297,13 @@ class AccountFilter(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param presentation_time_range: The presentation time range. :type presentation_time_range: @@ -346,7 +381,7 @@ def __init__(self, **kwargs): class ApiError(Model): """The API error. - :param error: ApiError. The error properties. + :param error: The error properties. :type error: ~azure.mgmt.media.models.ODataError """ @@ -377,11 +412,13 @@ class Asset(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar asset_id: The Asset ID. :vartype asset_id: str @@ -492,11 +529,13 @@ class AssetFilter(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param presentation_time_range: The presentation time range. :type presentation_time_range: @@ -800,6 +839,44 @@ def __init__(self, **kwargs): self.odatatype = '#Microsoft.Media.AudioOverlay' +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class BuiltInStandardEncoderPreset(Preset): """Describes a built-in preset for encoding the input video with the Standard Encoder. @@ -980,11 +1057,13 @@ class ContentKeyPolicy(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar policy_id: The legacy Policy ID. :vartype policy_id: str @@ -2633,15 +2712,19 @@ class Video(Codec): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode """ _validation = { @@ -2653,6 +2736,7 @@ class Video(Codec): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, } _subtype_map = { @@ -2663,6 +2747,7 @@ 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.sync_mode = kwargs.get('sync_mode', None) self.odatatype = '#Microsoft.Media.Video' @@ -2676,15 +2761,19 @@ class H264Video(Video): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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 @@ -2708,6 +2797,7 @@ class H264Video(Video): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, 'scene_change_detection': {'key': 'sceneChangeDetection', 'type': 'bool'}, 'complexity': {'key': 'complexity', 'type': 'str'}, 'layers': {'key': 'layers', 'type': '[H264Layer]'}, @@ -2752,15 +2842,19 @@ class Image(Video): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -2790,6 +2884,7 @@ class Image(Video): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, 'start': {'key': 'start', 'type': 'str'}, 'step': {'key': 'step', 'type': 'str'}, 'range': {'key': 'range', 'type': 'str'}, @@ -2897,11 +2992,13 @@ class Job(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. @@ -3456,15 +3553,19 @@ class JpgImage(Image): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -3497,6 +3598,7 @@ class JpgImage(Image): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, 'start': {'key': 'start', 'type': 'str'}, 'step': {'key': 'step', 'type': 'str'}, 'range': {'key': 'range', 'type': 'str'}, @@ -3551,6 +3653,37 @@ def __init__(self, **kwargs): self.odatatype = '#Microsoft.Media.JpgLayer' +class KeyVaultProperties(Model): + """KeyVaultProperties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param key_identifier: The URL of the Key Vault key used to encrypt the + account. The key may either be versioned (for example + https://vault/keys/mykey/version1) or reference a key without a version + (for example https://vault/keys/mykey). + :type key_identifier: str + :ivar current_key_identifier: The current key used to encrypt the Media + Services account, including the key version. + :vartype current_key_identifier: str + """ + + _validation = { + 'current_key_identifier': {'readonly': True}, + } + + _attribute_map = { + 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'}, + 'current_key_identifier': {'key': 'currentKeyIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyVaultProperties, self).__init__(**kwargs) + self.key_identifier = kwargs.get('key_identifier', None) + self.current_key_identifier = None + + class ListContainerSasInput(Model): """The parameters to the list SAS request. @@ -3654,20 +3787,24 @@ def __init__(self, **kwargs): class TrackedResource(Resource): - """The resource model definition for a ARM tracked resource. + """The resource model definition for a ARM tracked top level 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. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str """ @@ -3675,6 +3812,7 @@ class TrackedResource(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { @@ -3699,15 +3837,17 @@ class LiveEvent(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str :param description: The Live Event description. :type description: str @@ -3726,11 +3866,13 @@ class LiveEvent(TrackedResource): :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 use_static_hostname: Specifies whether to use a vanity url with the + Live Event. This value is specified at creation time and cannot be + updated. + :type use_static_hostname: bool :param stream_options: The options to use for the LiveEvent. This value - is specified at creation time and cannot be updated. + is specified at creation time and cannot be updated. The valid values for + the array entry values are 'Default' and 'LowLatency'. :type stream_options: list[str or ~azure.mgmt.media.models.StreamOptionsFlag] :ivar created: The exact time the Live Event was created. @@ -3743,6 +3885,7 @@ class LiveEvent(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'input': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_state': {'readonly': True}, @@ -3763,7 +3906,7 @@ class LiveEvent(TrackedResource): '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'}, + 'use_static_hostname': {'key': 'properties.useStaticHostname', 'type': 'bool'}, 'stream_options': {'key': 'properties.streamOptions', 'type': '[str]'}, 'created': {'key': 'properties.created', 'type': 'iso-8601'}, 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, @@ -3778,7 +3921,7 @@ def __init__(self, **kwargs): 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.use_static_hostname = kwargs.get('use_static_hostname', None) self.stream_options = kwargs.get('stream_options', None) self.created = None self.last_modified = None @@ -3804,12 +3947,21 @@ def __init__(self, **kwargs): 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' + :param encoding_type: The encoding type for Live Event. This value is + specified at creation time and cannot be updated. When encodingType is set + to None, the service simply passes through the incoming video and audio + layer(s) to the output. When encodingType is set to Standard or + Premium1080p, a live encoder transcodes the incoming stream into multiple + bit rates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 + for more information. The encodingType of Basic is obsolete – if + specified, the service will treat this as a Standard Live Event. 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. + :param preset_name: The optional encoding preset name, used when + encodingType is not None. This value is specified at creation time and + cannot be updated. If the encodingType is set to Standard, then the + default preset name is ‘Default720p’. Else if the encodingType is set to + Premium1080p, the default preset is ‘Default1080p’. :type preset_name: str """ @@ -3859,9 +4011,9 @@ class LiveEventInput(Model): :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. + :param access_token: A UUID in string form to uniquely identify the + 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] @@ -3972,11 +4124,13 @@ class LiveOutput(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param description: The description of the Live Output. :type description: str @@ -4069,32 +4223,78 @@ def __init__(self, **kwargs): self.name = kwargs.get('name', None) +class LogSpecification(Model): + """A diagnostic log emitted by service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The diagnostic log category name. + :vartype name: str + :ivar display_name: The diagnostic log category display name. + :vartype display_name: str + :ivar blob_duration: The time range for requests in each blob. + :vartype blob_duration: str + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'blob_duration': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LogSpecification, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.blob_duration = 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. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :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] + :param storage_authentication: Possible values include: 'System', + 'ManagedIdentity' + :type storage_authentication: str or + ~azure.mgmt.media.models.StorageAuthentication + :param encryption: The account encryption properties. + :type encryption: ~azure.mgmt.media.models.AccountEncryption + :param identity: The Managed Identity for the Media Services account. + :type identity: ~azure.mgmt.media.models.MediaServiceIdentity """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'media_service_id': {'readonly': True}, } @@ -4106,63 +4306,54 @@ class MediaService(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + 'storage_authentication': {'key': 'properties.storageAuthentication', 'type': 'str'}, + 'encryption': {'key': 'properties.encryption', 'type': 'AccountEncryption'}, + 'identity': {'key': 'identity', 'type': 'MediaServiceIdentity'}, } def __init__(self, **kwargs): super(MediaService, self).__init__(**kwargs) self.media_service_id = None self.storage_accounts = kwargs.get('storage_accounts', None) + self.storage_authentication = kwargs.get('storage_authentication', None) + self.encryption = kwargs.get('encryption', None) + self.identity = kwargs.get('identity', None) -class Metric(Model): - """A metric emitted by service. +class MediaServiceIdentity(Model): + """MediaServiceIdentity. 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] + All required parameters must be populated in order to send to Azure. + + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'None' + :type type: str or ~azure.mgmt.media.models.ManagedIdentityType + :ivar principal_id: The Principal ID of the identity. + :vartype principal_id: str + :ivar tenant_id: The Tenant ID of the identity. + :vartype tenant_id: str """ _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'display_description': {'readonly': True}, - 'unit': {'readonly': True}, - 'aggregation_type': {'readonly': True}, - 'dimensions': {'readonly': True}, + 'type': {'required': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'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]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, } 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 + super(MediaServiceIdentity, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.principal_id = None + self.tenant_id = None class MetricDimension(Model): @@ -4198,28 +4389,59 @@ def __init__(self, **kwargs): self.to_be_exported_for_shoebox = None -class MetricProperties(Model): - """Metric properties. +class MetricSpecification(Model): + """A metric emitted by service. 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 + :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 + :param supported_aggregation_types: Supported aggregation types. + :type supported_aggregation_types: list[str] + :ivar dimensions: The metric dimensions. + :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] """ _validation = { - 'service_specification': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'display_description': {'readonly': True}, + 'unit': {'readonly': True}, + 'aggregation_type': {'readonly': True}, + 'dimensions': {'readonly': True}, } _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + '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'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, } def __init__(self, **kwargs): - super(MetricProperties, self).__init__(**kwargs) - self.service_specification = None + super(MetricSpecification, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.display_description = None + self.unit = None + self.aggregation_type = None + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.dimensions = None class MultiBitrateFormat(Format): @@ -4365,7 +4587,7 @@ class Operation(Model): :param origin: Origin of the operation. :type origin: str :param properties: Operation properties format. - :type properties: ~azure.mgmt.media.models.MetricProperties + :type properties: ~azure.mgmt.media.models.Properties """ _validation = { @@ -4376,7 +4598,7 @@ class Operation(Model): 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MetricProperties'}, + 'properties': {'key': 'properties', 'type': 'Properties'}, } def __init__(self, **kwargs): @@ -4486,15 +4708,19 @@ class PngImage(Image): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -4527,6 +4753,7 @@ class PngImage(Image): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, 'start': {'key': 'start', 'type': 'str'}, 'step': {'key': 'step', 'type': 'str'}, 'range': {'key': 'range', 'type': 'str'}, @@ -4614,6 +4841,215 @@ def __init__(self, **kwargs): self.force_end_timestamp = kwargs.get('force_end_timestamp', None) +class PrivateEndpoint(Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection 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. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.media.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.media.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.media.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class PrivateEndpointConnectionListResult(Model): + """List of private endpoint connection associated with the specified storage + account. + + :param value: Array of private endpoint connections + :type value: list[~azure.mgmt.media.models.PrivateEndpointConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrivateLinkResource(Resource): + """A private link 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. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = kwargs.get('required_zone_names', None) + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.media.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.media.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.description = kwargs.get('description', None) + self.actions_required = kwargs.get('actions_required', None) + + +class Properties(Model): + """The service specification property. + + 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(Properties, self).__init__(**kwargs) + self.service_specification = None + + class Provider(Model): """A resource provider. @@ -4679,20 +5115,27 @@ class ServiceSpecification(Model): Variables are only populated by the server, and will be ignored when sending a request. + :ivar log_specifications: List of log specifications. + :vartype log_specifications: + list[~azure.mgmt.media.models.LogSpecification] :ivar metric_specifications: List of metric specifications. - :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] + :vartype metric_specifications: + list[~azure.mgmt.media.models.MetricSpecification] """ _validation = { + 'log_specifications': {'readonly': True}, 'metric_specifications': {'readonly': True}, } _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, } def __init__(self, **kwargs): super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = None self.metric_specifications = None @@ -4797,15 +5240,17 @@ class StreamingEndpoint(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str :param description: The StreamingEndpoint description. :type description: str @@ -4855,6 +5300,7 @@ class StreamingEndpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'scale_units': {'required': True}, 'host_name': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -4952,11 +5398,13 @@ class StreamingLocator(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param asset_name: Required. Asset Name :type asset_name: str @@ -5122,11 +5570,13 @@ class StreamingPolicy(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: Creation time of Streaming Policy :vartype created: datetime @@ -5305,51 +5755,6 @@ def __init__(self, **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. @@ -5429,11 +5834,13 @@ class Transform(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. 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 index 09952f9fcd00..ff24a04bf34e 100644 --- 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 @@ -195,17 +195,47 @@ def __init__(self, *, time, **kwargs) -> None: self.odatatype = '#Microsoft.Media.AbsoluteClipTime' +class AccountEncryption(Model): + """AccountEncryption. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The type of key used to encrypt the Account Key. + Possible values include: 'SystemKey', 'CustomerKey' + :type type: str or ~azure.mgmt.media.models.AccountEncryptionKeyType + :param key_vault_properties: The properties of the key used to encrypt the + account. + :type key_vault_properties: ~azure.mgmt.media.models.KeyVaultProperties + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'KeyVaultProperties'}, + } + + def __init__(self, *, type, key_vault_properties=None, **kwargs) -> None: + super(AccountEncryption, self).__init__(**kwargs) + self.type = type + self.key_vault_properties = key_vault_properties + + class Resource(Model): - """The core properties of ARM resources. + """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. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str """ @@ -229,16 +259,19 @@ def __init__(self, **kwargs) -> None: class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str """ @@ -264,11 +297,13 @@ class AccountFilter(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param presentation_time_range: The presentation time range. :type presentation_time_range: @@ -346,7 +381,7 @@ def __init__(self, *, identifier: str=None, base64_key: str=None, expiration=Non class ApiError(Model): """The API error. - :param error: ApiError. The error properties. + :param error: The error properties. :type error: ~azure.mgmt.media.models.ODataError """ @@ -377,11 +412,13 @@ class Asset(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar asset_id: The Asset ID. :vartype asset_id: str @@ -492,11 +529,13 @@ class AssetFilter(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param presentation_time_range: The presentation time range. :type presentation_time_range: @@ -800,6 +839,44 @@ def __init__(self, *, input_label: str, start=None, end=None, fade_in_duration=N self.odatatype = '#Microsoft.Media.AudioOverlay' +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class BuiltInStandardEncoderPreset(Preset): """Describes a built-in preset for encoding the input video with the Standard Encoder. @@ -980,11 +1057,13 @@ class ContentKeyPolicy(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar policy_id: The legacy Policy ID. :vartype policy_id: str @@ -2633,15 +2712,19 @@ class Video(Codec): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode """ _validation = { @@ -2653,16 +2736,18 @@ class Video(Codec): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', '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: + def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, sync_mode=None, **kwargs) -> None: super(Video, self).__init__(label=label, **kwargs) self.key_frame_interval = key_frame_interval self.stretch_mode = stretch_mode + self.sync_mode = sync_mode self.odatatype = '#Microsoft.Media.Video' @@ -2676,15 +2761,19 @@ class H264Video(Video): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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 @@ -2708,13 +2797,14 @@ class H264Video(Video): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', '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) + def __init__(self, *, label: str=None, key_frame_interval=None, stretch_mode=None, sync_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, sync_mode=sync_mode, **kwargs) self.scene_change_detection = scene_change_detection self.complexity = complexity self.layers = layers @@ -2752,15 +2842,19 @@ class Image(Video): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -2790,6 +2884,7 @@ class Image(Video): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', 'type': 'str'}, 'start': {'key': 'start', 'type': 'str'}, 'step': {'key': 'step', 'type': 'str'}, 'range': {'key': 'range', 'type': 'str'}, @@ -2799,8 +2894,8 @@ class Image(Video): '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) + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, sync_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, sync_mode=sync_mode, **kwargs) self.start = start self.step = step self.range = range @@ -2897,11 +2992,13 @@ class Job(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. @@ -3456,15 +3553,19 @@ class JpgImage(Image): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -3497,14 +3598,15 @@ class JpgImage(Image): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', '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) + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, sync_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, sync_mode=sync_mode, start=start, step=step, range=range, **kwargs) self.layers = layers self.odatatype = '#Microsoft.Media.JpgImage' @@ -3551,6 +3653,37 @@ def __init__(self, *, width: str=None, height: str=None, label: str=None, qualit self.odatatype = '#Microsoft.Media.JpgLayer' +class KeyVaultProperties(Model): + """KeyVaultProperties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param key_identifier: The URL of the Key Vault key used to encrypt the + account. The key may either be versioned (for example + https://vault/keys/mykey/version1) or reference a key without a version + (for example https://vault/keys/mykey). + :type key_identifier: str + :ivar current_key_identifier: The current key used to encrypt the Media + Services account, including the key version. + :vartype current_key_identifier: str + """ + + _validation = { + 'current_key_identifier': {'readonly': True}, + } + + _attribute_map = { + 'key_identifier': {'key': 'keyIdentifier', 'type': 'str'}, + 'current_key_identifier': {'key': 'currentKeyIdentifier', 'type': 'str'}, + } + + def __init__(self, *, key_identifier: str=None, **kwargs) -> None: + super(KeyVaultProperties, self).__init__(**kwargs) + self.key_identifier = key_identifier + self.current_key_identifier = None + + class ListContainerSasInput(Model): """The parameters to the list SAS request. @@ -3654,20 +3787,24 @@ def __init__(self, **kwargs) -> None: class TrackedResource(Resource): - """The resource model definition for a ARM tracked resource. + """The resource model definition for a ARM tracked top level 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. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str """ @@ -3675,6 +3812,7 @@ class TrackedResource(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { @@ -3685,7 +3823,7 @@ class TrackedResource(Resource): 'location': {'key': 'location', 'type': 'str'}, } - def __init__(self, *, tags=None, location: str=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, **kwargs) -> None: super(TrackedResource, self).__init__(**kwargs) self.tags = tags self.location = location @@ -3699,15 +3837,17 @@ class LiveEvent(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str :param description: The Live Event description. :type description: str @@ -3726,11 +3866,13 @@ class LiveEvent(TrackedResource): :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 use_static_hostname: Specifies whether to use a vanity url with the + Live Event. This value is specified at creation time and cannot be + updated. + :type use_static_hostname: bool :param stream_options: The options to use for the LiveEvent. This value - is specified at creation time and cannot be updated. + is specified at creation time and cannot be updated. The valid values for + the array entry values are 'Default' and 'LowLatency'. :type stream_options: list[str or ~azure.mgmt.media.models.StreamOptionsFlag] :ivar created: The exact time the Live Event was created. @@ -3743,6 +3885,7 @@ class LiveEvent(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'input': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_state': {'readonly': True}, @@ -3763,13 +3906,13 @@ class LiveEvent(TrackedResource): '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'}, + 'use_static_hostname': {'key': 'properties.useStaticHostname', '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: + def __init__(self, *, location: str, input, tags=None, description: str=None, preview=None, encoding=None, cross_site_access_policies=None, use_static_hostname: bool=None, stream_options=None, **kwargs) -> None: super(LiveEvent, self).__init__(tags=tags, location=location, **kwargs) self.description = description self.input = input @@ -3778,7 +3921,7 @@ def __init__(self, *, input, tags=None, location: str=None, description: str=Non self.provisioning_state = None self.resource_state = None self.cross_site_access_policies = cross_site_access_policies - self.vanity_url = vanity_url + self.use_static_hostname = use_static_hostname self.stream_options = stream_options self.created = None self.last_modified = None @@ -3804,12 +3947,21 @@ def __init__(self, *, remove_outputs_on_stop: bool=None, **kwargs) -> 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' + :param encoding_type: The encoding type for Live Event. This value is + specified at creation time and cannot be updated. When encodingType is set + to None, the service simply passes through the incoming video and audio + layer(s) to the output. When encodingType is set to Standard or + Premium1080p, a live encoder transcodes the incoming stream into multiple + bit rates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 + for more information. The encodingType of Basic is obsolete – if + specified, the service will treat this as a Standard Live Event. 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. + :param preset_name: The optional encoding preset name, used when + encodingType is not None. This value is specified at creation time and + cannot be updated. If the encodingType is set to Standard, then the + default preset name is ‘Default720p’. Else if the encodingType is set to + Premium1080p, the default preset is ‘Default1080p’. :type preset_name: str """ @@ -3859,9 +4011,9 @@ class LiveEventInput(Model): :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. + :param access_token: A UUID in string form to uniquely identify the + 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] @@ -3972,11 +4124,13 @@ class LiveOutput(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param description: The description of the Live Output. :type description: str @@ -4069,32 +4223,78 @@ def __init__(self, *, name: str, **kwargs) -> None: self.name = name +class LogSpecification(Model): + """A diagnostic log emitted by service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The diagnostic log category name. + :vartype name: str + :ivar display_name: The diagnostic log category display name. + :vartype display_name: str + :ivar blob_duration: The time range for requests in each blob. + :vartype blob_duration: str + """ + + _validation = { + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'blob_duration': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(LogSpecification, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.blob_duration = 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. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :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] + :param storage_authentication: Possible values include: 'System', + 'ManagedIdentity' + :type storage_authentication: str or + ~azure.mgmt.media.models.StorageAuthentication + :param encryption: The account encryption properties. + :type encryption: ~azure.mgmt.media.models.AccountEncryption + :param identity: The Managed Identity for the Media Services account. + :type identity: ~azure.mgmt.media.models.MediaServiceIdentity """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'media_service_id': {'readonly': True}, } @@ -4106,63 +4306,54 @@ class MediaService(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'media_service_id': {'key': 'properties.mediaServiceId', 'type': 'str'}, 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccount]'}, + 'storage_authentication': {'key': 'properties.storageAuthentication', 'type': 'str'}, + 'encryption': {'key': 'properties.encryption', 'type': 'AccountEncryption'}, + 'identity': {'key': 'identity', 'type': 'MediaServiceIdentity'}, } - def __init__(self, *, tags=None, location: str=None, storage_accounts=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, storage_accounts=None, storage_authentication=None, encryption=None, identity=None, **kwargs) -> None: super(MediaService, self).__init__(tags=tags, location=location, **kwargs) self.media_service_id = None self.storage_accounts = storage_accounts + self.storage_authentication = storage_authentication + self.encryption = encryption + self.identity = identity -class Metric(Model): - """A metric emitted by service. +class MediaServiceIdentity(Model): + """MediaServiceIdentity. 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] + All required parameters must be populated in order to send to Azure. + + :param type: Required. The identity type. Possible values include: + 'SystemAssigned', 'None' + :type type: str or ~azure.mgmt.media.models.ManagedIdentityType + :ivar principal_id: The Principal ID of the identity. + :vartype principal_id: str + :ivar tenant_id: The Tenant ID of the identity. + :vartype tenant_id: str """ _validation = { - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'display_description': {'readonly': True}, - 'unit': {'readonly': True}, - 'aggregation_type': {'readonly': True}, - 'dimensions': {'readonly': True}, + 'type': {'required': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'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]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, } - 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 + def __init__(self, *, type, **kwargs) -> None: + super(MediaServiceIdentity, self).__init__(**kwargs) + self.type = type + self.principal_id = None + self.tenant_id = None class MetricDimension(Model): @@ -4198,28 +4389,59 @@ def __init__(self, **kwargs) -> None: self.to_be_exported_for_shoebox = None -class MetricProperties(Model): - """Metric properties. +class MetricSpecification(Model): + """A metric emitted by service. 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 + :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 + :param supported_aggregation_types: Supported aggregation types. + :type supported_aggregation_types: list[str] + :ivar dimensions: The metric dimensions. + :vartype dimensions: list[~azure.mgmt.media.models.MetricDimension] """ _validation = { - 'service_specification': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'display_description': {'readonly': True}, + 'unit': {'readonly': True}, + 'aggregation_type': {'readonly': True}, + 'dimensions': {'readonly': True}, } _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + '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'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, } - def __init__(self, **kwargs) -> None: - super(MetricProperties, self).__init__(**kwargs) - self.service_specification = None + def __init__(self, *, supported_aggregation_types=None, **kwargs) -> None: + super(MetricSpecification, self).__init__(**kwargs) + self.name = None + self.display_name = None + self.display_description = None + self.unit = None + self.aggregation_type = None + self.supported_aggregation_types = supported_aggregation_types + self.dimensions = None class MultiBitrateFormat(Format): @@ -4365,7 +4587,7 @@ class Operation(Model): :param origin: Origin of the operation. :type origin: str :param properties: Operation properties format. - :type properties: ~azure.mgmt.media.models.MetricProperties + :type properties: ~azure.mgmt.media.models.Properties """ _validation = { @@ -4376,7 +4598,7 @@ class Operation(Model): 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'MetricProperties'}, + 'properties': {'key': 'properties', 'type': 'Properties'}, } def __init__(self, *, name: str, display=None, origin: str=None, properties=None, **kwargs) -> None: @@ -4486,15 +4708,19 @@ class PngImage(Image): :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). + :param key_frame_interval: The distance between two key frames. The value + should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + format. The default is 2 seconds(PT2S). Note that this setting is ignored + if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will + follow the input source setting. :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 sync_mode: The Video Sync Mode. Possible values include: 'Auto', + 'Passthrough', 'Cfr', 'Vfr' + :type sync_mode: str or ~azure.mgmt.media.models.VideoSyncMode :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), @@ -4527,14 +4753,15 @@ class PngImage(Image): 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, 'key_frame_interval': {'key': 'keyFrameInterval', 'type': 'duration'}, 'stretch_mode': {'key': 'stretchMode', 'type': 'str'}, + 'sync_mode': {'key': 'syncMode', '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) + def __init__(self, *, start: str, label: str=None, key_frame_interval=None, stretch_mode=None, sync_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, sync_mode=sync_mode, start=start, step=step, range=range, **kwargs) self.layers = layers self.odatatype = '#Microsoft.Media.PngImage' @@ -4614,6 +4841,215 @@ def __init__(self, *, start_timestamp: int=None, end_timestamp: int=None, presen self.force_end_timestamp = force_end_timestamp +class PrivateEndpoint(Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ARM identifier for Private Endpoint + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection 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. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param private_endpoint: The resource of private end point. + :type private_endpoint: ~azure.mgmt.media.models.PrivateEndpoint + :param private_link_service_connection_state: Required. A collection of + information about the state of the connection between service consumer and + provider. + :type private_link_service_connection_state: + ~azure.mgmt.media.models.PrivateLinkServiceConnectionState + :param provisioning_state: The provisioning state of the private endpoint + connection resource. Possible values include: 'Succeeded', 'Creating', + 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.media.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'private_link_service_connection_state': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, private_link_service_connection_state, private_endpoint=None, provisioning_state=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = provisioning_state + + +class PrivateEndpointConnectionListResult(Model): + """List of private endpoint connection associated with the specified storage + account. + + :param value: Array of private endpoint connections + :type value: list[~azure.mgmt.media.models.PrivateEndpointConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = value + + +class PrivateLinkResource(Resource): + """A private link 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. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :param required_zone_names: The private link resource Private link DNS + zone name. + :type required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__(self, *, required_zone_names=None, **kwargs) -> None: + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + self.required_zone_names = required_zone_names + + +class PrivateLinkResourceListResult(Model): + """A list of private link resources. + + :param value: Array of private link resources + :type value: list[~azure.mgmt.media.models.PrivateLinkResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = value + + +class PrivateLinkServiceConnectionState(Model): + """A collection of information about the state of the connection between + service consumer and provider. + + :param status: Indicates whether the connection has been + Approved/Rejected/Removed by the owner of the service. Possible values + include: 'Pending', 'Approved', 'Rejected' + :type status: str or + ~azure.mgmt.media.models.PrivateEndpointServiceConnectionStatus + :param description: The reason for approval/rejection of the connection. + :type description: str + :param actions_required: A message indicating if changes on the service + provider require any updates on the consumer. + :type actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, *, status=None, description: str=None, actions_required: str=None, **kwargs) -> None: + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = actions_required + + +class Properties(Model): + """The service specification property. + + 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(Properties, self).__init__(**kwargs) + self.service_specification = None + + class Provider(Model): """A resource provider. @@ -4679,20 +5115,27 @@ class ServiceSpecification(Model): Variables are only populated by the server, and will be ignored when sending a request. + :ivar log_specifications: List of log specifications. + :vartype log_specifications: + list[~azure.mgmt.media.models.LogSpecification] :ivar metric_specifications: List of metric specifications. - :vartype metric_specifications: list[~azure.mgmt.media.models.Metric] + :vartype metric_specifications: + list[~azure.mgmt.media.models.MetricSpecification] """ _validation = { + 'log_specifications': {'readonly': True}, 'metric_specifications': {'readonly': True}, } _attribute_map = { - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[Metric]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, } def __init__(self, **kwargs) -> None: super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = None self.metric_specifications = None @@ -4797,15 +5240,17 @@ class StreamingEndpoint(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region of the resource. + :param location: Required. The geo-location where the resource lives :type location: str :param description: The StreamingEndpoint description. :type description: str @@ -4855,6 +5300,7 @@ class StreamingEndpoint(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'scale_units': {'required': True}, 'host_name': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -4888,7 +5334,7 @@ class StreamingEndpoint(TrackedResource): '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: + def __init__(self, *, location: str, scale_units: int, tags=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 @@ -4952,11 +5398,13 @@ class StreamingLocator(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :param asset_name: Required. Asset Name :type asset_name: str @@ -5122,11 +5570,13 @@ class StreamingPolicy(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: Creation time of Streaming Policy :vartype created: datetime @@ -5305,51 +5755,6 @@ def __init__(self, *, custom_license_acquisition_url_template: str=None, **kwarg 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. @@ -5429,11 +5834,13 @@ class Transform(ProxyResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str - :ivar name: The name of the resource. + :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. :vartype type: str :ivar created: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. 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 index 0cda239e7ac6..5dc8138614d5 100644 --- 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 @@ -51,19 +51,6 @@ class MediaServicePaged(Paged): 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 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 3f95a0430d22..44e5a835708e 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 @@ -12,6 +12,8 @@ from ._account_filters_operations import AccountFiltersOperations from ._operations import Operations from ._mediaservices_operations import MediaservicesOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations from ._locations_operations import LocationsOperations from ._assets_operations import AssetsOperations from ._asset_filters_operations import AssetFiltersOperations @@ -28,6 +30,8 @@ 'AccountFiltersOperations', 'Operations', 'MediaservicesOperations', + 'PrivateLinkResourcesOperations', + 'PrivateEndpointConnectionsOperations', 'LocationsOperations', 'AssetsOperations', 'AssetFiltersOperations', 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 index d5314c312e92..623fdf452717 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 @@ -24,7 +24,7 @@ class AccountFiltersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 685c716c231b..3029d048cb1c 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 @@ -24,7 +24,7 @@ class AssetFiltersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 0a111a31565c..51b788ac540a 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 @@ -24,7 +24,7 @@ class AssetsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index a14aee227c22..3914fc7027c2 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 @@ -24,7 +24,7 @@ class ContentKeyPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 23583c1a8569..198b3589f907 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 @@ -24,7 +24,7 @@ class JobsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 86967b51d56c..21537e355872 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 @@ -26,7 +26,7 @@ class LiveEventsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 305682fa6c4e..dc8fa350cde3 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 @@ -26,7 +26,7 @@ class LiveOutputsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 1a1b1ed4b337..43f1a9273525 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 @@ -24,7 +24,7 @@ class LocationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 6960e503a27d..cf87a4860f01 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 @@ -24,7 +24,7 @@ class MediaservicesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config @@ -290,7 +290,7 @@ def delete( request = self._client.delete(url, query_parameters, header_parameters) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200]: + if response.status_code not in [200, 204]: raise models.ApiErrorException(self._deserialize, response) if raw: @@ -515,9 +515,9 @@ def list_by_subscription( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of SubscriptionMediaService + :return: An iterator like instance of MediaService :rtype: - ~azure.mgmt.media.models.SubscriptionMediaServicePaged[~azure.mgmt.media.models.SubscriptionMediaService] + ~azure.mgmt.media.models.MediaServicePaged[~azure.mgmt.media.models.MediaService] :raises: :class:`ApiErrorException` """ @@ -566,7 +566,7 @@ def internal_paging(next_link=None): header_dict = None if raw: header_dict = {} - deserialized = models.SubscriptionMediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) + deserialized = models.MediaServicePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices'} @@ -584,8 +584,8 @@ def get_by_subscription( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: SubscriptionMediaService or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.media.models.SubscriptionMediaService or + :return: MediaService or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.media.models.MediaService or ~msrest.pipeline.ClientRawResponse :raises: :class:`ApiErrorException` @@ -621,7 +621,7 @@ def get_by_subscription( deserialized = None if response.status_code == 200: - deserialized = self._deserialize('SubscriptionMediaService', response) + deserialized = self._deserialize('MediaService', response) if raw: client_raw_response = ClientRawResponse(deserialized, 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 index 59ca6d6cff7b..88cad879311f 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 @@ -24,7 +24,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_endpoint_connections_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_endpoint_connections_operations.py new file mode 100644 index 000000000000..4614e5643320 --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_endpoint_connections_operations.py @@ -0,0 +1,299 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PrivateEndpointConnectionsOperations(object): + """PrivateEndpointConnectionsOperations 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. + :param deserializer: An object model deserializer. + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2020-05-01" + + self.config = config + + def list( + self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): + """Get all private endpoint connections. + + Get all private endpoint connections. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnectionListResult or ClientRawResponse if + raw=true + :rtype: ~azure.mgmt.media.models.PrivateEndpointConnectionListResult + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnectionListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections'} + + def get( + self, resource_group_name, account_name, name, custom_headers=None, raw=False, **operation_config): + """Get private endpoint connection. + + Get private endpoint connection. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param name: + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.media.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'name': self._serialize.url("name", name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}'} + + def create_or_update( + self, resource_group_name, account_name, name, parameters, custom_headers=None, raw=False, **operation_config): + """Update private endpoint connection. + + Update private endpoint connection. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param name: + :type name: str + :param parameters: The request parameters + :type parameters: ~azure.mgmt.media.models.PrivateEndpointConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.media.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'name': self._serialize.url("name", name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PrivateEndpointConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}'} + + def delete( + self, resource_group_name, account_name, name, custom_headers=None, raw=False, **operation_config): + """Delete private endpoint connection. + + Delete private endpoint connection. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param name: + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'name': self._serialize.url("name", name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}'} diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_link_resources_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_link_resources_operations.py new file mode 100644 index 000000000000..abd4223ed4a3 --- /dev/null +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_private_link_resources_operations.py @@ -0,0 +1,169 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PrivateLinkResourcesOperations(object): + """PrivateLinkResourcesOperations 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. + :param deserializer: An object model deserializer. + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2020-05-01" + + self.config = config + + def list( + self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): + """Get list of group IDs. + + Get list of group IDs. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResourceListResult or ClientRawResponse if + raw=true + :rtype: ~azure.mgmt.media.models.PrivateLinkResourceListResult or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResourceListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources'} + + def get( + self, resource_group_name, account_name, name, custom_headers=None, raw=False, **operation_config): + """Get group ID. + + Get group ID. + + :param resource_group_name: The name of the resource group within the + Azure subscription. + :type resource_group_name: str + :param account_name: The Media Services account name. + :type account_name: str + :param name: + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.media.models.PrivateLinkResource or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ApiErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'name': self._serialize.url("name", name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ApiErrorException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}'} 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 index 6147785d8d17..dfd3d67532c8 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 @@ -26,7 +26,7 @@ class StreamingEndpointsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 8d43fac2b18a..16b5b310f99e 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 @@ -24,7 +24,7 @@ class StreamingLocatorsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index 74bbde4f4944..038f3db353c7 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 @@ -24,7 +24,7 @@ class StreamingPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config 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 index c9912fa2a59b..561a0b677114 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 @@ -24,7 +24,7 @@ class TransformsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01". + :ivar api_version: The Version of the API to be used with the client request. Constant value: "2020-05-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-07-01" + self.api_version = "2020-05-01" self.config = config