diff --git a/sdk/containerservice/azure-mgmt-containerservice/_meta.json b/sdk/containerservice/azure-mgmt-containerservice/_meta.json index c808414b8da7..a2cb9ca93146 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/_meta.json +++ b/sdk/containerservice/azure-mgmt-containerservice/_meta.json @@ -1,12 +1,12 @@ { - "commit": "399cbac2de1bc0acbed4c9a0a864a9c84da3692e", + "commit": "4759b69d773b3089af5b011e3e8955fe6ec319f8", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.19.0", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", "package-2024-05": "2024-07-10 04:37:35 +0800 794e29ee5f8eca63ce0ddf007c60da7df37baaad stable/2024-05-01/managedClusters.json", "package-preview-2024-04": "2024-08-27 19:55:39 -0700 4bc9b37173bd5fe0ed19f21edfb8a195e89caaf6 preview/2024-04-02-preview/managedClusters.json", diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/__init__.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/__init__.py index 4fb8943beb2c..c9e1e010e0e0 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/__init__.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/__init__.py @@ -7,12 +7,10 @@ # -------------------------------------------------------------------------- from ._container_service_client import ContainerServiceClient - -__all__ = ["ContainerServiceClient"] +__all__ = ['ContainerServiceClient'] try: from ._patch import patch_sdk # type: ignore - patch_sdk() except ImportError: pass diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_configuration.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_configuration.py index f38bca848350..d0d261e8db84 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_configuration.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_configuration.py @@ -19,7 +19,6 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials import TokenCredential - class ContainerServiceClientConfiguration: """Configuration for ContainerServiceClient. @@ -32,7 +31,12 @@ class ContainerServiceClientConfiguration: :type subscription_id: str """ - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any): + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ): if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -40,22 +44,23 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs self.credential = credential self.subscription_id = subscription_id - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "azure-mgmt-containerservice/{}".format(VERSION)) + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-mgmt-containerservice/{}'.format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) - def _configure(self, **kwargs: Any): - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") + def _configure( + self, + **kwargs: Any + ): + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) + self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py index 8d52c177e3f2..cad62fb662cb 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py @@ -25,7 +25,6 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials import TokenCredential - class _SDKClient(object): def __init__(self, *args, **kwargs): """This is a fake class to support current implemetation of MultiApiClientMixin." @@ -33,7 +32,6 @@ def __init__(self, *args, **kwargs): """ pass - class ContainerServiceClient(MultiApiClientMixin, _SDKClient): """The Container Service Client. @@ -58,35 +56,33 @@ 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 = "2024-08-01" + DEFAULT_API_VERSION = '2024-08-01' _PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient" - LATEST_PROFILE = ProfileDefinition( - { - _PROFILE_TAG: { - None: DEFAULT_API_VERSION, - "container_services": "2019-04-01", - "fleet_members": "2022-09-02-preview", - "fleets": "2022-09-02-preview", - "load_balancers": "2024-07-02-preview", - "managed_cluster_snapshots": "2024-07-02-preview", - "open_shift_managed_clusters": "2019-04-30", - "operation_status_result": "2024-07-02-preview", - } - }, - _PROFILE_TAG + " latest", + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + 'container_services': '2019-04-01', + 'fleet_members': '2022-09-02-preview', + 'fleets': '2022-09-02-preview', + 'load_balancers': '2024-07-02-preview', + 'managed_cluster_snapshots': '2024-07-02-preview', + 'open_shift_managed_clusters': '2019-04-30', + 'operation_status_result': '2024-07-02-preview', + }}, + _PROFILE_TAG + " latest" ) def __init__( self, credential: "TokenCredential", subscription_id: str, - api_version: Optional[str] = None, + api_version: Optional[str]=None, base_url: str = "https://management.azure.com", - profile: KnownProfiles = KnownProfiles.default, + profile: KnownProfiles=KnownProfiles.default, **kwargs: Any ): if api_version: - kwargs.setdefault("api_version", api_version) + kwargs.setdefault('api_version', api_version) self._config = ContainerServiceClientConfiguration(credential, subscription_id, **kwargs) _policies = kwargs.pop("policies", None) if _policies is None: @@ -107,7 +103,10 @@ def __init__( self._config.http_logging_policy, ] self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - super(ContainerServiceClient, self).__init__(api_version=api_version, profile=profile) + super(ContainerServiceClient, self).__init__( + api_version=api_version, + profile=profile + ) @classmethod def _models_dict(cls, api_version): @@ -117,426 +116,342 @@ def _models_dict(cls, api_version): def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: - * 2017-07-01: :mod:`v2017_07_01.models` - * 2018-03-31: :mod:`v2018_03_31.models` - * 2018-08-01-preview: :mod:`v2018_08_01_preview.models` - * 2018-09-30-preview: :mod:`v2018_09_30_preview.models` - * 2019-02-01: :mod:`v2019_02_01.models` - * 2019-04-01: :mod:`v2019_04_01.models` - * 2019-04-30: :mod:`v2019_04_30.models` - * 2019-06-01: :mod:`v2019_06_01.models` - * 2019-08-01: :mod:`v2019_08_01.models` - * 2019-09-30-preview: :mod:`v2019_09_30_preview.models` - * 2019-10-01: :mod:`v2019_10_01.models` - * 2019-10-27-preview: :mod:`v2019_10_27_preview.models` - * 2019-11-01: :mod:`v2019_11_01.models` - * 2020-01-01: :mod:`v2020_01_01.models` - * 2020-02-01: :mod:`v2020_02_01.models` - * 2020-03-01: :mod:`v2020_03_01.models` - * 2020-04-01: :mod:`v2020_04_01.models` - * 2020-06-01: :mod:`v2020_06_01.models` - * 2020-07-01: :mod:`v2020_07_01.models` - * 2020-09-01: :mod:`v2020_09_01.models` - * 2020-11-01: :mod:`v2020_11_01.models` - * 2020-12-01: :mod:`v2020_12_01.models` - * 2021-02-01: :mod:`v2021_02_01.models` - * 2021-03-01: :mod:`v2021_03_01.models` - * 2021-05-01: :mod:`v2021_05_01.models` - * 2021-07-01: :mod:`v2021_07_01.models` - * 2021-08-01: :mod:`v2021_08_01.models` - * 2021-09-01: :mod:`v2021_09_01.models` - * 2021-10-01: :mod:`v2021_10_01.models` - * 2021-11-01-preview: :mod:`v2021_11_01_preview.models` - * 2022-01-01: :mod:`v2022_01_01.models` - * 2022-01-02-preview: :mod:`v2022_01_02_preview.models` - * 2022-02-01: :mod:`v2022_02_01.models` - * 2022-02-02-preview: :mod:`v2022_02_02_preview.models` - * 2022-03-01: :mod:`v2022_03_01.models` - * 2022-03-02-preview: :mod:`v2022_03_02_preview.models` - * 2022-04-01: :mod:`v2022_04_01.models` - * 2022-04-02-preview: :mod:`v2022_04_02_preview.models` - * 2022-05-02-preview: :mod:`v2022_05_02_preview.models` - * 2022-06-01: :mod:`v2022_06_01.models` - * 2022-06-02-preview: :mod:`v2022_06_02_preview.models` - * 2022-07-01: :mod:`v2022_07_01.models` - * 2022-07-02-preview: :mod:`v2022_07_02_preview.models` - * 2022-08-02-preview: :mod:`v2022_08_02_preview.models` - * 2022-08-03-preview: :mod:`v2022_08_03_preview.models` - * 2022-09-01: :mod:`v2022_09_01.models` - * 2022-09-02-preview: :mod:`v2022_09_02_preview.models` - * 2022-10-02-preview: :mod:`v2022_10_02_preview.models` - * 2022-11-01: :mod:`v2022_11_01.models` - * 2022-11-02-preview: :mod:`v2022_11_02_preview.models` - * 2023-01-01: :mod:`v2023_01_01.models` - * 2023-01-02-preview: :mod:`v2023_01_02_preview.models` - * 2023-02-01: :mod:`v2023_02_01.models` - * 2023-02-02-preview: :mod:`v2023_02_02_preview.models` - * 2023-03-01: :mod:`v2023_03_01.models` - * 2023-03-02-preview: :mod:`v2023_03_02_preview.models` - * 2023-04-01: :mod:`v2023_04_01.models` - * 2023-04-02-preview: :mod:`v2023_04_02_preview.models` - * 2023-05-01: :mod:`v2023_05_01.models` - * 2023-05-02-preview: :mod:`v2023_05_02_preview.models` - * 2023-06-01: :mod:`v2023_06_01.models` - * 2023-06-02-preview: :mod:`v2023_06_02_preview.models` - * 2023-07-01: :mod:`v2023_07_01.models` - * 2023-07-02-preview: :mod:`v2023_07_02_preview.models` - * 2023-08-01: :mod:`v2023_08_01.models` - * 2023-08-02-preview: :mod:`v2023_08_02_preview.models` - * 2023-09-01: :mod:`v2023_09_01.models` - * 2023-09-02-preview: :mod:`v2023_09_02_preview.models` - * 2023-10-01: :mod:`v2023_10_01.models` - * 2023-10-02-preview: :mod:`v2023_10_02_preview.models` - * 2023-11-01: :mod:`v2023_11_01.models` - * 2023-11-02-preview: :mod:`v2023_11_02_preview.models` - * 2024-01-01: :mod:`v2024_01_01.models` - * 2024-01-02-preview: :mod:`v2024_01_02_preview.models` - * 2024-02-01: :mod:`v2024_02_01.models` - * 2024-02-02-preview: :mod:`v2024_02_02_preview.models` - * 2024-03-02-preview: :mod:`v2024_03_02_preview.models` - * 2024-04-02-preview: :mod:`v2024_04_02_preview.models` - * 2024-05-01: :mod:`v2024_05_01.models` - * 2024-05-02-preview: :mod:`v2024_05_02_preview.models` - * 2024-06-02-preview: :mod:`v2024_06_02_preview.models` - * 2024-07-01: :mod:`v2024_07_01.models` - * 2024-07-02-preview: :mod:`v2024_07_02_preview.models` - * 2024-08-01: :mod:`v2024_08_01.models` + * 2017-07-01: :mod:`v2017_07_01.models` + * 2018-03-31: :mod:`v2018_03_31.models` + * 2018-08-01-preview: :mod:`v2018_08_01_preview.models` + * 2018-09-30-preview: :mod:`v2018_09_30_preview.models` + * 2019-02-01: :mod:`v2019_02_01.models` + * 2019-04-01: :mod:`v2019_04_01.models` + * 2019-04-30: :mod:`v2019_04_30.models` + * 2019-06-01: :mod:`v2019_06_01.models` + * 2019-08-01: :mod:`v2019_08_01.models` + * 2019-09-30-preview: :mod:`v2019_09_30_preview.models` + * 2019-10-01: :mod:`v2019_10_01.models` + * 2019-10-27-preview: :mod:`v2019_10_27_preview.models` + * 2019-11-01: :mod:`v2019_11_01.models` + * 2020-01-01: :mod:`v2020_01_01.models` + * 2020-02-01: :mod:`v2020_02_01.models` + * 2020-03-01: :mod:`v2020_03_01.models` + * 2020-04-01: :mod:`v2020_04_01.models` + * 2020-06-01: :mod:`v2020_06_01.models` + * 2020-07-01: :mod:`v2020_07_01.models` + * 2020-09-01: :mod:`v2020_09_01.models` + * 2020-11-01: :mod:`v2020_11_01.models` + * 2020-12-01: :mod:`v2020_12_01.models` + * 2021-02-01: :mod:`v2021_02_01.models` + * 2021-03-01: :mod:`v2021_03_01.models` + * 2021-05-01: :mod:`v2021_05_01.models` + * 2021-07-01: :mod:`v2021_07_01.models` + * 2021-08-01: :mod:`v2021_08_01.models` + * 2021-09-01: :mod:`v2021_09_01.models` + * 2021-10-01: :mod:`v2021_10_01.models` + * 2021-11-01-preview: :mod:`v2021_11_01_preview.models` + * 2022-01-01: :mod:`v2022_01_01.models` + * 2022-01-02-preview: :mod:`v2022_01_02_preview.models` + * 2022-02-01: :mod:`v2022_02_01.models` + * 2022-02-02-preview: :mod:`v2022_02_02_preview.models` + * 2022-03-01: :mod:`v2022_03_01.models` + * 2022-03-02-preview: :mod:`v2022_03_02_preview.models` + * 2022-04-01: :mod:`v2022_04_01.models` + * 2022-04-02-preview: :mod:`v2022_04_02_preview.models` + * 2022-05-02-preview: :mod:`v2022_05_02_preview.models` + * 2022-06-01: :mod:`v2022_06_01.models` + * 2022-06-02-preview: :mod:`v2022_06_02_preview.models` + * 2022-07-01: :mod:`v2022_07_01.models` + * 2022-07-02-preview: :mod:`v2022_07_02_preview.models` + * 2022-08-02-preview: :mod:`v2022_08_02_preview.models` + * 2022-08-03-preview: :mod:`v2022_08_03_preview.models` + * 2022-09-01: :mod:`v2022_09_01.models` + * 2022-09-02-preview: :mod:`v2022_09_02_preview.models` + * 2022-10-02-preview: :mod:`v2022_10_02_preview.models` + * 2022-11-01: :mod:`v2022_11_01.models` + * 2022-11-02-preview: :mod:`v2022_11_02_preview.models` + * 2023-01-01: :mod:`v2023_01_01.models` + * 2023-01-02-preview: :mod:`v2023_01_02_preview.models` + * 2023-02-01: :mod:`v2023_02_01.models` + * 2023-02-02-preview: :mod:`v2023_02_02_preview.models` + * 2023-03-01: :mod:`v2023_03_01.models` + * 2023-03-02-preview: :mod:`v2023_03_02_preview.models` + * 2023-04-01: :mod:`v2023_04_01.models` + * 2023-04-02-preview: :mod:`v2023_04_02_preview.models` + * 2023-05-01: :mod:`v2023_05_01.models` + * 2023-05-02-preview: :mod:`v2023_05_02_preview.models` + * 2023-06-01: :mod:`v2023_06_01.models` + * 2023-06-02-preview: :mod:`v2023_06_02_preview.models` + * 2023-07-01: :mod:`v2023_07_01.models` + * 2023-07-02-preview: :mod:`v2023_07_02_preview.models` + * 2023-08-01: :mod:`v2023_08_01.models` + * 2023-08-02-preview: :mod:`v2023_08_02_preview.models` + * 2023-09-01: :mod:`v2023_09_01.models` + * 2023-09-02-preview: :mod:`v2023_09_02_preview.models` + * 2023-10-01: :mod:`v2023_10_01.models` + * 2023-10-02-preview: :mod:`v2023_10_02_preview.models` + * 2023-11-01: :mod:`v2023_11_01.models` + * 2023-11-02-preview: :mod:`v2023_11_02_preview.models` + * 2024-01-01: :mod:`v2024_01_01.models` + * 2024-01-02-preview: :mod:`v2024_01_02_preview.models` + * 2024-02-01: :mod:`v2024_02_01.models` + * 2024-02-02-preview: :mod:`v2024_02_02_preview.models` + * 2024-03-02-preview: :mod:`v2024_03_02_preview.models` + * 2024-04-02-preview: :mod:`v2024_04_02_preview.models` + * 2024-05-01: :mod:`v2024_05_01.models` + * 2024-05-02-preview: :mod:`v2024_05_02_preview.models` + * 2024-06-02-preview: :mod:`v2024_06_02_preview.models` + * 2024-07-01: :mod:`v2024_07_01.models` + * 2024-07-02-preview: :mod:`v2024_07_02_preview.models` + * 2024-08-01: :mod:`v2024_08_01.models` """ - if api_version == "2017-07-01": + if api_version == '2017-07-01': from .v2017_07_01 import models - return models - elif api_version == "2018-03-31": + elif api_version == '2018-03-31': from .v2018_03_31 import models - return models - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from .v2018_08_01_preview import models - return models - elif api_version == "2018-09-30-preview": + elif api_version == '2018-09-30-preview': from .v2018_09_30_preview import models - return models - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from .v2019_02_01 import models - return models - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from .v2019_04_01 import models - return models - elif api_version == "2019-04-30": + elif api_version == '2019-04-30': from .v2019_04_30 import models - return models - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from .v2019_06_01 import models - return models - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from .v2019_08_01 import models - return models - elif api_version == "2019-09-30-preview": + elif api_version == '2019-09-30-preview': from .v2019_09_30_preview import models - return models - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from .v2019_10_01 import models - return models - elif api_version == "2019-10-27-preview": + elif api_version == '2019-10-27-preview': from .v2019_10_27_preview import models - return models - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from .v2019_11_01 import models - return models - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from .v2020_01_01 import models - return models - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from .v2020_02_01 import models - return models - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from .v2020_03_01 import models - return models - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from .v2020_04_01 import models - return models - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from .v2020_06_01 import models - return models - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from .v2020_07_01 import models - return models - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from .v2020_09_01 import models - return models - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01 import models - return models - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01 import models - return models - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01 import models - return models - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01 import models - return models - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01 import models - return models - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01 import models - return models - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01 import models - return models - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01 import models - return models - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01 import models - return models - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview import models - return models - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01 import models - return models - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview import models - return models - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01 import models - return models - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview import models - return models - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01 import models - return models - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview import models - return models - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01 import models - return models - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview import models - return models - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview import models - return models - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01 import models - return models - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview import models - return models - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01 import models - return models - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview import models - return models - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview import models - return models - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview import models - return models - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01 import models - return models - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview import models - return models - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview import models - return models - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01 import models - return models - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview import models - return models - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01 import models - return models - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview import models - return models - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01 import models - return models - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview import models - return models - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01 import models - return models - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview import models - return models - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01 import models - return models - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview import models - return models - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01 import models - return models - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview import models - return models - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01 import models - return models - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview import models - return models - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01 import models - return models - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview import models - return models - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01 import models - return models - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview import models - return models - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01 import models - return models - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview import models - return models - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01 import models - return models - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview import models - return models - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01 import models - return models - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview import models - return models - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01 import models - return models - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview import models - return models - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01 import models - return models - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview import models - return models - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview import models - return models - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview import models - return models - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01 import models - return models - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview import models - return models - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview import models - return models - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01 import models - return models - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview import models - return models - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01 import models - return models raise ValueError("API version {} is not available".format(api_version)) @@ -544,2406 +459,2280 @@ def models(cls, api_version=DEFAULT_API_VERSION): def agent_pools(self): """Instance depends on the API version: - * 2019-02-01: :class:`AgentPoolsOperations` - * 2019-04-01: :class:`AgentPoolsOperations` - * 2019-06-01: :class:`AgentPoolsOperations` - * 2019-08-01: :class:`AgentPoolsOperations` - * 2019-10-01: :class:`AgentPoolsOperations` - * 2019-11-01: :class:`AgentPoolsOperations` - * 2020-01-01: :class:`AgentPoolsOperations` - * 2020-02-01: :class:`AgentPoolsOperations` - * 2020-03-01: :class:`AgentPoolsOperations` - * 2020-04-01: :class:`AgentPoolsOperations` - * 2020-06-01: :class:`AgentPoolsOperations` - * 2020-07-01: :class:`AgentPoolsOperations` - * 2020-09-01: :class:`AgentPoolsOperations` - * 2020-11-01: :class:`AgentPoolsOperations` - * 2020-12-01: :class:`AgentPoolsOperations` - * 2021-02-01: :class:`AgentPoolsOperations` - * 2021-03-01: :class:`AgentPoolsOperations` - * 2021-05-01: :class:`AgentPoolsOperations` - * 2021-07-01: :class:`AgentPoolsOperations` - * 2021-08-01: :class:`AgentPoolsOperations` - * 2021-09-01: :class:`AgentPoolsOperations` - * 2021-10-01: :class:`AgentPoolsOperations` - * 2021-11-01-preview: :class:`AgentPoolsOperations` - * 2022-01-01: :class:`AgentPoolsOperations` - * 2022-01-02-preview: :class:`AgentPoolsOperations` - * 2022-02-01: :class:`AgentPoolsOperations` - * 2022-02-02-preview: :class:`AgentPoolsOperations` - * 2022-03-01: :class:`AgentPoolsOperations` - * 2022-03-02-preview: :class:`AgentPoolsOperations` - * 2022-04-01: :class:`AgentPoolsOperations` - * 2022-04-02-preview: :class:`AgentPoolsOperations` - * 2022-05-02-preview: :class:`AgentPoolsOperations` - * 2022-06-01: :class:`AgentPoolsOperations` - * 2022-06-02-preview: :class:`AgentPoolsOperations` - * 2022-07-01: :class:`AgentPoolsOperations` - * 2022-07-02-preview: :class:`AgentPoolsOperations` - * 2022-08-02-preview: :class:`AgentPoolsOperations` - * 2022-08-03-preview: :class:`AgentPoolsOperations` - * 2022-09-01: :class:`AgentPoolsOperations` - * 2022-09-02-preview: :class:`AgentPoolsOperations` - * 2022-10-02-preview: :class:`AgentPoolsOperations` - * 2022-11-01: :class:`AgentPoolsOperations` - * 2022-11-02-preview: :class:`AgentPoolsOperations` - * 2023-01-01: :class:`AgentPoolsOperations` - * 2023-01-02-preview: :class:`AgentPoolsOperations` - * 2023-02-01: :class:`AgentPoolsOperations` - * 2023-02-02-preview: :class:`AgentPoolsOperations` - * 2023-03-01: :class:`AgentPoolsOperations` - * 2023-03-02-preview: :class:`AgentPoolsOperations` - * 2023-04-01: :class:`AgentPoolsOperations` - * 2023-04-02-preview: :class:`AgentPoolsOperations` - * 2023-05-01: :class:`AgentPoolsOperations` - * 2023-05-02-preview: :class:`AgentPoolsOperations` - * 2023-06-01: :class:`AgentPoolsOperations` - * 2023-06-02-preview: :class:`AgentPoolsOperations` - * 2023-07-01: :class:`AgentPoolsOperations` - * 2023-07-02-preview: :class:`AgentPoolsOperations` - * 2023-08-01: :class:`AgentPoolsOperations` - * 2023-08-02-preview: :class:`AgentPoolsOperations` - * 2023-09-01: :class:`AgentPoolsOperations` - * 2023-09-02-preview: :class:`AgentPoolsOperations` - * 2023-10-01: :class:`AgentPoolsOperations` - * 2023-10-02-preview: :class:`AgentPoolsOperations` - * 2023-11-01: :class:`AgentPoolsOperations` - * 2023-11-02-preview: :class:`AgentPoolsOperations` - * 2024-01-01: :class:`AgentPoolsOperations` - * 2024-01-02-preview: :class:`AgentPoolsOperations` - * 2024-02-01: :class:`AgentPoolsOperations` - * 2024-02-02-preview: :class:`AgentPoolsOperations` - * 2024-03-02-preview: :class:`AgentPoolsOperations` - * 2024-04-02-preview: :class:`AgentPoolsOperations` - * 2024-05-01: :class:`AgentPoolsOperations` - * 2024-05-02-preview: :class:`AgentPoolsOperations` - * 2024-06-02-preview: :class:`AgentPoolsOperations` - * 2024-07-01: :class:`AgentPoolsOperations` - * 2024-07-02-preview: :class:`AgentPoolsOperations` - * 2024-08-01: :class:`AgentPoolsOperations` + * 2019-02-01: :class:`AgentPoolsOperations` + * 2019-04-01: :class:`AgentPoolsOperations` + * 2019-06-01: :class:`AgentPoolsOperations` + * 2019-08-01: :class:`AgentPoolsOperations` + * 2019-10-01: :class:`AgentPoolsOperations` + * 2019-11-01: :class:`AgentPoolsOperations` + * 2020-01-01: :class:`AgentPoolsOperations` + * 2020-02-01: :class:`AgentPoolsOperations` + * 2020-03-01: :class:`AgentPoolsOperations` + * 2020-04-01: :class:`AgentPoolsOperations` + * 2020-06-01: :class:`AgentPoolsOperations` + * 2020-07-01: :class:`AgentPoolsOperations` + * 2020-09-01: :class:`AgentPoolsOperations` + * 2020-11-01: :class:`AgentPoolsOperations` + * 2020-12-01: :class:`AgentPoolsOperations` + * 2021-02-01: :class:`AgentPoolsOperations` + * 2021-03-01: :class:`AgentPoolsOperations` + * 2021-05-01: :class:`AgentPoolsOperations` + * 2021-07-01: :class:`AgentPoolsOperations` + * 2021-08-01: :class:`AgentPoolsOperations` + * 2021-09-01: :class:`AgentPoolsOperations` + * 2021-10-01: :class:`AgentPoolsOperations` + * 2021-11-01-preview: :class:`AgentPoolsOperations` + * 2022-01-01: :class:`AgentPoolsOperations` + * 2022-01-02-preview: :class:`AgentPoolsOperations` + * 2022-02-01: :class:`AgentPoolsOperations` + * 2022-02-02-preview: :class:`AgentPoolsOperations` + * 2022-03-01: :class:`AgentPoolsOperations` + * 2022-03-02-preview: :class:`AgentPoolsOperations` + * 2022-04-01: :class:`AgentPoolsOperations` + * 2022-04-02-preview: :class:`AgentPoolsOperations` + * 2022-05-02-preview: :class:`AgentPoolsOperations` + * 2022-06-01: :class:`AgentPoolsOperations` + * 2022-06-02-preview: :class:`AgentPoolsOperations` + * 2022-07-01: :class:`AgentPoolsOperations` + * 2022-07-02-preview: :class:`AgentPoolsOperations` + * 2022-08-02-preview: :class:`AgentPoolsOperations` + * 2022-08-03-preview: :class:`AgentPoolsOperations` + * 2022-09-01: :class:`AgentPoolsOperations` + * 2022-09-02-preview: :class:`AgentPoolsOperations` + * 2022-10-02-preview: :class:`AgentPoolsOperations` + * 2022-11-01: :class:`AgentPoolsOperations` + * 2022-11-02-preview: :class:`AgentPoolsOperations` + * 2023-01-01: :class:`AgentPoolsOperations` + * 2023-01-02-preview: :class:`AgentPoolsOperations` + * 2023-02-01: :class:`AgentPoolsOperations` + * 2023-02-02-preview: :class:`AgentPoolsOperations` + * 2023-03-01: :class:`AgentPoolsOperations` + * 2023-03-02-preview: :class:`AgentPoolsOperations` + * 2023-04-01: :class:`AgentPoolsOperations` + * 2023-04-02-preview: :class:`AgentPoolsOperations` + * 2023-05-01: :class:`AgentPoolsOperations` + * 2023-05-02-preview: :class:`AgentPoolsOperations` + * 2023-06-01: :class:`AgentPoolsOperations` + * 2023-06-02-preview: :class:`AgentPoolsOperations` + * 2023-07-01: :class:`AgentPoolsOperations` + * 2023-07-02-preview: :class:`AgentPoolsOperations` + * 2023-08-01: :class:`AgentPoolsOperations` + * 2023-08-02-preview: :class:`AgentPoolsOperations` + * 2023-09-01: :class:`AgentPoolsOperations` + * 2023-09-02-preview: :class:`AgentPoolsOperations` + * 2023-10-01: :class:`AgentPoolsOperations` + * 2023-10-02-preview: :class:`AgentPoolsOperations` + * 2023-11-01: :class:`AgentPoolsOperations` + * 2023-11-02-preview: :class:`AgentPoolsOperations` + * 2024-01-01: :class:`AgentPoolsOperations` + * 2024-01-02-preview: :class:`AgentPoolsOperations` + * 2024-02-01: :class:`AgentPoolsOperations` + * 2024-02-02-preview: :class:`AgentPoolsOperations` + * 2024-03-02-preview: :class:`AgentPoolsOperations` + * 2024-04-02-preview: :class:`AgentPoolsOperations` + * 2024-05-01: :class:`AgentPoolsOperations` + * 2024-05-02-preview: :class:`AgentPoolsOperations` + * 2024-06-02-preview: :class:`AgentPoolsOperations` + * 2024-07-01: :class:`AgentPoolsOperations` + * 2024-07-02-preview: :class:`AgentPoolsOperations` + * 2024-08-01: :class:`AgentPoolsOperations` """ - api_version = self._get_api_version("agent_pools") - if api_version == "2019-02-01": + api_version = self._get_api_version('agent_pools') + if api_version == '2019-02-01': from .v2019_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from .v2019_04_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from .v2019_06_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from .v2019_08_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from .v2019_10_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from .v2019_11_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from .v2020_01_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from .v2020_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from .v2020_03_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from .v2020_04_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from .v2020_06_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from .v2020_07_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from .v2020_09_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import AgentPoolsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'agent_pools'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def container_services(self): """Instance depends on the API version: - * 2017-07-01: :class:`ContainerServicesOperations` - * 2019-04-01: :class:`ContainerServicesOperations` + * 2017-07-01: :class:`ContainerServicesOperations` + * 2019-04-01: :class:`ContainerServicesOperations` """ - api_version = self._get_api_version("container_services") - if api_version == "2017-07-01": + api_version = self._get_api_version('container_services') + if api_version == '2017-07-01': from .v2017_07_01.operations import ContainerServicesOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from .v2019_04_01.operations import ContainerServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'container_services'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def fleet_members(self): """Instance depends on the API version: - * 2022-06-02-preview: :class:`FleetMembersOperations` - * 2022-07-02-preview: :class:`FleetMembersOperations` - * 2022-09-02-preview: :class:`FleetMembersOperations` + * 2022-06-02-preview: :class:`FleetMembersOperations` + * 2022-07-02-preview: :class:`FleetMembersOperations` + * 2022-09-02-preview: :class:`FleetMembersOperations` """ - api_version = self._get_api_version("fleet_members") - if api_version == "2022-06-02-preview": + api_version = self._get_api_version('fleet_members') + if api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import FleetMembersOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import FleetMembersOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import FleetMembersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'fleet_members'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def fleets(self): """Instance depends on the API version: - * 2022-06-02-preview: :class:`FleetsOperations` - * 2022-07-02-preview: :class:`FleetsOperations` - * 2022-09-02-preview: :class:`FleetsOperations` + * 2022-06-02-preview: :class:`FleetsOperations` + * 2022-07-02-preview: :class:`FleetsOperations` + * 2022-09-02-preview: :class:`FleetsOperations` """ - api_version = self._get_api_version("fleets") - if api_version == "2022-06-02-preview": + api_version = self._get_api_version('fleets') + if api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import FleetsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import FleetsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import FleetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'fleets'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def load_balancers(self): """Instance depends on the API version: - * 2024-03-02-preview: :class:`LoadBalancersOperations` - * 2024-04-02-preview: :class:`LoadBalancersOperations` - * 2024-05-02-preview: :class:`LoadBalancersOperations` - * 2024-06-02-preview: :class:`LoadBalancersOperations` - * 2024-07-02-preview: :class:`LoadBalancersOperations` + * 2024-03-02-preview: :class:`LoadBalancersOperations` + * 2024-04-02-preview: :class:`LoadBalancersOperations` + * 2024-05-02-preview: :class:`LoadBalancersOperations` + * 2024-06-02-preview: :class:`LoadBalancersOperations` + * 2024-07-02-preview: :class:`LoadBalancersOperations` """ - api_version = self._get_api_version("load_balancers") - if api_version == "2024-03-02-preview": + api_version = self._get_api_version('load_balancers') + if api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import LoadBalancersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'load_balancers'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def machines(self): """Instance depends on the API version: - * 2023-07-02-preview: :class:`MachinesOperations` - * 2023-08-02-preview: :class:`MachinesOperations` - * 2023-09-02-preview: :class:`MachinesOperations` - * 2023-10-02-preview: :class:`MachinesOperations` - * 2023-11-02-preview: :class:`MachinesOperations` - * 2024-01-02-preview: :class:`MachinesOperations` - * 2024-02-02-preview: :class:`MachinesOperations` - * 2024-03-02-preview: :class:`MachinesOperations` - * 2024-04-02-preview: :class:`MachinesOperations` - * 2024-05-02-preview: :class:`MachinesOperations` - * 2024-06-02-preview: :class:`MachinesOperations` - * 2024-07-01: :class:`MachinesOperations` - * 2024-07-02-preview: :class:`MachinesOperations` - * 2024-08-01: :class:`MachinesOperations` + * 2023-07-02-preview: :class:`MachinesOperations` + * 2023-08-02-preview: :class:`MachinesOperations` + * 2023-09-02-preview: :class:`MachinesOperations` + * 2023-10-02-preview: :class:`MachinesOperations` + * 2023-11-02-preview: :class:`MachinesOperations` + * 2024-01-02-preview: :class:`MachinesOperations` + * 2024-02-02-preview: :class:`MachinesOperations` + * 2024-03-02-preview: :class:`MachinesOperations` + * 2024-04-02-preview: :class:`MachinesOperations` + * 2024-05-02-preview: :class:`MachinesOperations` + * 2024-06-02-preview: :class:`MachinesOperations` + * 2024-07-01: :class:`MachinesOperations` + * 2024-07-02-preview: :class:`MachinesOperations` + * 2024-08-01: :class:`MachinesOperations` """ - api_version = self._get_api_version("machines") - if api_version == "2023-07-02-preview": + api_version = self._get_api_version('machines') + if api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import MachinesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import MachinesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import MachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'machines'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def maintenance_configurations(self): """Instance depends on the API version: - * 2020-12-01: :class:`MaintenanceConfigurationsOperations` - * 2021-02-01: :class:`MaintenanceConfigurationsOperations` - * 2021-03-01: :class:`MaintenanceConfigurationsOperations` - * 2021-05-01: :class:`MaintenanceConfigurationsOperations` - * 2021-07-01: :class:`MaintenanceConfigurationsOperations` - * 2021-08-01: :class:`MaintenanceConfigurationsOperations` - * 2021-09-01: :class:`MaintenanceConfigurationsOperations` - * 2021-10-01: :class:`MaintenanceConfigurationsOperations` - * 2021-11-01-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-01-01: :class:`MaintenanceConfigurationsOperations` - * 2022-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-02-01: :class:`MaintenanceConfigurationsOperations` - * 2022-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-03-01: :class:`MaintenanceConfigurationsOperations` - * 2022-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-04-01: :class:`MaintenanceConfigurationsOperations` - * 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-06-01: :class:`MaintenanceConfigurationsOperations` - * 2022-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-07-01: :class:`MaintenanceConfigurationsOperations` - * 2022-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-08-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-08-03-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-09-01: :class:`MaintenanceConfigurationsOperations` - * 2022-09-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-10-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-11-01: :class:`MaintenanceConfigurationsOperations` - * 2022-11-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-01-01: :class:`MaintenanceConfigurationsOperations` - * 2023-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-02-01: :class:`MaintenanceConfigurationsOperations` - * 2023-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-03-01: :class:`MaintenanceConfigurationsOperations` - * 2023-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-04-01: :class:`MaintenanceConfigurationsOperations` - * 2023-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-05-01: :class:`MaintenanceConfigurationsOperations` - * 2023-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-06-01: :class:`MaintenanceConfigurationsOperations` - * 2023-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-07-01: :class:`MaintenanceConfigurationsOperations` - * 2023-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-08-01: :class:`MaintenanceConfigurationsOperations` - * 2023-08-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-09-01: :class:`MaintenanceConfigurationsOperations` - * 2023-09-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-10-01: :class:`MaintenanceConfigurationsOperations` - * 2023-10-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-11-01: :class:`MaintenanceConfigurationsOperations` - * 2023-11-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-01-01: :class:`MaintenanceConfigurationsOperations` - * 2024-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-02-01: :class:`MaintenanceConfigurationsOperations` - * 2024-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-05-01: :class:`MaintenanceConfigurationsOperations` - * 2024-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-07-01: :class:`MaintenanceConfigurationsOperations` - * 2024-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-08-01: :class:`MaintenanceConfigurationsOperations` + * 2020-12-01: :class:`MaintenanceConfigurationsOperations` + * 2021-02-01: :class:`MaintenanceConfigurationsOperations` + * 2021-03-01: :class:`MaintenanceConfigurationsOperations` + * 2021-05-01: :class:`MaintenanceConfigurationsOperations` + * 2021-07-01: :class:`MaintenanceConfigurationsOperations` + * 2021-08-01: :class:`MaintenanceConfigurationsOperations` + * 2021-09-01: :class:`MaintenanceConfigurationsOperations` + * 2021-10-01: :class:`MaintenanceConfigurationsOperations` + * 2021-11-01-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-01-01: :class:`MaintenanceConfigurationsOperations` + * 2022-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-02-01: :class:`MaintenanceConfigurationsOperations` + * 2022-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-03-01: :class:`MaintenanceConfigurationsOperations` + * 2022-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-04-01: :class:`MaintenanceConfigurationsOperations` + * 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-06-01: :class:`MaintenanceConfigurationsOperations` + * 2022-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-07-01: :class:`MaintenanceConfigurationsOperations` + * 2022-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-08-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-08-03-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-09-01: :class:`MaintenanceConfigurationsOperations` + * 2022-09-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-10-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-11-01: :class:`MaintenanceConfigurationsOperations` + * 2022-11-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-01-01: :class:`MaintenanceConfigurationsOperations` + * 2023-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-02-01: :class:`MaintenanceConfigurationsOperations` + * 2023-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-03-01: :class:`MaintenanceConfigurationsOperations` + * 2023-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-04-01: :class:`MaintenanceConfigurationsOperations` + * 2023-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-05-01: :class:`MaintenanceConfigurationsOperations` + * 2023-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-06-01: :class:`MaintenanceConfigurationsOperations` + * 2023-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-07-01: :class:`MaintenanceConfigurationsOperations` + * 2023-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-08-01: :class:`MaintenanceConfigurationsOperations` + * 2023-08-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-09-01: :class:`MaintenanceConfigurationsOperations` + * 2023-09-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-10-01: :class:`MaintenanceConfigurationsOperations` + * 2023-10-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-11-01: :class:`MaintenanceConfigurationsOperations` + * 2023-11-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-01-01: :class:`MaintenanceConfigurationsOperations` + * 2024-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-02-01: :class:`MaintenanceConfigurationsOperations` + * 2024-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-05-01: :class:`MaintenanceConfigurationsOperations` + * 2024-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-07-01: :class:`MaintenanceConfigurationsOperations` + * 2024-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-08-01: :class:`MaintenanceConfigurationsOperations` """ - api_version = self._get_api_version("maintenance_configurations") - if api_version == "2020-12-01": + api_version = self._get_api_version('maintenance_configurations') + if api_version == '2020-12-01': from .v2020_12_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import MaintenanceConfigurationsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'maintenance_configurations'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'maintenance_configurations'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def managed_cluster_snapshots(self): """Instance depends on the API version: - * 2022-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-07-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-08-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-08-03-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-09-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-10-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-11-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-01-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-07-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-08-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-09-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-10-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-11-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-01-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-08-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-08-03-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-09-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-10-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-11-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-01-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-08-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-09-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-10-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-11-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-01-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-07-02-preview: :class:`ManagedClusterSnapshotsOperations` """ - api_version = self._get_api_version("managed_cluster_snapshots") - if api_version == "2022-02-02-preview": + 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": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import ManagedClusterSnapshotsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'managed_cluster_snapshots'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'managed_cluster_snapshots'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def managed_clusters(self): """Instance depends on the API version: - * 2018-03-31: :class:`ManagedClustersOperations` - * 2018-08-01-preview: :class:`ManagedClustersOperations` - * 2019-02-01: :class:`ManagedClustersOperations` - * 2019-04-01: :class:`ManagedClustersOperations` - * 2019-06-01: :class:`ManagedClustersOperations` - * 2019-08-01: :class:`ManagedClustersOperations` - * 2019-10-01: :class:`ManagedClustersOperations` - * 2019-11-01: :class:`ManagedClustersOperations` - * 2020-01-01: :class:`ManagedClustersOperations` - * 2020-02-01: :class:`ManagedClustersOperations` - * 2020-03-01: :class:`ManagedClustersOperations` - * 2020-04-01: :class:`ManagedClustersOperations` - * 2020-06-01: :class:`ManagedClustersOperations` - * 2020-07-01: :class:`ManagedClustersOperations` - * 2020-09-01: :class:`ManagedClustersOperations` - * 2020-11-01: :class:`ManagedClustersOperations` - * 2020-12-01: :class:`ManagedClustersOperations` - * 2021-02-01: :class:`ManagedClustersOperations` - * 2021-03-01: :class:`ManagedClustersOperations` - * 2021-05-01: :class:`ManagedClustersOperations` - * 2021-07-01: :class:`ManagedClustersOperations` - * 2021-08-01: :class:`ManagedClustersOperations` - * 2021-09-01: :class:`ManagedClustersOperations` - * 2021-10-01: :class:`ManagedClustersOperations` - * 2021-11-01-preview: :class:`ManagedClustersOperations` - * 2022-01-01: :class:`ManagedClustersOperations` - * 2022-01-02-preview: :class:`ManagedClustersOperations` - * 2022-02-01: :class:`ManagedClustersOperations` - * 2022-02-02-preview: :class:`ManagedClustersOperations` - * 2022-03-01: :class:`ManagedClustersOperations` - * 2022-03-02-preview: :class:`ManagedClustersOperations` - * 2022-04-01: :class:`ManagedClustersOperations` - * 2022-04-02-preview: :class:`ManagedClustersOperations` - * 2022-05-02-preview: :class:`ManagedClustersOperations` - * 2022-06-01: :class:`ManagedClustersOperations` - * 2022-06-02-preview: :class:`ManagedClustersOperations` - * 2022-07-01: :class:`ManagedClustersOperations` - * 2022-07-02-preview: :class:`ManagedClustersOperations` - * 2022-08-02-preview: :class:`ManagedClustersOperations` - * 2022-08-03-preview: :class:`ManagedClustersOperations` - * 2022-09-01: :class:`ManagedClustersOperations` - * 2022-09-02-preview: :class:`ManagedClustersOperations` - * 2022-10-02-preview: :class:`ManagedClustersOperations` - * 2022-11-01: :class:`ManagedClustersOperations` - * 2022-11-02-preview: :class:`ManagedClustersOperations` - * 2023-01-01: :class:`ManagedClustersOperations` - * 2023-01-02-preview: :class:`ManagedClustersOperations` - * 2023-02-01: :class:`ManagedClustersOperations` - * 2023-02-02-preview: :class:`ManagedClustersOperations` - * 2023-03-01: :class:`ManagedClustersOperations` - * 2023-03-02-preview: :class:`ManagedClustersOperations` - * 2023-04-01: :class:`ManagedClustersOperations` - * 2023-04-02-preview: :class:`ManagedClustersOperations` - * 2023-05-01: :class:`ManagedClustersOperations` - * 2023-05-02-preview: :class:`ManagedClustersOperations` - * 2023-06-01: :class:`ManagedClustersOperations` - * 2023-06-02-preview: :class:`ManagedClustersOperations` - * 2023-07-01: :class:`ManagedClustersOperations` - * 2023-07-02-preview: :class:`ManagedClustersOperations` - * 2023-08-01: :class:`ManagedClustersOperations` - * 2023-08-02-preview: :class:`ManagedClustersOperations` - * 2023-09-01: :class:`ManagedClustersOperations` - * 2023-09-02-preview: :class:`ManagedClustersOperations` - * 2023-10-01: :class:`ManagedClustersOperations` - * 2023-10-02-preview: :class:`ManagedClustersOperations` - * 2023-11-01: :class:`ManagedClustersOperations` - * 2023-11-02-preview: :class:`ManagedClustersOperations` - * 2024-01-01: :class:`ManagedClustersOperations` - * 2024-01-02-preview: :class:`ManagedClustersOperations` - * 2024-02-01: :class:`ManagedClustersOperations` - * 2024-02-02-preview: :class:`ManagedClustersOperations` - * 2024-03-02-preview: :class:`ManagedClustersOperations` - * 2024-04-02-preview: :class:`ManagedClustersOperations` - * 2024-05-01: :class:`ManagedClustersOperations` - * 2024-05-02-preview: :class:`ManagedClustersOperations` - * 2024-06-02-preview: :class:`ManagedClustersOperations` - * 2024-07-01: :class:`ManagedClustersOperations` - * 2024-07-02-preview: :class:`ManagedClustersOperations` - * 2024-08-01: :class:`ManagedClustersOperations` + * 2018-03-31: :class:`ManagedClustersOperations` + * 2018-08-01-preview: :class:`ManagedClustersOperations` + * 2019-02-01: :class:`ManagedClustersOperations` + * 2019-04-01: :class:`ManagedClustersOperations` + * 2019-06-01: :class:`ManagedClustersOperations` + * 2019-08-01: :class:`ManagedClustersOperations` + * 2019-10-01: :class:`ManagedClustersOperations` + * 2019-11-01: :class:`ManagedClustersOperations` + * 2020-01-01: :class:`ManagedClustersOperations` + * 2020-02-01: :class:`ManagedClustersOperations` + * 2020-03-01: :class:`ManagedClustersOperations` + * 2020-04-01: :class:`ManagedClustersOperations` + * 2020-06-01: :class:`ManagedClustersOperations` + * 2020-07-01: :class:`ManagedClustersOperations` + * 2020-09-01: :class:`ManagedClustersOperations` + * 2020-11-01: :class:`ManagedClustersOperations` + * 2020-12-01: :class:`ManagedClustersOperations` + * 2021-02-01: :class:`ManagedClustersOperations` + * 2021-03-01: :class:`ManagedClustersOperations` + * 2021-05-01: :class:`ManagedClustersOperations` + * 2021-07-01: :class:`ManagedClustersOperations` + * 2021-08-01: :class:`ManagedClustersOperations` + * 2021-09-01: :class:`ManagedClustersOperations` + * 2021-10-01: :class:`ManagedClustersOperations` + * 2021-11-01-preview: :class:`ManagedClustersOperations` + * 2022-01-01: :class:`ManagedClustersOperations` + * 2022-01-02-preview: :class:`ManagedClustersOperations` + * 2022-02-01: :class:`ManagedClustersOperations` + * 2022-02-02-preview: :class:`ManagedClustersOperations` + * 2022-03-01: :class:`ManagedClustersOperations` + * 2022-03-02-preview: :class:`ManagedClustersOperations` + * 2022-04-01: :class:`ManagedClustersOperations` + * 2022-04-02-preview: :class:`ManagedClustersOperations` + * 2022-05-02-preview: :class:`ManagedClustersOperations` + * 2022-06-01: :class:`ManagedClustersOperations` + * 2022-06-02-preview: :class:`ManagedClustersOperations` + * 2022-07-01: :class:`ManagedClustersOperations` + * 2022-07-02-preview: :class:`ManagedClustersOperations` + * 2022-08-02-preview: :class:`ManagedClustersOperations` + * 2022-08-03-preview: :class:`ManagedClustersOperations` + * 2022-09-01: :class:`ManagedClustersOperations` + * 2022-09-02-preview: :class:`ManagedClustersOperations` + * 2022-10-02-preview: :class:`ManagedClustersOperations` + * 2022-11-01: :class:`ManagedClustersOperations` + * 2022-11-02-preview: :class:`ManagedClustersOperations` + * 2023-01-01: :class:`ManagedClustersOperations` + * 2023-01-02-preview: :class:`ManagedClustersOperations` + * 2023-02-01: :class:`ManagedClustersOperations` + * 2023-02-02-preview: :class:`ManagedClustersOperations` + * 2023-03-01: :class:`ManagedClustersOperations` + * 2023-03-02-preview: :class:`ManagedClustersOperations` + * 2023-04-01: :class:`ManagedClustersOperations` + * 2023-04-02-preview: :class:`ManagedClustersOperations` + * 2023-05-01: :class:`ManagedClustersOperations` + * 2023-05-02-preview: :class:`ManagedClustersOperations` + * 2023-06-01: :class:`ManagedClustersOperations` + * 2023-06-02-preview: :class:`ManagedClustersOperations` + * 2023-07-01: :class:`ManagedClustersOperations` + * 2023-07-02-preview: :class:`ManagedClustersOperations` + * 2023-08-01: :class:`ManagedClustersOperations` + * 2023-08-02-preview: :class:`ManagedClustersOperations` + * 2023-09-01: :class:`ManagedClustersOperations` + * 2023-09-02-preview: :class:`ManagedClustersOperations` + * 2023-10-01: :class:`ManagedClustersOperations` + * 2023-10-02-preview: :class:`ManagedClustersOperations` + * 2023-11-01: :class:`ManagedClustersOperations` + * 2023-11-02-preview: :class:`ManagedClustersOperations` + * 2024-01-01: :class:`ManagedClustersOperations` + * 2024-01-02-preview: :class:`ManagedClustersOperations` + * 2024-02-01: :class:`ManagedClustersOperations` + * 2024-02-02-preview: :class:`ManagedClustersOperations` + * 2024-03-02-preview: :class:`ManagedClustersOperations` + * 2024-04-02-preview: :class:`ManagedClustersOperations` + * 2024-05-01: :class:`ManagedClustersOperations` + * 2024-05-02-preview: :class:`ManagedClustersOperations` + * 2024-06-02-preview: :class:`ManagedClustersOperations` + * 2024-07-01: :class:`ManagedClustersOperations` + * 2024-07-02-preview: :class:`ManagedClustersOperations` + * 2024-08-01: :class:`ManagedClustersOperations` """ - api_version = self._get_api_version("managed_clusters") - if api_version == "2018-03-31": + api_version = self._get_api_version('managed_clusters') + if api_version == '2018-03-31': from .v2018_03_31.operations import ManagedClustersOperations as OperationClass - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from .v2018_08_01_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from .v2019_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from .v2019_04_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from .v2019_06_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from .v2019_08_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from .v2019_10_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from .v2019_11_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from .v2020_01_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from .v2020_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from .v2020_03_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from .v2020_04_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from .v2020_06_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from .v2020_07_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from .v2020_09_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import ManagedClustersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def open_shift_managed_clusters(self): """Instance depends on the API version: - * 2018-09-30-preview: :class:`OpenShiftManagedClustersOperations` - * 2019-04-30: :class:`OpenShiftManagedClustersOperations` - * 2019-09-30-preview: :class:`OpenShiftManagedClustersOperations` - * 2019-10-27-preview: :class:`OpenShiftManagedClustersOperations` + * 2018-09-30-preview: :class:`OpenShiftManagedClustersOperations` + * 2019-04-30: :class:`OpenShiftManagedClustersOperations` + * 2019-09-30-preview: :class:`OpenShiftManagedClustersOperations` + * 2019-10-27-preview: :class:`OpenShiftManagedClustersOperations` """ - api_version = self._get_api_version("open_shift_managed_clusters") - if api_version == "2018-09-30-preview": + api_version = self._get_api_version('open_shift_managed_clusters') + if api_version == '2018-09-30-preview': from .v2018_09_30_preview.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-04-30": + elif api_version == '2019-04-30': from .v2019_04_30.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-09-30-preview": + elif api_version == '2019-09-30-preview': from .v2019_09_30_preview.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-10-27-preview": + elif api_version == '2019-10-27-preview': from .v2019_10_27_preview.operations import OpenShiftManagedClustersOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'open_shift_managed_clusters'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'open_shift_managed_clusters'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operation_status_result(self): """Instance depends on the API version: - * 2023-10-02-preview: :class:`OperationStatusResultOperations` - * 2023-11-02-preview: :class:`OperationStatusResultOperations` - * 2024-01-02-preview: :class:`OperationStatusResultOperations` - * 2024-02-02-preview: :class:`OperationStatusResultOperations` - * 2024-03-02-preview: :class:`OperationStatusResultOperations` - * 2024-04-02-preview: :class:`OperationStatusResultOperations` - * 2024-05-02-preview: :class:`OperationStatusResultOperations` - * 2024-06-02-preview: :class:`OperationStatusResultOperations` - * 2024-07-02-preview: :class:`OperationStatusResultOperations` + * 2023-10-02-preview: :class:`OperationStatusResultOperations` + * 2023-11-02-preview: :class:`OperationStatusResultOperations` + * 2024-01-02-preview: :class:`OperationStatusResultOperations` + * 2024-02-02-preview: :class:`OperationStatusResultOperations` + * 2024-03-02-preview: :class:`OperationStatusResultOperations` + * 2024-04-02-preview: :class:`OperationStatusResultOperations` + * 2024-05-02-preview: :class:`OperationStatusResultOperations` + * 2024-06-02-preview: :class:`OperationStatusResultOperations` + * 2024-07-02-preview: :class:`OperationStatusResultOperations` """ - api_version = self._get_api_version("operation_status_result") - if api_version == "2023-10-02-preview": + api_version = self._get_api_version('operation_status_result') + if api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import OperationStatusResultOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'operation_status_result'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'operation_status_result'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operations(self): """Instance depends on the API version: - * 2018-03-31: :class:`Operations` - * 2018-08-01-preview: :class:`Operations` - * 2019-02-01: :class:`Operations` - * 2019-04-01: :class:`Operations` - * 2019-06-01: :class:`Operations` - * 2019-08-01: :class:`Operations` - * 2019-10-01: :class:`Operations` - * 2019-11-01: :class:`Operations` - * 2020-01-01: :class:`Operations` - * 2020-02-01: :class:`Operations` - * 2020-03-01: :class:`Operations` - * 2020-04-01: :class:`Operations` - * 2020-06-01: :class:`Operations` - * 2020-07-01: :class:`Operations` - * 2020-09-01: :class:`Operations` - * 2020-11-01: :class:`Operations` - * 2020-12-01: :class:`Operations` - * 2021-02-01: :class:`Operations` - * 2021-03-01: :class:`Operations` - * 2021-05-01: :class:`Operations` - * 2021-07-01: :class:`Operations` - * 2021-08-01: :class:`Operations` - * 2021-09-01: :class:`Operations` - * 2021-10-01: :class:`Operations` - * 2021-11-01-preview: :class:`Operations` - * 2022-01-01: :class:`Operations` - * 2022-01-02-preview: :class:`Operations` - * 2022-02-01: :class:`Operations` - * 2022-02-02-preview: :class:`Operations` - * 2022-03-01: :class:`Operations` - * 2022-03-02-preview: :class:`Operations` - * 2022-04-01: :class:`Operations` - * 2022-04-02-preview: :class:`Operations` - * 2022-05-02-preview: :class:`Operations` - * 2022-06-01: :class:`Operations` - * 2022-06-02-preview: :class:`Operations` - * 2022-07-01: :class:`Operations` - * 2022-07-02-preview: :class:`Operations` - * 2022-08-02-preview: :class:`Operations` - * 2022-08-03-preview: :class:`Operations` - * 2022-09-01: :class:`Operations` - * 2022-09-02-preview: :class:`Operations` - * 2022-10-02-preview: :class:`Operations` - * 2022-11-01: :class:`Operations` - * 2022-11-02-preview: :class:`Operations` - * 2023-01-01: :class:`Operations` - * 2023-01-02-preview: :class:`Operations` - * 2023-02-01: :class:`Operations` - * 2023-02-02-preview: :class:`Operations` - * 2023-03-01: :class:`Operations` - * 2023-03-02-preview: :class:`Operations` - * 2023-04-01: :class:`Operations` - * 2023-04-02-preview: :class:`Operations` - * 2023-05-01: :class:`Operations` - * 2023-05-02-preview: :class:`Operations` - * 2023-06-01: :class:`Operations` - * 2023-06-02-preview: :class:`Operations` - * 2023-07-01: :class:`Operations` - * 2023-07-02-preview: :class:`Operations` - * 2023-08-01: :class:`Operations` - * 2023-08-02-preview: :class:`Operations` - * 2023-09-01: :class:`Operations` - * 2023-09-02-preview: :class:`Operations` - * 2023-10-01: :class:`Operations` - * 2023-10-02-preview: :class:`Operations` - * 2023-11-01: :class:`Operations` - * 2023-11-02-preview: :class:`Operations` - * 2024-01-01: :class:`Operations` - * 2024-01-02-preview: :class:`Operations` - * 2024-02-01: :class:`Operations` - * 2024-02-02-preview: :class:`Operations` - * 2024-03-02-preview: :class:`Operations` - * 2024-04-02-preview: :class:`Operations` - * 2024-05-01: :class:`Operations` - * 2024-05-02-preview: :class:`Operations` - * 2024-06-02-preview: :class:`Operations` - * 2024-07-01: :class:`Operations` - * 2024-07-02-preview: :class:`Operations` - * 2024-08-01: :class:`Operations` + * 2018-03-31: :class:`Operations` + * 2018-08-01-preview: :class:`Operations` + * 2019-02-01: :class:`Operations` + * 2019-04-01: :class:`Operations` + * 2019-06-01: :class:`Operations` + * 2019-08-01: :class:`Operations` + * 2019-10-01: :class:`Operations` + * 2019-11-01: :class:`Operations` + * 2020-01-01: :class:`Operations` + * 2020-02-01: :class:`Operations` + * 2020-03-01: :class:`Operations` + * 2020-04-01: :class:`Operations` + * 2020-06-01: :class:`Operations` + * 2020-07-01: :class:`Operations` + * 2020-09-01: :class:`Operations` + * 2020-11-01: :class:`Operations` + * 2020-12-01: :class:`Operations` + * 2021-02-01: :class:`Operations` + * 2021-03-01: :class:`Operations` + * 2021-05-01: :class:`Operations` + * 2021-07-01: :class:`Operations` + * 2021-08-01: :class:`Operations` + * 2021-09-01: :class:`Operations` + * 2021-10-01: :class:`Operations` + * 2021-11-01-preview: :class:`Operations` + * 2022-01-01: :class:`Operations` + * 2022-01-02-preview: :class:`Operations` + * 2022-02-01: :class:`Operations` + * 2022-02-02-preview: :class:`Operations` + * 2022-03-01: :class:`Operations` + * 2022-03-02-preview: :class:`Operations` + * 2022-04-01: :class:`Operations` + * 2022-04-02-preview: :class:`Operations` + * 2022-05-02-preview: :class:`Operations` + * 2022-06-01: :class:`Operations` + * 2022-06-02-preview: :class:`Operations` + * 2022-07-01: :class:`Operations` + * 2022-07-02-preview: :class:`Operations` + * 2022-08-02-preview: :class:`Operations` + * 2022-08-03-preview: :class:`Operations` + * 2022-09-01: :class:`Operations` + * 2022-09-02-preview: :class:`Operations` + * 2022-10-02-preview: :class:`Operations` + * 2022-11-01: :class:`Operations` + * 2022-11-02-preview: :class:`Operations` + * 2023-01-01: :class:`Operations` + * 2023-01-02-preview: :class:`Operations` + * 2023-02-01: :class:`Operations` + * 2023-02-02-preview: :class:`Operations` + * 2023-03-01: :class:`Operations` + * 2023-03-02-preview: :class:`Operations` + * 2023-04-01: :class:`Operations` + * 2023-04-02-preview: :class:`Operations` + * 2023-05-01: :class:`Operations` + * 2023-05-02-preview: :class:`Operations` + * 2023-06-01: :class:`Operations` + * 2023-06-02-preview: :class:`Operations` + * 2023-07-01: :class:`Operations` + * 2023-07-02-preview: :class:`Operations` + * 2023-08-01: :class:`Operations` + * 2023-08-02-preview: :class:`Operations` + * 2023-09-01: :class:`Operations` + * 2023-09-02-preview: :class:`Operations` + * 2023-10-01: :class:`Operations` + * 2023-10-02-preview: :class:`Operations` + * 2023-11-01: :class:`Operations` + * 2023-11-02-preview: :class:`Operations` + * 2024-01-01: :class:`Operations` + * 2024-01-02-preview: :class:`Operations` + * 2024-02-01: :class:`Operations` + * 2024-02-02-preview: :class:`Operations` + * 2024-03-02-preview: :class:`Operations` + * 2024-04-02-preview: :class:`Operations` + * 2024-05-01: :class:`Operations` + * 2024-05-02-preview: :class:`Operations` + * 2024-06-02-preview: :class:`Operations` + * 2024-07-01: :class:`Operations` + * 2024-07-02-preview: :class:`Operations` + * 2024-08-01: :class:`Operations` """ - api_version = self._get_api_version("operations") - if api_version == "2018-03-31": + api_version = self._get_api_version('operations') + if api_version == '2018-03-31': from .v2018_03_31.operations import Operations as OperationClass - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from .v2018_08_01_preview.operations import Operations as OperationClass - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from .v2019_02_01.operations import Operations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from .v2019_04_01.operations import Operations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from .v2019_06_01.operations import Operations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from .v2019_08_01.operations import Operations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from .v2019_10_01.operations import Operations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from .v2019_11_01.operations import Operations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from .v2020_01_01.operations import Operations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from .v2020_02_01.operations import Operations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from .v2020_03_01.operations import Operations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from .v2020_04_01.operations import Operations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from .v2020_06_01.operations import Operations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from .v2020_07_01.operations import Operations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from .v2020_09_01.operations import Operations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import Operations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import Operations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import Operations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import Operations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import Operations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import Operations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import Operations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import Operations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import Operations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import Operations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import Operations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import Operations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import Operations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import Operations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import Operations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import Operations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import Operations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import Operations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import Operations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import Operations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import Operations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import Operations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import Operations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import Operations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import Operations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import Operations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import Operations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import Operations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import Operations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import Operations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import Operations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import Operations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import Operations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import Operations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import Operations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import Operations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import Operations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import Operations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import Operations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import Operations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import Operations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import Operations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import Operations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import Operations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import Operations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import Operations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import Operations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import Operations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import Operations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import Operations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import Operations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import Operations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import Operations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import Operations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import Operations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import Operations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import Operations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import Operations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import Operations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import Operations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import Operations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import Operations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import Operations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def private_endpoint_connections(self): """Instance depends on the API version: - * 2020-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-12-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-08-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-10-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-11-01-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-04-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-08-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-08-03-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-09-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-10-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-11-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-04-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-08-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-08-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-09-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-10-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-10-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-11-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-12-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-10-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-11-01-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-04-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-08-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-08-03-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-09-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-10-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-11-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-04-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-08-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-09-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-10-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-10-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-11-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-08-01: :class:`PrivateEndpointConnectionsOperations` """ - api_version = self._get_api_version("private_endpoint_connections") - if api_version == "2020-06-01": + api_version = self._get_api_version('private_endpoint_connections') + if api_version == '2020-06-01': from .v2020_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from .v2020_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from .v2020_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import PrivateEndpointConnectionsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'private_endpoint_connections'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def private_link_resources(self): """Instance depends on the API version: - * 2020-09-01: :class:`PrivateLinkResourcesOperations` - * 2020-11-01: :class:`PrivateLinkResourcesOperations` - * 2020-12-01: :class:`PrivateLinkResourcesOperations` - * 2021-02-01: :class:`PrivateLinkResourcesOperations` - * 2021-03-01: :class:`PrivateLinkResourcesOperations` - * 2021-05-01: :class:`PrivateLinkResourcesOperations` - * 2021-07-01: :class:`PrivateLinkResourcesOperations` - * 2021-08-01: :class:`PrivateLinkResourcesOperations` - * 2021-09-01: :class:`PrivateLinkResourcesOperations` - * 2021-10-01: :class:`PrivateLinkResourcesOperations` - * 2021-11-01-preview: :class:`PrivateLinkResourcesOperations` - * 2022-01-01: :class:`PrivateLinkResourcesOperations` - * 2022-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-02-01: :class:`PrivateLinkResourcesOperations` - * 2022-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-03-01: :class:`PrivateLinkResourcesOperations` - * 2022-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-04-01: :class:`PrivateLinkResourcesOperations` - * 2022-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-06-01: :class:`PrivateLinkResourcesOperations` - * 2022-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-07-01: :class:`PrivateLinkResourcesOperations` - * 2022-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-08-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-08-03-preview: :class:`PrivateLinkResourcesOperations` - * 2022-09-01: :class:`PrivateLinkResourcesOperations` - * 2022-09-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-10-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-11-01: :class:`PrivateLinkResourcesOperations` - * 2022-11-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-01-01: :class:`PrivateLinkResourcesOperations` - * 2023-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-02-01: :class:`PrivateLinkResourcesOperations` - * 2023-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-03-01: :class:`PrivateLinkResourcesOperations` - * 2023-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-04-01: :class:`PrivateLinkResourcesOperations` - * 2023-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-05-01: :class:`PrivateLinkResourcesOperations` - * 2023-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-06-01: :class:`PrivateLinkResourcesOperations` - * 2023-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-07-01: :class:`PrivateLinkResourcesOperations` - * 2023-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-08-01: :class:`PrivateLinkResourcesOperations` - * 2023-08-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-09-01: :class:`PrivateLinkResourcesOperations` - * 2023-09-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-10-01: :class:`PrivateLinkResourcesOperations` - * 2023-10-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-11-01: :class:`PrivateLinkResourcesOperations` - * 2023-11-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-01-01: :class:`PrivateLinkResourcesOperations` - * 2024-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-02-01: :class:`PrivateLinkResourcesOperations` - * 2024-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-05-01: :class:`PrivateLinkResourcesOperations` - * 2024-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-07-01: :class:`PrivateLinkResourcesOperations` - * 2024-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-08-01: :class:`PrivateLinkResourcesOperations` + * 2020-09-01: :class:`PrivateLinkResourcesOperations` + * 2020-11-01: :class:`PrivateLinkResourcesOperations` + * 2020-12-01: :class:`PrivateLinkResourcesOperations` + * 2021-02-01: :class:`PrivateLinkResourcesOperations` + * 2021-03-01: :class:`PrivateLinkResourcesOperations` + * 2021-05-01: :class:`PrivateLinkResourcesOperations` + * 2021-07-01: :class:`PrivateLinkResourcesOperations` + * 2021-08-01: :class:`PrivateLinkResourcesOperations` + * 2021-09-01: :class:`PrivateLinkResourcesOperations` + * 2021-10-01: :class:`PrivateLinkResourcesOperations` + * 2021-11-01-preview: :class:`PrivateLinkResourcesOperations` + * 2022-01-01: :class:`PrivateLinkResourcesOperations` + * 2022-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-02-01: :class:`PrivateLinkResourcesOperations` + * 2022-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-03-01: :class:`PrivateLinkResourcesOperations` + * 2022-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-04-01: :class:`PrivateLinkResourcesOperations` + * 2022-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-06-01: :class:`PrivateLinkResourcesOperations` + * 2022-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-07-01: :class:`PrivateLinkResourcesOperations` + * 2022-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-08-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-08-03-preview: :class:`PrivateLinkResourcesOperations` + * 2022-09-01: :class:`PrivateLinkResourcesOperations` + * 2022-09-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-10-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-11-01: :class:`PrivateLinkResourcesOperations` + * 2022-11-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-01-01: :class:`PrivateLinkResourcesOperations` + * 2023-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-02-01: :class:`PrivateLinkResourcesOperations` + * 2023-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-03-01: :class:`PrivateLinkResourcesOperations` + * 2023-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-04-01: :class:`PrivateLinkResourcesOperations` + * 2023-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-05-01: :class:`PrivateLinkResourcesOperations` + * 2023-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-06-01: :class:`PrivateLinkResourcesOperations` + * 2023-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-07-01: :class:`PrivateLinkResourcesOperations` + * 2023-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-08-01: :class:`PrivateLinkResourcesOperations` + * 2023-08-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-09-01: :class:`PrivateLinkResourcesOperations` + * 2023-09-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-10-01: :class:`PrivateLinkResourcesOperations` + * 2023-10-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-11-01: :class:`PrivateLinkResourcesOperations` + * 2023-11-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-01-01: :class:`PrivateLinkResourcesOperations` + * 2024-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-02-01: :class:`PrivateLinkResourcesOperations` + * 2024-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-05-01: :class:`PrivateLinkResourcesOperations` + * 2024-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-07-01: :class:`PrivateLinkResourcesOperations` + * 2024-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-08-01: :class:`PrivateLinkResourcesOperations` """ - api_version = self._get_api_version("private_link_resources") - if api_version == "2020-09-01": + api_version = self._get_api_version('private_link_resources') + if api_version == '2020-09-01': from .v2020_09_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import PrivateLinkResourcesOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'private_link_resources'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def resolve_private_link_service_id(self): """Instance depends on the API version: - * 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2020-12-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-08-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-10-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-11-01-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-04-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-06-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-08-03-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-04-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-06-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-08-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-10-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-12-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-10-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-11-01-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-04-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-06-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-08-03-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-04-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-06-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-10-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-08-01: :class:`ResolvePrivateLinkServiceIdOperations` """ - api_version = self._get_api_version("resolve_private_link_service_id") - if api_version == "2020-09-01": + api_version = self._get_api_version('resolve_private_link_service_id') + if api_version == '2020-09-01': from .v2020_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from .v2020_11_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from .v2020_12_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from .v2021_02_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from .v2021_03_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from .v2021_05_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from .v2021_07_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from .v2021_08_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def snapshots(self): """Instance depends on the API version: - * 2021-08-01: :class:`SnapshotsOperations` - * 2021-09-01: :class:`SnapshotsOperations` - * 2021-10-01: :class:`SnapshotsOperations` - * 2021-11-01-preview: :class:`SnapshotsOperations` - * 2022-01-01: :class:`SnapshotsOperations` - * 2022-01-02-preview: :class:`SnapshotsOperations` - * 2022-02-01: :class:`SnapshotsOperations` - * 2022-02-02-preview: :class:`SnapshotsOperations` - * 2022-03-01: :class:`SnapshotsOperations` - * 2022-03-02-preview: :class:`SnapshotsOperations` - * 2022-04-01: :class:`SnapshotsOperations` - * 2022-04-02-preview: :class:`SnapshotsOperations` - * 2022-05-02-preview: :class:`SnapshotsOperations` - * 2022-06-01: :class:`SnapshotsOperations` - * 2022-06-02-preview: :class:`SnapshotsOperations` - * 2022-07-01: :class:`SnapshotsOperations` - * 2022-07-02-preview: :class:`SnapshotsOperations` - * 2022-08-02-preview: :class:`SnapshotsOperations` - * 2022-08-03-preview: :class:`SnapshotsOperations` - * 2022-09-01: :class:`SnapshotsOperations` - * 2022-09-02-preview: :class:`SnapshotsOperations` - * 2022-10-02-preview: :class:`SnapshotsOperations` - * 2022-11-01: :class:`SnapshotsOperations` - * 2022-11-02-preview: :class:`SnapshotsOperations` - * 2023-01-01: :class:`SnapshotsOperations` - * 2023-01-02-preview: :class:`SnapshotsOperations` - * 2023-02-01: :class:`SnapshotsOperations` - * 2023-02-02-preview: :class:`SnapshotsOperations` - * 2023-03-01: :class:`SnapshotsOperations` - * 2023-03-02-preview: :class:`SnapshotsOperations` - * 2023-04-01: :class:`SnapshotsOperations` - * 2023-04-02-preview: :class:`SnapshotsOperations` - * 2023-05-01: :class:`SnapshotsOperations` - * 2023-05-02-preview: :class:`SnapshotsOperations` - * 2023-06-01: :class:`SnapshotsOperations` - * 2023-06-02-preview: :class:`SnapshotsOperations` - * 2023-07-01: :class:`SnapshotsOperations` - * 2023-07-02-preview: :class:`SnapshotsOperations` - * 2023-08-01: :class:`SnapshotsOperations` - * 2023-08-02-preview: :class:`SnapshotsOperations` - * 2023-09-01: :class:`SnapshotsOperations` - * 2023-09-02-preview: :class:`SnapshotsOperations` - * 2023-10-01: :class:`SnapshotsOperations` - * 2023-10-02-preview: :class:`SnapshotsOperations` - * 2023-11-01: :class:`SnapshotsOperations` - * 2023-11-02-preview: :class:`SnapshotsOperations` - * 2024-01-01: :class:`SnapshotsOperations` - * 2024-01-02-preview: :class:`SnapshotsOperations` - * 2024-02-01: :class:`SnapshotsOperations` - * 2024-02-02-preview: :class:`SnapshotsOperations` - * 2024-03-02-preview: :class:`SnapshotsOperations` - * 2024-04-02-preview: :class:`SnapshotsOperations` - * 2024-05-01: :class:`SnapshotsOperations` - * 2024-05-02-preview: :class:`SnapshotsOperations` - * 2024-06-02-preview: :class:`SnapshotsOperations` - * 2024-07-01: :class:`SnapshotsOperations` - * 2024-07-02-preview: :class:`SnapshotsOperations` - * 2024-08-01: :class:`SnapshotsOperations` + * 2021-08-01: :class:`SnapshotsOperations` + * 2021-09-01: :class:`SnapshotsOperations` + * 2021-10-01: :class:`SnapshotsOperations` + * 2021-11-01-preview: :class:`SnapshotsOperations` + * 2022-01-01: :class:`SnapshotsOperations` + * 2022-01-02-preview: :class:`SnapshotsOperations` + * 2022-02-01: :class:`SnapshotsOperations` + * 2022-02-02-preview: :class:`SnapshotsOperations` + * 2022-03-01: :class:`SnapshotsOperations` + * 2022-03-02-preview: :class:`SnapshotsOperations` + * 2022-04-01: :class:`SnapshotsOperations` + * 2022-04-02-preview: :class:`SnapshotsOperations` + * 2022-05-02-preview: :class:`SnapshotsOperations` + * 2022-06-01: :class:`SnapshotsOperations` + * 2022-06-02-preview: :class:`SnapshotsOperations` + * 2022-07-01: :class:`SnapshotsOperations` + * 2022-07-02-preview: :class:`SnapshotsOperations` + * 2022-08-02-preview: :class:`SnapshotsOperations` + * 2022-08-03-preview: :class:`SnapshotsOperations` + * 2022-09-01: :class:`SnapshotsOperations` + * 2022-09-02-preview: :class:`SnapshotsOperations` + * 2022-10-02-preview: :class:`SnapshotsOperations` + * 2022-11-01: :class:`SnapshotsOperations` + * 2022-11-02-preview: :class:`SnapshotsOperations` + * 2023-01-01: :class:`SnapshotsOperations` + * 2023-01-02-preview: :class:`SnapshotsOperations` + * 2023-02-01: :class:`SnapshotsOperations` + * 2023-02-02-preview: :class:`SnapshotsOperations` + * 2023-03-01: :class:`SnapshotsOperations` + * 2023-03-02-preview: :class:`SnapshotsOperations` + * 2023-04-01: :class:`SnapshotsOperations` + * 2023-04-02-preview: :class:`SnapshotsOperations` + * 2023-05-01: :class:`SnapshotsOperations` + * 2023-05-02-preview: :class:`SnapshotsOperations` + * 2023-06-01: :class:`SnapshotsOperations` + * 2023-06-02-preview: :class:`SnapshotsOperations` + * 2023-07-01: :class:`SnapshotsOperations` + * 2023-07-02-preview: :class:`SnapshotsOperations` + * 2023-08-01: :class:`SnapshotsOperations` + * 2023-08-02-preview: :class:`SnapshotsOperations` + * 2023-09-01: :class:`SnapshotsOperations` + * 2023-09-02-preview: :class:`SnapshotsOperations` + * 2023-10-01: :class:`SnapshotsOperations` + * 2023-10-02-preview: :class:`SnapshotsOperations` + * 2023-11-01: :class:`SnapshotsOperations` + * 2023-11-02-preview: :class:`SnapshotsOperations` + * 2024-01-01: :class:`SnapshotsOperations` + * 2024-01-02-preview: :class:`SnapshotsOperations` + * 2024-02-01: :class:`SnapshotsOperations` + * 2024-02-02-preview: :class:`SnapshotsOperations` + * 2024-03-02-preview: :class:`SnapshotsOperations` + * 2024-04-02-preview: :class:`SnapshotsOperations` + * 2024-05-01: :class:`SnapshotsOperations` + * 2024-05-02-preview: :class:`SnapshotsOperations` + * 2024-06-02-preview: :class:`SnapshotsOperations` + * 2024-07-01: :class:`SnapshotsOperations` + * 2024-07-02-preview: :class:`SnapshotsOperations` + * 2024-08-01: :class:`SnapshotsOperations` """ - api_version = self._get_api_version("snapshots") - if api_version == "2021-08-01": + api_version = self._get_api_version('snapshots') + if api_version == '2021-08-01': from .v2021_08_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from .v2021_09_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from .v2021_10_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from .v2021_11_01_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from .v2022_01_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from .v2022_01_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from .v2022_02_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from .v2022_02_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from .v2022_03_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from .v2022_03_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from .v2022_04_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from .v2022_06_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from .v2022_07_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from .v2022_09_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from .v2022_11_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from .v2023_01_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from .v2023_02_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from .v2023_03_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from .v2023_04_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from .v2023_05_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from .v2023_06_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from .v2023_07_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from .v2023_08_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import SnapshotsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def trusted_access_role_bindings(self): """Instance depends on the API version: - * 2022-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-08-03-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-09-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-10-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-11-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-01-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-02-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-05-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-07-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-08-01: :class:`TrustedAccessRoleBindingsOperations` + * 2022-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-08-03-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-09-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-10-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-11-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-01-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-02-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-05-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-07-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-08-01: :class:`TrustedAccessRoleBindingsOperations` """ - api_version = self._get_api_version("trusted_access_role_bindings") - if api_version == "2022-04-02-preview": + api_version = self._get_api_version('trusted_access_role_bindings') + if api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import TrustedAccessRoleBindingsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'trusted_access_role_bindings'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'trusted_access_role_bindings'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def trusted_access_roles(self): """Instance depends on the API version: - * 2022-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-08-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-08-03-preview: :class:`TrustedAccessRolesOperations` - * 2022-09-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-10-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-11-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-01-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-02-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-03-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-08-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-09-01: :class:`TrustedAccessRolesOperations` - * 2023-09-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-10-01: :class:`TrustedAccessRolesOperations` - * 2023-10-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-11-01: :class:`TrustedAccessRolesOperations` - * 2023-11-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-01-01: :class:`TrustedAccessRolesOperations` - * 2024-01-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-02-01: :class:`TrustedAccessRolesOperations` - * 2024-02-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-03-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-05-01: :class:`TrustedAccessRolesOperations` - * 2024-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-07-01: :class:`TrustedAccessRolesOperations` - * 2024-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-08-01: :class:`TrustedAccessRolesOperations` + * 2022-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-08-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-08-03-preview: :class:`TrustedAccessRolesOperations` + * 2022-09-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-10-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-11-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-01-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-02-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-03-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-08-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-09-01: :class:`TrustedAccessRolesOperations` + * 2023-09-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-10-01: :class:`TrustedAccessRolesOperations` + * 2023-10-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-11-01: :class:`TrustedAccessRolesOperations` + * 2023-11-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-01-01: :class:`TrustedAccessRolesOperations` + * 2024-01-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-02-01: :class:`TrustedAccessRolesOperations` + * 2024-02-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-03-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-05-01: :class:`TrustedAccessRolesOperations` + * 2024-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-07-01: :class:`TrustedAccessRolesOperations` + * 2024-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-08-01: :class:`TrustedAccessRolesOperations` """ - api_version = self._get_api_version("trusted_access_roles") - if api_version == "2022-04-02-preview": + api_version = self._get_api_version('trusted_access_roles') + if api_version == '2022-04-02-preview': from .v2022_04_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from .v2022_05_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from .v2022_06_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from .v2022_07_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from .v2022_08_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from .v2022_08_03_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from .v2022_09_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from .v2022_10_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from .v2022_11_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from .v2023_01_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from .v2023_02_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from .v2023_03_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from .v2023_04_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from .v2023_05_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from .v2023_06_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from .v2023_07_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from .v2023_08_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from .v2023_09_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from .v2023_09_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from .v2023_10_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from .v2023_10_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from .v2023_11_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from .v2023_11_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from .v2024_01_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from .v2024_01_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from .v2024_02_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from .v2024_02_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from .v2024_03_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from .v2024_04_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from .v2024_05_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from .v2024_05_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from .v2024_06_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from .v2024_07_01.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from .v2024_07_02_preview.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from .v2024_08_01.operations import TrustedAccessRolesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'trusted_access_roles'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) def close(self): self._client.close() - def __enter__(self): self._client.__enter__() return self - def __exit__(self, *exc_details): self._client.__exit__(*exc_details) diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_serialization.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_serialization.py index 8139854b97bb..59f1fcf71bc9 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_serialization.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_serialization.py @@ -351,7 +351,9 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: def as_dict( self, keep_readonly: bool = True, - key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + key_transformer: Callable[ + [str, Dict[str, Any], Any], Any + ] = attribute_transformer, **kwargs: Any ) -> JSON: """Return a dict that can be serialized using json.dump. @@ -540,7 +542,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes: Optional[Mapping[str, type]] = None): + def __init__(self, classes: Optional[Mapping[str, type]]=None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -748,7 +750,7 @@ def query(self, name, data, data_type, **kwargs): # Treat the list aside, since we don't want to encode the div separator if data_type.startswith("["): internal_data_type = data_type[1:-1] - do_quote = not kwargs.get("skip_quote", False) + do_quote = not kwargs.get('skip_quote', False) return self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs) # Not a list, regular serialization @@ -907,8 +909,12 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): raise serialized.append(None) - if kwargs.get("do_quote", False): - serialized = ["" if s is None else quote(str(s), safe="") for s in serialized] + if kwargs.get('do_quote', False): + serialized = [ + '' if s is None else quote(str(s), safe='') + for s + in serialized + ] if div: serialized = ["" if s is None else str(s) for s in serialized] @@ -1365,7 +1371,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes: Optional[Mapping[str, type]] = None): + def __init__(self, classes: Optional[Mapping[str, type]]=None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/__init__.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/__init__.py index 85ecd9f6945a..4ad2bb20096a 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/__init__.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/__init__.py @@ -7,5 +7,4 @@ # -------------------------------------------------------------------------- from ._container_service_client import ContainerServiceClient - -__all__ = ["ContainerServiceClient"] +__all__ = ['ContainerServiceClient'] diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_configuration.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_configuration.py index d9ca4ef75b01..5cb904176b59 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_configuration.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_configuration.py @@ -19,7 +19,6 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential - class ContainerServiceClientConfiguration: """Configuration for ContainerServiceClient. @@ -32,7 +31,12 @@ class ContainerServiceClientConfiguration: :type subscription_id: str """ - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -40,22 +44,23 @@ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **k self.credential = credential self.subscription_id = subscription_id - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "azure-mgmt-containerservice/{}".format(VERSION)) + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-mgmt-containerservice/{}'.format(VERSION)) self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) + self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py index 01124443a6c9..98621e3a1944 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py +++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/aio/_container_service_client.py @@ -25,7 +25,6 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential - class _SDKClient(object): def __init__(self, *args, **kwargs): """This is a fake class to support current implemetation of MultiApiClientMixin." @@ -33,7 +32,6 @@ def __init__(self, *args, **kwargs): """ pass - class ContainerServiceClient(MultiApiClientMixin, _SDKClient): """The Container Service Client. @@ -58,22 +56,20 @@ 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 = "2024-08-01" + DEFAULT_API_VERSION = '2024-08-01' _PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient" - LATEST_PROFILE = ProfileDefinition( - { - _PROFILE_TAG: { - None: DEFAULT_API_VERSION, - "container_services": "2019-04-01", - "fleet_members": "2022-09-02-preview", - "fleets": "2022-09-02-preview", - "load_balancers": "2024-07-02-preview", - "managed_cluster_snapshots": "2024-07-02-preview", - "open_shift_managed_clusters": "2019-04-30", - "operation_status_result": "2024-07-02-preview", - } - }, - _PROFILE_TAG + " latest", + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + 'container_services': '2019-04-01', + 'fleet_members': '2022-09-02-preview', + 'fleets': '2022-09-02-preview', + 'load_balancers': '2024-07-02-preview', + 'managed_cluster_snapshots': '2024-07-02-preview', + 'open_shift_managed_clusters': '2019-04-30', + 'operation_status_result': '2024-07-02-preview', + }}, + _PROFILE_TAG + " latest" ) def __init__( @@ -86,7 +82,7 @@ def __init__( **kwargs: Any ) -> None: if api_version: - kwargs.setdefault("api_version", api_version) + kwargs.setdefault('api_version', api_version) self._config = ContainerServiceClientConfiguration(credential, subscription_id, **kwargs) _policies = kwargs.pop("policies", None) if _policies is None: @@ -107,7 +103,10 @@ def __init__( self._config.http_logging_policy, ] self._client = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - super(ContainerServiceClient, self).__init__(api_version=api_version, profile=profile) + super(ContainerServiceClient, self).__init__( + api_version=api_version, + profile=profile + ) @classmethod def _models_dict(cls, api_version): @@ -117,426 +116,342 @@ def _models_dict(cls, api_version): def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: - * 2017-07-01: :mod:`v2017_07_01.models` - * 2018-03-31: :mod:`v2018_03_31.models` - * 2018-08-01-preview: :mod:`v2018_08_01_preview.models` - * 2018-09-30-preview: :mod:`v2018_09_30_preview.models` - * 2019-02-01: :mod:`v2019_02_01.models` - * 2019-04-01: :mod:`v2019_04_01.models` - * 2019-04-30: :mod:`v2019_04_30.models` - * 2019-06-01: :mod:`v2019_06_01.models` - * 2019-08-01: :mod:`v2019_08_01.models` - * 2019-09-30-preview: :mod:`v2019_09_30_preview.models` - * 2019-10-01: :mod:`v2019_10_01.models` - * 2019-10-27-preview: :mod:`v2019_10_27_preview.models` - * 2019-11-01: :mod:`v2019_11_01.models` - * 2020-01-01: :mod:`v2020_01_01.models` - * 2020-02-01: :mod:`v2020_02_01.models` - * 2020-03-01: :mod:`v2020_03_01.models` - * 2020-04-01: :mod:`v2020_04_01.models` - * 2020-06-01: :mod:`v2020_06_01.models` - * 2020-07-01: :mod:`v2020_07_01.models` - * 2020-09-01: :mod:`v2020_09_01.models` - * 2020-11-01: :mod:`v2020_11_01.models` - * 2020-12-01: :mod:`v2020_12_01.models` - * 2021-02-01: :mod:`v2021_02_01.models` - * 2021-03-01: :mod:`v2021_03_01.models` - * 2021-05-01: :mod:`v2021_05_01.models` - * 2021-07-01: :mod:`v2021_07_01.models` - * 2021-08-01: :mod:`v2021_08_01.models` - * 2021-09-01: :mod:`v2021_09_01.models` - * 2021-10-01: :mod:`v2021_10_01.models` - * 2021-11-01-preview: :mod:`v2021_11_01_preview.models` - * 2022-01-01: :mod:`v2022_01_01.models` - * 2022-01-02-preview: :mod:`v2022_01_02_preview.models` - * 2022-02-01: :mod:`v2022_02_01.models` - * 2022-02-02-preview: :mod:`v2022_02_02_preview.models` - * 2022-03-01: :mod:`v2022_03_01.models` - * 2022-03-02-preview: :mod:`v2022_03_02_preview.models` - * 2022-04-01: :mod:`v2022_04_01.models` - * 2022-04-02-preview: :mod:`v2022_04_02_preview.models` - * 2022-05-02-preview: :mod:`v2022_05_02_preview.models` - * 2022-06-01: :mod:`v2022_06_01.models` - * 2022-06-02-preview: :mod:`v2022_06_02_preview.models` - * 2022-07-01: :mod:`v2022_07_01.models` - * 2022-07-02-preview: :mod:`v2022_07_02_preview.models` - * 2022-08-02-preview: :mod:`v2022_08_02_preview.models` - * 2022-08-03-preview: :mod:`v2022_08_03_preview.models` - * 2022-09-01: :mod:`v2022_09_01.models` - * 2022-09-02-preview: :mod:`v2022_09_02_preview.models` - * 2022-10-02-preview: :mod:`v2022_10_02_preview.models` - * 2022-11-01: :mod:`v2022_11_01.models` - * 2022-11-02-preview: :mod:`v2022_11_02_preview.models` - * 2023-01-01: :mod:`v2023_01_01.models` - * 2023-01-02-preview: :mod:`v2023_01_02_preview.models` - * 2023-02-01: :mod:`v2023_02_01.models` - * 2023-02-02-preview: :mod:`v2023_02_02_preview.models` - * 2023-03-01: :mod:`v2023_03_01.models` - * 2023-03-02-preview: :mod:`v2023_03_02_preview.models` - * 2023-04-01: :mod:`v2023_04_01.models` - * 2023-04-02-preview: :mod:`v2023_04_02_preview.models` - * 2023-05-01: :mod:`v2023_05_01.models` - * 2023-05-02-preview: :mod:`v2023_05_02_preview.models` - * 2023-06-01: :mod:`v2023_06_01.models` - * 2023-06-02-preview: :mod:`v2023_06_02_preview.models` - * 2023-07-01: :mod:`v2023_07_01.models` - * 2023-07-02-preview: :mod:`v2023_07_02_preview.models` - * 2023-08-01: :mod:`v2023_08_01.models` - * 2023-08-02-preview: :mod:`v2023_08_02_preview.models` - * 2023-09-01: :mod:`v2023_09_01.models` - * 2023-09-02-preview: :mod:`v2023_09_02_preview.models` - * 2023-10-01: :mod:`v2023_10_01.models` - * 2023-10-02-preview: :mod:`v2023_10_02_preview.models` - * 2023-11-01: :mod:`v2023_11_01.models` - * 2023-11-02-preview: :mod:`v2023_11_02_preview.models` - * 2024-01-01: :mod:`v2024_01_01.models` - * 2024-01-02-preview: :mod:`v2024_01_02_preview.models` - * 2024-02-01: :mod:`v2024_02_01.models` - * 2024-02-02-preview: :mod:`v2024_02_02_preview.models` - * 2024-03-02-preview: :mod:`v2024_03_02_preview.models` - * 2024-04-02-preview: :mod:`v2024_04_02_preview.models` - * 2024-05-01: :mod:`v2024_05_01.models` - * 2024-05-02-preview: :mod:`v2024_05_02_preview.models` - * 2024-06-02-preview: :mod:`v2024_06_02_preview.models` - * 2024-07-01: :mod:`v2024_07_01.models` - * 2024-07-02-preview: :mod:`v2024_07_02_preview.models` - * 2024-08-01: :mod:`v2024_08_01.models` + * 2017-07-01: :mod:`v2017_07_01.models` + * 2018-03-31: :mod:`v2018_03_31.models` + * 2018-08-01-preview: :mod:`v2018_08_01_preview.models` + * 2018-09-30-preview: :mod:`v2018_09_30_preview.models` + * 2019-02-01: :mod:`v2019_02_01.models` + * 2019-04-01: :mod:`v2019_04_01.models` + * 2019-04-30: :mod:`v2019_04_30.models` + * 2019-06-01: :mod:`v2019_06_01.models` + * 2019-08-01: :mod:`v2019_08_01.models` + * 2019-09-30-preview: :mod:`v2019_09_30_preview.models` + * 2019-10-01: :mod:`v2019_10_01.models` + * 2019-10-27-preview: :mod:`v2019_10_27_preview.models` + * 2019-11-01: :mod:`v2019_11_01.models` + * 2020-01-01: :mod:`v2020_01_01.models` + * 2020-02-01: :mod:`v2020_02_01.models` + * 2020-03-01: :mod:`v2020_03_01.models` + * 2020-04-01: :mod:`v2020_04_01.models` + * 2020-06-01: :mod:`v2020_06_01.models` + * 2020-07-01: :mod:`v2020_07_01.models` + * 2020-09-01: :mod:`v2020_09_01.models` + * 2020-11-01: :mod:`v2020_11_01.models` + * 2020-12-01: :mod:`v2020_12_01.models` + * 2021-02-01: :mod:`v2021_02_01.models` + * 2021-03-01: :mod:`v2021_03_01.models` + * 2021-05-01: :mod:`v2021_05_01.models` + * 2021-07-01: :mod:`v2021_07_01.models` + * 2021-08-01: :mod:`v2021_08_01.models` + * 2021-09-01: :mod:`v2021_09_01.models` + * 2021-10-01: :mod:`v2021_10_01.models` + * 2021-11-01-preview: :mod:`v2021_11_01_preview.models` + * 2022-01-01: :mod:`v2022_01_01.models` + * 2022-01-02-preview: :mod:`v2022_01_02_preview.models` + * 2022-02-01: :mod:`v2022_02_01.models` + * 2022-02-02-preview: :mod:`v2022_02_02_preview.models` + * 2022-03-01: :mod:`v2022_03_01.models` + * 2022-03-02-preview: :mod:`v2022_03_02_preview.models` + * 2022-04-01: :mod:`v2022_04_01.models` + * 2022-04-02-preview: :mod:`v2022_04_02_preview.models` + * 2022-05-02-preview: :mod:`v2022_05_02_preview.models` + * 2022-06-01: :mod:`v2022_06_01.models` + * 2022-06-02-preview: :mod:`v2022_06_02_preview.models` + * 2022-07-01: :mod:`v2022_07_01.models` + * 2022-07-02-preview: :mod:`v2022_07_02_preview.models` + * 2022-08-02-preview: :mod:`v2022_08_02_preview.models` + * 2022-08-03-preview: :mod:`v2022_08_03_preview.models` + * 2022-09-01: :mod:`v2022_09_01.models` + * 2022-09-02-preview: :mod:`v2022_09_02_preview.models` + * 2022-10-02-preview: :mod:`v2022_10_02_preview.models` + * 2022-11-01: :mod:`v2022_11_01.models` + * 2022-11-02-preview: :mod:`v2022_11_02_preview.models` + * 2023-01-01: :mod:`v2023_01_01.models` + * 2023-01-02-preview: :mod:`v2023_01_02_preview.models` + * 2023-02-01: :mod:`v2023_02_01.models` + * 2023-02-02-preview: :mod:`v2023_02_02_preview.models` + * 2023-03-01: :mod:`v2023_03_01.models` + * 2023-03-02-preview: :mod:`v2023_03_02_preview.models` + * 2023-04-01: :mod:`v2023_04_01.models` + * 2023-04-02-preview: :mod:`v2023_04_02_preview.models` + * 2023-05-01: :mod:`v2023_05_01.models` + * 2023-05-02-preview: :mod:`v2023_05_02_preview.models` + * 2023-06-01: :mod:`v2023_06_01.models` + * 2023-06-02-preview: :mod:`v2023_06_02_preview.models` + * 2023-07-01: :mod:`v2023_07_01.models` + * 2023-07-02-preview: :mod:`v2023_07_02_preview.models` + * 2023-08-01: :mod:`v2023_08_01.models` + * 2023-08-02-preview: :mod:`v2023_08_02_preview.models` + * 2023-09-01: :mod:`v2023_09_01.models` + * 2023-09-02-preview: :mod:`v2023_09_02_preview.models` + * 2023-10-01: :mod:`v2023_10_01.models` + * 2023-10-02-preview: :mod:`v2023_10_02_preview.models` + * 2023-11-01: :mod:`v2023_11_01.models` + * 2023-11-02-preview: :mod:`v2023_11_02_preview.models` + * 2024-01-01: :mod:`v2024_01_01.models` + * 2024-01-02-preview: :mod:`v2024_01_02_preview.models` + * 2024-02-01: :mod:`v2024_02_01.models` + * 2024-02-02-preview: :mod:`v2024_02_02_preview.models` + * 2024-03-02-preview: :mod:`v2024_03_02_preview.models` + * 2024-04-02-preview: :mod:`v2024_04_02_preview.models` + * 2024-05-01: :mod:`v2024_05_01.models` + * 2024-05-02-preview: :mod:`v2024_05_02_preview.models` + * 2024-06-02-preview: :mod:`v2024_06_02_preview.models` + * 2024-07-01: :mod:`v2024_07_01.models` + * 2024-07-02-preview: :mod:`v2024_07_02_preview.models` + * 2024-08-01: :mod:`v2024_08_01.models` """ - if api_version == "2017-07-01": + if api_version == '2017-07-01': from ..v2017_07_01 import models - return models - elif api_version == "2018-03-31": + elif api_version == '2018-03-31': from ..v2018_03_31 import models - return models - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from ..v2018_08_01_preview import models - return models - elif api_version == "2018-09-30-preview": + elif api_version == '2018-09-30-preview': from ..v2018_09_30_preview import models - return models - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from ..v2019_02_01 import models - return models - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from ..v2019_04_01 import models - return models - elif api_version == "2019-04-30": + elif api_version == '2019-04-30': from ..v2019_04_30 import models - return models - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from ..v2019_06_01 import models - return models - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from ..v2019_08_01 import models - return models - elif api_version == "2019-09-30-preview": + elif api_version == '2019-09-30-preview': from ..v2019_09_30_preview import models - return models - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from ..v2019_10_01 import models - return models - elif api_version == "2019-10-27-preview": + elif api_version == '2019-10-27-preview': from ..v2019_10_27_preview import models - return models - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from ..v2019_11_01 import models - return models - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from ..v2020_01_01 import models - return models - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from ..v2020_02_01 import models - return models - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from ..v2020_03_01 import models - return models - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from ..v2020_04_01 import models - return models - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from ..v2020_06_01 import models - return models - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from ..v2020_07_01 import models - return models - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from ..v2020_09_01 import models - return models - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01 import models - return models - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01 import models - return models - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01 import models - return models - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01 import models - return models - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01 import models - return models - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01 import models - return models - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01 import models - return models - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01 import models - return models - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01 import models - return models - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview import models - return models - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01 import models - return models - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview import models - return models - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01 import models - return models - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview import models - return models - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01 import models - return models - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview import models - return models - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01 import models - return models - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview import models - return models - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview import models - return models - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01 import models - return models - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview import models - return models - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01 import models - return models - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview import models - return models - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview import models - return models - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview import models - return models - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01 import models - return models - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview import models - return models - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview import models - return models - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01 import models - return models - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview import models - return models - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01 import models - return models - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview import models - return models - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01 import models - return models - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview import models - return models - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01 import models - return models - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview import models - return models - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01 import models - return models - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview import models - return models - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01 import models - return models - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview import models - return models - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01 import models - return models - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview import models - return models - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01 import models - return models - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview import models - return models - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01 import models - return models - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview import models - return models - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01 import models - return models - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview import models - return models - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01 import models - return models - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview import models - return models - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01 import models - return models - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview import models - return models - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01 import models - return models - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview import models - return models - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01 import models - return models - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview import models - return models - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview import models - return models - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview import models - return models - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01 import models - return models - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview import models - return models - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview import models - return models - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01 import models - return models - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview import models - return models - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01 import models - return models raise ValueError("API version {} is not available".format(api_version)) @@ -544,2406 +459,2280 @@ def models(cls, api_version=DEFAULT_API_VERSION): def agent_pools(self): """Instance depends on the API version: - * 2019-02-01: :class:`AgentPoolsOperations` - * 2019-04-01: :class:`AgentPoolsOperations` - * 2019-06-01: :class:`AgentPoolsOperations` - * 2019-08-01: :class:`AgentPoolsOperations` - * 2019-10-01: :class:`AgentPoolsOperations` - * 2019-11-01: :class:`AgentPoolsOperations` - * 2020-01-01: :class:`AgentPoolsOperations` - * 2020-02-01: :class:`AgentPoolsOperations` - * 2020-03-01: :class:`AgentPoolsOperations` - * 2020-04-01: :class:`AgentPoolsOperations` - * 2020-06-01: :class:`AgentPoolsOperations` - * 2020-07-01: :class:`AgentPoolsOperations` - * 2020-09-01: :class:`AgentPoolsOperations` - * 2020-11-01: :class:`AgentPoolsOperations` - * 2020-12-01: :class:`AgentPoolsOperations` - * 2021-02-01: :class:`AgentPoolsOperations` - * 2021-03-01: :class:`AgentPoolsOperations` - * 2021-05-01: :class:`AgentPoolsOperations` - * 2021-07-01: :class:`AgentPoolsOperations` - * 2021-08-01: :class:`AgentPoolsOperations` - * 2021-09-01: :class:`AgentPoolsOperations` - * 2021-10-01: :class:`AgentPoolsOperations` - * 2021-11-01-preview: :class:`AgentPoolsOperations` - * 2022-01-01: :class:`AgentPoolsOperations` - * 2022-01-02-preview: :class:`AgentPoolsOperations` - * 2022-02-01: :class:`AgentPoolsOperations` - * 2022-02-02-preview: :class:`AgentPoolsOperations` - * 2022-03-01: :class:`AgentPoolsOperations` - * 2022-03-02-preview: :class:`AgentPoolsOperations` - * 2022-04-01: :class:`AgentPoolsOperations` - * 2022-04-02-preview: :class:`AgentPoolsOperations` - * 2022-05-02-preview: :class:`AgentPoolsOperations` - * 2022-06-01: :class:`AgentPoolsOperations` - * 2022-06-02-preview: :class:`AgentPoolsOperations` - * 2022-07-01: :class:`AgentPoolsOperations` - * 2022-07-02-preview: :class:`AgentPoolsOperations` - * 2022-08-02-preview: :class:`AgentPoolsOperations` - * 2022-08-03-preview: :class:`AgentPoolsOperations` - * 2022-09-01: :class:`AgentPoolsOperations` - * 2022-09-02-preview: :class:`AgentPoolsOperations` - * 2022-10-02-preview: :class:`AgentPoolsOperations` - * 2022-11-01: :class:`AgentPoolsOperations` - * 2022-11-02-preview: :class:`AgentPoolsOperations` - * 2023-01-01: :class:`AgentPoolsOperations` - * 2023-01-02-preview: :class:`AgentPoolsOperations` - * 2023-02-01: :class:`AgentPoolsOperations` - * 2023-02-02-preview: :class:`AgentPoolsOperations` - * 2023-03-01: :class:`AgentPoolsOperations` - * 2023-03-02-preview: :class:`AgentPoolsOperations` - * 2023-04-01: :class:`AgentPoolsOperations` - * 2023-04-02-preview: :class:`AgentPoolsOperations` - * 2023-05-01: :class:`AgentPoolsOperations` - * 2023-05-02-preview: :class:`AgentPoolsOperations` - * 2023-06-01: :class:`AgentPoolsOperations` - * 2023-06-02-preview: :class:`AgentPoolsOperations` - * 2023-07-01: :class:`AgentPoolsOperations` - * 2023-07-02-preview: :class:`AgentPoolsOperations` - * 2023-08-01: :class:`AgentPoolsOperations` - * 2023-08-02-preview: :class:`AgentPoolsOperations` - * 2023-09-01: :class:`AgentPoolsOperations` - * 2023-09-02-preview: :class:`AgentPoolsOperations` - * 2023-10-01: :class:`AgentPoolsOperations` - * 2023-10-02-preview: :class:`AgentPoolsOperations` - * 2023-11-01: :class:`AgentPoolsOperations` - * 2023-11-02-preview: :class:`AgentPoolsOperations` - * 2024-01-01: :class:`AgentPoolsOperations` - * 2024-01-02-preview: :class:`AgentPoolsOperations` - * 2024-02-01: :class:`AgentPoolsOperations` - * 2024-02-02-preview: :class:`AgentPoolsOperations` - * 2024-03-02-preview: :class:`AgentPoolsOperations` - * 2024-04-02-preview: :class:`AgentPoolsOperations` - * 2024-05-01: :class:`AgentPoolsOperations` - * 2024-05-02-preview: :class:`AgentPoolsOperations` - * 2024-06-02-preview: :class:`AgentPoolsOperations` - * 2024-07-01: :class:`AgentPoolsOperations` - * 2024-07-02-preview: :class:`AgentPoolsOperations` - * 2024-08-01: :class:`AgentPoolsOperations` + * 2019-02-01: :class:`AgentPoolsOperations` + * 2019-04-01: :class:`AgentPoolsOperations` + * 2019-06-01: :class:`AgentPoolsOperations` + * 2019-08-01: :class:`AgentPoolsOperations` + * 2019-10-01: :class:`AgentPoolsOperations` + * 2019-11-01: :class:`AgentPoolsOperations` + * 2020-01-01: :class:`AgentPoolsOperations` + * 2020-02-01: :class:`AgentPoolsOperations` + * 2020-03-01: :class:`AgentPoolsOperations` + * 2020-04-01: :class:`AgentPoolsOperations` + * 2020-06-01: :class:`AgentPoolsOperations` + * 2020-07-01: :class:`AgentPoolsOperations` + * 2020-09-01: :class:`AgentPoolsOperations` + * 2020-11-01: :class:`AgentPoolsOperations` + * 2020-12-01: :class:`AgentPoolsOperations` + * 2021-02-01: :class:`AgentPoolsOperations` + * 2021-03-01: :class:`AgentPoolsOperations` + * 2021-05-01: :class:`AgentPoolsOperations` + * 2021-07-01: :class:`AgentPoolsOperations` + * 2021-08-01: :class:`AgentPoolsOperations` + * 2021-09-01: :class:`AgentPoolsOperations` + * 2021-10-01: :class:`AgentPoolsOperations` + * 2021-11-01-preview: :class:`AgentPoolsOperations` + * 2022-01-01: :class:`AgentPoolsOperations` + * 2022-01-02-preview: :class:`AgentPoolsOperations` + * 2022-02-01: :class:`AgentPoolsOperations` + * 2022-02-02-preview: :class:`AgentPoolsOperations` + * 2022-03-01: :class:`AgentPoolsOperations` + * 2022-03-02-preview: :class:`AgentPoolsOperations` + * 2022-04-01: :class:`AgentPoolsOperations` + * 2022-04-02-preview: :class:`AgentPoolsOperations` + * 2022-05-02-preview: :class:`AgentPoolsOperations` + * 2022-06-01: :class:`AgentPoolsOperations` + * 2022-06-02-preview: :class:`AgentPoolsOperations` + * 2022-07-01: :class:`AgentPoolsOperations` + * 2022-07-02-preview: :class:`AgentPoolsOperations` + * 2022-08-02-preview: :class:`AgentPoolsOperations` + * 2022-08-03-preview: :class:`AgentPoolsOperations` + * 2022-09-01: :class:`AgentPoolsOperations` + * 2022-09-02-preview: :class:`AgentPoolsOperations` + * 2022-10-02-preview: :class:`AgentPoolsOperations` + * 2022-11-01: :class:`AgentPoolsOperations` + * 2022-11-02-preview: :class:`AgentPoolsOperations` + * 2023-01-01: :class:`AgentPoolsOperations` + * 2023-01-02-preview: :class:`AgentPoolsOperations` + * 2023-02-01: :class:`AgentPoolsOperations` + * 2023-02-02-preview: :class:`AgentPoolsOperations` + * 2023-03-01: :class:`AgentPoolsOperations` + * 2023-03-02-preview: :class:`AgentPoolsOperations` + * 2023-04-01: :class:`AgentPoolsOperations` + * 2023-04-02-preview: :class:`AgentPoolsOperations` + * 2023-05-01: :class:`AgentPoolsOperations` + * 2023-05-02-preview: :class:`AgentPoolsOperations` + * 2023-06-01: :class:`AgentPoolsOperations` + * 2023-06-02-preview: :class:`AgentPoolsOperations` + * 2023-07-01: :class:`AgentPoolsOperations` + * 2023-07-02-preview: :class:`AgentPoolsOperations` + * 2023-08-01: :class:`AgentPoolsOperations` + * 2023-08-02-preview: :class:`AgentPoolsOperations` + * 2023-09-01: :class:`AgentPoolsOperations` + * 2023-09-02-preview: :class:`AgentPoolsOperations` + * 2023-10-01: :class:`AgentPoolsOperations` + * 2023-10-02-preview: :class:`AgentPoolsOperations` + * 2023-11-01: :class:`AgentPoolsOperations` + * 2023-11-02-preview: :class:`AgentPoolsOperations` + * 2024-01-01: :class:`AgentPoolsOperations` + * 2024-01-02-preview: :class:`AgentPoolsOperations` + * 2024-02-01: :class:`AgentPoolsOperations` + * 2024-02-02-preview: :class:`AgentPoolsOperations` + * 2024-03-02-preview: :class:`AgentPoolsOperations` + * 2024-04-02-preview: :class:`AgentPoolsOperations` + * 2024-05-01: :class:`AgentPoolsOperations` + * 2024-05-02-preview: :class:`AgentPoolsOperations` + * 2024-06-02-preview: :class:`AgentPoolsOperations` + * 2024-07-01: :class:`AgentPoolsOperations` + * 2024-07-02-preview: :class:`AgentPoolsOperations` + * 2024-08-01: :class:`AgentPoolsOperations` """ - api_version = self._get_api_version("agent_pools") - if api_version == "2019-02-01": + api_version = self._get_api_version('agent_pools') + if api_version == '2019-02-01': from ..v2019_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from ..v2019_04_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from ..v2019_08_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from ..v2019_10_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from ..v2019_11_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from ..v2020_01_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from ..v2020_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from ..v2020_03_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from ..v2020_04_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from ..v2020_06_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from ..v2020_07_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from ..v2020_09_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import AgentPoolsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import AgentPoolsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'agent_pools'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def container_services(self): """Instance depends on the API version: - * 2017-07-01: :class:`ContainerServicesOperations` - * 2019-04-01: :class:`ContainerServicesOperations` + * 2017-07-01: :class:`ContainerServicesOperations` + * 2019-04-01: :class:`ContainerServicesOperations` """ - api_version = self._get_api_version("container_services") - if api_version == "2017-07-01": + api_version = self._get_api_version('container_services') + if api_version == '2017-07-01': from ..v2017_07_01.aio.operations import ContainerServicesOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from ..v2019_04_01.aio.operations import ContainerServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'container_services'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def fleet_members(self): """Instance depends on the API version: - * 2022-06-02-preview: :class:`FleetMembersOperations` - * 2022-07-02-preview: :class:`FleetMembersOperations` - * 2022-09-02-preview: :class:`FleetMembersOperations` + * 2022-06-02-preview: :class:`FleetMembersOperations` + * 2022-07-02-preview: :class:`FleetMembersOperations` + * 2022-09-02-preview: :class:`FleetMembersOperations` """ - api_version = self._get_api_version("fleet_members") - if api_version == "2022-06-02-preview": + api_version = self._get_api_version('fleet_members') + if api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import FleetMembersOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import FleetMembersOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import FleetMembersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'fleet_members'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def fleets(self): """Instance depends on the API version: - * 2022-06-02-preview: :class:`FleetsOperations` - * 2022-07-02-preview: :class:`FleetsOperations` - * 2022-09-02-preview: :class:`FleetsOperations` + * 2022-06-02-preview: :class:`FleetsOperations` + * 2022-07-02-preview: :class:`FleetsOperations` + * 2022-09-02-preview: :class:`FleetsOperations` """ - api_version = self._get_api_version("fleets") - if api_version == "2022-06-02-preview": + api_version = self._get_api_version('fleets') + if api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import FleetsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import FleetsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import FleetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'fleets'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def load_balancers(self): """Instance depends on the API version: - * 2024-03-02-preview: :class:`LoadBalancersOperations` - * 2024-04-02-preview: :class:`LoadBalancersOperations` - * 2024-05-02-preview: :class:`LoadBalancersOperations` - * 2024-06-02-preview: :class:`LoadBalancersOperations` - * 2024-07-02-preview: :class:`LoadBalancersOperations` + * 2024-03-02-preview: :class:`LoadBalancersOperations` + * 2024-04-02-preview: :class:`LoadBalancersOperations` + * 2024-05-02-preview: :class:`LoadBalancersOperations` + * 2024-06-02-preview: :class:`LoadBalancersOperations` + * 2024-07-02-preview: :class:`LoadBalancersOperations` """ - api_version = self._get_api_version("load_balancers") - if api_version == "2024-03-02-preview": + api_version = self._get_api_version('load_balancers') + if api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import LoadBalancersOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import LoadBalancersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'load_balancers'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def machines(self): """Instance depends on the API version: - * 2023-07-02-preview: :class:`MachinesOperations` - * 2023-08-02-preview: :class:`MachinesOperations` - * 2023-09-02-preview: :class:`MachinesOperations` - * 2023-10-02-preview: :class:`MachinesOperations` - * 2023-11-02-preview: :class:`MachinesOperations` - * 2024-01-02-preview: :class:`MachinesOperations` - * 2024-02-02-preview: :class:`MachinesOperations` - * 2024-03-02-preview: :class:`MachinesOperations` - * 2024-04-02-preview: :class:`MachinesOperations` - * 2024-05-02-preview: :class:`MachinesOperations` - * 2024-06-02-preview: :class:`MachinesOperations` - * 2024-07-01: :class:`MachinesOperations` - * 2024-07-02-preview: :class:`MachinesOperations` - * 2024-08-01: :class:`MachinesOperations` + * 2023-07-02-preview: :class:`MachinesOperations` + * 2023-08-02-preview: :class:`MachinesOperations` + * 2023-09-02-preview: :class:`MachinesOperations` + * 2023-10-02-preview: :class:`MachinesOperations` + * 2023-11-02-preview: :class:`MachinesOperations` + * 2024-01-02-preview: :class:`MachinesOperations` + * 2024-02-02-preview: :class:`MachinesOperations` + * 2024-03-02-preview: :class:`MachinesOperations` + * 2024-04-02-preview: :class:`MachinesOperations` + * 2024-05-02-preview: :class:`MachinesOperations` + * 2024-06-02-preview: :class:`MachinesOperations` + * 2024-07-01: :class:`MachinesOperations` + * 2024-07-02-preview: :class:`MachinesOperations` + * 2024-08-01: :class:`MachinesOperations` """ - api_version = self._get_api_version("machines") - if api_version == "2023-07-02-preview": + api_version = self._get_api_version('machines') + if api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import MachinesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import MachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'machines'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def maintenance_configurations(self): """Instance depends on the API version: - * 2020-12-01: :class:`MaintenanceConfigurationsOperations` - * 2021-02-01: :class:`MaintenanceConfigurationsOperations` - * 2021-03-01: :class:`MaintenanceConfigurationsOperations` - * 2021-05-01: :class:`MaintenanceConfigurationsOperations` - * 2021-07-01: :class:`MaintenanceConfigurationsOperations` - * 2021-08-01: :class:`MaintenanceConfigurationsOperations` - * 2021-09-01: :class:`MaintenanceConfigurationsOperations` - * 2021-10-01: :class:`MaintenanceConfigurationsOperations` - * 2021-11-01-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-01-01: :class:`MaintenanceConfigurationsOperations` - * 2022-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-02-01: :class:`MaintenanceConfigurationsOperations` - * 2022-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-03-01: :class:`MaintenanceConfigurationsOperations` - * 2022-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-04-01: :class:`MaintenanceConfigurationsOperations` - * 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-06-01: :class:`MaintenanceConfigurationsOperations` - * 2022-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-07-01: :class:`MaintenanceConfigurationsOperations` - * 2022-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-08-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-08-03-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-09-01: :class:`MaintenanceConfigurationsOperations` - * 2022-09-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-10-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2022-11-01: :class:`MaintenanceConfigurationsOperations` - * 2022-11-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-01-01: :class:`MaintenanceConfigurationsOperations` - * 2023-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-02-01: :class:`MaintenanceConfigurationsOperations` - * 2023-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-03-01: :class:`MaintenanceConfigurationsOperations` - * 2023-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-04-01: :class:`MaintenanceConfigurationsOperations` - * 2023-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-05-01: :class:`MaintenanceConfigurationsOperations` - * 2023-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-06-01: :class:`MaintenanceConfigurationsOperations` - * 2023-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-07-01: :class:`MaintenanceConfigurationsOperations` - * 2023-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-08-01: :class:`MaintenanceConfigurationsOperations` - * 2023-08-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-09-01: :class:`MaintenanceConfigurationsOperations` - * 2023-09-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-10-01: :class:`MaintenanceConfigurationsOperations` - * 2023-10-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2023-11-01: :class:`MaintenanceConfigurationsOperations` - * 2023-11-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-01-01: :class:`MaintenanceConfigurationsOperations` - * 2024-01-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-02-01: :class:`MaintenanceConfigurationsOperations` - * 2024-02-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-03-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-04-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-05-01: :class:`MaintenanceConfigurationsOperations` - * 2024-05-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-06-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-07-01: :class:`MaintenanceConfigurationsOperations` - * 2024-07-02-preview: :class:`MaintenanceConfigurationsOperations` - * 2024-08-01: :class:`MaintenanceConfigurationsOperations` + * 2020-12-01: :class:`MaintenanceConfigurationsOperations` + * 2021-02-01: :class:`MaintenanceConfigurationsOperations` + * 2021-03-01: :class:`MaintenanceConfigurationsOperations` + * 2021-05-01: :class:`MaintenanceConfigurationsOperations` + * 2021-07-01: :class:`MaintenanceConfigurationsOperations` + * 2021-08-01: :class:`MaintenanceConfigurationsOperations` + * 2021-09-01: :class:`MaintenanceConfigurationsOperations` + * 2021-10-01: :class:`MaintenanceConfigurationsOperations` + * 2021-11-01-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-01-01: :class:`MaintenanceConfigurationsOperations` + * 2022-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-02-01: :class:`MaintenanceConfigurationsOperations` + * 2022-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-03-01: :class:`MaintenanceConfigurationsOperations` + * 2022-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-04-01: :class:`MaintenanceConfigurationsOperations` + * 2022-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-06-01: :class:`MaintenanceConfigurationsOperations` + * 2022-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-07-01: :class:`MaintenanceConfigurationsOperations` + * 2022-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-08-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-08-03-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-09-01: :class:`MaintenanceConfigurationsOperations` + * 2022-09-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-10-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2022-11-01: :class:`MaintenanceConfigurationsOperations` + * 2022-11-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-01-01: :class:`MaintenanceConfigurationsOperations` + * 2023-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-02-01: :class:`MaintenanceConfigurationsOperations` + * 2023-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-03-01: :class:`MaintenanceConfigurationsOperations` + * 2023-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-04-01: :class:`MaintenanceConfigurationsOperations` + * 2023-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-05-01: :class:`MaintenanceConfigurationsOperations` + * 2023-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-06-01: :class:`MaintenanceConfigurationsOperations` + * 2023-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-07-01: :class:`MaintenanceConfigurationsOperations` + * 2023-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-08-01: :class:`MaintenanceConfigurationsOperations` + * 2023-08-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-09-01: :class:`MaintenanceConfigurationsOperations` + * 2023-09-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-10-01: :class:`MaintenanceConfigurationsOperations` + * 2023-10-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2023-11-01: :class:`MaintenanceConfigurationsOperations` + * 2023-11-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-01-01: :class:`MaintenanceConfigurationsOperations` + * 2024-01-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-02-01: :class:`MaintenanceConfigurationsOperations` + * 2024-02-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-03-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-04-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-05-01: :class:`MaintenanceConfigurationsOperations` + * 2024-05-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-06-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-07-01: :class:`MaintenanceConfigurationsOperations` + * 2024-07-02-preview: :class:`MaintenanceConfigurationsOperations` + * 2024-08-01: :class:`MaintenanceConfigurationsOperations` """ - api_version = self._get_api_version("maintenance_configurations") - if api_version == "2020-12-01": + api_version = self._get_api_version('maintenance_configurations') + if api_version == '2020-12-01': from ..v2020_12_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import MaintenanceConfigurationsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import MaintenanceConfigurationsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'maintenance_configurations'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'maintenance_configurations'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def managed_cluster_snapshots(self): """Instance depends on the API version: - * 2022-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-07-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-08-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-08-03-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-09-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-10-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2022-11-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-01-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-07-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-08-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-09-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-10-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2023-11-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-01-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-02-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-03-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-04-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-05-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-06-02-preview: :class:`ManagedClusterSnapshotsOperations` - * 2024-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-08-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-08-03-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-09-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-10-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2022-11-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-01-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-07-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-08-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-09-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-10-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2023-11-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-01-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-02-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-03-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-04-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-05-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-06-02-preview: :class:`ManagedClusterSnapshotsOperations` + * 2024-07-02-preview: :class:`ManagedClusterSnapshotsOperations` """ - api_version = self._get_api_version("managed_cluster_snapshots") - if api_version == "2022-02-02-preview": + api_version = self._get_api_version('managed_cluster_snapshots') + if api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import ManagedClusterSnapshotsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'managed_cluster_snapshots'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'managed_cluster_snapshots'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def managed_clusters(self): """Instance depends on the API version: - * 2018-03-31: :class:`ManagedClustersOperations` - * 2018-08-01-preview: :class:`ManagedClustersOperations` - * 2019-02-01: :class:`ManagedClustersOperations` - * 2019-04-01: :class:`ManagedClustersOperations` - * 2019-06-01: :class:`ManagedClustersOperations` - * 2019-08-01: :class:`ManagedClustersOperations` - * 2019-10-01: :class:`ManagedClustersOperations` - * 2019-11-01: :class:`ManagedClustersOperations` - * 2020-01-01: :class:`ManagedClustersOperations` - * 2020-02-01: :class:`ManagedClustersOperations` - * 2020-03-01: :class:`ManagedClustersOperations` - * 2020-04-01: :class:`ManagedClustersOperations` - * 2020-06-01: :class:`ManagedClustersOperations` - * 2020-07-01: :class:`ManagedClustersOperations` - * 2020-09-01: :class:`ManagedClustersOperations` - * 2020-11-01: :class:`ManagedClustersOperations` - * 2020-12-01: :class:`ManagedClustersOperations` - * 2021-02-01: :class:`ManagedClustersOperations` - * 2021-03-01: :class:`ManagedClustersOperations` - * 2021-05-01: :class:`ManagedClustersOperations` - * 2021-07-01: :class:`ManagedClustersOperations` - * 2021-08-01: :class:`ManagedClustersOperations` - * 2021-09-01: :class:`ManagedClustersOperations` - * 2021-10-01: :class:`ManagedClustersOperations` - * 2021-11-01-preview: :class:`ManagedClustersOperations` - * 2022-01-01: :class:`ManagedClustersOperations` - * 2022-01-02-preview: :class:`ManagedClustersOperations` - * 2022-02-01: :class:`ManagedClustersOperations` - * 2022-02-02-preview: :class:`ManagedClustersOperations` - * 2022-03-01: :class:`ManagedClustersOperations` - * 2022-03-02-preview: :class:`ManagedClustersOperations` - * 2022-04-01: :class:`ManagedClustersOperations` - * 2022-04-02-preview: :class:`ManagedClustersOperations` - * 2022-05-02-preview: :class:`ManagedClustersOperations` - * 2022-06-01: :class:`ManagedClustersOperations` - * 2022-06-02-preview: :class:`ManagedClustersOperations` - * 2022-07-01: :class:`ManagedClustersOperations` - * 2022-07-02-preview: :class:`ManagedClustersOperations` - * 2022-08-02-preview: :class:`ManagedClustersOperations` - * 2022-08-03-preview: :class:`ManagedClustersOperations` - * 2022-09-01: :class:`ManagedClustersOperations` - * 2022-09-02-preview: :class:`ManagedClustersOperations` - * 2022-10-02-preview: :class:`ManagedClustersOperations` - * 2022-11-01: :class:`ManagedClustersOperations` - * 2022-11-02-preview: :class:`ManagedClustersOperations` - * 2023-01-01: :class:`ManagedClustersOperations` - * 2023-01-02-preview: :class:`ManagedClustersOperations` - * 2023-02-01: :class:`ManagedClustersOperations` - * 2023-02-02-preview: :class:`ManagedClustersOperations` - * 2023-03-01: :class:`ManagedClustersOperations` - * 2023-03-02-preview: :class:`ManagedClustersOperations` - * 2023-04-01: :class:`ManagedClustersOperations` - * 2023-04-02-preview: :class:`ManagedClustersOperations` - * 2023-05-01: :class:`ManagedClustersOperations` - * 2023-05-02-preview: :class:`ManagedClustersOperations` - * 2023-06-01: :class:`ManagedClustersOperations` - * 2023-06-02-preview: :class:`ManagedClustersOperations` - * 2023-07-01: :class:`ManagedClustersOperations` - * 2023-07-02-preview: :class:`ManagedClustersOperations` - * 2023-08-01: :class:`ManagedClustersOperations` - * 2023-08-02-preview: :class:`ManagedClustersOperations` - * 2023-09-01: :class:`ManagedClustersOperations` - * 2023-09-02-preview: :class:`ManagedClustersOperations` - * 2023-10-01: :class:`ManagedClustersOperations` - * 2023-10-02-preview: :class:`ManagedClustersOperations` - * 2023-11-01: :class:`ManagedClustersOperations` - * 2023-11-02-preview: :class:`ManagedClustersOperations` - * 2024-01-01: :class:`ManagedClustersOperations` - * 2024-01-02-preview: :class:`ManagedClustersOperations` - * 2024-02-01: :class:`ManagedClustersOperations` - * 2024-02-02-preview: :class:`ManagedClustersOperations` - * 2024-03-02-preview: :class:`ManagedClustersOperations` - * 2024-04-02-preview: :class:`ManagedClustersOperations` - * 2024-05-01: :class:`ManagedClustersOperations` - * 2024-05-02-preview: :class:`ManagedClustersOperations` - * 2024-06-02-preview: :class:`ManagedClustersOperations` - * 2024-07-01: :class:`ManagedClustersOperations` - * 2024-07-02-preview: :class:`ManagedClustersOperations` - * 2024-08-01: :class:`ManagedClustersOperations` + * 2018-03-31: :class:`ManagedClustersOperations` + * 2018-08-01-preview: :class:`ManagedClustersOperations` + * 2019-02-01: :class:`ManagedClustersOperations` + * 2019-04-01: :class:`ManagedClustersOperations` + * 2019-06-01: :class:`ManagedClustersOperations` + * 2019-08-01: :class:`ManagedClustersOperations` + * 2019-10-01: :class:`ManagedClustersOperations` + * 2019-11-01: :class:`ManagedClustersOperations` + * 2020-01-01: :class:`ManagedClustersOperations` + * 2020-02-01: :class:`ManagedClustersOperations` + * 2020-03-01: :class:`ManagedClustersOperations` + * 2020-04-01: :class:`ManagedClustersOperations` + * 2020-06-01: :class:`ManagedClustersOperations` + * 2020-07-01: :class:`ManagedClustersOperations` + * 2020-09-01: :class:`ManagedClustersOperations` + * 2020-11-01: :class:`ManagedClustersOperations` + * 2020-12-01: :class:`ManagedClustersOperations` + * 2021-02-01: :class:`ManagedClustersOperations` + * 2021-03-01: :class:`ManagedClustersOperations` + * 2021-05-01: :class:`ManagedClustersOperations` + * 2021-07-01: :class:`ManagedClustersOperations` + * 2021-08-01: :class:`ManagedClustersOperations` + * 2021-09-01: :class:`ManagedClustersOperations` + * 2021-10-01: :class:`ManagedClustersOperations` + * 2021-11-01-preview: :class:`ManagedClustersOperations` + * 2022-01-01: :class:`ManagedClustersOperations` + * 2022-01-02-preview: :class:`ManagedClustersOperations` + * 2022-02-01: :class:`ManagedClustersOperations` + * 2022-02-02-preview: :class:`ManagedClustersOperations` + * 2022-03-01: :class:`ManagedClustersOperations` + * 2022-03-02-preview: :class:`ManagedClustersOperations` + * 2022-04-01: :class:`ManagedClustersOperations` + * 2022-04-02-preview: :class:`ManagedClustersOperations` + * 2022-05-02-preview: :class:`ManagedClustersOperations` + * 2022-06-01: :class:`ManagedClustersOperations` + * 2022-06-02-preview: :class:`ManagedClustersOperations` + * 2022-07-01: :class:`ManagedClustersOperations` + * 2022-07-02-preview: :class:`ManagedClustersOperations` + * 2022-08-02-preview: :class:`ManagedClustersOperations` + * 2022-08-03-preview: :class:`ManagedClustersOperations` + * 2022-09-01: :class:`ManagedClustersOperations` + * 2022-09-02-preview: :class:`ManagedClustersOperations` + * 2022-10-02-preview: :class:`ManagedClustersOperations` + * 2022-11-01: :class:`ManagedClustersOperations` + * 2022-11-02-preview: :class:`ManagedClustersOperations` + * 2023-01-01: :class:`ManagedClustersOperations` + * 2023-01-02-preview: :class:`ManagedClustersOperations` + * 2023-02-01: :class:`ManagedClustersOperations` + * 2023-02-02-preview: :class:`ManagedClustersOperations` + * 2023-03-01: :class:`ManagedClustersOperations` + * 2023-03-02-preview: :class:`ManagedClustersOperations` + * 2023-04-01: :class:`ManagedClustersOperations` + * 2023-04-02-preview: :class:`ManagedClustersOperations` + * 2023-05-01: :class:`ManagedClustersOperations` + * 2023-05-02-preview: :class:`ManagedClustersOperations` + * 2023-06-01: :class:`ManagedClustersOperations` + * 2023-06-02-preview: :class:`ManagedClustersOperations` + * 2023-07-01: :class:`ManagedClustersOperations` + * 2023-07-02-preview: :class:`ManagedClustersOperations` + * 2023-08-01: :class:`ManagedClustersOperations` + * 2023-08-02-preview: :class:`ManagedClustersOperations` + * 2023-09-01: :class:`ManagedClustersOperations` + * 2023-09-02-preview: :class:`ManagedClustersOperations` + * 2023-10-01: :class:`ManagedClustersOperations` + * 2023-10-02-preview: :class:`ManagedClustersOperations` + * 2023-11-01: :class:`ManagedClustersOperations` + * 2023-11-02-preview: :class:`ManagedClustersOperations` + * 2024-01-01: :class:`ManagedClustersOperations` + * 2024-01-02-preview: :class:`ManagedClustersOperations` + * 2024-02-01: :class:`ManagedClustersOperations` + * 2024-02-02-preview: :class:`ManagedClustersOperations` + * 2024-03-02-preview: :class:`ManagedClustersOperations` + * 2024-04-02-preview: :class:`ManagedClustersOperations` + * 2024-05-01: :class:`ManagedClustersOperations` + * 2024-05-02-preview: :class:`ManagedClustersOperations` + * 2024-06-02-preview: :class:`ManagedClustersOperations` + * 2024-07-01: :class:`ManagedClustersOperations` + * 2024-07-02-preview: :class:`ManagedClustersOperations` + * 2024-08-01: :class:`ManagedClustersOperations` """ - api_version = self._get_api_version("managed_clusters") - if api_version == "2018-03-31": + api_version = self._get_api_version('managed_clusters') + if api_version == '2018-03-31': from ..v2018_03_31.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from ..v2018_08_01_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from ..v2019_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from ..v2019_04_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from ..v2019_08_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from ..v2019_10_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from ..v2019_11_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from ..v2020_01_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from ..v2020_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from ..v2020_03_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from ..v2020_04_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from ..v2020_06_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from ..v2020_07_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from ..v2020_09_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import ManagedClustersOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import ManagedClustersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def open_shift_managed_clusters(self): """Instance depends on the API version: - * 2018-09-30-preview: :class:`OpenShiftManagedClustersOperations` - * 2019-04-30: :class:`OpenShiftManagedClustersOperations` - * 2019-09-30-preview: :class:`OpenShiftManagedClustersOperations` - * 2019-10-27-preview: :class:`OpenShiftManagedClustersOperations` + * 2018-09-30-preview: :class:`OpenShiftManagedClustersOperations` + * 2019-04-30: :class:`OpenShiftManagedClustersOperations` + * 2019-09-30-preview: :class:`OpenShiftManagedClustersOperations` + * 2019-10-27-preview: :class:`OpenShiftManagedClustersOperations` """ - api_version = self._get_api_version("open_shift_managed_clusters") - if api_version == "2018-09-30-preview": + api_version = self._get_api_version('open_shift_managed_clusters') + if api_version == '2018-09-30-preview': from ..v2018_09_30_preview.aio.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-04-30": + elif api_version == '2019-04-30': from ..v2019_04_30.aio.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-09-30-preview": + elif api_version == '2019-09-30-preview': from ..v2019_09_30_preview.aio.operations import OpenShiftManagedClustersOperations as OperationClass - elif api_version == "2019-10-27-preview": + elif api_version == '2019-10-27-preview': from ..v2019_10_27_preview.aio.operations import OpenShiftManagedClustersOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'open_shift_managed_clusters'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'open_shift_managed_clusters'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operation_status_result(self): """Instance depends on the API version: - * 2023-10-02-preview: :class:`OperationStatusResultOperations` - * 2023-11-02-preview: :class:`OperationStatusResultOperations` - * 2024-01-02-preview: :class:`OperationStatusResultOperations` - * 2024-02-02-preview: :class:`OperationStatusResultOperations` - * 2024-03-02-preview: :class:`OperationStatusResultOperations` - * 2024-04-02-preview: :class:`OperationStatusResultOperations` - * 2024-05-02-preview: :class:`OperationStatusResultOperations` - * 2024-06-02-preview: :class:`OperationStatusResultOperations` - * 2024-07-02-preview: :class:`OperationStatusResultOperations` + * 2023-10-02-preview: :class:`OperationStatusResultOperations` + * 2023-11-02-preview: :class:`OperationStatusResultOperations` + * 2024-01-02-preview: :class:`OperationStatusResultOperations` + * 2024-02-02-preview: :class:`OperationStatusResultOperations` + * 2024-03-02-preview: :class:`OperationStatusResultOperations` + * 2024-04-02-preview: :class:`OperationStatusResultOperations` + * 2024-05-02-preview: :class:`OperationStatusResultOperations` + * 2024-06-02-preview: :class:`OperationStatusResultOperations` + * 2024-07-02-preview: :class:`OperationStatusResultOperations` """ - api_version = self._get_api_version("operation_status_result") - if api_version == "2023-10-02-preview": + api_version = self._get_api_version('operation_status_result') + if api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import OperationStatusResultOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import OperationStatusResultOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'operation_status_result'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'operation_status_result'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def operations(self): """Instance depends on the API version: - * 2018-03-31: :class:`Operations` - * 2018-08-01-preview: :class:`Operations` - * 2019-02-01: :class:`Operations` - * 2019-04-01: :class:`Operations` - * 2019-06-01: :class:`Operations` - * 2019-08-01: :class:`Operations` - * 2019-10-01: :class:`Operations` - * 2019-11-01: :class:`Operations` - * 2020-01-01: :class:`Operations` - * 2020-02-01: :class:`Operations` - * 2020-03-01: :class:`Operations` - * 2020-04-01: :class:`Operations` - * 2020-06-01: :class:`Operations` - * 2020-07-01: :class:`Operations` - * 2020-09-01: :class:`Operations` - * 2020-11-01: :class:`Operations` - * 2020-12-01: :class:`Operations` - * 2021-02-01: :class:`Operations` - * 2021-03-01: :class:`Operations` - * 2021-05-01: :class:`Operations` - * 2021-07-01: :class:`Operations` - * 2021-08-01: :class:`Operations` - * 2021-09-01: :class:`Operations` - * 2021-10-01: :class:`Operations` - * 2021-11-01-preview: :class:`Operations` - * 2022-01-01: :class:`Operations` - * 2022-01-02-preview: :class:`Operations` - * 2022-02-01: :class:`Operations` - * 2022-02-02-preview: :class:`Operations` - * 2022-03-01: :class:`Operations` - * 2022-03-02-preview: :class:`Operations` - * 2022-04-01: :class:`Operations` - * 2022-04-02-preview: :class:`Operations` - * 2022-05-02-preview: :class:`Operations` - * 2022-06-01: :class:`Operations` - * 2022-06-02-preview: :class:`Operations` - * 2022-07-01: :class:`Operations` - * 2022-07-02-preview: :class:`Operations` - * 2022-08-02-preview: :class:`Operations` - * 2022-08-03-preview: :class:`Operations` - * 2022-09-01: :class:`Operations` - * 2022-09-02-preview: :class:`Operations` - * 2022-10-02-preview: :class:`Operations` - * 2022-11-01: :class:`Operations` - * 2022-11-02-preview: :class:`Operations` - * 2023-01-01: :class:`Operations` - * 2023-01-02-preview: :class:`Operations` - * 2023-02-01: :class:`Operations` - * 2023-02-02-preview: :class:`Operations` - * 2023-03-01: :class:`Operations` - * 2023-03-02-preview: :class:`Operations` - * 2023-04-01: :class:`Operations` - * 2023-04-02-preview: :class:`Operations` - * 2023-05-01: :class:`Operations` - * 2023-05-02-preview: :class:`Operations` - * 2023-06-01: :class:`Operations` - * 2023-06-02-preview: :class:`Operations` - * 2023-07-01: :class:`Operations` - * 2023-07-02-preview: :class:`Operations` - * 2023-08-01: :class:`Operations` - * 2023-08-02-preview: :class:`Operations` - * 2023-09-01: :class:`Operations` - * 2023-09-02-preview: :class:`Operations` - * 2023-10-01: :class:`Operations` - * 2023-10-02-preview: :class:`Operations` - * 2023-11-01: :class:`Operations` - * 2023-11-02-preview: :class:`Operations` - * 2024-01-01: :class:`Operations` - * 2024-01-02-preview: :class:`Operations` - * 2024-02-01: :class:`Operations` - * 2024-02-02-preview: :class:`Operations` - * 2024-03-02-preview: :class:`Operations` - * 2024-04-02-preview: :class:`Operations` - * 2024-05-01: :class:`Operations` - * 2024-05-02-preview: :class:`Operations` - * 2024-06-02-preview: :class:`Operations` - * 2024-07-01: :class:`Operations` - * 2024-07-02-preview: :class:`Operations` - * 2024-08-01: :class:`Operations` + * 2018-03-31: :class:`Operations` + * 2018-08-01-preview: :class:`Operations` + * 2019-02-01: :class:`Operations` + * 2019-04-01: :class:`Operations` + * 2019-06-01: :class:`Operations` + * 2019-08-01: :class:`Operations` + * 2019-10-01: :class:`Operations` + * 2019-11-01: :class:`Operations` + * 2020-01-01: :class:`Operations` + * 2020-02-01: :class:`Operations` + * 2020-03-01: :class:`Operations` + * 2020-04-01: :class:`Operations` + * 2020-06-01: :class:`Operations` + * 2020-07-01: :class:`Operations` + * 2020-09-01: :class:`Operations` + * 2020-11-01: :class:`Operations` + * 2020-12-01: :class:`Operations` + * 2021-02-01: :class:`Operations` + * 2021-03-01: :class:`Operations` + * 2021-05-01: :class:`Operations` + * 2021-07-01: :class:`Operations` + * 2021-08-01: :class:`Operations` + * 2021-09-01: :class:`Operations` + * 2021-10-01: :class:`Operations` + * 2021-11-01-preview: :class:`Operations` + * 2022-01-01: :class:`Operations` + * 2022-01-02-preview: :class:`Operations` + * 2022-02-01: :class:`Operations` + * 2022-02-02-preview: :class:`Operations` + * 2022-03-01: :class:`Operations` + * 2022-03-02-preview: :class:`Operations` + * 2022-04-01: :class:`Operations` + * 2022-04-02-preview: :class:`Operations` + * 2022-05-02-preview: :class:`Operations` + * 2022-06-01: :class:`Operations` + * 2022-06-02-preview: :class:`Operations` + * 2022-07-01: :class:`Operations` + * 2022-07-02-preview: :class:`Operations` + * 2022-08-02-preview: :class:`Operations` + * 2022-08-03-preview: :class:`Operations` + * 2022-09-01: :class:`Operations` + * 2022-09-02-preview: :class:`Operations` + * 2022-10-02-preview: :class:`Operations` + * 2022-11-01: :class:`Operations` + * 2022-11-02-preview: :class:`Operations` + * 2023-01-01: :class:`Operations` + * 2023-01-02-preview: :class:`Operations` + * 2023-02-01: :class:`Operations` + * 2023-02-02-preview: :class:`Operations` + * 2023-03-01: :class:`Operations` + * 2023-03-02-preview: :class:`Operations` + * 2023-04-01: :class:`Operations` + * 2023-04-02-preview: :class:`Operations` + * 2023-05-01: :class:`Operations` + * 2023-05-02-preview: :class:`Operations` + * 2023-06-01: :class:`Operations` + * 2023-06-02-preview: :class:`Operations` + * 2023-07-01: :class:`Operations` + * 2023-07-02-preview: :class:`Operations` + * 2023-08-01: :class:`Operations` + * 2023-08-02-preview: :class:`Operations` + * 2023-09-01: :class:`Operations` + * 2023-09-02-preview: :class:`Operations` + * 2023-10-01: :class:`Operations` + * 2023-10-02-preview: :class:`Operations` + * 2023-11-01: :class:`Operations` + * 2023-11-02-preview: :class:`Operations` + * 2024-01-01: :class:`Operations` + * 2024-01-02-preview: :class:`Operations` + * 2024-02-01: :class:`Operations` + * 2024-02-02-preview: :class:`Operations` + * 2024-03-02-preview: :class:`Operations` + * 2024-04-02-preview: :class:`Operations` + * 2024-05-01: :class:`Operations` + * 2024-05-02-preview: :class:`Operations` + * 2024-06-02-preview: :class:`Operations` + * 2024-07-01: :class:`Operations` + * 2024-07-02-preview: :class:`Operations` + * 2024-08-01: :class:`Operations` """ - api_version = self._get_api_version("operations") - if api_version == "2018-03-31": + api_version = self._get_api_version('operations') + if api_version == '2018-03-31': from ..v2018_03_31.aio.operations import Operations as OperationClass - elif api_version == "2018-08-01-preview": + elif api_version == '2018-08-01-preview': from ..v2018_08_01_preview.aio.operations import Operations as OperationClass - elif api_version == "2019-02-01": + elif api_version == '2019-02-01': from ..v2019_02_01.aio.operations import Operations as OperationClass - elif api_version == "2019-04-01": + elif api_version == '2019-04-01': from ..v2019_04_01.aio.operations import Operations as OperationClass - elif api_version == "2019-06-01": + elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import Operations as OperationClass - elif api_version == "2019-08-01": + elif api_version == '2019-08-01': from ..v2019_08_01.aio.operations import Operations as OperationClass - elif api_version == "2019-10-01": + elif api_version == '2019-10-01': from ..v2019_10_01.aio.operations import Operations as OperationClass - elif api_version == "2019-11-01": + elif api_version == '2019-11-01': from ..v2019_11_01.aio.operations import Operations as OperationClass - elif api_version == "2020-01-01": + elif api_version == '2020-01-01': from ..v2020_01_01.aio.operations import Operations as OperationClass - elif api_version == "2020-02-01": + elif api_version == '2020-02-01': from ..v2020_02_01.aio.operations import Operations as OperationClass - elif api_version == "2020-03-01": + elif api_version == '2020-03-01': from ..v2020_03_01.aio.operations import Operations as OperationClass - elif api_version == "2020-04-01": + elif api_version == '2020-04-01': from ..v2020_04_01.aio.operations import Operations as OperationClass - elif api_version == "2020-06-01": + elif api_version == '2020-06-01': from ..v2020_06_01.aio.operations import Operations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from ..v2020_07_01.aio.operations import Operations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from ..v2020_09_01.aio.operations import Operations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import Operations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import Operations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import Operations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import Operations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import Operations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import Operations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import Operations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import Operations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import Operations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import Operations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import Operations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import Operations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import Operations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import Operations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import Operations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import Operations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import Operations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import Operations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import Operations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import Operations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import Operations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import Operations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import Operations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import Operations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import Operations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import Operations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import Operations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import Operations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import Operations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import Operations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import Operations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import Operations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import Operations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def private_endpoint_connections(self): """Instance depends on the API version: - * 2020-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2020-12-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-08-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-10-01: :class:`PrivateEndpointConnectionsOperations` - * 2021-11-01-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-04-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-08-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-08-03-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-09-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-10-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2022-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2022-11-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-03-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-04-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-08-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-08-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-09-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-09-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-10-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-10-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2023-11-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-11-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-01-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-02-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-02-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-03-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-04-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-05-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-05-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-06-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-07-01: :class:`PrivateEndpointConnectionsOperations` - * 2024-07-02-preview: :class:`PrivateEndpointConnectionsOperations` - * 2024-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2020-12-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-10-01: :class:`PrivateEndpointConnectionsOperations` + * 2021-11-01-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-04-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-08-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-08-03-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-09-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-10-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2022-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2022-11-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-03-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-04-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-06-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-08-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-08-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-09-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-09-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-10-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-10-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2023-11-01: :class:`PrivateEndpointConnectionsOperations` + * 2023-11-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-02-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-02-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-03-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-04-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-05-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-06-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-07-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-07-02-preview: :class:`PrivateEndpointConnectionsOperations` + * 2024-08-01: :class:`PrivateEndpointConnectionsOperations` """ - api_version = self._get_api_version("private_endpoint_connections") - if api_version == "2020-06-01": + api_version = self._get_api_version('private_endpoint_connections') + if api_version == '2020-06-01': from ..v2020_06_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-07-01": + elif api_version == '2020-07-01': from ..v2020_07_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-09-01": + elif api_version == '2020-09-01': from ..v2020_09_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'private_endpoint_connections'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def private_link_resources(self): """Instance depends on the API version: - * 2020-09-01: :class:`PrivateLinkResourcesOperations` - * 2020-11-01: :class:`PrivateLinkResourcesOperations` - * 2020-12-01: :class:`PrivateLinkResourcesOperations` - * 2021-02-01: :class:`PrivateLinkResourcesOperations` - * 2021-03-01: :class:`PrivateLinkResourcesOperations` - * 2021-05-01: :class:`PrivateLinkResourcesOperations` - * 2021-07-01: :class:`PrivateLinkResourcesOperations` - * 2021-08-01: :class:`PrivateLinkResourcesOperations` - * 2021-09-01: :class:`PrivateLinkResourcesOperations` - * 2021-10-01: :class:`PrivateLinkResourcesOperations` - * 2021-11-01-preview: :class:`PrivateLinkResourcesOperations` - * 2022-01-01: :class:`PrivateLinkResourcesOperations` - * 2022-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-02-01: :class:`PrivateLinkResourcesOperations` - * 2022-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-03-01: :class:`PrivateLinkResourcesOperations` - * 2022-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-04-01: :class:`PrivateLinkResourcesOperations` - * 2022-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-06-01: :class:`PrivateLinkResourcesOperations` - * 2022-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-07-01: :class:`PrivateLinkResourcesOperations` - * 2022-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-08-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-08-03-preview: :class:`PrivateLinkResourcesOperations` - * 2022-09-01: :class:`PrivateLinkResourcesOperations` - * 2022-09-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-10-02-preview: :class:`PrivateLinkResourcesOperations` - * 2022-11-01: :class:`PrivateLinkResourcesOperations` - * 2022-11-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-01-01: :class:`PrivateLinkResourcesOperations` - * 2023-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-02-01: :class:`PrivateLinkResourcesOperations` - * 2023-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-03-01: :class:`PrivateLinkResourcesOperations` - * 2023-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-04-01: :class:`PrivateLinkResourcesOperations` - * 2023-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-05-01: :class:`PrivateLinkResourcesOperations` - * 2023-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-06-01: :class:`PrivateLinkResourcesOperations` - * 2023-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-07-01: :class:`PrivateLinkResourcesOperations` - * 2023-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-08-01: :class:`PrivateLinkResourcesOperations` - * 2023-08-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-09-01: :class:`PrivateLinkResourcesOperations` - * 2023-09-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-10-01: :class:`PrivateLinkResourcesOperations` - * 2023-10-02-preview: :class:`PrivateLinkResourcesOperations` - * 2023-11-01: :class:`PrivateLinkResourcesOperations` - * 2023-11-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-01-01: :class:`PrivateLinkResourcesOperations` - * 2024-01-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-02-01: :class:`PrivateLinkResourcesOperations` - * 2024-02-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-03-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-04-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-05-01: :class:`PrivateLinkResourcesOperations` - * 2024-05-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-06-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-07-01: :class:`PrivateLinkResourcesOperations` - * 2024-07-02-preview: :class:`PrivateLinkResourcesOperations` - * 2024-08-01: :class:`PrivateLinkResourcesOperations` + * 2020-09-01: :class:`PrivateLinkResourcesOperations` + * 2020-11-01: :class:`PrivateLinkResourcesOperations` + * 2020-12-01: :class:`PrivateLinkResourcesOperations` + * 2021-02-01: :class:`PrivateLinkResourcesOperations` + * 2021-03-01: :class:`PrivateLinkResourcesOperations` + * 2021-05-01: :class:`PrivateLinkResourcesOperations` + * 2021-07-01: :class:`PrivateLinkResourcesOperations` + * 2021-08-01: :class:`PrivateLinkResourcesOperations` + * 2021-09-01: :class:`PrivateLinkResourcesOperations` + * 2021-10-01: :class:`PrivateLinkResourcesOperations` + * 2021-11-01-preview: :class:`PrivateLinkResourcesOperations` + * 2022-01-01: :class:`PrivateLinkResourcesOperations` + * 2022-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-02-01: :class:`PrivateLinkResourcesOperations` + * 2022-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-03-01: :class:`PrivateLinkResourcesOperations` + * 2022-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-04-01: :class:`PrivateLinkResourcesOperations` + * 2022-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-06-01: :class:`PrivateLinkResourcesOperations` + * 2022-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-07-01: :class:`PrivateLinkResourcesOperations` + * 2022-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-08-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-08-03-preview: :class:`PrivateLinkResourcesOperations` + * 2022-09-01: :class:`PrivateLinkResourcesOperations` + * 2022-09-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-10-02-preview: :class:`PrivateLinkResourcesOperations` + * 2022-11-01: :class:`PrivateLinkResourcesOperations` + * 2022-11-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-01-01: :class:`PrivateLinkResourcesOperations` + * 2023-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-02-01: :class:`PrivateLinkResourcesOperations` + * 2023-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-03-01: :class:`PrivateLinkResourcesOperations` + * 2023-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-04-01: :class:`PrivateLinkResourcesOperations` + * 2023-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-05-01: :class:`PrivateLinkResourcesOperations` + * 2023-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-06-01: :class:`PrivateLinkResourcesOperations` + * 2023-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-07-01: :class:`PrivateLinkResourcesOperations` + * 2023-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-08-01: :class:`PrivateLinkResourcesOperations` + * 2023-08-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-09-01: :class:`PrivateLinkResourcesOperations` + * 2023-09-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-10-01: :class:`PrivateLinkResourcesOperations` + * 2023-10-02-preview: :class:`PrivateLinkResourcesOperations` + * 2023-11-01: :class:`PrivateLinkResourcesOperations` + * 2023-11-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-01-01: :class:`PrivateLinkResourcesOperations` + * 2024-01-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-02-01: :class:`PrivateLinkResourcesOperations` + * 2024-02-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-03-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-04-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-05-01: :class:`PrivateLinkResourcesOperations` + * 2024-05-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-06-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-07-01: :class:`PrivateLinkResourcesOperations` + * 2024-07-02-preview: :class:`PrivateLinkResourcesOperations` + * 2024-08-01: :class:`PrivateLinkResourcesOperations` """ - api_version = self._get_api_version("private_link_resources") - if api_version == "2020-09-01": + api_version = self._get_api_version('private_link_resources') + if api_version == '2020-09-01': from ..v2020_09_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import PrivateLinkResourcesOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'private_link_resources'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def resolve_private_link_service_id(self): """Instance depends on the API version: - * 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2020-12-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-08-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-10-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2021-11-01-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-04-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-06-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-08-03-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2022-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-03-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-04-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-06-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-08-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-09-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-10-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-11-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2023-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-01-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-02-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-05-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-07-01: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` - * 2024-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2020-12-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-10-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2021-11-01-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-04-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-06-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-08-03-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2022-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-03-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-04-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-06-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-08-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-08-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-09-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-09-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-10-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-10-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-11-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2023-11-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-01-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-01-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-02-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-02-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-03-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-04-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-05-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-05-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-06-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-07-01: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-07-02-preview: :class:`ResolvePrivateLinkServiceIdOperations` + * 2024-08-01: :class:`ResolvePrivateLinkServiceIdOperations` """ - api_version = self._get_api_version("resolve_private_link_service_id") - if api_version == "2020-09-01": + api_version = self._get_api_version('resolve_private_link_service_id') + if api_version == '2020-09-01': from ..v2020_09_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2020-11-01": + elif api_version == '2020-11-01': from ..v2020_11_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2020-12-01": + elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-02-01": + elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-03-01": + elif api_version == '2021-03-01': from ..v2021_03_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-05-01": + elif api_version == '2021-05-01': from ..v2021_05_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-07-01": + elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-08-01": + elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import ResolvePrivateLinkServiceIdOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def snapshots(self): """Instance depends on the API version: - * 2021-08-01: :class:`SnapshotsOperations` - * 2021-09-01: :class:`SnapshotsOperations` - * 2021-10-01: :class:`SnapshotsOperations` - * 2021-11-01-preview: :class:`SnapshotsOperations` - * 2022-01-01: :class:`SnapshotsOperations` - * 2022-01-02-preview: :class:`SnapshotsOperations` - * 2022-02-01: :class:`SnapshotsOperations` - * 2022-02-02-preview: :class:`SnapshotsOperations` - * 2022-03-01: :class:`SnapshotsOperations` - * 2022-03-02-preview: :class:`SnapshotsOperations` - * 2022-04-01: :class:`SnapshotsOperations` - * 2022-04-02-preview: :class:`SnapshotsOperations` - * 2022-05-02-preview: :class:`SnapshotsOperations` - * 2022-06-01: :class:`SnapshotsOperations` - * 2022-06-02-preview: :class:`SnapshotsOperations` - * 2022-07-01: :class:`SnapshotsOperations` - * 2022-07-02-preview: :class:`SnapshotsOperations` - * 2022-08-02-preview: :class:`SnapshotsOperations` - * 2022-08-03-preview: :class:`SnapshotsOperations` - * 2022-09-01: :class:`SnapshotsOperations` - * 2022-09-02-preview: :class:`SnapshotsOperations` - * 2022-10-02-preview: :class:`SnapshotsOperations` - * 2022-11-01: :class:`SnapshotsOperations` - * 2022-11-02-preview: :class:`SnapshotsOperations` - * 2023-01-01: :class:`SnapshotsOperations` - * 2023-01-02-preview: :class:`SnapshotsOperations` - * 2023-02-01: :class:`SnapshotsOperations` - * 2023-02-02-preview: :class:`SnapshotsOperations` - * 2023-03-01: :class:`SnapshotsOperations` - * 2023-03-02-preview: :class:`SnapshotsOperations` - * 2023-04-01: :class:`SnapshotsOperations` - * 2023-04-02-preview: :class:`SnapshotsOperations` - * 2023-05-01: :class:`SnapshotsOperations` - * 2023-05-02-preview: :class:`SnapshotsOperations` - * 2023-06-01: :class:`SnapshotsOperations` - * 2023-06-02-preview: :class:`SnapshotsOperations` - * 2023-07-01: :class:`SnapshotsOperations` - * 2023-07-02-preview: :class:`SnapshotsOperations` - * 2023-08-01: :class:`SnapshotsOperations` - * 2023-08-02-preview: :class:`SnapshotsOperations` - * 2023-09-01: :class:`SnapshotsOperations` - * 2023-09-02-preview: :class:`SnapshotsOperations` - * 2023-10-01: :class:`SnapshotsOperations` - * 2023-10-02-preview: :class:`SnapshotsOperations` - * 2023-11-01: :class:`SnapshotsOperations` - * 2023-11-02-preview: :class:`SnapshotsOperations` - * 2024-01-01: :class:`SnapshotsOperations` - * 2024-01-02-preview: :class:`SnapshotsOperations` - * 2024-02-01: :class:`SnapshotsOperations` - * 2024-02-02-preview: :class:`SnapshotsOperations` - * 2024-03-02-preview: :class:`SnapshotsOperations` - * 2024-04-02-preview: :class:`SnapshotsOperations` - * 2024-05-01: :class:`SnapshotsOperations` - * 2024-05-02-preview: :class:`SnapshotsOperations` - * 2024-06-02-preview: :class:`SnapshotsOperations` - * 2024-07-01: :class:`SnapshotsOperations` - * 2024-07-02-preview: :class:`SnapshotsOperations` - * 2024-08-01: :class:`SnapshotsOperations` + * 2021-08-01: :class:`SnapshotsOperations` + * 2021-09-01: :class:`SnapshotsOperations` + * 2021-10-01: :class:`SnapshotsOperations` + * 2021-11-01-preview: :class:`SnapshotsOperations` + * 2022-01-01: :class:`SnapshotsOperations` + * 2022-01-02-preview: :class:`SnapshotsOperations` + * 2022-02-01: :class:`SnapshotsOperations` + * 2022-02-02-preview: :class:`SnapshotsOperations` + * 2022-03-01: :class:`SnapshotsOperations` + * 2022-03-02-preview: :class:`SnapshotsOperations` + * 2022-04-01: :class:`SnapshotsOperations` + * 2022-04-02-preview: :class:`SnapshotsOperations` + * 2022-05-02-preview: :class:`SnapshotsOperations` + * 2022-06-01: :class:`SnapshotsOperations` + * 2022-06-02-preview: :class:`SnapshotsOperations` + * 2022-07-01: :class:`SnapshotsOperations` + * 2022-07-02-preview: :class:`SnapshotsOperations` + * 2022-08-02-preview: :class:`SnapshotsOperations` + * 2022-08-03-preview: :class:`SnapshotsOperations` + * 2022-09-01: :class:`SnapshotsOperations` + * 2022-09-02-preview: :class:`SnapshotsOperations` + * 2022-10-02-preview: :class:`SnapshotsOperations` + * 2022-11-01: :class:`SnapshotsOperations` + * 2022-11-02-preview: :class:`SnapshotsOperations` + * 2023-01-01: :class:`SnapshotsOperations` + * 2023-01-02-preview: :class:`SnapshotsOperations` + * 2023-02-01: :class:`SnapshotsOperations` + * 2023-02-02-preview: :class:`SnapshotsOperations` + * 2023-03-01: :class:`SnapshotsOperations` + * 2023-03-02-preview: :class:`SnapshotsOperations` + * 2023-04-01: :class:`SnapshotsOperations` + * 2023-04-02-preview: :class:`SnapshotsOperations` + * 2023-05-01: :class:`SnapshotsOperations` + * 2023-05-02-preview: :class:`SnapshotsOperations` + * 2023-06-01: :class:`SnapshotsOperations` + * 2023-06-02-preview: :class:`SnapshotsOperations` + * 2023-07-01: :class:`SnapshotsOperations` + * 2023-07-02-preview: :class:`SnapshotsOperations` + * 2023-08-01: :class:`SnapshotsOperations` + * 2023-08-02-preview: :class:`SnapshotsOperations` + * 2023-09-01: :class:`SnapshotsOperations` + * 2023-09-02-preview: :class:`SnapshotsOperations` + * 2023-10-01: :class:`SnapshotsOperations` + * 2023-10-02-preview: :class:`SnapshotsOperations` + * 2023-11-01: :class:`SnapshotsOperations` + * 2023-11-02-preview: :class:`SnapshotsOperations` + * 2024-01-01: :class:`SnapshotsOperations` + * 2024-01-02-preview: :class:`SnapshotsOperations` + * 2024-02-01: :class:`SnapshotsOperations` + * 2024-02-02-preview: :class:`SnapshotsOperations` + * 2024-03-02-preview: :class:`SnapshotsOperations` + * 2024-04-02-preview: :class:`SnapshotsOperations` + * 2024-05-01: :class:`SnapshotsOperations` + * 2024-05-02-preview: :class:`SnapshotsOperations` + * 2024-06-02-preview: :class:`SnapshotsOperations` + * 2024-07-01: :class:`SnapshotsOperations` + * 2024-07-02-preview: :class:`SnapshotsOperations` + * 2024-08-01: :class:`SnapshotsOperations` """ - api_version = self._get_api_version("snapshots") - if api_version == "2021-08-01": + api_version = self._get_api_version('snapshots') + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-09-01": + elif api_version == '2021-09-01': from ..v2021_09_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-10-01": + elif api_version == '2021-10-01': from ..v2021_10_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2021-11-01-preview": + elif api_version == '2021-11-01-preview': from ..v2021_11_01_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-01-01": + elif api_version == '2022-01-01': from ..v2022_01_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-01-02-preview": + elif api_version == '2022-01-02-preview': from ..v2022_01_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-02-01": + elif api_version == '2022-02-01': from ..v2022_02_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-02-02-preview": + elif api_version == '2022-02-02-preview': from ..v2022_02_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-03-01": + elif api_version == '2022-03-01': from ..v2022_03_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-03-02-preview": + elif api_version == '2022-03-02-preview': from ..v2022_03_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-04-01": + elif api_version == '2022-04-01': from ..v2022_04_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-04-02-preview": + elif api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-06-01": + elif api_version == '2022-06-01': from ..v2022_06_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-07-01": + elif api_version == '2022-07-01': from ..v2022_07_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-09-01": + elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-11-01": + elif api_version == '2022-11-01': from ..v2022_11_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-01-01": + elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-02-01": + elif api_version == '2023-02-01': from ..v2023_02_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-03-01": + elif api_version == '2023-03-01': from ..v2023_03_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-04-01": + elif api_version == '2023-04-01': from ..v2023_04_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-05-01": + elif api_version == '2023-05-01': from ..v2023_05_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-06-01": + elif api_version == '2023-06-01': from ..v2023_06_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-07-01": + elif api_version == '2023-07-01': from ..v2023_07_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-08-01": + elif api_version == '2023-08-01': from ..v2023_08_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import SnapshotsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import SnapshotsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def trusted_access_role_bindings(self): """Instance depends on the API version: - * 2022-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-08-03-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2022-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-09-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-10-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2023-11-01: :class:`TrustedAccessRoleBindingsOperations` - * 2023-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-01-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-02-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-05-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-07-01: :class:`TrustedAccessRoleBindingsOperations` - * 2024-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` - * 2024-08-01: :class:`TrustedAccessRoleBindingsOperations` + * 2022-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-08-03-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2022-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-08-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-09-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-09-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-10-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-10-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2023-11-01: :class:`TrustedAccessRoleBindingsOperations` + * 2023-11-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-01-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-01-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-02-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-02-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-03-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-04-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-05-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-05-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-06-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-07-01: :class:`TrustedAccessRoleBindingsOperations` + * 2024-07-02-preview: :class:`TrustedAccessRoleBindingsOperations` + * 2024-08-01: :class:`TrustedAccessRoleBindingsOperations` """ - api_version = self._get_api_version("trusted_access_role_bindings") - if api_version == "2022-04-02-preview": + api_version = self._get_api_version('trusted_access_role_bindings') + if api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import TrustedAccessRoleBindingsOperations as OperationClass else: - raise ValueError( - "API version {} does not have operation group 'trusted_access_role_bindings'".format(api_version) - ) + raise ValueError("API version {} does not have operation group 'trusted_access_role_bindings'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) @property def trusted_access_roles(self): """Instance depends on the API version: - * 2022-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-08-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-08-03-preview: :class:`TrustedAccessRolesOperations` - * 2022-09-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-10-02-preview: :class:`TrustedAccessRolesOperations` - * 2022-11-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-01-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-02-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-03-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-08-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-09-01: :class:`TrustedAccessRolesOperations` - * 2023-09-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-10-01: :class:`TrustedAccessRolesOperations` - * 2023-10-02-preview: :class:`TrustedAccessRolesOperations` - * 2023-11-01: :class:`TrustedAccessRolesOperations` - * 2023-11-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-01-01: :class:`TrustedAccessRolesOperations` - * 2024-01-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-02-01: :class:`TrustedAccessRolesOperations` - * 2024-02-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-03-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-04-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-05-01: :class:`TrustedAccessRolesOperations` - * 2024-05-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-06-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-07-01: :class:`TrustedAccessRolesOperations` - * 2024-07-02-preview: :class:`TrustedAccessRolesOperations` - * 2024-08-01: :class:`TrustedAccessRolesOperations` + * 2022-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-08-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-08-03-preview: :class:`TrustedAccessRolesOperations` + * 2022-09-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-10-02-preview: :class:`TrustedAccessRolesOperations` + * 2022-11-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-01-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-02-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-03-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-08-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-09-01: :class:`TrustedAccessRolesOperations` + * 2023-09-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-10-01: :class:`TrustedAccessRolesOperations` + * 2023-10-02-preview: :class:`TrustedAccessRolesOperations` + * 2023-11-01: :class:`TrustedAccessRolesOperations` + * 2023-11-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-01-01: :class:`TrustedAccessRolesOperations` + * 2024-01-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-02-01: :class:`TrustedAccessRolesOperations` + * 2024-02-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-03-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-04-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-05-01: :class:`TrustedAccessRolesOperations` + * 2024-05-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-06-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-07-01: :class:`TrustedAccessRolesOperations` + * 2024-07-02-preview: :class:`TrustedAccessRolesOperations` + * 2024-08-01: :class:`TrustedAccessRolesOperations` """ - api_version = self._get_api_version("trusted_access_roles") - if api_version == "2022-04-02-preview": + api_version = self._get_api_version('trusted_access_roles') + if api_version == '2022-04-02-preview': from ..v2022_04_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-05-02-preview": + elif api_version == '2022-05-02-preview': from ..v2022_05_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-06-02-preview": + elif api_version == '2022-06-02-preview': from ..v2022_06_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-07-02-preview": + elif api_version == '2022-07-02-preview': from ..v2022_07_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-08-02-preview": + elif api_version == '2022-08-02-preview': from ..v2022_08_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-08-03-preview": + elif api_version == '2022-08-03-preview': from ..v2022_08_03_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-09-02-preview": + elif api_version == '2022-09-02-preview': from ..v2022_09_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-10-02-preview": + elif api_version == '2022-10-02-preview': from ..v2022_10_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2022-11-02-preview": + elif api_version == '2022-11-02-preview': from ..v2022_11_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-01-02-preview": + elif api_version == '2023-01-02-preview': from ..v2023_01_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-02-02-preview": + elif api_version == '2023-02-02-preview': from ..v2023_02_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-03-02-preview": + elif api_version == '2023-03-02-preview': from ..v2023_03_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-04-02-preview": + elif api_version == '2023-04-02-preview': from ..v2023_04_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-05-02-preview": + elif api_version == '2023-05-02-preview': from ..v2023_05_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-06-02-preview": + elif api_version == '2023-06-02-preview': from ..v2023_06_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-07-02-preview": + elif api_version == '2023-07-02-preview': from ..v2023_07_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-08-02-preview": + elif api_version == '2023-08-02-preview': from ..v2023_08_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-09-01": + elif api_version == '2023-09-01': from ..v2023_09_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-09-02-preview": + elif api_version == '2023-09-02-preview': from ..v2023_09_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-10-01": + elif api_version == '2023-10-01': from ..v2023_10_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-10-02-preview": + elif api_version == '2023-10-02-preview': from ..v2023_10_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-11-01": + elif api_version == '2023-11-01': from ..v2023_11_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2023-11-02-preview": + elif api_version == '2023-11-02-preview': from ..v2023_11_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-01-01": + elif api_version == '2024-01-01': from ..v2024_01_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-01-02-preview": + elif api_version == '2024-01-02-preview': from ..v2024_01_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-02-01": + elif api_version == '2024-02-01': from ..v2024_02_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-02-02-preview": + elif api_version == '2024-02-02-preview': from ..v2024_02_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-03-02-preview": + elif api_version == '2024-03-02-preview': from ..v2024_03_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-04-02-preview": + elif api_version == '2024-04-02-preview': from ..v2024_04_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-05-01": + elif api_version == '2024-05-01': from ..v2024_05_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-05-02-preview": + elif api_version == '2024-05-02-preview': from ..v2024_05_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-06-02-preview": + elif api_version == '2024-06-02-preview': from ..v2024_06_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-07-01": + elif api_version == '2024-07-01': from ..v2024_07_01.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-07-02-preview": + elif api_version == '2024-07-02-preview': from ..v2024_07_02_preview.aio.operations import TrustedAccessRolesOperations as OperationClass - elif api_version == "2024-08-01": + elif api_version == '2024-08-01': from ..v2024_08_01.aio.operations import TrustedAccessRolesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'trusted_access_roles'".format(api_version)) self._config.api_version = api_version - return OperationClass( - self._client, - self._config, - Serializer(self._models_dict(api_version)), - Deserializer(self._models_dict(api_version)), - api_version, - ) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version) async def close(self): await self._client.close() - async def __aenter__(self): await self._client.__aenter__() return self - async def __aexit__(self, *exc_details): await self._client.__aexit__(*exc_details) diff --git a/sdk/containerservice/azure-mgmt-containerservice/setup.py b/sdk/containerservice/azure-mgmt-containerservice/setup.py index cebcbd8e986e..2aae6908860b 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/setup.py +++ b/sdk/containerservice/azure-mgmt-containerservice/setup.py @@ -22,11 +22,9 @@ # Version extraction inspired from 'requests' with open( - ( - os.path.join(package_folder_path, "version.py") - if os.path.exists(os.path.join(package_folder_path, "version.py")) - else os.path.join(package_folder_path, "_version.py") - ), + os.path.join(package_folder_path, "version.py") + if os.path.exists(os.path.join(package_folder_path, "version.py")) + else os.path.join(package_folder_path, "_version.py"), "r", ) as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)