@@ -2208,11 +2208,15 @@ else
2208
2208
$cliCommandCodeMainBody = " " ;
2209
2209
2210
2210
# Write Operation Cmdlet Files
2211
+ $operation_type_count = 0 ;
2212
+ $total_operation_type_count = $filtered_types.Count ;
2211
2213
foreach ($ft in $filtered_types )
2212
2214
{
2215
+ $operation_type_count ++ ;
2216
+
2213
2217
Write-Verbose ' ' ;
2214
2218
Write-Verbose $BAR_LINE ;
2215
- Write-Verbose $ ft.Name ;
2219
+ Write-Verbose ( " ${operation_type_count} / ${total_operation_type_count} " + $ ft.Name ) ;
2216
2220
Write-Verbose $BAR_LINE ;
2217
2221
2218
2222
$opShortName = Get-OperationShortName $ft.Name ;
@@ -2224,6 +2228,8 @@ else
2224
2228
$st = mkdir - Force $opOutFolder ;
2225
2229
2226
2230
$methods = $ft.GetMethods ();
2231
+
2232
+ $total_method_count = 0 ;
2227
2233
foreach ($mtItem in $methods )
2228
2234
{
2229
2235
[System.Reflection.MethodInfo ]$mt = $mtItem ;
@@ -2233,10 +2239,25 @@ else
2233
2239
continue ;
2234
2240
}
2235
2241
2242
+ $total_method_count ++ ;
2243
+ }
2244
+
2245
+ $method_count = 0 ;
2246
+ foreach ($mtItem in $methods )
2247
+ {
2248
+ [System.Reflection.MethodInfo ]$mt = $mtItem ;
2249
+ if ($mt.Name.StartsWith (' Begin' ) -and $mt.Name.Contains (' ing' ))
2250
+ {
2251
+ # Skip 'Begin*ing*' Calls for Now...
2252
+ continue ;
2253
+ }
2254
+
2255
+ $method_count ++ ;
2256
+
2236
2257
# Output Info for Method Signature
2237
2258
Write-Verbose " " ;
2238
2259
Write-Verbose $SEC_LINE ;
2239
- Write-Verbose $ mt.Name.Replace (' Async' , ' ' );
2260
+ Write-Verbose ( " [ ${operation_type_count} ] ${method_count} / ${total_method_count} " + $ mt.Name.Replace (' Async' , ' ' ) );
2240
2261
foreach ($paramInfoItem in $mt.GetParameters ())
2241
2262
{
2242
2263
[System.Reflection.ParameterInfo ]$paramInfo = $paramInfoItem ;
@@ -2254,12 +2275,19 @@ else
2254
2275
$invoke_cmdlet_method_code += $outputs [-3 ];
2255
2276
$parameter_cmdlet_method_code += $outputs [-2 ];
2256
2277
2257
- # TODO : Comment Out RDFE Deployment APIs
2278
+
2258
2279
if ($opShortName -eq ' Deployment' -and $client_library_namespace -like ' *.WindowsAzure.*' )
2259
2280
{
2260
- $cliCommandCodeMainBody += " /*" + $NEW_LINE ;
2261
- $cliCommandCodeMainBody += $outputs [-1 ].Replace(" /*" , " " ).Replace(" */" , " " );
2262
- $cliCommandCodeMainBody += $NEW_LINE + " */" + $NEW_LINE ;
2281
+ $output_code = $outputs [-1 ];
2282
+
2283
+ <# TODO : Comment Out RDFE Deployment APIs
2284
+ if ($method_count -gt 100)
2285
+ {
2286
+ $output_code = "/*" + $NEW_LINE + $output_code.Replace("/*", "").Replace("*/", "") + $NEW_LINE + "*/" + $NEW_LINE;
2287
+ }
2288
+ #>
2289
+
2290
+ $cliCommandCodeMainBody += $output_code ;
2263
2291
}
2264
2292
else
2265
2293
{
0 commit comments