2025-07-15 17:39:18 +03:00
|
|
|
package zone
|
|
|
|
|
|
2026-06-05 17:14:39 +03:00
|
|
|
// CPU alignment profile
|
|
|
|
|
type CpuAlignmentProfile struct {
|
|
|
|
|
// Profile name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// Vendor
|
|
|
|
|
Vendor string `json:"vendor"`
|
|
|
|
|
|
|
|
|
|
// Model
|
|
|
|
|
Model string `json:"model"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CPU alignment profile candidate
|
|
|
|
|
type CpuAlignmentProfileCandidate struct {
|
|
|
|
|
// Profile name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// Vendor
|
|
|
|
|
Vendor string `json:"vendor"`
|
|
|
|
|
|
|
|
|
|
// Model
|
|
|
|
|
Model string `json:"model"`
|
|
|
|
|
|
|
|
|
|
// Count
|
|
|
|
|
Count uint64 `json:"count"`
|
|
|
|
|
|
|
|
|
|
// Percentage
|
|
|
|
|
Percentage uint64 `json:"percentage"`
|
|
|
|
|
|
|
|
|
|
// Required count
|
|
|
|
|
RequiredCount uint64 `json:"required_count"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Response for test_cpu_alignment_profile
|
|
|
|
|
type TestCPUAlignmentProfileResult struct {
|
|
|
|
|
// Profiles
|
|
|
|
|
Profiles []CpuAlignmentProfile `json:"profiles"`
|
|
|
|
|
|
|
|
|
|
// Candidates
|
|
|
|
|
Candidates []CpuAlignmentProfileCandidate `json:"candidates"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Item for list_cpu_alignment_profile response
|
|
|
|
|
type ItemCPUAlignmentProfile struct {
|
|
|
|
|
// Zone ID
|
|
|
|
|
ZoneID uint64 `json:"zoneId"`
|
|
|
|
|
|
|
|
|
|
// CPU alignment profiles
|
|
|
|
|
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Response for list_cpu_alignment_profile
|
|
|
|
|
type ListCPUAlignmentProfiles struct {
|
|
|
|
|
// Entry count
|
|
|
|
|
EntryCount uint64 `json:"entryCount"`
|
|
|
|
|
|
|
|
|
|
// Data
|
|
|
|
|
Data []ItemCPUAlignmentProfile `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-15 17:39:18 +03:00
|
|
|
type ListZones struct {
|
|
|
|
|
// Entry count
|
|
|
|
|
EntryCount uint64 `json:"entryCount"`
|
|
|
|
|
|
|
|
|
|
// Data
|
2026-03-27 17:29:52 +03:00
|
|
|
Data []ItemZone `json:"data"`
|
2025-07-15 17:39:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Detailed information about the zone record
|
|
|
|
|
type RecordZone struct {
|
2026-01-23 16:29:24 +03:00
|
|
|
// If true, all nodes belonging to the given zone will be marked for autostart
|
|
|
|
|
AutoStart bool `json:"autostart"`
|
|
|
|
|
|
2025-07-15 17:39:18 +03:00
|
|
|
// ID
|
|
|
|
|
ID uint64 `json:"id"`
|
|
|
|
|
|
|
|
|
|
// GUID
|
|
|
|
|
GUID uint64 `json:"guid"`
|
|
|
|
|
|
|
|
|
|
// GID
|
|
|
|
|
GID uint64 `json:"gid"`
|
|
|
|
|
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
2025-08-29 12:51:25 +03:00
|
|
|
// List of associated account IDs
|
|
|
|
|
AccountIDs []uint64 `json:"accountIds"`
|
|
|
|
|
|
|
|
|
|
// List of associated bservice IDs
|
|
|
|
|
BserviceIDs []uint64 `json:"bserviceIds"`
|
|
|
|
|
|
|
|
|
|
// List of associated compute IDs
|
|
|
|
|
ComputeIDs []uint64 `json:"computeIds"`
|
|
|
|
|
|
2025-07-15 17:39:18 +03:00
|
|
|
// Description
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
|
|
|
|
|
// Deletable flag
|
|
|
|
|
Deletable bool `json:"deletable"`
|
|
|
|
|
|
2025-08-29 12:51:25 +03:00
|
|
|
// List of associated ExtNet IDs
|
|
|
|
|
ExtnetIDs []uint64 `json:"extnetIds"`
|
|
|
|
|
|
|
|
|
|
// List of associated K8s IDs
|
|
|
|
|
K8SIDs []uint64 `json:"k8sIds"`
|
|
|
|
|
|
|
|
|
|
// List of associated LB IDs
|
|
|
|
|
LBIDs []uint64 `json:"lbIds"`
|
|
|
|
|
|
2025-07-15 17:39:18 +03:00
|
|
|
// Status
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
|
|
|
|
|
// Created timestamp
|
|
|
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
|
|
|
|
|
|
// Updated timestamp
|
|
|
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
|
|
|
|
|
|
|
|
|
// List of associated Node IDs
|
|
|
|
|
NodeIDs []uint64 `json:"nodeIds"`
|
2025-08-29 12:51:25 +03:00
|
|
|
|
|
|
|
|
// List of associated VINS IDs
|
|
|
|
|
VinsIDs []uint64 `json:"vinsIds"`
|
2026-03-27 17:29:52 +03:00
|
|
|
|
|
|
|
|
// DRS
|
|
|
|
|
DRS bool `json:"drs"`
|
|
|
|
|
|
|
|
|
|
// DRS UID
|
|
|
|
|
DRSUID string `json:"drs_uid"`
|
|
|
|
|
|
|
|
|
|
// App ID
|
|
|
|
|
AppID string `json:"app_id"`
|
|
|
|
|
|
|
|
|
|
// Decort URL
|
|
|
|
|
DecortURL string `json:"decort_url"`
|
|
|
|
|
|
|
|
|
|
// DRS Name
|
|
|
|
|
DRSName string `json:"drs_name"`
|
|
|
|
|
|
|
|
|
|
// SSO URL
|
|
|
|
|
SSOURL string `json:"sso_url"`
|
2026-04-17 17:04:11 +03:00
|
|
|
|
|
|
|
|
// SSO type
|
|
|
|
|
SSOType string `json:"sso_type"`
|
|
|
|
|
|
|
|
|
|
// Ping address
|
|
|
|
|
PingAddr string `json:"ping_addr"`
|
|
|
|
|
|
|
|
|
|
// Broadcast address
|
|
|
|
|
BroadcastAddr string `json:"broadcast_addr"`
|
|
|
|
|
|
|
|
|
|
// Skip ssl verify
|
|
|
|
|
SSLSkipVerify bool `json:"ssl_skip_verify"`
|
|
|
|
|
|
|
|
|
|
// Domain
|
|
|
|
|
Domain string `json:"domain"`
|
2026-06-05 17:14:39 +03:00
|
|
|
|
|
|
|
|
// CPU alignment profiles
|
|
|
|
|
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
|
2026-03-27 17:29:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// A zone item from a list
|
|
|
|
|
type ItemZone struct {
|
|
|
|
|
// App ID
|
|
|
|
|
AppID string `json:"app_id"`
|
|
|
|
|
|
|
|
|
|
// If true, all nodes belonging to the given zone will be marked for autostart
|
|
|
|
|
AutoStart bool `json:"autostart"`
|
|
|
|
|
|
|
|
|
|
// Created timestamp
|
|
|
|
|
CreatedTime uint64 `json:"createdTime"`
|
|
|
|
|
|
|
|
|
|
// Decort URL
|
|
|
|
|
DecortURL string `json:"decort_url"`
|
|
|
|
|
|
|
|
|
|
// Deletable flag
|
|
|
|
|
Deletable bool `json:"deletable"`
|
|
|
|
|
|
|
|
|
|
// Description
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
|
|
|
|
|
// DRS
|
|
|
|
|
DRS bool `json:"drs"`
|
|
|
|
|
|
|
|
|
|
// DRS Name
|
|
|
|
|
DRSName string `json:"drs_name"`
|
|
|
|
|
|
|
|
|
|
// DRS UID
|
|
|
|
|
DRSUID string `json:"drs_uid"`
|
|
|
|
|
|
|
|
|
|
// GID
|
|
|
|
|
GID uint64 `json:"gid"`
|
|
|
|
|
|
|
|
|
|
// GUID
|
|
|
|
|
GUID uint64 `json:"guid"`
|
|
|
|
|
|
|
|
|
|
// ID
|
|
|
|
|
ID uint64 `json:"id"`
|
|
|
|
|
|
|
|
|
|
// Name
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
|
|
// List of associated Node IDs
|
|
|
|
|
NodeIDs []uint64 `json:"nodeIds"`
|
|
|
|
|
|
|
|
|
|
// SSO URL
|
|
|
|
|
SSOURL string `json:"sso_url"`
|
|
|
|
|
|
2026-04-17 17:04:11 +03:00
|
|
|
// SSO type
|
|
|
|
|
SSOType string `json:"sso_type"`
|
|
|
|
|
|
2026-03-27 17:29:52 +03:00
|
|
|
// Status
|
|
|
|
|
Status string `json:"status"`
|
|
|
|
|
|
|
|
|
|
// Updated timestamp
|
|
|
|
|
UpdatedTime uint64 `json:"updatedTime"`
|
2026-04-17 17:04:11 +03:00
|
|
|
|
|
|
|
|
// Ping address
|
|
|
|
|
PingAddr string `json:"ping_addr"`
|
|
|
|
|
|
|
|
|
|
// Broadcast address
|
|
|
|
|
BroadcastAddr string `json:"broadcast_addr"`
|
|
|
|
|
|
|
|
|
|
// Skip ssl verify
|
|
|
|
|
SSLSkipVerify bool `json:"ssl_skip_verify"`
|
|
|
|
|
|
|
|
|
|
// Domain
|
|
|
|
|
Domain string `json:"domain"`
|
2026-06-05 17:14:39 +03:00
|
|
|
|
|
|
|
|
// CPU alignment profiles
|
|
|
|
|
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
|
2025-07-15 17:39:18 +03:00
|
|
|
}
|