Skip to content

Commit 8f562e8

Browse files
Maddie Claytonazdevxps
authored andcommitted
Add ResourceGroupCompleter to EventHub
1 parent c4553de commit 8f562e8

18 files changed

+36
-0
lines changed

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/GetAzureEventhubAuthorizationRules.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.EventHub.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -31,6 +32,7 @@ public class GetAzureEventHubAuthorizationRule : AzureEventHubsCmdletBase
3132
ValueFromPipelineByPropertyName = true,
3233
Position = 0,
3334
HelpMessage = "Resource Group Name.")]
35+
[ResourceGroupCompleter]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/GetAzureEventhubKey.cs

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

1920
namespace Microsoft.Azure.Commands.EventHub.Commands
2021
{
@@ -28,6 +29,7 @@ public class GetAzureEventhubKey : AzureEventHubsCmdletBase
2829
ValueFromPipelineByPropertyName = true,
2930
Position = 0,
3031
HelpMessage = "Resource Group Name.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/NewAzureEventhubAuthorizationRules.cs

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

2021
namespace Microsoft.Azure.Commands.EventHub.Commands
2122
{
@@ -29,6 +30,7 @@ public class NewAzureEventhubAuthorizationRules : AzureEventHubsCmdletBase
2930
ValueFromPipelineByPropertyName = true,
3031
Position = 0,
3132
HelpMessage = "Resource Group Name.")]
33+
[ResourceGroupCompleter]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/NewAzureEventhubKey.cs

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

1920
namespace Microsoft.Azure.Commands.EventHub.Commands
2021
{
@@ -28,6 +29,7 @@ public class NewAzureEventhubKey : AzureEventHubsCmdletBase
2829
ValueFromPipelineByPropertyName = true,
2930
Position = 0,
3031
HelpMessage = "Resource Group Name.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
[Alias(AliasResourceGroup)]
3335
public string ResourceGroupName { get; set; }

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/RemoveAzureEventhubAuthorizationRules.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.EventHub.Commands
@@ -26,6 +27,7 @@ public class RemoveAzureEventhubAuthorizationRules : AzureEventHubsCmdletBase
2627
ValueFromPipelineByPropertyName = true,
2728
Position = 0,
2829
HelpMessage = "Resource Group Name.")]
30+
[ResourceGroupCompleter]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/AuthorizationRule/SetAzureEventhubAuthorizationRules.cs

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

2021
namespace Microsoft.Azure.Commands.EventHub.Commands
2122
{
@@ -29,6 +30,7 @@ public class SetAzureEventhubAuthorizationRules : AzureEventHubsCmdletBase
2930
ValueFromPipelineByPropertyName = true,
3031
Position = 0,
3132
HelpMessage = "Resource Group Name.")]
33+
[ResourceGroupCompleter]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/ConsumerGroup/GetAzureEventHubConsumerGroups.cs

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

2021
namespace Microsoft.Azure.Commands.EventHub.Commands.ConsumerGroup
2122
{
@@ -36,6 +37,7 @@ public class GetAzureRmEventHubConsumerGroup : AzureEventHubsCmdletBase
3637
ValueFromPipelineByPropertyName = true,
3738
Position = 0,
3839
HelpMessage = "Resource Group Name.")]
40+
[ResourceGroupCompleter]
3941
[ValidateNotNullOrEmpty]
4042
public string ResourceGroupName { get; set; }
4143

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/ConsumerGroup/NewAzureEventHubConsumerGroups.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.Commands.EventHub.Models;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1718

1819
namespace Microsoft.Azure.Commands.EventHub.Commands.ConsumerGroup
1920
{
@@ -27,6 +28,7 @@ public class NewEventHubConsumerGroup : AzureEventHubsCmdletBase
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "Resource Group Name.")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/ConsumerGroup/RemoveAzureEventHubConsumerGroups.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
namespace Microsoft.Azure.Commands.EventHub.Commands.ConsumerGroup
1718
{
@@ -25,6 +26,7 @@ public class RemoveAzureRmEventHubConsumerGroupp : AzureEventHubsCmdletBase
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "Resource Group Name.")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroupName { get; set; }
3032

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/ConsumerGroup/SetAzureEventHubConsumerGroups.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.EventHub.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.EventHub.Models;
1718
using System.Management.Automation;
1819

