| 821 | } |
| 822 | |
| 823 | void NanaBox::ComputeSystemUpdateScsiDevice( |
| 824 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |
| 825 | std::uint32_t const& DeviceID, |
| 826 | NanaBox::ScsiDeviceConfiguration const& Configuration) |
| 827 | { |
| 828 | nlohmann::json Result; |
| 829 | |
| 830 | Result["ResourcePath"] = Mile::FormatString( |
| 831 | "VirtualMachine/Devices/Scsi/NanaBox Scsi Controller/Attachments/%d", |
| 832 | DeviceID); |
| 833 | Result["RequestType"] = "Update"; |
| 834 | Result["Settings"] = NanaBox::MakeHcsScsiDeviceConfiguration(Configuration); |
| 835 | |
| 836 | Instance->Modify(winrt::to_hstring(Result.dump())); |
| 837 | } |
| 838 | |
| 839 | void NanaBox::ComputeSystemUpdateGpu( |
| 840 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |