diff --git a/internal/api/models.go b/internal/api/models.go index e20e31f..fca27fa 100644 --- a/internal/api/models.go +++ b/internal/api/models.go @@ -1,6 +1,6 @@ package api -// VM is the value in response from the VM endpoint +// VM represents a virtual machine in the vCenter as described in https://developer.vmware.com/apis/vsphere-automation/v8.0U1/vcenter/data-structures/VM/Summary/ type VM struct { VM string `json:"vm"` Name string `json:"name"` @@ -9,10 +9,13 @@ type VM struct { // VMTag holds a tag from vSphere type VMTag struct { - Value string `json:"value"` + // Value holds the value of the tag + Value string `json:"value"` + // Category holds the tag category Category string `json:"category"` } +// Host represents a host in the vCenter as described in https://developer.vmware.com/apis/vsphere-automation/v8.0U1/vcenter/data-structures/Host/Summary/ type Host struct { Host string `json:"host"` Name string `json:"name"`