swagger

package
v0.0.0-...-a406aea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	HostNetworksManagementApi *HostNetworksManagementApiService

	VMManagementApi *VMManagementApiService

	VMNetworkAdaptersManagementApi *VMNetworkAdaptersManagementApiService

	VMPowerManagementApi *VMPowerManagementApiService

	VMSharedFoldersManagementApi *VMSharedFoldersManagementApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the VMware Workstation REST API API v1.3.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ConfigVmParamsParameter

type ConfigVmParamsParameter struct {
	// config params name
	Name string `json:"name,omitempty"`
	// config params value
	Value string `json:"value,omitempty"`
}

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type CreateVmnetParameter

type CreateVmnetParameter struct {
	// The host network name
	Name string `json:"name"`
	// The host network type
	Type_ string `json:"type,omitempty"`
}

type DaemonState

type DaemonState string
const (
	ON  DaemonState = "on"
	OFF DaemonState = "off"
)

List of DaemonState

type DhcpConfig

type DhcpConfig struct {
	Enabled bool   `json:"enabled"`
	Setting string `json:"setting"`
}

DHCP configuration

type DnsConfig

type DnsConfig struct {
	Hostname   string   `json:"hostname,omitempty"`
	Domainname string   `json:"domainname,omitempty"`
	Server     []string `json:"server,omitempty"`
	Search     []string `json:"search,omitempty"`
}

DNS configuration

type ErrorModel

type ErrorModel struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
}

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type HostNetworksManagementApiService

type HostNetworksManagementApiService service

func (*HostNetworksManagementApiService) CreateNetwork

HostNetworksManagementApiService Creates a virtual network

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parameters Host network to be created

@return Network

func (*HostNetworksManagementApiService) DeletePortforward

func (a *HostNetworksManagementApiService) DeletePortforward(ctx context.Context, vmnet string, protocol string, port int32) (*http.Response, error)

HostNetworksManagementApiService Deletes port forwarding

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmnet NAT type of virtual network
  • @param protocol Protocol type: tcp, udp
  • @param port Host port number

func (*HostNetworksManagementApiService) GetAllNetworks

HostNetworksManagementApiService Returns all virtual networks

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return Networks

func (*HostNetworksManagementApiService) GetMACToIPs

HostNetworksManagementApiService Returns all MAC-to-IP settings for DHCP service

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmnet Virtual network that has DHCP enabled

@return MactoIps

func (*HostNetworksManagementApiService) GetPortforwards

HostNetworksManagementApiService Returns all port forwardings

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmnet NAT type of virtual network

@return Portforwards

func (*HostNetworksManagementApiService) UpdateMacToIP

func (a *HostNetworksManagementApiService) UpdateMacToIP(ctx context.Context, vmnet string, mac string, parameters MacToIpParameter) (ErrorModel, *http.Response, error)

HostNetworksManagementApiService Updates the MAC-to-IP binding

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmnet Virtual network that enabled DHCP
  • @param mac Mac address that want to be mapped with a given IP
  • @param parameters IP that will be assigned to given Mac address. If empty IP, the original Mac to IP binding will be deleted

@return ErrorModel

func (*HostNetworksManagementApiService) UpdatePortforward

func (a *HostNetworksManagementApiService) UpdatePortforward(ctx context.Context, vmnet string, protocol string, port int32, parameters PortforwardParameter) (ErrorModel, *http.Response, error)

HostNetworksManagementApiService Updates port forwarding

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmnet NAT type of virtual network
  • @param protocol Protocol type: tcp, udp
  • @param port Host port number
  • @param parameters Guest to forward to

@return ErrorModel

type InlineResponse200

type InlineResponse200 struct {
	// Guest OS IP address
	Ip string `json:"ip"`
}

type IpAddress

type IpAddress struct {
}

IP address

type IpNetAddress

type IpNetAddress struct {
}

IP address in CIDR notation, E.g., 192.168.0.1/24

type MacAddress

type MacAddress struct {
}

Mac address, E.g., de:ad:be:ef:12:34

type MacToIpParameter

type MacToIpParameter struct {
	// IP that will be assiged to given Mac
	IP string `json:"IP"`
}

type MactoIp

type MactoIp struct {
	Vmnet string `json:"vmnet"`
	Mac   string `json:"mac"`
	Ip    string `json:"ip"`
}

The MAC to IP setting

type MactoIps

type MactoIps struct {
	Num *Number `json:"num"`
	// The list of MAC to IP settings
	Mactoips []MactoIp `json:"mactoips,omitempty"`
}

The list of MAC to IP settings

type Network

type Network struct {
	// Name of virtual network
	Name   string `json:"name"`
	Type_  string `json:"type"`
	Dhcp   string `json:"dhcp"`
	Subnet string `json:"subnet"`
	Mask   string `json:"mask"`
}

