Skip to content

Commit aa566bf

Browse files
author
Chenglong Liu
committed
Add test, remove unused variant
1 parent 19d65b9 commit aa566bf

13 files changed

+155
-358
lines changed

src/Cdn/Cdn.Autorest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ directive:
106106
# 1. Remove the unexpanded parameter set
107107
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
108108
- where:
109-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Patch$|^PatchViaIdentity$
109+
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Patch$|^PatchViaIdentity$|^Check$|^Check1$|^CheckViaIdentity$|^Validate$|^ValidateViaIdentity$
110110
subject: ^(?!RuleSet).+$
111111
remove: true
112112
- where:

src/Cdn/Cdn.Autorest/docs/Test-AzCdnEndpointCustomDomain.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ Test-AzCdnEndpointCustomDomain -EndpointName <String> -ProfileName <String> -Res
1919
[<CommonParameters>]
2020
```
2121

22-
### Validate1
23-
```
24-
Test-AzCdnEndpointCustomDomain -EndpointName <String> -ProfileName <String> -ResourceGroupName <String>
25-
-CustomDomainProperty <IValidateCustomDomainInput> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
26-
[-Confirm] [-WhatIf] [<CommonParameters>]
27-
```
28-
29-
### ValidateViaIdentity1
30-
```
31-
Test-AzCdnEndpointCustomDomain -InputObject <ICdnIdentity> -CustomDomainProperty <IValidateCustomDomainInput>
32-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
33-
```
34-
3522
### ValidateViaIdentityExpanded1
3623
```
3724
Test-AzCdnEndpointCustomDomain -InputObject <ICdnIdentity> -HostName <String> [-DefaultProfile <PSObject>]
@@ -63,22 +50,6 @@ PS C:\> {{ Add code here }}
6350

6451
## PARAMETERS
6552

66-
### -CustomDomainProperty
67-
Input of the custom domain to be validated for DNS mapping.
68-
To construct, see NOTES section for CUSTOMDOMAINPROPERTY properties and create a hash table.
69-
70-
```yaml
71-
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IValidateCustomDomainInput
72-
Parameter Sets: Validate1, ValidateViaIdentity1
73-
Aliases:
74-
75-
Required: True
76-
Position: Named
77-
Default value: None
78-
Accept pipeline input: True (ByValue)
79-
Accept wildcard characters: False
80-
```
81-
8253
### -DefaultProfile
8354
The credentials, account, tenant, and subscription used for communication with Azure.
8455

@@ -99,7 +70,7 @@ Name of the endpoint under the profile which is unique globally.
9970
10071
```yaml
10172
Type: System.String
102-
Parameter Sets: Validate1, ValidateExpanded1
73+
Parameter Sets: ValidateExpanded1
10374
Aliases:
10475

10576
Required: True
@@ -115,7 +86,7 @@ Must be a domain name.
11586
11687
```yaml
11788
Type: System.String
118-
Parameter Sets: ValidateExpanded1, ValidateViaIdentityExpanded1
89+
Parameter Sets: (All)
11990
Aliases:
12091

12192
Required: True
@@ -131,7 +102,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab
131102
132103
```yaml
133104
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
134-
Parameter Sets: ValidateViaIdentity1, ValidateViaIdentityExpanded1
105+
Parameter Sets: ValidateViaIdentityExpanded1
135106
Aliases:
136107

137108
Required: True
@@ -146,7 +117,7 @@ Name of the CDN profile which is unique within the resource group.
146117
147118
```yaml
148119
Type: System.String
149-
Parameter Sets: Validate1, ValidateExpanded1
120+
Parameter Sets: ValidateExpanded1
150121
Aliases:
151122

152123
Required: True
@@ -161,7 +132,7 @@ Name of the Resource group within the Azure subscription.
161132
162133
```yaml
163134
Type: System.String
164-
Parameter Sets: Validate1, ValidateExpanded1
135+
Parameter Sets: ValidateExpanded1
165136
Aliases:
166137

167138
Required: True
@@ -176,7 +147,7 @@ Azure Subscription ID.
176147
177148
```yaml
178149
Type: System.String
179-
Parameter Sets: Validate1, ValidateExpanded1
150+
Parameter Sets: ValidateExpanded1
180151
Aliases:
181152

182153
Required: False
@@ -222,8 +193,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
222193
223194
## INPUTS
224195
225-
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IValidateCustomDomainInput
226-
227196
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
228197
229198
## OUTPUTS
@@ -239,9 +208,6 @@ COMPLEX PARAMETER PROPERTIES
239208
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
240209
241210
242-
CUSTOMDOMAINPROPERTY <IValidateCustomDomainInput>: Input of the custom domain to be validated for DNS mapping.
243-
- `HostName <String>`: The host name of the custom domain. Must be a domain name.
244-
245211
INPUTOBJECT <ICdnIdentity>: Identity Parameter
246212
- `[CustomDomainName <String>]`: Name of the domain under the profile which is unique globally.
247213
- `[EndpointName <String>]`: Name of the endpoint under the profile which is unique globally.

