|
|
|
|
@@ -182,6 +182,9 @@ type RecordNetAttach struct {
|
|
|
|
|
// Enabled
|
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
|
|
|
|
|
|
// Enable default gateway
|
|
|
|
|
EnableDefaultGateway bool `json:"enable_default_gateway"`
|
|
|
|
|
|
|
|
|
|
// Enable security groups
|
|
|
|
|
EnableSecGroups bool `json:"enable_secgroups"`
|
|
|
|
|
|
|
|
|
|
@@ -479,6 +482,9 @@ type RecordCompute struct {
|
|
|
|
|
// Natable VINS network name
|
|
|
|
|
NatableVINSNetworkName string `json:"natableVinsNetworkName"`
|
|
|
|
|
|
|
|
|
|
// Node ID
|
|
|
|
|
NodeID uint64 `json:"node_id"`
|
|
|
|
|
|
|
|
|
|
// Name of OS
|
|
|
|
|
OSVersion string `json:"os_version"`
|
|
|
|
|
|
|
|
|
|
@@ -565,6 +571,261 @@ type RecordCompute struct {
|
|
|
|
|
ZoneID uint64 `json:"zoneId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SnapRecordCompute struct {
|
|
|
|
|
// Access Control List
|
|
|
|
|
ACL ListACL `json:"acl"`
|
|
|
|
|
|
|
|
|
|
// Account ID
|
|
|
|
|
AccountID uint64 `json:"accountId"`
|
|
|
|
|
|
|
|
|
|
// Account name
|
|
|
|
|
AccountName string `json:"accountName"`
|
|
|
|
|
|
|
|
|
|
// Affinity label
|
|
|
|
|
AffinityLabel string `json:"affinityLabel"`
|
|
|
|
|
|
|
|
|
|
// List affinity rules
|
|
|
|
|
AffinityRules ListRules `json:"affinityRules"`
|
|
|
|
|
|
|
|
|
|
// Affinity weight
|
|
|
|
|
AffinityWeight uint64 `json:"affinityWeight"`
|
|
|
|
|
|
|
|
|
|
// List anti affinity rules
|
|
|
|
|
AntiAffinityRules ListRules `json:"antiAffinityRules"`
|
|
|
|
|
|
|
|
|
|
// Auto start when node restarted
|
|
|
|
|
AutoStart bool `json:"autoStart"`
|
|
|
|
|
|
|
|
|
|
// Architecture
|
|
|
|
|
Architecture string `json:"arch"`
|
|
|
|
|
|
|
|
|
|
// Boot image ID
|
|
|
|
|
BootImageID uint64 `json:"boot_image_id"`
|
|
|
|
|
|
|
|
|
|
// Boot order
|
|
|
|
|
BootOrder []string `json:"bootOrder"`
|
|
|
|
|
|
|
|
|
|
// Boot type
|
|
|
|
|
BootType string `json:"bootType"`
|
|
|
|
|
|
|
|
|
|
// Boot disk size
|
|
|
|
|
BootDiskSize uint64 `json:"bootdiskSize"`
|
|
|
|
|
|
|
|
|
|
// CD Image Id
|
|
|
|
|
CdImageId uint64 `json:"cdImageId"`
|
|
|
|
|
|
|
|
|
|
// Chipset
|
|
|
|
|
Chipset string `json:"chipset"`
|
|
|
|
|
|
|
|
|
|
// Clone reference
|
|
|
|
|
CloneReference uint64 `json:"cloneReference"`
|
|
|
|
|
|
|
|
|
|
// List clone IDs
|
|
|
|
|
Clones []uint64 `json:"clones"`
|
|
|
|
|
|
|
|
|
|
// Clock
|
|
|
|
|
Clock string `json:"clock"`
|
|
|
|
|
|
|
|
|
|
// Compute CI ID
|
|
|
|
|
ComputeCIID uint64 `json:"computeciId"`
|
|
|
|
|
|
|
|
|
|
// CPU Pin
|
|
|
|
|
CPUPin bool `json:"cpupin"`
|
|
|
|
|
|
|
|
|
|
// Number of cores
|
|
|
|
|
CPU uint64 `json:"cpus"`
|
|
|
|
|
|
|
|
|
|
// Created by
|
|
|
|
|
CreatedBy string `json:"createdBy"`
|
|
|
|
|
|
|
|
|
|
// Created time
|
|
|
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
|
|
|
|
|
|
// Custom fields items
|
|
|
|
|
CustomFields map[string]interface{} `json:"customFields"`
|
|
|
|
|
|
|
|
|
|
// Deleted by
|
|
|
|
|
DeletedBy string `json:"deletedBy"`
|
|
|
|
|
|
|
|
|
|
// Deleted time
|
|
|
|
|
DeletedTime uint64 `json:"deletedTime"`
|
|
|
|
|
|
|
|
|
|
// Description
|
|
|
|
|
Description string `json:"desc"`
|
|
|
|
|
|
|
|
|
|
// Devices
|
|
|
|
|
Devices interface{} `json:"devices"`
|
|
|
|
|
|
|
|
|
|
// List disks in compute
|
|
|
|
|
Disks ListComputeDisks `json:"disks"`
|
|
|
|
|
|
|
|
|
|
// Driver
|
|
|
|
|
Driver string `json:"driver"`
|
|
|
|
|
|
|
|
|
|
// Grid ID
|
|
|
|
|
GID uint64 `json:"gid"`
|
|
|
|
|
|
|
|
|
|
// GUID
|
|
|
|
|
GUID uint64 `json:"guid"`
|
|
|
|
|
|
|
|
|
|
// HPBacked
|
|
|
|
|
HPBacked bool `json:"hpBacked"`
|
|
|
|
|
|
|
|
|
|
// Hot resize
|
|
|
|
|
HotResize bool `json:"hotResize"`
|
|
|
|
|
|
|
|
|
|
// ID
|
|
|
|
|
ID uint64 `json:"id"`
|
|
|
|
|
|
|
|
|
|
// Image ID
|
|
|
|
|
ImageID uint64 `json:"imageId"`
|
|
|
|
|
|
|
|
|
|
// Image name
|
|
|
|
|
ImageName string `json:"imageName"`
|
|
|
|
|
|
|
|
|
|
// List interfaces
|
|
|
|
|
Interfaces ListInterfaces `json:"interfaces"`
|
|
|
|
|
|
|
|
|
|
// Loader meta iso information
|
|
|
|
|
LoaderMetaIso LoaderMetaIso `json:"loaderMetaIso"`
|
|
|
|
|
|
|
|
|
|
// Live migration job ID
|
|
|
|
|
LiveMigrationJobID uint64 `json:"live_migration_job_id"`
|
|
|
|
|
|
|
|
|
|
// Loader type
|
|
|
|
|
LoaderType string `json:"loaderType"`
|
|
|
|
|
|
|
|
|
|
// Lock status
|
|
|
|
|
LockStatus string `json:"lockStatus"`
|
|
|
|
|
|
|
|
|
|
// Manager ID
|
|
|
|
|
ManagerID uint64 `json:"managerId"`
|
|
|
|
|
|
|
|
|
|
// Manager type
|
|
|
|
|
ManagerType string `json:"managerType"`
|
|
|
|
|
|
|
|
|
|
// Migration job
|
|
|
|
|
MigrationJob uint64 `json:"migrationjob"`
|
|
|
|
|
|
|
|
|
|
// Milestones
|
|
|
|
|
Milestones uint64 `json:"milestones"`
|
|
|
|
|
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// NeedReboot
|
|
|
|
|
NeedReboot bool `json:"needReboot"`
|
|
|
|
|
|
|
|
|
|
// Network interface naming
|
|
|
|
|
NetworkInterfaceNaming string `json:"networkInterfaceNaming"`
|
|
|
|
|
|
|
|
|
|
// Numa Affinity
|
|
|
|
|
NumaAffinity string `json:"numaAffinity"`
|
|
|
|
|
|
|
|
|
|
//NumaNodeId
|
|
|
|
|
NumaNodeId int64 `json:"numaNodeId"`
|
|
|
|
|
|
|
|
|
|
// Natable VINS ID
|
|
|
|
|
NatableVINSID uint64 `json:"natableVinsId"`
|
|
|
|
|
|
|
|
|
|
// Natable VINS IP
|
|
|
|
|
NatableVINSIP string `json:"natableVinsIp"`
|
|
|
|
|
|
|
|
|
|
// Natable VINS Name
|
|
|
|
|
NatableVINSName string `json:"natableVinsName"`
|
|
|
|
|
|
|
|
|
|
// Natable VINS network
|
|
|
|
|
NatableVINSNetwork string `json:"natableVinsNetwork"`
|
|
|
|
|
|
|
|
|
|
// Natable VINS network name
|
|
|
|
|
NatableVINSNetworkName string `json:"natableVinsNetworkName"`
|
|
|
|
|
|
|
|
|
|
// Name of OS
|
|
|
|
|
OSVersion string `json:"os_version"`
|
|
|
|
|
|
|
|
|
|
// List OS Users
|
|
|
|
|
OSUsers ListOSUser `json:"osUsers"`
|
|
|
|
|
|
|
|
|
|
// Pinned to node
|
|
|
|
|
PinnedToNode int64 `json:"pinnedToNode"`
|
|
|
|
|
|
|
|
|
|
// PreferredCPU
|
|
|
|
|
PreferredCPU []int64 `json:"preferredCpu"`
|
|
|
|
|
|
|
|
|
|
// CPU alignment profile
|
|
|
|
|
CPUAlignmentProfile CPUAlignmentProfile `json:"cpu_alignment_profile"`
|
|
|
|
|
|
|
|
|
|
// Qemu_quest
|
|
|
|
|
QemuQuest QemuQuest `json:"qemu_guest"`
|
|
|
|
|
|
|
|
|
|
// ReadOnly indicates read-only mode state
|
|
|
|
|
ReadOnly bool `json:"read_only"`
|
|
|
|
|
|
|
|
|
|
// Number of RAM
|
|
|
|
|
RAM uint64 `json:"ram"`
|
|
|
|
|
|
|
|
|
|
// Reference ID
|
|
|
|
|
ReferenceID string `json:"referenceId"`
|
|
|
|
|
|
|
|
|
|
// Registered or not
|
|
|
|
|
Registered bool `json:"registered"`
|
|
|
|
|
|
|
|
|
|
// Resource name
|
|
|
|
|
ResName string `json:"resName"`
|
|
|
|
|
|
|
|
|
|
// Reserved Node Cpus
|
|
|
|
|
ReservedNodeCpus []uint64 `json:"reservedNodeCpus"`
|
|
|
|
|
|
|
|
|
|
// Resource group ID
|
|
|
|
|
RGID uint64 `json:"rgId"`
|
|
|
|
|
|
|
|
|
|
// Resource group name
|
|
|
|
|
RGName string `json:"rgName"`
|
|
|
|
|
|
|
|
|
|
// List snapsets
|
|
|
|
|
SnapSets ListSnapSets `json:"snapSets"`
|
|
|
|
|
|
|
|
|
|
// Stateless SepID
|
|
|
|
|
StatelessSepID int64 `json:"statelessSepId"`
|
|
|
|
|
|
|
|
|
|
// Stateless SepType
|
|
|
|
|
StatelessSepType string `json:"statelessSepType"`
|
|
|
|
|
|
|
|
|
|
// Status
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
|
|
|
|
|
// Tags
|
|
|
|
|
Tags map[string]string `json:"tags"`
|
|
|
|
|
|
|
|
|
|
// Tech status
|
|
|
|
|
TechStatus string `json:"techStatus"`
|
|
|
|
|
|
|
|
|
|
// Updated by
|
|
|
|
|
UpdatedBy string `json:"updatedBy"`
|
|
|
|
|
|
|
|
|
|
// Updated time
|
|
|
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
|
|
|
|
|
|
|
|
|
// User Managed or not
|
|
|
|
|
UserManaged bool `json:"userManaged"`
|
|
|
|
|
|
|
|
|
|
// Userdata
|
|
|
|
|
Userdata interface{} `json:"userdata"`
|
|
|
|
|
|
|
|
|
|
// vGPUs list
|
|
|
|
|
VGPUs []VGPUItem `json:"vgpus"`
|
|
|
|
|
|
|
|
|
|
// VNC password
|
|
|
|
|
VNCPassword string `json:"vncPasswd"`
|
|
|
|
|
|
|
|
|
|
// Weight
|
|
|
|
|
Weight uint64 `json:"weight"`
|
|
|
|
|
|
|
|
|
|
// Zone ID
|
|
|
|
|
// Required: false
|
|
|
|
|
ZoneID uint64 `json:"zoneId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LoaderMetaIso struct {
|
|
|
|
|
// Name
|
|
|
|
|
DeviceName string `json:"devicename"`
|
|
|
|
|
@@ -691,7 +952,7 @@ type ListOSUser []ItemOSUser
|
|
|
|
|
// Main information about snapsets
|
|
|
|
|
type ItemSnapSet struct {
|
|
|
|
|
// Compute info
|
|
|
|
|
Compute RecordCompute `json:"compute"`
|
|
|
|
|
Compute SnapRecordCompute `json:"compute"`
|
|
|
|
|
|
|
|
|
|
// List disk ID
|
|
|
|
|
Disks []uint64 `json:"disks"`
|
|
|
|
|
@@ -729,6 +990,9 @@ type ItemVNFInterface struct {
|
|
|
|
|
// Enabled
|
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
|
|
|
|
|
|
// Enable default gateway
|
|
|
|
|
EnableDefaultGateway bool `json:"enable_default_gateway"`
|
|
|
|
|
|
|
|
|
|
// Enable security groups
|
|
|
|
|
EnableSecGroups bool `json:"enable_secgroups"`
|
|
|
|
|
|
|
|
|
|
@@ -1191,6 +1455,9 @@ type ItemCompute struct {
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// Node ID
|
|
|
|
|
NodeID uint64 `json:"node_id"`
|
|
|
|
|
|
|
|
|
|
// NeedReboot
|
|
|
|
|
NeedReboot bool `json:"needReboot"`
|
|
|
|
|
|
|
|
|
|
|