The virtual network

type Networks

type Networks struct {
	Num *Number `json:"num"`
	// The list of virtual networks
	Vmnets []Network `json:"vmnets"`
}

The list of virtual networks

type NicDevice

type NicDevice struct {
	Index *NicIndex `json:"index"`
	// The network type of network adapter
	Type_ string `json:"type"`
	// The vmnet name
	Vmnet string `json:"vmnet"`
	// Mac address
	MacAddress string `json:"macAddress"`
}

type NicDeviceParameter

type NicDeviceParameter struct {
	// The network type of network adapter
	Type_ string `json:"type"`
	// The vmnet name, it should only be used while type is custom
	Vmnet string `json:"vmnet"`
}

type NicDevices

type NicDevices struct {
	Num *NicNumber `json:"num"`
	// The network adapter added to this VM
	Nics []NicDevice `json:"nics"`
}

The list of network adapters

type NicIndex

type NicIndex struct {
}

Index of Network Adapters

type NicIpStack

type NicIpStack struct {
	// Mac address of the interface
	Mac *MacAddress `json:"mac"`
	// IP address(es) of the interface (CIDR)
	Ip []IpNetAddress `json:"ip,omitempty"`
	// DNS configuration of the interface
	Dns *DnsConfig `json:"dns,omitempty"`
	// WINS configuration of the interface
	Wins *WinsConfig `json:"wins,omitempty"`
	// DHCPv4 configuration of the interface
	Dhcp4 *DhcpConfig `json:"dhcp4,omitempty"`
	// DHCPv6 configuration of the interface
	Dhcp6 *DhcpConfig `json:"dhcp6,omitempty"`
}

Information about a NIC

type NicIpStackAll

type NicIpStackAll struct {
	Nics   *NicIpStack  `json:"nics,omitempty"`
	Routes []RouteEntry `json:"routes,omitempty"`
	// Global DNS configuration
	Dns *DnsConfig `json:"dns,omitempty"`
	// Global WINS configuration
	Wins *WinsConfig `json:"wins,omitempty"`
	// Global DHCPv4 configuration
	Dhcpv4 *DhcpConfig `json:"dhcpv4,omitempty"`
	// Global DHCPv6 configuration
	Dhcpv6 *DhcpConfig `json:"dhcpv6,omitempty"`
}

Information about all NICs

type NicNumber

type NicNumber struct {
}

Number of NIC devices

type Number

type Number struct {
}

Number of items

type Port

type Port struct {
}

port of communication

type Portforward

type Portforward struct {
	Port     *Port             `json:"port"`
	Protocol string            `json:"protocol"`
	Desc     string            `json:"desc"`
	Guest    *PortforwardGuest `json:"guest"`
}

The port forwarding

type PortforwardGuest

type PortforwardGuest struct {
	Ip   string `json:"ip"`
	Port *Port  `json:"port"`
}

type PortforwardParameter

type PortforwardParameter struct {
	GuestIp   string `json:"guestIp"`
	GuestPort *Port  `json:"guestPort"`
	Desc      string `json:"desc,omitempty"`
}

type Portforwards

type Portforwards struct {
	Num *Number `json:"num"`
	// The list of port forwardings
	PortForwardings []Portforward `json:"port_forwardings"`
}

The list of port forwarding

type RouteEntry

type RouteEntry struct {
	Dest    *IpAddress `json:"dest"`
	Prefix  *Number    `json:"prefix"`
	Nexthop *IpAddress `json:"nexthop,omitempty"`
	// Id of NIC
	Interface_ *Number `json:"interface"`
	Type_      *Number `json:"type"`
	Metric     *Number `json:"metric"`
}

Routing entry

type SharedFolder

type SharedFolder struct {
	// ID of folder which be mounted to the host
	FolderId string `json:"folder_id"`
	// Path of the host shared folder
	HostPath string `json:"host_path"`
	// The flags property specifies how the folder will be accessed by the VM. There is only one flag supported which is \"4\" and means read/write access.
	Flags int32 `json:"flags"`
}

type SharedFolderParameter

type SharedFolderParameter struct {
	// Path of the host shared folder
	HostPath string `json:"host_path"`
	// The flags property specifies how the folder will be accessed by the VM. There is only one flag supported which is \"4\" and means read/write access.
	Flags int32 `json:"flags"`
}

type SharedFolders

type SharedFolders struct {
}

The shared folders mounted to this VM

type VMManagementApiService

type VMManagementApiService service

func (*VMManagementApiService) ConfigVMParams

VMManagementApiService update the vm config params

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param parameters Parameters set to the VM

@return ErrorModel

func (*VMManagementApiService) CreateVM

VMManagementApiService Creates a copy of the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param params Parameters of VM to create

@return VmInformation

func (*VMManagementApiService) DeleteVM

