# 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.mgmt.core import ARMPipelineClient
from azure.profiles import KnownProfiles, ProfileDefinition
from azure.profiles.multiapiclient import MultiApiClientMixin

from ._configuration import DataBoxEdgeManagementClientConfiguration
from ._serialization import Deserializer, Serializer

if TYPE_CHECKING:
    # 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."
        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. Required.
    :type credential: ~azure.core.credentials.TokenCredential
    :param subscription_id: The subscription ID. Required.
    :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 = '2022-03-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: "TokenCredential",
        subscription_id: str,
        api_version: Optional[str]=None,
        base_url: str = "https://management.azure.com",
        profile: KnownProfiles=KnownProfiles.default,
        **kwargs: Any
    ):
        self._config = DataBoxEdgeManagementClientConfiguration(credential, subscription_id, **kwargs)
        self._client = ARMPipelineClient(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>`
           * 2020-12-01: :mod:`v2020_12_01.models<azure.mgmt.databoxedge.v2020_12_01.models>`
           * 2021-02-01: :mod:`v2021_02_01.models<azure.mgmt.databoxedge.v2021_02_01.models>`
           * 2021-02-01-preview: :mod:`v2021_02_01_preview.models<azure.mgmt.databoxedge.v2021_02_01_preview.models>`
           * 2022-03-01: :mod:`v2022_03_01.models<azure.mgmt.databoxedge.v2022_03_01.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 == '2020-12-01':
            from .v2020_12_01 import models
            return models
        elif api_version == '2021-02-01':
            from .v2021_02_01 import models
            return models
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview import models
            return models
        elif api_version == '2022-03-01':
            from .v2022_03_01 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.operations.AddonsOperations>`
           * 2020-09-01-preview: :class:`AddonsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.AddonsOperations>`
           * 2020-12-01: :class:`AddonsOperations<azure.mgmt.databoxedge.v2020_12_01.operations.AddonsOperations>`
           * 2021-02-01: :class:`AddonsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.AddonsOperations>`
           * 2021-02-01-preview: :class:`AddonsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.AddonsOperations>`
           * 2022-03-01: :class:`AddonsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.AddonsOperations>`
        """
        api_version = self._get_api_version('addons')
        if api_version == '2020-09-01':
            from .v2020_09_01.operations import AddonsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import AddonsOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import AddonsOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import AddonsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import AddonsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import AddonsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'addons'".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)))

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

           * 2019-03-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_03_01.operations.AlertsOperations>`
           * 2019-07-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_07_01.operations.AlertsOperations>`
           * 2019-08-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2019_08_01.operations.AlertsOperations>`
           * 2020-05-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.AlertsOperations>`
           * 2020-09-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_09_01.operations.AlertsOperations>`
           * 2020-09-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.AlertsOperations>`
           * 2020-12-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2020_12_01.operations.AlertsOperations>`
           * 2021-02-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.AlertsOperations>`
           * 2021-02-01-preview: :class:`AlertsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.AlertsOperations>`
           * 2022-03-01: :class:`AlertsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.AlertsOperations>`
        """
        api_version = self._get_api_version('alerts')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import AlertsOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import AlertsOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import AlertsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import AlertsOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import AlertsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import AlertsOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import AlertsOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import AlertsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import AlertsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import AlertsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'alerts'".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)))

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

           * 2020-05-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.AvailableSkusOperations>`
           * 2020-09-01: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_09_01.operations.AvailableSkusOperations>`
           * 2020-09-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.AvailableSkusOperations>`
           * 2020-12-01: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2020_12_01.operations.AvailableSkusOperations>`
           * 2021-02-01: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2021_02_01.operations.AvailableSkusOperations>`
           * 2021-02-01-preview: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.AvailableSkusOperations>`
           * 2022-03-01: :class:`AvailableSkusOperations<azure.mgmt.databoxedge.v2022_03_01.operations.AvailableSkusOperations>`
        """
        api_version = self._get_api_version('available_skus')
        if api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import AvailableSkusOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import AvailableSkusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'available_skus'".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)))

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

           * 2019-03-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_03_01.operations.BandwidthSchedulesOperations>`
           * 2019-07-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_07_01.operations.BandwidthSchedulesOperations>`
           * 2019-08-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2019_08_01.operations.BandwidthSchedulesOperations>`
           * 2020-05-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.BandwidthSchedulesOperations>`
           * 2020-09-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_09_01.operations.BandwidthSchedulesOperations>`
           * 2020-09-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.BandwidthSchedulesOperations>`
           * 2020-12-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2020_12_01.operations.BandwidthSchedulesOperations>`
           * 2021-02-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.BandwidthSchedulesOperations>`
           * 2021-02-01-preview: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.BandwidthSchedulesOperations>`
           * 2022-03-01: :class:`BandwidthSchedulesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.BandwidthSchedulesOperations>`
        """
        api_version = self._get_api_version('bandwidth_schedules')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import BandwidthSchedulesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import BandwidthSchedulesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'bandwidth_schedules'".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)))

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

           * 2019-08-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2019_08_01.operations.ContainersOperations>`
           * 2020-05-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.ContainersOperations>`
           * 2020-09-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_09_01.operations.ContainersOperations>`
           * 2020-09-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.ContainersOperations>`
           * 2020-12-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2020_12_01.operations.ContainersOperations>`
           * 2021-02-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2021_02_01.operations.ContainersOperations>`
           * 2021-02-01-preview: :class:`ContainersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.ContainersOperations>`
           * 2022-03-01: :class:`ContainersOperations<azure.mgmt.databoxedge.v2022_03_01.operations.ContainersOperations>`
        """
        api_version = self._get_api_version('containers')
        if api_version == '2019-08-01':
            from .v2019_08_01.operations import ContainersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import ContainersOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import ContainersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import ContainersOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import ContainersOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import ContainersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import ContainersOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import ContainersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'containers'".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)))

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

           * 2022-03-01: :class:`DeviceCapacityCheckOperations<azure.mgmt.databoxedge.v2022_03_01.operations.DeviceCapacityCheckOperations>`
        """
        api_version = self._get_api_version('device_capacity_check')
        if api_version == '2022-03-01':
            from .v2022_03_01.operations import DeviceCapacityCheckOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'device_capacity_check'".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)))

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

           * 2022-03-01: :class:`DeviceCapacityInfoOperations<azure.mgmt.databoxedge.v2022_03_01.operations.DeviceCapacityInfoOperations>`
        """
        api_version = self._get_api_version('device_capacity_info')
        if api_version == '2022-03-01':
            from .v2022_03_01.operations import DeviceCapacityInfoOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'device_capacity_info'".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)))

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

           * 2019-03-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_03_01.operations.DevicesOperations>`
           * 2019-07-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_07_01.operations.DevicesOperations>`
           * 2019-08-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2019_08_01.operations.DevicesOperations>`
           * 2020-05-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.DevicesOperations>`
           * 2020-09-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_09_01.operations.DevicesOperations>`
           * 2020-09-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.DevicesOperations>`
           * 2020-12-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2020_12_01.operations.DevicesOperations>`
           * 2021-02-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.DevicesOperations>`
           * 2021-02-01-preview: :class:`DevicesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.DevicesOperations>`
           * 2022-03-01: :class:`DevicesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.DevicesOperations>`
        """
        api_version = self._get_api_version('devices')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import DevicesOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import DevicesOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import DevicesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import DevicesOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import DevicesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import DevicesOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import DevicesOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import DevicesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import DevicesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import DevicesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'devices'".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)))

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

           * 2021-02-01: :class:`DiagnosticSettingsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.DiagnosticSettingsOperations>`
           * 2022-03-01: :class:`DiagnosticSettingsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.DiagnosticSettingsOperations>`
        """
        api_version = self._get_api_version('diagnostic_settings')
        if api_version == '2021-02-01':
            from .v2021_02_01.operations import DiagnosticSettingsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import DiagnosticSettingsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'diagnostic_settings'".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)))

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

           * 2019-03-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_03_01.operations.JobsOperations>`
           * 2019-07-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_07_01.operations.JobsOperations>`
           * 2019-08-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2019_08_01.operations.JobsOperations>`
           * 2020-05-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.JobsOperations>`
           * 2020-09-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_09_01.operations.JobsOperations>`
           * 2020-09-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.JobsOperations>`
           * 2020-12-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2020_12_01.operations.JobsOperations>`
           * 2021-02-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.JobsOperations>`
           * 2021-02-01-preview: :class:`JobsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.JobsOperations>`
           * 2022-03-01: :class:`JobsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.JobsOperations>`
        """
        api_version = self._get_api_version('jobs')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import JobsOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import JobsOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import JobsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import JobsOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import JobsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import JobsOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import JobsOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import JobsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import JobsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import JobsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'jobs'".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)))

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

           * 2020-09-01: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2020_09_01.operations.MonitoringConfigOperations>`
           * 2020-09-01-preview: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.MonitoringConfigOperations>`
           * 2020-12-01: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2020_12_01.operations.MonitoringConfigOperations>`
           * 2021-02-01: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2021_02_01.operations.MonitoringConfigOperations>`
           * 2021-02-01-preview: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.MonitoringConfigOperations>`
           * 2022-03-01: :class:`MonitoringConfigOperations<azure.mgmt.databoxedge.v2022_03_01.operations.MonitoringConfigOperations>`
        """
        api_version = self._get_api_version('monitoring_config')
        if api_version == '2020-09-01':
            from .v2020_09_01.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import MonitoringConfigOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import MonitoringConfigOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'monitoring_config'".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)))

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

           * 2019-07-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2019_07_01.operations.NodesOperations>`
           * 2019-08-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2019_08_01.operations.NodesOperations>`
           * 2020-05-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.NodesOperations>`
           * 2020-09-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_09_01.operations.NodesOperations>`
           * 2020-09-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.NodesOperations>`
           * 2020-12-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2020_12_01.operations.NodesOperations>`
           * 2021-02-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.NodesOperations>`
           * 2021-02-01-preview: :class:`NodesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.NodesOperations>`
           * 2022-03-01: :class:`NodesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.NodesOperations>`
        """
        api_version = self._get_api_version('nodes')
        if api_version == '2019-07-01':
            from .v2019_07_01.operations import NodesOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import NodesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import NodesOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import NodesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import NodesOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import NodesOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import NodesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import NodesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import NodesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'nodes'".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)))

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

           * 2019-03-01: :class:`Operations<azure.mgmt.databoxedge.v2019_03_01.operations.Operations>`
           * 2019-07-01: :class:`Operations<azure.mgmt.databoxedge.v2019_07_01.operations.Operations>`
           * 2019-08-01: :class:`Operations<azure.mgmt.databoxedge.v2019_08_01.operations.Operations>`
           * 2020-05-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.Operations>`
           * 2020-09-01: :class:`Operations<azure.mgmt.databoxedge.v2020_09_01.operations.Operations>`
           * 2020-09-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.Operations>`
           * 2020-12-01: :class:`Operations<azure.mgmt.databoxedge.v2020_12_01.operations.Operations>`
           * 2021-02-01: :class:`Operations<azure.mgmt.databoxedge.v2021_02_01.operations.Operations>`
           * 2021-02-01-preview: :class:`Operations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.Operations>`
           * 2022-03-01: :class:`Operations<azure.mgmt.databoxedge.v2022_03_01.operations.Operations>`
        """
        api_version = self._get_api_version('operations')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import Operations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import Operations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import Operations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import Operations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import Operations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import Operations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import Operations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import Operations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import Operations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_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)))

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

           * 2019-03-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_03_01.operations.OperationsStatusOperations>`
           * 2019-07-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_07_01.operations.OperationsStatusOperations>`
           * 2019-08-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2019_08_01.operations.OperationsStatusOperations>`
           * 2020-05-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.OperationsStatusOperations>`
           * 2020-09-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_09_01.operations.OperationsStatusOperations>`
           * 2020-09-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.OperationsStatusOperations>`
           * 2020-12-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2020_12_01.operations.OperationsStatusOperations>`
           * 2021-02-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2021_02_01.operations.OperationsStatusOperations>`
           * 2021-02-01-preview: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.OperationsStatusOperations>`
           * 2022-03-01: :class:`OperationsStatusOperations<azure.mgmt.databoxedge.v2022_03_01.operations.OperationsStatusOperations>`
        """
        api_version = self._get_api_version('operations_status')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import OperationsStatusOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import OperationsStatusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'operations_status'".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)))

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

           * 2019-03-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_03_01.operations.OrdersOperations>`
           * 2019-07-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_07_01.operations.OrdersOperations>`
           * 2019-08-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2019_08_01.operations.OrdersOperations>`
           * 2020-05-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.OrdersOperations>`
           * 2020-09-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_09_01.operations.OrdersOperations>`
           * 2020-09-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.OrdersOperations>`
           * 2020-12-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2020_12_01.operations.OrdersOperations>`
           * 2021-02-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2021_02_01.operations.OrdersOperations>`
           * 2021-02-01-preview: :class:`OrdersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.OrdersOperations>`
           * 2022-03-01: :class:`OrdersOperations<azure.mgmt.databoxedge.v2022_03_01.operations.OrdersOperations>`
        """
        api_version = self._get_api_version('orders')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import OrdersOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import OrdersOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import OrdersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import OrdersOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import OrdersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import OrdersOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import OrdersOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import OrdersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import OrdersOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import OrdersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'orders'".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)))

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

           * 2019-03-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_03_01.operations.RolesOperations>`
           * 2019-07-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_07_01.operations.RolesOperations>`
           * 2019-08-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2019_08_01.operations.RolesOperations>`
           * 2020-05-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.RolesOperations>`
           * 2020-09-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_09_01.operations.RolesOperations>`
           * 2020-09-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.RolesOperations>`
           * 2020-12-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2020_12_01.operations.RolesOperations>`
           * 2021-02-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.RolesOperations>`
           * 2021-02-01-preview: :class:`RolesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.RolesOperations>`
           * 2022-03-01: :class:`RolesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.RolesOperations>`
        """
        api_version = self._get_api_version('roles')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import RolesOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import RolesOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import RolesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import RolesOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import RolesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import RolesOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import RolesOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import RolesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import RolesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import RolesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group '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)))

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

           * 2019-03-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_03_01.operations.SharesOperations>`
           * 2019-07-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_07_01.operations.SharesOperations>`
           * 2019-08-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2019_08_01.operations.SharesOperations>`
           * 2020-05-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.SharesOperations>`
           * 2020-09-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_09_01.operations.SharesOperations>`
           * 2020-09-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.SharesOperations>`
           * 2020-12-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2020_12_01.operations.SharesOperations>`
           * 2021-02-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.SharesOperations>`
           * 2021-02-01-preview: :class:`SharesOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.SharesOperations>`
           * 2022-03-01: :class:`SharesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.SharesOperations>`
        """
        api_version = self._get_api_version('shares')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import SharesOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import SharesOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import SharesOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import SharesOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import SharesOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import SharesOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import SharesOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import SharesOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import SharesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import SharesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'shares'".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)))

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

           * 2019-08-01: :class:`SkusOperations<azure.mgmt.databoxedge.v2019_08_01.operations.SkusOperations>`
           * 2020-05-01-preview: :class:`SkusOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.SkusOperations>`
        """
        api_version = self._get_api_version('skus')
        if api_version == '2019-08-01':
            from .v2019_08_01.operations import SkusOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import SkusOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'skus'".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)))

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

           * 2019-03-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_03_01.operations.StorageAccountCredentialsOperations>`
           * 2019-07-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_07_01.operations.StorageAccountCredentialsOperations>`
           * 2019-08-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2019_08_01.operations.StorageAccountCredentialsOperations>`
           * 2020-05-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.StorageAccountCredentialsOperations>`
           * 2020-09-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_09_01.operations.StorageAccountCredentialsOperations>`
           * 2020-09-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.StorageAccountCredentialsOperations>`
           * 2020-12-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2020_12_01.operations.StorageAccountCredentialsOperations>`
           * 2021-02-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.StorageAccountCredentialsOperations>`
           * 2021-02-01-preview: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.StorageAccountCredentialsOperations>`
           * 2022-03-01: :class:`StorageAccountCredentialsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.StorageAccountCredentialsOperations>`
        """
        api_version = self._get_api_version('storage_account_credentials')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import StorageAccountCredentialsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import StorageAccountCredentialsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'storage_account_credentials'".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)))

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

           * 2019-08-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2019_08_01.operations.StorageAccountsOperations>`
           * 2020-05-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.StorageAccountsOperations>`
           * 2020-09-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_09_01.operations.StorageAccountsOperations>`
           * 2020-09-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.StorageAccountsOperations>`
           * 2020-12-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2020_12_01.operations.StorageAccountsOperations>`
           * 2021-02-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2021_02_01.operations.StorageAccountsOperations>`
           * 2021-02-01-preview: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.StorageAccountsOperations>`
           * 2022-03-01: :class:`StorageAccountsOperations<azure.mgmt.databoxedge.v2022_03_01.operations.StorageAccountsOperations>`
        """
        api_version = self._get_api_version('storage_accounts')
        if api_version == '2019-08-01':
            from .v2019_08_01.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import StorageAccountsOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import StorageAccountsOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'storage_accounts'".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)))

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

           * 2021-02-01: :class:`SupportPackagesOperations<azure.mgmt.databoxedge.v2021_02_01.operations.SupportPackagesOperations>`
           * 2022-03-01: :class:`SupportPackagesOperations<azure.mgmt.databoxedge.v2022_03_01.operations.SupportPackagesOperations>`
        """
        api_version = self._get_api_version('support_packages')
        if api_version == '2021-02-01':
            from .v2021_02_01.operations import SupportPackagesOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import SupportPackagesOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'support_packages'".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)))

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

           * 2019-03-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_03_01.operations.TriggersOperations>`
           * 2019-07-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_07_01.operations.TriggersOperations>`
           * 2019-08-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2019_08_01.operations.TriggersOperations>`
           * 2020-05-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_05_01_preview.operations.TriggersOperations>`
           * 2020-09-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_09_01.operations.TriggersOperations>`
           * 2020-09-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_09_01_preview.operations.TriggersOperations>`
           * 2020-12-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2020_12_01.operations.TriggersOperations>`
           * 2021-02-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2021_02_01.operations.TriggersOperations>`
           * 2021-02-01-preview: :class:`TriggersOperations<azure.mgmt.databoxedge.v2021_02_01_preview.operations.TriggersOperations>`
           * 2022-03-01: :class:`TriggersOperations<azure.mgmt.databoxedge.v2022_03_01.operations.TriggersOperations>`
        """
        api_version = self._get_api_version('triggers')
        if api_version == '2019-03-01':
            from .v2019_03_01.operations import TriggersOperations as OperationClass
        elif api_version == '2019-07-01':
            from .v2019_07_01.operations import TriggersOperations as OperationClass
        elif api_version == '2019-08-01':
            from .v2019_08_01.operations import TriggersOperations as OperationClass
        elif api_version == '2020-05-01-preview':
            from .v2020_05_01_preview.operations import TriggersOperations as OperationClass
        elif api_version == '2020-09-01':
            from .v2020_09_01.operations import TriggersOperations as OperationClass
        elif api_version == '2020-09-01-preview':
            from .v2020_09_01_preview.operations import TriggersOperations as OperationClass
        elif api_version == '2020-12-01':
            from .v2020_12_01.operations import TriggersOperations as OperationClass
        elif api_version == '2021-02-01':
            from .v2021_02_01.operations import TriggersOperations as OperationClass
        elif api_version == '2021-02-01-preview':
            from .v2021_02_01_preview.operations import TriggersOperations as OperationClass
        elif api_version == '2022-03-01':
            from .v2022_03_01.operations import TriggersOperations as OperationClass
        else:
            raise ValueError("API version {} does not have operation group 'triggers'".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)))

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

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

    def close(self):
        self._client.close()
    def __enter__(self):
        self._client.__enter__()
        return self
    def __exit__(self, *exc_details):
        self._client.__exit__(*exc_details)
