Skip to content

Commit 8e7b404

Browse files
authored
Merge pull request Azure#4858 from maddieclayton/FixLocationCompleter
Fix LocationCompleter namespace
2 parents e5a0f12 + 37d235e commit 8e7b404

17 files changed

+18
-18
lines changed

src/ResourceManager/Common/Commands.ResourceManager.Common/ArgumentCompleter/LocationCompleter.cs renamed to src/ResourceManager/Common/Commands.ResourceManager.Common/ArgumentCompleters/LocationCompleter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
namespace Microsoft.Azure.Commands.ResourceManager.Common.Location
15+
namespace Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters
1616
{
1717
using Commands.Common.Authentication.Abstractions;
1818
using Commands.Common.Authentication;
@@ -186,7 +186,7 @@ public static ScriptBlock CreateScriptBlock(string[] resourceTypes)
186186
{
187187
string scriptResourceTypeList = "{" + String.Join(",", resourceTypes) + "}";
188188
string script = "param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)\n" +
189-
String.Format("$locations = [Microsoft.Azure.Commands.ResourceManager.Common.Location.LocationCompleterAttribute]::FindLocations({0})\n", scriptResourceTypeList) +
189+
String.Format("$locations = [Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters.LocationCompleterAttribute]::FindLocations({0})\n", scriptResourceTypeList) +
190190
"$locations | Where-Object { $_ -Like \"`\"$wordToComplete*\" } | Sort-Object | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) }";
191191
ScriptBlock scriptBlock = ScriptBlock.Create(script);
192192
return scriptBlock;

src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
<Compile Include="Generated\TenantsOperations.cs" />
178178
<Compile Include="Generated\TenantsOperationsExtensions.cs" />
179179
<Compile Include="GlobalSuppressions.cs" />
180-
<Compile Include="ArgumentCompleter\LocationCompleter.cs" />
180+
<Compile Include="ArgumentCompleters\LocationCompleter.cs" />
181181
<Compile Include="PaginatedResponseHelper.cs" />
182182
<Compile Include="Properties\AssemblyInfo.cs" />
183183
<Compile Include="Properties\Resources.Designer.cs">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1919
using Microsoft.Azure.Management.Compute.Models;
2020
using System;
2121
using System.Management.Automation;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.Azure.Commands.Common.Authentication.Models;
44
using Microsoft.Azure.Commands.Compute.Common;
55
using Microsoft.Azure.Commands.Compute.Models;
6-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
6+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
77
using Microsoft.Azure.Management.Compute.Models;
88
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC;
99
using Microsoft.WindowsAzure.Storage;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using Microsoft.Azure.Commands.Common.Authentication.Models;
1919
using Microsoft.Azure.Commands.Compute.Common;
2020
using Microsoft.Azure.Commands.Compute.Models;
21-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Compute;
2323
using Microsoft.Azure.Management.Compute.Models;
2424
using Microsoft.Azure.Management.Storage;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1616
using System.Management.Automation;
1717

1818
namespace Microsoft.Azure.Commands.Compute

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using AutoMapper;
1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using Microsoft.Azure.Management.Compute;
1919
using Microsoft.Azure.Management.Compute.Models;
2020
using Newtonsoft.Json;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using Microsoft.Azure.Management.Compute.Models;
1919
using Microsoft.Rest.Azure.OData;
2020
using System.Linq;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using System.Linq;
1919
using System.Management.Automation;
2020

src/ResourceManager/Compute/Commands.Compute/Images/GetAzureVMImageCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using Microsoft.Azure.Management.Compute.Models;
1919
using Microsoft.Rest.Azure.OData;
2020
using System.Linq;

src/ResourceManager/Compute/Commands.Compute/Images/GetAzureVMImageOfferCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using System.Linq;
1919
using System.Management.Automation;
2020

src/ResourceManager/Compute/Commands.Compute/Images/GetAzureVMImagePublisherCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using System.Linq;
1919
using System.Management.Automation;
2020

src/ResourceManager/Compute/Commands.Compute/Images/GetAzureVMImageSkuCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Compute.Common;
1616
using Microsoft.Azure.Commands.Compute.Models;
17-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1818
using System.Linq;
1919
using System.Management.Automation;
2020

src/ResourceManager/Compute/Commands.Compute/Usage/GetAzureVMUsageCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1919
using Microsoft.Azure.Management.Compute.Models;
2020
using Microsoft.Rest.Azure;
2121
using System.Collections.Generic;

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using Microsoft.Azure.Commands.Common.Authentication.Models;
1919
using Microsoft.Azure.Commands.Compute.Common;
2020
using Microsoft.Azure.Commands.Compute.Models;
21-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
21+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2222
using Microsoft.Azure.Management.Compute;
2323
using Microsoft.Azure.Management.Compute.Models;
2424
using Microsoft.Azure.Management.Storage;

src/ResourceManager/Compute/Commands.Compute/VirtualMachineSizes/GetAzureVMSizeCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Compute.Common;
1717
using Microsoft.Azure.Commands.Compute.Models;
18-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1919
using Microsoft.Azure.Management.Compute.Models;
2020
using Microsoft.Rest.Azure;
2121
using System.Collections.Generic;

src/ResourceManager/Profile/Commands.Profile.Test/LocationCompleterUnitTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.ResourceManager.Common.Location;
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1616
using Microsoft.Azure.Management.Internal.Resources.Models;
1717
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1818
using System;

0 commit comments

Comments
 (0)