コード例 #1
0
        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);
        }
コード例 #2
0
        public VirtualMachineOperation Create(VirtualMachineCreation virtualMachineCreation)
        {
            Mapping.VirtualMachineCreation mappingVirtualMachineCreation = new Mapping.VirtualMachineCreation(virtualMachineCreation);

            return new VirtualMachineOperation(this.service.VirtualMachineCreate(this.apiKey, mappingVirtualMachineCreation), null);
        }