v15.1.0
This commit is contained in:
@@ -18,11 +18,6 @@ type MigrateRequest struct {
|
||||
// Particular Node ID to migrate this compute to
|
||||
// Required: false
|
||||
TargetNodeID uint64 `url:"targetNodeId,omitempty" json:"targetNodeId,omitempty"`
|
||||
|
||||
// If live migration fails, destroy compute
|
||||
// on source node and recreate on the target
|
||||
// Required: false
|
||||
Force bool `url:"force,omitempty" json:"force,omitempty"`
|
||||
}
|
||||
|
||||
type AsyncWrapperMigrateRequest struct {
|
||||
|
||||
@@ -12,15 +12,19 @@ import (
|
||||
// Must be provided if NewVMUUID is provided.
|
||||
type OSUser struct {
|
||||
// Login of a user
|
||||
Login string `url:"login,omitempty" json:"login,omitempty"`
|
||||
// Required: true
|
||||
Login string `url:"login" json:"login" validate:"required"`
|
||||
|
||||
// Password of a user
|
||||
Password string `url:"password,omitempty" json:"password,omitempty"`
|
||||
// Required: true
|
||||
Password string `url:"password" json:"password" validate:"required"`
|
||||
|
||||
// GUID
|
||||
// Required: false
|
||||
GUID string `url:"guid,omitempty" json:"guid,omitempty"`
|
||||
|
||||
// Pubkey
|
||||
// Required: false
|
||||
Pubkey string `url:"pubkey,omitempty" json:"pubkey,omitempty"`
|
||||
}
|
||||
|
||||
@@ -36,7 +40,7 @@ type StopMigrationINRequest struct {
|
||||
|
||||
// OS user data for Guest OS
|
||||
// Required: false
|
||||
OSUsers []OSUser `url:"os_users,omitempty" json:"os_users,omitempty"`
|
||||
OSUsers []OSUser `url:"os_users,omitempty" json:"os_users,omitempty" validate:"omitempty,dive"`
|
||||
}
|
||||
|
||||
// StopMigrationIN stops compute for external migration in
|
||||
|
||||
Reference in New Issue
Block a user