@@ -37,13 +37,6 @@ input-file:
3737title : Websites
3838module-version : 0.1.0
3939subject-prefix : $(service-name)
40- identity-correction-for-post : true
41- resourcegroup-append : true
42- nested-object-to-string : true
43-
44- # For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
45- use-extension :
46- " @autorest/powershell " : " 3.x"
4740
4841directive :
4942 # Modify operationId
@@ -206,70 +199,8 @@ directive:
206199 verb : Unregister
207200 subject : BuildUserProvidedFunctionApp
208201
209- # Remove variant
210- # Following is two common directive which are normally required in all the RPs
211- # 1. Remove the unexpanded parameter set
212- # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
213- - where :
214- variant : ^CreateViaIdentityExpanded$|^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
215- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
216- # CreateExpanded variant, because the only parameters are all in URL rather than request body
217- subject : CustomDomain
218-
219- remove : true
220- - where :
221- verb : Test
222- variant : ^Validate$|^ValidateViaIdentity$
223- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
224- # CreateExpanded variant, because the only parameters are all in URL rather than request body
225- subject : CustomDomain
226- remove : true
227-
228- - where :
229- variant : ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
230- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
231- # CreateExpanded variant, because the only parameters are all in URL rather than request body
232- subject : BuildAppSetting
233- remove : true
234-
235- - where :
236- variant : ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
237- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
238- # CreateExpanded variant, because the only parameters are all in URL rather than request body
239- subject : FunctionAppSetting
240- remove : true
241-
242- - where :
243- variant : ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
244- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
245- # CreateExpanded variant, because the only parameters are all in URL rather than request body
246- subject : Setting
247- remove : true
248-
249- - where :
250- variant : ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
251- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
252- # CreateExpanded variant, because the only parameters are all in URL rather than request body
253- subject : BuildFunctionAppSetting
254- remove : true
255-
256- - where :
257- variant : ^Create$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
258- # We got to keep the Create variant of CustomDomain because it's special that it doesn't have a
259- # CreateExpanded variant, because the only parameters are all in URL rather than request body
260- subject : UserRoleInvitationLink
261- remove : true
262-
263- - where :
264- verb : New
265- subject : ^$
266- variant : ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
267- remove : true
268-
269202 - where :
270- verb : Update
271- subject : null
272- variant : ^Update$|^UpdateViaIdentity$
203+ variant : ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
273204 remove : true
274205
275206 - where :
@@ -281,7 +212,7 @@ directive:
281212 - where :
282213 verb : Register
283214 subject : UserProvidedFunctionApp
284- variant : ^Register$|^Register1$|^RegisterViaIdentity$|^RegisterViaIdentity1$|^RegisterViaIdentityExpanded$|^RegisterViaIdentityExpanded1$
215+ variant : ^Register(?!.*?(JsonFilePath|JsonString))
285216 remove : true
286217
287218# Rename parameters
0 commit comments