Skip to content

Commit 345bc0f

Browse files
committed
fix directive & add changelog
1 parent abfe591 commit 345bc0f

19 files changed

+767
-108
lines changed

src/Websites/Websites.Autorest/README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,27 @@ directive:
204204
# 1. Remove the unexpanded parameter set
205205
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
206206
- where:
207-
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
207+
subject: CustomDomain|BuildAppSetting|FunctionAppSetting|Setting|BuildFunctionAppSetting|UserRoleInvitationLink
208+
variant: ^Create(?!.*?(Expanded|JsonFilePath|JsonString))
209+
remove: true
210+
211+
- where:
212+
variant: ^CreateViaIdentityExpanded$
213+
# We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
214+
# CreateExpanded variant, because the only parameters are all in URL rather than request body
215+
subject: CustomDomain
216+
remove: true
217+
218+
- where:
219+
verb: New
220+
subject: ^$
221+
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
222+
remove: true
223+
224+
- where:
225+
verb: Update
226+
subject: null
227+
variant: ^Update$|^UpdateViaIdentity$
208228
remove: true
209229

210230
- where:
@@ -224,7 +244,7 @@ directive:
224244
- where:
225245
verb: Register
226246
subject: UserProvidedFunctionApp
227-
variant: ^Register(?!.*?(JsonFilePath|JsonString))
247+
variant: ^Register$|^Register1$|^RegisterViaIdentity$|^RegisterViaIdentity1$|^RegisterViaIdentityExpanded$|^RegisterViaIdentityExpanded1$
228248
remove: true
229249

230250
# Rename parameters

src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildAppSetting.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ New-AzStaticWebAppBuildAppSetting -EnvironmentName <String> -Name <String> -Reso
1919
[-WhatIf] [<CommonParameters>]
2020
```
2121

22+
### CreateViaIdentityExpanded
23+
```
24+
New-AzStaticWebAppBuildAppSetting -InputObject <IWebsitesIdentity> [-AppSetting <Hashtable>] [-Kind <String>]
25+
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26+
```
27+
2228
### CreateViaIdentityStaticSiteExpanded
2329
```
2430
New-AzStaticWebAppBuildAppSetting -EnvironmentName <String> -StaticSiteInputObject <IWebsitesIdentity>
@@ -78,7 +84,7 @@ Settings.
7884

7985
```yaml
8086
Type: System.Collections.Hashtable
81-
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded
87+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityStaticSiteExpanded
8288
Aliases:
8389

8490
Required: False
@@ -109,7 +115,7 @@ The stage site identifier.
109115
110116
```yaml
111117
Type: System.String
112-
Parameter Sets: (All)
118+
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded, CreateViaJsonFilePath, CreateViaJsonString
113119
Aliases:
114120

115121
Required: True
@@ -119,6 +125,21 @@ Accept pipeline input: False
119125
Accept wildcard characters: False
120126
```
121127
128+
### -InputObject
129+
Identity Parameter
130+
131+
```yaml
132+
Type: Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
133+
Parameter Sets: CreateViaIdentityExpanded
134+
Aliases:
135+
136+
Required: True
137+
Position: Named
138+
Default value: None
139+
Accept pipeline input: True (ByValue)
140+
Accept wildcard characters: False
141+
```
142+
122143
### -JsonFilePath
123144
Path of Json file supplied to the Create operation
124145
@@ -154,7 +175,7 @@ Kind of resource.
154175
155176
```yaml
156177
Type: System.String
157-
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded
178+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityStaticSiteExpanded
158179
Aliases:
159180

160181
Required: False

