forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_quota_show_resp.go
32 lines (23 loc) · 1.24 KB
/
model_quota_show_resp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// QuotaShowResp 资源配额实例详情
type QuotaShowResp struct {
// 功能说明:根据type过滤查询指定类型的配额 取值范围:vpc,subnet,securityGroup,securityGroupRule,publicIp,vpn,vpngw,vpcPeer,firewall,shareBandwidth,shareBandwidthIP
Type *string `json:"type,omitempty"`
// 功能说明:已创建的资源个数 取值范围:0~quota数
Used *int32 `json:"used,omitempty"`
// 功能说明:资源的最大配额数 取值范围:各类型资源默认配额数~Integer最大值 约束:资源的默认配额数可以修改,而且配额需要提前在底层配置,参考默认配置为:vpc默认5,子网默认100,安全组默认100,安全组规则默认5000,弹性公网IP默认10,vpn默认5,vpngw默认2,vpcPeer默认50,firewall默认200,shareBandwidth默认5,shareBandwidthIP默认20
Quota *int32 `json:"quota,omitempty"`
// 允许修改的配额最小值
Min *int32 `json:"min,omitempty"`
}
func (o QuotaShowResp) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "QuotaShowResp struct{}"
}
return strings.Join([]string{"QuotaShowResp", string(data)}, " ")
}