Skip to content

Commit 7e4bb2f

Browse files
committed
api version upgrade
1 parent 8061039 commit 7e4bb2f

File tree

5 files changed

+53
-54
lines changed

5 files changed

+53
-54
lines changed

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@
160160
return
161161
}
162162

163-
$encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.EncryptionSettings]::new()
163+
$encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings]::new()
164164
$encryptionSettings.State = $CmkEncryptionState
165165
$encryptionSettings.CmkInfrastructureEncryption = $CmkInfrastructureEncryption
166-
$encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKekIdentity]::new()
166+
$encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity]::new()
167167
$encryptionSettings.CmkIdentity.IdentityType = $CmkIdentityType
168168
$encryptionSettings.CmkIdentity.IdentityId = $CmkUserAssignedIdentityId
169-
$encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKeyVaultProperties]::new()
169+
$encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties]::new()
170170
$encryptionSettings.CmkKeyVaultProperty.KeyUri = $CmkEncryptionKeyUri
171171

172172
$PSBoundParameters.Add("EncryptionSetting", $encryptionSettings)

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function Update-AzDataProtectionBackupVault
22
{
3-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.IBackupVaultResource')]
3+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource')]
44
[CmdletBinding(DefaultParameterSetName="UpdateExpanded", PositionalBinding=$false, SupportsShouldProcess)]
55
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a BackupVault resource belonging to a resource group. For example updating tags for a resource.')]
66

@@ -169,9 +169,9 @@
169169

170170
if ($vault.EncryptionSetting -ne $null) { $encryptionSettings = $vault.EncryptionSetting }
171171
else {
172-
$encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.EncryptionSettings]::new()
173-
$encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKekIdentity]::new()
174-
$encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKeyVaultProperties]::new()
172+
$encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings]::new()
173+
$encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity]::new()
174+
$encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties]::new()
175175
}
176176

177177
if ($hasCmkEncryptionState) { $encryptionSettings.State = $CmkEncryptionState }

src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ $vault.EncryptionSetting.CmkKeyVaultProperty |fl
105105
```
106106

107107
```output
108-
CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKekIdentity
108+
CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity
109109
CmkInfrastructureEncryption : Enabled
110-
CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKeyVaultProperties
110+
CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties
111111
State : Enabled
112112
113113
IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities

src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ $vault.EncryptionSetting.CmkKeyVaultProperty |fl
6262
```
6363

6464
```output
65-
CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKekIdentity
65+
CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity
6666
CmkInfrastructureEncryption : Enabled
67-
CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240301.CmkKeyVaultProperties
67+
CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties
6868
State : Enabled
6969
7070
IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities

0 commit comments

Comments
 (0)