Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type BasicAuth
- type ConfigVmParamsParameter
- type Configuration
- type CreateVmnetParameter
- type DaemonState
- type DhcpConfig
- type DnsConfig
- type ErrorModel
- type GenericSwaggerError
- type HostNetworksManagementApiService
- func (a *HostNetworksManagementApiService) CreateNetwork(ctx context.Context, parameters CreateVmnetParameter) (Network, *http.Response, error)
- func (a *HostNetworksManagementApiService) DeletePortforward(ctx context.Context, vmnet string, protocol string, port int32) (*http.Response, error)
- func (a *HostNetworksManagementApiService) GetAllNetworks(ctx context.Context) (Networks, *http.Response, error)
- func (a *HostNetworksManagementApiService) GetMACToIPs(ctx context.Context, vmnet string) (MactoIps, *http.Response, error)
- func (a *HostNetworksManagementApiService) GetPortforwards(ctx context.Context, vmnet string) (Portforwards, *http.Response, error)
- func (a *HostNetworksManagementApiService) UpdateMacToIP(ctx context.Context, vmnet string, mac string, parameters MacToIpParameter) (ErrorModel, *http.Response, error)
- func (a *HostNetworksManagementApiService) UpdatePortforward(ctx context.Context, vmnet string, protocol string, port int32, ...) (ErrorModel, *http.Response, error)
- type InlineResponse200
- type IpAddress
- type IpNetAddress
- type MacAddress
- type MacToIpParameter
- type MactoIp
- type MactoIps
- type Network
- type Networks
- type NicDevice
- type NicDeviceParameter
- type NicDevices
- type NicIndex
- type NicIpStack
- type NicIpStackAll
- type NicNumber
- type Number
- type Port
- type Portforward
- type PortforwardGuest
- type PortforwardParameter
- type Portforwards
- type RouteEntry
- type SharedFolder
- type SharedFolderParameter
- type SharedFolders
- type VMManagementApiService
- func (a *VMManagementApiService) ConfigVMParams(ctx context.Context, id string, parameters ConfigVmParamsParameter) (ErrorModel, *http.Response, error)
- func (a *VMManagementApiService) CreateVM(ctx context.Context, params VmCloneParameter) (VmInformation, *http.Response, error)
- func (a *VMManagementApiService) DeleteVM(ctx context.Context, id string) (*http.Response, error)
- func (a *VMManagementApiService) GetAllVMs(ctx context.Context) ([]Vmid, *http.Response, error)
- func (a *VMManagementApiService) GetVM(ctx context.Context, id string) (VmInformation, *http.Response, error)
- func (a *VMManagementApiService) GetVMParams(ctx context.Context, id string, name string) (ConfigVmParamsParameter, *http.Response, error)
- func (a *VMManagementApiService) GetVMRestrictions(ctx context.Context, id string) (VmRestrictionsInformation, *http.Response, error)
- func (a *VMManagementApiService) RegisterVM(ctx context.Context, parameters VmRegisterParameter) (VmRrgistrationInformation, *http.Response, error)
- func (a *VMManagementApiService) UpdateVM(ctx context.Context, id string, parameters VmParameter) (VmInformation, *http.Response, error)
- type VMNetworkAdaptersManagementApiService
- func (a *VMNetworkAdaptersManagementApiService) CreateNICDevice(ctx context.Context, id string, parameters NicDeviceParameter) (NicDevice, *http.Response, error)
- func (a *VMNetworkAdaptersManagementApiService) DeleteNICDevice(ctx context.Context, id string, index string) (*http.Response, error)
- func (a *VMNetworkAdaptersManagementApiService) GetAllNICDevices(ctx context.Context, id string) (NicDevices, *http.Response, error)
- func (a *VMNetworkAdaptersManagementApiService) GetIPAddress(ctx context.Context, id string) (InlineResponse200, *http.Response, error)
- func (a *VMNetworkAdaptersManagementApiService) GetNicInfo(ctx context.Context, id string) (NicIpStackAll, *http.Response, error)
- func (a *VMNetworkAdaptersManagementApiService) UpdateNICDevice(ctx context.Context, id string, index string, parameters NicDeviceParameter) (NicDevice, *http.Response, error)
- type VMPowerManagementApiService
- type VMSharedFoldersManagementApiService
- func (a *VMSharedFoldersManagementApiService) CreateSharedFolder(ctx context.Context, id string, parameters SharedFolder) (SharedFolders, *http.Response, error)
- func (a *VMSharedFoldersManagementApiService) DeleteSharedFolder(ctx context.Context, id string, folderId string) (*http.Response, error)
- func (a *VMSharedFoldersManagementApiService) GetAllSharedFolders(ctx context.Context, id string) (SharedFolders, *http.Response, error)
- func (a *VMSharedFoldersManagementApiService) UpdataSharedFolder(ctx context.Context, id string, folderId string, ...) (SharedFolders, *http.Response, error)
- type VmApplianceView
- type VmCloneParameter
- type VmConnectedDevice
- type VmConnectedDeviceList
- type VmGuestIsolation
- type VmInformation
- type VmMemory
- type VmParameter
- type VmPowerOperation
- type VmPowerState
- type VmProcessors
- type VmRegisterParameter
- type VmRemoteVnc
- type VmRestrictionsInformation
- type VmRrgistrationInformation
- type VmUsbDevice
- type VmUsbList
- type Vmcpu
- type Vmid
- type WinsConfig
Constants ¶
This section is empty.
Variables ¶
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 ¶
Types ¶
type APIClient ¶
type APIClient struct {
HostNetworksManagementApi *HostNetworksManagementApiService
VMManagementApi *VMManagementApiService
VMNetworkAdaptersManagementApi *VMNetworkAdaptersManagementApiService
VMPowerManagementApi *VMPowerManagementApiService
// 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 ¶
Change base path to allow switching to mocks
type APIKey ¶
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 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 DaemonState ¶
type DaemonState string
const ( ON DaemonState = "on" OFF DaemonState = "off" )
List of DaemonState
type DhcpConfig ¶
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 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 ¶
func (a *HostNetworksManagementApiService) CreateNetwork(ctx context.Context, parameters CreateVmnetParameter) (Network, *http.Response, error)
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 ¶
func (a *HostNetworksManagementApiService) GetAllNetworks(ctx context.Context) (Networks, *http.Response, error)
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 ¶
func (a *HostNetworksManagementApiService) GetMACToIPs(ctx context.Context, vmnet string) (MactoIps, *http.Response, error)
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 ¶
func (a *HostNetworksManagementApiService) GetPortforwards(ctx context.Context, vmnet string) (Portforwards, *http.Response, error)
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 MacToIpParameter ¶
type MacToIpParameter struct {
// IP that will be assiged to given Mac
IP string `json:"IP"`
}
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 NicDeviceParameter ¶
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 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 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 PortforwardParameter ¶
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 SharedFolderParameter ¶
type VMManagementApiService ¶
type VMManagementApiService service
func (*VMManagementApiService) ConfigVMParams ¶
func (a *VMManagementApiService) ConfigVMParams(ctx context.Context, id string, parameters ConfigVmParamsParameter) (ErrorModel, *http.Response, error)
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 ¶
func (a *VMManagementApiService) CreateVM(ctx context.Context, params VmCloneParameter) (VmInformation, *http.Response, error)
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 ¶
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 ¶
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 ¶
func (a *VMManagementApiService) GetVM(ctx context.Context, id string) (VmInformation, *http.Response, error)
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 ¶
func (a *VMManagementApiService) GetVMParams(ctx context.Context, id string, name string) (ConfigVmParamsParameter, *http.Response, error)
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 ¶
func (a *VMManagementApiService) GetVMRestrictions(ctx context.Context, id string) (VmRestrictionsInformation, *http.Response, error)
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 ¶
func (a *VMManagementApiService) RegisterVM(ctx context.Context, parameters VmRegisterParameter) (VmRrgistrationInformation, *http.Response, error)
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 ¶
func (a *VMManagementApiService) UpdateVM(ctx context.Context, id string, parameters VmParameter) (VmInformation, *http.Response, error)
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 ¶
func (a *VMNetworkAdaptersManagementApiService) CreateNICDevice(ctx context.Context, id string, parameters NicDeviceParameter) (NicDevice, *http.Response, error)
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 ¶
func (a *VMNetworkAdaptersManagementApiService) GetAllNICDevices(ctx context.Context, id string) (NicDevices, *http.Response, error)
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 ¶
func (a *VMNetworkAdaptersManagementApiService) GetIPAddress(ctx context.Context, id string) (InlineResponse200, *http.Response, error)
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 ¶
func (a *VMNetworkAdaptersManagementApiService) GetNicInfo(ctx context.Context, id string) (NicIpStackAll, *http.Response, error)
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 ¶
func (a *VMNetworkAdaptersManagementApiService) UpdateNICDevice(ctx context.Context, id string, index string, parameters NicDeviceParameter) (NicDevice, *http.Response, error)
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 ¶
func (a *VMPowerManagementApiService) GetPowerState(ctx context.Context, id string) (VmPowerState, *http.Response, error)
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 ¶
func (a *VMSharedFoldersManagementApiService) GetAllSharedFolders(ctx context.Context, id string) (SharedFolders, *http.Response, error)
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 VmCloneParameter ¶
type VmConnectedDevice ¶
type VmConnectedDeviceList ¶
type VmConnectedDeviceList struct {
Num *Number `json:"num,omitempty"`
Devices []VmConnectedDevice `json:"devices,omitempty"`
}
type VmGuestIsolation ¶
type VmInformation ¶
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 VmRegisterParameter ¶
type VmRemoteVnc ¶
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 VmUsbDevice ¶
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 WinsConfig ¶
WINS configuration
Source Files
¶
- api_host_networks_management.go
- api_vm_management.go
- api_vm_network_adapters_management.go
- api_vm_power_management.go
- api_vm_shared_folders_management.go
- client.go
- configuration.go
- model_config_vm_params_parameter.go
- model_create_vmnet_parameter.go
- model_daemon_state.go
- model_dhcp_config.go
- model_dns_config.go
- model_error_model.go
- model_inline_response_200.go
- model_ip_address.go
- model_ip_net_address.go
- model_mac_address.go
- model_mac_to_ip_parameter.go
- model_macto_ip.go
- model_macto_ips.go
- model_network.go
- model_networks.go
- model_nic_device.go
- model_nic_device_parameter.go
- model_nic_devices.go
- model_nic_index.go
- model_nic_ip_stack.go
- model_nic_ip_stack_all.go
- model_nic_number.go
- model_number.go
- model_port.go
- model_portforward.go
- model_portforward_guest.go
- model_portforward_parameter.go
- model_portforwards.go
- model_route_entry.go
- model_shared_folder.go
- model_shared_folder_parameter.go
- model_shared_folders.go
- model_vm_appliance_view.go
- model_vm_clone_parameter.go
- model_vm_connected_device.go
- model_vm_connected_device_list.go
- model_vm_guest_isolation.go
- model_vm_information.go
- model_vm_memory.go
- model_vm_parameter.go
- model_vm_power_operation.go
- model_vm_power_state.go
- model_vm_processors.go
- model_vm_register_parameter.go
- model_vm_remote_vnc.go
- model_vm_restrictions_information.go
- model_vm_rrgistration_information.go
- model_vm_usb_device.go
- model_vm_usb_list.go
- model_vmcpu.go
- model_vmid.go
- model_wins_config.go
- response.go