Skip to content

Commit 27aca51

Browse files
author
SDKAuto
committed
CodeGen from PR 20487 in Azure/azure-rest-api-specs
Merge 622b23e370d86b99202823777fbf25253b083a45 into 4c4e4ae6738f15620d12e2a13e8c00dd6a7dcb11
1 parent b52d9e7 commit 27aca51

File tree

558 files changed

+46129
-8242
lines changed

Some content is hidden

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

558 files changed

+46129
-8242
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.8.4",
33
"use": [
4-
"@autorest/python@6.0.1",
4+
"@autorest/python@6.1.5",
55
"@autorest/[email protected]"
66
],
7-
"commit": "eca8060c5746b3b092c50580b59de31fe749d669",
7+
"commit": "b61efa4a8ade56d65c168f197275ff982e52b9d5",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --models-mode=msrest --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.0.1 --use=@autorest/[email protected] --version=3.8.4 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.1.5 --use=@autorest/[email protected] --version=3.8.4 --version-tolerant=False",
1010
"readme": "specification/containerservice/resource-manager/readme.md"
1111
}

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
patch_sdk()
1515
except ImportError:
1616
pass
17+
18+
from ._version import VERSION
19+
20+
__version__ = VERSION

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py

Lines changed: 37 additions & 0 deletions
Large diffs are not rendered by default.

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None):
15241524
try:
15251525
return self(target_obj, data, content_type=content_type)
15261526
except:
1527-
_LOGGER.warning(
1527+
_LOGGER.debug(
15281528
"Ran into a deserialization error. Ignoring since this is failsafe deserialization",
15291529
exc_info=True
15301530
)
@@ -2003,4 +2003,4 @@ def deserialize_unix(attr):
20032003
msg = "Cannot deserialize to unix datetime object."
20042004
raise_with_traceback(DeserializationError, msg, err)
20052005
else:
2006-
return date_obj
2006+
return date_obj

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py

Lines changed: 37 additions & 0 deletions
Large diffs are not rendered by default.

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/aio/operations/_container_services_operations.py

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
HttpResponseError,
1515
ResourceExistsError,
1616
ResourceNotFoundError,
17+
ResourceNotModifiedError,
1718
map_error,
1819
)
1920
from azure.core.pipeline import PipelineResponse
@@ -80,7 +81,12 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.ContainerService"]:
8081
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
8182
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]
8283

83-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
84+
error_map = {
85+
401: ClientAuthenticationError,
86+
404: ResourceNotFoundError,
87+
409: ResourceExistsError,
88+
304: ResourceNotModifiedError,
89+
}
8490
error_map.update(kwargs.pop("error_map", {}) or {})
8591

8692
def prepare_request(next_link=None):
@@ -135,7 +141,12 @@ async def _create_or_update_initial(
135141
parameters: Union[_models.ContainerService, IO],
136142
**kwargs: Any
137143
) -> _models.ContainerService:
138-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
144+
error_map = {
145+
401: ClientAuthenticationError,
146+
404: ResourceNotFoundError,
147+
409: ResourceExistsError,
148+
304: ResourceNotModifiedError,
149+
}
139150
error_map.update(kwargs.pop("error_map", {}) or {})
140151

