Skip to content

Commit

Permalink
docs: Optimized models
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Dec 22, 2023
1 parent 71227ff commit 8a34b4e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/api/models.go
Original file line number Diff line number Diff line change
@@ -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"`
Expand All @@ -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"`
Expand Down

0 comments on commit 8a34b4e

Please sign in to comment.