Skip to content

Commit 6eb847d

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceGroupCompleter to MachineLearningCompute
1 parent 42d4aa6 commit 6eb847d

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/GetAzureRmMlOpCluster.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2121
using System;
2222
using Microsoft.Rest.Azure;
23+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2324

2425
namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2526
{
@@ -37,6 +38,7 @@ public class GetAzureRmMlOpCluster : MachineLearningComputeCmdletBase
3738
[Parameter(ParameterSetName = GetByResourceGroupOrSubscriptionParametersParameterSet,
3839
Mandatory = false,
3940
HelpMessage = ResourceGroupParameterHelpMessage)]
41+
[ResourceGroupCompleter]
4042
[ValidateNotNullOrEmpty]
4143
public string ResourceGroupName { get; set; }
4244

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/GetAzureRmMlOpClusterKey.cs

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

1515
using Microsoft.Azure.Commands.MachineLearningCompute.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1718
using Microsoft.Azure.Management.MachineLearningCompute;
1819
using Microsoft.Rest.Azure;
@@ -34,6 +35,7 @@ public class GetAzureRmMlOpClusterKey : MachineLearningComputeCmdletBase
3435
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3536
Mandatory = true,
3637
HelpMessage = ResourceGroupParameterHelpMessage)]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public string ResourceGroupName { get; set; }
3941

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/NewAzureRmMlOpCluster.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
using System.Collections;
2222
using System.Linq;
2323
using Microsoft.Rest.Azure;
24+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2425

2526
namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2627
{
@@ -34,6 +35,7 @@ public class NewAzureRmMlOpCluster : MachineLearningComputeCmdletBase
3435

3536
[Parameter(Mandatory = true,
3637
HelpMessage = ResourceGroupParameterHelpMessage)]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public string ResourceGroupName { get; set; }
3941

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/RemoveAzureRmMlOpCluster.cs

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

2223
namespace Microsoft.Azure.Commands.MachineLearningCompute.Cmdlets
2324
{
@@ -34,6 +35,7 @@ public class RemoveAzureRmMlOpCluster : MachineLearningComputeCmdletBase
3435
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3536
Mandatory = true,
3637
HelpMessage = ResourceGroupParameterHelpMessage)]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public string ResourceGroupName { get; set; }
3941

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/TestAzureRmMlOpClusterSystemServicesUpdateAvailability.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.Azure.Commands.MachineLearningCompute.Models;
2+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
23
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
34
using Microsoft.Azure.Management.MachineLearningCompute;
45
using Microsoft.Rest.Azure;
@@ -20,6 +21,7 @@ public class TestAzureRmOpClusterSystemServicesUpdateAvailability: MachineLearni
2021
[Parameter(ParameterSetName = CmdletParametersParameterSet,
2122
Mandatory = true,
2223
HelpMessage = ResourceGroupParameterHelpMessage)]
24+
[ResourceGroupCompleter]
2325
[ValidateNotNullOrEmpty]
2426
public string ResourceGroupName { get; set; }
2527

src/ResourceManager/MachineLearningCompute/Commands.MachineLearningCompute/Cmdlets/UpdateAzureRmMlOpClusterSystemService.cs

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

1515
using Microsoft.Azure.Commands.MachineLearningCompute.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1718
using Microsoft.Azure.Management.MachineLearningCompute;
1819
using Microsoft.Rest.Azure;
@@ -35,6 +36,7 @@ public class UpdateAzureRmMlOpClusterSystemService : MachineLearningComputeCmdle
3536
[Parameter(ParameterSetName = CmdletParametersParameterSet,
3637
Mandatory = true,
3738
HelpMessage = ResourceGroupParameterHelpMessage)]
39+
[ResourceGroupCompleter]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

0 commit comments

Comments
 (0)