Skip to content

Commit

Permalink
CodeGen from PR 21190 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b84e104dd86dab6c2ce796a8bccfa2efc8432997 into 71121282e39bccae590462648e77bca283df6d2b
  • Loading branch information
SDKAuto committed Jan 11, 2023
1 parent a17fed2 commit df605f5
Show file tree
Hide file tree
Showing 31 changed files with 359 additions and 148 deletions.
4 changes: 2 additions & 2 deletions sdk/media/azure-mgmt-media/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "5a4f7662cba770d045d500894a5565c176453cb3",
"commit": "32fd6e0b3a78a61b9489d3234e5cf60a90618007",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --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/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/mediaservices/resource-manager/readme.md"
}
2 changes: 1 addition & 1 deletion sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -355,6 +357,7 @@
"CopyAudio",
"CopyVideo",
"CrossSiteAccessPolicies",
"DDAudio",
"DashSettings",
"DefaultKey",
"Deinterlace",
Expand All @@ -368,6 +371,7 @@
"ErrorDetail",
"ErrorResponse",
"FaceDetectorPreset",
"Fade",
"FilterTrackPropertyCondition",
"FilterTrackSelection",
"Filters",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
Loading

0 comments on commit df605f5

Please sign in to comment.