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

Method ComputeSystemRemoveNetworkAdapter

NanaBox/ConfigurationManager.cpp:791–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791void NanaBox::ComputeSystemRemoveNetworkAdapter(
792 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,
793 NanaBox::NetworkAdapterConfiguration const& Configuration)
794{
795 nlohmann::json Result;
796
797 Result["ResourcePath"] = Mile::FormatString(
798 "VirtualMachine/Devices/NetworkAdapters/%s",
799 Configuration.EndpointId.c_str());
800 Result["RequestType"] = "Remove";
801 Result["Settings"] = NanaBox::MakeHcsNetworkAdapterConfiguration(
802 Configuration);
803
804 Instance->Modify(winrt::to_hstring(Result.dump()));
805}
806
807void NanaBox::ComputeSystemAddScsiDevice(
808 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected