types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

View Source
const (
	VirtualMachinePowerStatePoweredOff = VirtualMachinePowerState("poweredOff")
	VirtualMachinePowerStatePoweredOn  = VirtualMachinePowerState("poweredOn")
	VirtualMachinePowerStateSuspended  = VirtualMachinePowerState("suspended")
)
View Source
const (
	// ics api version
	// before an error is returned.
	ApiVersion string = "5.6.3"
)

Variables

This section is empty.

Functions

func Add

func Add(name string, kind reflect.Type)

Types

type AnyType

type AnyType interface{}

type BaseOptionType

type BaseOptionType interface {
	GetOptionType() *OptionType
}

type BaseOptionValue

type BaseOptionValue interface {
	GetOptionValue() *OptionValue
}

type Cdrom

type Cdrom struct {
	Path           string      `json:"path"`
	Type           string      `json:"type"`
	Connected      bool        `json:"connected"`
	StartConnected bool        `json:"startConnected"`
	CifsDto        interface{} `json:"cifsDto"`
	DataStore      interface{} `json:"dataStore"`
}

type Cluster

type Cluster struct {
	Name         string `json:"name"`    //"cluster"
	Id           string `json:"id"`      //"8a878bda6f7012c7016f87e979120798"
	HostNum      int    `json:"hostNum"` //1
	FreeCpu      string `json:"freeCpu"`
	UsedCpu      string `json:"usedCpu"`
	TotalCpu     string `json:"totalCpu"`
	FreeMemory   string `json:"freeMemory"`
	UsedMemory   string `json:"usedMemory"`
	TotalMemory  string `json:"totalMemory"`
	FreeStorage  string `json:"freeStorage,omitempty"`
	UsedStorage  string `json:"usedStorage,omitempty"`
	TotalStorage string `json:"totalStorage,omitempty"`
	CpuNum       int    `json:"cpuNum"`
	VcpuUsed     int    `json:"vcpuUsed"`
	Drs          struct {
		ID                string `json:"id,omitempty"`
		ClusterID         string `json:"clusterID,omitempty"`
		DrsEnabled        bool   `json:"drsEnabled"`
		CpuThreshold      int    `json:"cpuThreshold"`
		MemoryThreshold   int    `json:"memoryThreshold"`
		VmMigrationCount  int    `json:"vmMigrationCount"`
		RelMigrateEnabled bool   `json:"relMigrateEnabled"`
		DpmEnabled        bool   `json:"dpmEnabled"`
		CpuLowThreshold   int    `json:"cpuLowThreshold"`
		MemLowThreshold   int    `json:"memLowThreshold"`
		MinReserveHost    int    `json:"minReserveHost"`
	} `json:"drs"`
	HA struct {
		ID                    string        `json:"id,omitempty"`
		ClusterID             string        `json:"clusterID,omitempty"`
		HAEnabled             bool          `json:"haEnabled"`
		HAMaxLimit            int           `json:"haMaxLimit"`
		AccessControlEnabled  bool          `json:"accessControlEnabled"`
		AccessControlStrategy string        `json:"accessControlStrategy,omitempty"`
		FailoverHosts         []interface{} `json:"failoverHosts"`
		FailoverHostIds       interface{}   `json:"failoverHostIds"`
		HAPriority            string        `json:"haPriority,omitempty"`
	} `json:"ha"`
	DataCenterDto Datacenter  `json:"dataCenterDto"`
	HostIds       interface{} `json:"hostIds"`
	Tags          []Tag       `json:"tags"`
}

type ClusterListRsp

type ClusterListRsp struct {
	Items []Cluster `json:"items"`
}

type Common

type Common struct{}

type Datacenter

type Datacenter struct {
	ID                 string        `json:"id"`
	Name               string        `json:"name"`
	NfsPath            string        `json:"nfsPath"`
	Type               string        `json:"type"`
	Description        string        `json:"description"`
	HostNum            int           `json:"hostNum"`
	VMNum              int           `json:"vmNum"`
	ClusterNum         int           `json:"clusterNum"`
	StorageNum         int           `json:"storageNum"`
	NetNum             int           `json:"netNum"`
	NeutronNetNum      int           `json:"neutronNetNum"`
	CPUCapacity        string        `json:"cpuCapacity"`
	CPUAvailable       string        `json:"cpuAvailable"`
	CPUUsed            string        `json:"cpuUsed"`
	CPUUtilization     string        `json:"cpuUtilization"`
	MemoryCapacity     string        `json:"memoryCapacity"`
	MemoryAvailable    string        `json:"memoryAvailable"`
	MemoryUsed         string        `json:"memoryUsed"`
	MemoryUtilization  string        `json:"memoryUtilization"`
	StorageCapacity    string        `json:"storageCapacity"`
	StorageAvailable   string        `json:"storageAvailable"`
	StorageUsed        string        `json:"storageUsed"`
	StorageUtilization string        `json:"storageUtilization"`
	DatastoreNum       int           `json:"datastoreNum"`
	NetworkType        interface{}   `json:"networkType"`
	VswitchDtos        interface{}   `json:"vswitchDtos"`
	SdnNetworkDtos     []interface{} `json:"sdnNetworkDtos"`
	SdnInit            bool          `json:"sdnInit"`
}

