Skip to content

Commit 977bfe9

Browse files
msyycSDKAuto
andauthored
[AutoRelease] t1-containerservice-2021-04-07-45043 (Azure#17864)
* CodeGen from PR 13763 in Azure/azure-rest-api-specs [aks] fix vm size model and osDiskType description (Azure#13763) * fix: agent pool vm size should be string, not enum * fix: osDiskType default description for >= 2020-11-01 * version,CHANGELOG * test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent a7c4b24 commit 977bfe9

Some content is hidden

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

53 files changed

+10724
-708
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+
## 11.2.0 (2021-04-07)
4+
5+
**Features**
6+
7+
- Model ManagedClusterAgentPoolProfile has a new parameter gpu_instance_profile
8+
- Model ManagedClusterAgentPoolProfile has a new parameter enable_fips
9+
- Model ManagedClusterAgentPoolProfile has a new parameter os_sku
10+
- Model AgentPool has a new parameter gpu_instance_profile
11+
- Model AgentPool has a new parameter enable_fips
12+
- Model AgentPool has a new parameter os_sku
13+
- Model ManagedClusterPodIdentity has a new parameter binding_selector
14+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter gpu_instance_profile
15+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter enable_fips
16+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter os_sku
17+
- Model ManagedClusterWindowsProfile has a new parameter enable_csi_proxy
18+
- Model ManagedCluster has a new parameter disable_local_accounts
19+
- Model ManagedCluster has a new parameter http_proxy_config
20+
- Model ManagedCluster has a new parameter private_link_resources
21+
- Model ManagedCluster has a new parameter extended_location
22+
- Added operation ManagedClustersOperations.run_command
23+
- Added operation ManagedClustersOperations.get_command_result
24+
- Added operation ManagedClustersOperations.get_os_options
25+
326
## 11.1.0 (2021-03-03)
427

528
**Features**

sdk/containerservice/azure-mgmt-containerservice/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "8c3c899722a412e9e61264459d6426e64925cd68",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/containerservice/resource-manager/readme.md"
8+
}

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

Lines changed: 26 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 = '2021-02-01'
49+
DEFAULT_API_VERSION = '2021-03-01'
5050
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -97,6 +97,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9797
* 2020-11-01: :mod:`v2020_11_01.models<azure.mgmt.containerservice.v2020_11_01.models>`
9898
* 2020-12-01: :mod:`v2020_12_01.models<azure.mgmt.containerservice.v2020_12_01.models>`
9999
* 2021-02-01: :mod:`v2021_02_01.models<azure.mgmt.containerservice.v2021_02_01.models>`
100+
* 2021-03-01: :mod:`v2021_03_01.models<azure.mgmt.containerservice.v2021_03_01.models>`
100101
"""
101102
if api_version == '2017-07-01':
102103
from .v2017_07_01 import models
@@ -167,6 +168,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
167168
elif api_version == '2021-02-01':
168169
from .v2021_02_01 import models
169170
return models
171+
elif api_version == '2021-03-01':
172+
from .v2021_03_01 import models
173+
return models
170174
raise NotImplementedError("APIVersion {} is not available".format(api_version))
171175

172176
@property
@@ -189,6 +193,7 @@ def agent_pools(self):
189193
* 2020-11-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_11_01.operations.AgentPoolsOperations>`
190194
* 2020-12-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_12_01.operations.AgentPoolsOperations>`
191195
* 2021-02-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_02_01.operations.AgentPoolsOperations>`
196+
* 2021-03-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_03_01.operations.AgentPoolsOperations>`
192197
"""
193198
api_version = self._get_api_version('agent_pools')
194199
if api_version == '2019-02-01':
@@ -223,6 +228,8 @@ def agent_pools(self):
223228
from .v2020_12_01.operations import AgentPoolsOperations as OperationClass
224229
elif api_version == '2021-02-01':
225230
from .v2021_02_01.operations import AgentPoolsOperations as OperationClass
231+
elif api_version == '2021-03-01':
232+
from .v2021_03_01.operations import AgentPoolsOperations as OperationClass
226233
else:
227234
raise NotImplementedError("APIVersion {} is not available".format(api_version))
228235
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -246,12 +253,15 @@ def maintenance_configurations(self):
246253
247254
* 2020-12-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2020_12_01.operations.MaintenanceConfigurationsOperations>`
248255
* 2021-02-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_02_01.operations.MaintenanceConfigurationsOperations>`
256+
* 2021-03-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_03_01.operations.MaintenanceConfigurationsOperations>`
249257
"""
250258
api_version = self._get_api_version('maintenance_configurations')
251259
if api_version == '2020-12-01':
252260
from .v2020_12_01.operations import MaintenanceConfigurationsOperations as OperationClass
253261
elif api_version == '2021-02-01':
254262
from .v2021_02_01.operations import MaintenanceConfigurationsOperations as OperationClass
263+
elif api_version == '2021-03-01':
264+
from .v2021_03_01.operations import MaintenanceConfigurationsOperations as OperationClass
255265
else:
256266
raise NotImplementedError("APIVersion {} is not available".format(api_version))
257267
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -278,6 +288,7 @@ def managed_clusters(self):
278288
* 2020-11-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_11_01.operations.ManagedClustersOperations>`
279289
* 2020-12-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_12_01.operations.ManagedClustersOperations>`
280290
* 2021-02-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_02_01.operations.ManagedClustersOperations>`
291+
* 2021-03-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_03_01.operations.ManagedClustersOperations>`
281292
"""
282293
api_version = self._get_api_version('managed_clusters')
283294
if api_version == '2018-03-31':
@@ -316,6 +327,8 @@ def managed_clusters(self):
316327
from .v2020_12_01.operations import ManagedClustersOperations as OperationClass
317328
elif api_version == '2021-02-01':
318329
from .v2021_02_01.operations import ManagedClustersOperations as OperationClass
330+
elif api_version == '2021-03-01':
331+
from .v2021_03_01.operations import ManagedClustersOperations as OperationClass
319332
else:
320333
raise NotImplementedError("APIVersion {} is not available".format(api_version))
321334
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -364,6 +377,7 @@ def operations(self):
364377
* 2020-11-01: :class:`Operations<azure.mgmt.containerservice.v2020_11_01.operations.Operations>`
365378
* 2020-12-01: :class:`Operations<azure.mgmt.containerservice.v2020_12_01.operations.Operations>`
366379
* 2021-02-01: :class:`Operations<azure.mgmt.containerservice.v2021_02_01.operations.Operations>`
380+
* 2021-03-01: :class:`Operations<azure.mgmt.containerservice.v2021_03_01.operations.Operations>`
367381
"""
368382
api_version = self._get_api_version('operations')
369383
if api_version == '2018-03-31':
@@ -402,6 +416,8 @@ def operations(self):
402416
from .v2020_12_01.operations import Operations as OperationClass
403417
elif api_version == '2021-02-01':
404418
from .v2021_02_01.operations import Operations as OperationClass
419+
elif api_version == '2021-03-01':
420+
from .v2021_03_01.operations import Operations as OperationClass
405421
else:
406422
raise NotImplementedError("APIVersion {} is not available".format(api_version))
407423
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -416,6 +432,7 @@ def private_endpoint_connections(self):
416432
* 2020-11-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_11_01.operations.PrivateEndpointConnectionsOperations>`
417433
* 2020-12-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_12_01.operations.PrivateEndpointConnectionsOperations>`
418434
* 2021-02-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_02_01.operations.PrivateEndpointConnectionsOperations>`
435+
* 2021-03-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_03_01.operations.PrivateEndpointConnectionsOperations>`
419436
"""
420437
api_version = self._get_api_version('private_endpoint_connections')
421438
if api_version == '2020-06-01':
@@ -430,6 +447,8 @@ def private_endpoint_connections(self):
430447
from .v2020_12_01.operations import PrivateEndpointConnectionsOperations as OperationClass
431448
elif api_version == '2021-02-01':
432449
from .v2021_02_01.operations import PrivateEndpointConnectionsOperations as OperationClass
450+
elif api_version == '2021-03-01':
451+
from .v2021_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass
433452
else:
434453
raise NotImplementedError("APIVersion {} is not available".format(api_version))
435454
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -442,6 +461,7 @@ def private_link_resources(self):
442461
* 2020-11-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2020_11_01.operations.PrivateLinkResourcesOperations>`
443462
* 2020-12-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2020_12_01.operations.PrivateLinkResourcesOperations>`
444463
* 2021-02-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_02_01.operations.PrivateLinkResourcesOperations>`
464+
* 2021-03-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_03_01.operations.PrivateLinkResourcesOperations>`
445465
"""
446466
api_version = self._get_api_version('private_link_resources')
447467
if api_version == '2020-09-01':
@@ -452,6 +472,8 @@ def private_link_resources(self):
452472
from .v2020_12_01.operations import PrivateLinkResourcesOperations as OperationClass
453473
elif api_version == '2021-02-01':
454474
from .v2021_02_01.operations import PrivateLinkResourcesOperations as OperationClass
475+
elif api_version == '2021-03-01':
476+
from .v2021_03_01.operations import PrivateLinkResourcesOperations as OperationClass
455477
else:
456478
raise NotImplementedError("APIVersion {} is not available".format(api_version))
457479
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -464,6 +486,7 @@ def resolve_private_link_service_id(self):
464486
* 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2020_11_01.operations.ResolvePrivateLinkServiceIdOperations>`
465487
* 2020-12-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2020_12_01.operations.ResolvePrivateLinkServiceIdOperations>`
466488
* 2021-02-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_02_01.operations.ResolvePrivateLinkServiceIdOperations>`
489+
* 2021-03-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_03_01.operations.ResolvePrivateLinkServiceIdOperations>`
467490
"""
468491
api_version = self._get_api_version('resolve_private_link_service_id')
469492
if api_version == '2020-09-01':
@@ -474,6 +497,8 @@ def resolve_private_link_service_id(self):
474497
from .v2020_12_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
475498
elif api_version == '2021-02-01':
476499
from .v2021_02_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
500+
elif api_version == '2021-03-01':
501+
from .v2021_03_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
477502
else:
478503
raise NotImplementedError("APIVersion {} is not available".format(api_version))
479504
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 .v2021_02_01.models import *
9+
from .v2021_03_01.models import *

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/version.py

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

12-
VERSION = "11.1.0"
12+
VERSION = "11.2.0"
1313

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/version.py

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

12-
VERSION = "11.1.0"
12+
VERSION = "11.2.0"
1313

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/version.py

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

12-
VERSION = "11.1.0"
12+
VERSION = "11.2.0"
1313

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/version.py

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

12-
VERSION = "11.1.0"
12+
VERSION = "11.2.0"
1313

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/version.py

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

12-
VERSION = "11.1.0"
12+
VERSION = "11.2.0"
1313

0 commit comments

Comments
 (0)