Skip to content

Renamed ARM cmdlets to have AzureRM prefix #890

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 2 commits into from
Sep 11, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// // Copyright (c) Microsoft. All rights reserved.// // Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0// // Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands{ using System; using System.Management.Automation; using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models; [Cmdlet(VerbsCommon.Add, "AzureApiManagementApiToProduct")] [OutputType(typeof(bool))] public class AddAzureApiManagementApiToProduct : AzureApiManagementCmdletBase { [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Instance of PsApiManagementContext. This parameter is required.")] [ValidateNotNullOrEmpty] public PsApiManagementContext Context { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Identifier of existing Product to add API to. This parameter is required.")] [ValidateNotNullOrEmpty] public String ProductId { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Identifier of existing APIs to be added to the product. This parameter is required.")] [ValidateNotNullOrEmpty] public String ApiId { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = false, HelpMessage = "If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")] public SwitchParameter PassThru { get; set; } public override void ExecuteApiManagementCmdlet() { Client.ApiAddToProduct(Context, ProductId, ApiId); if (PassThru) { WriteObject(true); } } }}
// // Copyright (c) Microsoft. All rights reserved.// // Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0// // Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands{ using System; using System.Management.Automation; using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models; [Cmdlet(VerbsCommon.Add, "AzureRMApiManagementApiToProduct")] [OutputType(typeof(bool))] public class AddAzureApiManagementApiToProduct : AzureApiManagementCmdletBase { [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Instance of PsApiManagementContext. This parameter is required.")] [ValidateNotNullOrEmpty] public PsApiManagementContext Context { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Identifier of existing Product to add API to. This parameter is required.")] [ValidateNotNullOrEmpty] public String ProductId { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Identifier of existing APIs to be added to the product. This parameter is required.")] [ValidateNotNullOrEmpty] public String ApiId { get; set; } [Parameter( ValueFromPipelineByPropertyName = true, Mandatory = false, HelpMessage = "If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")] public SwitchParameter PassThru { get; set; } public override void ExecuteApiManagementCmdlet() { Client.ApiAddToProduct(Context, ProductId, ApiId); if (PassThru) { WriteObject(true); } } }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Add, "AzureApiManagementProductToGroup")]
[Cmdlet(VerbsCommon.Add, "AzureRMApiManagementProductToGroup")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementProductToGroup : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Add, "AzureApiManagementUserToGroup")]
[Cmdlet(VerbsCommon.Add, "AzureRMApiManagementUserToGroup")]
[OutputType(typeof(bool))]
public class AddAzureApiManagementUserToGroup : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsData.Export, "AzureApiManagementApi", DefaultParameterSetName = ExportContentToPipeline)]
[Cmdlet(VerbsData.Export, "AzureRMApiManagementApi", DefaultParameterSetName = ExportContentToPipeline)]
[OutputType(typeof(string))]
public class ExportAzureApiManagementApi : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementApi", DefaultParameterSetName = AllApis)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementApi", DefaultParameterSetName = AllApis)]
[OutputType(typeof(IList<PsApiManagementApi>))]
public class GetAzureApiManagementApi : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementAuthorizationServer")]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementAuthorizationServer")]
[OutputType(typeof(IList<PsApiManagementOAuth2AuthrozationServer>))]
public class GetAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Runtime.InteropServices;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementCertificate", DefaultParameterSetName = GetAll)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementCertificate", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList<PsApiManagementCertificate>))]
public class GetAzureApiManagementCertificate : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementGroup", DefaultParameterSetName = GetAll)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementGroup", DefaultParameterSetName = GetAll)]
[OutputType(typeof(PsApiManagementGroup))]
public class GetAzureApiManagementGroup : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementOperation", DefaultParameterSetName = AllApiOperations)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementOperation", DefaultParameterSetName = AllApiOperations)]
[OutputType(typeof(IList<PsApiManagementOperation>))]
public class GetAzureApiManagementOperation : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementPolicy", DefaultParameterSetName = TenantLevel)]
[OutputType(typeof(string))]
public class GetAzureApiManagementPolicy : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementProduct", DefaultParameterSetName = GetAllProducts)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementProduct", DefaultParameterSetName = GetAllProducts)]
[OutputType(typeof(IList<PsApiManagementProduct>))]
public class GetAzureApiManagementProduct : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementSubscription", DefaultParameterSetName = GetAll)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementSubscription", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList<PsApiManagementSubscription>))]
public class GetAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementUser", DefaultParameterSetName = GetAll)]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementUser", DefaultParameterSetName = GetAll)]
[OutputType(typeof(IList<PsApiManagementUser>))]
public class GetAzureApiManagementUser : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Get, "AzureApiManagementUserSsoUrl")]
[Cmdlet(VerbsCommon.Get, "AzureRMApiManagementUserSsoUrl")]
[OutputType(typeof(string))]
public class GetAzureApiManagementUserSsoUrl : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsData.Import, "AzureApiManagementApi", DefaultParameterSetName = FromLocalFile)]
[Cmdlet(VerbsData.Import, "AzureRMApiManagementApi", DefaultParameterSetName = FromLocalFile)]
[OutputType(typeof(PsApiManagementApi))]
public class ImportAzureApiManagementApi : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementApi")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementApi")]
[OutputType(typeof(PsApiManagementApi))]
public class NewAzureApiManagementApi : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementAuthorizationServer")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementAuthorizationServer")]
[OutputType(typeof(PsApiManagementOAuth2AuthrozationServer))]
public class NewAzureApiManagementAuthorizationServer : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Security.Cryptography.X509Certificates;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementCertificate", DefaultParameterSetName = FromFile)]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementCertificate", DefaultParameterSetName = FromFile)]
[OutputType(typeof(PsApiManagementCertificate))]
public class NewAzureApiManagementCertificate : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.WindowsAzure.Commands.Utilities.Common;