type DatacenterPageResponse

type DatacenterPageResponse struct {
	PageResponse
	Items []Datacenter `json:"items"`
}

type Disk

type Disk struct {
	ID              string  `json:"id"`
	Label           string  `json:"label"`
	ScsiID          string  `json:"scsiId"`
	Enabled         bool    `json:"enabled"`
	WriteBps        int     `json:"writeBps"`
	ReadBps         int     `json:"readBps"`
	TotalBps        int     `json:"totalBps"`
	TotalIops       int     `json:"totalIops"`
	WriteIops       int     `json:"writeIops"`
	ReadIops        int     `json:"readIops"`
	Volume          Volume  `json:"volume"`
	BusModel        string  `json:"busModel"`
	Usage           float64 `json:"usage"`
	MonReadIops     float64 `json:"monReadIops"`
	MonWriteIops    float64 `json:"monWriteIops"`
	ReadThroughput  float64 `json:"readThroughput"`
	WriteThroughput float64 `json:"writeThroughput"`
	ReadWriteModel  string  `json:"readWriteModel"`
	EnableNativeIO  bool    `json:"enableNativeIO"`
	EnableKernelIO  bool    `json:"enableKernelIO"`
	L2CacheSize     int     `json:"l2CacheSize"`
	QueueNum        int     `json:"queueNum"`
}

type DynamicData

type DynamicData struct {
}

type ErrorMsg

type ErrorMsg struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Params  string `json:"params"`
}

type Floppy

type Floppy struct {
	Path      string      `json:"path"`
	DataStore interface{} `json:"dataStore"`
	VfdType   string      `json:"vfdType"`
}

type Func

type Func func(string) (reflect.Type, bool)

func TypeFunc

func TypeFunc() Func

type GuestOSAuthInfo

type GuestOSAuthInfo struct {
	UserName string `json:"userName"`
	UserPwd  string `json:"userPwd"`
}

type GuestOsInfo

type GuestOsInfo struct {
	Model               string `json:"model"`
	SocketLimit         int    `json:"socketLimit"`
	SupportCPUHotPlug   bool   `json:"supportCpuHotPlug"`
	SupportMemHotPlug   bool   `json:"supportMemHotPlug"`
	SupportDiskHotPlug  bool   `json:"supportDiskHotPlug"`
	SupportUefiBootMode bool   `json:"supportUefiBootMode"`
}

type Host

