updates
This commit is contained in:
Родитель
212a16010a
Коммит
6f4d295306
|
@ -10,7 +10,7 @@ using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
|
|||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.Azure.Commands.Compute.Track2Models
|
||||
namespace Microsoft.Azure.Commands.Compute.Track2
|
||||
{
|
||||
public class Track2ComputeClient
|
||||
{
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Azure.ResourceManager.Compute" Version="1.0.0-beta.9" />
|
||||
<PackageReference Include="Azure.ResourceManager" Version="1.0.0" />
|
||||
<PackageReference Include="AutoMapper" Version="6.2.2" />
|
||||
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="54.0.0" />
|
||||
<PackageReference Include="System.Security.Permissions" Version="4.5.0" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.7.0" />
|
||||
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
|
||||
<PackageReference Include="System.Management" Version="4.5.0" />
|
||||
<PackageReference Include="Azure.ResourceManager.Compute" Version="1.0.0-beta.8" />
|
||||
<PackageReference Include="Azure.ResourceManager" Version="1.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.WindowsAzure.Commands.Utilities.Common;
|
|||
using Azure;
|
||||
using Azure.ResourceManager.Compute;
|
||||
using Azure.ResourceManager.Compute.Models;
|
||||
using Microsoft.Azure.Commands.Compute.Track2;
|
||||
|
||||
namespace Microsoft.Azure.Commands.Compute.Automation
|
||||
{
|
||||
|
@ -68,9 +69,9 @@ namespace Microsoft.Azure.Commands.Compute.Automation
|
|||
if (ShouldGetByName(resourceGroupName, diskAccessName))
|
||||
{
|
||||
//var result = DiskAccessesClient.Get(resourceGroupName, diskAccessName);
|
||||
var result = this.ComputeClientTrack2.GetDiskAccess(resourceGroupName, diskAccessName);
|
||||
var result = this.ComputeClientTrack2.GetDiskAccess2(resourceGroupName, diskAccessName);
|
||||
var psObject = new PSDiskAccess();
|
||||
ComputeAutomationAutoMapperProfile.Mapper.Map<DiskAccessResource, PSDiskAccess>(result, psObject);
|
||||
ComputeAutomationAutoMapperProfile.Mapper.Map<DiskAccessData, PSDiskAccess>(result.Data, psObject);
|
||||
WriteObject(psObject);
|
||||
}
|
||||
else if (ShouldListByResourceGroup(resourceGroupName, diskAccessName))
|
||||
|
|
|
@ -37,7 +37,7 @@ using Microsoft.WindowsAzure.Commands.Utilities.Common;
|
|||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.Azure.Commands.Compute.Track2Models;
|
||||
using Microsoft.Azure.Commands.Compute.Track2;
|
||||
|
||||
namespace Microsoft.Azure.Commands.Compute.Automation
|
||||
{
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace Microsoft.Azure.Commands.Compute.Automation.Models
|
|||
.ForMember(c => c.Type1, o => o.MapFrom(r => r.Type));
|
||||
|
||||
cfg.CreateMap<FROM.DiskAccess, TO.PSDiskAccess>();
|
||||
cfg.CreateMap<FROM2.DiskAccessResource, TO.PSDiskAccess>();
|
||||
cfg.CreateMap<FROM2.DiskAccessData, TO.PSDiskAccess>();
|
||||
cfg.CreateMap<TO.PSDiskAccess, FROM.DiskAccess>();
|
||||
cfg.CreateMap<FROM.DiskAccess, TO.PSDiskAccessList>();
|
||||
cfg.CreateMap<TO.PSDiskAccessList, TO.PSDiskAccess>();
|
||||
|
|
|
@ -13,7 +13,13 @@ namespace Microsoft.Azure.Commands.Compute.Automation.Models
|
|||
public string Location { get; set; }
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return "Microsoft.Compute/diskAccesses";
|
||||
}
|
||||
}
|
||||
public IDictionary<string, string> Tags { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче