Skip to content

Commit 8f17953

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceCompleter to ContainerRegistry
1 parent 4e4fa99 commit 8f17953

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/GetAzureContainerRegistry.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using System.Collections.Generic;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Management.ContainerRegistry.Models;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819

1920
namespace Microsoft.Azure.Commands.ContainerRegistry
2021
{
@@ -33,6 +34,7 @@ public class GetAzureContainerRegistry : ContainerRegistryCmdletBase
3334
ParameterSetName = RegistryNameParameterSet,
3435
ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "Resource Group Name.")]
37+
[ResourceGroupCompleter()]
3638
[ValidateNotNullOrEmpty]
3739
public string ResourceGroupName { get; set; }
3840

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/GetAzureContainerRegistryCredential.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.Management.Automation;
1617

1718
namespace Microsoft.Azure.Commands.ContainerRegistry
@@ -26,6 +27,7 @@ public class GetAzureContainerRegistryCredential : ContainerRegistryCmdletBase
2627
Mandatory = true,
2728
ParameterSetName = NameResourceGroupParameterSet,
2829
HelpMessage = "Resource Group Name.")]
30+
[ResourceGroupCompleter()]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/NewAzureContainerRegistry.cs

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

2324
namespace Microsoft.Azure.Commands.ContainerRegistry
2425
{
@@ -31,6 +32,7 @@ public class NewAzureContainerRegistry : ContainerRegistryCmdletBase
3132
Mandatory = true,
3233
ValueFromPipelineByPropertyName = true,
3334
HelpMessage = "Resource Group Name.")]
35+
[ResourceGroupCompleter()]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/RemoveAzureContainerRegistry.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.Management.Automation;
1617

1718
namespace Microsoft.Azure.Commands.ContainerRegistry
@@ -26,6 +27,7 @@ public class RemoveAzureContainerRegistry : ContainerRegistryCmdletBase
2627
Mandatory = true,
2728
ParameterSetName = NameResourceGroupParameterSet,
2829
HelpMessage = "Resource Group Name.")]
30+
[ResourceGroupCompleter()]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/UpdateAzureContainerRegistry.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using System.Collections;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819

1920
namespace Microsoft.Azure.Commands.ContainerRegistry
2021
{
@@ -29,6 +30,7 @@ public class UpdateAzureContainerRegistry : ContainerRegistryCmdletBase
2930
Mandatory = true,
3031
ValueFromPipelineByPropertyName = true,
3132
HelpMessage = "Resource Group Name.")]
33+
[ResourceGroupCompleter()]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/ContainerRegistry/Commands.ContainerRegistry/Commands/UpdateAzureContainerRegistryCredential.cs

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

1515
using System.Management.Automation;
1616
using Microsoft.Azure.Management.ContainerRegistry.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718

1819
namespace Microsoft.Azure.Commands.ContainerRegistry
1920
{
@@ -28,6 +29,7 @@ public class UpdateAzureContainerRegistryCredential : ContainerRegistryCmdletBas
2829
Mandatory = true,
2930
ParameterSetName = NameResourceGroupParameterSet,
3031
HelpMessage = "Resource Group Name.")]
32+
[ResourceGroupCompleter()]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

0 commit comments

Comments
 (0)