Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Add VM.add_to_other_config and VM.remove_from_other_config #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,24 @@ func (self *VM) SetOtherConfig(other_config map[string]string) (err error) {
return
}

func (self *VM) AddToOtherConfig(key string, value string) (err error) {
result := APIResult{}
err = self.Client.APICall(&result, "VM.add_to_other_config", self.Ref, key, value)
if err != nil {
return err
}
return
}

func (self *VM) RemoveFromOtherConfig(key string) (err error) {
result := APIResult{}
err = self.Client.APICall(&result, "VM.remove_from_other_config", self.Ref, key)
if err != nil {
return err
}
return
}

func (self *VM) SetNameLabel(name_label string) (err error) {
result := APIResult{}
err = self.Client.APICall(&result, "VM.set_name_label", self.Ref, name_label)
Expand Down