# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin
from msrest import Deserializer, Serializer

from ._configuration import DataBoxEdgeManagementClientConfiguration

if TYPE_CHECKING:
    # 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."
        Will be removed in final version of multiapi azure-core based client
        """
        pass

class DataBoxEdgeManagementClient(MultiApiClientMixin, _SDKClient):
    """The DataBoxEdge Client.

    This ready contains multiple API versions, to help you deal with all of the Azure clouds
    (Azure Stack, Azure Government, Azure China, etc.).
    By default, it uses the latest API version available on public Azure.
    For production, you should stick to a particular api-version and/or profile.
    The profile sets a mapping between an operation group and its API version.
    The api-version parameter sets the default API version if the operation
    group is not described in the profile.

    :param credential: Credential needed for the client to connect to Azure.
    :type credential: ~azure.core.credentials_async.AsyncTokenCredential
    :param subscription_id: The subscription ID.
    :type subscription_id: str
    :param api_version: API version to use if no profile is provided, or if missing in profile.
    :type api_version: str
    :param base_url: Service URL
    :type base_url: str
    :param profile: A profile definition, from KnownProfiles to dict.
    :type profile: azure.profiles.KnownProfiles
    :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
    """

    DEFAULT_API_VERSION = '2020-09-01'
    _PROFILE_TAG = "azure.mgmt.databoxedge.DataBoxEdgeManagementClient"
    LATEST_PROFILE = ProfileDefinition({
        _PROFILE_TAG: {
            None: DEFAULT_API_VERSION,
            'skus': '2019-08-01',
        }},
        _PROFILE_TAG + " latest"
    )

    def __init__(
        self,
        credential: "AsyncTokenCredential",
        subscription_id: str,
        api_version: Optional[str] = None,
        base_url: Optional[str] = None,
        profile: KnownProfiles = KnownProfiles.default,
        **kwargs  # type: Any
    ) -> None:
        if not base_url:
            base_url = 'https://management.azure.com'
        self._config = DataBoxEdgeManagementClientConfiguration(credential, subscription_id, **kwargs)
        self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
        super(DataBoxEdgeManagementClient, self).__init__(
            api_version=api_version,
            profile=profile
        )

    @classmethod
    def _models_dict(cls, api_version):
        return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)}

    @classmethod
    def models(cls, api_version=DEFAULT_API_VERSION):
        """Module depends on the API version:

           * 2019-03-01: :mod:`v2019_03_01.models<azure.mgmt.databoxedge.v2019_03_01.models>`
           * 2019-07-01: :mod:`v2019_07_01.models<azure.mgmt.databoxedge.v2019_07_01.models>`
           * 2019-08-01: :mod:`v2019_08_01.models<azure.mgmt.databoxedge.v2019_08_01.models>`
           * 2020-05-01-preview: :mod:`v2020_05_01_preview.models<azure.mgmt.databoxedge.v2020_05_01_preview.models>`
           * 2020-09-01: :mod:`v2020_09_01.models<azure.mgmt.databoxedge.v2020_09_01.models>`
           * 2020-09-01-preview: :mod:`v2020_09_01_preview.models<azure.mgmt.databoxedge.v2020_09_01_preview.models>`
           * 2021-02-01-preview: :mod:`v2021_02_01_preview.models<azure.mgmt.databoxedge.v2021_02_01_preview.models>`
        """
        if api_version == '2019-03-01':
            from ..v2019_03_01 import models
            return models
        elif api_version == '2019-07-01':
            from ..v2019_07_01 import models
            return models
        elif api_version == '2019-08-01':
            from ..v2019_08_01 import models
            return models
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview import models
            return models
        elif api_version == '2020-09-01':
            from ..v2020_09_01 import models
            return models
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview import models
            return models
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview import models
            return models
        raise ValueError("API version {} is not available".format(api_version))

    @property
    def addons(self):
        """Instance depends on the API version:

           * 2020-09-01: :class:`AddonsOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.AddonsOperations>`
           * 2020-09-01-preview: :class:`AddonsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.AddonsOperations>`
           * 2021-02-01-preview: :class:`AddonsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.AddonsOperations>`
        """
        api_version = self._get_api_version('addons')
        if api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import AddonsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import AddonsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import AddonsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'addons'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def alerts(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.AlertsOperations>`
           * 2019-07-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.AlertsOperations>`
           * 2019-08-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.AlertsOperations>`
           * 2020-05-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.AlertsOperations>`
           * 2020-09-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.AlertsOperations>`
           * 2020-09-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.AlertsOperations>`
           * 2021-02-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.AlertsOperations>`
        """
        api_version = self._get_api_version('alerts')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import AlertsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import AlertsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'alerts'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def available_skus(self):
        """Instance depends on the API version:

           * 2020-05-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.AvailableSkusOperations>`
           * 2020-09-01: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.AvailableSkusOperations>`
           * 2020-09-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.AvailableSkusOperations>`
           * 2021-02-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.AvailableSkusOperations>`
        """
        api_version = self._get_api_version('available_skus')
        if api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import AvailableSkusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'available_skus'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def bandwidth_schedules(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.BandwidthSchedulesOperations>`
           * 2019-07-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.BandwidthSchedulesOperations>`
           * 2019-08-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.BandwidthSchedulesOperations>`
           * 2020-05-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.BandwidthSchedulesOperations>`
           * 2020-09-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.BandwidthSchedulesOperations>`
           * 2020-09-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.BandwidthSchedulesOperations>`
           * 2021-02-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.BandwidthSchedulesOperations>`
        """
        api_version = self._get_api_version('bandwidth_schedules')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import BandwidthSchedulesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'bandwidth_schedules'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def containers(self):
        """Instance depends on the API version:

           * 2019-08-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.ContainersOperations>`
           * 2020-05-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.ContainersOperations>`
           * 2020-09-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.ContainersOperations>`
           * 2020-09-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.ContainersOperations>`
           * 2021-02-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.ContainersOperations>`
        """
        api_version = self._get_api_version('containers')
        if api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import ContainersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import ContainersOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import ContainersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import ContainersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import ContainersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'containers'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def devices(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.DevicesOperations>`
           * 2019-07-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.DevicesOperations>`
           * 2019-08-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.DevicesOperations>`
           * 2020-05-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.DevicesOperations>`
           * 2020-09-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.DevicesOperations>`
           * 2020-09-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.DevicesOperations>`
           * 2021-02-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.DevicesOperations>`
        """
        api_version = self._get_api_version('devices')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import DevicesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import DevicesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'devices'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def jobs(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.JobsOperations>`
           * 2019-07-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.JobsOperations>`
           * 2019-08-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.JobsOperations>`
           * 2020-05-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.JobsOperations>`
           * 2020-09-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.JobsOperations>`
           * 2020-09-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.JobsOperations>`
           * 2021-02-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.JobsOperations>`
        """
        api_version = self._get_api_version('jobs')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import JobsOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import JobsOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import JobsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import JobsOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import JobsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import JobsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import JobsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'jobs'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def monitoring_config(self):
        """Instance depends on the API version:

           * 2020-09-01: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.MonitoringConfigOperations>`
           * 2020-09-01-preview: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.MonitoringConfigOperations>`
           * 2021-02-01-preview: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.MonitoringConfigOperations>`
        """
        api_version = self._get_api_version('monitoring_config')
        if api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import MonitoringConfigOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'monitoring_config'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def nodes(self):
        """Instance depends on the API version:

           * 2019-07-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.NodesOperations>`
           * 2019-08-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.NodesOperations>`
           * 2020-05-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.NodesOperations>`
           * 2020-09-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.NodesOperations>`
           * 2020-09-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.NodesOperations>`
           * 2021-02-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.NodesOperations>`
        """
        api_version = self._get_api_version('nodes')
        if api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import NodesOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import NodesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import NodesOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import NodesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import NodesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import NodesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'nodes'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def operations(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`Operations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.Operations>`
           * 2019-07-01: :class:`Operations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.Operations>`
           * 2019-08-01: :class:`Operations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.Operations>`
           * 2020-05-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.Operations>`
           * 2020-09-01: :class:`Operations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.Operations>`
           * 2020-09-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.Operations>`
           * 2021-02-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.Operations>`
        """
        api_version = self._get_api_version('operations')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import Operations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import Operations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import Operations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import Operations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import Operations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import Operations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import Operations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def operations_status(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.OperationsStatusOperations>`
           * 2019-07-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.OperationsStatusOperations>`
           * 2019-08-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.OperationsStatusOperations>`
           * 2020-05-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.OperationsStatusOperations>`
           * 2020-09-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.OperationsStatusOperations>`
           * 2020-09-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.OperationsStatusOperations>`
           * 2021-02-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.OperationsStatusOperations>`
        """
        api_version = self._get_api_version('operations_status')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import OperationsStatusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'operations_status'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def orders(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.OrdersOperations>`
           * 2019-07-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.OrdersOperations>`
           * 2019-08-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.OrdersOperations>`
           * 2020-05-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.OrdersOperations>`
           * 2020-09-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.OrdersOperations>`
           * 2020-09-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.OrdersOperations>`
           * 2021-02-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.OrdersOperations>`
        """
        api_version = self._get_api_version('orders')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import OrdersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import OrdersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'orders'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def roles(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.RolesOperations>`
           * 2019-07-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.RolesOperations>`
           * 2019-08-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.RolesOperations>`
           * 2020-05-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.RolesOperations>`
           * 2020-09-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.RolesOperations>`
           * 2020-09-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.RolesOperations>`
           * 2021-02-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.RolesOperations>`
        """
        api_version = self._get_api_version('roles')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import RolesOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import RolesOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import RolesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import RolesOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import RolesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import RolesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import RolesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'roles'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def shares(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.SharesOperations>`
           * 2019-07-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.SharesOperations>`
           * 2019-08-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.SharesOperations>`
           * 2020-05-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.SharesOperations>`
           * 2020-09-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.SharesOperations>`
           * 2020-09-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.SharesOperations>`
           * 2021-02-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.SharesOperations>`
        """
        api_version = self._get_api_version('shares')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import SharesOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import SharesOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import SharesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import SharesOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import SharesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import SharesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import SharesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'shares'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def skus(self):
        """Instance depends on the API version:

           * 2019-08-01: :class:`SkusOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.SkusOperations>`
           * 2020-05-01-preview: :class:`SkusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.SkusOperations>`
        """
        api_version = self._get_api_version('skus')
        if api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import SkusOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import SkusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'skus'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def storage_account_credentials(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.StorageAccountCredentialsOperations>`
           * 2019-07-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.StorageAccountCredentialsOperations>`
           * 2019-08-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.StorageAccountCredentialsOperations>`
           * 2020-05-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.StorageAccountCredentialsOperations>`
           * 2020-09-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.StorageAccountCredentialsOperations>`
           * 2020-09-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.StorageAccountCredentialsOperations>`
           * 2021-02-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.StorageAccountCredentialsOperations>`
        """
        api_version = self._get_api_version('storage_account_credentials')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import StorageAccountCredentialsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'storage_account_credentials'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def storage_accounts(self):
        """Instance depends on the API version:

           * 2019-08-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.StorageAccountsOperations>`
           * 2020-05-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.StorageAccountsOperations>`
           * 2020-09-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.StorageAccountsOperations>`
           * 2020-09-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.StorageAccountsOperations>`
           * 2021-02-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.StorageAccountsOperations>`
        """
        api_version = self._get_api_version('storage_accounts')
        if api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import StorageAccountsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def triggers(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.TriggersOperations>`
           * 2019-07-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.TriggersOperations>`
           * 2019-08-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.TriggersOperations>`
           * 2020-05-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.TriggersOperations>`
           * 2020-09-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.TriggersOperations>`
           * 2020-09-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.TriggersOperations>`
           * 2021-02-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.TriggersOperations>`
        """
        api_version = self._get_api_version('triggers')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import TriggersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import TriggersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'triggers'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

    @property
    def users(self):
        """Instance depends on the API version:

           * 2019-03-01: :class:`UsersOperations<azure.mgmt.databoxedge.v2019_03_01.aio.operations.UsersOperations>`
           * 2019-07-01: :class:`UsersOperations<azure.mgmt.databoxedge.v2019_07_01.aio.operations.UsersOperations>`
           * 2019-08-01: :class:`UsersOperations<azure.mgmt.databoxedge.v2019_08_01.aio.operations.UsersOperations>`
           * 2020-05-01-preview: :class:`UsersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.aio.operations.UsersOperations>`
           * 2020-09-01: :class:`UsersOperations<azure.mgmt.databoxedge.v2020_09_01.aio.operations.UsersOperations>`
           * 2020-09-01-preview: :class:`UsersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.aio.operations.UsersOperations>`
           * 2021-02-01-preview: :class:`UsersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.aio.operations.UsersOperations>`
        """
        api_version = self._get_api_version('users')
        if api_version == '2019-03-01':
            from ..v2019_03_01.aio.operations import UsersOperations as OperationClass
        elif api_version == '2019-07-01':
            from ..v2019_07_01.aio.operations import UsersOperations as OperationClass
        elif api_version == '2019-08-01':
            from ..v2019_08_01.aio.operations import UsersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from ..v2020_05_01_preview.aio.operations import UsersOperations as OperationClass
        elif api_version == '2020-09-01':
            from ..v2020_09_01.aio.operations import UsersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from ..v2020_09_01_preview.aio.operations import UsersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from ..v2021_02_01_preview.aio.operations import UsersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'users'".format(api_version))
        return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(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)