type Host struct {
	ID                  string        `json:"id"`
	IP                  string        `json:"ip"`
	SwitchUplinkPortDto interface{}   `json:"switchUplinkPortDto"`
	UplinkTopoDto       interface{}   `json:"uplinkTopoDto"`
	Pnics               interface{}   `json:"pnics"`
	Disks               interface{}   `json:"disks"`
	Name                string        `json:"name"`
	HostName            string        `json:"hostName"`
	NodeVersion         string        `json:"nodeVersion"`
	Password            string        `json:"password"`
	DataCenterID        string        `json:"dataCenterId"`
	DataCenterName      string        `json:"dataCenterName"`
	ClusterName         string        `json:"clusterName"`
	ClusterID           string        `json:"clusterId"`
	Status              string        `json:"status"`
	CPUSocket           int           `json:"cpuSocket"`
	CPUCorePerSocket    int           `json:"cpuCorePerSocket"`
	CPUThreadPerCore    int           `json:"cpuThreadPerCore"`
	LogicCPUNum         int           `json:"logicCpuNum"`
	LogicalProcessor    int           `json:"logicalProcessor"`
	CPUFrequency        float64       `json:"cpuFrequency"`
	CPUUsage            float64       `json:"cpuUsage"`
	CPUTotalHz          float64       `json:"cpuTotalHz"`
	FreeCPU             float64       `json:"freeCpu"`
	UsedCPU             float64       `json:"usedCpu"`
	TotalMem            float64       `json:"totalMem"`
	LogicTotalMem       float64       `json:"logicTotalMem"`
	MemoryUsage         float64       `json:"memoryUsage"`
	FreeMemory          float64       `json:"freeMemory"`
	UsedMemory          float64       `json:"usedMemory"`
	LogicUsedMemory     float64       `json:"logicUsedMemory"`
	LogicFreeMemory     float64       `json:"logicFreeMemory"`
	PnicNum             int           `json:"pnicNum"`
	NormalRunTime       float64       `json:"normalRunTime"`
	Model               string        `json:"model"`
	CPUType             string        `json:"cpuType"`
	VtDegree            float64       `json:"vtDegree"`
	Powerstate          interface{}   `json:"powerstate"`
	HostBmcDto          interface{}   `json:"hostBmcDto"`
	Tags                []interface{} `json:"tags"`
	MountPath           interface{}   `json:"mountPath"`
	MonMountState       interface{}   `json:"monMountState"`
	CPUModel            interface{}   `json:"cpuModel"`
	NetworkDtos         interface{}   `json:"networkDtos"`
	PortIP              interface{}   `json:"portIp"`
	Monstatus           bool          `json:"monstatus"`
	HostIqn             interface{}   `json:"hostIqn"`
	VxlanPortDto        interface{}   `json:"vxlanPortDto"`
	SdnUpLinks          interface{}   `json:"sdnUpLinks"`
	AllPNicsCount       int           `json:"allPNicsCount"`
	AvailablePNicsCount int           `json:"availablePNicsCount"`
	CfsDomainStatus     interface{}   `json:"cfsDomainStatus"`
	SerialNumber        interface{}   `json:"serialNumber"`
	Manufacturer        interface{}   `json:"manufacturer"`
	IndicatorStatus     interface{}   `json:"indicatorStatus"`
	EntryTemperature    interface{}   `json:"entryTemperature"`
	MulticastEnabled    bool          `json:"multicastEnabled"`
	Pcies               interface{}   `json:"pcies"`
	VgpuEnable          bool          `json:"vgpuEnable"`
	SpecialFailover     bool          `json:"specialFailover"`
	VswitchDtos         interface{}   `json:"vswitchDtos"`
	HotfixVersion       string        `json:"hotfixVersion"`
}

type HostHealthInfo added in v1.0.0

type HostHealthInfo struct {
	ID           string  `json:"id"`
	IP           string  `json:"ip"`
	Score        float64 `json:"score"`
	CpuScore     float64 `json:"cpuScore"`
	CpuPerf      float64 `json:"cpuPerf"`
	CpuUsed      float64 `json:"cpuUsed"`
	CpuTotal     float64 `json:"cpuTotal"`
	MemScore     float64 `json:"memScore"`
	MemPerf      float64 `json:"memPerf"`
	MemUsed      float64 `json:"memUsed"`
	MemTotal     float64 `json:"memTotal"`
	StorageScore float64 `json:"storageScore"`
	StoragePerf  float64 `json:"storagePerf"`
	StorageUsed  float64 `json:"storageUsed"`
	StorageTotal float64 `json:"storageTotal"`
	NetworkScore float64 `json:"networkScore"`
	NetworkPerf  float64 `json:"networkPerf"`
	NetworkUsed  float64 `json:"networkUsed"`
	NetworkTotal float64 `json:"networkTotal"`
}

type HostPageResponse

type HostPageResponse struct {
	TotalPage   int    `json:"totalPage"`
	CurrentPage int    `json:"currentPage"`
	TotalSize   int    `json:"totalSize"`
	Items       []Host `json:"items"`
}

type ICSApi

type ICSApi struct {
	Api   string `json:"api"`
	Token bool   `json:"token"`
}

type Login

type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Domain   string `json:"domain"`
	Locale   string `json:"locale"`
}

ICS LOGIN FORM

type LoginResponse