141152
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -380,7 +391,12 @@ async def get(
380391
:rtype: ~azure.mgmt.containerservice.v2017_07_01.models.ContainerService
381392
:raises ~azure.core.exceptions.HttpResponseError:
382393
"""
383-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
394+
error_map = {
395+
401: ClientAuthenticationError,
396+
404: ResourceNotFoundError,
397+
409: ResourceExistsError,
398+
304: ResourceNotModifiedError,
399+
}
384400
error_map.update(kwargs.pop("error_map", {}) or {})
385401

386402
_headers = kwargs.pop("headers", {}) or {}
@@ -423,7 +439,12 @@ async def get(
423439
async def _delete_initial( # pylint: disable=inconsistent-return-statements
424440
self, resource_group_name: str, container_service_name: str, **kwargs: Any
425441
) -> None:
426-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
442+
error_map = {
443+
401: ClientAuthenticationError,
444+
404: ResourceNotFoundError,
445+
409: ResourceExistsError,
446+
304: ResourceNotModifiedError,
447+
}
427448
error_map.update(kwargs.pop("error_map", {}) or {})
428449

429450
_headers = kwargs.pop("headers", {}) or {}
@@ -552,7 +573,12 @@ def list_by_resource_group(
552573
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
553574
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]
554575

555-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
576+
error_map = {
577+
401: ClientAuthenticationError,
578+
404: ResourceNotFoundError,
579+
409: ResourceExistsError,
580+
304: ResourceNotModifiedError,
581+
}
556582
error_map.update(kwargs.pop("error_map", {}) or {})
557583

558584
def prepare_request(next_link=None):
@@ -621,7 +647,12 @@ async def list_orchestrators(
621647
:rtype: ~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorVersionProfileListResult
622648
:raises ~azure.core.exceptions.HttpResponseError:
623649
"""
624-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
650+
error_map = {
651+
401: ClientAuthenticationError,
652+
404: ResourceNotFoundError,
653+
409: ResourceExistsError,
654+
304: ResourceNotModifiedError,
655+
}
625656
error_map.update(kwargs.pop("error_map", {}) or {})
626657

627658
_headers = kwargs.pop("headers", {}) or {}

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/_container_services_operations.py

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
HttpResponseError,
1414
ResourceExistsError,
1515
ResourceNotFoundError,
16+
ResourceNotModifiedError,
1617
map_error,
1718
)
1819
from azure.core.paging import ItemPaged
@@ -251,7 +252,12 @@ def list(self, **kwargs: Any) -> Iterable["_models.ContainerService"]:
251252
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
252253
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]
253254

254-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
255+
error_map = {
256+
401: ClientAuthenticationError,
257+
404: ResourceNotFoundError,
258+
409: ResourceExistsError,
259+
304: ResourceNotModifiedError,
260+
}
255261
error_map.update(kwargs.pop("error_map", {}) or {})
256262

257263
def prepare_request(next_link=None):
@@ -306,7 +312,12 @@ def _create_or_update_initial(
306312
parameters: Union[_models.ContainerService, IO],
307313
**kwargs: Any
308314
) -> _models.ContainerService:
309-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
315+
error_map = {
316+
401: ClientAuthenticationError,
317+
404: ResourceNotFoundError,
318+
409: ResourceExistsError,
319+
304: ResourceNotModifiedError,
320+
}
310321
error_map.update(kwargs.pop("error_map", {}) or {})
311322

312323
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -549,7 +560,12 @@ def get(self, resource_group_name: str, container_service_name: str, **kwargs: A
549560
:rtype: ~azure.mgmt.containerservice.v2017_07_01.models.ContainerService
550561
:raises ~azure.core.exceptions.HttpResponseError:
551562
"""
552-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
563+
error_map = {
564+
401: ClientAuthenticationError,
565+
404: ResourceNotFoundError,
566+
409: ResourceExistsError,
567+
304: ResourceNotModifiedError,
568+
}
553569
error_map.update(kwargs.pop("error_map", {}) or {})
554570

555571
_headers = kwargs.pop("headers", {}) or {}
@@ -592,7 +608,12 @@ def get(self, resource_group_name: str, container_service_name: str, **kwargs: A
592608
def _delete_initial( # pylint: disable=inconsistent-return-statements
593609
self, resource_group_name: str, container_service_name: str, **kwargs: Any
594610
) -> None:
595-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
611+
error_map = {
612+
401: ClientAuthenticationError,
613+
404: ResourceNotFoundError,
614+
409: ResourceExistsError,
615+
304: ResourceNotModifiedError,
616+
}
596617
error_map.update(kwargs.pop("error_map", {}) or {})
597618

598619
_headers = kwargs.pop("headers", {}) or {}
@@ -717,7 +738,12 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite
717738
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
718739
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]
719740

720-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
741+
error_map = {
742+
401: ClientAuthenticationError,
743+
404: ResourceNotFoundError,
744+
409: ResourceExistsError,
745+
304: ResourceNotModifiedError,
746+
}
721747
error_map.update(kwargs.pop("error_map", {}) or {})
722748

723749
def prepare_request(next_link=None):
@@ -786,7 +812,12 @@ def list_orchestrators(
786812
:rtype: ~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorVersionProfileListResult
787813
:raises ~azure.core.exceptions.HttpResponseError:
788814
"""
789-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
815+
error_map = {
816+
401: ClientAuthenticationError,
817+
404: ResourceNotFoundError,
818+
409: ResourceExistsError,
819+
304: ResourceNotModifiedError,
820+
}
790821
error_map.update(kwargs.pop("error_map", {}) or {})
791822

792823
_headers = kwargs.pop("headers", {}) or {}

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/aio/operations/_managed_clusters_operations.py

Lines changed: 73 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
HttpResponseError,
1616
ResourceExistsError,
1717
ResourceNotFoundError,
18+
ResourceNotModifiedError,
1819
map_error,
1920
)
2021
from azure.core.pipeline import PipelineResponse
@@ -86,7 +87,12 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.ManagedCluster"]:
8687
api_version = kwargs.pop("api_version", _params.pop("api-version", "2018-03-31")) # type: str
8788
cls = kwargs.pop("cls", None) # type: ClsType[_models.ManagedClusterListResult]
8889

