Skip to content

Commit 44cf76f

Browse files
author
SDKAuto
committed
CodeGen from PR 12171 in Azure/azure-rest-api-specs
Merge 907609d967c72cc3bbd0c8df6ab551f6d5836ba2 into b08824e05817297a4b2874d8db5e6fc8c29349c9
1 parent 9cd73d3 commit 44cf76f

File tree

8 files changed

+10511
-4448
lines changed

8 files changed

+10511
-4448
lines changed

schemas/2016-06-01/Microsoft.RecoveryServices.json

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

schemas/2016-12-01/Microsoft.RecoveryServices.json

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

schemas/2017-07-01/Microsoft.RecoveryServices.json

Lines changed: 52 additions & 209 deletions
Original file line numberDiff line numberDiff line change
@@ -7,60 +7,62 @@
77
"vaults_backupFabrics_backupProtectionIntent": {
88
"type": "object",
99
"properties": {
10-
"name": {
11-
"type": "string"
12-
},
13-
"type": {
14-
"type": "string",
15-
"enum": [
16-
"Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
17-
]
18-
},
1910
"apiVersion": {
2011
"type": "string",
2112
"enum": [
2213
"2017-07-01"
2314
]
2415
},
16+
"eTag": {
17+
"type": "string",
18+
"description": "Optional ETag."
19+
},
2520
"location": {
2621
"type": "string",
2722
"description": "Resource location."
2823
},
29-
"tags": {
24+
"name": {
25+
"type": "string",
26+
"description": "Intent object name."
27+
},
28+
"properties": {
3029
"oneOf": [
3130
{
32-
"type": "object",
33-
"additionalProperties": {
34-
"type": "string"
35-
}
31+
"$ref": "#/definitions/ProtectionIntent"
3632
},
3733
{
3834
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
3935
}
4036
],
41-
"description": "Resource tags."
37+
"description": "Base class for backup ProtectionIntent."
4238
},
43-
"eTag": {
44-
"type": "string",
45-
"description": "Optional ETag."
46-
},
47-
"properties": {
39+
"tags": {
4840
"oneOf": [
4941
{
50-
"$ref": "#/definitions/ProtectionIntent"
42+
"type": "object",
43+
"additionalProperties": {
44+
"type": "string"
45+
},
46+
"properties": {}
5147
},
5248
{
5349
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
5450
}
5551
],
56-
"description": "ProtectionIntentResource properties"
52+
"description": "Resource tags."
53+
},
54+
"type": {
55+
"type": "string",
56+
"enum": [
57+
"Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
58+
]
5759
}
5860
},
5961
"required": [
60-
"name",
61-
"type",
6262
"apiVersion",
63-
"properties"
63+
"name",
64+
"properties",
65+
"type"
6466
],
6567
"description": "Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent"
6668
}
@@ -70,48 +72,15 @@
7072
"type": "object",
7173
"oneOf": [
7274
{
73-
"properties": {
74-
"protectionIntentItemType": {
75-
"oneOf": [
76-
{
77-
"type": "string",
78-
"enum": [
79-
"RecoveryServiceVaultItem"
80-
]
81-
},
82-
{
83-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
84-
}
85-
]
86-
}
87-
}
88-
},
89-
{
90-
"allOf": [
91-
{
92-
"$ref": "#/definitions/AzureWorkloadAutoProtectionIntent"
93-
}
94-
],
95-
"properties": {
96-
"protectionIntentItemType": {
97-
"oneOf": [
98-
{
99-
"type": "string",
100-
"enum": [
101-
"AzureWorkloadAutoProtectionIntent"
102-
]
103-
},
104-
{
105-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
106-
}
107-
]
108-
}
109-
}
75+
"$ref": "#/definitions/AzureWorkloadAutoProtectionIntent"
11076
}
11177
],
11278
"properties": {
11379
"protectionIntentItemType": {
114-
"type": "string"
80+
"type": "string",
81+
"enum": [
82+
"RecoveryServiceVaultItem"
83+
]
11584
}
11685
},
11786
"required": [
@@ -121,32 +90,16 @@
12190
},
12291
"AzureResourceProtectionIntent": {
12392
"type": "object",
124-
"oneOf": [
125-
{
126-
"properties": {
127-
"protectionIntentItemType": {
128-
"oneOf": [
129-
{
130-
"type": "string",
131-
"enum": [
132-
"AzureResourceItem"
133-
]
134-
},
135-
{
136-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
137-
}
138-
]
139-
}
140-
}
141-
}
142-
],
14393
"properties": {
14494
"friendlyName": {
14595
"type": "string",
14696
"description": "Friendly name of the VM represented by this backup item."
14797
},
14898
"protectionIntentItemType": {
149-
"type": "string"
99+
"type": "string",
100+
"enum": [
101+
"AzureResourceItem"
102+
]
150103
}
151104
},
152105
"required": [
@@ -158,48 +111,15 @@
158111
"type": "object",
159112
"oneOf": [
160113
{
161-
"properties": {
162-
"protectionIntentItemType": {
163-
"oneOf": [
164-
{
165-
"type": "string",
166-
"enum": [
167-
"AzureWorkloadAutoProtectionIntent"
168-
]
169-
},
170-
{
171-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
172-
}
173-
]
174-
}
175-
}
176-
},
177-
{
178-
"allOf": [
179-
{
180-
"$ref": "#/definitions/AzureWorkloadSQLAutoProtectionIntent"
181-
}
182-
],
183-
"properties": {
184-
"protectionIntentItemType": {
185-
"oneOf": [
186-
{
187-
"type": "string",
188-
"enum": [
189-
"AzureWorkloadSQLAutoProtectionIntent"
190-
]
191-
},
192-
{
193-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
194-
}
195-
]
196-
}
197-
}
114+
"$ref": "#/definitions/AzureWorkloadSQLAutoProtectionIntent"
198115
}
199116
],
200117
"properties": {
201118
"protectionIntentItemType": {
202-
"type": "string"
119+
"type": "string",
120+
"enum": [
121+
"AzureWorkloadAutoProtectionIntent"
122+
]
203123
}
204124
},
205125
"required": [
@@ -209,26 +129,13 @@
209129
},
210130
"AzureWorkloadSQLAutoProtectionIntent": {
211131
"type": "object",
212-
"oneOf": [
213-
{
214-
"properties": {
215-
"protectionIntentItemType": {
216-
"oneOf": [
217-
{
218-
"type": "string",
219-
"enum": [
220-
"AzureWorkloadSQLAutoProtectionIntent"
221-
]
222-
},
223-
{
224-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
225-
}
226-
]
227-
}
228-
}
229-
}
230-
],
231132
"properties": {
133+
"protectionIntentItemType": {
134+
"type": "string",
135+
"enum": [
136+
"AzureWorkloadSQLAutoProtectionIntent"
137+
]
138+
},
232139
"workloadItemType": {
233140
"oneOf": [
234141
{
@@ -248,9 +155,6 @@
248155
}
249156
],
250157
"description": "Workload item type of the item for which intent is to be set."
251-
},
252-
"protectionIntentItemType": {
253-
"type": "string"
254158
}
255159
},
256160
"required": [
@@ -262,65 +166,10 @@
262166
"type": "object",
263167
"oneOf": [
264168
{
265-
"allOf": [
266-
{
267-
"$ref": "#/definitions/AzureRecoveryServiceVaultProtectionIntent"
268-
}
269-
],
270-
"properties": {
271-
"protectionIntentItemType": {
272-
"oneOf": [
273-
{
274-
"type": "string",
275-
"enum": [
276-
"RecoveryServiceVaultItem"
277-
]
278-
},
279-
{
280-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
281-
}
282-
]
283-
}
284-
}
285-
},
286-
{
287-
"allOf": [
288-
{
289-
"$ref": "#/definitions/AzureResourceProtectionIntent"
290-
}
291-
],
292-
"properties": {
293-
"protectionIntentItemType": {
294-
"oneOf": [
295-
{
296-
"type": "string",
297-
"enum": [
298-
"AzureResourceItem"
299-
]
300-
},
301-
{
302-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
303-
}
304-
]
305-
}
306-
}
169+
"$ref": "#/definitions/AzureRecoveryServiceVaultProtectionIntent"
307170
},
308171
{
309-
"properties": {
310-
"protectionIntentItemType": {
311-
"oneOf": [
312-
{
313-
"type": "string",
314-
"enum": [
315-
"ProtectionIntent"
316-
]
317-
},
318-
{
319-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
320-
}
321-
]
322-
}
323-
}
172+
"$ref": "#/definitions/AzureResourceProtectionIntent"
324173
}
325174
],
326175
"properties": {
@@ -346,10 +195,6 @@
346195
],
347196
"description": "Type of backup management for the backed up item."
348197
},
349-
"sourceResourceId": {
350-
"type": "string",
351-
"description": "ARM ID of the resource to be backed up."
352-
},
353198
"itemId": {
354199
"type": "string",
355200
"description": "ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId"
@@ -376,13 +221,11 @@
376221
],
377222
"description": "Backup state of this backup item."
378223
},
379-
"protectionIntentItemType": {
380-
"type": "string"
224+
"sourceResourceId": {
225+
"type": "string",
226+
"description": "ARM ID of the resource to be backed up."
381227
}
382228
},
383-
"required": [
384-
"protectionIntentItemType"
385-
],
386229
"description": "Base class for backup ProtectionIntent."
387230
}
388231
}

0 commit comments

Comments
 (0)