Skip to content

Commit b2d1ffd

Browse files
committed
Skip Deployment API
1 parent cebf7f4 commit b2d1ffd

File tree

2 files changed

+124
-29
lines changed

2 files changed

+124
-29
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/RunCodeGeneration.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,18 @@ else
22532253
$dynamic_param_method_code += $outputs[-4];
22542254
$invoke_cmdlet_method_code += $outputs[-3];
22552255
$parameter_cmdlet_method_code += $outputs[-2];
2256-
$cliCommandCodeMainBody += $outputs[-1];
2256+
2257+
# TODO : Comment Out RDFE Deployment APIs
2258+
if ($opShortName -eq 'Deployment' -and $client_library_namespace -like '*.WindowsAzure.*')
2259+
{
2260+
$cliCommandCodeMainBody += "/*" + $NEW_LINE;
2261+
$cliCommandCodeMainBody += $outputs[-1].Replace("/*", "").Replace("*/", "");
2262+
$cliCommandCodeMainBody += $NEW_LINE + "*/" + $NEW_LINE;
2263+
}
2264+
else
2265+
{
2266+
$cliCommandCodeMainBody += $outputs[-1];
2267+
}
22572268
}
22582269

22592270
$returnTypeResult = Process-ReturnType -rt $mt.ReturnType.GenericTypeArguments[0] -allrt $all_return_type_names;

0 commit comments

Comments
 (0)