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

Method ComputeSystemAddScsiDevice

NanaBox/ConfigurationManager.cpp:807–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807void 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
823void NanaBox::ComputeSystemUpdateScsiDevice(
824 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected