Skip to content

Commit 0ffd80e

Browse files
azclibotmsyyc
andauthored
code and test (Azure#23616)
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 3a227e9 commit 0ffd80e

File tree

75 files changed

+34518
-9
lines changed

Some content is hidden

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

75 files changed

+34518
-9
lines changed

sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Release History
22

3+
## 18.0.0 (2022-03-23)
4+
5+
**Features**
6+
7+
- Added operation group ManagedClusterSnapshotsOperations
8+
- Model ManagedCluster has a new parameter system_data
9+
- Model ManagedClusterAccessProfile has a new parameter system_data
10+
- Model ManagedClusterSecurityProfile has a new parameter azure_key_vault_kms
11+
- Model Resource has a new parameter system_data
12+
13+
**Breaking changes**
14+
15+
- Operation ManagedClustersOperations.list_cluster_admin_credentials has a new signature
16+
- Operation ManagedClustersOperations.list_cluster_user_credentials has a new signature
17+
318
## 17.0.0 (2022-02-21)
419

520
**Features**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "383ded12f834d20bd406faf6f9919ae560ccd46e",
7+
"commit": "a70086b6711c1058aaf3c5906744a665a492a504",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/containerservice/resource-manager/readme.md"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ContainerServiceClientConfiguration(Configuration):
3030
3131
:param credential: Credential needed for the client to connect to Azure.
3232
:type credential: ~azure.core.credentials.TokenCredential
33-
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
33+
:param subscription_id: The ID of the target subscription.
3434
:type subscription_id: str
3535
"""
3636

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

Lines changed: 71 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "17.0.0"
12+
VERSION = "18.0.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ContainerServiceClientConfiguration(Configuration):
2828
2929
:param credential: Credential needed for the client to connect to Azure.
3030
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
31-
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
31+
:param subscription_id: The ID of the target subscription.
3232
:type subscription_id: str
3333
"""
3434

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

Lines changed: 71 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# --------------------------------------------------------------------------
77
from .v2017_07_01.models import *
88
from .v2019_04_30.models import *
9-
from .v2022_01_01.models import *
9+
from .v2022_02_01.models import *
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
from ._container_service_client import ContainerServiceClient
10+
__all__ = ['ContainerServiceClient']
11+
12+
# `._patch.py` is used for handwritten extensions to the generated code
13+
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
14+
from ._patch import patch_sdk
15+
patch_sdk()
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
from typing import Any, TYPE_CHECKING
10+
11+
from azure.core.configuration import Configuration
12+
from azure.core.pipeline import policies
13+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
14+
15+
if TYPE_CHECKING:
16+
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core.credentials import TokenCredential
18+
19+
VERSION = "unknown"
20+
21+
class ContainerServiceClientConfiguration(Configuration):
22+
"""Configuration for ContainerServiceClient.
23+
24+
Note that all parameters used to create this instance are saved as instance
25+
attributes.
26+
27+
:param credential: Credential needed for the client to connect to Azure.
28+
:type credential: ~azure.core.credentials.TokenCredential
29+
:param subscription_id: The ID of the target subscription.
30+
:type subscription_id: str
31+
"""
32+
33+
def __init__(
34+
self,
35+
credential: "TokenCredential",
36+
subscription_id: str,
37+
**kwargs: Any
38+
) -> None:
39+
super(ContainerServiceClientConfiguration, self).__init__(**kwargs)
40+
if credential is None:
41+
raise ValueError("Parameter 'credential' must not be None.")
42+
if subscription_id is None:
43+
raise ValueError("Parameter 'subscription_id' must not be None.")
44+
45+
self.credential = credential
46+
self.subscription_id = subscription_id
47+
self.api_version = "2022-02-01"
48+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
49+
kwargs.setdefault('sdk_moniker', 'mgmt-containerservice/{}'.format(VERSION))
50+
self._configure(**kwargs)
51+
52+
def _configure(
53+
self,
54+
**kwargs # type: Any
55+
):
56+
# type: (...) -> None
57+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
58+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
59+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
60+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
61+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
62+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
63+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
64+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
65+
self.authentication_policy = kwargs.get('authentication_policy')
66+
if self.credential and not self.authentication_policy:
67+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)