Skip to content

Commit f20d144

Browse files
Migrate DataProtection from generation to main (#22752)
* Move DataProtection to main * Update ChangeLog.md --------- Co-authored-by: Beisi Zhou <[email protected]>
1 parent 32c1d49 commit f20d144

File tree

977 files changed

+33686
-21037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

977 files changed

+33686
-21037
lines changed

src/DataProtection/Az.DataProtection.format.ps1xml

Lines changed: 624 additions & 762 deletions
Large diffs are not rendered by default.

src/DataProtection/Az.DataProtection.psd1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 2023/5/22
6+
# Generated on: 9/8/2023
77
#
88

99
@{
@@ -82,6 +82,8 @@ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc',
8282
'Get-AzDataProtectionPolicyTemplate',
8383
'Get-AzDataProtectionRecoveryPoint',
8484
'Get-AzDataProtectionResourceGuard',
85+
'Get-AzDataProtectionResourceGuardMapping',
86+
'Get-AzDataProtectionSoftDeletedBackupInstance',
8587
'Initialize-AzDataProtectionBackupInstance',
8688
'Initialize-AzDataProtectionRestoreRequest',
8789
'New-AzDataProtectionBackupConfigurationClientObject',
@@ -98,16 +100,20 @@ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc',
98100
'Remove-AzDataProtectionBackupPolicy',
99101
'Remove-AzDataProtectionBackupVault',
100102
'Remove-AzDataProtectionResourceGuard',
103+
'Remove-AzDataProtectionResourceGuardMapping',
101104
'Resume-AzDataProtectionBackupInstanceProtection',
102105
'Search-AzDataProtectionBackupInstanceInAzGraph',
103106
'Search-AzDataProtectionJobInAzGraph',
104107
'Set-AzDataProtectionMSIPermission',
108+
'Set-AzDataProtectionResourceGuardMapping',
105109
'Start-AzDataProtectionBackupInstanceRestore',
106110
'Stop-AzDataProtectionBackupInstanceProtection',
107111
'Suspend-AzDataProtectionBackupInstanceBackup',
108112
'Sync-AzDataProtectionBackupInstance',
109113
'Test-AzDataProtectionBackupInstanceReadiness',
110114
'Test-AzDataProtectionBackupInstanceRestore',
115+
'Undo-AzDataProtectionBackupInstanceDeletion',
116+
'Unlock-AzDataProtectionResourceGuardOperation',
111117
'Update-AzDataProtectionBackupInstanceAssociatedPolicy',
112118
'Update-AzDataProtectionBackupVault',
113119
'Update-AzDataProtectionResourceGuard'
@@ -148,9 +154,7 @@ PrivateData = @{
148154
# IconUri = ''
149155

150156
# ReleaseNotes of this module
151-
ReleaseNotes = '* Added support for Blob Hardened recovery points (VaultStore).
152-
* Added Cross Subscription Restore for ''AzureDisk'', ''AzureDatabaseForPostgreSQL'' and ''AzureBlob''.
153-
* Added ''Get-AzDataProtectionOperationStatus'' command for long running cmdlets async.'
157+
# ReleaseNotes = ''
154158

155159
# Prerelease string of this module
156160
# Prerelease = ''

src/DataProtection/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added soft delete and MUA feature for Backup vaults
2122

2223
## Version 2.0.0
2324
* Added support for Blob Hardened recovery points (VaultStore).

src/DataProtection/DataProtection.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{398EF48B-489A-44DB-B79F-6CED7DC63DCE}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{BEC6FDEF-5EE5-48E7-8E2D-2C161A694B16}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{4AE906DE-A5C2-45F2-80A4-581C44C50C50}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{6B6D18EB-5DBA-40E1-9885-EEDC20FE1EB7}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{ABD089A9-55AC-4FDF-A907-A31CBB3DAA5E}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C287FD01-D7BB-453B-A2C9-F00B5023B6E2}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{A7746F87-D02D-4DEB-AAA5-3572FBECCF8D}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{CFFC3DFF-9198-40E7-9A11-9016F3916FD9}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{6497C88D-B85F-43D5-8200-559B48EB7B41}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{ED7AA445-E51F-4C5D-A5A8-4546F01C55A0}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{BD8BE80E-FB55-4063-9AC1-5612A12C7D76}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{92B04A47-461C-4BEF-AEE8-204C381E4465}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{2FD485D2-FC57-4579-B055-30FB15795B29}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{17F1C082-BEF7-4FBC-A7E4-84D87750D0B0}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{398EF48B-489A-44DB-B79F-6CED7DC63DCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{398EF48B-489A-44DB-B79F-6CED7DC63DCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{398EF48B-489A-44DB-B79F-6CED7DC63DCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{398EF48B-489A-44DB-B79F-6CED7DC63DCE}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{4AE906DE-A5C2-45F2-80A4-581C44C50C50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{4AE906DE-A5C2-45F2-80A4-581C44C50C50}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{4AE906DE-A5C2-45F2-80A4-581C44C50C50}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{4AE906DE-A5C2-45F2-80A4-581C44C50C50}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{ABD089A9-55AC-4FDF-A907-A31CBB3DAA5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{ABD089A9-55AC-4FDF-A907-A31CBB3DAA5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{ABD089A9-55AC-4FDF-A907-A31CBB3DAA5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{ABD089A9-55AC-4FDF-A907-A31CBB3DAA5E}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{A7746F87-D02D-4DEB-AAA5-3572FBECCF8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{A7746F87-D02D-4DEB-AAA5-3572FBECCF8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{A7746F87-D02D-4DEB-AAA5-3572FBECCF8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{A7746F87-D02D-4DEB-AAA5-3572FBECCF8D}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{6497C88D-B85F-43D5-8200-559B48EB7B41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{6497C88D-B85F-43D5-8200-559B48EB7B41}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{6497C88D-B85F-43D5-8200-559B48EB7B41}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{6497C88D-B85F-43D5-8200-559B48EB7B41}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{BD8BE80E-FB55-4063-9AC1-5612A12C7D76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{BD8BE80E-FB55-4063-9AC1-5612A12C7D76}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{BD8BE80E-FB55-4063-9AC1-5612A12C7D76}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{BD8BE80E-FB55-4063-9AC1-5612A12C7D76}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{2FD485D2-FC57-4579-B055-30FB15795B29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{2FD485D2-FC57-4579-B055-30FB15795B29}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{2FD485D2-FC57-4579-B055-30FB15795B29}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{2FD485D2-FC57-4579-B055-30FB15795B29}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{BEC6FDEF-5EE5-48E7-8E2D-2C161A694B16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{BEC6FDEF-5EE5-48E7-8E2D-2C161A694B16}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{BEC6FDEF-5EE5-48E7-8E2D-2C161A694B16}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{BEC6FDEF-5EE5-48E7-8E2D-2C161A694B16}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{6B6D18EB-5DBA-40E1-9885-EEDC20FE1EB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{6B6D18EB-5DBA-40E1-9885-EEDC20FE1EB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{6B6D18EB-5DBA-40E1-9885-EEDC20FE1EB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{6B6D18EB-5DBA-40E1-9885-EEDC20FE1EB7}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{C287FD01-D7BB-453B-A2C9-F00B5023B6E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{C287FD01-D7BB-453B-A2C9-F00B5023B6E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{C287FD01-D7BB-453B-A2C9-F00B5023B6E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{C287FD01-D7BB-453B-A2C9-F00B5023B6E2}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{CFFC3DFF-9198-40E7-9A11-9016F3916FD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{CFFC3DFF-9198-40E7-9A11-9016F3916FD9}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{CFFC3DFF-9198-40E7-9A11-9016F3916FD9}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{CFFC3DFF-9198-40E7-9A11-9016F3916FD9}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{ED7AA445-E51F-4C5D-A5A8-4546F01C55A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{ED7AA445-E51F-4C5D-A5A8-4546F01C55A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{ED7AA445-E51F-4C5D-A5A8-4546F01C55A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{ED7AA445-E51F-4C5D-A5A8-4546F01C55A0}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{92B04A47-461C-4BEF-AEE8-204C381E4465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{92B04A47-461C-4BEF-AEE8-204C381E4465}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{92B04A47-461C-4BEF-AEE8-204C381E4465}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{92B04A47-461C-4BEF-AEE8-204C381E4465}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{17F1C082-BEF7-4FBC-A7E4-84D87750D0B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{17F1C082-BEF7-4FBC-A7E4-84D87750D0B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{17F1C082-BEF7-4FBC-A7E4-84D87750D0B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{17F1C082-BEF7-4FBC-A7E4-84D87750D0B0}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/DataProtection/README.md

Lines changed: 92 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,35 @@ This file contains the configuration for generating My API from the OpenAPI spec
3434
3535
``` yaml
3636
# it's the same options as command line options, just drop the double-dash!
37-
branch: 8c9a6bd96daf9e0e7f4bba47df78dfa0a23acf07
37+
branch: acf24167b5174d88f36302e243c883f2e63eec52
3838
require:
3939
- $(this-folder)/../readme.azure.noprofile.md
4040
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
4242
title: DataProtection
4343
directive:
4444
- from: swagger-document
4545
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete
4646
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:
4857
parameter-name: AzureMonitorAlertSettingAlertsForAllJobFailure
4958
set:
5059
parameter-name: AzureMonitorAlertsForAllJobFailure
5160
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.
5266
- where:
5367
parameter-name: VaultCriticalOperationExclusionList
5468
set:
@@ -66,6 +80,12 @@ directive:
6680
parameter-name: CrossSubscriptionRestoreState
6781
parameter-description: Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.
6882
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
6989
- where:
7090
parameter-name: SoftDeleteSettingRetentionDurationInDay
7191
set:
@@ -100,14 +120,15 @@ directive:
100120
parameter-name: Name
101121
clear-alias: true
102122
- where:
103-
subject: ResourceGuard.+
123+
subject: ResourceGuard.+RequestObject
104124
remove: true
105125
- where:
106126
verb: Update
107127
subject: ResourceGuard
108128
remove: true
109129
- where:
110-
subject: DeletedBackupInstance
130+
verb: Get
131+
subject: ResourceGuardResource
111132
remove: true
112133
- where:
113134
verb: Set
@@ -118,6 +139,46 @@ directive:
118139
verb: New
119140
subject: ResourceGuard
120141
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
121182
- where:
122183
subject: RecoveryPoint
123184
variant: List
@@ -208,9 +269,17 @@ directive:
208269
set:
209270
verb: Find
210271
subject: RestorableTimeRange
272+
- where:
273+
verb: New
274+
subject: ResourceGuardMapping$
275+
set:
276+
verb: Set
211277
- from: swagger-document
212278
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges"].post
213279
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"
214283
- where:
215284
verb: Test
216285
subject: BackupInstance
@@ -236,7 +305,11 @@ directive:
236305
- where:
237306
property-name: AzureMonitorAlertSettingAlertsForAllJobFailure
238307
set:
239-
property-name: AzureMonitorAlertsForAllJobFailure
308+
property-name: AzureMonitorAlertsForAllJobFailure
309+
- where:
310+
property-name: ResourceGuardResourceId
311+
set:
312+
property-name: ResourceGuardId
240313
- where:
241314
property-name: VaultCriticalOperationExclusionList
242315
set:
@@ -253,6 +326,10 @@ directive:
253326
property-name: CrossSubscriptionRestoreSettingState
254327
set:
255328
property-name: CrossSubscriptionRestoreState
329+
- where:
330+
property-name: CrossRegionRestoreSettingState
331+
set:
332+
property-name: CrossRegionRestoreState
256333
- where:
257334
property-name: SoftDeleteSettingRetentionDurationInDay
258335
set:
@@ -281,30 +358,31 @@ directive:
281358
- Type
282359
- IdentityType
283360
- no-inline:
284-
- InnerError
285361
- BackupInstance
286-
- RestoreTargetInfo
287-
- ValidateRestoreRequestObject
362+
- DeletionInfo
363+
- InnerError
288364
- ItemLevelRestoreTargetInfo
365+
- PolicyParameters
289366
- RestoreFilesTargetInfo
367+
- RestoreTargetInfo
290368
- RestoreTargetInfoBase
291-
- PolicyParameters
292369
- SecretStoreBasedAuthCredentials
293370
- SecretStoreResource
294371
- SystemData
295372
- UserFacingError
373+
- ValidateRestoreRequestObject
296374
- from: source-file-csharp
297375
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');
299377
- from: source-file-csharp
300378
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');
302380
- from: source-file-csharp
303381
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');
305383
- from: source-file-csharp
306384
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');
308386
```
309387
310388
## Alternate settings

src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
foreach($argResponse in $argInstanceResponse)
5656
{
5757
$jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100
58-
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301.BackupInstanceResource]::FromJsonString($jsonStringResponse)
58+
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.BackupInstanceResource]::FromJsonString($jsonStringResponse)
5959
}
6060
return $backupInstances
6161
}

src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
foreach($jobresponse in $argJobResponse)
8484
{
8585
$jsonStringResponse = $jobresponse | ConvertTo-Json -Depth 100
86-
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202301.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
86+
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20230501.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
8787
}
8888
return $backupJobs
8989
}

0 commit comments

Comments
 (0)