github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/virtual_network_interface.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 VirtualNetworkInterface 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 // Device key of the virtual network interface. 37 DeviceKey string `json:"device_key"` 38 39 // Device name of the virtual network interface. 40 DeviceName string `json:"device_name,omitempty"` 41 42 // External Id of the virtual network inferface. 43 ExternalId string `json:"external_id"` 44 45 // Id of the host on which the vm exists. 46 HostId string `json:"host_id"` 47 48 // IP Addresses of the the virtual network interface, from various sources. 49 IpAddressInfo []IpAddressInfo `json:"ip_address_info,omitempty"` 50 51 // LPort Attachment Id of the virtual network interface. 52 LportAttachmentId string `json:"lport_attachment_id,omitempty"` 53 54 // MAC address of the virtual network interface. 55 MacAddress string `json:"mac_address"` 56 57 // Id of the vm to which this virtual network interface belongs. 58 OwnerVmId string `json:"owner_vm_id"` 59 60 // Id of the vm unique within the host. 61 VmLocalIdOnHost string `json:"vm_local_id_on_host"` 62 }