MCPcopy Create free account
hub / github.com/M2Team/NanaBox / ComputeSystemUpdateScsiDevice

Method ComputeSystemUpdateScsiDevice

NanaBox/ConfigurationManager.cpp:823–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823void 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
839void NanaBox::ComputeSystemUpdateGpu(
840 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected