This commit is contained in:
2024-03-06 16:50:27 +03:00
parent 16cad7a3e7
commit 83bf1fb1fa
52 changed files with 715 additions and 1968 deletions

View File

@@ -53,12 +53,3 @@ func (lrc ListResourceConsumption) IDs() []uint64 {
}
return res
}
// IDs gets array of ResourceGroupIDs from ListAffinityGroup struct
func (lag ListAffinityGroup) IDs() []uint64 {
res := make([]uint64, 0, len(lag))
for _, ag := range lag {
res = append(res, ag.ID)
}
return res
}

View File

@@ -340,7 +340,6 @@ type ItemAffinityGroup struct {
// List of affinity group
type ListAffinityGroup []ItemAffinityGroup
// List of affinity groups
type ListAffinityGroups struct {
// Data
Data []map[string]ListAffinityGroup `json:"data"`
@@ -486,9 +485,6 @@ type RecordLoadBalancer struct {
// Access Control List
ACL interface{} `json:"acl"`
// BackendHAIP
BackendHAIP string `json:"backendHAIP"`
// List of Backends
Backends ListBackends `json:"backends"`
@@ -513,9 +509,6 @@ type RecordLoadBalancer struct {
// External network ID
ExtNetID uint64 `json:"extnetId"`
// FrontendHAIP
FrontendHAIP string `json:"frontendHAIP"`
// List of frontends
Frontends ListFrontends `json:"frontends"`