Skip to content

Commit a7de136

Browse files
AbyssknightSDK AutomationShixun Guan
authored
release for mgmt containerservice (#12179)
* Generated from 85bfc3112af8c8af08651e9712b59e7bd5931f2a Add swagger definition for user assigned identity (#9737) * update version * update test recordings Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Shixun Guan <[email protected]>
1 parent 715e7f6 commit a7de136

19 files changed

+7571
-164
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 9.2.0 (2020-06-24)
4+
5+
**Features**
6+
7+
- Model ManagedClusterIdentity has a new parameter user_assigned_identities
8+
- Model ManagedClusterAADProfile has a new parameter enable_azure_rbac
9+
- Model ManagedClusterAgentPoolProfile has a new parameter proximity_placement_group_id
10+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter proximity_placement_group_id
11+
- Model AgentPool has a new parameter proximity_placement_group_id
12+
- Added operation group PrivateEndpointConnectionsOperations
13+
314
## 9.1.0 (2020-06-03)
415

516
**Features**

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

+27-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ContainerServiceClient(MultiApiClientMixin, SDKClient):
4646
:type profile: azure.profiles.KnownProfiles
4747
"""
4848

49-
DEFAULT_API_VERSION = '2020-04-01'
49+
DEFAULT_API_VERSION = '2020-06-01'
5050
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -91,6 +91,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9191
* 2020-02-01: :mod:`v2020_02_01.models<azure.mgmt.containerservice.v2020_02_01.models>`
9292
* 2020-03-01: :mod:`v2020_03_01.models<azure.mgmt.containerservice.v2020_03_01.models>`
9393
* 2020-04-01: :mod:`v2020_04_01.models<azure.mgmt.containerservice.v2020_04_01.models>`
94+
* 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.containerservice.v2020_06_01.models>`
9495
"""
9596
if api_version == '2017-07-01':
9697
from .v2017_07_01 import models
@@ -143,6 +144,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
143144
elif api_version == '2020-04-01':
144145
from .v2020_04_01 import models
145146
return models
147+
elif api_version == '2020-06-01':
148+
from .v2020_06_01 import models
149+
return models
146150
raise NotImplementedError("APIVersion {} is not available".format(api_version))
147151

148152
@property
@@ -159,6 +163,7 @@ def agent_pools(self):
159163
* 2020-02-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_02_01.operations.AgentPoolsOperations>`
160164
* 2020-03-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_03_01.operations.AgentPoolsOperations>`
161165
* 2020-04-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_04_01.operations.AgentPoolsOperations>`
166+
* 2020-06-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_06_01.operations.AgentPoolsOperations>`
162167
"""
163168
api_version = self._get_api_version('agent_pools')
164169
if api_version == '2019-02-01':
@@ -181,6 +186,8 @@ def agent_pools(self):
181186
from .v2020_03_01.operations import AgentPoolsOperations as OperationClass
182187
elif api_version == '2020-04-01':
183188
from .v2020_04_01.operations import AgentPoolsOperations as OperationClass
189+
elif api_version == '2020-06-01':
190+
from .v2020_06_01.operations import AgentPoolsOperations as OperationClass
184191
else:
185192
raise NotImplementedError("APIVersion {} is not available".format(api_version))
186193
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -214,6 +221,7 @@ def managed_clusters(self):
214221
* 2020-02-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_02_01.operations.ManagedClustersOperations>`
215222
* 2020-03-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_03_01.operations.ManagedClustersOperations>`
216223
* 2020-04-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_04_01.operations.ManagedClustersOperations>`
224+
* 2020-06-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_06_01.operations.ManagedClustersOperations>`
217225
"""
218226
api_version = self._get_api_version('managed_clusters')
219227
if api_version == '2018-03-31':
@@ -240,6 +248,8 @@ def managed_clusters(self):
240248
from .v2020_03_01.operations import ManagedClustersOperations as OperationClass
241249
elif api_version == '2020-04-01':
242250
from .v2020_04_01.operations import ManagedClustersOperations as OperationClass
251+
elif api_version == '2020-06-01':
252+
from .v2020_06_01.operations import ManagedClustersOperations as OperationClass
243253
else:
244254
raise NotImplementedError("APIVersion {} is not available".format(api_version))
245255
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -282,6 +292,7 @@ def operations(self):
282292
* 2020-02-01: :class:`Operations<azure.mgmt.containerservice.v2020_02_01.operations.Operations>`
283293
* 2020-03-01: :class:`Operations<azure.mgmt.containerservice.v2020_03_01.operations.Operations>`
284294
* 2020-04-01: :class:`Operations<azure.mgmt.containerservice.v2020_04_01.operations.Operations>`
295+
* 2020-06-01: :class:`Operations<azure.mgmt.containerservice.v2020_06_01.operations.Operations>`
285296
"""
286297
api_version = self._get_api_version('operations')
287298
if api_version == '2018-03-31':
@@ -308,6 +319,21 @@ def operations(self):
308319
from .v2020_03_01.operations import Operations as OperationClass
309320
elif api_version == '2020-04-01':
310321
from .v2020_04_01.operations import Operations as OperationClass
322+
elif api_version == '2020-06-01':
323+
from .v2020_06_01.operations import Operations as OperationClass
324+
else:
325+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
326+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
327+
328+
@property
329+
def private_endpoint_connections(self):
330+
"""Instance depends on the API version:
331+
332+
* 2020-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_06_01.operations.PrivateEndpointConnectionsOperations>`
333+
"""
334+
api_version = self._get_api_version('private_endpoint_connections')
335+
if api_version == '2020-06-01':
336+
from .v2020_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass
311337
else:
312338
raise NotImplementedError("APIVersion {} is not available".format(api_version))
313339
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

+1-1
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 .v2020_04_01.models import *
9+
from .v2020_06_01.models import *
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import ContainerServiceClientConfiguration
13+
from ._container_service_client import ContainerServiceClient
14+
__all__ = ['ContainerServiceClient', 'ContainerServiceClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ContainerServiceClientConfiguration(AzureConfiguration):
17+
"""Configuration for ContainerServiceClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Subscription credentials which uniquely identify
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(ContainerServiceClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import ContainerServiceClientConfiguration
16+
from .operations import Operations
17+
from .operations import ManagedClustersOperations
18+
from .operations import AgentPoolsOperations
19+
from .operations import PrivateEndpointConnectionsOperations
20+
from . import models
21+
22+
23+
class ContainerServiceClient(SDKClient):
24+
"""The Container Service Client.
25+
26+
:ivar config: Configuration for client.
27+
:vartype config: ContainerServiceClientConfiguration
28+
29+
:ivar operations: Operations operations
30+
:vartype operations: azure.mgmt.containerservice.v2020_06_01.operations.Operations
31+
:ivar managed_clusters: ManagedClusters operations
32+
:vartype managed_clusters: azure.mgmt.containerservice.v2020_06_01.operations.ManagedClustersOperations
33+
:ivar agent_pools: AgentPools operations
34+
:vartype agent_pools: azure.mgmt.containerservice.v2020_06_01.operations.AgentPoolsOperations
35+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
36+
:vartype private_endpoint_connections: azure.mgmt.containerservice.v2020_06_01.operations.PrivateEndpointConnectionsOperations
37+
38+
:param credentials: Credentials needed for the client to connect to Azure.
39+
:type credentials: :mod:`A msrestazure Credentials
40+
object<msrestazure.azure_active_directory>`
41+
:param subscription_id: Subscription credentials which uniquely identify
42+
Microsoft Azure subscription. The subscription ID forms part of the URI
43+
for every service call.
44+
:type subscription_id: str
45+
:param str base_url: Service URL
46+
"""
47+
48+
def __init__(
49+
self, credentials, subscription_id, base_url=None):
50+
51+
self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url)
52+
super(ContainerServiceClient, self).__init__(self.config.credentials, self.config)
53+
54+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
55+
self.api_version = '2020-06-01'
56+
self._serialize = Serializer(client_models)
57+
self._deserialize = Deserializer(client_models)
58+
59+
self.operations = Operations(
60+
self._client, self.config, self._serialize, self._deserialize)
61+
self.managed_clusters = ManagedClustersOperations(
62+
self._client, self.config, self._serialize, self._deserialize)
63+
self.agent_pools = AgentPoolsOperations(
64+
self._client, self.config, self._serialize, self._deserialize)
65+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
66+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)