diff --git a/sdk/media/azure-mgmt-media/_meta.json b/sdk/media/azure-mgmt-media/_meta.json index 4c9935b7bac21..a88e74fce492b 100644 --- a/sdk/media/azure-mgmt-media/_meta.json +++ b/sdk/media/azure-mgmt-media/_meta.json @@ -1,11 +1,11 @@ { - "commit": "5a4f7662cba770d045d500894a5565c176453cb3", + "commit": "32fd6e0b3a78a61b9489d3234e5cf60a90618007", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ "@autorest/python@6.2.7", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/mediaservices/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py index a1e5cf8bc16e3..e5754a47ce68f 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.2.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_jobs_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_jobs_operations.py index 8a0476174f6cc..42d8243d799d6 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_jobs_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_jobs_operations.py @@ -98,7 +98,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.JobCollection] = kwargs.pop("cls", None) error_map = { @@ -195,7 +195,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.Job] = kwargs.pop("cls", None) request = build_get_request( @@ -350,7 +350,7 @@ async def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Job] = kwargs.pop("cls", None) @@ -434,7 +434,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -591,7 +591,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Job] = kwargs.pop("cls", None) @@ -675,7 +675,7 @@ async def cancel_job( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_job_request( diff --git a/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py b/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py index f7e27dd364d6b..8f0bf87ad7975 100644 --- a/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py +++ b/sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py @@ -94,7 +94,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.TransformCollection] = kwargs.pop("cls", None) error_map = { @@ -188,7 +188,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) request = build_get_request( @@ -333,7 +333,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) @@ -418,7 +418,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -559,7 +559,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) 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 73e0453e6276e..a9b8554614123 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 @@ -72,6 +72,7 @@ from ._models_py3 import CopyAudio from ._models_py3 import CopyVideo from ._models_py3 import CrossSiteAccessPolicies +from ._models_py3 import DDAudio from ._models_py3 import DashSettings from ._models_py3 import DefaultKey from ._models_py3 import Deinterlace @@ -85,6 +86,7 @@ from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse from ._models_py3 import FaceDetectorPreset +from ._models_py3 import Fade from ._models_py3 import FilterTrackPropertyCondition from ._models_py3 import FilterTrackSelection from ._models_py3 import Filters @@ -355,6 +357,7 @@ "CopyAudio", "CopyVideo", "CrossSiteAccessPolicies", + "DDAudio", "DashSettings", "DefaultKey", "Deinterlace", @@ -368,6 +371,7 @@ "ErrorDetail", "ErrorResponse", "FaceDetectorPreset", + "Fade", "FilterTrackPropertyCondition", "FilterTrackSelection", "Filters", 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 e59fafe8a3e24..3a5029c42d3df 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 @@ -138,7 +138,7 @@ class ChannelMapping(str, Enum, metaclass=CaseInsensitiveEnumMeta): FRONT_RIGHT = "FrontRight" #: The Center Channel. CENTER = "Center" - #: Low Frequency Effects Channel. Sometimes referred to as the Subwoofer. + #: Low Frequency Effects Channel. Sometimes referred to as the subwoofer. LOW_FREQUENCY_EFFECTS = "LowFrequencyEffects" #: The Back Left Channel. Sometimes referred to as the Left Surround Channel. BACK_LEFT = "BackLeft" @@ -286,8 +286,10 @@ class EncoderNamedPreset(str, Enum, metaclass=CaseInsensitiveEnumMeta): #: will never exceed the input resolution. For example, if the input is 720p, output will remain #: 720p at best. ADAPTIVE_STREAMING = "AdaptiveStreaming" - #: Produces a single MP4 file containing only stereo audio encoded at 192 kbps. + #: Produces a single MP4 file containing only AAC stereo audio encoded at 192 kbps. AAC_GOOD_QUALITY_AUDIO = "AACGoodQualityAudio" + #: Produces a single MP4 file containing only DD(Digital Dolby) stereo audio encoded at 192 kbps. + DD_GOOD_QUALITY_AUDIO = "DDGoodQualityAudio" #: 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 @@ -520,6 +522,8 @@ class JobErrorCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta): CONFIGURATION = "Configuration" #: The error is related to data in the input files. CONTENT = "Content" + #: The error is related to account information. + ACCOUNT = "Account" class JobErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -551,6 +555,9 @@ class JobErrorCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): #: There was a problem with the format of the input (not valid media file, or an unsupported #: file/codec), check the validity of the input files. CONTENT_UNSUPPORTED = "ContentUnsupported" + #: There was an error verifying to the account identity. Check and fix the identity configurations + #: and retry. If unsuccessful, please contact support. + IDENTITY_UNSUPPORTED = "IdentityUnsupported" class JobRetry(str, Enum, metaclass=CaseInsensitiveEnumMeta): 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 ccaa99fb13f5b..68e3821acdd67 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 @@ -64,7 +64,7 @@ class Audio(Codec): """Defines the common properties for all audio codecs. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AacAudio + AacAudio, DDAudio All required parameters must be populated in order to send to Azure. @@ -92,7 +92,7 @@ class Audio(Codec): "bitrate": {"key": "bitrate", "type": "int"}, } - _subtype_map = {"odata_type": {"#Microsoft.Media.AacAudio": "AacAudio"}} + _subtype_map = {"odata_type": {"#Microsoft.Media.AacAudio": "AacAudio", "#Microsoft.Media.DDAudio": "DDAudio"}} def __init__( self, @@ -1756,11 +1756,11 @@ class BuiltInStandardEncoderPreset(Preset): :vartype configurations: ~azure.mgmt.media.models.PresetConfigurations :ivar preset_name: The built-in preset to be used for encoding videos. Required. Known values are: "H264SingleBitrateSD", "H264SingleBitrate720p", "H264SingleBitrate1080p", - "AdaptiveStreaming", "AACGoodQualityAudio", "ContentAwareEncodingExperimental", - "ContentAwareEncoding", "CopyAllBitrateNonInterleaved", "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", "H264MultipleBitrateSD", "H265ContentAwareEncoding", - "H265AdaptiveStreaming", "H265SingleBitrate720p", "H265SingleBitrate1080p", and - "H265SingleBitrate4K". + "AdaptiveStreaming", "AACGoodQualityAudio", "DDGoodQualityAudio", + "ContentAwareEncodingExperimental", "ContentAwareEncoding", "CopyAllBitrateNonInterleaved", + "H264MultipleBitrate1080p", "H264MultipleBitrate720p", "H264MultipleBitrateSD", + "H265ContentAwareEncoding", "H265AdaptiveStreaming", "H265SingleBitrate720p", + "H265SingleBitrate1080p", and "H265SingleBitrate4K". :vartype preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset """ @@ -1788,11 +1788,11 @@ def __init__( :paramtype configurations: ~azure.mgmt.media.models.PresetConfigurations :keyword preset_name: The built-in preset to be used for encoding videos. Required. Known values are: "H264SingleBitrateSD", "H264SingleBitrate720p", "H264SingleBitrate1080p", - "AdaptiveStreaming", "AACGoodQualityAudio", "ContentAwareEncodingExperimental", - "ContentAwareEncoding", "CopyAllBitrateNonInterleaved", "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", "H264MultipleBitrateSD", "H265ContentAwareEncoding", - "H265AdaptiveStreaming", "H265SingleBitrate720p", "H265SingleBitrate1080p", and - "H265SingleBitrate4K". + "AdaptiveStreaming", "AACGoodQualityAudio", "DDGoodQualityAudio", + "ContentAwareEncodingExperimental", "ContentAwareEncoding", "CopyAllBitrateNonInterleaved", + "H264MultipleBitrate1080p", "H264MultipleBitrate720p", "H264MultipleBitrateSD", + "H265ContentAwareEncoding", "H265AdaptiveStreaming", "H265SingleBitrate720p", + "H265SingleBitrate1080p", and "H265SingleBitrate4K". :paramtype preset_name: str or ~azure.mgmt.media.models.EncoderNamedPreset """ super().__init__(**kwargs) @@ -3392,6 +3392,59 @@ def __init__(self, *, role: Optional[str] = None, **kwargs): self.role = role +class DDAudio(Audio): + """Describes Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps. + + All required parameters must be populated in order to send to Azure. + + :ivar odata_type: The discriminator for derived types. Required. + :vartype odata_type: str + :ivar label: An optional label for the codec. The label can be used to control muxing behavior. + :vartype label: str + :ivar channels: The number of channels in the audio. + :vartype channels: int + :ivar sampling_rate: The sampling rate to use for encoding in hertz. + :vartype sampling_rate: int + :ivar bitrate: The bitrate, in bits per second, of the output encoded audio. + :vartype bitrate: int + """ + + _validation = { + "odata_type": {"required": True}, + } + + _attribute_map = { + "odata_type": {"key": "@odata\\.type", "type": "str"}, + "label": {"key": "label", "type": "str"}, + "channels": {"key": "channels", "type": "int"}, + "sampling_rate": {"key": "samplingRate", "type": "int"}, + "bitrate": {"key": "bitrate", "type": "int"}, + } + + def __init__( + self, + *, + label: Optional[str] = None, + channels: Optional[int] = None, + sampling_rate: Optional[int] = None, + bitrate: Optional[int] = None, + **kwargs + ): + """ + :keyword label: An optional label for the codec. The label can be used to control muxing + behavior. + :paramtype label: str + :keyword channels: The number of channels in the audio. + :paramtype channels: int + :keyword sampling_rate: The sampling rate to use for encoding in hertz. + :paramtype sampling_rate: int + :keyword bitrate: The bitrate, in bits per second, of the output encoded audio. + :paramtype bitrate: int + """ + super().__init__(label=label, channels=channels, sampling_rate=sampling_rate, bitrate=bitrate, **kwargs) + self.odata_type: str = "#Microsoft.Media.DDAudio" + + class DefaultKey(_serialization.Model): """Class to specify properties of default content key for each encryption scheme. @@ -3886,6 +3939,61 @@ def __init__( self.experimental_options = experimental_options +class Fade(_serialization.Model): + """Describes the properties of a Fade effect applied to the input media. + + All required parameters must be populated in order to send to Azure. + + :ivar duration: The Duration of the fade effect in the video. The value can be in ISO 8601 + format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For + example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For + example, 10% to fade 10% of stream duration). Required. + :vartype duration: ~datetime.timedelta + :ivar fade_color: The Color for the fade In/Out. it can be on the CSS Level1 colors + https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex + value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000. Required. + :vartype fade_color: str + :ivar start: The position in the input video from where to start fade. The value can be in ISO + 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to + start at the 10th frame), or a relative value to stream duration (For example, 10% to start at + 10% of stream duration). Default is 0. + :vartype start: str + """ + + _validation = { + "duration": {"required": True}, + "fade_color": {"required": True}, + } + + _attribute_map = { + "duration": {"key": "duration", "type": "duration"}, + "fade_color": {"key": "fadeColor", "type": "str"}, + "start": {"key": "start", "type": "str"}, + } + + def __init__(self, *, duration: datetime.timedelta, fade_color: str, start: Optional[str] = None, **kwargs): + """ + :keyword duration: The Duration of the fade effect in the video. The value can be in ISO 8601 + format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For + example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For + example, 10% to fade 10% of stream duration). Required. + :paramtype duration: ~datetime.timedelta + :keyword fade_color: The Color for the fade In/Out. it can be on the CSS Level1 colors + https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex + value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000. Required. + :paramtype fade_color: str + :keyword start: The position in the input video from where to start fade. The value can be in + ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 + to start at the 10th frame), or a relative value to stream duration (For example, 10% to start + at 10% of stream duration). Default is 0. + :paramtype start: str + """ + super().__init__(**kwargs) + self.duration = duration + self.fade_color = fade_color + self.start = start + + class Filters(_serialization.Model): """Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding. @@ -3897,6 +4005,10 @@ class Filters(_serialization.Model): :vartype rotation: str or ~azure.mgmt.media.models.Rotation :ivar crop: The parameters for the rectangular window with which to crop the input video. :vartype crop: ~azure.mgmt.media.models.Rectangle + :ivar fade_in: Describes the properties of a Fade effect applied to the input media. + :vartype fade_in: ~azure.mgmt.media.models.Fade + :ivar fade_out: Describes the properties of a Fade effect applied to the input media. + :vartype fade_out: ~azure.mgmt.media.models.Fade :ivar overlays: The properties of overlays to be applied to the input video. These could be audio, image or video overlays. :vartype overlays: list[~azure.mgmt.media.models.Overlay] @@ -3906,6 +4018,8 @@ class Filters(_serialization.Model): "deinterlace": {"key": "deinterlace", "type": "Deinterlace"}, "rotation": {"key": "rotation", "type": "str"}, "crop": {"key": "crop", "type": "Rectangle"}, + "fade_in": {"key": "fadeIn", "type": "Fade"}, + "fade_out": {"key": "fadeOut", "type": "Fade"}, "overlays": {"key": "overlays", "type": "[Overlay]"}, } @@ -3915,6 +4029,8 @@ def __init__( deinterlace: Optional["_models.Deinterlace"] = None, rotation: Optional[Union[str, "_models.Rotation"]] = None, crop: Optional["_models.Rectangle"] = None, + fade_in: Optional["_models.Fade"] = None, + fade_out: Optional["_models.Fade"] = None, overlays: Optional[List["_models.Overlay"]] = None, **kwargs ): @@ -3927,6 +4043,10 @@ def __init__( :paramtype rotation: str or ~azure.mgmt.media.models.Rotation :keyword crop: The parameters for the rectangular window with which to crop the input video. :paramtype crop: ~azure.mgmt.media.models.Rectangle + :keyword fade_in: Describes the properties of a Fade effect applied to the input media. + :paramtype fade_in: ~azure.mgmt.media.models.Fade + :keyword fade_out: Describes the properties of a Fade effect applied to the input media. + :paramtype fade_out: ~azure.mgmt.media.models.Fade :keyword overlays: The properties of overlays to be applied to the input video. These could be audio, image or video overlays. :paramtype overlays: list[~azure.mgmt.media.models.Overlay] @@ -3935,6 +4055,8 @@ def __init__( self.deinterlace = deinterlace self.rotation = rotation self.crop = crop + self.fade_in = fade_in + self.fade_out = fade_out self.overlays = overlays @@ -4051,16 +4173,17 @@ class Format(_serialization.Model): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str """ @@ -4083,16 +4206,17 @@ class Format(_serialization.Model): def __init__(self, *, filename_pattern: str, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str """ super().__init__(**kwargs) @@ -5327,16 +5451,17 @@ class ImageFormat(Format): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str """ @@ -5356,16 +5481,17 @@ class ImageFormat(Format): def __init__(self, *, filename_pattern: str, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str """ super().__init__(filename_pattern=filename_pattern, **kwargs) @@ -5621,12 +5747,12 @@ class JobError(_serialization.Model): :ivar code: Error code describing the error. Known values are: "ServiceError", "ServiceTransientError", "DownloadNotAccessible", "DownloadTransientError", "UploadNotAccessible", "UploadTransientError", "ConfigurationUnsupported", "ContentMalformed", - and "ContentUnsupported". + "ContentUnsupported", and "IdentityUnsupported". :vartype code: str or ~azure.mgmt.media.models.JobErrorCode :ivar message: A human-readable language-dependent representation of the error. :vartype message: str :ivar category: Helps with categorization of errors. Known values are: "Service", "Download", - "Upload", "Configuration", and "Content". + "Upload", "Configuration", "Content", and "Account". :vartype category: str or ~azure.mgmt.media.models.JobErrorCategory :ivar retry: Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Known values are: "DoNotRetry" and "MayRetry". @@ -6232,16 +6358,17 @@ class JpgFormat(ImageFormat): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str """ @@ -6257,16 +6384,17 @@ class JpgFormat(ImageFormat): def __init__(self, *, filename_pattern: str, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str """ super().__init__(filename_pattern=filename_pattern, **kwargs) @@ -8045,16 +8173,17 @@ class MultiBitrateFormat(Format): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str :ivar output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -8081,16 +8210,17 @@ class MultiBitrateFormat(Format): def __init__(self, *, filename_pattern: str, output_files: Optional[List["_models.OutputFile"]] = None, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str :keyword output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -8108,16 +8238,17 @@ class Mp4Format(MultiBitrateFormat): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str :ivar output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -8137,16 +8268,17 @@ class Mp4Format(MultiBitrateFormat): def __init__(self, *, filename_pattern: str, output_files: Optional[List["_models.OutputFile"]] = None, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str :keyword output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -8349,16 +8481,17 @@ class PngFormat(ImageFormat): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str """ @@ -8374,16 +8507,17 @@ class PngFormat(ImageFormat): def __init__(self, *, filename_pattern: str, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str """ super().__init__(filename_pattern=filename_pattern, **kwargs) @@ -9338,6 +9472,9 @@ class StandardEncoderPreset(Preset): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str + :ivar experimental_options: Dictionary containing key value pairs for parameters not exposed in + the preset itself. + :vartype experimental_options: dict[str, str] :ivar filters: One or more filtering operations that are applied to the input media before encoding. :vartype filters: ~azure.mgmt.media.models.Filters @@ -9355,6 +9492,7 @@ class StandardEncoderPreset(Preset): _attribute_map = { "odata_type": {"key": "@odata\\.type", "type": "str"}, + "experimental_options": {"key": "experimentalOptions", "type": "{str}"}, "filters": {"key": "filters", "type": "Filters"}, "codecs": {"key": "codecs", "type": "[Codec]"}, "formats": {"key": "formats", "type": "[Format]"}, @@ -9365,10 +9503,14 @@ def __init__( *, codecs: List["_models.Codec"], formats: List["_models.Format"], + experimental_options: Optional[Dict[str, str]] = None, filters: Optional["_models.Filters"] = None, **kwargs ): """ + :keyword experimental_options: Dictionary containing key value pairs for parameters not exposed + in the preset itself. + :paramtype experimental_options: dict[str, str] :keyword filters: One or more filtering operations that are applied to the input media before encoding. :paramtype filters: ~azure.mgmt.media.models.Filters @@ -9379,6 +9521,7 @@ def __init__( """ super().__init__(**kwargs) self.odata_type: str = "#Microsoft.Media.StandardEncoderPreset" + self.experimental_options = experimental_options self.filters = filters self.codecs = codecs self.formats = formats @@ -10725,16 +10868,17 @@ class TransportStreamFormat(MultiBitrateFormat): :ivar odata_type: The discriminator for derived types. Required. :vartype odata_type: str - :ivar filename_pattern: The pattern of the file names for the generated output files. The + :ivar filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :vartype filename_pattern: str :ivar output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . @@ -10754,16 +10898,17 @@ class TransportStreamFormat(MultiBitrateFormat): def __init__(self, *, filename_pattern: str, output_files: Optional[List["_models.OutputFile"]] = None, **kwargs): """ - :keyword filename_pattern: The pattern of the file names for the generated output files. The + :keyword filename_pattern: The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique - index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not - applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video - resolution. Any unsubstituted macros will be collapsed and removed from the filename. Required. + index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio + stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to + thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. + Any unsubstituted macros will be collapsed and removed from the filename. Required. :paramtype filename_pattern: str :keyword output_files: The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . 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 6685764aafe95..6fc59ecec02d3 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 @@ -53,7 +53,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +89,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -122,7 +122,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -158,7 +158,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -191,7 +191,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -227,7 +227,7 @@ def build_cancel_job_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -307,7 +307,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.JobCollection] = kwargs.pop("cls", None) error_map = { @@ -404,7 +404,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.Job] = kwargs.pop("cls", None) request = build_get_request( @@ -559,7 +559,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Job] = kwargs.pop("cls", None) @@ -643,7 +643,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -800,7 +800,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Job] = kwargs.pop("cls", None) @@ -884,7 +884,7 @@ def cancel_job( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_job_request( 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 75d7529f45a7e..57d764d42b3e0 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 @@ -52,7 +52,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +87,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -119,7 +119,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -154,7 +154,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -186,7 +186,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -265,7 +265,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.TransformCollection] = kwargs.pop("cls", None) error_map = { @@ -357,7 +357,7 @@ def get(self, resource_group_name: str, account_name: str, transform_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) request = build_get_request( @@ -502,7 +502,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) @@ -587,7 +587,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -728,7 +728,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2021-11-01"] = kwargs.pop("api_version", _params.pop("api-version", "2021-11-01")) + api_version: Literal["2022-07-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-07-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Transform] = kwargs.pop("cls", None) diff --git a/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreate.py b/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreate.py index 6fec55e37882a..d67835654869b 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreate.py @@ -33,35 +33,16 @@ def main(): resource_group_name="contoso", account_name="contososports", parameters={ - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, - }, - }, "location": "South Central US", "properties": { - "encryption": { - "identity": { - "useSystemAssignedIdentity": False, - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - }, - "type": "CustomerKey", - }, - "keyDelivery": {"accessControl": {"defaultAction": "Allow"}}, "publicNetworkAccess": "Enabled", "storageAccounts": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "identity": { - "useSystemAssignedIdentity": False, - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - }, "type": "Primary", } ], - "storageAuthentication": "ManagedIdentity", + "storageAuthentication": "System", }, "tags": {"key1": "value1", "key2": "value2"}, }, diff --git a/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreatemanagedidentity.py b/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreatemanagedidentity.py new file mode 100644 index 0000000000000..d32c480f9c0d1 --- /dev/null +++ b/sdk/media/azure-mgmt-media/generated_samples/asyncaccountscreatemanagedidentity.py @@ -0,0 +1,74 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential +from azure.mgmt.media import AzureMediaServices + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-media +# USAGE + python asyncaccountscreatemanagedidentity.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AzureMediaServices( + credential=DefaultAzureCredential(), + subscription_id="00000000-0000-0000-0000-000000000000", + ) + + response = client.mediaservices.begin_create_or_update( + resource_group_name="contoso", + account_name="contososports", + parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {}, + }, + }, + "location": "South Central US", + "properties": { + "encryption": { + "identity": { + "useSystemAssignedIdentity": False, + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + }, + "type": "CustomerKey", + }, + "keyDelivery": {"accessControl": {"defaultAction": "Allow"}}, + "publicNetworkAccess": "Enabled", + "storageAccounts": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", + "identity": { + "useSystemAssignedIdentity": False, + "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", + }, + "type": "Primary", + } + ], + "storageAuthentication": "ManagedIdentity", + }, + "tags": {"key1": "value1", "key2": "value2"}, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json +if __name__ == "__main__": + main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobscancel.py b/sdk/media/azure-mgmt-media/generated_samples/jobscancel.py index 0e90bf11e8858..29e990f3766c3 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobscancel.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobscancel.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-cancel.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobscreate.py b/sdk/media/azure-mgmt-media/generated_samples/jobscreate.py index a259a73a57604..1ce1ec0a34359 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobscreate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobscreate.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-create.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobsdelete.py b/sdk/media/azure-mgmt-media/generated_samples/jobsdelete.py index 810467c8892e1..28a04abec1080 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobsdelete.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobsdelete.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-delete.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobsgetbyname.py b/sdk/media/azure-mgmt-media/generated_samples/jobsgetbyname.py index 0b5701b4f8434..15fc02ee5a4d4 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobsgetbyname.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobsgetbyname.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-get-by-name.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistall.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistall.py index 91f1b845c73f2..4811d453a3795 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistall.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistall.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbycreated.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbycreated.py index 4d08b664b6c7c..80da32e9e872c 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbycreated.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbycreated.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbylastmodified.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbylastmodified.py index 0170cdbbe3bbe..c70eaeb359b6f 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbylastmodified.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbylastmodified.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbyname.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbyname.py index 62b145eae5cf4..c98c151e4d876 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbyname.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbyname.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbynameandstate.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbynameandstate.py index ff74f522e05a0..4b46f855f92ad 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbynameandstate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbynameandstate.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name-and-state.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystateeq.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystateeq.py index 3fcc2aac33486..4f6852af4d0c2 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystateeq.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystateeq.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-eq.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystatene.py b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystatene.py index 80c0d79dcb817..99ffa9f0e5254 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystatene.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobslistallfilterbystatene.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-ne.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/jobsupdate.py b/sdk/media/azure-mgmt-media/generated_samples/jobsupdate.py index db09456364354..4298408f06933 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/jobsupdate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/jobsupdate.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-update.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformscreate.py b/sdk/media/azure-mgmt-media/generated_samples/transformscreate.py index b69bddd06af1d..2cdf8262f5127 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformscreate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformscreate.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-create.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformsdelete.py b/sdk/media/azure-mgmt-media/generated_samples/transformsdelete.py index 42a849cc7de4a..abc9887ba40a2 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformsdelete.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformsdelete.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-delete.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformsgetbyname.py b/sdk/media/azure-mgmt-media/generated_samples/transformsgetbyname.py index 52be6881239a6..a4f5ea79a1c67 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformsgetbyname.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformsgetbyname.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-get-by-name.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformslistall.py b/sdk/media/azure-mgmt-media/generated_samples/transformslistall.py index 87ff09d3c25fe..d32c593adae08 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformslistall.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformslistall.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbycreated.py b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbycreated.py index 3d2d8ec35d053..f11b598b3404e 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbycreated.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbycreated.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-created.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbylastmodified.py b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbylastmodified.py index bc019407d2fdc..eecb8794f8294 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbylastmodified.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbylastmodified.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbyname.py b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbyname.py index bad1229993bea..8d95f329f67d0 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbyname.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformslistallfilterbyname.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json if __name__ == "__main__": main() diff --git a/sdk/media/azure-mgmt-media/generated_samples/transformsupdate.py b/sdk/media/azure-mgmt-media/generated_samples/transformsupdate.py index d52541ba18cc2..c93a6bcf5e10b 100644 --- a/sdk/media/azure-mgmt-media/generated_samples/transformsupdate.py +++ b/sdk/media/azure-mgmt-media/generated_samples/transformsupdate.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-update.json +# x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json if __name__ == "__main__": main()