Skip to content

Commit a3b752a

Browse files
author
SDKAuto
committed
CodeGen from PR 22204 in Azure/azure-rest-api-specs
Merge 71cdfe58074f657cb9cc677d782da78d80247b70 into c2a1aaa0440d1aec45830646c4dfc27552b0b1e3
1 parent 25f35a8 commit a3b752a

28 files changed

+397
-330
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "0c21115ccacbbad11c4aa13a711e4990ebf07752",
2+
"commit": "5f678283f97887e5321bf46f8d43358fa3f0dc56",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.1",
6+
"@autorest/python@6.2.16",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/devspaces/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/devspaces/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/devspaces/resource-manager/readme.md"
1111
}

sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
try:
1515
from ._patch import __all__ as _patch_all
16-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
16+
from ._patch import * # pylint: disable=unused-wildcard-import
1717
except ImportError:
1818
_patch_all = []
1919
from ._patch import patch_sdk as _patch_sdk

sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/_configuration.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DevSpacesManagementClientConfiguration(Configuration): # pylint: disable=
4242

4343
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(DevSpacesManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version = kwargs.pop("api_version", "2019-04-01") # type: Literal["2019-04-01"]
45+
api_version: Literal["2019-04-01"] = kwargs.pop("api_version", "2019-04-01")
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")
@@ -56,10 +56,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
5656
kwargs.setdefault("sdk_moniker", "mgmt-devspaces/{}".format(VERSION))
5757
self._configure(**kwargs)
5858

59-
def _configure(
60-
self, **kwargs # type: Any
61-
):
62-
# type: (...) -> None
59+
def _configure(self, **kwargs: Any) -> None:
6360
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
6461
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
6562
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)

sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/_dev_spaces_management_client.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from azure.core.rest import HttpRequest, HttpResponse
1313
from azure.mgmt.core import ARMPipelineClient
1414

15-
from . import models
15+
from . import models as _models
1616
from ._configuration import DevSpacesManagementClientConfiguration
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import ContainerHostMappingsOperations, ControllersOperations, Operations
@@ -57,7 +57,7 @@ def __init__(
5757
)
5858
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5959

60-
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
60+
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
6161
self._serialize = Serializer(client_models)
6262
self._deserialize = Deserializer(client_models)
6363
self._serialize.client_side_validation = False
@@ -89,15 +89,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
8989
request_copy.url = self._client.format_url(request_copy.url)
9090
return self._client.send_request(request_copy, **kwargs)
9191

92-
def close(self):
93-
# type: () -> None
92+
def close(self) -> None:
9493
self._client.close()
9594

96-
def __enter__(self):
97-
# type: () -> DevSpacesManagementClient
95+
def __enter__(self) -> "DevSpacesManagementClient":
9896
self._client.__enter__()
9997
return self
10098

101-
def __exit__(self, *exc_details):
102-
# type: (Any) -> None
99+
def __exit__(self, *exc_details) -> None:
103100
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)