Skip to content

Commit 1446fbf

Browse files
[AutoRelease] t2-resource-2022-04-28-85137(Do not merge) (Azure#24220)
* code and test * update version * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen (WICRESOFT NORTH AMERICA LTD) <v-jiechen@microsoft.com> Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
1 parent 756a893 commit 1446fbf

12 files changed

+276
-290
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 21.1.0 (2022-04-26)
3+
## 21.1.0 (2022-05-05)
44

55
**Features**
66

sdk/resources/azure-mgmt-resource/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.13.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "fb32676995912336709a2af7d7250e0b63c9333d",
7+
"commit": "8db7df38fe5fca1fc4d2634f5c89e8acfeb1f4ce",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/resources/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/resources/resource-manager/readme.md"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_changes_client.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,9 @@ def _models_dict(cls, api_version):
8888
def models(cls, api_version=DEFAULT_API_VERSION):
8989
"""Module depends on the API version:
9090
91-
* 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.resource.changes.v2022_03_01_preview.models>`
9291
* 2022-05-01: :mod:`v2022_05_01.models<azure.mgmt.resource.changes.v2022_05_01.models>`
9392
"""
94-
if api_version == '2022-03-01-preview':
95-
from .v2022_03_01_preview import models
96-
return models
97-
elif api_version == '2022-05-01':
93+
if api_version == '2022-05-01':
9894
from .v2022_05_01 import models
9995
return models
10096
raise ValueError("API version {} is not available".format(api_version))
@@ -103,13 +99,10 @@ def models(cls, api_version=DEFAULT_API_VERSION):
10399
def changes(self):
104100
"""Instance depends on the API version:
105101
106-
* 2022-03-01-preview: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_03_01_preview.operations.ChangesOperations>`
107102
* 2022-05-01: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_05_01.operations.ChangesOperations>`
108103
"""
109104
api_version = self._get_api_version('changes')
110-
if api_version == '2022-03-01-preview':
111-
from .v2022_03_01_preview.operations import ChangesOperations as OperationClass
112-
elif api_version == '2022-05-01':
105+
if api_version == '2022-05-01':
113106
from .v2022_05_01.operations import ChangesOperations as OperationClass
114107
else:
115108
raise ValueError("API version {} does not have operation group 'changes'".format(api_version))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/aio/_changes_client.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,9 @@ def _models_dict(cls, api_version):
8787
def models(cls, api_version=DEFAULT_API_VERSION):
8888
"""Module depends on the API version:
8989
90-
* 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.resource.changes.v2022_03_01_preview.models>`
9190
* 2022-05-01: :mod:`v2022_05_01.models<azure.mgmt.resource.changes.v2022_05_01.models>`
9291
"""
93-
if api_version == '2022-03-01-preview':
94-
from ..v2022_03_01_preview import models
95-
return models
96-
elif api_version == '2022-05-01':
92+
if api_version == '2022-05-01':
9793
from ..v2022_05_01 import models
9894
return models
9995
raise ValueError("API version {} is not available".format(api_version))
@@ -102,13 +98,10 @@ def models(cls, api_version=DEFAULT_API_VERSION):
10298
def changes(self):
10399
"""Instance depends on the API version:
104100
105-
* 2022-03-01-preview: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_03_01_preview.aio.operations.ChangesOperations>`
106101
* 2022-05-01: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_05_01.aio.operations.ChangesOperations>`
107102
"""
108103
api_version = self._get_api_version('changes')
109-
if api_version == '2022-03-01-preview':
110-
from ..v2022_03_01_preview.aio.operations import ChangesOperations as OperationClass
111-
elif api_version == '2022-05-01':
104+
if api_version == '2022-05-01':
112105
from ..v2022_05_01.aio.operations import ChangesOperations as OperationClass
113106
else:
114107
raise ValueError("API version {} does not have operation group 'changes'".format(api_version))

sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_deployment_scripts.pyTestMgmtResourceDeploymentScripttest_deployment_scripts.json

Lines changed: 82 additions & 82 deletions
Large diffs are not rendered by default.

sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_links.pyTestMgmtResourceLinkstest_links.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"Cache-Control": "max-age=86400, private",
1818
"Content-Length": "1753",
1919
"Content-Type": "application/json; charset=utf-8",
20-
"Date": "Tue, 26 Apr 2022 01:47:00 GMT",
20+
"Date": "Thu, 28 Apr 2022 02:46:41 GMT",
2121
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
2222
"Set-Cookie": "[set-cookie;]",
2323
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
2424
"X-Content-Type-Options": "nosniff",
25-
"x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices",
25+
"x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices",
2626
"X-XSS-Protection": "0"
2727
},
2828
"ResponseBody": {
@@ -111,12 +111,12 @@
111111
"Cache-Control": "max-age=86400, private",
112112
"Content-Length": "945",
113113
"Content-Type": "application/json; charset=utf-8",
114-
"Date": "Tue, 26 Apr 2022 01:47:00 GMT",
114+
"Date": "Thu, 28 Apr 2022 02:46:41 GMT",
115115
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
116116
"Set-Cookie": "[set-cookie;]",
117117
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
118118
"X-Content-Type-Options": "nosniff",
119-
"x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices",
119+
"x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices",
120120
"X-XSS-Protection": "0"
121121
},
122122
"ResponseBody": {
@@ -172,7 +172,7 @@
172172
"RequestHeaders": {
173173
"Accept": "application/json",
174174
"Accept-Encoding": "gzip, deflate",
175-
"client-request-id": "f014ebb7-73c5-4d2e-862a-6fc703d10370",
175+
"client-request-id": "4277a426-00c2-4370-9a54-9c254a7f112f",
176176
"Connection": "keep-alive",
177177
"Content-Length": "286",
178178
"Content-Type": "application/x-www-form-urlencoded",
@@ -190,18 +190,18 @@
190190
"StatusCode": 200,
191191
"ResponseHeaders": {
192192
"Cache-Control": "no-store, no-cache",
193-
"client-request-id": "f014ebb7-73c5-4d2e-862a-6fc703d10370",
193+
"client-request-id": "4277a426-00c2-4370-9a54-9c254a7f112f",
194194
"Content-Length": "93",
195195
"Content-Type": "application/json; charset=utf-8",
196-
"Date": "Tue, 26 Apr 2022 01:47:00 GMT",
196+
"Date": "Thu, 28 Apr 2022 02:46:41 GMT",
197197
"Expires": "-1",
198198
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
199199
"Pragma": "no-cache",
200200
"Set-Cookie": "[set-cookie;]",
201201
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
202202
"X-Content-Type-Options": "nosniff",
203203
"x-ms-clitelem": "1,0,0,,",
204-
"x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices",
204+
"x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices",
205205
"X-XSS-Protection": "0"
206206
},
207207
"ResponseBody": {
@@ -230,7 +230,7 @@
230230
"Cache-Control": "no-cache",
231231
"Content-Encoding": "gzip",
232232
"Content-Type": "application/json; charset=utf-8",
233-
"Date": "Tue, 26 Apr 2022 01:47:01 GMT",
233+
"Date": "Thu, 28 Apr 2022 02:46:41 GMT",
234234
"Expires": "-1",
235235
"Pragma": "no-cache",
236236
"Server": [
@@ -241,10 +241,10 @@
241241
"Transfer-Encoding": "chunked",
242242
"Vary": "Accept-Encoding",
243243
"X-Content-Type-Options": "nosniff",
244-
"x-ms-correlation-request-id": "1debc164-2b5c-43ef-9764-ffa2ea8088a9",
244+
"x-ms-correlation-request-id": "4cb185c2-a853-41e6-823d-0a667177415f",
245245
"x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199",
246246
"x-ms-ratelimit-remaining-subscription-writes": "1197",
247-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014701Z:1debc164-2b5c-43ef-9764-ffa2ea8088a9"
247+
"x-ms-routing-request-id": "WESTUS:20220428T024642Z:4cb185c2-a853-41e6-823d-0a667177415f"
248248
},
249249
"ResponseBody": {
250250
"name": "pytestavset48042a90",
@@ -279,7 +279,7 @@
279279
"Cache-Control": "no-cache",
280280
"Content-Encoding": "gzip",
281281
"Content-Type": "application/json; charset=utf-8",
282-
"Date": "Tue, 26 Apr 2022 01:47:02 GMT",
282+
"Date": "Thu, 28 Apr 2022 02:46:41 GMT",
283283
"Expires": "-1",
284284
"Pragma": "no-cache",
285285
"Server": [
@@ -290,10 +290,10 @@
290290
"Transfer-Encoding": "chunked",
291291
"Vary": "Accept-Encoding",
292292
"X-Content-Type-Options": "nosniff",
293-
"x-ms-correlation-request-id": "14428ab9-c503-49d6-a68d-3fa3cd36f1c1",
293+
"x-ms-correlation-request-id": "09ed4a72-ac67-4bcd-9ed8-9e4bc841e9b1",
294294
"x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1198",
295295
"x-ms-ratelimit-remaining-subscription-writes": "1196",
296-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014702Z:14428ab9-c503-49d6-a68d-3fa3cd36f1c1"
296+
"x-ms-routing-request-id": "WESTUS:20220428T024642Z:09ed4a72-ac67-4bcd-9ed8-9e4bc841e9b1"
297297
},
298298
"ResponseBody": {
299299
"name": "pytestavset48042a902",
@@ -326,12 +326,12 @@
326326
"Cache-Control": "max-age=86400, private",
327327
"Content-Length": "1753",
328328
"Content-Type": "application/json; charset=utf-8",
329-
"Date": "Tue, 26 Apr 2022 01:47:02 GMT",
329+
"Date": "Thu, 28 Apr 2022 02:46:42 GMT",
330330
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
331331
"Set-Cookie": "[set-cookie;]",
332332
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
333333
"X-Content-Type-Options": "nosniff",
334-
"x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices",
334+
"x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices",
335335
"X-XSS-Protection": "0"
336336
},
337337
"ResponseBody": {
@@ -420,12 +420,12 @@
420420
"Cache-Control": "max-age=86400, private",
421421
"Content-Length": "945",
422422
"Content-Type": "application/json; charset=utf-8",
423-
"Date": "Tue, 26 Apr 2022 01:47:02 GMT",
423+
"Date": "Thu, 28 Apr 2022 02:46:42 GMT",
424424
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
425425
"Set-Cookie": "[set-cookie;]",
426426
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
427427
"X-Content-Type-Options": "nosniff",
428-
"x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices",
428+
"x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices",
429429
"X-XSS-Protection": "0"
430430
},
431431
"ResponseBody": {
@@ -481,7 +481,7 @@
481481
"RequestHeaders": {
482482
"Accept": "application/json",
483483
"Accept-Encoding": "gzip, deflate",
484-
"client-request-id": "e0469258-eac3-438c-90a9-72bec60c3d82",
484+
"client-request-id": "2ee11d64-ead0-4c5a-a2df-0fbc795fd52f",
485485
"Connection": "keep-alive",
486486
"Content-Length": "286",
487487
"Content-Type": "application/x-www-form-urlencoded",
@@ -499,18 +499,18 @@
499499
"StatusCode": 200,
500500
"ResponseHeaders": {
501501
"Cache-Control": "no-store, no-cache",
502-
"client-request-id": "e0469258-eac3-438c-90a9-72bec60c3d82",
502+
"client-request-id": "2ee11d64-ead0-4c5a-a2df-0fbc795fd52f",
503503
"Content-Length": "93",
504504
"Content-Type": "application/json; charset=utf-8",
505-
"Date": "Tue, 26 Apr 2022 01:47:02 GMT",
505+
"Date": "Thu, 28 Apr 2022 02:46:42 GMT",
506506
"Expires": "-1",
507507
"P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022",
508508
"Pragma": "no-cache",
509509
"Set-Cookie": "[set-cookie;]",
510510
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
511511
"X-Content-Type-Options": "nosniff",
512512
"x-ms-clitelem": "1,0,0,,",
513-
"x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices",
513+
"x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices",
514514
"X-XSS-Protection": "0"
515515
},
516516
"ResponseBody": {
@@ -542,14 +542,14 @@
542542
"Cache-Control": "no-cache",
543543
"Content-Length": "587",
544544
"Content-Type": "application/json; charset=utf-8",
545-
"Date": "Tue, 26 Apr 2022 01:47:02 GMT",
545+
"Date": "Thu, 28 Apr 2022 02:46:42 GMT",
546546
"Expires": "-1",
547547
"Pragma": "no-cache",
548548
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
549549
"X-Content-Type-Options": "nosniff",
550-
"x-ms-correlation-request-id": "025e3ca5-a619-46b0-8ee3-c9895c55579a",
550+
"x-ms-correlation-request-id": "0e7254d2-a0a9-4b9a-89de-d511dece3852",
551551
"x-ms-ratelimit-remaining-subscription-writes": "1195",
552-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014703Z:025e3ca5-a619-46b0-8ee3-c9895c55579a"
552+
"x-ms-routing-request-id": "WESTUS:20220428T024643Z:0e7254d2-a0a9-4b9a-89de-d511dece3852"
553553
},
554554
"ResponseBody": {
555555
"properties": {
@@ -577,7 +577,7 @@
577577
"Cache-Control": "no-cache",
578578
"Content-Encoding": "gzip",
579579
"Content-Type": "application/json; charset=utf-8",
580-
"Date": "Tue, 26 Apr 2022 01:47:12 GMT",
580+
"Date": "Thu, 28 Apr 2022 02:46:53 GMT",
581581
"Expires": "-1",
582582
"Pragma": "no-cache",
583583
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
@@ -587,9 +587,9 @@
587587
"Accept-Encoding"
588588
],
589589
"X-Content-Type-Options": "nosniff",
590-
"x-ms-correlation-request-id": "7b3f86d8-a5d7-4fef-970c-015b27ce4946",
591-
"x-ms-ratelimit-remaining-subscription-reads": "11992",
592-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014713Z:7b3f86d8-a5d7-4fef-970c-015b27ce4946"
590+
"x-ms-correlation-request-id": "ad22d71b-6661-416b-953a-7447fd6e8ebc",
591+
"x-ms-ratelimit-remaining-subscription-reads": "11967",
592+
"x-ms-routing-request-id": "WESTUS:20220428T024653Z:ad22d71b-6661-416b-953a-7447fd6e8ebc"
593593
},
594594
"ResponseBody": {
595595
"properties": {
@@ -617,7 +617,7 @@
617617
"Cache-Control": "no-cache",
618618
"Content-Encoding": "gzip",
619619
"Content-Type": "application/json; charset=utf-8",
620-
"Date": "Tue, 26 Apr 2022 01:47:13 GMT",
620+
"Date": "Thu, 28 Apr 2022 02:46:53 GMT",
621621
"Expires": "-1",
622622
"Pragma": "no-cache",
623623
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
@@ -627,9 +627,9 @@
627627
"Accept-Encoding"
628628
],
629629
"X-Content-Type-Options": "nosniff",
630-
"x-ms-correlation-request-id": "64bddd98-6e1f-4888-acf2-00a2be6a36c9",
631-
"x-ms-ratelimit-remaining-subscription-reads": "11991",
632-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014713Z:64bddd98-6e1f-4888-acf2-00a2be6a36c9"
630+
"x-ms-correlation-request-id": "d5f480d7-eeb1-430b-8a31-70ed39990f6b",
631+
"x-ms-ratelimit-remaining-subscription-reads": "11966",
632+
"x-ms-routing-request-id": "WESTUS:20220428T024653Z:d5f480d7-eeb1-430b-8a31-70ed39990f6b"
633633
},
634634
"ResponseBody": {
635635
"value": [
@@ -661,7 +661,7 @@
661661
"Cache-Control": "no-cache",
662662
"Content-Encoding": "gzip",
663663
"Content-Type": "application/json; charset=utf-8",
664-
"Date": "Tue, 26 Apr 2022 01:47:13 GMT",
664+
"Date": "Thu, 28 Apr 2022 02:46:53 GMT",
665665
"Expires": "-1",
666666
"Pragma": "no-cache",
667667
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
@@ -671,9 +671,9 @@
671671
"Accept-Encoding"
672672
],
673673
"X-Content-Type-Options": "nosniff",
674-
"x-ms-correlation-request-id": "4230a3f6-330b-448f-854d-a92e16fd1efb",
675-
"x-ms-ratelimit-remaining-subscription-reads": "11990",
676-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014713Z:4230a3f6-330b-448f-854d-a92e16fd1efb"
674+
"x-ms-correlation-request-id": "3aec92b9-0be8-4a73-9dac-fe9ba6b56216",
675+
"x-ms-ratelimit-remaining-subscription-reads": "11965",
676+
"x-ms-routing-request-id": "WESTUS:20220428T024653Z:3aec92b9-0be8-4a73-9dac-fe9ba6b56216"
677677
},
678678
"ResponseBody": {
679679
"value": [
@@ -705,7 +705,7 @@
705705
"Cache-Control": "no-cache",
706706
"Content-Encoding": "gzip",
707707
"Content-Type": "application/json; charset=utf-8",
708-
"Date": "Tue, 26 Apr 2022 01:47:13 GMT",
708+
"Date": "Thu, 28 Apr 2022 02:46:53 GMT",
709709
"Expires": "-1",
710710
"Pragma": "no-cache",
711711
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
@@ -715,9 +715,9 @@
715715
"Accept-Encoding"
716716
],
717717
"X-Content-Type-Options": "nosniff",
718-
"x-ms-correlation-request-id": "08085fd1-a06d-4a4d-809a-3fb1cbb9f242",
719-
"x-ms-ratelimit-remaining-subscription-reads": "11989",
720-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014713Z:08085fd1-a06d-4a4d-809a-3fb1cbb9f242"
718+
"x-ms-correlation-request-id": "9c77d999-e559-4db4-9866-b1c59b90ece5",
719+
"x-ms-ratelimit-remaining-subscription-reads": "11964",
720+
"x-ms-routing-request-id": "WESTUS:20220428T024653Z:9c77d999-e559-4db4-9866-b1c59b90ece5"
721721
},
722722
"ResponseBody": {
723723
"value": [
@@ -749,14 +749,14 @@
749749
"ResponseHeaders": {
750750
"Cache-Control": "no-cache",
751751
"Content-Length": "0",
752-
"Date": "Tue, 26 Apr 2022 01:47:13 GMT",
752+
"Date": "Thu, 28 Apr 2022 02:46:53 GMT",
753753
"Expires": "-1",
754754
"Pragma": "no-cache",
755755
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
756756
"X-Content-Type-Options": "nosniff",
757-
"x-ms-correlation-request-id": "afb1d1f7-e164-4464-a1a1-d0d44e054148",
757+
"x-ms-correlation-request-id": "f1ce0399-c3ba-4e79-ab35-df1d2255abfd",
758758
"x-ms-ratelimit-remaining-subscription-deletes": "14998",
759-
"x-ms-routing-request-id": "SOUTHCENTRALUS:20220426T014713Z:afb1d1f7-e164-4464-a1a1-d0d44e054148"
759+
"x-ms-routing-request-id": "WESTUS:20220428T024653Z:f1ce0399-c3ba-4e79-ab35-df1d2255abfd"
760760
},
761761
"ResponseBody": null
762762
}

0 commit comments

Comments
 (0)