| 805 | } |
| 806 | |
| 807 | void NanaBox::ComputeSystemAddScsiDevice( |
| 808 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |
| 809 | std::uint32_t const& DeviceID, |
| 810 | NanaBox::ScsiDeviceConfiguration const& Configuration) |
| 811 | { |
| 812 | nlohmann::json Result; |
| 813 | |
| 814 | Result["ResourcePath"] = Mile::FormatString( |
| 815 | "VirtualMachine/Devices/Scsi/NanaBox Scsi Controller/Attachments/%d", |
| 816 | DeviceID); |
| 817 | Result["RequestType"] = "Add"; |
| 818 | Result["Settings"] = NanaBox::MakeHcsScsiDeviceConfiguration(Configuration); |
| 819 | |
| 820 | Instance->Modify(winrt::to_hstring(Result.dump())); |
| 821 | } |
| 822 | |
| 823 | void NanaBox::ComputeSystemUpdateScsiDevice( |
| 824 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |