Skip to content

Commit 0860fe8

Browse files
author
SDKAuto
committed
CodeGen from PR 32112 in Azure/azure-rest-api-specs
Merge e2378a8ce25a341f4e2db8f0e53f1873a52ae312 into 0433add0f397d35c79bd27a2a86318dbdc7b829b
1 parent cb0221a commit 0860fe8

File tree

3,014 files changed

+1807
-1656721
lines changed

Some content is hidden

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

3,014 files changed

+1807
-1656721
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "fa6c6015b1633a701edb629c1a759433aa1fdaf2",
2+
"commit": "051e8542d1cd28de9ef41c8cc8dd13e056df486d",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=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.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
1111
"package-2024-05": "2024-07-10 04:37:35 +0800 794e29ee5f8eca63ce0ddf007c60da7df37baaad stable/2024-05-01/managedClusters.json",
1212
"package-preview-2024-04": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-04-02-preview/managedClusters.json",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
# --------------------------------------------------------------------------
88

99
from ._container_service_client import ContainerServiceClient
10-
11-
__all__ = ["ContainerServiceClient"]
10+
__all__ = ['ContainerServiceClient']
1211

1312
try:
1413
from ._patch import patch_sdk # type: ignore
15-
1614
patch_sdk()
1715
except ImportError:
1816
pass

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

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# pylint: disable=unused-import,ungrouped-imports
2020
from azure.core.credentials import TokenCredential
2121

22-
2322
class ContainerServiceClientConfiguration:
2423
"""Configuration for ContainerServiceClient.
2524
@@ -32,30 +31,36 @@ class ContainerServiceClientConfiguration:
3231
:type subscription_id: str
3332
"""
3433

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any):
34+
def __init__(
35+
self,
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
):
3640
if credential is None:
3741
raise ValueError("Parameter 'credential' must not be None.")
3842
if subscription_id is None:
3943
raise ValueError("Parameter 'subscription_id' must not be None.")
4044

4145
self.credential = credential
4246
self.subscription_id = subscription_id
43-
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
44-
kwargs.setdefault("sdk_moniker", "azure-mgmt-containerservice/{}".format(VERSION))
47+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
48+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-containerservice/{}'.format(VERSION))
4549
self.polling_interval = kwargs.get("polling_interval", 30)
4650
self._configure(**kwargs)
4751

48-
def _configure(self, **kwargs: Any):
49-
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
50-
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
51-
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
52-
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
53-
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
54-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
55-
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
56-
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
57-
self.authentication_policy = kwargs.get("authentication_policy")
52+
def _configure(
53+
self,
54+
**kwargs: Any
55+
):
56+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
62+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
64+
self.authentication_policy = kwargs.get('authentication_policy')
5865
if self.credential and not self.authentication_policy:
59-
self.authentication_policy = ARMChallengeAuthenticationPolicy(
60-
self.credential, *self.credential_scopes, **kwargs
61-
)
66+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)