Skip to content

Commit 664e09d

Browse files
Migrate DataProtection from generation to main (#20786)
* Move DataProtection to main * Update New-AzDataProtectionBackupVault.md * Update New-AzDataProtectionBackupVault.md * Update and rename Changelog.md to ChangeLog.md --------- Co-authored-by: Yeming Liu <[email protected]>
1 parent 0ecbc3c commit 664e09d

File tree

805 files changed

+23376
-12344
lines changed

Some content is hidden

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

805 files changed

+23376
-12344
lines changed

src/DataProtection/Az.DataProtection.format.ps1xml

Lines changed: 528 additions & 270 deletions
Large diffs are not rendered by default.

src/DataProtection/Az.DataProtection.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 09/11/2022
6+
# Generated on: 1/30/2023
77
#
88

99
@{
@@ -145,7 +145,7 @@ PrivateData = @{
145145
# IconUri = ''
146146

147147
# ReleaseNotes of this module
148-
ReleaseNotes = '* Fixed spacing issues in Set-AzDataProtectionMSIPermission.ps1'
148+
# ReleaseNotes = ''
149149

150150
# Prerelease string of this module
151151
# Prerelease = ''

src/DataProtection/Az.DataProtection.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434

3535
if(-not $accountsModule) {
36-
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
36+
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
3737
} elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
3838
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
3939
}

src/DataProtection/Changelog.md renamed to src/DataProtection/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added support for Immutable backup vaults
22+
* Added Cross subscription restore flag for backup vaults
23+
* Added Soft delete setting for backup vaults
24+
* Fixed issue with Set-AzDataProtectionMSIPermission command
25+
* Replaced Get-InstalledModule with Get-Module -ListAvailable
26+
* Added New-AzDataProtectionSoftDeleteSettingObject command
2127

2228
## Version 1.0.1
2329
* Fixed spacing issues in Set-AzDataProtectionMSIPermission.ps1

src/DataProtection/DataProtection.sln

Lines changed: 38 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,58 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.6.30114.105
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{7420DEFA-6083-4062-8D44-6FAF25466005}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{70F3ABF5-CC20-44FA-9625-9C793F887E37}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{0D649829-9B0A-412F-8FAC-8088DF1BE079}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{BCEDA6E2-0624-4179-9F43-27E17EED7F31}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{96DD0394-7DB5-4348-9D79-DA69BE6555AE}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{23F84C52-7CD4-47DD-8879-A61B4F603606}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{6F3E1031-0E67-4DAA-90DE-340A4471D686}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{F5D50887-CA63-4D05-9019-0DED90C0C9BA}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}"
1719
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
21-
Debug|x64 = Debug|x64
22-
Debug|x86 = Debug|x86
2323
Release|Any CPU = Release|Any CPU
24-
Release|x64 = Release|x64
25-
Release|x86 = Release|x86
2624
EndGlobalSection
2725
GlobalSection(SolutionProperties) = preSolution
2826
HideSolutionNode = FALSE
2927
EndGlobalSection
3028
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x64.Build.0 = Debug|Any CPU
35-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x86.Build.0 = Debug|Any CPU
37-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x64.ActiveCfg = Release|Any CPU
40-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x64.Build.0 = Release|Any CPU
41-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x86.ActiveCfg = Release|Any CPU
42-
{7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x86.Build.0 = Release|Any CPU
43-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x64.Build.0 = Debug|Any CPU
47-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x86.Build.0 = Debug|Any CPU
49-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x64.ActiveCfg = Release|Any CPU
52-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x64.Build.0 = Release|Any CPU
53-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x86.ActiveCfg = Release|Any CPU
54-
{0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x86.Build.0 = Release|Any CPU
55-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x64.Build.0 = Debug|Any CPU
59-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x86.Build.0 = Debug|Any CPU
61-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x64.ActiveCfg = Release|Any CPU
64-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x64.Build.0 = Release|Any CPU
65-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x86.ActiveCfg = Release|Any CPU
66-
{BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x86.Build.0 = Release|Any CPU
67-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x64.Build.0 = Debug|Any CPU
71-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x86.Build.0 = Debug|Any CPU
73-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x64.ActiveCfg = Release|Any CPU
76-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x64.Build.0 = Release|Any CPU
77-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x86.ActiveCfg = Release|Any CPU
78-
{23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x86.Build.0 = Release|Any CPU
79-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x64.Build.0 = Debug|Any CPU
83-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x86.Build.0 = Debug|Any CPU
85-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x64.ActiveCfg = Release|Any CPU
88-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x64.Build.0 = Release|Any CPU
89-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x86.ActiveCfg = Release|Any CPU
90-
{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x86.Build.0 = Release|Any CPU
91-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x64.Build.0 = Debug|Any CPU
95-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x86.Build.0 = Debug|Any CPU
97-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x64.ActiveCfg = Release|Any CPU
100-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x64.Build.0 = Release|Any CPU
101-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x86.ActiveCfg = Release|Any CPU
102-
{F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x86.Build.0 = Release|Any CPU
29+
{70F3ABF5-CC20-44FA-9625-9C793F887E37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{70F3ABF5-CC20-44FA-9625-9C793F887E37}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{70F3ABF5-CC20-44FA-9625-9C793F887E37}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{70F3ABF5-CC20-44FA-9625-9C793F887E37}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{6F3E1031-0E67-4DAA-90DE-340A4471D686}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{6F3E1031-0E67-4DAA-90DE-340A4471D686}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{6F3E1031-0E67-4DAA-90DE-340A4471D686}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{6F3E1031-0E67-4DAA-90DE-340A4471D686}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Release|Any CPU.Build.0 = Release|Any CPU
10357
EndGlobalSection
10458
EndGlobal

src/DataProtection/README.md

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ 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: c0d5296b483a5fe4de7851fcd45acde14e736574
37+
branch: f38115ac455af89493b0a0719d9a987404560dda
3838
require:
3939
- $(this-folder)/../readme.azure.noprofile.md
4040
input-file:
41-
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json
41+
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-12-01/dataprotection.json
4242
title: DataProtection
4343
directive:
4444
- from: swagger-document
@@ -54,6 +54,35 @@ directive:
5454
set:
5555
parameter-name: CriticalOperationExclusionList
5656
clear-alias: true
57+
- where:
58+
parameter-name: ImmutabilitySettingState
59+
set:
60+
parameter-name: ImmutabilityState
61+
parameter-description: Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.
62+
clear-alias: true
63+
- where:
64+
parameter-name: CrossSubscriptionRestoreSettingState
65+
set:
66+
parameter-name: CrossSubscriptionRestoreState
67+
parameter-description: Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.
68+
clear-alias: true
69+
- where:
70+
parameter-name: SoftDeleteSettingRetentionDurationInDay
71+
set:
72+
parameter-name: SoftDeleteRetentionDurationInDay
73+
parameter-description: Soft delete retention duration in days.
74+
clear-alias: true
75+
- where:
76+
parameter-name: SoftDeleteSettingState
77+
set:
78+
parameter-name: SoftDeleteState
79+
parameter-description: Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.
80+
clear-alias: true
81+
- where:
82+
parameter-name: SecuritySettingSoftDeleteSetting
83+
set:
84+
parameter-name: SoftDeleteSetting
85+
clear-alias: true
5786
- where:
5887
verb: Get
5988
subject: BackupVaultResource.*
@@ -77,6 +106,9 @@ directive:
77106
verb: Update
78107
subject: ResourceGuard
79108
remove: true
109+
- where:
110+
subject: DeletedBackupInstance
111+
remove: true
80112
- where:
81113
verb: Set
82114
subject: ResourceGuard.*
@@ -217,6 +249,26 @@ directive:
217249
property-name: VaultCriticalOperationExclusionList
218250
set:
219251
property-name: CriticalOperationExclusionList
252+
- where:
253+
property-name: ImmutabilitySettingState
254+
set:
255+
property-name: ImmutabilityState
256+
- where:
257+
property-name: SecuritySettingSoftDeleteSetting
258+
set:
259+
property-name: SoftDeleteSetting
260+
- where:
261+
property-name: CrossSubscriptionRestoreSettingState
262+
set:
263+
property-name: CrossSubscriptionRestoreState
264+
- where:
265+
property-name: SoftDeleteSettingRetentionDurationInDay
266+
set:
267+
property-name: SoftDeleteRetentionDurationInDay
268+
- where:
269+
property-name: SoftDeleteSettingState
270+
set:
271+
property-name: SoftDeleteState
220272
- where:
221273
model-name: BackupVaultResource
222274
set:
@@ -227,7 +279,6 @@ directive:
227279
- Type
228280
- IdentityType
229281
- no-inline:
230-
- UserFacingError
231282
- InnerError
232283
- BackupInstance
233284
- RestoreTargetInfo
@@ -237,20 +288,21 @@ directive:
237288
- RestoreTargetInfoBase
238289
- PolicyParameters
239290
- SecretStoreBasedAuthCredentials
240-
- SecretStoreResource
291+
- SecretStoreResource
241292
- SystemData
293+
- UserFacingError
242294
- from: source-file-csharp
243295
where: $
244-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property');
296+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property');
245297
- from: source-file-csharp
246298
where: $
247-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Trigger');
299+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger');
248300
- from: source-file-csharp
249301
where: $
250-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter');
302+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter');
251303
- from: source-file-csharp
252304
where: $
253-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property');
305+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property');
254306
```
255307
256308
## 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.Api20220501.BackupInstanceResource]::FromJsonString($jsonStringResponse)
58+
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
86+
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
8787
}
8888
return $backupJobs
8989
}

0 commit comments

Comments
 (0)