Skip to content

Commit 0e744a6

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceGroupCompleter to KeyVault
1 parent 51b81d5 commit 0e744a6

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/GetAzureKeyVault.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 System;
1617
using System.Collections;
1718
using System.Collections.Generic;
@@ -69,6 +70,7 @@ public class GetAzureKeyVault : KeyVaultManagementCmdletBase
6970
ParameterSetName = ListVaultsByRGParameterSet,
7071
ValueFromPipelineByPropertyName = true,
7172
HelpMessage = "Specifies the name of a resource group. This cmdlet gets key vault instances in the resource group that this parameter specifies.")]
73+
[ResourceGroupCompleter]
7274
[ValidateNotNullOrEmpty()]
7375
public string ResourceGroupName { get; set; }
7476

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/NewAzureKeyVault.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.KeyVault.Models;
1617
using System;
1718
using System.Collections;
@@ -51,6 +52,7 @@ public class NewAzureKeyVault : KeyVaultManagementCmdletBase
5152
Position = 1,
5253
ValueFromPipelineByPropertyName = true,
5354
HelpMessage = "Specifies the name of an existing resource group in which to create the key vault.")]
55+
[ResourceGroupCompleter]
5456
[ValidateNotNullOrEmpty()]
5557
public string ResourceGroupName { get; set; }
5658

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/RemoveAzureKeyVault.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 System;
1617
using System.Globalization;
1718
using System.Management.Automation;
@@ -52,6 +53,7 @@ public class RemoveAzureKeyVault : KeyVaultManagementCmdletBase
5253
ParameterSetName = RemoveVaultParameterSet,
5354
ValueFromPipelineByPropertyName = true,
5455
HelpMessage = "Specifies the name of resource group for Azure key vault to remove.")]
56+
[ResourceGroupCompleter]
5557
[ValidateNotNullOrEmpty()]
5658
public string ResourceGroupName { get; set; }
5759

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/RemoveAzureKeyVaultAccessPolicy.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 System;
1617
using System.Linq;
1718
using System.Management.Automation;
@@ -55,6 +56,7 @@ public class RemoveAzureKeyVaultAccessPolicy : KeyVaultManagementCmdletBase
5556
Position = 1,
5657
ValueFromPipelineByPropertyName = true,
5758
HelpMessage = "Specifies the name of the resource group associated with the key vault whose permissions you want to remove.")]
59+
[ResourceGroupCompleter]
5860
[ValidateNotNullOrEmpty()]
5961
public string ResourceGroupName { get; set; }
6062

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/SetAzureKeyVaultAccessPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using KeyPerms = Microsoft.Azure.Management.KeyVault.Models.KeyPermissions;
2222
using CertPerms = Microsoft.Azure.Management.KeyVault.Models.CertificatePermissions;
2323
using StoragePerms = Microsoft.Azure.Management.KeyVault.Models.StoragePermissions;
24+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2425

2526
namespace Microsoft.Azure.Commands.KeyVault
2627
{
@@ -116,6 +117,7 @@ public class SetAzureKeyVaultAccessPolicy : KeyVaultManagementCmdletBase
116117
Position = 1,
117118
ValueFromPipelineByPropertyName = true,
118119
HelpMessage = "Specifies the name of the resource group associated with the key vault whose access policy is being modified.")]
120+
[ResourceGroupCompleter]
119121
[ValidateNotNullOrEmpty()]
120122
public string ResourceGroupName { get; set; }
121123

src/ResourceManager/KeyVault/Commands.KeyVault/Commands/UndoAzureKeyVaultRemoval.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.KeyVault.Models;
1617
using System.Collections;
1718
using System.Management.Automation;
@@ -44,6 +45,7 @@ public class UndoAzureKeyVaultRemoval : KeyVaultManagementCmdletBase
4445
Position = 1,
4546
ValueFromPipelineByPropertyName = true,
4647
HelpMessage = "Specifies the name of the deleted vault resource group.")]
48+
[ResourceGroupCompleter]
4749
[ValidateNotNullOrEmpty()]
4850
public string ResourceGroupName { get; set; }
4951

0 commit comments

Comments
 (0)