Skip to content

Commit ebbcd02

Browse files
author
SDKAuto
committed
CodeGen from PR 22804 in Azure/azure-rest-api-specs
Merge f9f661834e1bbbc440921c222c86ee21702eb540 into ac7f9d6f1003acf6e54682534f30a9f5ec7fc5d2
1 parent 0b3c6cc commit ebbcd02

File tree

48 files changed

+1306
-478
lines changed

Some content is hidden

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

48 files changed

+1306
-478
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "4047b23b6e1a6bf2203d20db86d2f5eab43f7340",
2+
"commit": "a1a6462f2636f14b47479578324b86a1bafab01b",
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.4.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/guestconfiguration/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/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/guestconfiguration/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.4.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/guestconfiguration/resource-manager/readme.md"
1111
}

sdk/machinelearning/azure-mgmt-guestconfig/azure/mgmt/guestconfig/__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/machinelearning/azure-mgmt-guestconfig/azure/mgmt/guestconfig/_configuration.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GuestConfigurationClientConfiguration(Configuration): # pylint: disable=t
4343

4444
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4545
super(GuestConfigurationClientConfiguration, self).__init__(**kwargs)
46-
api_version = kwargs.pop("api_version", "2022-01-25") # type: Literal["2022-01-25"]
46+
api_version: Literal["2022-01-25"] = kwargs.pop("api_version", "2022-01-25")
4747

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

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

sdk/machinelearning/azure-mgmt-guestconfig/azure/mgmt/guestconfig/_guest_configuration_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 GuestConfigurationClientConfiguration
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
@@ -82,7 +82,7 @@ def __init__(
8282
)
8383
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8484

85-
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
85+
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
8686
self._serialize = Serializer(client_models)
8787
self._deserialize = Deserializer(client_models)
8888
self._serialize.client_side_validation = False
@@ -128,15 +128,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
128128
request_copy.url = self._client.format_url(request_copy.url)
129129
return self._client.send_request(request_copy, **kwargs)
130130

131-
def close(self):
132-
# type: () -> None
131+
def close(self) -> None:
133132
self._client.close()
134133

135-
def __enter__(self):
136-
# type: () -> GuestConfigurationClient
134+
def __enter__(self) -> "GuestConfigurationClient":
137135
self._client.__enter__()
138136
return self
139137

140-
def __exit__(self, *exc_details):
141-
# type: (Any) -> None
138+
def __exit__(self, *exc_details: Any) -> None:
142139
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)