Skip to content

Commit

Permalink
CodeGen from PR 19848 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Review request for Microsoft.ContainerService to add version 2022-06-01 (Azure#19848)

* Adds base for updating Microsoft.ContainerService from version stable/2022-04-01 to version 2022-06-01

* Updates readme

* Updates API version in new specs and examples

* update readmes (Azure#19421)

* Add key management service profile of a managed cluster for version 2022-06-01 (Azure#19529)

* Add NetworkPlugin none option to 2022-06-01 (Azure#19510)

* Add NetworkPlugin none option to 2022-06-01

* improve description for none value

* Fix violated rule R4041 for 2022-06-01 managedCluster swagger (Azure#19581)

* remove useless directive

* fix R4041

* GA AKS support for Dedicated Host Group (Azure#19547)

* GA AKS support for Dedicated Host Group

* fit some format minor issue

* add newline in end of files

* Defender updates (Azure#19665)

* Defender updates

* sample

* remove old description

Co-authored-by: Bin Xia <binxi@microsoft.com>
Co-authored-by: Matt Stam <mattstam@live.com>
Co-authored-by: Jianping Zeng <zjpjack@users.noreply.github.com>
Co-authored-by: Or Parnes <orparnes@microsoft.com>
  • Loading branch information
5 people committed Jul 21, 2022
1 parent 548a178 commit dca1352
Show file tree
Hide file tree
Showing 39 changed files with 18,371 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sdk/containerservice/azure-mgmt-containerservice/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "ca5d9600e4950afdae3c23c71d9407b6aa3fce63",
"commit": "e6441766b372badfbf8b6cf6ca512322238202b4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/containerservice/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ContainerServiceClient(MultiApiClientMixin, _SDKClient):
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""

DEFAULT_API_VERSION = '2022-04-01'
DEFAULT_API_VERSION = '2022-06-01'
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
Expand Down Expand Up @@ -130,6 +130,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.containerservice.v2022_04_01.models>`
* 2022-04-02-preview: :mod:`v2022_04_02_preview.models<azure.mgmt.containerservice.v2022_04_02_preview.models>`
* 2022-05-02-preview: :mod:`v2022_05_02_preview.models<azure.mgmt.containerservice.v2022_05_02_preview.models>`
* 2022-06-01: :mod:`v2022_06_01.models<azure.mgmt.containerservice.v2022_06_01.models>`
* 2022-06-02-preview: :mod:`v2022_06_02_preview.models<azure.mgmt.containerservice.v2022_06_02_preview.models>`
"""
if api_version == '2017-07-01':
Expand Down Expand Up @@ -249,6 +250,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview import models
return models
elif api_version == '2022-06-01':
from .v2022_06_01 import models
return models
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview import models
return models
Expand Down Expand Up @@ -290,6 +294,7 @@ def agent_pools(self):
* 2022-04-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_04_01.operations.AgentPoolsOperations>`
* 2022-04-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.AgentPoolsOperations>`
* 2022-05-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.AgentPoolsOperations>`
* 2022-06-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_06_01.operations.AgentPoolsOperations>`
* 2022-06-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.AgentPoolsOperations>`
"""
api_version = self._get_api_version('agent_pools')
Expand Down Expand Up @@ -357,6 +362,8 @@ def agent_pools(self):
from .v2022_04_02_preview.operations import AgentPoolsOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import AgentPoolsOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import AgentPoolsOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import AgentPoolsOperations as OperationClass
else:
Expand Down Expand Up @@ -424,6 +431,7 @@ def maintenance_configurations(self):
* 2022-04-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_04_01.operations.MaintenanceConfigurationsOperations>`
* 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.MaintenanceConfigurationsOperations>`
* 2022-05-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.MaintenanceConfigurationsOperations>`
* 2022-06-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_06_01.operations.MaintenanceConfigurationsOperations>`
* 2022-06-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.MaintenanceConfigurationsOperations>`
"""
api_version = self._get_api_version('maintenance_configurations')
Expand Down Expand Up @@ -463,6 +471,8 @@ def maintenance_configurations(self):
from .v2022_04_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import MaintenanceConfigurationsOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass
else:
Expand Down Expand Up @@ -532,6 +542,7 @@ def managed_clusters(self):
* 2022-04-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_04_01.operations.ManagedClustersOperations>`
* 2022-04-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.ManagedClustersOperations>`
* 2022-05-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.ManagedClustersOperations>`
* 2022-06-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_06_01.operations.ManagedClustersOperations>`
* 2022-06-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.ManagedClustersOperations>`
"""
api_version = self._get_api_version('managed_clusters')
Expand Down Expand Up @@ -603,6 +614,8 @@ def managed_clusters(self):
from .v2022_04_02_preview.operations import ManagedClustersOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import ManagedClustersOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import ManagedClustersOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import ManagedClustersOperations as OperationClass
else:
Expand Down Expand Up @@ -669,6 +682,7 @@ def operations(self):
* 2022-04-01: :class:`Operations<azure.mgmt.containerservice.v2022_04_01.operations.Operations>`
* 2022-04-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_04_02_preview.operations.Operations>`
* 2022-05-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_05_02_preview.operations.Operations>`
* 2022-06-01: :class:`Operations<azure.mgmt.containerservice.v2022_06_01.operations.Operations>`
* 2022-06-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_06_02_preview.operations.Operations>`
"""
api_version = self._get_api_version('operations')
Expand Down Expand Up @@ -740,6 +754,8 @@ def operations(self):
from .v2022_04_02_preview.operations import Operations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import Operations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import Operations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import Operations as OperationClass
else:
Expand Down Expand Up @@ -772,6 +788,7 @@ def private_endpoint_connections(self):
* 2022-04-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_04_01.operations.PrivateEndpointConnectionsOperations>`
* 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.PrivateEndpointConnectionsOperations>`
* 2022-05-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.PrivateEndpointConnectionsOperations>`
* 2022-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_06_01.operations.PrivateEndpointConnectionsOperations>`
* 2022-06-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.PrivateEndpointConnectionsOperations>`
"""
api_version = self._get_api_version('private_endpoint_connections')
Expand Down Expand Up @@ -819,6 +836,8 @@ def private_endpoint_connections(self):
from .v2022_04_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
else:
Expand Down Expand Up @@ -849,6 +868,7 @@ def private_link_resources(self):
* 2022-04-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_04_01.operations.PrivateLinkResourcesOperations>`
* 2022-04-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.PrivateLinkResourcesOperations>`
* 2022-05-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.PrivateLinkResourcesOperations>`
* 2022-06-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_06_01.operations.PrivateLinkResourcesOperations>`
* 2022-06-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.PrivateLinkResourcesOperations>`
"""
api_version = self._get_api_version('private_link_resources')
Expand Down Expand Up @@ -892,6 +912,8 @@ def private_link_resources(self):
from .v2022_04_02_preview.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import PrivateLinkResourcesOperations as OperationClass
else:
Expand Down Expand Up @@ -922,6 +944,7 @@ def resolve_private_link_service_id(self):
* 2022-04-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_04_01.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-06-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_06_01.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
"""
api_version = self._get_api_version('resolve_private_link_service_id')
Expand Down Expand Up @@ -965,6 +988,8 @@ def resolve_private_link_service_id(self):
from .v2022_04_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
else:
Expand All @@ -988,6 +1013,7 @@ def snapshots(self):
* 2022-04-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_04_01.operations.SnapshotsOperations>`
* 2022-04-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.SnapshotsOperations>`
* 2022-05-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_05_02_preview.operations.SnapshotsOperations>`
* 2022-06-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_06_01.operations.SnapshotsOperations>`
* 2022-06-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_06_02_preview.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
Expand Down Expand Up @@ -1017,6 +1043,8 @@ def snapshots(self):
from .v2022_04_02_preview.operations import SnapshotsOperations as OperationClass
elif api_version == '2022-05-02-preview':
from .v2022_05_02_preview.operations import SnapshotsOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2022-06-02-preview':
from .v2022_06_02_preview.operations import SnapshotsOperations as OperationClass
else:
Expand Down
Loading

0 comments on commit dca1352

Please sign in to comment.