public VirtualMachineOperation CreateFrom(VirtualMachineCreation virtualMachineCreation, DiskCreation diskCreation, Disk sourceDisk) { Mapping.VirtualMachineCreation mappingVirtualMachineCreation = new Mapping.VirtualMachineCreation(virtualMachineCreation); Mapping.DiskCreation mappingDiskCreation = new Mapping.DiskCreation(diskCreation); return new VirtualMachineOperation(this.service.VirtualMachineCreateFrom(this.apiKey, mappingVirtualMachineCreation, mappingDiskCreation, sourceDisk.Id), null); }
public VirtualMachineOperation Create(VirtualMachineCreation virtualMachineCreation) { Mapping.VirtualMachineCreation mappingVirtualMachineCreation = new Mapping.VirtualMachineCreation(virtualMachineCreation); return new VirtualMachineOperation(this.service.VirtualMachineCreate(this.apiKey, mappingVirtualMachineCreation), null); }