Skip to content

Commit 77c4891

Browse files
author
maddieclayton
authored
Merge pull request Azure#4995 from maddieclayton/addRC3
Add ResourceGroupCompleter (Part 3)
2 parents 3d83731 + 3ca30eb commit 77c4891

File tree

195 files changed

+457
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+457
-69
lines changed

src/ResourceManager/Media/Commands.Media/MediaService/GetAzureRmMediaService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Management.Media;
2020
using Microsoft.Azure.Commands.Media.Common;
2121
using Microsoft.Azure.Commands.Media.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223

2324
namespace Microsoft.Azure.Commands.Media.MediaService
2425
{
@@ -43,6 +44,7 @@ public class GetAzureRmMediaService : AzureMediaServiceCmdletBase
4344
ParameterSetName = AccountNameParameterSet,
4445
ValueFromPipelineByPropertyName = true,
4546
HelpMessage = "The resource group name.")]
47+
[ResourceGroupCompleter]
4648
[ValidateNotNullOrEmpty]
4749
public string ResourceGroupName { get; set; }
4850

src/ResourceManager/Media/Commands.Media/MediaService/NewAzureRmMediaService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using Microsoft.Azure.Management.Media;
2323
using Microsoft.Azure.Management.Media.Models;
2424
using RestMediaService = Microsoft.Azure.Management.Media.Models.MediaService;
25+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2526

2627
namespace Microsoft.Azure.Commands.Media.MediaService
2728
{
@@ -47,7 +48,7 @@ public class NewAzureRmMediaService : AzureMediaServiceCmdletBase
4748
ParameterSetName = StorageAccountsParamSet,
4849
ValueFromPipelineByPropertyName = true,
4950
HelpMessage = "The resource group name.")]
50-
51+
[ResourceGroupCompleter]
5152
[ValidateNotNullOrEmpty]
5253
public string ResourceGroupName { get; set; }
5354

src/ResourceManager/Media/Commands.Media/MediaService/RemoveAzureRmMediaService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Commands.Media.Common;
2020
using Microsoft.Azure.Management.Media;
2121
using Microsoft.Azure.Management.Media.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223

2324
namespace Microsoft.Azure.Commands.Media.MediaService
2425
{
@@ -36,6 +37,7 @@ public class RemoveAzureRmMediaService : AzureMediaServiceCmdletBase
3637
Mandatory = true,
3738
ValueFromPipelineByPropertyName = true,
3839
HelpMessage = "The resource group name.")]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public string ResourceGroupName { get; set; }
4143

src/ResourceManager/Media/Commands.Media/MediaService/SetAzureRmMediaService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using Microsoft.Azure.Management.Media;
2323
using Microsoft.Azure.Management.Media.Models;
2424
using RestMediaService = Microsoft.Azure.Management.Media.Models.MediaService;
25+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2526

2627
namespace Microsoft.Azure.Commands.Media.MediaService
2728
{
@@ -38,6 +39,7 @@ public class SetAzureRmMediaService : AzureMediaServiceCmdletBase
3839
Mandatory = true,
3940
ValueFromPipelineByPropertyName = true,
4041
HelpMessage = "The resource group name.")]
42+
[ResourceGroupCompleter]
4143
[ValidateNotNullOrEmpty]
4244
public string ResourceGroupName { get; set; }
4345

src/ResourceManager/Media/Commands.Media/ServiceKey/GetAzureRmMediaServiceKeys.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Commands.Media.Models;
2020
using Microsoft.Azure.Management.Media;
2121
using Microsoft.Azure.Management.Media.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223

2324
namespace Microsoft.Azure.Commands.Media.ServiceKey
2425
{
@@ -33,6 +34,7 @@ public class GetAzureRmMediaServiceKeys : AzureMediaServiceCmdletBase
3334
Mandatory = true,
3435
ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "The resource group name.")]
37+
[ResourceGroupCompleter]
3638
[ValidateNotNullOrEmpty]
3739
public string ResourceGroupName { get; set; }
3840

src/ResourceManager/Media/Commands.Media/ServiceKey/SetAzureRmMediaServiceKey.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Azure.Commands.Media.Models;
2020
using Microsoft.Azure.Management.Media;
2121
using Microsoft.Azure.Management.Media.Models;
22+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2223