89-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
90+
error_map = {
91+
401: ClientAuthenticationError,
92+
404: ResourceNotFoundError,
93+
409: ResourceExistsError,
94+
304: ResourceNotModifiedError,
95+
}
9096
error_map.update(kwargs.pop("error_map", {}) or {})
9197

9298
def prepare_request(next_link=None):
@@ -161,7 +167,12 @@ def list_by_resource_group(
161167
api_version = kwargs.pop("api_version", _params.pop("api-version", "2018-03-31")) # type: str
162168
cls = kwargs.pop("cls", None) # type: ClsType[_models.ManagedClusterListResult]
163169

164-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
170+
error_map = {
171+
401: ClientAuthenticationError,
172+
404: ResourceNotFoundError,
173+
409: ResourceExistsError,
174+
304: ResourceNotModifiedError,
175+
}
165176
error_map.update(kwargs.pop("error_map", {}) or {})
166177

167178
def prepare_request(next_link=None):
@@ -232,7 +243,12 @@ async def get_upgrade_profile(
232243
:rtype: ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterUpgradeProfile
233244
:raises ~azure.core.exceptions.HttpResponseError:
234245
"""
235-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
246+
error_map = {
247+
401: ClientAuthenticationError,
248+
404: ResourceNotFoundError,
249+
409: ResourceExistsError,
250+
304: ResourceNotModifiedError,
251+
}
236252
error_map.update(kwargs.pop("error_map", {}) or {})
237253

238254
_headers = kwargs.pop("headers", {}) or {}
@@ -292,7 +308,12 @@ async def get_access_profile(
292308
:rtype: ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAccessProfile
293309
:raises ~azure.core.exceptions.HttpResponseError:
294310
"""
295-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
311+
error_map = {
312+
401: ClientAuthenticationError,
313+
404: ResourceNotFoundError,
314+
409: ResourceExistsError,
315+
304: ResourceNotModifiedError,
316+
}
296317
error_map.update(kwargs.pop("error_map", {}) or {})
297318

298319
_headers = kwargs.pop("headers", {}) or {}
@@ -350,7 +371,12 @@ async def list_cluster_admin_credentials(
350371
:rtype: ~azure.mgmt.containerservice.v2018_03_31.models.CredentialResults
351372
:raises ~azure.core.exceptions.HttpResponseError:
352373
"""
353-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
374+
error_map = {
375+
401: ClientAuthenticationError,
376+
404: ResourceNotFoundError,
377+
409: ResourceExistsError,
378+
304: ResourceNotModifiedError,
379+
}
354380
error_map.update(kwargs.pop("error_map", {}) or {})
355381

356382
_headers = kwargs.pop("headers", {}) or {}
@@ -407,7 +433,12 @@ async def list_cluster_user_credentials(
407433
:rtype: ~azure.mgmt.containerservice.v2018_03_31.models.CredentialResults
408434
:raises ~azure.core.exceptions.HttpResponseError:
409435
"""
410-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
436+
error_map = {
437+
401: ClientAuthenticationError,
438+
404: ResourceNotFoundError,
439+
409: ResourceExistsError,
440+
304: ResourceNotModifiedError,
441+
}
411442
error_map.update(kwargs.pop("error_map", {}) or {})
412443

413444
_headers = kwargs.pop("headers", {}) or {}
@@ -462,7 +493,12 @@ async def get(self, resource_group_name: str, resource_name: str, **kwargs: Any)
462493
:rtype: ~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster
463494
:raises ~azure.core.exceptions.HttpResponseError:
464495
"""
465-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
496+
error_map = {
497+
401: ClientAuthenticationError,
498+
404: ResourceNotFoundError,
499+
409: ResourceExistsError,
500+
304: ResourceNotModifiedError,
501+
}
466502
error_map.update(kwargs.pop("error_map", {}) or {})
467503

468504
_headers = kwargs.pop("headers", {}) or {}
@@ -505,7 +541,12 @@ async def get(self, resource_group_name: str, resource_name: str, **kwargs: Any)
505541
async def _create_or_update_initial(
506542
self, resource_group_name: str, resource_name: str, parameters: Union[_models.ManagedCluster, IO], **kwargs: Any
507543
) -> _models.ManagedCluster:
508-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
544+
error_map = {
545+
401: ClientAuthenticationError,
546+
404: ResourceNotFoundError,
547+
409: ResourceExistsError,
548+
304: ResourceNotModifiedError,
549+
}
509550
error_map.update(kwargs.pop("error_map", {}) or {})
510551

511552
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -723,7 +764,12 @@ def get_long_running_output(pipeline_response):
723764
async def _update_tags_initial(
724765
self, resource_group_name: str, resource_name: str, parameters: Union[_models.TagsObject, IO], **kwargs: Any
725766
) -> _models.ManagedCluster:
726-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
767+
error_map = {
768+
401: ClientAuthenticationError,
769+
404: ResourceNotFoundError,
770+
409: ResourceExistsError,
771+
304: ResourceNotModifiedError,
772+
}
727773
error_map.update(kwargs.pop("error_map", {}) or {})
728774

729775
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -932,7 +978,12 @@ def get_long_running_output(pipeline_response):
932978
async def _delete_initial( # pylint: disable=inconsistent-return-statements
933979
self, resource_group_name: str, resource_name: str, **kwargs: Any
934980
) -> None:
935-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
981+
error_map = {
982+
401: ClientAuthenticationError,
983+
404: ResourceNotFoundError,
984+
409: ResourceExistsError,
985+
304: ResourceNotModifiedError,
986+
}
936987
error_map.update(kwargs.pop("error_map", {}) or {})
937988

938989
_headers = kwargs.pop("headers", {}) or {}
@@ -1038,7 +1089,12 @@ async def _reset_service_principal_profile_initial( # pylint: disable=inconsist
10381089
parameters: Union[_models.ManagedClusterServicePrincipalProfile, IO],
10391090
**kwargs: Any
10401091
) -> None:
1041-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
1092+
error_map = {
1093+
401: ClientAuthenticationError,
1094+
404: ResourceNotFoundError,
1095+
409: ResourceExistsError,
1096+
304: ResourceNotModifiedError,
1097+
}
10421098
error_map.update(kwargs.pop("error_map", {}) or {})
10431099

10441100
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1247,7 +1303,12 @@ async def _reset_aad_profile_initial( # pylint: disable=inconsistent-return-sta
12471303
parameters: Union[_models.ManagedClusterAADProfile, IO],
12481304
**kwargs: Any
12491305
) -> None:
1250-
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
1306+
error_map = {
1307+
401: ClientAuthenticationError,
1308+
404: ResourceNotFoundError,
1309+
409: ResourceExistsError,
1310+
304: ResourceNotModifiedError,
1311+
}
12511312
error_map.update(kwargs.pop("error_map", {}) or {})
12521313

12531314
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})

0 commit comments

Comments
 (0)