Skip to content

Commit 1235f9f

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceGroupCompleter to NotificationHubs
1 parent 1fca685 commit 1235f9f

21 files changed

+42
-0
lines changed

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/GetAzureNotificationHubsNamespace.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -28,6 +29,7 @@ public class GetAzureNotificationHubsNamespace : AzureNotificationHubsCmdletBase
2829
ValueFromPipelineByPropertyName = true,
2930
Position = 0,
3031
HelpMessage = "The name of the resource group")]
32+
[ResourceGroupCompleter]
3133
public string ResourceGroup { get; set; }
3234

3335
[Parameter(Mandatory = false,

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/GetAzureNotificationHubsNamespaceAuthorizationRules.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -27,6 +28,7 @@ public class GetAzureNotificationHubsNamespaceAuthorizationRules : AzureNotifica
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/GetAzureNotificationHubsNamespaceListKeys.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.NotificationHubs.Models;
1617
using System.Management.Automation;
1718

@@ -25,6 +26,7 @@ public class GetAzureNotificationHubsNamespaceListKeys : AzureNotificationHubsCm
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/NewAzureNotificationHubsNamespace.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections;
1718
using System.Management.Automation;
1819

@@ -26,6 +27,7 @@ public class NewAzureNotificationHubsNamespace : AzureNotificationHubsCmdletBase
2627
ValueFromPipelineByPropertyName = true,
2728
Position = 0,
2829
HelpMessage = "The name of the resource group")]
30+
[ResourceGroupCompleter]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroup { get; set; }
3133

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/NewAzureNotificationHubsNamespaceAuthorizationRules.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.Namespace
@@ -25,6 +26,7 @@ public class NewAzureNotificationHubsNamespaceAuthorizationRules : AzureNotifica
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/NewAzureNotificationHubsNamespaceKey.cs

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

1920
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.Namespace
2021
{
@@ -25,6 +26,7 @@ public class NewAzureNotificationHubsNamespaceKey : AzureNotificationHubsCmdletB
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/RemoveAzureNotificationHubsNamespace.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.Globalization;
1617
using System.Management.Automation;
1718

@@ -25,6 +26,7 @@ public class RemoveAzureNotificationHubsNamespace : AzureNotificationHubsCmdletB
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/RemoveAzureNotificationHubsNamespaceAuthorizationRules.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.Globalization;
1617
using System.Management.Automation;
1718

@@ -25,6 +26,7 @@ public class RemoveAzureNotificationHubsNamespaceAuthorizationRules : AzureNotif
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/SetAzureNotificationHubsNamespace.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 System.Globalization;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1819

1920
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.Namespace
2021
{
@@ -26,6 +27,7 @@ public class SetAzureNotificationHubsNamespace : AzureNotificationHubsCmdletBase
2627
ValueFromPipelineByPropertyName = true,
2728
Position = 0,
2829
HelpMessage = "The name of the resource group")]
30+
[ResourceGroupCompleter]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroup { get; set; }
3133

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/Namespace/SetAzureNotificationHubsNamespaceAuthorizationRules.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Management.Automation;
1717
using System.Globalization;
1818
using System;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920

2021
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.Namespace
2122
{
@@ -27,6 +28,7 @@ public class SetAzureNotificationHubsNamespaceAuthorizationRules : AzureNotifica
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/GetAzureNotificationHub.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -27,6 +28,7 @@ public class GetAzureNotificationHub : AzureNotificationHubsCmdletBase
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/GetAzureNotificationHubAuthorizationRules.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -27,6 +28,7 @@ public class GetAzureNotificationHubAuthorizationRules : AzureNotificationHubsCm
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/GetAzureNotificationHubListKeys.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.NotificationHubs.Models;
1617
using System.Management.Automation;
1718

@@ -25,6 +26,7 @@ public class GetAzureNotificationHubListKeys : AzureNotificationHubsCmdletBase
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/GetAzureNotificationHubPNSCredentials.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
@@ -25,6 +26,7 @@ public class GetAzureNotificationHubPNSCredentials : AzureNotificationHubsCmdlet
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/NewAzureNotificationHub.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
@@ -25,6 +26,7 @@ public class NewAzureNotificationHub : AzureNotificationHubsCmdletBase
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/NewAzureNotificationHubAuthorizationRules.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.NotificationHubs.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
@@ -25,6 +26,7 @@ public class NewAzureNotificationHubAuthorizationRules : AzureNotificationHubsCm
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/NewAzureNotificationHubKey.cs

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

1920
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
2021
{
@@ -25,6 +26,7 @@ public class NewAzureNotificationHubKey : AzureNotificationHubsCmdletBase
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/RemoveAzureNotificationHub.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.Globalization;
1617
using System.Management.Automation;
1718
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
@@ -24,6 +25,7 @@ public class RemoveAzureNotificationHub : AzureNotificationHubsCmdletBase
2425
ValueFromPipelineByPropertyName = true,
2526
Position = 0,
2627
HelpMessage = "The name of the resource group")]
28+
[ResourceGroupCompleter]
2729
[ValidateNotNullOrEmpty]
2830
public string ResourceGroup { get; set; }
2931

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/RemoveAzureNotificationHubAuthorizationRules.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.Globalization;
1617
using System.Management.Automation;
1718

@@ -25,6 +26,7 @@ public class RemoveAzureNotificationHubAuthorizationRules : AzureNotificationHub
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "The name of the resource group")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroup { get; set; }
3032

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/SetAzureNotificationHub.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Management.Automation;
1717
using System.Globalization;
1818
using System;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920

2021
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
2122
{
@@ -27,6 +28,7 @@ public class SetAzureNotificationHub : AzureNotificationHubsCmdletBase
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

src/ResourceManager/NotificationHubs/Commands.NotificationHubs/Commands/NotificationHub/SetAzureNotificationHubAuthorizationRules.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Management.Automation;
1717
using System.Globalization;
1818
using System;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920

2021
namespace Microsoft.Azure.Commands.NotificationHubs.Commands.NotificationHub
2122
{
@@ -27,6 +28,7 @@ public class SetAzureNotificationHubAuthorizationRules : AzureNotificationHubsCm
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "The name of the resource group")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroup { get; set; }
3234

0 commit comments

Comments
 (0)