Skip to content

Commit 5fc6998

Browse files
committed
check in 2
1 parent 7566d0d commit 5fc6998

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

src/AzurePowershell.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio 2013
2+
# Visual Studio Express 2013 for Web
33
VisualStudioVersion = 12.0.31101.0
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8531411A-0137-4E27-9C5E-49E07C245048}"
@@ -210,6 +210,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement", "R
210210
EndProject
211211
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ApiManagement.Test", "ResourceManager\ApiManagement\Commands.ApiManagement.Test\Commands.ApiManagement.Test.csproj", "{BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}"
212212
EndProject
213+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.AzureBackup", "ResourceManager\AzureBackup\Commands.AzureBackup\Commands.AzureBackup.csproj", "{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}"
214+
EndProject
213215
Global
214216
GlobalSection(SolutionConfigurationPlatforms) = preSolution
215217
Debug|Any CPU = Debug|Any CPU
@@ -512,6 +514,10 @@ Global
512514
{BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
513515
{BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
514516
{BEC9ECE9-A3D6-4B24-A682-1FA890647D9D}.Release|Any CPU.Build.0 = Release|Any CPU
517+
{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
518+
{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Debug|Any CPU.Build.0 = Debug|Any CPU
519+
{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Release|Any CPU.ActiveCfg = Release|Any CPU
520+
{6C8D2337-C9D1-4F52-94B3-AB63A19F3453}.Release|Any CPU.Build.0 = Release|Any CPU
515521
EndGlobalSection
516522
GlobalSection(SolutionProperties) = preSolution
517523
HideSolutionNode = FALSE

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/GetAzureBackupProtectionPolicy.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ public override void ExecuteCmdlet()
3939
{
4040
WriteVerbose("Making client call");
4141

42-
ProtectionPolicyListResponse policyListResponse = AzureBackupClient.ProtectionPolicy.ListAsync(GetCustomRequestHeaders(), CmdletCancellationToken).Result;
42+
var policyListResponse = AzureBackupClient.ProtectionPolicy.ListAsync(GetCustomRequestHeaders(), CmdletCancellationToken).Result;
4343

4444
WriteVerbose("Received policy response");
45-
45+
WriteVerbose("Received policy response2");
4646
IEnumerable<ProtectionPolicyInfo> policyObjects = null;
4747
if (Name != null)
4848
{
49-
policyObjects = policyListResponse.ProtectionPolicies.Objects.Where(x => x.Name.Equals(Name, System.StringComparison.InvariantCultureIgnoreCase));
49+
policyObjects = policyListResponse.Objects.Where(x => x.Name.Equals(Name, System.StringComparison.InvariantCultureIgnoreCase));
5050
}
5151
else
5252
{
53-
policyObjects = policyListResponse.ProtectionPolicies.Objects;
53+
policyObjects = policyListResponse.Objects;
5454
}
5555

5656
WriteVerbose("Converting response");

src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
<Reference Include="Microsoft.WindowsAzure.Management">
7878
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
7979
</Reference>
80-
<Reference Include="Microsoft.WindowsAzure.Management.BackupServicesManagment">
80+
<Reference Include="Microsoft.WindowsAzure.Management.BackupServicesManagment, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
81+
<SpecificVersion>False</SpecificVersion>
8182
<HintPath>..\..\..\Microsoft.WindowsAzure.Management.BackupServicesManagment.dll</HintPath>
8283
</Reference>
8384
<Reference Include="Microsoft.WindowsAzure.Management.Scheduler">
@@ -110,10 +111,13 @@
110111
<Reference Include="System.Xml" />
111112
</ItemGroup>
112113
<ItemGroup>
114+
<Compile Include="AzureBackupVaultCmdletBase.cs" />
113115
<Compile Include="AzureBackupCmdletBase.cs" />
114116
<Compile Include="AzureBackupCmdletHelpMessage.cs" />
115117
<Compile Include="Cmdlets\Jobs\GetAzureBackupJob.cs" />
116118
<Compile Include="Cmdlets\ProtectionPolicy\GetAzureBackupProtectionPolicy.cs" />
119+
<Compile Include="Models\AzureBackupBaseObjects.cs" />
120+
<Compile Include="Models\ProtectionPolicy.cs" />
117121
<Compile Include="Properties\Resources.Designer.cs">
118122
<AutoGen>True</AutoGen>
119123
<DesignTime>True</DesignTime>
@@ -130,6 +134,7 @@
130134
<ItemGroup>
131135
<None Include="Microsoft.Azure.Commands.AzureBackup.format.ps1xml">
132136
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
137+
<SubType>Designer</SubType>
133138
</None>
134139
<None Include="Microsoft.Azure.Commands.AzureBackup.types.ps1xml">
135140
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -145,9 +150,7 @@
145150
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
146151
</EmbeddedResource>
147152
</ItemGroup>
148-
<ItemGroup>
149-
<Folder Include="Models\" />
150-
</ItemGroup>
153+
<ItemGroup />
151154
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
152155
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
153156
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs

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

1515
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
1616
{
17-
public abstract class AzureBackupVaultContextObject
17+
public class AzureBackupVaultContextObject
1818
{
1919
/// <summary>
2020
/// ResourceGroupName of the azurebackup object

src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ProtectionPolicy.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.WindowsAzure.Management.BackupServices.Models;
15+
using Microsoft.Azure.Management.BackupServices.Models;
1616
using System;
1717
using System.Collections.Generic;
1818
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets

0 commit comments

Comments
 (0)