v1.16.6
v1.16.6
This commit is contained in:
@@ -16,7 +16,7 @@ type ListVINSRequest struct {
|
||||
|
||||
// Find by VINS ID
|
||||
// Required: false
|
||||
VINSID uint64 `url:"vins,omitempty" json:"vinsId,omitempty"`
|
||||
VINSID uint64 `url:"vinsId,omitempty" json:"vinsId,omitempty"`
|
||||
|
||||
// Find by name
|
||||
// Required: false
|
||||
|
||||
@@ -63,6 +63,14 @@ type ListRequest struct {
|
||||
// Required: false
|
||||
AccountID uint64 `url:"account_id,omitempty" json:"account_id,omitempty"`
|
||||
|
||||
// Find by disk id
|
||||
// Required: false
|
||||
DiskID uint64 `url:"disk_id,omitempty" json:"disk_id,omitempty"`
|
||||
|
||||
// Find by vm folder id
|
||||
// Required: false
|
||||
VMFolderID uint64 `url:"vmfolder_id,omitempty" json:"vmfolder_id,omitempty"`
|
||||
|
||||
// Find by vins id
|
||||
// Required: false
|
||||
VINSID uint64 `url:"vins_id,omitempty" json:"vins_id,omitempty"`
|
||||
@@ -92,7 +100,7 @@ type ListRequest struct {
|
||||
ExcludeAuditLines bool `url:"exclude_audit_lines,omitempty" json:"exclude_audit_lines,omitempty"`
|
||||
|
||||
// Public Session ID
|
||||
PublicSessionID string `json:"public_session_id"`
|
||||
PublicSessionID string `url:"public_session_id,omitempty" json:"public_session_id,omitempty"`
|
||||
}
|
||||
|
||||
// List gets audit records for the specified account object
|
||||
|
||||
@@ -82,7 +82,7 @@ type UpdateRequest struct {
|
||||
|
||||
// Memory balloon mode. One of ["auto","legacy","none"]
|
||||
// Required: false
|
||||
// Default: "auto"
|
||||
// Default: none
|
||||
MemoryBalloonMode string `url:"memory_balloon_mode,omitempty" json:"memory_balloon_mode,omitempty" validate:"omitempty,memoryBalloonMode"`
|
||||
}
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ type CreateRequest struct {
|
||||
|
||||
// Memory balloon mode. One of ["auto","legacy","none"]
|
||||
// Required: false
|
||||
// Default: "auto"
|
||||
// Default: none
|
||||
MemoryBalloonMode string `url:"memory_balloon_mode,omitempty" json:"memory_balloon_mode,omitempty" validate:"omitempty,memoryBalloonMode"`
|
||||
|
||||
// List of vGPU IDs to attach to the VM
|
||||
|
||||
@@ -136,7 +136,7 @@ type CreateBlankRequest struct {
|
||||
|
||||
// Memory balloon mode. One of ["auto","legacy","none"]
|
||||
// Required: false
|
||||
// Default: "auto"
|
||||
// Default: none
|
||||
MemoryBalloonMode string `url:"memory_balloon_mode,omitempty" json:"memory_balloon_mode,omitempty" validate:"omitempty,memoryBalloonMode"`
|
||||
|
||||
// List of vGPU IDs to attach to the VM
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
type SetDataRequest struct {
|
||||
// Data to set to user in json format
|
||||
// Required: true
|
||||
Data string `url:"data" json:"data" validation:"required"`
|
||||
Data string `url:"data" json:"data" validate:"required"`
|
||||
}
|
||||
|
||||
// SetData sets extra user information.
|
||||
|
||||
@@ -340,6 +340,9 @@ type ItemVNFInterface struct {
|
||||
|
||||
// List of VNF IDs
|
||||
VNFs []uint64 `json:"vnfs"`
|
||||
|
||||
// Whether default gateway is enabled
|
||||
EnableDefaultGateway bool `json:"enable_default_gateway"`
|
||||
}
|
||||
|
||||
// Main information about QOS
|
||||
@@ -630,6 +633,9 @@ type RecordDHCPConfig struct {
|
||||
|
||||
// List of reservations
|
||||
Reservations ListReservations `json:"reservations"`
|
||||
|
||||
// Whether default gateway is enabled
|
||||
EnableDefaultGateway bool `json:"enable_default_gateway"`
|
||||
}
|
||||
|
||||
// List of static routes
|
||||
|
||||
Reference in New Issue
Block a user