| 789 | } |
| 790 | |
| 791 | void 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 | |
| 807 | void NanaBox::ComputeSystemAddScsiDevice( |
| 808 | winrt::com_ptr<NanaBox::ComputeSystem> const& Instance, |