src/Cdn/Cdn.Autorest/docs/Test-AzCdnNameAvailability.md

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ Test-AzCdnNameAvailability -Name <String> -Type <ResourceType> [-DefaultProfile
1919
[-WhatIf] [<CommonParameters>]
2020
```
2121

22-
### Check
23-
```
24-
Test-AzCdnNameAvailability -CheckNameAvailabilityInput <ICheckNameAvailabilityInput>
25-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26-
```
27-
28-
### Check1
29-
```
30-
Test-AzCdnNameAvailability -CheckNameAvailabilityInput <ICheckNameAvailabilityInput>
31-
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
32-
```
33-
3422
### CheckExpanded1
3523
```
3624
Test-AzCdnNameAvailability -Name <String> -Type <ResourceType> [-SubscriptionId <String>]
@@ -63,22 +51,6 @@ PS C:\> {{ Add code here }}
6351

6452
## PARAMETERS
6553

66-
### -CheckNameAvailabilityInput
67-
Input of CheckNameAvailability API.
68-
To construct, see NOTES section for CHECKNAMEAVAILABILITYINPUT properties and create a hash table.
69-
70-
```yaml
71-
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ICheckNameAvailabilityInput
72-
Parameter Sets: Check, Check1
73-
Aliases:
74-
75-
Required: True
76-
Position: Named
77-
Default value: None
78-
Accept pipeline input: True (ByValue)
79-
Accept wildcard characters: False
80-
```
81-
8254
### -DefaultProfile
8355
The credentials, account, tenant, and subscription used for communication with Azure.
8456

@@ -99,7 +71,7 @@ The resource name to validate.
9971
10072
```yaml
10173
Type: System.String
102-
Parameter Sets: CheckExpanded, CheckExpanded1
74+
Parameter Sets: (All)
10375
Aliases:
10476

10577
Required: True
@@ -114,7 +86,7 @@ Azure Subscription ID.
11486
11587
```yaml
11688
Type: System.String
117-
Parameter Sets: Check1, CheckExpanded1
89+
Parameter Sets: CheckExpanded1
11890
Aliases:
11991

12092
Required: False
@@ -129,7 +101,7 @@ The type of the resource whose name is to be validated.
129101
130102
```yaml
131103
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ResourceType
132-
Parameter Sets: CheckExpanded, CheckExpanded1
104+
Parameter Sets: (All)
133105
Aliases:
134106

135107
Required: True
@@ -175,8 +147,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
175147
176148
## INPUTS
177149
178-
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ICheckNameAvailabilityInput
179-
180150
## OUTPUTS
181151
182152
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ICheckNameAvailabilityOutput
@@ -185,14 +155,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
185155
186156
ALIASES
187157
188-
COMPLEX PARAMETER PROPERTIES
189-
190-
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
191-
192-
193-
CHECKNAMEAVAILABILITYINPUT <ICheckNameAvailabilityInput>: Input of CheckNameAvailability API.
194-
- `Name <String>`: The resource name to validate.
195-
- `Type <ResourceType>`: The type of the resource whose name is to be validated.
196-
197158
## RELATED LINKS
198159

src/Cdn/Cdn.Autorest/docs/Test-AzCdnProbe.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ Test-AzCdnProbe -ProbeUrl <String> [-SubscriptionId <String>] [-DefaultProfile <
2020
[-WhatIf] [<CommonParameters>]
2121
```
2222

23-
### Validate
24-
```
25-
Test-AzCdnProbe -ValidateProbeInput <IValidateProbeInput> [-SubscriptionId <String>]
26-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
27-
```
28-
29-
### ValidateViaIdentity
30-
```
31-
Test-AzCdnProbe -InputObject <ICdnIdentity> -ValidateProbeInput <IValidateProbeInput>
32-
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
33-
```
34-
3523
### ValidateViaIdentityExpanded
3624
```
3725
Test-AzCdnProbe -InputObject <ICdnIdentity> -ProbeUrl <String> [-DefaultProfile <PSObject>] [-Confirm]
@@ -86,7 +74,7 @@ To construct, see NOTES section for INPUTOBJECT properties and create a hash tab
8674
8775
```yaml
8876
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
89-
Parameter Sets: ValidateViaIdentity, ValidateViaIdentityExpanded
77+
Parameter Sets: ValidateViaIdentityExpanded
9078
Aliases:
9179

9280
Required: True
@@ -101,7 +89,7 @@ The probe URL to validate.
10189
10290
```yaml
10391
Type: System.String
104-
Parameter Sets: ValidateExpanded, ValidateViaIdentityExpanded
92+
Parameter Sets: (All)
10593
Aliases:
10694

10795
Required: True
@@ -116,7 +104,7 @@ Azure Subscription ID.
116104
117105
```yaml
118106
Type: System.String
119-
Parameter Sets: Validate, ValidateExpanded
107+
Parameter Sets: ValidateExpanded
120108
Aliases:
121109

122110
Required: False
@@ -126,22 +114,6 @@ Accept pipeline input: False
126114
Accept wildcard characters: False
127115
```
128116
129-
### -ValidateProbeInput
130-
Input of the validate probe API.
131-
To construct, see NOTES section for VALIDATEPROBEINPUT properties and create a hash table.
132-
133-
```yaml
134-
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IValidateProbeInput
135-
Parameter Sets: Validate, ValidateViaIdentity
136-
Aliases:
137-
138-
Required: True
139-
Position: Named
140-
Default value: None
141-
Accept pipeline input: True (ByValue)
142-
Accept wildcard characters: False
143-
```
144-
145117
### -Confirm
146118
Prompts you for confirmation before running the cmdlet.
147119
@@ -178,8 +150,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
178150
179151
## INPUTS
180152
181-
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.IValidateProbeInput
182-
183153
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
184154
185155
## OUTPUTS
@@ -211,8 +181,5 @@ INPUTOBJECT <ICdnIdentity>: Identity Parameter
211181
- `[SecurityPolicyName <String>]`: Name of the security policy under the profile.
212182
- `[SubscriptionId <String>]`: Azure Subscription ID.
213183

214-
VALIDATEPROBEINPUT <IValidateProbeInput>: Input of the validate probe API.
215-
- `ProbeUrl <String>`: The probe URL to validate.
216-
217184
## RELATED LINKS
218185

0 commit comments

Comments
 (0)