@@ -31,11 +31,11 @@ This file contains the configuration for generating My API from the OpenAPI spec
3131
3232``` yaml
3333# it's the same options as command line options, just drop the double-dash!
34- commit : 4aad50a36767f7c36673f2c7982bb4055dbf5ed4
34+ commit : b88b86f58a98ee1569ae6e7cba6f84061e15166b
3535require :
3636 - $(this-folder)/../../readme.azure.noprofile.md
3737input-file :
38- - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04 -01/dataprotection.json
38+ - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01 -01/dataprotection.json
3939title : DataProtection
4040# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
4141use-extension :
@@ -310,10 +310,19 @@ directive:
310310 - from : swagger-document
311311 where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete"].post
312312 transform : $["description"] = "Undeletes a soft deleted backup instance"
313+ - from : swagger-document
314+ where : $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateForModifyBackup"].post
315+ transform : >
316+ $.responses["200"] = {
317+ "description": "Contains additional information like job Id",
318+ "schema": {
319+ "$ref": "#/definitions/OperationJobExtendedInfo"
320+ }
321+ }
313322 - where :
314323 verb : Test
315324 subject : BackupInstance
316- variant : ^Validate1 $|^ValidateExpanded1 $|^ValidateViaIdentity1 $|^ValidateViaIdentityExpanded1 $
325+ variant : ^Validate2 $|^ValidateExpanded2 $|^ValidateViaIdentity2 $|^ValidateViaIdentityExpanded2 $
317326 set :
318327 subject : BackupInstanceRestore
319328 - where :
@@ -322,6 +331,17 @@ directive:
322331 variant : ^Validate$|^ValidateExpanded$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$
323332 set :
324333 subject : BackupInstanceReadiness
334+ - where :
335+ verb : Test
336+ subject : BackupInstance
337+ variant : ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
338+ set :
339+ subject : BackupInstanceUpdate
340+ - where :
341+ verb : Test
342+ subject : BackupInstanceUpdate
343+ variant : ^Validate1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$
344+ hide : true
325345 - where :
326346 verb : Test
327347 subject : BackupInstanceReadiness
@@ -330,12 +350,19 @@ directive:
330350 - where :
331351 verb : Test
332352 subject : BackupInstanceRestore
333- variant : ^Validate1 $|^ValidateExpanded1 $|^ValidateViaIdentity1 $|^ValidateViaIdentityExpanded1 $
353+ variant : ^Validate2 $|^ValidateExpanded2 $|^ValidateViaIdentity2 $|^ValidateViaIdentityExpanded2 $
334354 hide : true
335355 - where :
336356 verb : Test
337357 subject : BackupInstanceCrossRegionRestore
338358 hide : true
359+ - where :
360+ verb : Test
361+ subject : BackupInstanceUpdate
362+ parameter-name : Name
363+ set :
364+ alias :
365+ - BackupInstanceName
339366 - where :
340367 subject : FetchCrossRegionRestoreJob
341368 set :
@@ -440,19 +467,19 @@ directive:
440467 - EncryptionSettings
441468 - from : source-file-csharp
442469 where : $
443- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IBaseBackupPolicy Property');
470+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IBaseBackupPolicy Property');
444471 - from : source-file-csharp
445472 where : $
446- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .ITriggerContext Trigger');
473+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .ITriggerContext Trigger');
447474 - from : source-file-csharp
448475 where : $
449- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IBackupParameters BackupParameter');
476+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IBackupParameters BackupParameter');
450477 - from : source-file-csharp
451478 where : $
452- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .IAzureBackupRecoveryPoint Property');
479+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .IAzureBackupRecoveryPoint Property');
453480 - from : source-file-csharp
454481 where : $
455- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401 .INamespacedNameResource ResourceModifierReference');
482+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 .INamespacedNameResource ResourceModifierReference');
456483` ` `
457484
458485## Alternate settings
0 commit comments