[Cmdlet(VerbsCommon.New, "AzureApiManagementContext"), OutputType(typeof (PsApiManagementContext))]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementContext"), OutputType(typeof (PsApiManagementContext))]
public class NewAzureApiManagementContext : AzureApiManagementCmdletBase
{
[Parameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementGroup")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementGroup")]
[OutputType(typeof(PsApiManagementGroup))]
public class NewAzureApiManagementGroup : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementOperation")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementOperation")]
[OutputType(typeof(PsApiManagementOperation))]
public class NewAzureApiManagementOperation : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Text.RegularExpressions;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementProduct")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementProduct")]
[OutputType(typeof(PsApiManagementProduct))]
public class NewAzureApiManagementProduct : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Runtime.InteropServices;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementSubscription")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementSubscription")]
[OutputType(typeof(PsApiManagementSubscription))]
public class NewAzureApiManagementSubscription : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.New, "AzureApiManagementUser")]
[Cmdlet(VerbsCommon.New, "AzureRMApiManagementUser")]
[OutputType(typeof(PsApiManagementUser))]
public class NewAzureApiManagementUser : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementApi")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementApi")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementApi : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using System.Management.Automation;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementApiFromProduct")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementApiFromProduct")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementApiFromProduct : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementAuthorizationServer")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementAuthorizationServer")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementAuthorizationServer : AzureApiManagementRemoveCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementCertificate")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementCertificate")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementCertificate : AzureApiManagementRemoveCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementGroup")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementGroup")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementGroup : AzureApiManagementCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models;
using Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Properties;

[Cmdlet(VerbsCommon.Remove, "AzureApiManagementOperation")]
[Cmdlet(VerbsCommon.Remove, "AzureRMApiManagementOperation")]
[OutputType(typeof(bool))]
public class RemoveAzureApiManagementOperation : AzureApiManagementCmdletBase
{
Expand Down
Loading