@@ -34,21 +34,35 @@ This file contains the configuration for generating My API from the OpenAPI spec
34
34
35
35
``` yaml
36
36
# it's the same options as command line options, just drop the double-dash!
37
- branch : 8c9a6bd96daf9e0e7f4bba47df78dfa0a23acf07
37
+ branch : acf24167b5174d88f36302e243c883f2e63eec52
38
38
require :
39
39
- $(this-folder)/../readme.azure.noprofile.md
40
40
input-file :
41
- - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01 -01/dataprotection.json
41
+ - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-05 -01/dataprotection.json
42
42
title : DataProtection
43
43
directive :
44
44
- from : swagger-document
45
45
where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete
46
46
transform : $["description"] = "Delete a backupInstances"
47
- - where :
47
+ - from : swagger-document
48
+ where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete"]["post"]["parameters"]
49
+ transform : >
50
+ $.push({"name": "x-ms-authorization-auxiliary","in": "header","type": "string"})
51
+ - where :
52
+ parameter-name : XmsAuthorizationAuxiliary
53
+ set :
54
+ parameter-name : Token
55
+ parameter-description : Parameter to authorize operations protected by cross tenant resource guard. Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Token to fetch authorization token for different tenant.
56
+ - where :
48
57
parameter-name : AzureMonitorAlertSettingAlertsForAllJobFailure
49
58
set :
50
59
parameter-name : AzureMonitorAlertsForAllJobFailure
51
60
parameter-description : Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.
61
+ - where :
62
+ parameter-name : ResourceGuardResourceId
63
+ set :
64
+ parameter-name : ResourceGuardId
65
+ parameter-description : Resource Guard ARM Id to enable MUA protection for Backup Vault.
52
66
- where :
53
67
parameter-name : VaultCriticalOperationExclusionList
54
68
set :
@@ -66,6 +80,12 @@ directive:
66
80
parameter-name : CrossSubscriptionRestoreState
67
81
parameter-description : Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.
68
82
clear-alias : true
83
+ - where :
84
+ parameter-name : CrossRegionRestoreSettingState
85
+ set :
86
+ parameter-name : CrossRegionRestoreState
87
+ parameter-description : Cross region restore state of the vault. Allowed values are Disabled, Enabled.
88
+ clear-alias : true
69
89
- where :
70
90
parameter-name : SoftDeleteSettingRetentionDurationInDay
71
91
set :
@@ -100,14 +120,15 @@ directive:
100
120
parameter-name : Name
101
121
clear-alias : true
102
122
- where :
103
- subject : ResourceGuard.+
123
+ subject : ResourceGuard.+RequestObject
104
124
remove : true
105
125
- where :
106
126
verb : Update
107
127
subject : ResourceGuard
108
128
remove : true
109
129
- where :
110
- subject : DeletedBackupInstance
130
+ verb : Get
131
+ subject : ResourceGuardResource
111
132
remove : true
112
133
- where :
113
134
verb : Set
@@ -118,6 +139,46 @@ directive:
118
139
verb : New
119
140
subject : ResourceGuard
120
141
hide : true
142
+ - where :
143
+ verb : Unlock
144
+ variant : ^UnlockViaIdentityExpanded$|^UnlockViaIdentity$|^Unlock$
145
+ remove : true
146
+ - where :
147
+ verb : Unlock
148
+ variant : ^UnlockExpanded$
149
+ hide : true
150
+ - where :
151
+ verb : New
152
+ subject : ResourceGuardProxy$
153
+ variant : ^Create$|^UpdateExpanded$|^UpdateViaIdentityExpanded$
154
+ remove : true
155
+ - where :
156
+ subject : DppResourceGuardProxy$
157
+ set :
158
+ subject : ResourceGuardMapping
159
+ - where :
160
+ parameter-name : ResourceGuardProxyName
161
+ hide : true
162
+ set :
163
+ default :
164
+ script : ' "DppResourceGuardProxy"'
165
+ - where :
166
+ verb : New
167
+ subject : ResourceGuardMapping
168
+ parameter-name : LastUpdatedTime|Description|ResourceGuardOperationDetail
169
+ hide : true
170
+ - where :
171
+ verb : Get
172
+ subject : DeletedBackupInstance
173
+ set :
174
+ verb : Get
175
+ subject : SoftDeletedBackupInstance
176
+ - where :
177
+ verb : Restore
178
+ subject : DeletedBackupInstance
179
+ set :
180
+ verb : Undo
181
+ subject : BackupInstanceDeletion
121
182
- where :
122
183
subject : RecoveryPoint
123
184
variant : List
@@ -208,9 +269,17 @@ directive:
208
269
set :
209
270
verb : Find
210
271
subject : RestorableTimeRange
272
+ - where :
273
+ verb : New
274
+ subject : ResourceGuardMapping$
275
+ set :
276
+ verb : Set
211
277
- from : swagger-document
212
278
where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges"].post
213
279
transform : $["description"] = "Finds the valid recovery point in time ranges for the restore."
280
+ - from : swagger-document
281
+ where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete"].post
282
+ transform : $["description"] = "Undeletes a soft deleted backup instance"
214
283
- where :
215
284
verb : Test
216
285
subject : BackupInstance
@@ -236,7 +305,11 @@ directive:
236
305
- where :
237
306
property-name : AzureMonitorAlertSettingAlertsForAllJobFailure
238
307
set :
239
- property-name : AzureMonitorAlertsForAllJobFailure
308
+ property-name : AzureMonitorAlertsForAllJobFailure
309
+ - where :
310
+ property-name : ResourceGuardResourceId
311
+ set :
312
+ property-name : ResourceGuardId
240
313
- where :
241
314
property-name : VaultCriticalOperationExclusionList
242
315
set :
@@ -253,6 +326,10 @@ directive:
253
326
property-name : CrossSubscriptionRestoreSettingState
254
327
set :
255
328
property-name : CrossSubscriptionRestoreState
329
+ - where :
330
+ property-name : CrossRegionRestoreSettingState
331
+ set :
332
+ property-name : CrossRegionRestoreState
256
333
- where :
257
334
property-name : SoftDeleteSettingRetentionDurationInDay
258
335
set :
@@ -281,30 +358,31 @@ directive:
281
358
- Type
282
359
- IdentityType
283
360
- no-inline :
284
- - InnerError
285
361
- BackupInstance
286
- - RestoreTargetInfo
287
- - ValidateRestoreRequestObject
362
+ - DeletionInfo
363
+ - InnerError
288
364
- ItemLevelRestoreTargetInfo
365
+ - PolicyParameters
289
366
- RestoreFilesTargetInfo
367
+ - RestoreTargetInfo
290
368
- RestoreTargetInfoBase
291
- - PolicyParameters
292
369
- SecretStoreBasedAuthCredentials
293
370
- SecretStoreResource
294
371
- SystemData
295
372
- UserFacingError
373
+ - ValidateRestoreRequestObject
296
374
- from : source-file-csharp
297
375
where : $
298
- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IBaseBackupPolicy Property');
376
+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IBaseBackupPolicy Property');
299
377
- from : source-file-csharp
300
378
where : $
301
- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .ITriggerContext Trigger');
379
+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .ITriggerContext Trigger');
302
380
- from : source-file-csharp
303
381
where : $
304
- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IBackupParameters BackupParameter');
382
+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IBackupParameters BackupParameter');
305
383
- from : source-file-csharp
306
384
where : $
307
- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301 .IAzureBackupRecoveryPoint Property');
385
+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501 .IAzureBackupRecoveryPoint Property');
308
386
` ` `
309
387
310
388
## Alternate settings
0 commit comments