Skip to content

Commit b21b4ce

Browse files
authored
Merge pull request #4936 from cormacpayne/revert-completers
Revert usage of LocationCompleter and ResourceGroupCompleter
2 parents b772e05 + 6ac9593 commit b21b4ce

File tree

56 files changed

+5
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5
-58
lines changed

src/ResourceManager/Compute/Commands.Compute/AvailabilitySets/NewAzureAvailabilitySetCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public class NewAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
4848
Position = 2,
4949
ValueFromPipelineByPropertyName = true,
5050
HelpMessage = "The location.")]
51-
[LocationCompleter("Microsoft.Compute/availabilitySets")]
5251
[ValidateNotNullOrEmpty]
5352
public string Location { get; set; }
5453

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
172172
Mandatory = false,
173173
ValueFromPipelineByPropertyName = true,
174174
HelpMessage = "Location of the resource.")]
175-
[LocationCompleter("Microsoft.Storage/storageAccounts")]
176175
[ValidateNotNullOrEmpty]
177176
public string Location { get; set; }
178177

src/ResourceManager/Compute/Commands.Compute/Extension/Diagnostics/SetAzureRmVMDiagnosticsExtension.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public string DiagnosticsConfigurationPath
106106
Position = 7,
107107
ValueFromPipelineByPropertyName = true,
108108
HelpMessage = "The location.")]
109-
[LocationCompleter("Microsoft.Storage/storageAccounts")]
110109
public string Location
111110
{
112111
get

src/ResourceManager/Compute/Commands.Compute/Extension/SetAzureVMExtensionBaseCmdlet.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public class SetAzureVMExtensionBaseCmdlet : VirtualMachineExtensionBaseCmdlet
5656
Mandatory = false,
5757
ValueFromPipelineByPropertyName = true,
5858
HelpMessage = "The location.")]
59-
[LocationCompleter("Microsoft.Compute/virtualMachines")]
6059
[ValidateNotNullOrEmpty]
6160
public string Location { get; set; }
6261

src/ResourceManager/Compute/Commands.Compute/Extension/SqlServer/SetAzureVMSqlServerExtensionCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public class SetAzureSqlServerExtensionCommand : VirtualMachineExtensionBaseCmdl
9595
Position = 8,
9696
ValueFromPipelineByPropertyName = true,
9797
HelpMessage = "Location of the resource.")]
98-
[LocationCompleter("Microsoft.Compute/virtualMachines")]
9998
[ValidateNotNullOrEmpty]
10099
public string Location { get; set; }
101100

src/ResourceManager/Compute/Commands.Compute/ExtensionImages/GetAzureVMExtensionImageCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Microsoft.Azure.Commands.Compute
2727
[OutputType(typeof(PSVirtualMachineExtensionImageDetails))]
2828
public class GetAzureVMExtensionImageCommand : VirtualMachineExtensionImageBaseCmdlet
2929
{
30-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty, LocationCompleter("Microsoft.Compute/locations/publishers")]
30+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
3131
public string Location { get; set; }
3232

3333
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]

src/ResourceManager/Compute/Commands.Compute/ExtensionImages/GetAzureVMExtensionImageTypeCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Compute
2424
[OutputType(typeof(PSVirtualMachineExtensionImageType))]
2525
public class GetAzureVMExtensionImageTypeCommand : VirtualMachineExtensionImageBaseCmdlet
2626
{
27-
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty, LocationCompleter("Microsoft.Compute/locations/publishers")]
27+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]
2828
public string Location { get; set; }
2929

3030
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true), ValidateNotNullOrEmpty]

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/Config/NewAzureRmContainerServiceConfigCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public partial class NewAzureRmContainerServiceConfigCommand : Microsoft.Azure.C
3737
Mandatory = false,
3838
Position = 0,
3939
ValueFromPipelineByPropertyName = true)]
40-
[ResourceManager.Common.ArgumentCompleters.LocationCompleter("Microsoft.Compute/containerServices")]
4140
public string Location { get; set; }
4241

4342
[Parameter(

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/ContainerServiceCreateOrUpdateMethod.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ protected override void ProcessRecord()
141141
ValueFromPipelineByPropertyName = true,
142142
ValueFromPipeline = false)]
143143
[AllowNull]
144-
[ResourceManager.Common.ArgumentCompleters.ResourceGroupCompleter()]
145144
public string ResourceGroupName { get; set; }
146145

147146
[Parameter(
@@ -193,7 +192,6 @@ protected override void ProcessRecord()
193192
ValueFromPipelineByPropertyName = true,
194193
ValueFromPipeline = false)]
195194
[AllowNull]
196-
[ResourceManager.Common.ArgumentCompleters.ResourceGroupCompleter()]
197195
public string ResourceGroupName { get; set; }
198196

199197
[Parameter(

src/ResourceManager/Compute/Commands.Compute/Generated/ContainerService/ContainerServiceDeleteMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ protected override void ProcessRecord()
125125
ValueFromPipelineByPropertyName = true,
126126
ValueFromPipeline = false)]
127127
[AllowNull]
128-
[ResourceManager.Common.ArgumentCompleters.ResourceGroupCompleter()]
129128
public string ResourceGroupName { get; set; }
130129

131130
[Parameter(

0 commit comments

Comments
 (0)