|
7 | 7 | "vaults_backupFabrics_backupProtectionIntent": { |
8 | 8 | "type": "object", |
9 | 9 | "properties": { |
10 | | - "name": { |
11 | | - "type": "string" |
12 | | - }, |
13 | | - "type": { |
14 | | - "type": "string", |
15 | | - "enum": [ |
16 | | - "Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent" |
17 | | - ] |
18 | | - }, |
19 | 10 | "apiVersion": { |
20 | 11 | "type": "string", |
21 | 12 | "enum": [ |
22 | 13 | "2017-07-01" |
23 | 14 | ] |
24 | 15 | }, |
| 16 | + "eTag": { |
| 17 | + "type": "string", |
| 18 | + "description": "Optional ETag." |
| 19 | + }, |
25 | 20 | "location": { |
26 | 21 | "type": "string", |
27 | 22 | "description": "Resource location." |
28 | 23 | }, |
29 | | - "tags": { |
| 24 | + "name": { |
| 25 | + "type": "string", |
| 26 | + "description": "Intent object name." |
| 27 | + }, |
| 28 | + "properties": { |
30 | 29 | "oneOf": [ |
31 | 30 | { |
32 | | - "type": "object", |
33 | | - "additionalProperties": { |
34 | | - "type": "string" |
35 | | - } |
| 31 | + "$ref": "#/definitions/ProtectionIntent" |
36 | 32 | }, |
37 | 33 | { |
38 | 34 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
39 | 35 | } |
40 | 36 | ], |
41 | | - "description": "Resource tags." |
| 37 | + "description": "Base class for backup ProtectionIntent." |
42 | 38 | }, |
43 | | - "eTag": { |
44 | | - "type": "string", |
45 | | - "description": "Optional ETag." |
46 | | - }, |
47 | | - "properties": { |
| 39 | + "tags": { |
48 | 40 | "oneOf": [ |
49 | 41 | { |
50 | | - "$ref": "#/definitions/ProtectionIntent" |
| 42 | + "type": "object", |
| 43 | + "additionalProperties": { |
| 44 | + "type": "string" |
| 45 | + }, |
| 46 | + "properties": {} |
51 | 47 | }, |
52 | 48 | { |
53 | 49 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
54 | 50 | } |
55 | 51 | ], |
56 | | - "description": "ProtectionIntentResource properties" |
| 52 | + "description": "Resource tags." |
| 53 | + }, |
| 54 | + "type": { |
| 55 | + "type": "string", |
| 56 | + "enum": [ |
| 57 | + "Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent" |
| 58 | + ] |
57 | 59 | } |
58 | 60 | }, |
59 | 61 | "required": [ |
60 | | - "name", |
61 | | - "type", |
62 | 62 | "apiVersion", |
63 | | - "properties" |
| 63 | + "name", |
| 64 | + "properties", |
| 65 | + "type" |
64 | 66 | ], |
65 | 67 | "description": "Microsoft.RecoveryServices/vaults/backupFabrics/backupProtectionIntent" |
66 | 68 | } |
|
70 | 72 | "type": "object", |
71 | 73 | "oneOf": [ |
72 | 74 | { |
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" |
110 | 76 | } |
111 | 77 | ], |
112 | 78 | "properties": { |
113 | 79 | "protectionIntentItemType": { |
114 | | - "type": "string" |
| 80 | + "type": "string", |
| 81 | + "enum": [ |
| 82 | + "RecoveryServiceVaultItem" |
| 83 | + ] |
115 | 84 | } |
116 | 85 | }, |
117 | 86 | "required": [ |
|
121 | 90 | }, |
122 | 91 | "AzureResourceProtectionIntent": { |
123 | 92 | "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 | | - ], |
143 | 93 | "properties": { |
144 | 94 | "friendlyName": { |
145 | 95 | "type": "string", |
146 | 96 | "description": "Friendly name of the VM represented by this backup item." |
147 | 97 | }, |
148 | 98 | "protectionIntentItemType": { |
149 | | - "type": "string" |
| 99 | + "type": "string", |
| 100 | + "enum": [ |
| 101 | + "AzureResourceItem" |
| 102 | + ] |
150 | 103 | } |
151 | 104 | }, |
152 | 105 | "required": [ |
|
158 | 111 | "type": "object", |
159 | 112 | "oneOf": [ |
160 | 113 | { |
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" |
198 | 115 | } |
199 | 116 | ], |
200 | 117 | "properties": { |
201 | 118 | "protectionIntentItemType": { |
202 | | - "type": "string" |
| 119 | + "type": "string", |
| 120 | + "enum": [ |
| 121 | + "AzureWorkloadAutoProtectionIntent" |
| 122 | + ] |
203 | 123 | } |
204 | 124 | }, |
205 | 125 | "required": [ |
|
209 | 129 | }, |
210 | 130 | "AzureWorkloadSQLAutoProtectionIntent": { |
211 | 131 | "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 | | - ], |
231 | 132 | "properties": { |
| 133 | + "protectionIntentItemType": { |
| 134 | + "type": "string", |
| 135 | + "enum": [ |
| 136 | + "AzureWorkloadSQLAutoProtectionIntent" |
| 137 | + ] |
| 138 | + }, |
232 | 139 | "workloadItemType": { |
233 | 140 | "oneOf": [ |
234 | 141 | { |
|
248 | 155 | } |
249 | 156 | ], |
250 | 157 | "description": "Workload item type of the item for which intent is to be set." |
251 | | - }, |
252 | | - "protectionIntentItemType": { |
253 | | - "type": "string" |
254 | 158 | } |
255 | 159 | }, |
256 | 160 | "required": [ |
|
262 | 166 | "type": "object", |
263 | 167 | "oneOf": [ |
264 | 168 | { |
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" |
307 | 170 | }, |
308 | 171 | { |
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" |
324 | 173 | } |
325 | 174 | ], |
326 | 175 | "properties": { |
|
346 | 195 | ], |
347 | 196 | "description": "Type of backup management for the backed up item." |
348 | 197 | }, |
349 | | - "sourceResourceId": { |
350 | | - "type": "string", |
351 | | - "description": "ARM ID of the resource to be backed up." |
352 | | - }, |
353 | 198 | "itemId": { |
354 | 199 | "type": "string", |
355 | 200 | "description": "ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId" |
|
376 | 221 | ], |
377 | 222 | "description": "Backup state of this backup item." |
378 | 223 | }, |
379 | | - "protectionIntentItemType": { |
380 | | - "type": "string" |
| 224 | + "sourceResourceId": { |
| 225 | + "type": "string", |
| 226 | + "description": "ARM ID of the resource to be backed up." |
381 | 227 | } |
382 | 228 | }, |
383 | | - "required": [ |
384 | | - "protectionIntentItemType" |
385 | | - ], |
386 | 229 | "description": "Base class for backup ProtectionIntent." |
387 | 230 | } |
388 | 231 | } |
|
0 commit comments