Skip to content

Commit 60894d1

Browse files
committed
re-recorded failed tests
1 parent d593774 commit 60894d1

23 files changed

+3788
-4289
lines changed

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,53 @@
2323

2424
[Parameter(Mandatory=$false, HelpMessage='Protection Status of the item')]
2525
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProtectionStatus[]]
26-
${ProtectionStatus}
26+
${ProtectionStatus},
27+
28+
[Parameter()]
29+
[Alias('AzureRMContext', 'AzureCredential')]
30+
[ValidateNotNull()]
31+
[System.Management.Automation.PSObject]
32+
# The credentials, account, tenant, and subscription used for communication with Azure.
33+
${DefaultProfile},
34+
35+
[Parameter(DontShow)]
36+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
37+
[System.Management.Automation.SwitchParameter]
38+
# Wait for .NET debugger to attach
39+
${Break},
40+
41+
[Parameter(DontShow)]
42+
[ValidateNotNull()]
43+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
44+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
45+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
46+
${HttpPipelineAppend},
47+
48+
[Parameter(DontShow)]
49+
[ValidateNotNull()]
50+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
51+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
52+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
53+
${HttpPipelinePrepend},
54+
55+
[Parameter(DontShow)]
56+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
57+
[System.Uri]
58+
# The URI for the proxy server to use
59+
${Proxy},
60+
61+
[Parameter(DontShow)]
62+
[ValidateNotNull()]
63+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
64+
[System.Management.Automation.PSCredential]
65+
# Credentials for a proxy server to use for the remote call
66+
${ProxyCredential},
67+
68+
[Parameter(DontShow)]
69+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
70+
[System.Management.Automation.SwitchParameter]
71+
# Use the default credentials for the proxy
72+
${ProxyUseDefaultCredentials}
2773
)
2874

2975
process

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,53 @@
1515

1616
[Parameter(Mandatory=$false, HelpMessage='Name of the vault')]
1717
[System.String[]]
18-
${Vault}
18+
${Vault},
19+
20+
[Parameter()]
21+
[Alias('AzureRMContext', 'AzureCredential')]
22+
[ValidateNotNull()]
23+
[System.Management.Automation.PSObject]
24+
# The credentials, account, tenant, and subscription used for communication with Azure.
25+
${DefaultProfile},
26+
27+
[Parameter(DontShow)]
28+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
29+
[System.Management.Automation.SwitchParameter]
30+
# Wait for .NET debugger to attach
31+
${Break},
32+
33+
[Parameter(DontShow)]
34+
[ValidateNotNull()]
35+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
36+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
37+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
38+
${HttpPipelineAppend},
39+
40+
[Parameter(DontShow)]
41+
[ValidateNotNull()]
42+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
43+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
44+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
45+
${HttpPipelinePrepend},
46+
47+
[Parameter(DontShow)]
48+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
49+
[System.Uri]
50+
# The URI for the proxy server to use
51+
${Proxy},
52+
53+
[Parameter(DontShow)]
54+
[ValidateNotNull()]
55+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
56+
[System.Management.Automation.PSCredential]
57+
# Credentials for a proxy server to use for the remote call
58+
${ProxyCredential},
59+
60+
[Parameter(DontShow)]
61+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
62+
[System.Management.Automation.SwitchParameter]
63+
# Use the default credentials for the proxy
64+
${ProxyUseDefaultCredentials}
1965
)
2066

2167
process

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,53 @@
3535

3636
[Parameter(Mandatory, HelpMessage='Datasource Type')]
3737
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes]
38-
${DatasourceType}
38+
${DatasourceType},
39+
40+
[Parameter()]
41+
[Alias('AzureRMContext', 'AzureCredential')]
42+
[ValidateNotNull()]
43+
[System.Management.Automation.PSObject]
44+
# The credentials, account, tenant, and subscription used for communication with Azure.
45+
${DefaultProfile},
46+
47+
[Parameter(DontShow)]
48+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
49+
[System.Management.Automation.SwitchParameter]
50+
# Wait for .NET debugger to attach
51+
${Break},
52+
53+
[Parameter(DontShow)]
54+
[ValidateNotNull()]
55+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
56+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
57+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
58+
${HttpPipelineAppend},
59+
60+
[Parameter(DontShow)]
61+
[ValidateNotNull()]
62+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
63+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
64+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
65+
${HttpPipelinePrepend},
66+
67+
[Parameter(DontShow)]
68+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
69+
[System.Uri]
70+
# The URI for the proxy server to use
71+
${Proxy},
72+
73+
[Parameter(DontShow)]
74+
[ValidateNotNull()]
75+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
76+
[System.Management.Automation.PSCredential]
77+
# Credentials for a proxy server to use for the remote call
78+
${ProxyCredential},
79+
80+
[Parameter(DontShow)]
81+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
82+
[System.Management.Automation.SwitchParameter]
83+
# Use the default credentials for the proxy
84+
${ProxyUseDefaultCredentials}
3985
)
4086

4187
process

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,40 @@
4242
${DefaultProfile},
4343

4444
[Parameter(DontShow)]
45+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
4546
[System.Management.Automation.SwitchParameter]
4647
# Wait for .NET debugger to attach
4748
${Break},
4849

