forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_details_body.go
44 lines (31 loc) · 1.21 KB
/
model_details_body.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
42
43
44
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// DetailsBody 详细信息结构体
type DetailsBody struct {
// 变更前的容量,仅在变更规格时有值
OldCapacity *string `json:"old_capacity,omitempty"`
// 变更后的容量,仅在变更规格时有值
NewCapacity *string `json:"new_capacity,omitempty"`
// 是否开启公网访问,仅在开启公网访问时有值
EnablePublicIp *bool `json:"enable_public_ip,omitempty"`
// 公网IP的ID,仅在开启公网访问时有值
PublicIpId *string `json:"public_ip_id,omitempty"`
// 公网IP地址,仅在开启公网访问时有值
PublicIpAddress *string `json:"public_ip_address,omitempty"`
// 是否开启ssl,仅在开启ssl时有值
EnableSsl *bool `json:"enable_ssl,omitempty"`
// 变更前的缓存类型,仅在变更规格时有值
OldCacheMode *string `json:"old_cache_mode,omitempty"`
// 变更后的缓存类型,仅在变更规格时有值
NewCacheMode *string `json:"new_cache_mode,omitempty"`
}
func (o DetailsBody) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "DetailsBody struct{}"
}
return strings.Join([]string{"DetailsBody", string(data)}, " ")
}