@@ -67,14 +67,9 @@ subject-prefix: $(service-name)
6767clear-output-folder : true
6868output-folder : .
6969` ` `
70-
70+ <!--
7171> Directives
7272` ` ` yaml
73- identity-correction-for-post : true
74- # For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
75- use-extension :
76- " @autorest/powershell " : " 3.x"
77-
7873directive :
7974 # Fix the error in swagger, RP actually returns 200 when deletion succeeds
8075 - from : swagger-document
@@ -97,58 +92,84 @@ directive:
9792 - from : swagger-document
9893 where : $
9994 transform : return $.replace(/\/principalAssignments\//g, "/PrincipalAssignments/")
100- # Remove the unexpanded parameter set
95+
96+ # Remove the non-expanded parameter set
97+ - where :
98+ variant : ^(Add|Check|Detach)(?!.*?(Expanded|JsonFilePath|JsonString))
99+ remove : true
100+
101101 - where :
102- variant : ^Add$|^AddViaIdentity$|^Check$|^CheckViaIdentity$|^ CreateViaIdentity$|^CreateViaIdentityExpanded$|^Detach$|^DetachViaIdentity $
102+ variant : ^CreateViaIdentity$|^CreateViaIdentityExpanded$
103103 remove : true
104+
104105 # Remove the unexpanded parameter set for specific commands
105106 - where :
106107 subject : ^AttachedDatabaseConfiguration$|^Cluster$|^ClusterPrincipalAssignment$|^DatabasePrincipalAssignment$
107- variant : ^Create$|^ Update$|^UpdateViaIdentity$
108+ variant : ^( Create| Update)(?!.*?(Expanded|JsonFilePath|JsonString))
108109 remove : true
110+
109111 - where :
110112 verb : Remove
111113 subject : DatabasePrincipal|ClusterLanguageExtension
112- variant : ^Remove$|^RemoveViaIdentity$
114+ variant : ^( Remove)(?!.*?(Expanded|JsonFilePath|JsonString))
113115 remove : true
116+
114117 # Custom commands
115118 - where :
116119 subject : ^DataConnectionValidation$
117120 hide : true
121+
118122 - where :
119123 subject : ^Database$|^DataConnection$
120124 variant : ^Create$|^CreateExpanded$|^Update$|^UpdateExpanded$|^UpdateViaIdentity$|^UpdateViaIdentityExpanded$
121125 hide : true
126+
127+ # Autorest V4 generated variants, but need customise, can be added back upon service team request
128+ - where :
129+ subject : ^Database$|^DataConnection$
130+ variant : ^CreateViaIdentityCluster$|^CreateViaIdentityClusterExpanded$|^CreateViaIdentityDatabase$|^CreateViaIdentityDatabaseExpanded$|^UpdateViaIdentityCluster$|^UpdateViaIdentityClusterExpanded$|^UpdateViaIdentityDatabase$|^UpdateViaIdentityDatabaseExpanded$
131+ remove : true
132+
122133 # Hide the operation API
123134 - where :
124135 subject : Operation
125136 hide : true
137+
126138 # Remove the set-* cmdlet
127139 - where :
128140 verb : Set
129141 remove : true
142+
130143 # Rename cmdlet from Get-AzKustoOperationsResultsLocation to Get-AzKustoOperationsResultLocation so it's consistent with Get-AzKustoOperationsResult
131144 - where :
132145 verb : Get
133146 subject : OperationsResultsLocation
134- variant : ^Get$|^GetViaIdentity$
135147 set :
136148 subject : OperationsResultLocation
149+
137150 # For Get-AzKustoOperationResult no particular need for -PassThru parameter
138151 - where :
139152 verb : Get
140153 subject : OperationsResultLocation
141154 parameter-name : ^PassThru$
142155 hide : true
143- # Rename Move-AzKustoCluster -> Invoke-AzKustoClusterMigration
156+
157+ # Rename Move-AzKustoCluster -> Invoke-AzKustoClusterMigration
144158 - where :
145159 verb : Move
146160 subject : Cluster
147161 set :
148162 verb : Invoke
149163 subject : ClusterMigration
164+
165+ # Autorest V4 generated GET+PUT api Update cmdlets, can be added upon service team request
166+ - where :
167+ verb : Update
168+ subject : DatabasePrincipalAssignment|ClusterPrincipalAssignment|AttachedDatabaseConfiguration
169+ remove : true
170+
150171 # Correct some generated code
151172 - from : source-file-csharp
152173 where : $
153- transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20240413. IDataConnection Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20240413 .IDataConnection Property');
154- ` ` `
174+ transform : $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.IDataConnection Property', 'public Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.IDataConnection Property');
175+ ` ` ` -->
0 commit comments