Skip to content

Commit 8680b63

Browse files
authored
test,version,CHANGELOG (Azure#15702)
1 parent 0fde0dc commit 8680b63

21 files changed

+4259
-11313
lines changed

sdk/resources/azure-mgmt-resource/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 12.0.0 (2020-12-08)
4+
5+
**Breaking changes**
6+
- add lacked api version '2020-10-01' of _resource_management_client for resources
7+
38
## 11.0.0 (2020-12-04)
49

510
**Features**

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_policy_client.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PolicyClient(MultiApiClientMixin, SDKClient):
4646
:type profile: azure.profiles.KnownProfiles
4747
"""
4848

49-
DEFAULT_API_VERSION = '2019-09-01'
49+
DEFAULT_API_VERSION = '2020-09-01'
5050
_PROFILE_TAG = "azure.mgmt.resource.policy.PolicyClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -81,6 +81,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8181
* 2019-01-01: :mod:`v2019_01_01.models<azure.mgmt.resource.policy.v2019_01_01.models>`
8282
* 2019-06-01: :mod:`v2019_06_01.models<azure.mgmt.resource.policy.v2019_06_01.models>`
8383
* 2019-09-01: :mod:`v2019_09_01.models<azure.mgmt.resource.policy.v2019_09_01.models>`
84+
* 2020-09-01: :mod:`v2020_09_01.models<azure.mgmt.resource.policy.v2020_09_01.models>`
8485
"""
8586
if api_version == '2015-10-01-preview':
8687
from .v2015_10_01_preview import models
@@ -109,8 +110,24 @@ def models(cls, api_version=DEFAULT_API_VERSION):
109110
elif api_version == '2019-09-01':
110111
from .v2019_09_01 import models
111112
return models
113+
elif api_version == '2020-09-01':
114+
from .v2020_09_01 import models
115+
return models
112116
raise NotImplementedError("APIVersion {} is not available".format(api_version))
113117

118+
@property
119+
def data_policy_manifests(self):
120+
"""Instance depends on the API version:
121+
122+
* 2020-09-01: :class:`DataPolicyManifestsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.DataPolicyManifestsOperations>`
123+
"""
124+
api_version = self._get_api_version('data_policy_manifests')
125+
if api_version == '2020-09-01':
126+
from .v2020_09_01.operations import DataPolicyManifestsOperations as OperationClass
127+
else:
128+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
129+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
130+
114131
@property
115132
def policy_assignments(self):
116133
"""Instance depends on the API version:
@@ -124,6 +141,7 @@ def policy_assignments(self):
124141
* 2019-01-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicyAssignmentsOperations>`
125142
* 2019-06-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicyAssignmentsOperations>`
126143
* 2019-09-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyAssignmentsOperations>`
144+
* 2020-09-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicyAssignmentsOperations>`
127145
"""
128146
api_version = self._get_api_version('policy_assignments')
129147
if api_version == '2015-10-01-preview':
@@ -144,6 +162,8 @@ def policy_assignments(self):
144162
from .v2019_06_01.operations import PolicyAssignmentsOperations as OperationClass
145163
elif api_version == '2019-09-01':
146164
from .v2019_09_01.operations import PolicyAssignmentsOperations as OperationClass
165+
elif api_version == '2020-09-01':
166+
from .v2020_09_01.operations import PolicyAssignmentsOperations as OperationClass
147167
else:
148168
raise NotImplementedError("APIVersion {} is not available".format(api_version))
149169
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -161,6 +181,7 @@ def policy_definitions(self):
161181
* 2019-01-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicyDefinitionsOperations>`
162182
* 2019-06-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicyDefinitionsOperations>`
163183
* 2019-09-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyDefinitionsOperations>`
184+
* 2020-09-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicyDefinitionsOperations>`
164185
"""
165186
api_version = self._get_api_version('policy_definitions')
166187
if api_version == '2015-10-01-preview':
@@ -181,6 +202,8 @@ def policy_definitions(self):
181202
from .v2019_06_01.operations import PolicyDefinitionsOperations as OperationClass
182203
elif api_version == '2019-09-01':
183204
from .v2019_09_01.operations import PolicyDefinitionsOperations as OperationClass
205+
elif api_version == '2020-09-01':
206+
from .v2020_09_01.operations import PolicyDefinitionsOperations as OperationClass
184207
else:
185208
raise NotImplementedError("APIVersion {} is not available".format(api_version))
186209
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -195,6 +218,7 @@ def policy_set_definitions(self):
195218
* 2019-01-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicySetDefinitionsOperations>`
196219
* 2019-06-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicySetDefinitionsOperations>`
197220
* 2019-09-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicySetDefinitionsOperations>`
221+
* 2020-09-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicySetDefinitionsOperations>`
198222
"""
199223
api_version = self._get_api_version('policy_set_definitions')
200224
if api_version == '2017-06-01-preview':
@@ -209,6 +233,8 @@ def policy_set_definitions(self):
209233
from .v2019_06_01.operations import PolicySetDefinitionsOperations as OperationClass
210234
elif api_version == '2019-09-01':
211235
from .v2019_09_01.operations import PolicySetDefinitionsOperations as OperationClass
236+
elif api_version == '2020-09-01':
237+
from .v2020_09_01.operations import PolicySetDefinitionsOperations as OperationClass
212238
else:
213239
raise NotImplementedError("APIVersion {} is not available".format(api_version))
214240
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2019_09_01.models import *
7+
from .v2020_09_01.models import *

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_resource_management_client.py

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ResourceManagementClient(MultiApiClientMixin, SDKClient):
4646
:type profile: azure.profiles.KnownProfiles
4747
"""
4848

49-
DEFAULT_API_VERSION = '2020-06-01'
49+
DEFAULT_API_VERSION = '2020-10-01'
5050
_PROFILE_TAG = "azure.mgmt.resource.resources.ResourceManagementClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -84,6 +84,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8484
* 2019-08-01: :mod:`v2019_08_01.models<azure.mgmt.resource.resources.v2019_08_01.models>`
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>`
87+
* 2020-10-01: :mod:`v2020_10_01.models<azure.mgmt.resource.resources.v2020_10_01.models>`
8788
"""
8889
if api_version == '2016-02-01':
8990
from .v2016_02_01 import models
@@ -121,6 +122,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
121122
elif api_version == '2020-06-01':
122123
from .v2020_06_01 import models
123124
return models
125+
elif api_version == '2020-10-01':
126+
from .v2020_10_01 import models
127+
return models
124128
raise NotImplementedError("APIVersion {} is not available".format(api_version))
125129

126130
@property
@@ -139,6 +143,7 @@ def deployment_operations(self):
139143
* 2019-08-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_08_01.operations.DeploymentOperations>`
140144
* 2019-10-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentOperations>`
141145
* 2020-06-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentOperations>`
146+
* 2020-10-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2020_10_01.operations.DeploymentOperations>`
142147
"""
143148
api_version = self._get_api_version('deployment_operations')
144149
if api_version == '2016-02-01':
@@ -165,6 +170,8 @@ def deployment_operations(self):
165170
from .v2019_10_01.operations import DeploymentOperations as OperationClass
166171
elif api_version == '2020-06-01':
167172
from .v2020_06_01.operations import DeploymentOperations as OperationClass
173+
elif api_version == '2020-10-01':
174+
from .v2020_10_01.operations import DeploymentOperations as OperationClass
168175
else:
169176
raise NotImplementedError("APIVersion {} is not available".format(api_version))
170177
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -185,6 +192,7 @@ def deployments(self):
185192
* 2019-08-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_08_01.operations.DeploymentsOperations>`
186193
* 2019-10-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.DeploymentsOperations>`
187194
* 2020-06-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.DeploymentsOperations>`
195+
* 2020-10-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.DeploymentsOperations>`
188196
"""
189197
api_version = self._get_api_version('deployments')
190198
if api_version == '2016-02-01':
@@ -211,6 +219,8 @@ def deployments(self):
211219
from .v2019_10_01.operations import DeploymentsOperations as OperationClass
212220
elif api_version == '2020-06-01':
213221
from .v2020_06_01.operations import DeploymentsOperations as OperationClass
222+
elif api_version == '2020-10-01':
223+
from .v2020_10_01.operations import DeploymentsOperations as OperationClass
214224
else:
215225
raise NotImplementedError("APIVersion {} is not available".format(api_version))
216226
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -227,6 +237,7 @@ def operations(self):
227237
* 2019-08-01: :class:`Operations<azure.mgmt.resource.resources.v2019_08_01.operations.Operations>`
228238
* 2019-10-01: :class:`Operations<azure.mgmt.resource.resources.v2019_10_01.operations.Operations>`
229239
* 2020-06-01: :class:`Operations<azure.mgmt.resource.resources.v2020_06_01.operations.Operations>`
240+
* 2020-10-01: :class:`Operations<azure.mgmt.resource.resources.v2020_10_01.operations.Operations>`
230241
"""
231242
api_version = self._get_api_version('operations')
232243
if api_version == '2018-05-01':
@@ -245,6 +256,21 @@ def operations(self):
245256
from .v2019_10_01.operations import Operations as OperationClass
246257
elif api_version == '2020-06-01':
247258
from .v2020_06_01.operations import Operations as OperationClass
259+
elif api_version == '2020-10-01':
260+
from .v2020_10_01.operations import Operations as OperationClass
261+
else:
262+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
263+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
264+
265+
@property
266+
def provider_resource_types(self):
267+
"""Instance depends on the API version:
268+
269+
* 2020-10-01: :class:`ProviderResourceTypesOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ProviderResourceTypesOperations>`
270+
"""
271+
api_version = self._get_api_version('provider_resource_types')
272+
if api_version == '2020-10-01':
273+
from .v2020_10_01.operations import ProviderResourceTypesOperations as OperationClass
248274
else:
249275
raise NotImplementedError("APIVersion {} is not available".format(api_version))
250276
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -265,6 +291,7 @@ def providers(self):
265291
* 2019-08-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ProvidersOperations>`
266292
* 2019-10-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ProvidersOperations>`
267293
* 2020-06-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ProvidersOperations>`
294+
* 2020-10-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ProvidersOperations>`
268295
"""
269296
api_version = self._get_api_version('providers')
270297
if api_version == '2016-02-01':
@@ -291,6 +318,8 @@ def providers(self):
291318
from .v2019_10_01.operations import ProvidersOperations as OperationClass
292319
elif api_version == '2020-06-01':
293320
from .v2020_06_01.operations import ProvidersOperations as OperationClass
321+
elif api_version == '2020-10-01':
322+
from .v2020_10_01.operations import ProvidersOperations as OperationClass
294323
else:
295324
raise NotImplementedError("APIVersion {} is not available".format(api_version))
296325
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -311,6 +340,7 @@ def resource_groups(self):
311340
* 2019-08-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ResourceGroupsOperations>`
312341
* 2019-10-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourceGroupsOperations>`
313342
* 2020-06-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourceGroupsOperations>`
343+
* 2020-10-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ResourceGroupsOperations>`
314344
"""
315345
api_version = self._get_api_version('resource_groups')
316346
if api_version == '2016-02-01':
@@ -337,6 +367,8 @@ def resource_groups(self):
337367
from .v2019_10_01.operations import ResourceGroupsOperations as OperationClass
338368
elif api_version == '2020-06-01':
339369
from .v2020_06_01.operations import ResourceGroupsOperations as OperationClass
370+
elif api_version == '2020-10-01':
371+
from .v2020_10_01.operations import ResourceGroupsOperations as OperationClass
340372
else:
341373
raise NotImplementedError("APIVersion {} is not available".format(api_version))
342374
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -357,6 +389,7 @@ def resources(self):
357389
* 2019-08-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_08_01.operations.ResourcesOperations>`
358390
* 2019-10-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2019_10_01.operations.ResourcesOperations>`
359391
* 2020-06-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2020_06_01.operations.ResourcesOperations>`
392+
* 2020-10-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2020_10_01.operations.ResourcesOperations>`
360393
"""
361394
api_version = self._get_api_version('resources')
362395
if api_version == '2016-02-01':
@@ -383,6 +416,8 @@ def resources(self):
383416
from .v2019_10_01.operations import ResourcesOperations as OperationClass
384417
elif api_version == '2020-06-01':
385418
from .v2020_06_01.operations import ResourcesOperations as OperationClass
419+
elif api_version == '2020-10-01':
420+
from .v2020_10_01.operations import ResourcesOperations as OperationClass
386421
else:
387422
raise NotImplementedError("APIVersion {} is not available".format(api_version))
388423
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -403,6 +438,7 @@ def tags(self):
403438
* 2019-08-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2019_08_01.operations.TagsOperations>`
404439
* 2019-10-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2019_10_01.operations.TagsOperations>`
405440
* 2020-06-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2020_06_01.operations.TagsOperations>`
441+
* 2020-10-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2020_10_01.operations.TagsOperations>`
406442
"""
407443
api_version = self._get_api_version('tags')
408444
if api_version == '2016-02-01':
@@ -429,6 +465,8 @@ def tags(self):
429465
from .v2019_10_01.operations import TagsOperations as OperationClass
430466
elif api_version == '2020-06-01':
431467
from .v2020_06_01.operations import TagsOperations as OperationClass
468+
elif api_version == '2020-10-01':
469+
from .v2020_10_01.operations import TagsOperations as OperationClass
432470
else:
433471
raise NotImplementedError("APIVersion {} is not available".format(api_version))
434472
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2020_06_01.models import *
7+
from .v2020_10_01.models import *

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "11.0.0"
8+
VERSION = "12.0.0"

0 commit comments

Comments
 (0)