Skip to content

Commit 3c6890b

Browse files
author
SDKAuto
committed
CodeGen from PR 20761 in Azure/azure-rest-api-specs
Merge be2d6f364632a6764a093fa03b202995776bf12a into 5dbdd7a369cc72eb284c117e479655618f23b815
1 parent 3974221 commit 3c6890b

File tree

728 files changed

+46827
-8412
lines changed

Some content is hidden

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

728 files changed

+46827
-8412
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.6",
55
"@autorest/[email protected]"
66
],
7-
"commit": "eca8060c5746b3b092c50580b59de31fe749d669",
7+
"commit": "86cc431880fedca060240c0de3fb3974954bdcce",
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.6 --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/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from ._container_service_client import ContainerServiceClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
1013

1114
try:
1215
from ._patch import __all__ as _patch_all

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1414

15+
from ._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials import TokenCredential
1820

19-
VERSION = "unknown"
20-
2121

2222
class ContainerServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ContainerServiceClient.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
VERSION = "1.0.0b1"

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
from azure.core.pipeline import policies
1313
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
1414

15+
from .._version import VERSION
16+
1517
if TYPE_CHECKING:
1618
# pylint: disable=unused-import,ungrouped-imports
1719
from azure.core.credentials_async import AsyncTokenCredential
1820

19-
VERSION = "unknown"
20-
2121

2222
class ContainerServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ContainerServiceClient.

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 {}

0 commit comments

Comments
 (0)