Skip to content

Commit

Permalink
CodeGen from PR 19665 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 38d5e3f4eb5cdecef1ac126af8ca4d5edf8c52ce into 4fe5f518b99a09d819bc44e3c531d1a12644d350
  • Loading branch information
SDKAuto committed Jul 4, 2022
1 parent 7eeaca9 commit d637d6e
Show file tree
Hide file tree
Showing 919 changed files with 89,723 additions and 46,512 deletions.
6 changes: 3 additions & 3 deletions sdk/containerservice/azure-mgmt-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/[email protected]"
],
"commit": "2d6cb29af754f48a08f94cb6113bb1f01a4e0eb9",
"commit": "b32a8bf2f9be4eb3b364b810382782753320ecfe",
"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.13.0 --use=@autorest/[email protected] --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/[email protected] --version=3.7.2",
"readme": "specification/containerservice/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,16 @@ 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: {
None: DEFAULT_API_VERSION,
'container_services': '2017-07-01',
'managed_cluster_snapshots': '2022-05-02-preview',
'open_shift_managed_clusters': '2019-04-30',
'trusted_access_role_bindings': '2022-05-02-preview',
'trusted_access_roles': '2022-05-02-preview',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -130,6 +133,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>`
"""
if api_version == '2017-07-01':
from .v2017_07_01 import models
Expand Down Expand Up @@ -248,6 +252,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
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -286,6 +293,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>`
"""
api_version = self._get_api_version('agent_pools')
if api_version == '2019-02-01':
Expand Down Expand Up @@ -352,6 +360,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
else:
raise ValueError("API version {} does not have operation group 'agent_pools'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -391,6 +401,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>`
"""
api_version = self._get_api_version('maintenance_configurations')
if api_version == '2020-12-01':
Expand Down Expand Up @@ -429,6 +440,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
else:
raise ValueError("API version {} does not have operation group 'maintenance_configurations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -493,6 +506,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>`
"""
api_version = self._get_api_version('managed_clusters')
if api_version == '2018-03-31':
Expand Down Expand Up @@ -563,6 +577,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
else:
raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -627,6 +643,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>`
"""
api_version = self._get_api_version('operations')
if api_version == '2018-03-31':
Expand Down Expand Up @@ -697,6 +714,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
else:
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -727,6 +746,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>`
"""
api_version = self._get_api_version('private_endpoint_connections')
if api_version == '2020-06-01':
Expand Down Expand Up @@ -773,6 +793,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
else:
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -801,6 +823,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>`
"""
api_version = self._get_api_version('private_link_resources')
if api_version == '2020-09-01':
Expand Down Expand Up @@ -843,6 +866,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
else:
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -871,6 +896,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>`
"""
api_version = self._get_api_version('resolve_private_link_service_id')
if api_version == '2020-09-01':
Expand Down Expand Up @@ -913,6 +939,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
else:
raise ValueError("API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -934,6 +962,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>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2021-08-01':
Expand Down Expand Up @@ -962,6 +991,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
else:
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Loading

0 comments on commit d637d6e

Please sign in to comment.