func (a *VMManagementApiService) DeleteVM(ctx context.Context, id string) (*http.Response, error)

VMManagementApiService Deletes a VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

func (*VMManagementApiService) GetAllVMs

func (a *VMManagementApiService) GetAllVMs(ctx context.Context) ([]Vmid, *http.Response, error)

VMManagementApiService Returns a list of VM IDs and paths for all VMs

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []Vmid

func (*VMManagementApiService) GetVM

VMManagementApiService Returns the VM setting information of a VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return VmInformation

func (*VMManagementApiService) GetVMParams

VMManagementApiService Get the VM config params

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param name Name of the param

@return ConfigVmParamsParameter

func (*VMManagementApiService) GetVMRestrictions

VMManagementApiService Returns the restrictions information of the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return VmRestrictionsInformation

func (*VMManagementApiService) RegisterVM

VMManagementApiService Register VM to VM Library

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param parameters Parameters of the VM to register

@return VmRrgistrationInformation

func (*VMManagementApiService) UpdateVM

VMManagementApiService Updates the VM settings

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param parameters VM definition

@return VmInformation

type VMNetworkAdaptersManagementApiService

type VMNetworkAdaptersManagementApiService service

func (*VMNetworkAdaptersManagementApiService) CreateNICDevice

VMNetworkAdaptersManagementApiService Creates a network adapter in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param parameters Parameters of network adapter to create

@return NicDevice

func (*VMNetworkAdaptersManagementApiService) DeleteNICDevice

func (a *VMNetworkAdaptersManagementApiService) DeleteNICDevice(ctx context.Context, id string, index string) (*http.Response, error)

VMNetworkAdaptersManagementApiService Deletes a VM network adapter

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param index Index of VM network adapter

func (*VMNetworkAdaptersManagementApiService) GetAllNICDevices

VMNetworkAdaptersManagementApiService Returns all network adapters in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return NicDevices

func (*VMNetworkAdaptersManagementApiService) GetIPAddress

VMNetworkAdaptersManagementApiService Returns the IP address of a VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return InlineResponse200

func (*VMNetworkAdaptersManagementApiService) GetNicInfo

VMNetworkAdaptersManagementApiService Returns the IP stack configuration of all NICs of a VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return NicIpStackAll

func (*VMNetworkAdaptersManagementApiService) UpdateNICDevice

VMNetworkAdaptersManagementApiService Updates a network adapter in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param index Index of VM network adapter
  • @param parameters Parameters of network adapter to update to

@return NicDevice

type VMPowerManagementApiService

type VMPowerManagementApiService service

func (*VMPowerManagementApiService) ChangePowerState

func (a *VMPowerManagementApiService) ChangePowerState(ctx context.Context, id string, operation VmPowerOperation) (VmPowerState, *http.Response, error)

VMPowerManagementApiService Changes the VM power state

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param operation VM power operation: on, off, shutdown, suspend, pause, unpause

@return VmPowerState

func (*VMPowerManagementApiService) GetPowerState

VMPowerManagementApiService Returns the power state of the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return VmPowerState

type VMSharedFoldersManagementApiService

type VMSharedFoldersManagementApiService service

func (*VMSharedFoldersManagementApiService) CreateSharedFolder

func (a *VMSharedFoldersManagementApiService) CreateSharedFolder(ctx context.Context, id string, parameters SharedFolder) (SharedFolders, *http.Response, error)

VMSharedFoldersManagementApiService Mounts a new shared folder in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param parameters Parameters of the shared folder to mount

@return SharedFolders

func (*VMSharedFoldersManagementApiService) DeleteSharedFolder

func (a *VMSharedFoldersManagementApiService) DeleteSharedFolder(ctx context.Context, id string, folderId string) (*http.Response, error)

VMSharedFoldersManagementApiService Deletes a shared folder

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param folderId ID of shared folder

func (*VMSharedFoldersManagementApiService) GetAllSharedFolders

VMSharedFoldersManagementApiService Returns all shared folders mounted in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM

@return SharedFolders

func (*VMSharedFoldersManagementApiService) UpdataSharedFolder

func (a *VMSharedFoldersManagementApiService) UpdataSharedFolder(ctx context.Context, id string, folderId string, parameters SharedFolderParameter) (SharedFolders, *http.Response, error)

VMSharedFoldersManagementApiService Updates a shared folder mounted in the VM

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id ID of VM
  • @param folderId ID of VM shared folder
  • @param parameters Parameters of the shared folder to update to

@return SharedFolders

type VmApplianceView

type VmApplianceView struct {
	Author        string `json:"author,omitempty"`
	Version       string `json:"version,omitempty"`
	Port          *Port  `json:"port,omitempty"`
	ShowAtPowerOn string `json:"showAtPowerOn,omitempty"`
}

type VmCloneParameter

