forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_bandwidth.go
41 lines (29 loc) · 1.2 KB
/
model_bandwidth.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
33
34
35
36
37
38
39
40
41
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// Bandwidth 带宽信息响应
type Bandwidth struct {
// 云手机服务器的带宽名称
BandWidthName *string `json:"band_width_name,omitempty"`
// 云手机服务器的带宽唯一标识
BandWidthId *string `json:"band_width_id,omitempty"`
// 云手机服务器的带宽大小
BandWidthSize *int32 `json:"band_width_size,omitempty"`
// 云手机服务器带宽的计费方式 取值范围: - 0,bandwidth, 按带宽计费 - 1,traffic, 按流量计费
BandWidthChargeMode *int32 `json:"band_width_charge_mode,omitempty"`
// 云手机服务器的带宽类型 - 0,per,独享带宽 - 1,whole,共享带宽
BandWidthShareType *int32 `json:"band_width_share_type,omitempty"`
// 带宽创建时间 时间格式为UTC,YYYY-MM-DDTHH:MM:SSZ
CreateTime *string `json:"create_time,omitempty"`
// 带宽更新时间 时间格式为UTC,YYYY-MM-DDTHH:MM:SSZ
UpdateTime *string `json:"update_time,omitempty"`
}
func (o Bandwidth) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "Bandwidth struct{}"
}
return strings.Join([]string{"Bandwidth", string(data)}, " ")
}