type LoginResponse struct {
	UserId     string `json:"userId"`
	SessonId   string `json:"sessonId"`
	Validated  bool   `json:"validated"`
	Message    string `json:"message"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Captcha    string `json:"captcha"`
	Locale     string `json:"locale"`
	Domain     string `json:"domain"`
	Remains    int    `json:"remains"`
	IP         string `json:"ip"`
	Operator   string `json:"operator"`
	LoginTime  string `json:"loginTime"`
	CreateDate string `json:"createDate"`
	RoleType   string `json:"roleType"`
	Themes     string `json:"themes"`
}

ICS LOGIN RESPONSE BODY

type ManagedObjectReference

type ManagedObjectReference struct {
	Type  string
	Value string
}

type Network

type Network struct {
	ID              string        `json:"id"`
	Name            string        `json:"name"`
	ResourceID      string        `json:"resourceId"`
	Vlan            int           `json:"vlan"`
	VlanFlag        bool          `json:"vlanFlag"`
	Mtu             interface{}   `json:"mtu"`
	Type            string        `json:"type"`
	VswitchDto      Switch        `json:"vswitchDto"`
	PortDtos        []interface{} `json:"portDtos"`
	VMDtos          interface{}   `json:"vmDtos"`
	VnicDtos        interface{}   `json:"vnicDtos"`
	Vmcount         int           `json:"vmcount"`
	Vniccount       int           `json:"vniccount"`
	ConnectMode     string        `json:"connectMode"`
	Description     interface{}   `json:"description"`
	UplinkRate      int           `json:"uplinkRate"`
	UplinkBurst     int           `json:"uplinkBurst"`
	DownlinkRate    int           `json:"downlinkRate"`
	DownlinkBurst   int           `json:"downlinkBurst"`
	QosEnabled      bool          `json:"qosEnabled"`
	DataServiceType interface{}   `json:"dataServiceType"`
	UserVlan        interface{}   `json:"userVlan"`
	TpidType        interface{}   `json:"tpidType"`
	PermitDel       bool          `json:"permitDel"`
	Cidr            interface{}   `json:"cidr"`
	Gateway         interface{}   `json:"gateway"`
	DhcpEnabled     bool          `json:"dhcpEnabled"`
}

type NetworkPageResponse

type NetworkPageResponse struct {
	TotalPage   int       `json:"totalPage"`
	CurrentPage int       `json:"currentPage"`
	TotalSize   int       `json:"totalSize"`
	Items       []Network `json:"items"`
}

type Nic

type Nic struct {
	ID              string      `json:"id"`
	AutoGenerated   bool        `json:"autoGenerated"`
	Name            string      `json:"name"`
	NolocalName     string      `json:"nolocalName"`
	InnerName       string      `json:"innerName,omitempty"`
	DevName         string      `json:"devName"`
	IP              string      `json:"ip,omitempty"`
	Netmask         string      `json:"netmask,omitempty"`
	Gateway         string      `json:"gateway,omitempty"`
	Mac             string      `json:"mac"`
	Model           string      `json:"model"`
	DeviceID        string      `json:"deviceId"`
	DeviceName      string      `json:"deviceName"`
	DeviceType      string      `json:"deviceType"`
	SwitchType      string      `json:"switchType"`
	VswitchID       string      `json:"vswitchId"`
	UplinkRate      int         `json:"uplinkRate"`
	UplinkBurst     int         `json:"uplinkBurst"`
	DownlinkRate    int         `json:"downlinkRate"`
	DownlinkBurst   int         `json:"downlinkBurst"`
	DownlinkQueue   string      `json:"downlinkQueue,omitempty"`
	Enable          bool        `json:"enable"`
	Status          string      `json:"status"`
	InboundRate     float64     `json:"inboundRate"`
	OutboundRate    float64     `json:"outboundRate"`
	ConnectStatus   bool        `json:"connectStatus"`
	VMName          string      `json:"vmName,omitempty"`
	VMID            string      `json:"vmId,omitempty"`
	VMStatus        string      `json:"vmStatus,omitempty"`
	VMTemplate      bool        `json:"vmTemplate"`
	NetworkName     string      `json:"networkName"`
	NetworkVlan     string      `json:"networkVlan,omitempty"`
	VlanRange       interface{} `json:"vlanRange"`
	NetworkID       string      `json:"networkId"`
	NetworkType     interface{} `json:"networkType"`
	HostIP          string      `json:"hostIp,omitempty"`
	HostStatus      string      `json:"hostStatus,omitempty"`
	HostID          string      `json:"hostId,omitempty"`
	DirectObjName   string      `json:"directObjName,omitempty"`
	TotalOctets     float64     `json:"totalOctets"`
	TotalDropped    float64     `json:"totalDropped"`
	TotalPackets    float64     `json:"totalPackets"`
	TotalBytes      float64     `json:"totalBytes"`
	TotalErrors     float64     `json:"totalErrors"`
	WriteOctets     float64     `json:"writeOctets"`
	WriteDropped    float64     `json:"writeDropped"`
	WritePackets    float64     `json:"writePackets"`
	WriteBytes      float64     `json:"writeBytes"`
	WriteErrors     float64     `json:"writeErrors"`
	ReadOctets      float64     `json:"readOctets"`
	ReadDropped     float64     `json:"readDropped"`
	ReadPackets     float64     `json:"readPackets"`
	ReadBytes       float64     `json:"readBytes"`
	ReadErrors      float64     `json:"readErrors"`
	SecurityGroups  interface{} `json:"securityGroups"`
	AdvancedNetIP   interface{} `json:"advancedNetIp"`
	PortID          interface{} `json:"portId"`
	SdnVFID         interface{} `json:"sdnVFId"`
	OpenstackID     interface{} `json:"openstackId"`
	BindIPEnable    bool        `json:"bindIpEnable"`
	BindIP          interface{} `json:"bindIp"`
	PriorityEnabled bool        `json:"priorityEnabled"`
	NetPriority     interface{} `json:"netPriority"`
	VMType          string      `json:"vmType"`
	SystemVMType    interface{} `json:"systemVmType"`
	Dhcp            bool        `json:"dhcp"`
	DhcpIP          interface{} `json:"dhcpIp"`
	UsedDpdk        bool        `json:"usedDpdk"`
	Queues          int         `json:"queues"`
}

type OptionType

type OptionType struct {
	DynamicData

	ValueIsReadonly *bool `json:"valueIsReadonly"`
}

func (*OptionType) GetOptionType

func (b *OptionType) GetOptionType() *OptionType

type OptionValue

type OptionValue struct {
	DynamicData

	Key   string  `json:"key"`
	Value AnyType `json:"value"`
}

func (*OptionValue) GetOptionValue

func (b *OptionValue) GetOptionValue() *OptionValue

type PageReq

type PageReq struct {
	PageSize    int    `json:"pageSize"`
	CurrentPage int    `json:"currentPage"`
	SortField   string `json:"sortField"`
	Sort        string `json:"sort"`
}

type PageResponse

type PageResponse struct {
	TotalPage   int           `json:"totalPage"`
	CurrentPage int           `json:"currentPage"`
	TotalSize   int           `json:"totalSize"`
	Items       []interface{} `json:"items"`
}

type SDKError

type SDKError struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Params  string `json:"params"`
}

func (*SDKError) Error

func (e *SDKError) Error() string

type ServiceContent

type ServiceContent struct {
}

type Storage

type Storage struct {
	DataStoreType       string  `json:"dataStoreType"`
	ID                  string  `json:"id"`
	Name                string  `json:"name"`
	MountPath           string  `json:"mountPath"`
	Capacity            float64 `json:"capacity"`
	UsedCapacity        float64 `json:"usedCapacity"`
	AvailCapacity       float64 `json:"availCapacity"`
	DataCenterID        string  `json:"dataCenterId"`
	HostID              string  `json:"hostId"`
	MountStatus         string  `json:"mountStatus"`
	HostIP              string  `json:"hostIp"`
	UUID                string  `json:"uuid"`
	AbsolutePath        string  `json:"absolutePath"`
	DataCenterName      string  `json:"dataCenterName"`
	DataCenterOrHostDto struct {
		DataCenterOrHost string `json:"dataCenterOrHost"`
		DataCenterName   string `json:"dataCenterName"`
		HostName         string `json:"hostName"`
		Status           string `json:"status"`
	} `json:"dataCenterOrHostDto"`
	BlockDeviceDto    interface{} `json:"blockDeviceDto"`
	DataCenterDto     interface{} `json:"dataCenterDto"`
	HostNumbers       int         `json:"hostNumbers"`
	VMNumbers         int         `json:"vmNumbers"`
	VolumesNumbers    int         `json:"volumesNumbers"`
	VMTemplateNumbers int         `json:"vmTemplateNumbers"`
	Tags              string      `json:"tags"`
	MaxSlots          int         `json:"maxSlots"`
	Creating          bool        `json:"creating"`
	StorageBackUp     bool        `json:"storageBackUp"`
	ExtensionType     string      `json:"extensionType"`
	CanBeImageStorage bool        `json:"canBeImageStorage"`
	MultiplexRatio    float64     `json:"multiplexRatio"`
	Oplimit           bool        `json:"oplimit"`
	Maxop             int         `json:"maxop"`
	MountStateCount   string      `json:"mountStateCount"`
	BlockDeviceUUID   string      `json:"blockDeviceUuid"`
	OpHostIP          string      `json:"opHostIp"`
	IsMount           string      `json:"isMount"`
	HostDto           string      `json:"hostDto"`
	ScvmOn            bool        `json:"scvmOn"`
}

type StoragePageReq

type StoragePageReq struct {
	PageReq
}

type StoragePageResponse

type StoragePageResponse struct {
	PageResponse
	Items []Storage `json:"items"`
}

type Switch

type Switch struct {
	ID               string      `json:"id"`
	Name             string      `json:"name"`
	ResourceID       string      `json:"resourceId"`
	ControllerIP     interface{} `json:"controllerIP"`
	DataCenterDto    Datacenter  `json:"dataCenterDto"`
	HostDtos         interface{} `json:"hostDtos"`
	SwitchType       string      `json:"switchType"`
	AppType          string      `json:"appType"`
	Description      string      `json:"description"`
	NetworkDtos      interface{} `json:"networkDtos"`
	SdnNetworkDtos   interface{} `json:"sdnNetworkDtos"`
	VMDtos           interface{} `json:"vmDtos"`
	HostNum          int         `json:"hostNum"`
	PnicNum          int         `json:"pnicNum"`
	NetworkNum       int         `json:"networkNum"`
	VMNum            int         `json:"vmNum"`
	Maxvfs           int         `json:"maxvfs"`
	ThirdPartySDN    bool        `json:"thirdPartySDN"`
	Hierarchy        bool        `json:"hierarchy"`
	ConnectStorage   bool        `json:"connectStorage"`
	ConnectManage    bool        `json:"connectManage"`
	ConnectSwitches  interface{} `json:"connectSwitches"`
	DhcpProtection   bool        `json:"dhcpProtection"`
	NeutronName      interface{} `json:"neutronName"`
	NeutronPassword  interface{} `json:"neutronPassword"`
	ConnectScvm      bool        `json:"connectScvm"`
	SwitchUplinkType string      `json:"switchUplinkType"`
	ComputerNetNum   int         `json:"computerNetNum"`
	DataNetNum       int         `json:"dataNetNum"`
}

type Tag

type Tag struct {
	ID          string `json:"id"`
	Name        string `json:"tagName"`
	Description string `json:"description"`
}

type TagBinding

type TagBinding struct {
	Tags          []Tag    `json:"tags"`
	SourceIds     []string `json:"sourceIds"`
	TagSourceType string   `json:"tagSourceType"`
}

type Task

type Task struct {
	TaskId     string `json:"taskId"`
	ResourceId string `json:"resourceId"`
}

type TaskInfo

type TaskInfo struct {
	Id         string        `json:"id"`
	Name       string        `json:"name"`
	Detail     string        `json:"detail"`
	State      string        `json:"state"`
	StartTime  string        `json:"startTime"`
	EndTime    string        `json:"endTime"`
	ActorName  string        `json:"actorName"`
	Error      string        `json:"error"`
	Cancelable bool          `json:"cancelable"`
	Canceled   bool          `json:"canceled"`
	TargetName string        `json:"targetName"`
	TargetId   string        `json:"targetId"`
	TargetType string        `json:"targetType"`
	Events     []interface{} `json:"events"`
	ProcessId  string        `json:"processId"`
	Progress   int           `json:"progress"`
	ChildTasks []TaskInfo    `json:"childTasks"`
}

type TreeItem

type TreeItem struct {
	ID       string     `json:"id"`
	Text     string     `json:"text"`
	IconCls  string     `json:"iconCls"`
	Checked  bool       `json:"checked"`
	ViewID   string     `json:"viewId"`
	Children []TreeItem `json:"children"`
}

type UserSession

type UserSession struct {
	UserId     string `json:"userId"`
	Username   string `json:"username"`
	SessonId   string `json:"sessonId"`
	RoleType   string `json:"roleType"`
	Locale     string `json:"locale"`
	IP         string `json:"ip"`
	Themes     string `json:"themes"`
	CreateDate string `json:"createDate"`
	LoginTime  string `json:"loginTime"`
}

ICS LOGIN RESPONSE BODY

type VMPageReq

type VMPageReq struct {
	PageReq
}

type VMPageResponse

type VMPageResponse struct {
	PageResponse
	Items []VirtualMachine `json:"items"`
}

type VMPowerState added in v1.0.0

type VMPowerState string

type Vapp added in v1.0.0

type Vapp struct {
	ID             string         `json:"id"`
	DataCenterID   string         `json:"dataCenterId"`
	Name           string         `json:"name"`
	CpuCount       string         `json:"cpucount"`
	Memory         string         `json:"memory"`
	ActiveVMCount  string         `json:"activevircount"`
	VMCount        string         `json:"vircount"`
	State          string         `json:"state"`
	Health         string         `json:"health,omitempty"`
	Product        string         `json:"product,omitempty"`
	Version        string         `json:"version,omitempty"`
	Supplier       string         `json:"supplier,omitempty"`
	CanPowerOn     bool           `json:"canPowerOn"`
	CanPowerOff    bool           `json:"canPowerOff"`
	CanRestart     bool           `json:"canRestart"`
	DataCenterName string         `json:"dataCenterName"`
	StatusCount    map[string]int `json:"statusCount"`
	// contains filtered or unexported fields
}

type VappCreateReq added in v1.0.0

type VappCreateReq struct {
	Name           string `json:"name"`
	Description    string `json:"description"`
	DataCenterID   string `json:"dataCenterId"`
	DataCenterName string `json:"dataCenterNamei,omitempty"`
}

type VappListRsp added in v1.0.0

type VappListRsp struct {
	Items []Vapp `json:"items"`
}

type VirtualMachine

type VirtualMachine struct {
	ID                       string          `json:"id"`
	CustomVmId               string          `json:"customVmId"`
	Name                     string          `json:"name"`
	PowerState               VMPowerState    `json:"state"`
	Status                   string          `json:"status"`
	HostID                   string          `json:"hostId"`
	HostName                 string          `json:"hostName"`
	HostIP                   string          `json:"hostIp"`
	HostStatus               string          `json:"hostStatus"`
	HostMemory               float64         `json:"hostMemory"`
	DataCenterID             string          `json:"dataCenterId"`
	HaEnabled                bool            `json:"haEnabled"`
	RouterFlag               bool            `json:"routerFlag"`
	Migratable               bool            `json:"migratable"`
	HostBinded               bool            `json:"hostBinded"`
	ToolsInstalled           bool            `json:"toolsInstalled"`
	ToolsVersion             string          `json:"toolsVersion"`
	ToolsType                string          `json:"toolsType"`
	ToolsVersionStatus       string          `json:"toolsVersionStatus"`
	ToolsRunningStatus       string          `json:"toolsRunningStatus"`
	ToolsNeedUpdate          bool            `json:"toolsNeedUpdate"`
	Description              string          `json:"description"`
	HaMaxLimit               int             `json:"haMaxLimit"`
	Template                 bool            `json:"template"`
	Initialized              bool            `json:"initialized"`
	GuestosLabel             string          `json:"guestosLabel"`
	GuestosType              string          `json:"guestosType"`
	GuestOsInfo              GuestOsInfo     `json:"guestOsInfo"`
	InnerName                string          `json:"innerName"`
	UUID                     string          `json:"uuid"`
	MaxMemory                int             `json:"maxMemory"`
	Memory                   int             `json:"memory"`
	MemoryUsage              float64         `json:"memoryUsage"`
	MemHotplugEnabled        bool            `json:"memHotplugEnabled"`
	EnableHugeMemPage        bool            `json:"enableHugeMemPage"`
	CPUNum                   int             `json:"cpuNum"`
	CPUSocket                int             `json:"cpuSocket"`
	CPUCore                  int             `json:"cpuCore"`
	CPUUsage                 float64         `json:"cpuUsage"`
	MaxCPUNum                int             `json:"maxCpuNum"`
	CPUHotplugEnabled        bool            `json:"cpuHotplugEnabled"`
	CPUModelType             string          `json:"cpuModelType"`
	CPUModelEnabled          bool            `json:"cpuModelEnabled"`
	RunningTime              float64         `json:"runningTime"`
	Boot                     string          `json:"boot"`
	BootMode                 string          `json:"bootMode"`
	SplashTime               int             `json:"splashTime"`
	StoragePriority          int             `json:"storagePriority"`
	Usb                      interface{}     `json:"usb"`
	Usbs                     []interface{}   `json:"usbs"`
	Cdrom                    Cdrom           `json:"cdrom"`
	Floppy                   Floppy          `json:"floppy"`
	Disks                    []Disk          `json:"disks"`
	Nics                     []Nic           `json:"nics"`
	Gpus                     []interface{}   `json:"gpus"`
	VMPcis                   []interface{}   `json:"vmPcis"`
	ConfigLocation           string          `json:"configLocation"`
	HotplugEnabled           bool            `json:"hotplugEnabled"`
	VncPort                  int             `json:"vncPort"`
	VncPasswd                string          `json:"vncPasswd"`
	VncSharePolicy           string          `json:"vncSharePolicy"`
	CpuBindType              string          `json:"cpuBindType"`
	VcpuPin                  string          `json:"vcpuPin"`
	VcpuPins                 []string        `json:"vcpuPins"`
	CPUShares                int             `json:"cpuShares"`
	PanickPolicy             string          `json:"panickPolicy"`
	DataStoreID              string          `json:"dataStoreId"`
	SdsdomainID              string          `json:"sdsdomainId"`
	ClockModel               string          `json:"clockModel"`
	CPULimit                 int             `json:"cpuLimit"`
	MemShares                int             `json:"memShares"`
	CPUReservation           int             `json:"cpuReservation"`
	MemReservation           int             `json:"memReservation"`
	LastBackup               interface{}     `json:"lastBackup"`
	VMType                   string          `json:"vmType"`
	SystemVMType             interface{}     `json:"systemVmType"`
	MemBalloonEnabled        bool            `json:"memBalloonEnabled"`
	Completed                bool            `json:"completed"`
	GraphicsCardModel        string          `json:"graphicsCardModel"`
	GraphicsCardMemory       int             `json:"graphicsCardMemory"`
	GraphicsCards            interface{}     `json:"graphicsCards"`
	VMHostName               string          `json:"vmHostName"`
	DiskTotalSize            float64         `json:"diskTotalSize"`
	DiskUsedSize             float64         `json:"diskUsedSize"`
	DiskUsage                float64         `json:"diskUsage"`
	Tags                     interface{}     `json:"tags"`
	StartPriority            string          `json:"startPriority"`
	OwnerName                string          `json:"ownerName"`
	Version                  string          `json:"version"`
	EnableReplicate          bool            `json:"enableReplicate"`
	ReplicationDatastoreId   string          `json:"replicationDatastoreId"`
	ReplicationDatastoreName string          `json:"replicationDatastoreName"`
	RecoveryFlag             bool            `json:"recoveryFlag"`
	SpiceUsbNum              int             `json:"spiceUsbNum"`
	CdpInfo                  interface{}     `json:"cdpInfo"`
	GuestOSAuthInfo          GuestOSAuthInfo `json:"guestOSAuthInfo"`
	AwareNumaEnabled         bool            `json:"awareNumaEnabled"`
	ExtendData               string          `json:"extendData,omitempty"`
}

type VirtualMachinePowerState

type VirtualMachinePowerState string

type Volume

type Volume struct {
	ID                 string      `json:"id"`
	UUID               string      `json:"uuid"`
	Size               float64     `json:"size"`
	RealSize           float64     `json:"realSize"`
	Name               string      `json:"name"`
	FileName           string      `json:"fileName"`
	Offset             int         `json:"offset"`
	Shared             bool        `json:"shared"`
	DeleteModel        string      `json:"deleteModel"`
	VolumePolicy       string      `json:"volumePolicy"`
	Format             string      `json:"format"`
	BlockDeviceID      string      `json:"blockDeviceId,omitempty"`
	DiskType           string      `json:"diskType,omitempty"`
	DataStoreID        string      `json:"dataStoreId"`
	DataStoreName      string      `json:"dataStoreName"`
	DataStoreSize      float64     `json:"dataStoreSize"`
	FreeStorage        float64     `json:"freeStorage"`
	DataStoreType      string      `json:"dataStoreType"`
	DataStoreReplicate int         `json:"dataStoreReplicate"`
	VMName             string      `json:"vmName,omitempty"`
	VMStatus           string      `json:"vmStatus,omitempty"`
	Type               string      `json:"type,omitempty"`
	Description        string      `json:"description,omitempty"`
	Bootable           bool        `json:"bootable"`
	VolumeStatus       string      `json:"volumeStatus"`
	MountedHostIds     []string    `json:"mountedHostIds"`
	Md5                string      `json:"md5,omitempty"`
	DataSize           int         `json:"dataSize"`
	OpenStackID        string      `json:"openStackId,omitempty"`
	VvSourceDto        interface{} `json:"vvSourceDto"`
	FormatDisk         bool        `json:"formatDisk"`
	ToBeConverted      bool        `json:"toBeConverted"`
	RelatedVms         interface{} `json:"relatedVms"`
	ClusterSize        int         `json:"clusterSize"`
	ScsiID             string      `json:"scsiId"`
}

type VolumeListRsp

type VolumeListRsp struct {
	Items []Volume `json:"items"`
}

type VolumeReq

type VolumeReq struct {
	Name          string `json:"name"`
	Size          string `json:"size"`
	DataStoreType string `json:"dataStoreType"`
	DataStoreId   string `json:"dataStoreId"`
	VolumePolicy  string `json:"volumePolicy"`
	Description   string `json:"description"`
	Bootable      bool   `json:"bootable"`
	Shared        bool   `json:"shared"`
}

Jump to

Keyboard shortcuts

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