2324
namespace Microsoft.Azure.Commands.Media.ServiceKey
2425
{
@@ -35,6 +36,7 @@ public class SetAzureRmMediaServiceKey : AzureMediaServiceCmdletBase
3536
Mandatory = true,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
39+
[ResourceGroupCompleter]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

src/ResourceManager/Media/Commands.Media/ServiceKey/SyncAzureRmMediaServiceStorageKeys.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using Microsoft.Azure.Commands.Media.Common;
1919
using Microsoft.Azure.Management.Media;
2020
using Microsoft.Azure.Management.Media.Models;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2122

2223
namespace Microsoft.Azure.Commands.Media.ServiceKey
2324
{
@@ -34,6 +35,7 @@ public class SyncAzureRmMediaServiceStorageKeys : AzureMediaServiceCmdletBase
3435
Mandatory = true,
3536
ValueFromPipelineByPropertyName = true,
3637
HelpMessage = "The resource group name.")]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public string ResourceGroupName { get; set; }
3941

src/ResourceManager/Network/Commands.Network/ApplicationGateway/GetAzureApplicationGatewayBackendHealthCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Network;
1819
using System.Collections.Generic;
1920
using System.Management.Automation;
@@ -35,6 +36,7 @@ public class GetAzureApplicationGatewayBackendHealthCommand : ApplicationGateway
3536
Mandatory = true,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "The resource group name.")]
39+
[ResourceGroupCompleter]
3840
[ValidateNotNullOrEmpty]
3941
public virtual string ResourceGroupName { get; set; }
4042

src/ResourceManager/Network/Commands.Network/ApplicationGateway/GetAzureApplicationGatewayCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Management.Network.Models;
2020
using Microsoft.Rest.Azure;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2122

2223
namespace Microsoft.Azure.Commands.Network
2324
{
@@ -36,6 +37,7 @@ public class GetAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
3637
Mandatory = false,
3738
ValueFromPipelineByPropertyName = true,
3839
HelpMessage = "The resource group name.")]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public virtual string ResourceGroupName { get; set; }
4143

src/ResourceManager/Network/Commands.Network/ApplicationGateway/NewAzureApplicationGatewayCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1819
using Microsoft.Azure.Management.Network;
1920
using System.Collections;
@@ -39,6 +40,7 @@ public class NewAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
3940
Mandatory = true,
4041
ValueFromPipelineByPropertyName = true,
4142
HelpMessage = "The resource group name.")]
43+
[ResourceGroupCompleter]
4244
[ValidateNotNullOrEmpty]
4345
public virtual string ResourceGroupName { get; set; }
4446

src/ResourceManager/Network/Commands.Network/ApplicationGateway/RemoveAzureApplicationGatewayCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// limitations under the License.
1515
// ----------------------------------------------------------------------------------
1616

17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Management.Network;
1819
using System.Management.Automation;
1920

@@ -34,6 +35,7 @@ public class RemoveAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
3435
Mandatory = true,
3536
ValueFromPipelineByPropertyName = true,
3637
HelpMessage = "The resource group name.")]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public virtual string ResourceGroupName { get; set; }
3941

src/ResourceManager/Network/Commands.Network/ApplicationSecurityGroup/GetAzureRMApplicationSecurityGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
using System.Linq;
3232
using System.Management.Automation;
3333
using CNM = Microsoft.Azure.Commands.Network.Models;
34+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
3435

3536
namespace Microsoft.Azure.Commands.Network.Automation
3637
{
@@ -41,6 +42,7 @@ public partial class GetAzureRmApplicationSecurityGroup : NetworkBaseCmdlet
4142
Mandatory = false,
4243
HelpMessage = "The resource group name of the application security group.",
4344
ValueFromPipelineByPropertyName = true)]
45+
[ResourceGroupCompleter]
4446
[ValidateNotNullOrEmpty]
4547
public string ResourceGroupName { get; set; }
4648

src/ResourceManager/Network/Commands.Network/ApplicationSecurityGroup/NewAzureRMApplicationSecurityGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
using System.Management.Automation;
3232
using AutoMapper;
3333
using MNM = Microsoft.Azure.Management.Network.Models;
34+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
3435

3536
namespace Microsoft.Azure.Commands.Network
3637
{
@@ -41,6 +42,7 @@ public partial class NewAzureRmApplicationSecurityGroup : NetworkBaseCmdlet
4142
Mandatory = true,
4243
HelpMessage = "The resource group name of the application security group.",
4344
ValueFromPipelineByPropertyName = true)]
45+
[ResourceGroupCompleter]
4446
[ValidateNotNullOrEmpty]
4547
public string ResourceGroupName { get; set; }
4648

