Skip to content

Commit e96c959

Browse files
authored
[Az.DataProtection] Onboarded new workloads - PGFlex and MySQL (#24443)
* Onboarded PGFlex and MySQL workloads. Added end to end support for these workloads. * re-recorded all test cases * reverted breaking change by modifying default parameter set name
1 parent b81b492 commit e96c959

File tree

109 files changed

+9631
-5009
lines changed

Some content is hidden

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

109 files changed

+9631
-5009
lines changed

src/DataProtection/DataProtection.Autorest/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the DataProtection service.
44

55
---
6-
## Status
7-
[![Az.DataProtection](https://img.shields.io/powershellgallery/v/Az.DataProtection.svg?style=flat-square&label=Az.DataProtection "Az.DataProtection")](https://www.powershellgallery.com/packages/Az.DataProtection/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -34,11 +31,11 @@ This file contains the configuration for generating My API from the OpenAPI spec
3431
3532
``` yaml
3633
# it's the same options as command line options, just drop the double-dash!
37-
commit: c0e7b1360c19187fde2497251f784aa82641aa95
34+
commit: 41d1c179dc166b7f16b7e40ef4f2a1d9c85b10cc
3835
require:
3936
- $(this-folder)/../../readme.azure.noprofile.md
4037
input-file:
41-
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json
38+
- $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json
4239
title: DataProtection
4340
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
4441
use-extension:
@@ -401,16 +398,16 @@ directive:
401398
- ValidateCrossRegionRestoreRequestObject
402399
- from: source-file-csharp
403400
where: $
404-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property');
401+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property');
405402
- from: source-file-csharp
406403
where: $
407-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger');
404+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger');
408405
- from: source-file-csharp
409406
where: $
410-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter');
407+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter');
411408
- from: source-file-csharp
412409
where: $
413-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property');
410+
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property');
414411
```
415412
416413
## Alternate settings

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupInstances/recoveryPoints",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupInstances",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupJobs",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupPolicies",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/backupResourceGuardProxies",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults/deletedBackupInstances",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "backupVaults",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "locations/operationStatus",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "resourceGuards",
3-
"apiVersion": "2023-11-01",
3+
"apiVersion": "2023-12-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
66
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
param (
88
[Parameter(Mandatory, HelpMessage='Subscription of Vault')]
99
[System.String[]]
10-
${Subscription},
10+
${Subscription}, # TODO: add alias to all ARG command params
1111

1212
[Parameter(Mandatory=$false, HelpMessage='Resource Group of Vault')]
1313
[System.String[]]
@@ -102,7 +102,7 @@
102102
foreach($argResponse in $argInstanceResponse)
103103
{
104104
$jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100
105-
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]::FromJsonString($jsonStringResponse)
105+
$backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]::FromJsonString($jsonStringResponse)
106106
}
107107
return $backupInstances
108108
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66

77
param (
88
[Parameter(Mandatory, HelpMessage='Subscription of Vault')]
9+
[Alias('SubscriptionId')]
910
[System.String[]]
1011
${Subscription},
1112

1213
[Parameter(Mandatory=$false, HelpMessage='Resource Group of Vault')]
14+
[Alias('ResourceGroupName')]
1315
[System.String[]]
1416
${ResourceGroup},
1517

1618
[Parameter(Mandatory=$false, HelpMessage='Name of the vault')]
19+
[Alias('VaultName')]
1720
[System.String[]]
1821
${Vault},
1922

@@ -67,7 +70,7 @@
6770
process
6871
{
6972
CheckResourceGraphModuleDependency
70-
73+
7174
# $manifest = LoadManifest -DatasourceType $DatasourceType
7275
$query = GetBackupVaultARGQuery
7376

@@ -91,7 +94,7 @@
9194
foreach($argVault in $argAllVaults)
9295
{
9396
$jsonStringResponse = $argVault | ConvertTo-Json -Depth 100
94-
$backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResource]::FromJsonString($jsonStringResponse)
97+
$backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource]::FromJsonString($jsonStringResponse)
9598
}
9699
return $backupVaults
97100
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
foreach($jobresponse in $argJobResponse)
131131
{
132132
$jsonStringResponse = $jobresponse | ConvertTo-Json -Depth 100
133-
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
133+
$backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
134134
}
135135
return $backupJobs
136136
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
function Initialize-AzDataProtectionBackupInstance {
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
66
[CmdletBinding(PositionalBinding=$false)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')]
88

@@ -44,14 +44,14 @@ function Initialize-AzDataProtectionBackupInstance {
4444
${FriendlyName},
4545

4646
[Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService.')]
47-
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupDatasourceParameters]
47+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
4848
${BackupConfiguration}
4949
)
5050

5151
process {
5252

5353
$manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
54-
$backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstance]::new()
54+
$backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance]::new()
5555
$backupInstance.ObjectType = "BackupInstance"
5656

5757
if($manifest.snapshotRGPermissions.Length -eq 0 -and $SnapshotResourceGroupId -ne "")
@@ -70,12 +70,15 @@ function Initialize-AzDataProtectionBackupInstance {
7070
$backupInstance.DataSourceSetInfo = GetDatasourceSetInfo -DatasourceInfo $backupInstance.DataSourceInfo -DatasourceType $DatasourceType
7171
}
7272

73-
if(-not($manifest.friendlyNameRequired) -and $FriendlyName -ne ""){
73+
if(-not($manifest.friendlyNameRequired) -and -not($manifest.customFriendlyNameAllowed) -and $FriendlyName -ne ""){
7474
$errormsg = "FriendlyName parameter is not expected for the given DatasourceType"
7575
throw $errormsg
7676
}
77-
78-
if($backupInstance.DataSourceSetInfo.ResourceId -eq $null){
77+
78+
if($manifest.customFriendlyNameAllowed -and $FriendlyName -ne ""){
79+
$backupInstance.FriendlyName = $FriendlyName
80+
}
81+
elseif($backupInstance.DataSourceSetInfo.ResourceId -eq $null -or $manifest.customFriendlyNameAllowed){
7982
$backupInstance.FriendlyName = $backupInstance.DataSourceInfo.ResourceName
8083
}
8184
elseif($manifest.friendlyNameRequired){
@@ -106,9 +109,9 @@ function Initialize-AzDataProtectionBackupInstance {
106109
$errormsg = "Please input SecretStoreType"
107110
throw $errormsg
108111
}
109-
$backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreBasedAuthCredentials]::new()
112+
$backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials]::new()
110113
$backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
111-
$backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreResource]::new()
114+
$backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource]::new()
112115
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType
113116
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI
114117
}
@@ -118,7 +121,7 @@ function Initialize-AzDataProtectionBackupInstance {
118121
}
119122
}
120123

