github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/virtual_machine.go (about) 1 /* Copyright © 2017 VMware, Inc. All Rights Reserved. 2 SPDX-License-Identifier: BSD-2-Clause 3 4 Generated by: https://github.com/swagger-api/swagger-codegen.git */ 5 6 package manager 7 8 import ( 9 "github.com/vmware/go-vmware-nsxt/common" 10 ) 11 12 type VirtualMachine struct { 13 14 // The server will populate this field when returing the resource. Ignored on PUT and POST. 15 Links []common.ResourceLink `json:"_links,omitempty"` 16 17 Schema string `json:"_schema,omitempty"` 18 19 Self *common.SelfResourceLink `json:"_self,omitempty"` 20 21 // Timestamp of last modification 22 LastSyncTime int64 `json:"_last_sync_time,omitempty"` 23 24 // Description of this resource 25 Description string `json:"description,omitempty"` 26 27 // Defaults to ID if not set 28 DisplayName string `json:"display_name,omitempty"` 29 30 // The type of this resource. 31 ResourceType string `json:"resource_type,omitempty"` 32 33 // Opaque identifiers meaningful to the API user 34 Tags []common.Tag `json:"tags,omitempty"` 35 36 // List of external compute ids of the virtual machine in the format 'id-type-key:value' , list of external compute ids ['uuid:xxxx-xxxx-xxxx-xxxx', 'moIdOnHost:moref-11', 'instanceUuid:xxxx-xxxx-xxxx-xxxx'] 37 ComputeIds []string `json:"compute_ids"` 38 39 // Current external id of this virtual machine in the system. 40 ExternalId string `json:"external_id"` 41 42 // Id of the host in which this virtual machine exists. 43 HostId string `json:"host_id"` 44 45 // Id of the vm unique within the host. 46 LocalIdOnHost string `json:"local_id_on_host"` 47 48 // Current power state of this virtual machine in the system. 49 PowerState string `json:"power_state"` 50 51 // Reference of the Host or Public Cloud Gateway that reported the VM 52 Source *common.ResourceReference `json:"source,omitempty"` 53 54 // Virtual Machine type; Edge, Service VM or other. 55 Type_ string `json:"type,omitempty"` 56 }