Skip to content

Commit da5fbe3

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceGroupCompleter to Media
1 parent 70450b7 commit da5fbe3

File tree

7 files changed

+14
-1
lines changed

7 files changed

+14
-1
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

0 commit comments

Comments
 (0)