Skip to content

Renaming ARM commands in help docs, comments, warning, etc #914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public override void ExecuteApiManagementCmdlet()

if (ProductIds != null && ProductIds.Any())
{
WriteProgress(new ProgressRecord(0, "New-AzureApiManagementApi", "New API created. Adding to products..."));
WriteProgress(new ProgressRecord(0, "New-AzureRMApiManagementApi", "New API created. Adding to products..."));

foreach (var productId in ProductIds)
{
Expand All @@ -128,7 +128,7 @@ public override void ExecuteApiManagementCmdlet()
WriteProgress(
new ProgressRecord(
0,
"New-AzureApiManagementApi",
"New-AzureRMApiManagementApi",
string.Format("... Added to product {0}", productId))
);
}
Expand All @@ -137,7 +137,7 @@ public override void ExecuteApiManagementCmdlet()
WriteProgress(
new ProgressRecord(
0,
"New-AzureApiManagementApi",
"New-AzureRMApiManagementApi",
string.Format("... Failed to add to product {0} due to: {1}", productId, ex))
);
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public ApiManagementLongRunningOperation BeginCreateApiManagementService(

var longrunningResponse = Client.ResourceProvider.BeginCreatingOrUpdating(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureApiManagement", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureRMApiManagement", longrunningResponse);
}

public ApiManagementLongRunningOperation BeginBackupApiManagement(
Expand All @@ -122,7 +122,7 @@ public ApiManagementLongRunningOperation BeginBackupApiManagement(

var longrunningResponse = Client.ResourceProvider.BeginBackup(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureApiManagement", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureRMApiManagement", longrunningResponse);
}

public bool DeleteApiManagement(string resourceGroupName, string serviceName)
Expand Down Expand Up @@ -150,7 +150,7 @@ public ApiManagementLongRunningOperation BeginRestoreApiManagement(

var longrunningResponse = Client.ResourceProvider.BeginRestoring(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureApiManagement", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureRMApiManagement", longrunningResponse);
}

public ApiManagementLongRunningOperation BeginUpdateDeployments(
Expand Down Expand Up @@ -201,7 +201,7 @@ public ApiManagementLongRunningOperation BeginUpdateDeployments(

var longrunningResponse = Client.ResourceProvider.BeginManagingDeployments(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureApiManagementDeployment", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureRMApiManagementDeployment", longrunningResponse);
}

public PsApiManagementHostnameCertificate UploadCertificate(
Expand Down Expand Up @@ -242,7 +242,7 @@ public ApiManagementLongRunningOperation BeginSetHostnames(

var longrunningResponse = Client.ResourceProvider.BeginUpdatingHostname(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureApiManagementHostnames", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementHostnames", longrunningResponse);
}

public string GetSsoToken(string resourceGroupName, string serviceName)
Expand Down Expand Up @@ -270,7 +270,7 @@ public ApiManagementLongRunningOperation BeginManageVirtualNetworks(

var longrunningResponse = Client.ResourceProvider.BeginManagingVirtualNetworks(resourceGroupName, serviceName, parameters);
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureApiManagementVirtualNetworks", longrunningResponse);
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementVirtualNetworks", longrunningResponse);
}

internal ApiManagementLongRunningOperation GetLongRunningOperationStatus(ApiManagementLongRunningOperation longRunningOperation)
Expand Down
Loading