@@ -28,6 +29,7 @@ public class SetAzureEventHubConsumerGroup : AzureEventHubsCmdletBase
2829
ValueFromPipelineByPropertyName = true,
2930
Position = 0,
3031
HelpMessage = "Resource Group Name.")]
32+
[ResourceGroupCompleter]
3133
[ValidateNotNullOrEmpty]
3234
public string ResourceGroupName { get; set; }
3335

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/EventHub/GetAzureEventHubs.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.EventHub.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -31,6 +32,7 @@ public class GetAzureRmEventHub : AzureEventHubsCmdletBase
3132
ValueFromPipelineByPropertyName = true,
3233
Position = 0,
3334
HelpMessage = "Resource Group Name.")]
35+
[ResourceGroupCompleter]
3436
[ValidateNotNullOrEmpty]
3537
public string ResourceGroupName { get; set; }
3638

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/EventHub/NewAzureEventHub.cs

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

2021
namespace Microsoft.Azure.Commands.EventHub.Commands.EventHub
2122
{
@@ -29,6 +30,7 @@ public class NewAzureRmEventHub : AzureEventHubsCmdletBase
2930
ValueFromPipelineByPropertyName = true,
3031
Position = 0,
3132
HelpMessage = "Resource Group Name.")]
33+
[ResourceGroupCompleter]
3234
[ValidateNotNullOrEmpty]
3335
public string ResourceGroupName { get; set; }
3436

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/EventHub/RemoveAzureEventHub.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
namespace Microsoft.Azure.Commands.EventHub.Commands.EventHub
1718
{
@@ -25,6 +26,7 @@ public class RemoveAzureEventHub : AzureEventHubsCmdletBase
2526
ValueFromPipelineByPropertyName = true,
2627
Position = 0,
2728
HelpMessage = "Resource Group Name.")]
29+
[ResourceGroupCompleter]
2830
[ValidateNotNullOrEmpty]
2931
public string ResourceGroupName { get; set; }
3032

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

1819
namespace Microsoft.Azure.Commands.EventHub.Commands.EventHub
@@ -27,6 +28,7 @@ public class SetAzureEventHub : AzureEventHubsCmdletBase
2728
ValueFromPipelineByPropertyName = true,
2829
Position = 0,
2930
HelpMessage = "Resource Group Name.")]
31+
[ResourceGroupCompleter]
3032
[ValidateNotNullOrEmpty]
3133
public string ResourceGroupName { get; set; }
3234

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/Namespace/GetAzureEventHubNamespace.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.EventHub.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Management.Automation;
@@ -32,6 +33,7 @@ public class GetAzureRmEventHubNamespace : AzureEventHubsCmdletBase
3233
ValueFromPipelineByPropertyName = true,
3334
Position = 0,
3435
HelpMessage = "Resource Group Name.")]
36+
[ResourceGroupCompleter]
3537
public string ResourceGroupName { get; set; }
3638

3739
[Parameter(

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/Namespace/NewAzureEventHubNamespace.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.EventHub.Models;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1718
using System.Collections;
1819
using System.Collections.Generic;
@@ -34,6 +35,7 @@ public class NewAzureEventHubNamespace : AzureEventHubsCmdletBase
3435
ValueFromPipelineByPropertyName = true,
3536
Position = 0,
3637
HelpMessage = "Resource Group Name.")]
38+
[ResourceGroupCompleter]
3739
[ValidateNotNullOrEmpty]
3840
public string ResourceGroupName { get; set; }
3941

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/Namespace/RemoveAzureEventHubNamespace.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.EventHub.Commands.Namespace
@@ -26,6 +27,7 @@ public class RemoveAzureRmEventHubNamespace : AzureEventHubsCmdletBase
2627
ValueFromPipelineByPropertyName = true,
2728
Position = 0,
2829
HelpMessage = "Resource Group Name.")]
30+
[ResourceGroupCompleter]
2931
[ValidateNotNullOrEmpty]
3032
public string ResourceGroupName { get; set; }
3133

src/ResourceManager/EventHub/Commands.EventHub/Cmdlets/Namespace/SetAzureEventHubNamespace.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
using Microsoft.Azure.Commands.EventHub.Models;
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1617
using System.Collections;
1718
using System.Collections.Generic;
@@ -35,6 +36,7 @@ public class SetAzureEventHubNamespace : AzureEventHubsCmdletBase
3536
Position = 0,
3637
HelpMessage = "Resource Group Name.",
3738
ParameterSetName = AutoInflateParameterSet)]
39+
[ResourceGroupCompleter]
3840
[ValidateNotNullOrEmpty]
3941
public string ResourceGroupName { get; set; }
4042

0 commit comments

Comments
 (0)