@@ -46,7 +46,7 @@ class ResourceManagementClient(MultiApiClientMixin, SDKClient):
4646 :type profile: azure.profiles.KnownProfiles
4747 """
4848
49- DEFAULT_API_VERSION = '2020-10 -01'
49+ DEFAULT_API_VERSION = '2021-01 -01'
5050 _PROFILE_TAG = "azure.mgmt.resource.resources.ResourceManagementClient"
5151 LATEST_PROFILE = ProfileDefinition ({
5252 _PROFILE_TAG : {
@@ -85,6 +85,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8585 * 2019-10-01: :mod:`v2019_10_01.models<azure.mgmt.resource.resources.v2019_10_01.models>`
8686 * 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.resource.resources.v2020_06_01.models>`
8787 * 2020-10-01: :mod:`v2020_10_01.models<azure.mgmt.resource.resources.v2020_10_01.models>`
88+ * 2021-01-01: :mod:`v2021_01_01.models<azure.mgmt.resource.resources.v2021_01_01.models>`
8889 """
8990 if api_version == '2016-02-01' :
9091 from .v2016_02_01 import models
@@ -125,6 +126,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
125126 elif api_version == '2020-10-01' :
126127 from .v2020_10_01 import models
127128 return models
129+ elif api_version == '2021-01-01' :
130+ from .v2021_01_01 import models
131+ return models
128132 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
129133
130134 @property
@@ -144,6 +148,7 @@ def deployment_operations(self):
144148 * 2019-10-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentOperations>`
145149 * 2020-06-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentOperations>`
146150 * 2020-10-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2020_10_01.operations.DeploymentOperations>`
151+ * 2021-01-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2021_01_01.operations.DeploymentOperations>`
147152 """
148153 api_version = self ._get_api_version ('deployment_operations' )
149154 if api_version == '2016-02-01' :
@@ -172,6 +177,8 @@ def deployment_operations(self):
172177 from .v2020_06_01 .operations import DeploymentOperations as OperationClass
173178 elif api_version == '2020-10-01' :
174179 from .v2020_10_01 .operations import DeploymentOperations as OperationClass
180+ elif api_version == '2021-01-01' :
181+ from .v2021_01_01 .operations import DeploymentOperations as OperationClass
175182 else :
176183 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
177184 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -193,6 +200,7 @@ def deployments(self):
193200 * 2019-10-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentsOperations>`
194201 * 2020-06-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentsOperations>`
195202 * 2020-10-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.DeploymentsOperations>`
203+ * 2021-01-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2021_01_01.operations.DeploymentsOperations>`
196204 """
197205 api_version = self ._get_api_version ('deployments' )
198206 if api_version == '2016-02-01' :
@@ -221,6 +229,8 @@ def deployments(self):
221229 from .v2020_06_01 .operations import DeploymentsOperations as OperationClass
222230 elif api_version == '2020-10-01' :
223231 from .v2020_10_01 .operations import DeploymentsOperations as OperationClass
232+ elif api_version == '2021-01-01' :
233+ from .v2021_01_01 .operations import DeploymentsOperations as OperationClass
224234 else :
225235 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
226236 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -238,6 +248,7 @@ def operations(self):
238248 * 2019-10-01: :class:`Operations<azure.mgmt.resource.resources.v2019_10_01.operations.Operations>`
239249 * 2020-06-01: :class:`Operations<azure.mgmt.resource.resources.v2020_06_01.operations.Operations>`
240250 * 2020-10-01: :class:`Operations<azure.mgmt.resource.resources.v2020_10_01.operations.Operations>`
251+ * 2021-01-01: :class:`Operations<azure.mgmt.resource.resources.v2021_01_01.operations.Operations>`
241252 """
242253 api_version = self ._get_api_version ('operations' )
243254 if api_version == '2018-05-01' :
@@ -258,6 +269,8 @@ def operations(self):
258269 from .v2020_06_01 .operations import Operations as OperationClass
259270 elif api_version == '2020-10-01' :
260271 from .v2020_10_01 .operations import Operations as OperationClass
272+ elif api_version == '2021-01-01' :
273+ from .v2021_01_01 .operations import Operations as OperationClass
261274 else :
262275 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
263276 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -267,10 +280,13 @@ def provider_resource_types(self):
267280 """Instance depends on the API version:
268281
269282 * 2020-10-01: :class:`ProviderResourceTypesOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ProviderResourceTypesOperations>`
283+ * 2021-01-01: :class:`ProviderResourceTypesOperations<azure.mgmt.resource.resources.v2021_01_01.operations.ProviderResourceTypesOperations>`
270284 """
271285 api_version = self ._get_api_version ('provider_resource_types' )
272286 if api_version == '2020-10-01' :
273287 from .v2020_10_01 .operations import ProviderResourceTypesOperations as OperationClass
288+ elif api_version == '2021-01-01' :
289+ from .v2021_01_01 .operations import ProviderResourceTypesOperations as OperationClass
274290 else :
275291 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
276292 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -292,6 +308,7 @@ def providers(self):
292308 * 2019-10-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ProvidersOperations>`
293309 * 2020-06-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ProvidersOperations>`
294310 * 2020-10-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ProvidersOperations>`
311+ * 2021-01-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2021_01_01.operations.ProvidersOperations>`
295312 """
296313 api_version = self ._get_api_version ('providers' )
297314 if api_version == '2016-02-01' :
@@ -320,6 +337,8 @@ def providers(self):
320337 from .v2020_06_01 .operations import ProvidersOperations as OperationClass
321338 elif api_version == '2020-10-01' :
322339 from .v2020_10_01 .operations import ProvidersOperations as OperationClass
340+ elif api_version == '2021-01-01' :
341+ from .v2021_01_01 .operations import ProvidersOperations as OperationClass
323342 else :
324343 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
325344 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -341,6 +360,7 @@ def resource_groups(self):
341360 * 2019-10-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourceGroupsOperations>`
342361 * 2020-06-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourceGroupsOperations>`
343362 * 2020-10-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ResourceGroupsOperations>`
363+ * 2021-01-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2021_01_01.operations.ResourceGroupsOperations>`
344364 """
345365 api_version = self ._get_api_version ('resource_groups' )
346366 if api_version == '2016-02-01' :
@@ -369,6 +389,8 @@ def resource_groups(self):
369389 from .v2020_06_01 .operations import ResourceGroupsOperations as OperationClass
370390 elif api_version == '2020-10-01' :
371391 from .v2020_10_01 .operations import ResourceGroupsOperations as OperationClass
392+ elif api_version == '2021-01-01' :
393+ from .v2021_01_01 .operations import ResourceGroupsOperations as OperationClass
372394 else :
373395 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
374396 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -390,6 +412,7 @@ def resources(self):
390412 * 2019-10-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourcesOperations>`
391413 * 2020-06-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourcesOperations>`
392414 * 2020-10-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ResourcesOperations>`
415+ * 2021-01-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2021_01_01.operations.ResourcesOperations>`
393416 """
394417 api_version = self ._get_api_version ('resources' )
395418 if api_version == '2016-02-01' :
@@ -418,6 +441,8 @@ def resources(self):
418441 from .v2020_06_01 .operations import ResourcesOperations as OperationClass
419442 elif api_version == '2020-10-01' :
420443 from .v2020_10_01 .operations import ResourcesOperations as OperationClass
444+ elif api_version == '2021-01-01' :
445+ from .v2021_01_01 .operations import ResourcesOperations as OperationClass
421446 else :
422447 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
423448 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -439,6 +464,7 @@ def tags(self):
439464 * 2019-10-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.TagsOperations>`
440465 * 2020-06-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.TagsOperations>`
441466 * 2020-10-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.TagsOperations>`
467+ * 2021-01-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2021_01_01.operations.TagsOperations>`
442468 """
443469 api_version = self ._get_api_version ('tags' )
444470 if api_version == '2016-02-01' :
@@ -467,6 +493,8 @@ def tags(self):
467493 from .v2020_06_01 .operations import TagsOperations as OperationClass
468494 elif api_version == '2020-10-01' :
469495 from .v2020_10_01 .operations import TagsOperations as OperationClass
496+ elif api_version == '2021-01-01' :
497+ from .v2021_01_01 .operations import TagsOperations as OperationClass
470498 else :
471499 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
472500 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
0 commit comments