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

0 commit comments

Comments
 (0)