src/ResourceManager/Network/Commands.Network/ApplicationSecurityGroup/RemoveAzureRMApplicationSecurityGroupCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using System.Linq;
2929
using System.Management.Automation;
3030
using AutoMapper;
31+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
3132

3233
namespace Microsoft.Azure.Commands.Network
3334
{
@@ -38,6 +39,7 @@ public partial class RemoveAzureRmApplicationSecurityGroup : NetworkBaseCmdlet
3839
Mandatory = true,
3940
HelpMessage = "The resource group name of the application security group.",
4041
ValueFromPipelineByPropertyName = true)]
42+
[ResourceGroupCompleter]
4143
[ValidateNotNullOrEmpty]
4244
public string ResourceGroupName { get; set; }
4345

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/GetAzureExpressRouteCircuitCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Management.Network.Models;
2020
using Microsoft.Rest.Azure;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2122

2223
namespace Microsoft.Azure.Commands.Network
2324
{
@@ -36,6 +37,7 @@ public class GetAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
3637
Mandatory = false,
3738
ValueFromPipelineByPropertyName = true,
3839
HelpMessage = "The resource group name.")]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public virtual string ResourceGroupName { get; set; }
4143

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/MoveAzureExpressRouteCircuitCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
namespace Microsoft.Azure.Commands.Network
2323
{
24+
using ResourceManager.Common.ArgumentCompleters;
2425
using System.Collections;
2526

2627
[Cmdlet(VerbsCommon.Move, "AzureRmExpressRouteCircuit", SupportsShouldProcess = true),
@@ -39,6 +40,7 @@ public class MoveAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
3940
Mandatory = true,
4041
ValueFromPipelineByPropertyName = true,
4142
HelpMessage = "The resource group name.")]
43+
[ResourceGroupCompleter]
4244
[ValidateNotNullOrEmpty]
4345
public virtual string ResourceGroupName { get; set; }
4446

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/NewAzureExpressRouteCircuitCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1819
using Microsoft.Azure.Management.Network;
1920
using System.Collections;
@@ -39,6 +40,7 @@ public class NewAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
3940
Mandatory = true,
4041
ValueFromPipelineByPropertyName = true,
4142
HelpMessage = "The resource group name.")]
43+
[ResourceGroupCompleter]
4244
[ValidateNotNullOrEmpty]
4345
public virtual string ResourceGroupName { get; set; }
4446

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/RemoveAzureExpressRouteCircuitCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using Microsoft.Azure.Management.Network;
1617
using System.Management.Automation;
1718

@@ -32,6 +33,7 @@ public class RemoveAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdl
3233
Mandatory = true,
3334
ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "The resource group name.")]
36+
[ResourceGroupCompleter]
3537
[ValidateNotNullOrEmpty]
3638
public virtual string ResourceGroupName { get; set; }
3739

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitARPTableCommand.cs

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
//
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
// http://www.apache.org/licenses/LICENSE2.0
8-
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
10-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
13-
//
14-
15-
using System.Collections;
16-
using System.Collections.Generic;
17-
using System.Management.Automation;
18-
using AutoMapper;
19-
using Microsoft.Azure.Management.Network;
20-
using Microsoft.Azure.Commands.Network.Models;
21-
using MNM = Microsoft.Azure.Management.Network.Models;
22-
using System;
23-
using System.Linq;
24-
25-
namespace Microsoft.Azure.Commands.Network
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
//
14+
15+
using System.Collections;
16+
using System.Collections.Generic;
17+
using System.Management.Automation;
18+
using AutoMapper;
19+
using Microsoft.Azure.Management.Network;
20+
using Microsoft.Azure.Commands.Network.Models;
21+
using MNM = Microsoft.Azure.Management.Network.Models;
22+
using System;
23+
using System.Linq;
24+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
25+
26+
namespace Microsoft.Azure.Commands.Network
2627
{
2728
public enum DevicePathEnum
2829
{
@@ -36,8 +37,9 @@ public class GetAzureExpressRouteCircuitARPTableCommand : NetworkBaseCmdlet
3637
[Parameter(
3738
Mandatory = true,
3839
ValueFromPipelineByPropertyName = true,
39-
HelpMessage = "The resource group name.")]
40-
[ValidateNotNullOrEmpty]
40+
HelpMessage = "The resource group name.")]
41+
[ResourceGroupCompleter]
42+
[ValidateNotNullOrEmpty]
4143
public virtual string ResourceGroupName { get; set; }
4244

4345
[Alias("Name", "ResourceName")]

0 commit comments

Comments
 (0)