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

Method ComputeSystemUpdateMemorySize

NanaBox/ConfigurationManager.cpp:714–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void NanaBox::ComputeSystemUpdateMemorySize(
715 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,
716 std::uint64_t const& MemorySize)
717{
718 nlohmann::json Result;
719
720 Result["ResourcePath"] = "VirtualMachine/ComputeTopology/Memory/SizeInMB";
721 Result["RequestType"] = "Update";
722 Result["Settings"] = MemorySize;
723
724 Instance->Modify(winrt::to_hstring(Result.dump()));
725}
726
727void NanaBox::ComputeSystemAddComPort(
728 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected