Skip to content

Commit f4455f8

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-media-2021-07-15-32183 (Azure#19811)
* CodeGen from PR 15097 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Media to add version stable/2021-06-01- Part 2 (Azure#15097) * Copy 2020-05-01 version of the encoding swagger. * Update encoder swagger to 2021-06-01 version. * fix 404 response on Encoding swagger * fixed a description and removed 404 reponses from examples. * update example files. * version,CHANGELOG Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 5b23cb5 commit f4455f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1363
-1031
lines changed

sdk/media/azure-mgmt-media/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Release History
22

3+
## 8.0.0 (2021-07-15)
4+
5+
**Features**
6+
7+
- Model JobOutput has a new parameter preset_override
8+
- Model BuiltInStandardEncoderPreset has a new parameter configurations
9+
- Model MediaServiceIdentity has a new parameter user_assigned_identities
10+
- Model JobOutputAsset has a new parameter preset_override
11+
- Model MediaService has a new parameter public_network_access
12+
- Model MediaServiceUpdate has a new parameter public_network_access
13+
- Model StorageAccount has a new parameter status
14+
- Model StorageAccount has a new parameter identity
15+
- Model AccountEncryption has a new parameter status
16+
- Model AccountEncryption has a new parameter identity
17+
- Model LiveOutput has a new parameter system_data
18+
19+
**Breaking changes**
20+
21+
- Model OperationCollection no longer has parameter odata_next_link
22+
323
## 7.0.0 (2021-06-03)
424

525
**Features**

sdk/media/azure-mgmt-media/_meta.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "d78e99bbaa8170a72c38d8a6dad8a896f9a5c636",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "9d35bc9e89687145294705eb72e378bd83c1520c",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/mediaservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.3 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/mediaservices/resource-manager/readme.md"
811
}

sdk/media/azure-mgmt-media/azure/mgmt/media/_azure_media_services.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2020

2121
from ._configuration import AzureMediaServicesConfiguration
22-
from .operations import AccountFiltersOperations
2322
from .operations import Operations
2423
from .operations import MediaservicesOperations
2524
from .operations import PrivateLinkResourcesOperations
2625
from .operations import PrivateEndpointConnectionsOperations
2726
from .operations import LocationsOperations
27+
from .operations import AccountFiltersOperations
2828
from .operations import AssetsOperations
2929
from .operations import AssetFiltersOperations
3030
from .operations import ContentKeyPoliciesOperations
@@ -41,8 +41,6 @@
4141
class AzureMediaServices(object):
4242
"""This Swagger was generated by the API Framework.
4343
44-
:ivar account_filters: AccountFiltersOperations operations
45-
:vartype account_filters: azure.mgmt.media.operations.AccountFiltersOperations
4644
:ivar operations: Operations operations
4745
:vartype operations: azure.mgmt.media.operations.Operations
4846
:ivar mediaservices: MediaservicesOperations operations
@@ -53,6 +51,8 @@ class AzureMediaServices(object):
5351
:vartype private_endpoint_connections: azure.mgmt.media.operations.PrivateEndpointConnectionsOperations
5452
:ivar locations: LocationsOperations operations
5553
:vartype locations: azure.mgmt.media.operations.LocationsOperations
54+
:ivar account_filters: AccountFiltersOperations operations
55+
:vartype account_filters: azure.mgmt.media.operations.AccountFiltersOperations
5656
:ivar assets: AssetsOperations operations
5757
:vartype assets: azure.mgmt.media.operations.AssetsOperations
5858
:ivar asset_filters: AssetFiltersOperations operations
@@ -99,8 +99,6 @@ def __init__(
9999
self._serialize.client_side_validation = False
100100
self._deserialize = Deserializer(client_models)
101101

102-
self.account_filters = AccountFiltersOperations(
103-
self._client, self._config, self._serialize, self._deserialize)
104102
self.operations = Operations(
105103
self._client, self._config, self._serialize, self._deserialize)
106104
self.mediaservices = MediaservicesOperations(
@@ -111,6 +109,8 @@ def __init__(
111109
self._client, self._config, self._serialize, self._deserialize)
112110
self.locations = LocationsOperations(
113111
self._client, self._config, self._serialize, self._deserialize)
112+
self.account_filters = AccountFiltersOperations(
113+
self._client, self._config, self._serialize, self._deserialize)
114114
self.assets = AssetsOperations(
115115
self._client, self._config, self._serialize, self._deserialize)
116116
self.asset_filters = AssetFiltersOperations(

sdk/media/azure-mgmt-media/azure/mgmt/media/_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51+
self.api_version = "2021-06-01"
5152
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5253
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
5354
self._configure(**kwargs)

sdk/media/azure-mgmt-media/azure/mgmt/media/_metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "",
3-
"total_api_version_list": ["2020-05-01", "2021-05-01"],
2+
"chosen_version": "2021-06-01",
3+
"total_api_version_list": ["2021-06-01"],
44
"client": {
55
"name": "AzureMediaServices",
66
"filename": "_azure_media_services",
@@ -98,12 +98,12 @@
9898
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
9999
},
100100
"operation_groups": {
101-
"account_filters": "AccountFiltersOperations",
102101
"operations": "Operations",
103102
"mediaservices": "MediaservicesOperations",
104103
"private_link_resources": "PrivateLinkResourcesOperations",
105104
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
106105
"locations": "LocationsOperations",
106+
"account_filters": "AccountFiltersOperations",
107107
"assets": "AssetsOperations",
108108
"asset_filters": "AssetFiltersOperations",
109109
"content_key_policies": "ContentKeyPoliciesOperations",

sdk/media/azure-mgmt-media/azure/mgmt/media/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "8.0.0"

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_azure_media_services.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
from azure.core.credentials_async import AsyncTokenCredential
1818

1919
from ._configuration import AzureMediaServicesConfiguration
20-
from .operations import AccountFiltersOperations
2120
from .operations import Operations
2221
from .operations import MediaservicesOperations
2322
from .operations import PrivateLinkResourcesOperations
2423
from .operations import PrivateEndpointConnectionsOperations
2524
from .operations import LocationsOperations
25+
from .operations import AccountFiltersOperations
2626
from .operations import AssetsOperations
2727
from .operations import AssetFiltersOperations
2828
from .operations import ContentKeyPoliciesOperations
@@ -39,8 +39,6 @@
3939
class AzureMediaServices(object):
4040
"""This Swagger was generated by the API Framework.
4141
42-
:ivar account_filters: AccountFiltersOperations operations
43-
:vartype account_filters: azure.mgmt.media.aio.operations.AccountFiltersOperations
4442
:ivar operations: Operations operations
4543
:vartype operations: azure.mgmt.media.aio.operations.Operations
4644
:ivar mediaservices: MediaservicesOperations operations
@@ -51,6 +49,8 @@ class AzureMediaServices(object):
5149
:vartype private_endpoint_connections: azure.mgmt.media.aio.operations.PrivateEndpointConnectionsOperations
5250
:ivar locations: LocationsOperations operations
5351
:vartype locations: azure.mgmt.media.aio.operations.LocationsOperations
52+
:ivar account_filters: AccountFiltersOperations operations
53+
:vartype account_filters: azure.mgmt.media.aio.operations.AccountFiltersOperations
5454
:ivar assets: AssetsOperations operations
5555
:vartype assets: azure.mgmt.media.aio.operations.AssetsOperations
5656
:ivar asset_filters: AssetFiltersOperations operations
@@ -96,8 +96,6 @@ def __init__(
9696
self._serialize.client_side_validation = False
9797
self._deserialize = Deserializer(client_models)
9898

99-
self.account_filters = AccountFiltersOperations(
100-
self._client, self._config, self._serialize, self._deserialize)
10199
self.operations = Operations(
102100
self._client, self._config, self._serialize, self._deserialize)
103101
self.mediaservices = MediaservicesOperations(
@@ -108,6 +106,8 @@ def __init__(
108106
self._client, self._config, self._serialize, self._deserialize)
109107
self.locations = LocationsOperations(
110108
self._client, self._config, self._serialize, self._deserialize)
109+
self.account_filters = AccountFiltersOperations(
110+
self._client, self._config, self._serialize, self._deserialize)
111111
self.assets = AssetsOperations(
112112
self._client, self._config, self._serialize, self._deserialize)
113113
self.asset_filters = AssetFiltersOperations(

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48+
self.api_version = "2021-06-01"
4849
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
4950
kwargs.setdefault('sdk_moniker', 'mgmt-media/{}'.format(VERSION))
5051
self._configure(**kwargs)

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._account_filters_operations import AccountFiltersOperations
109
from ._operations import Operations
1110
from ._mediaservices_operations import MediaservicesOperations
1211
from ._private_link_resources_operations import PrivateLinkResourcesOperations
1312
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
1413
from ._locations_operations import LocationsOperations
14+
from ._account_filters_operations import AccountFiltersOperations
1515
from ._assets_operations import AssetsOperations
1616
from ._asset_filters_operations import AssetFiltersOperations
1717
from ._content_key_policies_operations import ContentKeyPoliciesOperations
@@ -24,12 +24,12 @@
2424
from ._streaming_endpoints_operations import StreamingEndpointsOperations
2525

2626
__all__ = [
27-
'AccountFiltersOperations',
2827
'Operations',
2928
'MediaservicesOperations',
3029
'PrivateLinkResourcesOperations',
3130
'PrivateEndpointConnectionsOperations',
3231
'LocationsOperations',
32+
'AccountFiltersOperations',
3333
'AssetsOperations',
3434
'AssetFiltersOperations',
3535
'ContentKeyPoliciesOperations',

sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_account_filters_operations.py

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def list(
4545
self,
4646
resource_group_name: str,
4747
account_name: str,
48-
**kwargs
48+
**kwargs: Any
4949
) -> AsyncIterable["_models.AccountFilterCollection"]:
5050
"""List Account Filters.
5151
@@ -65,7 +65,7 @@ def list(
6565
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6666
}
6767
error_map.update(kwargs.pop('error_map', {}))
68-
api_version = "2020-05-01"
68+
api_version = "2021-06-01"
6969
accept = "application/json"
7070

7171
def prepare_request(next_link=None):
@@ -107,7 +107,7 @@ async def get_next(next_link=None):
107107
response = pipeline_response.http_response
108108

109109
if response.status_code not in [200]:
110-
error = self._deserialize.failsafe_deserialize(_models.ApiError, response)
110+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
111111
map_error(status_code=response.status_code, response=response, error_map=error_map)
112112
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
113113

@@ -123,8 +123,8 @@ async def get(
123123
resource_group_name: str,
124124
account_name: str,
125125
filter_name: str,
126-
**kwargs
127-
) -> Optional["_models.AccountFilter"]:
126+
**kwargs: Any
127+
) -> "_models.AccountFilter":
128128
"""Get an Account Filter.
129129
130130
Get the details of an Account Filter in the Media Services account.
@@ -137,15 +137,15 @@ async def get(
137137
:type filter_name: str
138138
:keyword callable cls: A custom type or function that will be passed the direct response
139139
:return: AccountFilter, or the result of cls(response)
140-
:rtype: ~azure.mgmt.media.models.AccountFilter or None
140+
:rtype: ~azure.mgmt.media.models.AccountFilter
141141
:raises: ~azure.core.exceptions.HttpResponseError
142142
"""
143-
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccountFilter"]]
143+
cls = kwargs.pop('cls', None) # type: ClsType["_models.AccountFilter"]
144144
error_map = {
145145
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
146146
}
147147
error_map.update(kwargs.pop('error_map', {}))
148-
api_version = "2020-05-01"
148+
api_version = "2021-06-01"
149149
accept = "application/json"
150150

151151
# Construct URL
@@ -170,14 +170,12 @@ async def get(
170170
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
171171
response = pipeline_response.http_response
172172

173-
if response.status_code not in [200, 404]:
173+
if response.status_code not in [200]:
174174
map_error(status_code=response.status_code, response=response, error_map=error_map)
175-
error = self._deserialize.failsafe_deserialize(_models.ApiError, response)
175+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
176176
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
177177

178-
deserialized = None
179-
if response.status_code == 200:
180-
deserialized = self._deserialize('AccountFilter', pipeline_response)
178+
deserialized = self._deserialize('AccountFilter', pipeline_response)
181179

182180
if cls:
183181
return cls(pipeline_response, deserialized, {})
@@ -191,7 +189,7 @@ async def create_or_update(
191189
account_name: str,
192190
filter_name: str,
193191
parameters: "_models.AccountFilter",
194-
**kwargs
192+
**kwargs: Any
195193
) -> "_models.AccountFilter":
196194
"""Create or update an Account Filter.
197195
@@ -215,7 +213,7 @@ async def create_or_update(
215213
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
216214
}
217215
error_map.update(kwargs.pop('error_map', {}))
218-
api_version = "2020-05-01"
216+
api_version = "2021-06-01"
219217
content_type = kwargs.pop("content_type", "application/json")
220218
accept = "application/json"
221219

@@ -247,7 +245,7 @@ async def create_or_update(
247245

248246
if response.status_code not in [200, 201]:
249247
map_error(status_code=response.status_code, response=response, error_map=error_map)
250-
error = self._deserialize.failsafe_deserialize(_models.ApiError, response)
248+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
251249
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
252250

253251
if response.status_code == 200:
@@ -267,7 +265,7 @@ async def delete(
267265
resource_group_name: str,
268266
account_name: str,
269267
filter_name: str,
270-
**kwargs
268+
**kwargs: Any
271269
) -> None:
272270
"""Delete an Account Filter.
273271
@@ -289,7 +287,7 @@ async def delete(
289287
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
290288
}
291289
error_map.update(kwargs.pop('error_map', {}))
292-
api_version = "2020-05-01"
290+
api_version = "2021-06-01"
293291
accept = "application/json"
294292

295293
# Construct URL
@@ -316,7 +314,7 @@ async def delete(
316314

317315
if response.status_code not in [200, 204]:
318316
map_error(status_code=response.status_code, response=response, error_map=error_map)
319-
error = self._deserialize.failsafe_deserialize(_models.ApiError, response)
317+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
320318
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
321319

322320
if cls:
@@ -330,7 +328,7 @@ async def update(
330328
account_name: str,
331329
filter_name: str,
332330
parameters: "_models.AccountFilter",
333-
**kwargs
331+
**kwargs: Any
334332
) -> "_models.AccountFilter":
335333
"""Update an Account Filter.
336334
@@ -354,7 +352,7 @@ async def update(
354352
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
355353
}
356354
error_map.update(kwargs.pop('error_map', {}))
357-
api_version = "2020-05-01"
355+
api_version = "2021-06-01"
358356
content_type = kwargs.pop("content_type", "application/json")
359357
accept = "application/json"
360358

@@ -386,7 +384,7 @@ async def update(
386384

387385
if response.status_code not in [200]:
388386
map_error(status_code=response.status_code, response=response, error_map=error_map)
389-
error = self._deserialize.failsafe_deserialize(_models.ApiError, response)
387+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
390388
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
391389

392390
deserialized = self._deserialize('AccountFilter', pipeline_response)

0 commit comments

Comments
 (0)