Skip to content

Commit

Permalink
CodeGen from PR 18735 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge cd0b2f8d3da48ac7ca5e0b66c66e6816493469b9 into e60203688b5bb0699b0a0eea8f50878c8ac2e493
  • Loading branch information
SDKAuto committed Apr 19, 2022
1 parent 7c34e0c commit 12598f1
Show file tree
Hide file tree
Showing 37 changed files with 19,501 additions and 2 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/[email protected]",
"@autorest/[email protected]"
],
"commit": "fb31972c13cf183c43414d2b4736a5d70aa8af68",
"commit": "35afc8c1db517530b6f0a2f2b15234770724d222",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --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 @@ -127,6 +127,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2022-02-02-preview: :mod:`v2022_02_02_preview.models<azure.mgmt.containerservice.v2022_02_02_preview.models>`
* 2022-03-01: :mod:`v2022_03_01.models<azure.mgmt.containerservice.v2022_03_01.models>`
* 2022-03-02-preview: :mod:`v2022_03_02_preview.models<azure.mgmt.containerservice.v2022_03_02_preview.models>`
* 2022-04-02-preview: :mod:`v2022_04_02_preview.models<azure.mgmt.containerservice.v2022_04_02_preview.models>`
"""
if api_version == '2017-07-01':
from .v2017_07_01 import models
Expand Down Expand Up @@ -236,6 +237,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview import models
return models
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -271,6 +275,7 @@ def agent_pools(self):
* 2022-02-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.AgentPoolsOperations>`
* 2022-03-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_03_01.operations.AgentPoolsOperations>`
* 2022-03-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.AgentPoolsOperations>`
* 2022-04-02-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.AgentPoolsOperations>`
"""
api_version = self._get_api_version('agent_pools')
if api_version == '2019-02-01':
Expand Down Expand Up @@ -331,6 +336,8 @@ def agent_pools(self):
from .v2022_03_01.operations import AgentPoolsOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import AgentPoolsOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 @@ -367,6 +374,7 @@ def maintenance_configurations(self):
* 2022-02-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.MaintenanceConfigurationsOperations>`
* 2022-03-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_03_01.operations.MaintenanceConfigurationsOperations>`
* 2022-03-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.MaintenanceConfigurationsOperations>`
* 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.MaintenanceConfigurationsOperations>`
"""
api_version = self._get_api_version('maintenance_configurations')
if api_version == '2020-12-01':
Expand Down Expand Up @@ -399,6 +407,8 @@ def maintenance_configurations(self):
from .v2022_03_01.operations import MaintenanceConfigurationsOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 All @@ -409,12 +419,15 @@ def managed_cluster_snapshots(self):
* 2022-02-02-preview: :class:`ManagedClusterSnapshotsOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.ManagedClusterSnapshotsOperations>`
* 2022-03-02-preview: :class:`ManagedClusterSnapshotsOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.ManagedClusterSnapshotsOperations>`
* 2022-04-02-preview: :class:`ManagedClusterSnapshotsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.ManagedClusterSnapshotsOperations>`
"""
api_version = self._get_api_version('managed_cluster_snapshots')
if api_version == '2022-02-02-preview':
from .v2022_02_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'managed_cluster_snapshots'".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 @@ -454,6 +467,7 @@ def managed_clusters(self):
* 2022-02-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.ManagedClustersOperations>`
* 2022-03-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_03_01.operations.ManagedClustersOperations>`
* 2022-03-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.ManagedClustersOperations>`
* 2022-04-02-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.ManagedClustersOperations>`
"""
api_version = self._get_api_version('managed_clusters')
if api_version == '2018-03-31':
Expand Down Expand Up @@ -518,6 +532,8 @@ def managed_clusters(self):
from .v2022_03_01.operations import ManagedClustersOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import ManagedClustersOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 @@ -579,6 +595,7 @@ def operations(self):
* 2022-02-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_02_02_preview.operations.Operations>`
* 2022-03-01: :class:`Operations<azure.mgmt.containerservice.v2022_03_01.operations.Operations>`
* 2022-03-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_03_02_preview.operations.Operations>`
* 2022-04-02-preview: :class:`Operations<azure.mgmt.containerservice.v2022_04_02_preview.operations.Operations>`
"""
api_version = self._get_api_version('operations')
if api_version == '2018-03-31':
Expand Down Expand Up @@ -643,6 +660,8 @@ def operations(self):
from .v2022_03_01.operations import Operations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import Operations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 @@ -670,6 +689,7 @@ def private_endpoint_connections(self):
* 2022-02-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.PrivateEndpointConnectionsOperations>`
* 2022-03-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_03_01.operations.PrivateEndpointConnectionsOperations>`
* 2022-03-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.PrivateEndpointConnectionsOperations>`
* 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.PrivateEndpointConnectionsOperations>`
"""
api_version = self._get_api_version('private_endpoint_connections')
if api_version == '2020-06-01':
Expand Down Expand Up @@ -710,6 +730,8 @@ def private_endpoint_connections(self):
from .v2022_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 All @@ -735,6 +757,7 @@ def private_link_resources(self):
* 2022-02-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.PrivateLinkResourcesOperations>`
* 2022-03-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_03_01.operations.PrivateLinkResourcesOperations>`
* 2022-03-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.PrivateLinkResourcesOperations>`
* 2022-04-02-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.PrivateLinkResourcesOperations>`
"""
api_version = self._get_api_version('private_link_resources')
if api_version == '2020-09-01':
Expand Down Expand Up @@ -771,6 +794,8 @@ def private_link_resources(self):
from .v2022_03_01.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 All @@ -796,6 +821,7 @@ def resolve_private_link_service_id(self):
* 2022-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-03-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_03_01.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
* 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.ResolvePrivateLinkServiceIdOperations>`
"""
api_version = self._get_api_version('resolve_private_link_service_id')
if api_version == '2020-09-01':
Expand Down Expand Up @@ -832,6 +858,8 @@ def resolve_private_link_service_id(self):
from .v2022_03_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 @@ -850,6 +878,7 @@ def snapshots(self):
* 2022-02-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_02_02_preview.operations.SnapshotsOperations>`
* 2022-03-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_03_01.operations.SnapshotsOperations>`
* 2022-03-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_03_02_preview.operations.SnapshotsOperations>`
* 2022-04-02-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2022_04_02_preview.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2021-08-01':
Expand All @@ -872,6 +901,8 @@ def snapshots(self):
from .v2022_03_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2022-03-02-preview':
from .v2022_03_02_preview.operations import SnapshotsOperations as OperationClass
elif api_version == '2022-04-02-preview':
from .v2022_04_02_preview.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 12598f1

Please sign in to comment.