forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_flavors_items.go
67 lines (46 loc) · 2.18 KB
/
model_flavors_items.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
type FlavorsItems struct {
// 产品规格编码。
SpecCode *string `json:"spec_code,omitempty"`
// 云服务类型编码。
CloudServiceTypeCode *string `json:"cloud_service_type_code,omitempty"`
// 云资源类型编码。
CloudResourceTypeCode *string `json:"cloud_resource_type_code,omitempty"`
// 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 - ha_rw_split: 表示读写分离实例
CacheMode *string `json:"cache_mode,omitempty"`
// 缓存引擎类型。
Engine *string `json:"engine,omitempty"`
// 缓存版本,当缓存引擎为Redis时,取值为3.0、4.0或5.0。
EngineVersion *string `json:"engine_version,omitempty"`
// Redis缓存实例的产品类型。取值当前仅支持: generic:标准类型
ProductType *string `json:"product_type,omitempty"`
// CPU架构类型。取值范围如下: - x86_64:X86架构 - aarch64: ARM架构
CpuType *string `json:"cpu_type,omitempty"`
// 存储类型,取值当前仅支持: DRAM:内存存储
StorageType *string `json:"storage_type,omitempty"`
// 缓存容量(G Byte)。
Capacity *[]string `json:"capacity,omitempty"`
// 计费模式,取值范围如下: - Hourly:按需计费 - Monthly: 包月计费 - Yearly: 包周期计费
BillingMode *[]string `json:"billing_mode,omitempty"`
// 租户侧IP数量。
TenantIpCount *int32 `json:"tenant_ip_count,omitempty"`
// 定价类型,取值如下: - tier: 阶梯定价,一个规格对应多个容量 - normal: 规格和容量一一对应
PricingType *string `json:"pricing_type,omitempty"`
// 是否支持专属云。
IsDec *bool `json:"is_dec,omitempty"`
// 规格的其他信息。
Attrs *[]AttrsObject `json:"attrs,omitempty"`
// 有资源的可用区。
FlavorsAvailableZones *[]FlavorAzObject `json:"flavors_available_zones,omitempty"`
}
func (o FlavorsItems) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "FlavorsItems struct{}"
}
return strings.Join([]string{"FlavorsItems", string(data)}, " ")
}