121-
$backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]::new()
124+
$backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]::new()
122125
$backupInstanceResource.Property = $backupInstance
123126

124127
if($PSBoundParameters.ContainsKey("DatasourceId"))
@@ -136,7 +139,7 @@ function Initialize-AzDataProtectionBackupInstance {
136139

137140
if($manifest.addDataStoreParametersList -eq $true)
138141
{
139-
$operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureOperationalStoreParameters]::new()
142+
$operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters]::new()
140143
$operationalParam.DataStoreType = "OperationalStore"
141144
$operationalParam.ObjectType = "AzureOperationalStoreParameters"
142145
$operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupConfigurationClientObject.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{
3939
${IncludeClusterScopeResource},
4040

4141
[Parameter(Mandatory=$false, HelpMessage='Hook reference to be executed during backup.')]
42-
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
42+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
4343
${BackupHookReference},
4444

4545
[Parameter(Mandatory=$false, HelpMessage='List of containers to be backed up inside the VaultStore. Use this parameter for DatasourceType AzureBlob.')]
@@ -71,7 +71,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{
7171
throw $message
7272
}
7373

74-
$dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterBackupDatasourceParameters]::new()
74+
$dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters]::new()
7575
$dataSourceParam.ObjectType = "KubernetesClusterBackupDatasourceParameters"
7676

7777
$dataSourceParam.ExcludedResourceType = $ExcludedResourceType
@@ -97,7 +97,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{
9797
}
9898

9999
if($DatasourceType.ToString() -eq "AzureBlob"){
100-
$dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BlobBackupDatasourceParameters]::new()
100+
$dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters]::new()
101101
$dataSourceParam.ObjectType = "BlobBackupDatasourceParameters"
102102

103103
if($VaultedBackupContainer -ne $null){

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function New-AzDataProtectionBackupInstance {
2020
${VaultName},
2121

2222
[Parameter(Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')]
23-
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
23+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
2424
${BackupInstance},
2525

2626
[Parameter(Mandatory=$false, HelpMessage='Resource tags')]

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function New-AzDataProtectionResourceGuard
44
{
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource')]
66
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a resource guard under a resource group')]
88

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Unlock-AzDataProtectionResourceGuardOperation
2727
[System.String]
2828
${ResourceToBeDeleted},
2929

30-
[Parameter(ParameterSetName="UnlockDelete", Mandatory=$false, HelpMessage='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.')]
30+
[Parameter(ParameterSetName="UnlockDelete", Mandatory=$false, HelpMessage='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.')]
3131
[System.String]
3232
${Token},
3333

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function Update-AzDataProtectionBackupInstanceAssociatedPolicy
44
{
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
66
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates associated policy for a given backup instance')]
88

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function Update-AzDataProtectionResourceGuard
44
{
5-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource')]
5+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource')]
66
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
77
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')]
88

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function Get-AzDataProtectionJob
22
{
3-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupJobResource')]
3+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource')]
44
[CmdletBinding(PositionalBinding=$false)]
55
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Gets or lists jobs in a backup vault')]
66

0 commit comments

Comments
 (0)