v1.16.5
This commit is contained in:
@@ -575,6 +575,9 @@ type RecordCompute struct {
|
||||
// Zone ID
|
||||
// Required: false
|
||||
ZoneID uint64 `json:"zoneId"`
|
||||
|
||||
// Folder ID
|
||||
FolderID uint64 `json:"folder_id"`
|
||||
}
|
||||
|
||||
// Detailed information about ACL Access in a compute
|
||||
@@ -1564,6 +1567,9 @@ type ItemCompute struct {
|
||||
|
||||
// Zone ID
|
||||
ZoneID uint64 `json:"zoneId"`
|
||||
|
||||
// Folder ID
|
||||
FolderID uint64 `json:"folder_id"`
|
||||
}
|
||||
|
||||
// ListInfoDisks
|
||||
@@ -1743,3 +1749,47 @@ type CloneStatus struct {
|
||||
// Progress percent
|
||||
ProgressPercent int `json:"progress_percent"`
|
||||
}
|
||||
|
||||
type MigrationReportItem struct {
|
||||
// ID of the compute instance
|
||||
ComputeID uint64 `json:"compute_id"`
|
||||
|
||||
// Per-VM action result, not workflow status
|
||||
// Should be one of:
|
||||
// - migrated: migration completed; the rule may still be unsatisfied
|
||||
// - skipped: migration was not needed or applicable
|
||||
// - not_started: submission was not attempted
|
||||
// - not_completed: completion is unconfirmed; the VM may have moved
|
||||
Status string `json:"status"`
|
||||
|
||||
// Action details, errors and final rule-placement warnings
|
||||
Message string `json:"message"`
|
||||
|
||||
// Workflow ID for tracking, or nil if submission was not attempted.
|
||||
// A non-nil ID does not confirm job acceptance
|
||||
WorkflowJobID *string `json:"workflow_job_id"`
|
||||
}
|
||||
|
||||
type MigrationReport struct {
|
||||
// Rules were saved; does not confirm migration success or rule satisfaction
|
||||
Applied bool `json:"applied"`
|
||||
|
||||
// Per-compute migration results
|
||||
Migrations []MigrationReportItem `json:"migrations"`
|
||||
}
|
||||
|
||||
type AffinityRuleAddResult struct {
|
||||
// Result of the rule addition
|
||||
Ok bool
|
||||
|
||||
// Migration report. Populated only when the request was made with Migrate=true, nil otherwise
|
||||
MigrationReport *MigrationReport
|
||||
}
|
||||
|
||||
type AntiAffinityRuleAddResult struct {
|
||||
// Result of the rule addition
|
||||
Ok bool
|
||||
|
||||
// Migration report. Populated only when the request was made with Migrate=true, nil otherwise
|
||||
MigrationReport *MigrationReport
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user