99# regenerated.
1010# --------------------------------------------------------------------------
1111
12- from azure .mgmt .core import ARMPipelineClient
13- from msrest import Serializer , Deserializer
12+ from typing import Any , Optional , TYPE_CHECKING
1413
14+ from azure .mgmt .core import ARMPipelineClient
1515from azure .profiles import KnownProfiles , ProfileDefinition
1616from azure .profiles .multiapiclient import MultiApiClientMixin
17+
1718from ._configuration import DataBoxManagementClientConfiguration
19+ from ._operations_mixin import DataBoxManagementClientOperationsMixin
20+ from ._serialization import Deserializer , Serializer
21+
22+ if TYPE_CHECKING :
23+ # pylint: disable=unused-import,ungrouped-imports
24+ from azure .core .credentials import TokenCredential
1825
1926class _SDKClient (object ):
2027 def __init__ (self , * args , ** kwargs ):
@@ -23,7 +30,7 @@ def __init__(self, *args, **kwargs):
2330 """
2431 pass
2532
26- class DataBoxManagementClient (MultiApiClientMixin , _SDKClient ):
33+ class DataBoxManagementClient (DataBoxManagementClientOperationsMixin , MultiApiClientMixin , _SDKClient ):
2734 """The DataBox Client.
2835
2936 This ready contains multiple API versions, to help you deal with all of the Azure clouds
@@ -34,19 +41,20 @@ class DataBoxManagementClient(MultiApiClientMixin, _SDKClient):
3441 The api-version parameter sets the default API version if the operation
3542 group is not described in the profile.
3643
37- :param credential: Credential needed for the client to connect to Azure.
44+ :param credential: Credential needed for the client to connect to Azure. Required.
3845 :type credential: ~azure.core.credentials.TokenCredential
39- :param subscription_id: The Subscription Id.
46+ :param subscription_id: The Subscription Id. Required.
4047 :type subscription_id: str
41- :param str api_version: API version to use if no profile is provided, or if
42- missing in profile.
43- :param str base_url: Service URL
48+ :param api_version: API version to use if no profile is provided, or if missing in profile.
49+ :type api_version: str
50+ :param base_url: Service URL
51+ :type base_url: str
4452 :param profile: A profile definition, from KnownProfiles to dict.
4553 :type profile: azure.profiles.KnownProfiles
4654 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
4755 """
4856
49- DEFAULT_API_VERSION = '2020-11 -01'
57+ DEFAULT_API_VERSION = '2022-10 -01'
5058 _PROFILE_TAG = "azure.mgmt.databox.DataBoxManagementClient"
5159 LATEST_PROFILE = ProfileDefinition ({
5260 _PROFILE_TAG : {
@@ -57,15 +65,13 @@ class DataBoxManagementClient(MultiApiClientMixin, _SDKClient):
5765
5866 def __init__ (
5967 self ,
60- credential , # type : "TokenCredential"
61- subscription_id , # type : str
62- api_version = None ,
63- base_url = None ,
64- profile = KnownProfiles .default ,
65- ** kwargs # type : Any
68+ credential : "TokenCredential" ,
69+ subscription_id : str ,
70+ api_version : Optional [ str ] = None ,
71+ base_url : str = "https://management.azure.com" ,
72+ profile : KnownProfiles = KnownProfiles .default ,
73+ ** kwargs : Any
6674 ):
67- if not base_url :
68- base_url = 'https://management.azure.com'
6975 self ._config = DataBoxManagementClientConfiguration (credential , subscription_id , ** kwargs )
7076 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
7177 super (DataBoxManagementClient , self ).__init__ (
@@ -85,6 +91,13 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8591 * 2019-09-01: :mod:`v2019_09_01.models<azure.mgmt.databox.v2019_09_01.models>`
8692 * 2020-04-01: :mod:`v2020_04_01.models<azure.mgmt.databox.v2020_04_01.models>`
8793 * 2020-11-01: :mod:`v2020_11_01.models<azure.mgmt.databox.v2020_11_01.models>`
94+ * 2021-03-01: :mod:`v2021_03_01.models<azure.mgmt.databox.v2021_03_01.models>`
95+ * 2021-05-01: :mod:`v2021_05_01.models<azure.mgmt.databox.v2021_05_01.models>`
96+ * 2021-08-01-preview: :mod:`v2021_08_01_preview.models<azure.mgmt.databox.v2021_08_01_preview.models>`
97+ * 2021-12-01: :mod:`v2021_12_01.models<azure.mgmt.databox.v2021_12_01.models>`
98+ * 2022-02-01: :mod:`v2022_02_01.models<azure.mgmt.databox.v2022_02_01.models>`
99+ * 2022-09-01: :mod:`v2022_09_01.models<azure.mgmt.databox.v2022_09_01.models>`
100+ * 2022-10-01: :mod:`v2022_10_01.models<azure.mgmt.databox.v2022_10_01.models>`
88101 """
89102 if api_version == '2018-01-01' :
90103 from .v2018_01_01 import models
@@ -98,6 +111,27 @@ def models(cls, api_version=DEFAULT_API_VERSION):
98111 elif api_version == '2020-11-01' :
99112 from .v2020_11_01 import models
100113 return models
114+ elif api_version == '2021-03-01' :
115+ from .v2021_03_01 import models
116+ return models
117+ elif api_version == '2021-05-01' :
118+ from .v2021_05_01 import models
119+ return models
120+ elif api_version == '2021-08-01-preview' :
121+ from .v2021_08_01_preview import models
122+ return models
123+ elif api_version == '2021-12-01' :
124+ from .v2021_12_01 import models
125+ return models
126+ elif api_version == '2022-02-01' :
127+ from .v2022_02_01 import models
128+ return models
129+ elif api_version == '2022-09-01' :
130+ from .v2022_09_01 import models
131+ return models
132+ elif api_version == '2022-10-01' :
133+ from .v2022_10_01 import models
134+ return models
101135 raise ValueError ("API version {} is not available" .format (api_version ))
102136
103137 @property
@@ -108,6 +142,13 @@ def jobs(self):
108142 * 2019-09-01: :class:`JobsOperations<azure.mgmt.databox.v2019_09_01.operations.JobsOperations>`
109143 * 2020-04-01: :class:`JobsOperations<azure.mgmt.databox.v2020_04_01.operations.JobsOperations>`
110144 * 2020-11-01: :class:`JobsOperations<azure.mgmt.databox.v2020_11_01.operations.JobsOperations>`
145+ * 2021-03-01: :class:`JobsOperations<azure.mgmt.databox.v2021_03_01.operations.JobsOperations>`
146+ * 2021-05-01: :class:`JobsOperations<azure.mgmt.databox.v2021_05_01.operations.JobsOperations>`
147+ * 2021-08-01-preview: :class:`JobsOperations<azure.mgmt.databox.v2021_08_01_preview.operations.JobsOperations>`
148+ * 2021-12-01: :class:`JobsOperations<azure.mgmt.databox.v2021_12_01.operations.JobsOperations>`
149+ * 2022-02-01: :class:`JobsOperations<azure.mgmt.databox.v2022_02_01.operations.JobsOperations>`
150+ * 2022-09-01: :class:`JobsOperations<azure.mgmt.databox.v2022_09_01.operations.JobsOperations>`
151+ * 2022-10-01: :class:`JobsOperations<azure.mgmt.databox.v2022_10_01.operations.JobsOperations>`
111152 """
112153 api_version = self ._get_api_version ('jobs' )
113154 if api_version == '2018-01-01' :
@@ -118,8 +159,23 @@ def jobs(self):
118159 from .v2020_04_01 .operations import JobsOperations as OperationClass
119160 elif api_version == '2020-11-01' :
120161 from .v2020_11_01 .operations import JobsOperations as OperationClass
162+ elif api_version == '2021-03-01' :
163+ from .v2021_03_01 .operations import JobsOperations as OperationClass
164+ elif api_version == '2021-05-01' :
165+ from .v2021_05_01 .operations import JobsOperations as OperationClass
166+ elif api_version == '2021-08-01-preview' :
167+ from .v2021_08_01_preview .operations import JobsOperations as OperationClass
168+ elif api_version == '2021-12-01' :
169+ from .v2021_12_01 .operations import JobsOperations as OperationClass
170+ elif api_version == '2022-02-01' :
171+ from .v2022_02_01 .operations import JobsOperations as OperationClass
172+ elif api_version == '2022-09-01' :
173+ from .v2022_09_01 .operations import JobsOperations as OperationClass
174+ elif api_version == '2022-10-01' :
175+ from .v2022_10_01 .operations import JobsOperations as OperationClass
121176 else :
122177 raise ValueError ("API version {} does not have operation group 'jobs'" .format (api_version ))
178+ self ._config .api_version = api_version
123179 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
124180
125181 @property
@@ -130,6 +186,13 @@ def operations(self):
130186 * 2019-09-01: :class:`Operations<azure.mgmt.databox.v2019_09_01.operations.Operations>`
131187 * 2020-04-01: :class:`Operations<azure.mgmt.databox.v2020_04_01.operations.Operations>`
132188 * 2020-11-01: :class:`Operations<azure.mgmt.databox.v2020_11_01.operations.Operations>`
189+ * 2021-03-01: :class:`Operations<azure.mgmt.databox.v2021_03_01.operations.Operations>`
190+ * 2021-05-01: :class:`Operations<azure.mgmt.databox.v2021_05_01.operations.Operations>`
191+ * 2021-08-01-preview: :class:`Operations<azure.mgmt.databox.v2021_08_01_preview.operations.Operations>`
192+ * 2021-12-01: :class:`Operations<azure.mgmt.databox.v2021_12_01.operations.Operations>`
193+ * 2022-02-01: :class:`Operations<azure.mgmt.databox.v2022_02_01.operations.Operations>`
194+ * 2022-09-01: :class:`Operations<azure.mgmt.databox.v2022_09_01.operations.Operations>`
195+ * 2022-10-01: :class:`Operations<azure.mgmt.databox.v2022_10_01.operations.Operations>`
133196 """
134197 api_version = self ._get_api_version ('operations' )
135198 if api_version == '2018-01-01' :
@@ -140,8 +203,23 @@ def operations(self):
140203 from .v2020_04_01 .operations import Operations as OperationClass
141204 elif api_version == '2020-11-01' :
142205 from .v2020_11_01 .operations import Operations as OperationClass
206+ elif api_version == '2021-03-01' :
207+ from .v2021_03_01 .operations import Operations as OperationClass
208+ elif api_version == '2021-05-01' :
209+ from .v2021_05_01 .operations import Operations as OperationClass
210+ elif api_version == '2021-08-01-preview' :
211+ from .v2021_08_01_preview .operations import Operations as OperationClass
212+ elif api_version == '2021-12-01' :
213+ from .v2021_12_01 .operations import Operations as OperationClass
214+ elif api_version == '2022-02-01' :
215+ from .v2022_02_01 .operations import Operations as OperationClass
216+ elif api_version == '2022-09-01' :
217+ from .v2022_09_01 .operations import Operations as OperationClass
218+ elif api_version == '2022-10-01' :
219+ from .v2022_10_01 .operations import Operations as OperationClass
143220 else :
144221 raise ValueError ("API version {} does not have operation group 'operations'" .format (api_version ))
222+ self ._config .api_version = api_version
145223 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
146224
147225 @property
@@ -152,6 +230,13 @@ def service(self):
152230 * 2019-09-01: :class:`ServiceOperations<azure.mgmt.databox.v2019_09_01.operations.ServiceOperations>`
153231 * 2020-04-01: :class:`ServiceOperations<azure.mgmt.databox.v2020_04_01.operations.ServiceOperations>`
154232 * 2020-11-01: :class:`ServiceOperations<azure.mgmt.databox.v2020_11_01.operations.ServiceOperations>`
233+ * 2021-03-01: :class:`ServiceOperations<azure.mgmt.databox.v2021_03_01.operations.ServiceOperations>`
234+ * 2021-05-01: :class:`ServiceOperations<azure.mgmt.databox.v2021_05_01.operations.ServiceOperations>`
235+ * 2021-08-01-preview: :class:`ServiceOperations<azure.mgmt.databox.v2021_08_01_preview.operations.ServiceOperations>`
236+ * 2021-12-01: :class:`ServiceOperations<azure.mgmt.databox.v2021_12_01.operations.ServiceOperations>`
237+ * 2022-02-01: :class:`ServiceOperations<azure.mgmt.databox.v2022_02_01.operations.ServiceOperations>`
238+ * 2022-09-01: :class:`ServiceOperations<azure.mgmt.databox.v2022_09_01.operations.ServiceOperations>`
239+ * 2022-10-01: :class:`ServiceOperations<azure.mgmt.databox.v2022_10_01.operations.ServiceOperations>`
155240 """
156241 api_version = self ._get_api_version ('service' )
157242 if api_version == '2018-01-01' :
@@ -162,8 +247,23 @@ def service(self):
162247 from .v2020_04_01 .operations import ServiceOperations as OperationClass
163248 elif api_version == '2020-11-01' :
164249 from .v2020_11_01 .operations import ServiceOperations as OperationClass
250+ elif api_version == '2021-03-01' :
251+ from .v2021_03_01 .operations import ServiceOperations as OperationClass
252+ elif api_version == '2021-05-01' :
253+ from .v2021_05_01 .operations import ServiceOperations as OperationClass
254+ elif api_version == '2021-08-01-preview' :
255+ from .v2021_08_01_preview .operations import ServiceOperations as OperationClass
256+ elif api_version == '2021-12-01' :
257+ from .v2021_12_01 .operations import ServiceOperations as OperationClass
258+ elif api_version == '2022-02-01' :
259+ from .v2022_02_01 .operations import ServiceOperations as OperationClass
260+ elif api_version == '2022-09-01' :
261+ from .v2022_09_01 .operations import ServiceOperations as OperationClass
262+ elif api_version == '2022-10-01' :
263+ from .v2022_10_01 .operations import ServiceOperations as OperationClass
165264 else :
166265 raise ValueError ("API version {} does not have operation group 'service'" .format (api_version ))
266+ self ._config .api_version = api_version
167267 return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
168268
169269 def close (self ):
0 commit comments