Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -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(
Expand Down
62 changes: 51 additions & 11 deletions sdk/media/azure-mgmt-media/azure/mgmt/media/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -321,14 +341,18 @@
from ._paged_models import StreamingEndpointPaged
from ._paged_models import StreamingLocatorPaged
from ._paged_models import StreamingPolicyPaged
from ._paged_models import SubscriptionMediaServicePaged
from ._paged_models import TransformPaged
from ._azure_media_services_enums import (
FilterTrackPropertyType,
FilterTrackPropertyCompareOperation,
MetricUnit,
MetricAggregationType,
StorageAccountType,
StorageAuthentication,
AccountEncryptionKeyType,
ManagedIdentityType,
PrivateEndpointConnectionProvisioningState,
PrivateEndpointServiceConnectionStatus,
AssetStorageEncryptionFormat,
AssetContainerPermission,
ContentKeyPolicyPlayReadyUnknownOutputPassingOption,
Expand All @@ -339,6 +363,7 @@
AacAudioProfile,
AnalysisResolution,
StretchMode,
VideoSyncMode,
DeinterlaceParity,
DeinterlaceMode,
Rotation,
Expand Down Expand Up @@ -369,6 +394,7 @@
__all__ = [
'AacAudio',
'AbsoluteClipTime',
'AccountEncryption',
'AccountFilter',
'AkamaiAccessControl',
'AkamaiSignatureHeaderAuthenticationKey',
Expand All @@ -381,6 +407,7 @@
'Audio',
'AudioAnalyzerPreset',
'AudioOverlay',
'AzureEntityResource',
'BuiltInStandardEncoderPreset',
'CbcsDrmConfiguration',
'CencDrmConfiguration',
Expand Down Expand Up @@ -451,6 +478,7 @@
'JpgFormat',
'JpgImage',
'JpgLayer',
'KeyVaultProperties',
'Layer',
'ListContainerSasInput',
'ListContentKeysResponse',
Expand All @@ -467,10 +495,11 @@
'LiveEventPreviewAccessControl',
'LiveOutput',
'Location',
'LogSpecification',
'MediaService',
'Metric',
'MediaServiceIdentity',
'MetricDimension',
'MetricProperties',
'MetricSpecification',
'Mp4Format',
'MultiBitrateFormat',
'NoEncryption',
Expand All @@ -484,6 +513,13 @@
'PngLayer',
'PresentationTimeRange',
'Preset',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateEndpointConnectionListResult',
'PrivateLinkResource',
'PrivateLinkResourceListResult',
'PrivateLinkServiceConnectionState',
'Properties',
'Provider',
'ProxyResource',
'Rectangle',
Expand All @@ -504,7 +540,6 @@
'StreamingPolicyFairPlayConfiguration',
'StreamingPolicyPlayReadyConfiguration',
'StreamingPolicyWidevineConfiguration',
'SubscriptionMediaService',
'SyncStorageKeysInput',
'TrackedResource',
'TrackPropertyCondition',
Expand All @@ -519,7 +554,6 @@
'AccountFilterPaged',
'OperationPaged',
'MediaServicePaged',
'SubscriptionMediaServicePaged',
'AssetPaged',
'AssetFilterPaged',
'ContentKeyPolicyPaged',
Expand All @@ -535,6 +569,11 @@
'MetricUnit',
'MetricAggregationType',
'StorageAccountType',
'StorageAuthentication',
'AccountEncryptionKeyType',
'ManagedIdentityType',
'PrivateEndpointConnectionProvisioningState',
'PrivateEndpointServiceConnectionStatus',
'AssetStorageEncryptionFormat',
'AssetContainerPermission',
'ContentKeyPolicyPlayReadyUnknownOutputPassingOption',
Expand All @@ -545,6 +584,7 @@
'AacAudioProfile',
'AnalysisResolution',
'StretchMode',
'VideoSyncMode',
'DeinterlaceParity',
'DeinterlaceMode',
'Rotation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
Loading