Skip to content

Commit 3c72c80

Browse files
authored
test,version,CHANGELOG (Azure#15355)
1 parent d80c022 commit 3c72c80

21 files changed

+9253
-331
lines changed

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

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

3+
## 10.1.0 (2020-11-17)
4+
5+
**Features**
6+
7+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter kubelet_config
8+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter pod_subnet_id
9+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter linux_os_config
10+
- Model ManagedClusterAPIServerAccessProfile has a new parameter private_dns_zone
11+
- Model ManagedCluster has a new parameter pod_identity_profile
12+
- Model ManagedCluster has a new parameter auto_upgrade_profile
13+
- Model ManagedClusterAgentPoolProfile has a new parameter kubelet_config
14+
- Model ManagedClusterAgentPoolProfile has a new parameter pod_subnet_id
15+
- Model ManagedClusterAgentPoolProfile has a new parameter linux_os_config
16+
- Model AgentPool has a new parameter kubelet_config
17+
- Model AgentPool has a new parameter pod_subnet_id
18+
- Model AgentPool has a new parameter linux_os_config
19+
320
## 10.0.0 (2020-11-02)
421

522
**Features**

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

Lines changed: 23 additions & 1 deletion
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-09-01'
49+
DEFAULT_API_VERSION = '2020-11-01'
5050
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -94,6 +94,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9494
* 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.containerservice.v2020_06_01.models>`
9595
* 2020-07-01: :mod:`v2020_07_01.models<azure.mgmt.containerservice.v2020_07_01.models>`
9696
* 2020-09-01: :mod:`v2020_09_01.models<azure.mgmt.containerservice.v2020_09_01.models>`
97+
* 2020-11-01: :mod:`v2020_11_01.models<azure.mgmt.containerservice.v2020_11_01.models>`
9798
"""
9899
if api_version == '2017-07-01':
99100
from .v2017_07_01 import models
@@ -155,6 +156,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
155156
elif api_version == '2020-09-01':
156157
from .v2020_09_01 import models
157158
return models
159+
elif api_version == '2020-11-01':
160+
from .v2020_11_01 import models
161+
return models
158162
raise NotImplementedError("APIVersion {} is not available".format(api_version))
159163

160164
@property
@@ -174,6 +178,7 @@ def agent_pools(self):
174178
* 2020-06-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_06_01.operations.AgentPoolsOperations>`
175179
* 2020-07-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_07_01.operations.AgentPoolsOperations>`
176180
* 2020-09-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_09_01.operations.AgentPoolsOperations>`
181+
* 2020-11-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_11_01.operations.AgentPoolsOperations>`
177182
"""
178183
api_version = self._get_api_version('agent_pools')
179184
if api_version == '2019-02-01':
@@ -202,6 +207,8 @@ def agent_pools(self):
202207
from .v2020_07_01.operations import AgentPoolsOperations as OperationClass
203208
elif api_version == '2020-09-01':
204209
from .v2020_09_01.operations import AgentPoolsOperations as OperationClass
210+
elif api_version == '2020-11-01':
211+
from .v2020_11_01.operations import AgentPoolsOperations as OperationClass
205212
else:
206213
raise NotImplementedError("APIVersion {} is not available".format(api_version))
207214
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -238,6 +245,7 @@ def managed_clusters(self):
238245
* 2020-06-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_06_01.operations.ManagedClustersOperations>`
239246
* 2020-07-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_07_01.operations.ManagedClustersOperations>`
240247
* 2020-09-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_09_01.operations.ManagedClustersOperations>`
248+
* 2020-11-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_11_01.operations.ManagedClustersOperations>`
241249
"""
242250
api_version = self._get_api_version('managed_clusters')
243251
if api_version == '2018-03-31':
@@ -270,6 +278,8 @@ def managed_clusters(self):
270278
from .v2020_07_01.operations import ManagedClustersOperations as OperationClass
271279
elif api_version == '2020-09-01':
272280
from .v2020_09_01.operations import ManagedClustersOperations as OperationClass
281+
elif api_version == '2020-11-01':
282+
from .v2020_11_01.operations import ManagedClustersOperations as OperationClass
273283
else:
274284
raise NotImplementedError("APIVersion {} is not available".format(api_version))
275285
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -315,6 +325,7 @@ def operations(self):
315325
* 2020-06-01: :class:`Operations<azure.mgmt.containerservice.v2020_06_01.operations.Operations>`
316326
* 2020-07-01: :class:`Operations<azure.mgmt.containerservice.v2020_07_01.operations.Operations>`
317327
* 2020-09-01: :class:`Operations<azure.mgmt.containerservice.v2020_09_01.operations.Operations>`
328+
* 2020-11-01: :class:`Operations<azure.mgmt.containerservice.v2020_11_01.operations.Operations>`
318329
"""
319330
api_version = self._get_api_version('operations')
320331
if api_version == '2018-03-31':
@@ -347,6 +358,8 @@ def operations(self):
347358
from .v2020_07_01.operations import Operations as OperationClass
348359
elif api_version == '2020-09-01':
349360
from .v2020_09_01.operations import Operations as OperationClass
361+
elif api_version == '2020-11-01':
362+
from .v2020_11_01.operations import Operations as OperationClass
350363
else:
351364
raise NotImplementedError("APIVersion {} is not available".format(api_version))
352365
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -358,6 +371,7 @@ def private_endpoint_connections(self):
358371
* 2020-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_06_01.operations.PrivateEndpointConnectionsOperations>`
359372
* 2020-07-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_07_01.operations.PrivateEndpointConnectionsOperations>`
360373
* 2020-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_09_01.operations.PrivateEndpointConnectionsOperations>`
374+
* 2020-11-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_11_01.operations.PrivateEndpointConnectionsOperations>`
361375
"""
362376
api_version = self._get_api_version('private_endpoint_connections')
363377
if api_version == '2020-06-01':
@@ -366,6 +380,8 @@ def private_endpoint_connections(self):
366380
from .v2020_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass
367381
elif api_version == '2020-09-01':
368382
from .v2020_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass
383+
elif api_version == '2020-11-01':
384+
from .v2020_11_01.operations import PrivateEndpointConnectionsOperations as OperationClass
369385
else:
370386
raise NotImplementedError("APIVersion {} is not available".format(api_version))
371387
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -375,10 +391,13 @@ def private_link_resources(self):
375391
"""Instance depends on the API version:
376392
377393
* 2020-09-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2020_09_01.operations.PrivateLinkResourcesOperations>`
394+
* 2020-11-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2020_11_01.operations.PrivateLinkResourcesOperations>`
378395
"""
379396
api_version = self._get_api_version('private_link_resources')
380397
if api_version == '2020-09-01':
381398
from .v2020_09_01.operations import PrivateLinkResourcesOperations as OperationClass
399+
elif api_version == '2020-11-01':
400+
from .v2020_11_01.operations import PrivateLinkResourcesOperations as OperationClass
382401
else:
383402
raise NotImplementedError("APIVersion {} is not available".format(api_version))
384403
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -388,10 +407,13 @@ def resolve_private_link_service_id(self):
388407
"""Instance depends on the API version:
389408
390409
* 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2020_09_01.operations.ResolvePrivateLinkServiceIdOperations>`
410+
* 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2020_11_01.operations.ResolvePrivateLinkServiceIdOperations>`
391411
"""
392412
api_version = self._get_api_version('resolve_private_link_service_id')
393413
if api_version == '2020-09-01':
394414
from .v2020_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
415+
elif api_version == '2020-11-01':
416+
from .v2020_11_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
395417
else:
396418
raise NotImplementedError("APIVersion {} is not available".format(api_version))
397419
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

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 .v2020_09_01.models import *
9+
from .v2020_11_01.models import *
Lines changed: 19 additions & 0 deletions
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+
Lines changed: 50 additions & 0 deletions
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
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 .operations import PrivateLinkResourcesOperations
21+
from .operations import ResolvePrivateLinkServiceIdOperations
22+
from . import models
23+
24+
25+
class ContainerServiceClient(SDKClient):
26+
"""The Container Service Client.
27+
28+
:ivar config: Configuration for client.
29+
:vartype config: ContainerServiceClientConfiguration
30+
31+
:ivar operations: Operations operations
32+
:vartype operations: azure.mgmt.containerservice.v2020_11_01.operations.Operations
33+
:ivar managed_clusters: ManagedClusters operations
34+
:vartype managed_clusters: azure.mgmt.containerservice.v2020_11_01.operations.ManagedClustersOperations
35+
:ivar agent_pools: AgentPools operations
36+
:vartype agent_pools: azure.mgmt.containerservice.v2020_11_01.operations.AgentPoolsOperations
37+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
38+
:vartype private_endpoint_connections: azure.mgmt.containerservice.v2020_11_01.operations.PrivateEndpointConnectionsOperations
39+
:ivar private_link_resources: PrivateLinkResources operations
40+
:vartype private_link_resources: azure.mgmt.containerservice.v2020_11_01.operations.PrivateLinkResourcesOperations
41+
:ivar resolve_private_link_service_id: ResolvePrivateLinkServiceId operations
42+
:vartype resolve_private_link_service_id: azure.mgmt.containerservice.v2020_11_01.operations.ResolvePrivateLinkServiceIdOperations
43+
44+
:param credentials: Credentials needed for the client to connect to Azure.
45+
:type credentials: :mod:`A msrestazure Credentials
46+
object<msrestazure.azure_active_directory>`
47+
:param subscription_id: Subscription credentials which uniquely identify
48+
Microsoft Azure subscription. The subscription ID forms part of the URI
49+
for every service call.
50+
:type subscription_id: str
51+
:param str base_url: Service URL
52+
"""
53+
54+
def __init__(
55+
self, credentials, subscription_id, base_url=None):
56+
57+
self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url)
58+
super(ContainerServiceClient, self).__init__(self.config.credentials, self.config)
59+
60+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
61+
self.api_version = '2020-11-01'
62+
self._serialize = Serializer(client_models)
63+
self._deserialize = Deserializer(client_models)
64+
65+
self.operations = Operations(
66+
self._client, self.config, self._serialize, self._deserialize)
67+
self.managed_clusters = ManagedClustersOperations(
68+
self._client, self.config, self._serialize, self._deserialize)
69+
self.agent_pools = AgentPoolsOperations(
70+
self._client, self.config, self._serialize, self._deserialize)
71+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
72+
self._client, self.config, self._serialize, self._deserialize)
73+
self.private_link_resources = PrivateLinkResourcesOperations(
74+
self._client, self.config, self._serialize, self._deserialize)
75+
self.resolve_private_link_service_id = ResolvePrivateLinkServiceIdOperations(
76+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)