Skip to content

Commit ffef335

Browse files
authored
[T1] recoveryservices 2020 12 11 (Azure#15755)
* test,version,CHANGELOG * Update CHANGELOG.md
1 parent 05cf28c commit ffef335

File tree

7 files changed

+522
-242
lines changed

7 files changed

+522
-242
lines changed

sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md

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

3+
## 0.6.0 (2020-12-14)
4+
5+
**Features**
6+
7+
- Model PatchVault has a new parameter identity
8+
39
## 0.5.0 (2020-04-21)
410

511
**Features**

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ class PatchVault(PatchTrackedResource):
425425
:type properties: ~azure.mgmt.recoveryservices.models.VaultProperties
426426
:param sku:
427427
:type sku: ~azure.mgmt.recoveryservices.models.Sku
428+
:param identity:
429+
:type identity: ~azure.mgmt.recoveryservices.models.IdentityData
428430
"""
429431

430432
_validation = {
@@ -442,12 +444,14 @@ class PatchVault(PatchTrackedResource):
442444
'tags': {'key': 'tags', 'type': '{str}'},
443445
'properties': {'key': 'properties', 'type': 'VaultProperties'},
444446
'sku': {'key': 'sku', 'type': 'Sku'},
447+
'identity': {'key': 'identity', 'type': 'IdentityData'},
445448
}
446449

447450
def __init__(self, **kwargs):
448451
super(PatchVault, self).__init__(**kwargs)
449452
self.properties = kwargs.get('properties', None)
450453
self.sku = kwargs.get('sku', None)
454+
self.identity = kwargs.get('identity', None)
451455

452456

453457
class PrivateEndpoint(Model):

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models_py3.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ class PatchVault(PatchTrackedResource):
425425
:type properties: ~azure.mgmt.recoveryservices.models.VaultProperties
426426
:param sku:
427427
:type sku: ~azure.mgmt.recoveryservices.models.Sku
428+
:param identity:
429+
:type identity: ~azure.mgmt.recoveryservices.models.IdentityData
428430
"""
429431

430432
_validation = {
@@ -442,12 +444,14 @@ class PatchVault(PatchTrackedResource):
442444
'tags': {'key': 'tags', 'type': '{str}'},
443445
'properties': {'key': 'properties', 'type': 'VaultProperties'},
444446
'sku': {'key': 'sku', 'type': 'Sku'},
447+
'identity': {'key': 'identity', 'type': 'IdentityData'},
445448
}
446449

447-
def __init__(self, *, e_tag: str=None, location: str=None, tags=None, properties=None, sku=None, **kwargs) -> None:
450+
def __init__(self, *, e_tag: str=None, location: str=None, tags=None, properties=None, sku=None, identity=None, **kwargs) -> None:
448451
super(PatchVault, self).__init__(e_tag=e_tag, location=location, tags=tags, **kwargs)
449452
self.properties = properties
450453
self.sku = sku
454+
self.identity = identity
451455

452456

453457
class PrivateEndpoint(Model):

sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.5.0"
12+
VERSION = "0.6.0"

sdk/recoveryservices/azure-mgmt-recoveryservices/tests/recordings/test_mgmt_recoveryservices.test_can_create_get_list_delete_vault.yaml

Lines changed: 190 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -2,127 +2,226 @@ interactions:
22
- request:
33
body: '{"location": "westus", "properties": {}, "sku": {"name": "Standard"}}'
44
headers:
5-
Accept: [application/json]
6-
Accept-Encoding: ['gzip, deflate']
7-
Connection: [keep-alive]
8-
Content-Length: ['69']
9-
Content-Type: [application/json; charset=utf-8]
10-
User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
11-
msrest_azure/0.4.11 recoveryservicesclient/0.2.0 Azure-SDK-For-Python]
12-
accept-language: [en-US]
5+
Accept:
6+
- application/json
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '69'
13+
Content-Type:
14+
- application/json; charset=utf-8
15+
User-Agent:
16+
- python/3.6.9 (Linux-4.19.121-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10
17+
msrest_azure/0.6.2 azure-mgmt-recoveryservices/0.6.0 Azure-SDK-For-Python
18+
accept-language:
19+
- en-US
1320
method: PUT
1421
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource?api-version=2016-06-01
1522
response:
16-
body: {string: '{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2017-10-27T22%3A44%3A20.2374552Z''\"","properties":{"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'}
23+
body:
24+
string: '{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2020-12-11T10%3A03%3A42.8174236Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'
1725
headers:
18-
cache-control: [no-cache]
19-
content-length: ['439']
20-
content-type: [application/json]
21-
date: ['Fri, 27 Oct 2017 22:44:20 GMT']
22-
expires: ['-1']
23-
pragma: [no-cache]
24-
server: [Microsoft-IIS/8.0]
25-
strict-transport-security: [max-age=31536000; includeSubDomains]
26-
x-ms-ratelimit-remaining-subscription-writes: ['1198']
27-
status: {code: 201, message: Created}
26+
cache-control:
27+
- no-cache
28+
content-length:
29+
- '523'
30+
content-type:
31+
- application/json
32+
date:
33+
- Fri, 11 Dec 2020 10:03:43 GMT
34+
expires:
35+
- '-1'
36+
pragma:
37+
- no-cache
38+
server:
39+
- Microsoft-IIS/10.0
40+
strict-transport-security:
41+
- max-age=31536000; includeSubDomains
42+
x-content-type-options:
43+
- nosniff
44+
x-ms-ratelimit-remaining-subscription-resource-requests:
45+
- '209'
46+
status:
47+
code: 201
48+
message: Created
2849
- request:
2950
body: null
3051
headers:
31-
Accept: [application/json]
32-
Accept-Encoding: ['gzip, deflate']
33-
Connection: [keep-alive]
34-
Content-Type: [application/json; charset=utf-8]
35-
User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
36-
msrest_azure/0.4.11 recoveryservicesclient/0.2.0 Azure-SDK-For-Python]
37-
accept-language: [en-US]
52+
Accept:
53+
- application/json
54+
Accept-Encoding:
55+
- gzip, deflate
56+
Connection:
57+
- keep-alive
58+
User-Agent:
59+
- python/3.6.9 (Linux-4.19.121-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10
60+
msrest_azure/0.6.2 azure-mgmt-recoveryservices/0.6.0 Azure-SDK-For-Python
61+
accept-language:
62+
- en-US
3863
method: GET
3964
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource?api-version=2016-06-01
4065
response:
41-
body: {string: '{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2017-10-27T22%3A44%3A20.2374552Z''\"","properties":{"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'}
66+
body:
67+
string: '{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2020-12-11T10%3A03%3A42.8174236Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'
4268
headers:
43-
cache-control: [no-cache]
44-
content-length: ['439']
45-
content-type: [application/json]
46-
date: ['Fri, 27 Oct 2017 22:44:20 GMT']
47-
expires: ['-1']
48-
pragma: [no-cache]
49-
server: [Microsoft-IIS/8.0]
50-
strict-transport-security: [max-age=31536000; includeSubDomains]
51-
transfer-encoding: [chunked]
52-
vary: [Accept-Encoding]
53-
status: {code: 200, message: OK}
69+
cache-control:
70+
- no-cache
71+
content-length:
72+
- '523'
73+
content-type:
74+
- application/json
75+
date:
76+
- Fri, 11 Dec 2020 10:03:44 GMT
77+
expires:
78+
- '-1'
79+
pragma:
80+
- no-cache
81+
server:
82+
- Microsoft-IIS/10.0
83+
strict-transport-security:
84+
- max-age=31536000; includeSubDomains
85+
transfer-encoding:
86+
- chunked
87+
vary:
88+
- Accept-Encoding
89+
x-content-type-options:
90+
- nosniff
91+
status:
92+
code: 200
93+
message: OK
5494
- request:
5595
body: '{"location": "westus", "properties": {}, "sku": {"name": "Standard"}}'
5696
headers:
57-
Accept: [application/json]
58-
Accept-Encoding: ['gzip, deflate']
59-
Connection: [keep-alive]
60-
Content-Length: ['69']
61-
Content-Type: [application/json; charset=utf-8]
62-
User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
63-
msrest_azure/0.4.11 recoveryservicesclient/0.2.0 Azure-SDK-For-Python]
64-
accept-language: [en-US]
97+
Accept:
98+
- application/json
99+
Accept-Encoding:
100+
- gzip, deflate
101+
Connection:
102+
- keep-alive
103+
Content-Length:
104+
- '69'
105+
Content-Type:
106+
- application/json; charset=utf-8
107+
User-Agent:
108+
- python/3.6.9 (Linux-4.19.121-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10
109+
msrest_azure/0.6.2 azure-mgmt-recoveryservices/0.6.0 Azure-SDK-For-Python
110+
accept-language:
111+
- en-US
65112
method: PUT
66113
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2?api-version=2016-06-01
67114
response:
68-
body: {string: '{"location":"westus","name":"PythonSDKVault2","etag":"W/\"datetime''2017-10-27T22%3A44%3A24.9954149Z''\"","properties":{"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'}
115+
body:
116+
string: '{"location":"westus","name":"PythonSDKVault2","etag":"W/\"datetime''2020-12-11T10%3A03%3A47.5549042Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}'
69117
headers:
70-
cache-control: [no-cache]
71-
content-length: ['427']
72-
content-type: [application/json]
73-
date: ['Fri, 27 Oct 2017 22:44:25 GMT']
74-
expires: ['-1']
75-
pragma: [no-cache]
76-
server: [Microsoft-IIS/8.0]
77-
strict-transport-security: [max-age=31536000; includeSubDomains]
78-
x-ms-ratelimit-remaining-subscription-writes: ['1199']
79-
status: {code: 201, message: Created}
118+
cache-control:
119+
- no-cache
120+
content-length:
121+
- '511'
122+
content-type:
123+
- application/json
124+
date:
125+
- Fri, 11 Dec 2020 10:03:48 GMT
126+
expires:
127+
- '-1'
128+
pragma:
129+
- no-cache
130+
server:
131+
- Microsoft-IIS/10.0
132+
strict-transport-security:
133+
- max-age=31536000; includeSubDomains
134+
x-content-type-options:
135+
- nosniff
136+
x-ms-ratelimit-remaining-subscription-resource-requests:
137+
- '208'
138+
status:
139+
code: 201
140+
message: Created
80141
- request:
81142
body: null
82143
headers:
83-
Accept: [application/json]
84-
Accept-Encoding: ['gzip, deflate']
85-
Connection: [keep-alive]
86-
Content-Type: [application/json; charset=utf-8]
87-
User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
88-
msrest_azure/0.4.11 recoveryservicesclient/0.2.0 Azure-SDK-For-Python]
89-
accept-language: [en-US]
144+
Accept:
145+
- application/json
146+
Accept-Encoding:
147+
- gzip, deflate
148+
Connection:
149+
- keep-alive
150+
User-Agent:
151+
- python/3.6.9 (Linux-4.19.121-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10
152+
msrest_azure/0.6.2 azure-mgmt-recoveryservices/0.6.0 Azure-SDK-For-Python
153+
accept-language:
154+
- en-US
90155
method: GET
91156
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults?api-version=2016-06-01
92157
response:
93-
body: {string: '{"value":[{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2017-10-27T22%3A44%3A20.2374552Z''\"","properties":{"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}},{"location":"westus","name":"PythonSDKVault2","etag":"W/\"datetime''2017-10-27T22%3A44%3A24.9954149Z''\"","properties":{"provisioningState":"Succeeded"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}]}'}
158+
body:
159+
string: '{"value":[{"location":"westus","name":"PythonSDKTestResource","etag":"W/\"datetime''2020-12-11T10%3A03%3A42.8174236Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKTestResource","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}},{"location":"westus","name":"PythonSDKVault2","etag":"W/\"datetime''2020-12-11T10%3A03%3A47.5549042Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}]}'
94160
headers:
95-
cache-control: [no-cache]
96-
content-length: ['879']
97-
content-type: [application/json]
98-
date: ['Fri, 27 Oct 2017 22:44:26 GMT']
99-
expires: ['-1']
100-
pragma: [no-cache]
101-
server: [Microsoft-IIS/8.0]
102-
strict-transport-security: [max-age=31536000; includeSubDomains]
103-
status: {code: 200, message: OK}
161+
cache-control:
162+
- no-cache
163+
content-length:
164+
- '1047'
165+
content-type:
166+
- application/json
167+
date:
168+
- Fri, 11 Dec 2020 10:03:48 GMT
169+
expires:
170+
- '-1'
171+
pragma:
172+
- no-cache
173+
server:
174+
- Microsoft-IIS/10.0
175+
strict-transport-security:
176+
- max-age=31536000; includeSubDomains
177+
transfer-encoding:
178+
- chunked
179+
vary:
180+
- Accept-Encoding
181+
x-content-type-options:
182+
- nosniff
183+
status:
184+
code: 200
185+
message: OK
104186
- request:
105187
body: null
106188
headers:
107-
Accept: [application/json]
108-
Accept-Encoding: ['gzip, deflate']
109-
Connection: [keep-alive]
110-
Content-Length: ['0']
111-
Content-Type: [application/json; charset=utf-8]
112-
User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
113-
msrest_azure/0.4.11 recoveryservicesclient/0.2.0 Azure-SDK-For-Python]
114-
accept-language: [en-US]
189+
Accept:
190+
- application/json
191+
Accept-Encoding:
192+
- gzip, deflate
193+
Connection:
194+
- keep-alive
195+
Content-Length:
196+
- '0'
197+
User-Agent:
198+
- python/3.6.9 (Linux-4.19.121-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10
199+
msrest_azure/0.6.2 azure-mgmt-recoveryservices/0.6.0 Azure-SDK-For-Python
200+
accept-language:
201+
- en-US
115202
method: DELETE
116203
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_recoveryservices_test_can_create_get_list_delete_vault5eb91a70/providers/Microsoft.RecoveryServices/vaults/PythonSDKVault2?api-version=2016-06-01
117204
response:
118-
body: {string: ''}
205+
body:
206+
string: ''
119207
headers:
120-
cache-control: [no-cache]
121-
content-length: ['0']
122-
date: ['Fri, 27 Oct 2017 22:44:30 GMT']
123-
expires: ['-1']
124-
pragma: [no-cache]
125-
strict-transport-security: [max-age=31536000; includeSubDomains]
126-
x-ms-ratelimit-remaining-subscription-writes: ['1199']
127-
status: {code: 200, message: OK}
208+
cache-control:
209+
- no-cache
210+
content-length:
211+
- '0'
212+
date:
213+
- Fri, 11 Dec 2020 10:03:51 GMT
214+
expires:
215+
- '-1'
216+
pragma:
217+
- no-cache
218+
strict-transport-security:
219+
- max-age=31536000; includeSubDomains
220+
x-content-type-options:
221+
- nosniff
222+
x-ms-ratelimit-remaining-subscription-resource-requests:
223+
- '9'
224+
status:
225+
code: 200
226+
message: OK
128227
version: 1

0 commit comments

Comments
 (0)