4950
[Parameter(DontShow)]
5051
[ValidateNotNull()]
52+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
5153
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
5254
# SendAsync Pipeline Steps to be appended to the front of the pipeline
5355
${HttpPipelineAppend},
5456

5557
[Parameter(DontShow)]
5658
[ValidateNotNull()]
59+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
5760
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
5861
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
5962
${HttpPipelinePrepend},
6063

6164
[Parameter(DontShow)]
65+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
6266
[System.Uri]
6367
# The URI for the proxy server to use
6468
${Proxy},
6569

6670
[Parameter(DontShow)]
6771
[ValidateNotNull()]
72+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
6873
[System.Management.Automation.PSCredential]
6974
# Credentials for a proxy server to use for the remote call
7075
${ProxyCredential},
7176

7277
[Parameter(DontShow)]
78+
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
7379
[System.Management.Automation.SwitchParameter]
7480
# Use the default credentials for the proxy
7581
${ProxyUseDefaultCredentials}

src/DataProtection/DataProtection.Autorest/docs/Search-AzDataProtectionBackupInstanceInAzGraph.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Searches for Backup instances in Azure Resource Graph and retrieves the expected
1414

1515
```
1616
Search-AzDataProtectionBackupInstanceInAzGraph -DatasourceType <DatasourceTypes> -Subscription <String[]>
17-
[-ProtectionStatus <ProtectionStatus[]>] [-ResourceGroup <String[]>] [-Vault <String[]>] [<CommonParameters>]
17+
[-DefaultProfile <PSObject>] [-ProtectionStatus <ProtectionStatus[]>] [-ResourceGroup <String[]>]
18+
[-Vault <String[]>] [<CommonParameters>]
1819
```
1920

2021
## DESCRIPTION
@@ -89,6 +90,21 @@ Accept pipeline input: False
8990
Accept wildcard characters: False
9091
```
9192
93+
### -DefaultProfile
94+
95+
96+
```yaml
97+
Type: System.Management.Automation.PSObject
98+
Parameter Sets: (All)
99+
Aliases: AzureRMContext, AzureCredential
100+
101+
Required: False
102+
Position: Named
103+
Default value: None
104+
Accept pipeline input: False
105+
Accept wildcard characters: False
106+
```
107+
92108
### -ProtectionStatus
93109
Protection Status of the item
94110

src/DataProtection/DataProtection.Autorest/docs/Search-AzDataProtectionBackupVaultInAzGraph.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Searches for Backup vaults in Azure Resource Graph and retrieves the expected en
1313
## SYNTAX
1414

1515
```
16-
Search-AzDataProtectionBackupVaultInAzGraph -Subscription <String[]> [-ResourceGroup <String[]>]
17-
[-Vault <String[]>] [<CommonParameters>]
16+
Search-AzDataProtectionBackupVaultInAzGraph -Subscription <String[]> [-DefaultProfile <PSObject>]
17+
[-ResourceGroup <String[]>] [-Vault <String[]>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
@@ -37,6 +37,21 @@ This command gets a specific vault by given vault name from ARG (Azure Resource
3737

3838
## PARAMETERS
3939

40+
### -DefaultProfile
41+
42+
43+
```yaml
44+
Type: System.Management.Automation.PSObject
45+
Parameter Sets: (All)
46+
Aliases: AzureRMContext, AzureCredential
47+
48+
Required: False
49+
Position: Named
50+
Default value: None
51+
Accept pipeline input: False
52+
Accept wildcard characters: False
53+
```
54+
4055
### -ResourceGroup
4156
Resource Group of Vault
4257

src/DataProtection/DataProtection.Autorest/docs/Search-AzDataProtectionJobInAzGraph.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Searches for Backup Jobs in Azure Resource Graph and retrieves the expected entr
1414

1515
```
1616
Search-AzDataProtectionJobInAzGraph -DatasourceType <DatasourceTypes> -Subscription <String[]>
17-
[-EndTime <DateTime>] [-Operation <JobOperation[]>] [-ResourceGroup <String[]>] [-StartTime <DateTime>]
18-
[-Status <JobStatus[]>] [-Vault <String[]>] [<CommonParameters>]
17+
[-DefaultProfile <PSObject>] [-EndTime <DateTime>] [-Operation <JobOperation[]>] [-ResourceGroup <String[]>]
18+
[-StartTime <DateTime>] [-Status <JobStatus[]>] [-Vault <String[]>] [<CommonParameters>]
1919
```
2020

2121
## DESCRIPTION
@@ -72,6 +72,21 @@ Accept pipeline input: False
7272
Accept wildcard characters: False
7373
```
7474
75+
### -DefaultProfile
76+
77+
78+
```yaml
79+
Type: System.Management.Automation.PSObject
80+
Parameter Sets: (All)
81+
Aliases: AzureRMContext, AzureCredential
82+
83+
Required: False
84+
Position: Named
85+
Default value: None
86+
Accept pipeline input: False
87+
Accept wildcard characters: False
88+
```
89+
7590
### -EndTime
7691
End Time filter for the Backup Job
7792

0 commit comments

Comments
 (0)