v15.0.0
This commit is contained in:
@@ -1,5 +1,65 @@
|
||||
package zone
|
||||
|
||||
// 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"`
|
||||
}
|
||||
|
||||
type ListZones struct {
|
||||
// Entry count
|
||||
EntryCount uint64 `json:"entryCount"`
|
||||
@@ -96,6 +156,9 @@ type RecordZone struct {
|
||||
|
||||
// Domain
|
||||
Domain string `json:"domain"`
|
||||
|
||||
// CPU alignment profiles
|
||||
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
|
||||
}
|
||||
|
||||
// A zone item from a list
|
||||
@@ -165,4 +228,7 @@ type ItemZone struct {
|
||||
|
||||
// Domain
|
||||
Domain string `json:"domain"`
|
||||
|
||||
// CPU alignment profiles
|
||||
CpuAlignmentProfiles []CpuAlignmentProfile `json:"cpu_alignment_profiles"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user