type VmCloneParameter struct {
	// New VM name
	Name string `json:"name"`
	// Existing VM ID to clone.
	ParentId string `json:"parentId"`
}

type VmConnectedDevice

type VmConnectedDevice struct {
	Index            *Number `json:"index,omitempty"`
	StartConnected   string  `json:"startConnected,omitempty"`
	ConnectionStatus *Number `json:"connectionStatus,omitempty"`
	DevicePath       string  `json:"devicePath,omitempty"`
}

type VmConnectedDeviceList

type VmConnectedDeviceList struct {
	Num     *Number             `json:"num,omitempty"`
	Devices []VmConnectedDevice `json:"devices,omitempty"`
}

type VmGuestIsolation

type VmGuestIsolation struct {
	CopyDisabled  string `json:"copyDisabled,omitempty"`
	DndDisabled   string `json:"dndDisabled,omitempty"`
	HgfsDisabled  string `json:"hgfsDisabled,omitempty"`
	PasteDisabled string `json:"pasteDisabled,omitempty"`
}

type VmInformation

type VmInformation struct {
	Id     string    `json:"id"`
	Cpu    *Vmcpu    `json:"cpu,omitempty"`
	Memory *VmMemory `json:"memory,omitempty"`
}

type VmMemory

type VmMemory struct {
}

Memory size in mega bytes

type VmParameter

type VmParameter struct {
	Processors *VmProcessors `json:"processors,omitempty"`
	Memory     *VmMemory     `json:"memory,omitempty"`
}

type VmPowerOperation

type VmPowerOperation string
const (
	ON       VmPowerOperation = "on"
	OFF      VmPowerOperation = "off"
	SHUTDOWN VmPowerOperation = "shutdown"
	SUSPEND  VmPowerOperation = "suspend"
	PAUSE    VmPowerOperation = "pause"
	UNPAUSE  VmPowerOperation = "unpause"
)

List of VMPowerOperation

type VmPowerState

type VmPowerState struct {
	PowerState string `json:"power_state"`
}

type VmProcessors

type VmProcessors struct {
}

Number of processor cores

type VmRegisterParameter

type VmRegisterParameter struct {
	// Register VM name
	Name string `json:"name,omitempty"`
	// Register VM path
	Path string `json:"path,omitempty"`
}

type VmRemoteVnc

type VmRemoteVnc struct {
	VNCEnabled string `json:"VNCEnabled,omitempty"`
	VNCPort    *Port  `json:"VNCPort,omitempty"`
}

type VmRestrictionsInformation

type VmRestrictionsInformation struct {
	Id string `json:"id"`
	// The organization manages the VM
	ManagedOrg          string                 `json:"managedOrg,omitempty"`
	Integrityconstraint string                 `json:"integrityconstraint,omitempty"`
	Cpu                 *Vmcpu                 `json:"cpu,omitempty"`
	Memory              *VmMemory              `json:"memory,omitempty"`
	ApplianceView       *VmApplianceView       `json:"applianceView,omitempty"`
	CddvdList           *VmConnectedDeviceList `json:"cddvdList,omitempty"`
	FloopyList          *VmConnectedDeviceList `json:"floopyList,omitempty"`
	FirewareType        *Number                `json:"firewareType,omitempty"`
	GuestIsolation      *VmGuestIsolation      `json:"guestIsolation,omitempty"`
	Niclist             *NicDevices            `json:"niclist,omitempty"`
	ParallelPortList    *VmConnectedDeviceList `json:"parallelPortList,omitempty"`
	SerialPortList      *VmConnectedDeviceList `json:"serialPortList,omitempty"`
	UsbList             *VmUsbList             `json:"usbList,omitempty"`
	RemoteVNC           *VmRemoteVnc           `json:"remoteVNC,omitempty"`
}

type VmRrgistrationInformation

type VmRrgistrationInformation struct {
	// Registered VM name id
	Id string `json:"id,omitempty"`
	// Registered VM path
	Path string `json:"path,omitempty"`
}

type VmUsbDevice

type VmUsbDevice struct {
	Index       *Number `json:"index,omitempty"`
	Connected   string  `json:"connected,omitempty"`
	BackingInfo string  `json:"backingInfo,omitempty"`
	BackingType *Number `json:"BackingType,omitempty"`
}

type VmUsbList

type VmUsbList struct {
	Num        *Number       `json:"num,omitempty"`
	UsbDevices []VmUsbDevice `json:"usbDevices,omitempty"`
}

type Vmcpu

type Vmcpu struct {
	Processors *VmProcessors `json:"processors,omitempty"`
}

The CPU information of VM

type Vmid

type Vmid struct {
	// ID of the VM
	Id string `json:"id"`
	// Path of the VM
	Path string `json:"path"`
}

type WinsConfig

type WinsConfig struct {
	Primary   string `json:"primary"`
	Secondary string `json:"secondary"`
}

WINS configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL