Skip to content

Commit 8b93d18

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceCompleter to CognitiveServices
1 parent 9a290f1 commit 8b93d18

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/GetAzureCognitiveServicesAccount.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.Management.CognitiveServices.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using Microsoft.Azure.Management.CognitiveServices.Models;
1819
using Microsoft.Rest.Azure;
@@ -42,6 +43,7 @@ public class GetAzureCognitiveServicesAccountCommand : CognitiveServicesAccountB
4243
ParameterSetName = AccountNameParameterSet,
4344
ValueFromPipelineByPropertyName = true,
4445
HelpMessage = "Resource Group Name.")]
46+
[ResourceGroupCompleter()]
4547
[ValidateNotNullOrEmpty]
4648
public string ResourceGroupName { get; set; }
4749

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/GetAzureCognitiveServicesAccountKey.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.Management.CognitiveServices.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using Microsoft.Azure.Management.CognitiveServices.Models;
1819
using System.Management.Automation;
@@ -30,6 +31,7 @@ public class GetAzureCognitiveServicesAccountKeyCommand : CognitiveServicesAccou
3031
Mandatory = true,
3132
ValueFromPipelineByPropertyName = true,
3233
HelpMessage = "Resource Group Name.")]
34+
[ResourceGroupCompleter()]
3335
[ValidateNotNullOrEmpty]
3436
public string ResourceGroupName { get; set; }
3537

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/GetAzureCognitiveServicesAccountSkus.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.CognitiveServices;
1617
using Microsoft.Azure.Management.CognitiveServices.Models;
1718
using System.Management.Automation;
@@ -30,6 +31,7 @@ public class GetAzureCognitiveServicesAccountSkusCommand : CognitiveServicesAcco
3031
Mandatory = true,
3132
ValueFromPipelineByPropertyName = true,
3233
HelpMessage = "Resource Group Name.")]
34+
[ResourceGroupCompleter()]
3335
[ValidateNotNullOrEmpty]
3436
public string ResourceGroupName { get; set; }
3537

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/NewAzureCognitiveServicesAccount.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.Management.CognitiveServices.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using Microsoft.Azure.Management.CognitiveServices.Models;
1819
using System.Collections;
@@ -33,6 +34,7 @@ public class NewAzureCognitiveServicesAccountCommand : CognitiveServicesAccountB
3334
Mandatory = true,
3435
ValueFromPipelineByPropertyName = true,
3536
HelpMessage = "Resource Group Name.")]
37+
[ResourceGroupCompleter()]
3638
[ValidateNotNullOrEmpty]
3739
public string ResourceGroupName { get; set; }
3840

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/NewAzureCognitiveServicesAccountKey.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.Management.CognitiveServices.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using Microsoft.Azure.Management.CognitiveServices.Models;
1819
using System.Globalization;
@@ -32,6 +33,7 @@ public class NewAzureCognitiveServicesAccountKeyCommand : CognitiveServicesAccou
3233
Mandatory = true,
3334
ValueFromPipelineByPropertyName = true,
3435
HelpMessage = "Resource Group Name.")]
36+
[ResourceGroupCompleter()]
3537
[ValidateNotNullOrEmpty]
3638
public string ResourceGroupName { get; set; }
3739

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/RemoveAzureCognitiveServicesAccount.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.Management.CognitiveServices.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using System.Globalization;
1819
using System.Management.Automation;
@@ -30,6 +31,7 @@ public class RemoveAzureCognitiveServicesAccountCommand : CognitiveServicesAccou
3031
Mandatory = true,
3132
ValueFromPipelineByPropertyName = true,
3233
HelpMessage = "Resource Group Name.")]
34+
[ResourceGroupCompleter()]
3335
[ValidateNotNullOrEmpty]
3436
public string ResourceGroupName { get; set; }
3537

src/ResourceManager/CognitiveServices/Commands.Management.CognitiveServices/CognitiveServicesAccount/SetAzureCognitiveServicesAccount.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.Management.CognitiveServices.Properties;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.CognitiveServices;
1718
using Microsoft.Azure.Management.CognitiveServices.Models;
1819
using System;
@@ -35,6 +36,7 @@ public class SetAzureCognitiveServicesAccountCommand : CognitiveServicesAccountB
3536
Mandatory = true,
3637
ValueFromPipelineByPropertyName = true,
3738
HelpMessage = "Resource Group Name.")]
39+
[ResourceGroupCompleter()]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

0 commit comments

Comments
 (0)