Skip to content

Commit a39bb60

Browse files
colawwjSDK Automation
andauthored
Release mgmt containerservice (Azure#13734)
* Generated from 48189ac1b2aa70373ffc8758d37a84a0d20f0cb2 update readme for sdk generation (Azure#10636) * update readme for sdks * update the remaining readme.md * fix space * release-mgmt-containerservice Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
1 parent fdf883d commit a39bb60

22 files changed

+8546
-462
lines changed

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

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

3+
## 9.4.0 (2020-09-11)
4+
5+
**Features**
6+
7+
- Model ManagedClusterAgentPoolProfile has a new parameter power_state
8+
- Model ManagedClusterAgentPoolProfile has a new parameter os_disk_type
9+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter max_empty_bulk_delete
10+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter skip_nodes_with_local_storage
11+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter max_total_unready_percentage
12+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter ok_total_unready_count
13+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter expander
14+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter skip_nodes_with_system_pods
15+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter new_pod_scale_up_delay
16+
- Model AgentPool has a new parameter power_state
17+
- Model AgentPool has a new parameter os_disk_type
18+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter power_state
19+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter os_disk_type
20+
- Model ManagedCluster has a new parameter power_state
21+
- Added operation ManagedClustersOperations.start
22+
- Added operation ManagedClustersOperations.stop
23+
- Added operation group ResolvePrivateLinkServiceIdOperations
24+
- Added operation group PrivateLinkResourcesOperations
25+
326
## 9.3.0 (2020-08-24)
427

528
**Features**

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

Lines changed: 43 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-07-01'
49+
DEFAULT_API_VERSION = '2020-09-01'
5050
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -93,6 +93,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9393
* 2020-04-01: :mod:`v2020_04_01.models<azure.mgmt.containerservice.v2020_04_01.models>`
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>`
96+
* 2020-09-01: :mod:`v2020_09_01.models<azure.mgmt.containerservice.v2020_09_01.models>`
9697
"""
9798
if api_version == '2017-07-01':
9899
from .v2017_07_01 import models
@@ -151,6 +152,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
151152
elif api_version == '2020-07-01':
152153
from .v2020_07_01 import models
153154
return models
155+
elif api_version == '2020-09-01':
156+
from .v2020_09_01 import models
157+
return models
154158
raise NotImplementedError("APIVersion {} is not available".format(api_version))
155159

156160
@property
@@ -169,6 +173,7 @@ def agent_pools(self):
169173
* 2020-04-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_04_01.operations.AgentPoolsOperations>`
170174
* 2020-06-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_06_01.operations.AgentPoolsOperations>`
171175
* 2020-07-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_07_01.operations.AgentPoolsOperations>`
176+
* 2020-09-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_09_01.operations.AgentPoolsOperations>`
172177
"""
173178
api_version = self._get_api_version('agent_pools')
174179
if api_version == '2019-02-01':
@@ -195,6 +200,8 @@ def agent_pools(self):
195200
from .v2020_06_01.operations import AgentPoolsOperations as OperationClass
196201
elif api_version == '2020-07-01':
197202
from .v2020_07_01.operations import AgentPoolsOperations as OperationClass
203+
elif api_version == '2020-09-01':
204+
from .v2020_09_01.operations import AgentPoolsOperations as OperationClass
198205
else:
199206
raise NotImplementedError("APIVersion {} is not available".format(api_version))
200207
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -230,6 +237,7 @@ def managed_clusters(self):
230237
* 2020-04-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_04_01.operations.ManagedClustersOperations>`
231238
* 2020-06-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_06_01.operations.ManagedClustersOperations>`
232239
* 2020-07-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_07_01.operations.ManagedClustersOperations>`
240+
* 2020-09-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_09_01.operations.ManagedClustersOperations>`
233241
"""
234242
api_version = self._get_api_version('managed_clusters')
235243
if api_version == '2018-03-31':
@@ -260,6 +268,8 @@ def managed_clusters(self):
260268
from .v2020_06_01.operations import ManagedClustersOperations as OperationClass
261269
elif api_version == '2020-07-01':
262270
from .v2020_07_01.operations import ManagedClustersOperations as OperationClass
271+
elif api_version == '2020-09-01':
272+
from .v2020_09_01.operations import ManagedClustersOperations as OperationClass
263273
else:
264274
raise NotImplementedError("APIVersion {} is not available".format(api_version))
265275
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -304,6 +314,7 @@ def operations(self):
304314
* 2020-04-01: :class:`Operations<azure.mgmt.containerservice.v2020_04_01.operations.Operations>`
305315
* 2020-06-01: :class:`Operations<azure.mgmt.containerservice.v2020_06_01.operations.Operations>`
306316
* 2020-07-01: :class:`Operations<azure.mgmt.containerservice.v2020_07_01.operations.Operations>`
317+
* 2020-09-01: :class:`Operations<azure.mgmt.containerservice.v2020_09_01.operations.Operations>`
307318
"""
308319
api_version = self._get_api_version('operations')
309320
if api_version == '2018-03-31':
@@ -334,6 +345,8 @@ def operations(self):
334345
from .v2020_06_01.operations import Operations as OperationClass
335346
elif api_version == '2020-07-01':
336347
from .v2020_07_01.operations import Operations as OperationClass
348+
elif api_version == '2020-09-01':
349+
from .v2020_09_01.operations import Operations as OperationClass
337350
else:
338351
raise NotImplementedError("APIVersion {} is not available".format(api_version))
339352
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -344,12 +357,41 @@ def private_endpoint_connections(self):
344357
345358
* 2020-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_06_01.operations.PrivateEndpointConnectionsOperations>`
346359
* 2020-07-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_07_01.operations.PrivateEndpointConnectionsOperations>`
360+
* 2020-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_09_01.operations.PrivateEndpointConnectionsOperations>`
347361
"""
348362
api_version = self._get_api_version('private_endpoint_connections')
349363
if api_version == '2020-06-01':
350364
from .v2020_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass
351365
elif api_version == '2020-07-01':
352366
from .v2020_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass
367+
elif api_version == '2020-09-01':
368+
from .v2020_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass
369+
else:
370+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
371+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
372+
373+
@property
374+
def private_link_resources(self):
375+
"""Instance depends on the API version:
376+
377+
* 2020-09-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2020_09_01.operations.PrivateLinkResourcesOperations>`
378+
"""
379+
api_version = self._get_api_version('private_link_resources')
380+
if api_version == '2020-09-01':
381+
from .v2020_09_01.operations import PrivateLinkResourcesOperations as OperationClass
382+
else:
383+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
384+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
385+
386+
@property
387+
def resolve_private_link_service_id(self):
388+
"""Instance depends on the API version:
389+
390+
* 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2020_09_01.operations.ResolvePrivateLinkServiceIdOperations>`
391+
"""
392+
api_version = self._get_api_version('resolve_private_link_service_id')
393+
if api_version == '2020-09-01':
394+
from .v2020_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
353395
else:
354396
raise NotImplementedError("APIVersion {} is not available".format(api_version))
355397
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_07_01.models import *
9+
from .v2020_09_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_09_01.operations.Operations
33+
:ivar managed_clusters: ManagedClusters operations
34+
:vartype managed_clusters: azure.mgmt.containerservice.v2020_09_01.operations.ManagedClustersOperations
35+
:ivar agent_pools: AgentPools operations
36+
:vartype agent_pools: azure.mgmt.containerservice.v2020_09_01.operations.AgentPoolsOperations
37+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
38+
:vartype private_endpoint_connections: azure.mgmt.containerservice.v2020_09_01.operations.PrivateEndpointConnectionsOperations
39+
:ivar private_link_resources: PrivateLinkResources operations
40+
:vartype private_link_resources: azure.mgmt.containerservice.v2020_09_01.operations.PrivateLinkResourcesOperations
41+
:ivar resolve_private_link_service_id: ResolvePrivateLinkServiceId operations
42+
:vartype resolve_private_link_service_id: azure.mgmt.containerservice.v2020_09_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-09-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)