コード例 #1
0
 public ASRHyperVReplicaAzureVmDiskDetails(AzureVmDiskDetails hyperVReplicaAzureVmDiskDetails)
 {
     this.VhdType            = hyperVReplicaAzureVmDiskDetails.VhdType;
     this.VhdId              = hyperVReplicaAzureVmDiskDetails.VhdId;
     this.VhdName            = hyperVReplicaAzureVmDiskDetails.VhdName;
     this.MaxSizeMB          = hyperVReplicaAzureVmDiskDetails.MaxSizeMB;
     this.TargetDiskLocation = hyperVReplicaAzureVmDiskDetails.TargetDiskLocation;
     this.TargetDiskName     = hyperVReplicaAzureVmDiskDetails.TargetDiskName;
     this.LunId              = hyperVReplicaAzureVmDiskDetails.LunId;
 }
コード例 #2
0
        private void UpdateDiskDetails(AzureVmDiskDetails diskDetails)
        {
            this.Disks = new List<VirtualHardDisk>();
            foreach (var disk in diskDetails.Disks)
            {
                VirtualHardDisk hd = new VirtualHardDisk();
                hd.Id = disk.Id;
                hd.Name = disk.Name;
                this.Disks.Add(hd);
            }

            this.OSDiskId = diskDetails.VHDId;
            this.OSDiskName = diskDetails.OsDisk;
            this.OS = diskDetails.OsType;
        }