v1.7.6
This commit is contained in:
@@ -53,3 +53,14 @@ func (lrc ListResourceConsumption) IDs() []uint64 {
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// IDs gets array of ResourceGroupIDs from ListAffinityGroup struct
|
||||
func (lag ListAffinityGroups) IDs() []uint64 {
|
||||
res := make([]uint64, 0, len(lag.Data))
|
||||
for _, ag := range lag.Data {
|
||||
for _, v := range ag {
|
||||
res = append(res, v...)
|
||||
}
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
@@ -331,18 +331,10 @@ type ItemAffinityGroupComputes struct {
|
||||
// List of affinity groups
|
||||
type ListAffinityGroupsComputes []ItemAffinityGroupComputes
|
||||
|
||||
// Main information about
|
||||
type ItemAffinityGroup struct {
|
||||
ID uint64 `json:"id"`
|
||||
NodeID uint64 `json:"node_id"`
|
||||
}
|
||||
|
||||
// List of affinity group
|
||||
type ListAffinityGroup []ItemAffinityGroup
|
||||
|
||||
// List of affinity groups
|
||||
type ListAffinityGroups struct {
|
||||
// Data
|
||||
Data []map[string]ListAffinityGroup `json:"data"`
|
||||
Data []map[string][]uint64 `json:"data"`
|
||||
|
||||
// Entry count
|
||||
EntryCount uint64 `json:"entryCount"`
|
||||
@@ -485,6 +477,9 @@ type RecordLoadBalancer struct {
|
||||
// Access Control List
|
||||
ACL interface{} `json:"acl"`
|
||||
|
||||
// BackendHAIP
|
||||
BackendHAIP string `json:"backendHAIP"`
|
||||
|
||||
// List of Backends
|
||||
Backends ListBackends `json:"backends"`
|
||||
|
||||
@@ -509,6 +504,9 @@ type RecordLoadBalancer struct {
|
||||
// External network ID
|
||||
ExtNetID uint64 `json:"extnetId"`
|
||||
|
||||
// FrontendHAIP
|
||||
FrontendHAIP string `json:"frontendHAIP"`
|
||||
|
||||
// List of frontends
|
||||
Frontends ListFrontends `json:"frontends"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user