You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
package storagepolicy
|
|
|
|
type ListStoragePolicies struct {
|
|
Data []ItemStoragePolicy `json:"data"`
|
|
EntryCount uint64 `json:"entryCount"`
|
|
}
|
|
|
|
type ItemStoragePolicy struct {
|
|
ID uint64 `json:"id"`
|
|
GUID uint64 `json:"guid"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AccessSepPools ListAccessSepPools `json:"access_seps_pools"`
|
|
Status string `json:"status"`
|
|
LimitIOPS uint64 `json:"limit_iops"`
|
|
Usage Usage `json:"usage"`
|
|
}
|
|
|
|
type InfoStoragePolicy struct {
|
|
ID uint64 `json:"id"`
|
|
GUID uint64 `json:"guid"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
AccessSepPools ListAccessSepPools `json:"access_seps_pools"`
|
|
Status string `json:"status"`
|
|
LimitIOPS uint64 `json:"limit_iops"`
|
|
Usage Usage `json:"usage"`
|
|
}
|
|
|
|
type ListAccessSepPools []AccessSepPool
|
|
|
|
type AccessSepPool struct {
|
|
SepID uint64 `json:"sep_id"`
|
|
PoolNames []string `json:"pool_names"`
|
|
}
|
|
|
|
type Usage struct {
|
|
Accounts []uint64 `json:"accounts"`
|
|
Resgroups []uint64 `json:"resgroups"`
|
|
}
|