Skip to content

Commit 465054e

Browse files
committed
Merge pull request #210 from chadiel/ignite
ARM Cmdlet changes
2 parents 5903569 + c015050 commit 465054e

File tree

100 files changed

+8011
-1217
lines changed

Some content is hidden

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

100 files changed

+8011
-1217
lines changed

src/AzurePowershell.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.TrafficManager2.Te
204204
EndProject
205205
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManagement.Automation.Test", "ResourceManager\Automation\Commands.Automation.Test\Commands.ResourceManagement.Automation.Test.csproj", "{59D1B5DC-9175-43EC-90C6-CBA601B3565F}"
206206
EndProject
207+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Cmdlets", "ResourceManager\ResourceManager\Commands.ResourceManager\Cmdlets\Commands.ResourceManager.Cmdlets.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
208+
EndProject
207209
Global
208210
GlobalSection(SolutionConfigurationPlatforms) = preSolution
209211
Debug|Any CPU = Debug|Any CPU
@@ -494,6 +496,10 @@ Global
494496
{59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Debug|Any CPU.Build.0 = Debug|Any CPU
495497
{59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.ActiveCfg = Release|Any CPU
496498
{59D1B5DC-9175-43EC-90C6-CBA601B3565F}.Release|Any CPU.Build.0 = Release|Any CPU
499+
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
500+
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
501+
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
502+
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
497503
EndGlobalSection
498504
GlobalSection(SolutionProperties) = preSolution
499505
HideSolutionNode = FALSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{1CFE6234-2FC0-4FD0-87F8-103E06CE4133}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Microsoft.Azure.Commands.ResourceManager.Clients</RootNamespace>
11+
<AssemblyName>Microsoft.Azure.Commands.ResourceManager.Clients</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\..\</SolutionDir>
15+
<RestorePackages>true</RestorePackages>
16+
<NuGetPackageImportStamp>a651016d</NuGetPackageImportStamp>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>..\..\..\..\Package\Debug\ResourceManager\AzureResourceManager\ResourceManager</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
27+
<Prefer32Bit>false</Prefer32Bit>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<SignAssembly>true</SignAssembly>
31+
<AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
32+
<DelaySign>true</DelaySign>
33+
<OutputPath>..\..\..\..\Package\Release\ResourceManager\AzureResourceManager\ResourceManager</OutputPath>
34+
<DefineConstants>TRACE;SIGN</DefineConstants>
35+
<Optimize>true</Optimize>
36+
<DebugType>pdbonly</DebugType>
37+
<PlatformTarget>AnyCPU</PlatformTarget>
38+
<CodeAnalysisLogFile>bin\Release\Microsoft.Azure.Commands.ResourceManager.Core.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
39+
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
40+
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
41+
<ErrorReport>prompt</ErrorReport>
42+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
43+
<CodeAnalysisRuleSetDirectories>;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\Rule Sets</CodeAnalysisRuleSetDirectories>
44+
<CodeAnalysisRuleDirectories>;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\Rules</CodeAnalysisRuleDirectories>
45+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
46+
<Prefer32Bit>false</Prefer32Bit>
47+
</PropertyGroup>
48+
<ItemGroup>
49+
<Reference Include="Hyak.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
50+
<SpecificVersion>False</SpecificVersion>
51+
<HintPath>..\..\..\..\packages\Hyak.Common.1.0.2\lib\net45\Hyak.Common.dll</HintPath>
52+
</Reference>
53+
<Reference Include="Microsoft.Azure.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
54+
<SpecificVersion>False</SpecificVersion>
55+
<HintPath>..\..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll</HintPath>
56+
</Reference>
57+
<Reference Include="Microsoft.Azure.Common.NetFramework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58+
<SpecificVersion>False</SpecificVersion>
59+
<HintPath>..\..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
60+
</Reference>
61+
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
62+
<SpecificVersion>False</SpecificVersion>
63+
<HintPath>..\..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
64+
</Reference>
65+
<Reference Include="Microsoft.Threading.Tasks.Extensions, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
66+
<SpecificVersion>False</SpecificVersion>
67+
<HintPath>..\..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
68+
</Reference>
69+
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
70+
<HintPath>..\..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
71+
<Private>True</Private>
72+
</Reference>
73+
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
74+
<SpecificVersion>False</SpecificVersion>
75+
<HintPath>..\..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
76+
</Reference>
77+
<Reference Include="System" />
78+
<Reference Include="System.Core" />
79+
<Reference Include="System.Net" />
80+
<Reference Include="System.Net.Http" />
81+
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
82+
<SpecificVersion>False</SpecificVersion>
83+
<HintPath>..\..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll</HintPath>
84+
</Reference>
85+
<Reference Include="System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
86+
<SpecificVersion>False</SpecificVersion>
87+
<HintPath>..\..\..\..\Package\Debug\ResourceManager\AzureResourceManager\TrafficManager\System.Net.Http.Formatting.dll</HintPath>
88+
</Reference>
89+
<Reference Include="System.Net.Http.Primitives">
90+
<HintPath>..\..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Primitives.dll</HintPath>
91+
<Private>True</Private>
92+
</Reference>
93+
<Reference Include="System.Net.Http.WebRequest" />
94+
</ItemGroup>
95+
<ItemGroup>
96+
<Compile Include="Components\HttpClientHelperFactory.cs" />
97+
<Compile Include="Components\PaginatedResponseHelper.cs" />
98+
<Compile Include="RestClients\ResourceManagerRestClientBase.cs" />
99+
<Compile Include="RestClients\ResourceManagerRestRestClient.cs" />
100+
<Compile Include="Components\HttpClientHelper.cs" />
101+
<Compile Include="Components\Constants.cs" />
102+
<Compile Include="Components\HttpMethodExt.cs" />
103+
<Compile Include="Components\HttpStatusCodeExt.cs" />
104+
<Compile Include="Components\QueryFilterBuilder.cs" />
105+
<Compile Include="Components\ResourceIdUtility.cs" />
106+
<Compile Include="Components\OperationResult.cs" />
107+
<Compile Include="Handlers\AuthenticationHandler.cs" />
108+
<Compile Include="Handlers\RetryHandler.cs" />
109+
<Compile Include="Handlers\TracingHandler.cs" />
110+
<Compile Include="Handlers\UserAgentHandler.cs" />
111+
<Compile Include="Properties\AssemblyInfo.cs" />
112+
</ItemGroup>
113+
<ItemGroup>
114+
<ProjectReference Include="..\Common\Commands.ResourceManager.Common.csproj">
115+
<Project>{1cbd2f22-4430-4a27-81ba-e20838d3d929}</Project>
116+
<Name>Commands.ResourceManager.Common</Name>
117+
</ProjectReference>
118+
<ProjectReference Include="..\Data\Commands.ResourceManager.Data.csproj">
119+
<Project>{3E446A46-1F52-4CB7-AE63-62973C3F9718}</Project>
120+
<Name>Commands.ResourceManager.Data</Name>
121+
</ProjectReference>
122+
</ItemGroup>
123+
<ItemGroup>
124+
<None Include="MSSharedLibKey.snk" />
125+
<None Include="packages.config" />
126+
</ItemGroup>
127+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
128+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
129+
<Import Project="..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" />
130+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
131+
<PropertyGroup>
132+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
133+
</PropertyGroup>
134+
<Error Condition="!Exists('..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" />
135+
</Target>
136+
</Project>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System;
16+
using System.Reflection;
17+
using System.Runtime.CompilerServices;
18+
using System.Runtime.InteropServices;
19+
20+
[assembly: AssemblyTitle("Microsoft Azure PowerShell - Resource Manager (ARM)")]
21+
[assembly: AssemblyCompany("Microsoft")]
22+
[assembly: AssemblyProduct("Microsoft Azure PowerShell")]
23+
[assembly: AssemblyCopyright("Copyright © Microsoft")]
24+
[assembly: ComVisible(false)]
25+
[assembly: CLSCompliant(false)]
26+
[assembly: AssemblyVersion("0.1.0")]
27+
[assembly: AssemblyFileVersion("0.1.0")]
28+
[assembly: Guid("a4f18662-f484-4426-b400-78044dea6aa1")]
29+
30+
#if SIGN
31+
[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
32+
#else
33+
[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test")]
34+
#endif
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Hyak.Common" version="1.0.2" targetFramework="net45" />
4+
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
5+
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
6+
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
7+
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
8+
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net45" />
9+
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net45" />
10+
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
11+
</packages>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Collections
16+
{
17+
using System;
18+
using System.Collections.Generic;
19+
using Cmdlets.Json;
20+
21+
/// <summary>
22+
/// The insensitive version of dictionary.
23+
/// </summary>
24+
/// <typeparam name="TValue">The type of the value.</typeparam>
25+
[JsonPreserveCaseDictionary]
26+
public class InsensitiveDictionary<TValue> : Dictionary<string, TValue>
27+
{
28+
/// <summary>
29+
/// The empty dictionary.
30+
/// </summary>
31+
public static readonly InsensitiveDictionary<TValue> Empty = new InsensitiveDictionary<TValue>();
32+
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="InsensitiveDictionary{TValue}"/> class.
35+
/// </summary>
36+
public InsensitiveDictionary()
37+
: base(StringComparer.InvariantCultureIgnoreCase)
38+
{
39+
}
40+
41+
/// <summary>
42+
/// Initializes a new instance of the <see cref="InsensitiveDictionary{TValue}"/> class.
43+
/// </summary>
44+
/// <param name="capacity">The initial number of elements that the <see cref="T:System.Collections.Generic.Dictionary`2" /> can contain.</param>
45+
public InsensitiveDictionary(int capacity)
46+
: base(capacity, StringComparer.InvariantCultureIgnoreCase)
47+
{
48+
}
49+
50+
/// <summary>
51+
/// Initializes a new instance of the <see cref="InsensitiveDictionary{TValue}"/> class.
52+
/// </summary>
53+
/// <param name="dictionary">The dictionary.</param>
54+
public InsensitiveDictionary(IDictionary<string, TValue> dictionary)
55+
: base(dictionary, StringComparer.InvariantCultureIgnoreCase)
56+
{
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)