@@ -46,11 +46,12 @@ class ResourceManagementClient(MultiApiClientMixin, SDKClient):
4646 :type profile: azure.profiles.KnownProfiles
4747 """
4848
49- DEFAULT_API_VERSION = '2019-10 -01'
49+ DEFAULT_API_VERSION = '2020-06 -01'
5050 _PROFILE_TAG = "azure.mgmt.resource.resources.ResourceManagementClient"
5151 LATEST_PROFILE = ProfileDefinition ({
5252 _PROFILE_TAG : {
5353 None : DEFAULT_API_VERSION ,
54+ 'tags' : '2019-10-01' ,
5455 }},
5556 _PROFILE_TAG + " latest"
5657 )
@@ -82,6 +83,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8283 * 2019-07-01: :mod:`v2019_07_01.models<azure.mgmt.resource.resources.v2019_07_01.models>`
8384 * 2019-08-01: :mod:`v2019_08_01.models<azure.mgmt.resource.resources.v2019_08_01.models>`
8485 * 2019-10-01: :mod:`v2019_10_01.models<azure.mgmt.resource.resources.v2019_10_01.models>`
86+ * 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.resource.resources.v2020_06_01.models>`
8587 """
8688 if api_version == '2016-02-01' :
8789 from .v2016_02_01 import models
@@ -113,6 +115,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
113115 elif api_version == '2019-10-01' :
114116 from .v2019_10_01 import models
115117 return models
118+ elif api_version == '2020-06-01' :
119+ from .v2020_06_01 import models
120+ return models
116121 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
117122
118123 @property
@@ -129,6 +134,7 @@ def deployment_operations(self):
129134 * 2019-07-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_07_01.operations.DeploymentOperations>`
130135 * 2019-08-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_08_01.operations.DeploymentOperations>`
131136 * 2019-10-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentOperations>`
137+ * 2020-06-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentOperations>`
132138 """
133139 api_version = self ._get_api_version ('deployment_operations' )
134140 if api_version == '2016-02-01' :
@@ -151,6 +157,8 @@ def deployment_operations(self):
151157 from .v2019_08_01 .operations import DeploymentOperations as OperationClass
152158 elif api_version == '2019-10-01' :
153159 from .v2019_10_01 .operations import DeploymentOperations as OperationClass
160+ elif api_version == '2020-06-01' :
161+ from .v2020_06_01 .operations import DeploymentOperations as OperationClass
154162 else :
155163 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
156164 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -169,6 +177,7 @@ def deployments(self):
169177 * 2019-07-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_07_01.operations.DeploymentsOperations>`
170178 * 2019-08-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_08_01.operations.DeploymentsOperations>`
171179 * 2019-10-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentsOperations>`
180+ * 2020-06-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentsOperations>`
172181 """
173182 api_version = self ._get_api_version ('deployments' )
174183 if api_version == '2016-02-01' :
@@ -191,6 +200,8 @@ def deployments(self):
191200 from .v2019_08_01 .operations import DeploymentsOperations as OperationClass
192201 elif api_version == '2019-10-01' :
193202 from .v2019_10_01 .operations import DeploymentsOperations as OperationClass
203+ elif api_version == '2020-06-01' :
204+ from .v2020_06_01 .operations import DeploymentsOperations as OperationClass
194205 else :
195206 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
196207 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -205,6 +216,7 @@ def operations(self):
205216 * 2019-07-01: :class:`Operations<azure.mgmt.resource.resources.v2019_07_01.operations.Operations>`
206217 * 2019-08-01: :class:`Operations<azure.mgmt.resource.resources.v2019_08_01.operations.Operations>`
207218 * 2019-10-01: :class:`Operations<azure.mgmt.resource.resources.v2019_10_01.operations.Operations>`
219+ * 2020-06-01: :class:`Operations<azure.mgmt.resource.resources.v2020_06_01.operations.Operations>`
208220 """
209221 api_version = self ._get_api_version ('operations' )
210222 if api_version == '2018-05-01' :
@@ -219,6 +231,8 @@ def operations(self):
219231 from .v2019_08_01 .operations import Operations as OperationClass
220232 elif api_version == '2019-10-01' :
221233 from .v2019_10_01 .operations import Operations as OperationClass
234+ elif api_version == '2020-06-01' :
235+ from .v2020_06_01 .operations import Operations as OperationClass
222236 else :
223237 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
224238 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -237,6 +251,7 @@ def providers(self):
237251 * 2019-07-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_07_01.operations.ProvidersOperations>`
238252 * 2019-08-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ProvidersOperations>`
239253 * 2019-10-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ProvidersOperations>`
254+ * 2020-06-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ProvidersOperations>`
240255 """
241256 api_version = self ._get_api_version ('providers' )
242257 if api_version == '2016-02-01' :
@@ -259,6 +274,8 @@ def providers(self):
259274 from .v2019_08_01 .operations import ProvidersOperations as OperationClass
260275 elif api_version == '2019-10-01' :
261276 from .v2019_10_01 .operations import ProvidersOperations as OperationClass
277+ elif api_version == '2020-06-01' :
278+ from .v2020_06_01 .operations import ProvidersOperations as OperationClass
262279 else :
263280 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
264281 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -277,6 +294,7 @@ def resource_groups(self):
277294 * 2019-07-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_07_01.operations.ResourceGroupsOperations>`
278295 * 2019-08-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ResourceGroupsOperations>`
279296 * 2019-10-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourceGroupsOperations>`
297+ * 2020-06-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourceGroupsOperations>`
280298 """
281299 api_version = self ._get_api_version ('resource_groups' )
282300 if api_version == '2016-02-01' :
@@ -299,6 +317,8 @@ def resource_groups(self):
299317 from .v2019_08_01 .operations import ResourceGroupsOperations as OperationClass
300318 elif api_version == '2019-10-01' :
301319 from .v2019_10_01 .operations import ResourceGroupsOperations as OperationClass
320+ elif api_version == '2020-06-01' :
321+ from .v2020_06_01 .operations import ResourceGroupsOperations as OperationClass
302322 else :
303323 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
304324 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -317,6 +337,7 @@ def resources(self):
317337 * 2019-07-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_07_01.operations.ResourcesOperations>`
318338 * 2019-08-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ResourcesOperations>`
319339 * 2019-10-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourcesOperations>`
340+ * 2020-06-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourcesOperations>`
320341 """
321342 api_version = self ._get_api_version ('resources' )
322343 if api_version == '2016-02-01' :
@@ -339,6 +360,8 @@ def resources(self):
339360 from .v2019_08_01 .operations import ResourcesOperations as OperationClass
340361 elif api_version == '2019-10-01' :
341362 from .v2019_10_01 .operations import ResourcesOperations as OperationClass
363+ elif api_version == '2020-06-01' :
364+ from .v2020_06_01 .operations import ResourcesOperations as OperationClass
342365 else :
343366 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
344367 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -382,3 +405,16 @@ def tags(self):
382405 else :
383406 raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
384407 return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
408+
409+ @property
410+ def tags_operation (self ):
411+ """Instance depends on the API version:
412+
413+ * 2020-06-01: :class:`TagsOperationOperations<azure.mgmt.resource.resources.v2020_06_01.operations.TagsOperationOperations>`
414+ """
415+ api_version = self ._get_api_version ('tags_operation' )
416+ if api_version == '2020-06-01' :
417+ from .v2020_06_01 .operations import TagsOperationOperations as OperationClass
418+ else :
419+ raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
420+ return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
0 commit comments