Skip to content

Commit

Permalink
CodeGen from PR 19778 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6d0f6d0f26637950eb16eb8f9379f939373e1f08 into 0de25e2a040e1257b3a90faea868ad93c3435e48
  • Loading branch information
SDKAuto committed Jul 18, 2022
1 parent 445bcb7 commit acee343
Show file tree
Hide file tree
Showing 51 changed files with 861 additions and 156 deletions.
4 changes: 2 additions & 2 deletions sdk/media/azure-mgmt-media/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "fda2db441da3f1fab31bb235e97da3e33c8e3903",
"commit": "9e4eafc71b616f2ada00e4d15228d714fc7494e7",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/mediaservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ class AzureMediaServices: # pylint: disable=too-many-instance-attributes
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""
Expand Down
6 changes: 0 additions & 6 deletions sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class AzureMediaServicesConfiguration(Configuration): # pylint: disable=too-man
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The unique identifier for a Microsoft Azure subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -41,16 +38,13 @@ def __init__(
**kwargs: Any
) -> None:
super(AzureMediaServicesConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-11-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
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.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ class AzureMediaServices: # pylint: disable=too-many-instance-attributes
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ class AzureMediaServicesConfiguration(Configuration): # pylint: disable=too-man
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The unique identifier for a Microsoft Azure subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -41,16 +38,13 @@ def __init__(
**kwargs: Any
) -> None:
super(AzureMediaServicesConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-11-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def list(
:type resource_group_name: str
:param account_name: The Media Services account name.
:type account_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either AccountFilterCollection or the result of
cls(response)
Expand All @@ -69,7 +72,7 @@ def list(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.AccountFilterCollection]

error_map = {
Expand Down Expand Up @@ -155,6 +158,9 @@ async def get(
:type account_name: str
:param filter_name: The Account Filter name.
:type filter_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AccountFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AccountFilter
Expand All @@ -168,7 +174,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.AccountFilter]


Expand Down Expand Up @@ -228,6 +234,9 @@ async def create_or_update(
:type filter_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.AccountFilter
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AccountFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AccountFilter
Expand All @@ -241,7 +250,7 @@ async def create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str]
cls = kwargs.pop('cls', None) # type: ClsType[_models.AccountFilter]

Expand Down Expand Up @@ -306,6 +315,9 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type account_name: str
:param filter_name: The Account Filter name.
:type filter_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
Expand All @@ -319,7 +331,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[None]


Expand Down Expand Up @@ -375,6 +387,9 @@ async def update(
:type filter_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.AccountFilter
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AccountFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AccountFilter
Expand All @@ -388,7 +403,7 @@ async def update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str]
cls = kwargs.pop('cls', None) # type: ClsType[_models.AccountFilter]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def list(
:type account_name: str
:param asset_name: The Asset name.
:type asset_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either AssetFilterCollection or the result of
cls(response)
Expand All @@ -71,7 +74,7 @@ def list(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.AssetFilterCollection]

error_map = {
Expand Down Expand Up @@ -162,6 +165,9 @@ async def get(
:type asset_name: str
:param filter_name: The Asset Filter name.
:type filter_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AssetFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AssetFilter
Expand All @@ -175,7 +181,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.AssetFilter]


Expand Down Expand Up @@ -239,6 +245,9 @@ async def create_or_update(
:type filter_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.AssetFilter
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AssetFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AssetFilter
Expand All @@ -252,7 +261,7 @@ async def create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str]
cls = kwargs.pop('cls', None) # type: ClsType[_models.AssetFilter]

Expand Down Expand Up @@ -321,6 +330,9 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type asset_name: str
:param filter_name: The Asset Filter name.
:type filter_name: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
Expand All @@ -334,7 +346,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[None]


Expand Down Expand Up @@ -394,6 +406,9 @@ async def update(
:type filter_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.AssetFilter
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AssetFilter, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AssetFilter
Expand All @@ -407,7 +422,7 @@ async def update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-11-01")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str
content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str]
cls = kwargs.pop('cls', None) # type: ClsType[_models.AssetFilter]

Expand Down
Loading

0 comments on commit acee343

Please sign in to comment.