Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-media] [Hub Generated] Review request for Microsoft.Media to add version stable/2022-08-01 #868

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "b79f0644da2ae341499e9669893c59d0f387538c",
"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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 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 "2021-11-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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def list(
:param orderby: Specifies the key by which the result collection should be ordered. Default
value is None.
:type orderby: 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 callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either AssetCollection or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.media.models.AssetCollection]
Expand Down Expand Up @@ -171,6 +174,9 @@ async def get(
:type account_name: str
:param asset_name: The Asset name.
:type asset_name: 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 callable cls: A custom type or function that will be passed the direct response
:return: Asset, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.Asset
Expand Down Expand Up @@ -244,6 +250,9 @@ async def create_or_update(
:type asset_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.Asset
: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 callable cls: A custom type or function that will be passed the direct response
:return: Asset, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.Asset
Expand Down Expand Up @@ -322,6 +331,9 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type account_name: str
:param asset_name: The Asset name.
:type asset_name: 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 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 Down Expand Up @@ -391,6 +403,9 @@ async def update(
:type asset_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.Asset
: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 callable cls: A custom type or function that will be passed the direct response
:return: Asset, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.Asset
Expand Down Expand Up @@ -469,6 +484,9 @@ async def list_container_sas(
:type asset_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.ListContainerSasInput
: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 callable cls: A custom type or function that will be passed the direct response
:return: AssetContainerSas, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.AssetContainerSas
Expand Down Expand Up @@ -544,6 +562,9 @@ async def get_encryption_key(
:type account_name: str
:param asset_name: The Asset name.
:type asset_name: 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 callable cls: A custom type or function that will be passed the direct response
:return: StorageEncryptedAssetDecryptionData, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.StorageEncryptedAssetDecryptionData
Expand Down Expand Up @@ -614,6 +635,9 @@ async def list_streaming_locators(
:type account_name: str
:param asset_name: The Asset name.
:type asset_name: 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 callable cls: A custom type or function that will be passed the direct response
:return: ListStreamingLocatorsResponse, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.ListStreamingLocatorsResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def list(
:param orderby: Specifies the key by which the result collection should be ordered. Default
value is None.
:type orderby: 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 callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ContentKeyPolicyCollection or the result of
cls(response)
Expand Down Expand Up @@ -173,6 +176,9 @@ async def get(
:type account_name: str
:param content_key_policy_name: The Content Key Policy name.
:type content_key_policy_name: 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 callable cls: A custom type or function that will be passed the direct response
:return: ContentKeyPolicy, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.ContentKeyPolicy
Expand Down Expand Up @@ -246,6 +252,9 @@ async def create_or_update(
:type content_key_policy_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.ContentKeyPolicy
: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 callable cls: A custom type or function that will be passed the direct response
:return: ContentKeyPolicy, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.ContentKeyPolicy
Expand Down Expand Up @@ -324,6 +333,9 @@ async def delete( # pylint: disable=inconsistent-return-statements
:type account_name: str
:param content_key_policy_name: The Content Key Policy name.
:type content_key_policy_name: 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 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 Down Expand Up @@ -393,6 +405,9 @@ async def update(
:type content_key_policy_name: str
:param parameters: The request parameters.
:type parameters: ~azure.mgmt.media.models.ContentKeyPolicy
: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 callable cls: A custom type or function that will be passed the direct response
:return: ContentKeyPolicy, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.ContentKeyPolicy
Expand Down Expand Up @@ -467,6 +482,9 @@ async def get_policy_properties_with_secrets(
:type account_name: str
:param content_key_policy_name: The Content Key Policy name.
:type content_key_policy_name: 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 callable cls: A custom type or function that will be passed the direct response
:return: ContentKeyPolicyProperties, or the result of cls(response)
:rtype: ~azure.mgmt.media.models.ContentKeyPolicyProperties
Expand Down
Loading