v1.16.9
v1.16.9
This commit is contained in:
@@ -122,6 +122,9 @@ type ItemAudit struct {
|
||||
// Persistent disk IDs associated with the operation
|
||||
DiskIDs []uint64 `json:"disk_ids"`
|
||||
|
||||
// VM folder ID
|
||||
VMFolderID uint64 `json:"vmfolder_id"`
|
||||
|
||||
// API task ID for asynchronous calls
|
||||
APITask string `json:"apitask"`
|
||||
}
|
||||
|
||||
@@ -59,6 +59,14 @@ type ListRequest struct {
|
||||
// Required: false
|
||||
SortBy string `url:"sortBy,omitempty" json:"sortBy,omitempty" validate:"omitempty,sortBy"`
|
||||
|
||||
// Sort by account ID
|
||||
// Required: false
|
||||
AccountID uint64 `url:"account_id,omitempty" json:"account_id,omitempty"`
|
||||
|
||||
// Sort by sep type
|
||||
// Required: false
|
||||
SEPType string `url:"sep_type,omitempty" json:"sep_type,omitempty" validate:"omitempty,sepTypes"`
|
||||
|
||||
// Page number
|
||||
// Required: false
|
||||
Page uint64 `url:"page,omitempty" json:"page,omitempty"`
|
||||
|
||||
@@ -32,6 +32,9 @@ type ItemImage struct {
|
||||
// Link to
|
||||
LinkTo uint64 `json:"linkTo"`
|
||||
|
||||
// Links to
|
||||
LinksTo []uint64 `json:"linksTo"`
|
||||
|
||||
// Name
|
||||
Name string `json:"name"`
|
||||
|
||||
@@ -214,4 +217,7 @@ type RecordImage struct {
|
||||
|
||||
// Version
|
||||
Version string `json:"version"`
|
||||
|
||||
// Real size of the image
|
||||
RealSize uint64 `json:"real_size"`
|
||||
}
|
||||
|
||||
@@ -46,6 +46,12 @@ type ItemLocation struct {
|
||||
|
||||
// Are VM Folders enabled
|
||||
VMFoldersEnabled bool `json:"vm_folders_enabled"`
|
||||
|
||||
// SDN Web config
|
||||
SDNWeb SDNWeb `json:"sdn_web"`
|
||||
|
||||
// BVP Web config
|
||||
BVPWeb BVPWeb `json:"bvp_web"`
|
||||
}
|
||||
|
||||
// List of locations
|
||||
@@ -56,3 +62,27 @@ type ListLocations struct {
|
||||
// Entry count
|
||||
EntryCount uint64 `json:"entryCount"`
|
||||
}
|
||||
|
||||
// SDN Web config
|
||||
type SDNWeb struct {
|
||||
// Whether the config is enabled
|
||||
Enabled bool `json:"enabled"`
|
||||
|
||||
// URL
|
||||
URL string `json:"url"`
|
||||
|
||||
// Number of the port
|
||||
Port uint64 `json:"port"`
|
||||
}
|
||||
|
||||
// BVP Web config
|
||||
type BVPWeb struct {
|
||||
// Whether the config is enabled
|
||||
Enabled bool `json:"enabled"`
|
||||
|
||||
// URL
|
||||
URL string `json:"url"`
|
||||
|
||||
// Number of ther port
|
||||
Port uint64 `json:"port"`
|
||||
}
|
||||
|
||||
@@ -22,6 +22,9 @@ type Resource struct {
|
||||
|
||||
// SEPs
|
||||
SEPs map[string]map[string]DiskUsage `json:"seps"`
|
||||
|
||||
// Policies
|
||||
Policies map[string]PolicyUsage `json:"policies"`
|
||||
}
|
||||
|
||||
// Disk usage
|
||||
@@ -33,6 +36,21 @@ type DiskUsage struct {
|
||||
DiskSizeMax float64 `json:"disksizemax"`
|
||||
}
|
||||
|
||||
// Policy usage
|
||||
type PolicyUsage struct {
|
||||
// Disk size
|
||||
DiskSize float64 `json:"disksize"`
|
||||
|
||||
// Max disk size
|
||||
DiskSizeMax float64 `json:"disksizemax"`
|
||||
|
||||
// Limit
|
||||
Limit float64 `json:"limit"`
|
||||
|
||||
// SEPs
|
||||
SEPs map[string]map[string]DiskUsage `json:"seps"`
|
||||
}
|
||||
|
||||
// Information about resources
|
||||
type Resources struct {
|
||||
// Current information about resources
|
||||
@@ -51,10 +69,31 @@ type ItemResourceConsumption struct {
|
||||
Reserved Resource `json:"reserved"`
|
||||
|
||||
// Resource limits
|
||||
ResourceLimits ResourceLimits `json:"resourceLimits"`
|
||||
ResourceLimits ResourceConsumptionLimits `json:"resourceLimits"`
|
||||
|
||||
// Resource group ID
|
||||
RGID uint64 `json:"rgid"`
|
||||
RGID uint64 `json:"id"`
|
||||
}
|
||||
|
||||
// Resource limits of resource consumption
|
||||
type ResourceConsumptionLimits struct {
|
||||
// CUC
|
||||
CUC float64 `json:"CU_C"`
|
||||
|
||||
// CUD
|
||||
CUD float64 `json:"CU_D"`
|
||||
|
||||
// CUDM
|
||||
CUDM float64 `json:"CU_DM"`
|
||||
|
||||
// CUI
|
||||
CUI float64 `json:"CU_I"`
|
||||
|
||||
// CUM
|
||||
CUM float64 `json:"CU_M"`
|
||||
|
||||
// GPU units
|
||||
GPUUnits float64 `json:"gpu_units"`
|
||||
}
|
||||
|
||||
type ListResourceConsumption struct {
|
||||
@@ -892,4 +931,7 @@ type RecordResourceUsage struct {
|
||||
|
||||
// SEPs
|
||||
SEPs map[string]map[string]DiskUsage `json:"seps"`
|
||||
|
||||
// Policies
|
||||
Policies map[string]PolicyUsage `json:"policies"`
|
||||
}
|
||||
|
||||
@@ -844,6 +844,9 @@ type ItemReservation struct {
|
||||
// Account ID
|
||||
AccountID uint64 `json:"account_id"`
|
||||
|
||||
// Whether reservation is auto assignable
|
||||
AutoAssignable bool `json:"auto_assignable"`
|
||||
|
||||
// IP
|
||||
IP string `json:"ip"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user