src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildFunctionAppSetting.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ New-AzStaticWebAppBuildFunctionAppSetting -EnvironmentName <String> -Name <Strin
1919
[-WhatIf] [<CommonParameters>]
2020
```
2121

22+
### CreateViaIdentityExpanded
23+
```
24+
New-AzStaticWebAppBuildFunctionAppSetting -InputObject <IWebsitesIdentity> [-AppSetting <Hashtable>]
25+
[-Kind <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26+
```
27+
2228
### CreateViaIdentityStaticSiteExpanded
2329
```
2430
New-AzStaticWebAppBuildFunctionAppSetting -EnvironmentName <String> -StaticSiteInputObject <IWebsitesIdentity>
@@ -78,7 +84,7 @@ Settings.
7884

7985
```yaml
8086
Type: System.Collections.Hashtable
81-
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded
87+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityStaticSiteExpanded
8288
Aliases:
8389

8490
Required: False
@@ -109,7 +115,7 @@ The stage site identifier.
109115
110116
```yaml
111117
Type: System.String
112-
Parameter Sets: (All)
118+
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded, CreateViaJsonFilePath, CreateViaJsonString
113119
Aliases:
114120

115121
Required: True
@@ -119,6 +125,21 @@ Accept pipeline input: False
119125
Accept wildcard characters: False
120126
```
121127
128+
### -InputObject
129+
Identity Parameter
130+
131+
```yaml
132+
Type: Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
133+
Parameter Sets: CreateViaIdentityExpanded
134+
Aliases:
135+
136+
Required: True
137+
Position: Named
138+
Default value: None
139+
Accept pipeline input: True (ByValue)
140+
Accept wildcard characters: False
141+
```
142+
122143
### -JsonFilePath
123144
Path of Json file supplied to the Create operation
124145
@@ -154,7 +175,7 @@ Kind of resource.
154175
155176
```yaml
156177
Type: System.String
157-
Parameter Sets: CreateExpanded, CreateViaIdentityStaticSiteExpanded
178+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded, CreateViaIdentityStaticSiteExpanded
158179
Aliases:
159180

160181
Required: False

src/Websites/Websites.Autorest/docs/New-AzStaticWebAppFunctionAppSetting.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ New-AzStaticWebAppFunctionAppSetting -Name <String> -ResourceGroupName <String>
1919
[<CommonParameters>]
2020
```
2121

22+
### CreateViaIdentityExpanded
23+
```
24+
New-AzStaticWebAppFunctionAppSetting -InputObject <IWebsitesIdentity> [-AppSetting <Hashtable>]
25+
[-Kind <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26+
```
27+
2228
### CreateViaJsonFilePath
2329
```
2430
New-AzStaticWebAppFunctionAppSetting -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -69,7 +75,7 @@ Settings.
6975

7076
```yaml
7177
Type: System.Collections.Hashtable
72-
Parameter Sets: CreateExpanded
78+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
7379
Aliases:
7480

7581
Required: False
@@ -95,6 +101,21 @@ Accept pipeline input: False
95101
Accept wildcard characters: False
96102
```
97103
104+
### -InputObject
105+
Identity Parameter
106+
107+
```yaml
108+
Type: Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
109+
Parameter Sets: CreateViaIdentityExpanded
110+
Aliases:
111+
112+
Required: True
113+
Position: Named
114+
Default value: None
115+
Accept pipeline input: True (ByValue)
116+
Accept wildcard characters: False
117+
```
118+
98119
### -JsonFilePath
99120
Path of Json file supplied to the Create operation
100121
@@ -130,7 +151,7 @@ Kind of resource.
130151
131152
```yaml
132153
Type: System.String
133-
Parameter Sets: CreateExpanded
154+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
134155
Aliases:
135156

136157
Required: False
@@ -145,7 +166,7 @@ Name of the static site.
145166
146167
```yaml
147168
Type: System.String
148-
Parameter Sets: (All)
169+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
149170
Aliases:
150171

151172
Required: True
@@ -160,7 +181,7 @@ Name of the resource group to which the resource belongs.
160181
161182
```yaml
162183
Type: System.String
163-
Parameter Sets: (All)
184+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
164185
Aliases:
165186

166187
Required: True
@@ -177,7 +198,7 @@ This is a GUID-formatted string (e.g.
177198
178199
```yaml
179200
Type: System.String
180-
Parameter Sets: (All)
201+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
181202
Aliases:
182203

183204
Required: False
@@ -223,6 +244,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
223244
224245
## INPUTS
225246
247+
### Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
248+
226249
## OUTPUTS
227250
228251
### Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IStringDictionary

src/Websites/Websites.Autorest/docs/New-AzStaticWebAppSetting.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ New-AzStaticWebAppSetting -Name <String> -ResourceGroupName <String> [-Subscript
1919
[<CommonParameters>]
2020
```
2121

22+
### CreateViaIdentityExpanded
23+
```
24+
New-AzStaticWebAppSetting -InputObject <IWebsitesIdentity> [-AppSetting <Hashtable>] [-Kind <String>]
25+
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26+
```
27+
2228
### CreateViaJsonFilePath
2329
```
2430
New-AzStaticWebAppSetting -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
@@ -69,7 +75,7 @@ Settings.
6975

7076
```yaml
7177
Type: System.Collections.Hashtable
72-
Parameter Sets: CreateExpanded
78+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
7379
Aliases:
7480

7581
Required: False
@@ -95,6 +101,21 @@ Accept pipeline input: False
95101
Accept wildcard characters: False
96102
```
97103
104+
### -InputObject
105+
Identity Parameter
106+
107+
```yaml
108+
Type: Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
109+
Parameter Sets: CreateViaIdentityExpanded
110+
Aliases:
111+
112+
Required: True
113+
Position: Named
114+
Default value: None
115+
Accept pipeline input: True (ByValue)
116+
Accept wildcard characters: False
117+
```
118+
98119
### -JsonFilePath
99120
Path of Json file supplied to the Create operation
100121
@@ -130,7 +151,7 @@ Kind of resource.
130151
131152
```yaml
132153
Type: System.String
133-
Parameter Sets: CreateExpanded
154+
Parameter Sets: CreateExpanded, CreateViaIdentityExpanded
134155
Aliases:
135156

136157
Required: False
@@ -145,7 +166,7 @@ Name of the static site.
145166
146167
```yaml
147168
Type: System.String
148-
Parameter Sets: (All)
169+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
149170
Aliases:
150171

151172
Required: True
@@ -160,7 +181,7 @@ Name of the resource group to which the resource belongs.
160181
161182
```yaml
162183
Type: System.String
163-
Parameter Sets: (All)
184+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
164185
Aliases:
165186

166187
Required: True
@@ -177,7 +198,7 @@ This is a GUID-formatted string (e.g.
177198
178199
```yaml
179200
Type: System.String
180-
Parameter Sets: (All)
201+
Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString
181202
Aliases:
182203

183204
Required: False
@@ -223,6 +244,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
223244
224245
## INPUTS
225246
247+
### Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IWebsitesIdentity
248+
226249
## OUTPUTS
227250
228251
### Microsoft.Azure.PowerShell.Cmdlets.Websites.Models.IStringDictionary

0 commit comments

Comments
 (0)