Documentation ¶
Index ¶
- type BindInfo
- type Charge
- type ChargeSpec
- type Gpu
- type InstanceInfo
- type InstanceType
- type InstanceTypeState
- type InstanceVoucher
- type InstanceVoucherSpec
- type InstanceVoucherType
- type LocalDisk
- type NonReservedVoucher
- type NonReservedVoucherSpec
- type Quota
- type ReservedVoucher
- type ReservedVoucherSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charge ¶
type Charge struct { /* 费用支付状态 (Optional) */ ChargeStatus string `json:"chargeStatus"` /* 计费开始时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */ ChargeStartTime string `json:"chargeStartTime"` /* 过期时间,预付费资源的到期时间,遵循ISO8601标准,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ssZ (Optional) */ ChargeExpiredTime string `json:"chargeExpiredTime"` }
type ChargeSpec ¶
type ChargeSpec struct { /* 计费单位,取值为:month、year,默认为month */ ChargeUnit string `json:"chargeUnit"` /* 计费时长。当chargeUnit为month时取值为:1 ~ 9,当chargeUnit为year时取值为:1、2、3 */ ChargeDuration int `json:"chargeDuration"` /* True=:OPEN——开通自动续费、False=CLOSE—— 不开通自动续费,默认为CLOSE (Optional) */ AutoRenew *bool `json:"autoRenew"` }
type InstanceInfo ¶
type InstanceType ¶
type InstanceType struct { /* 实例规格类型 (Optional) */ Family string `json:"family"` /* 实例规格,如g.n2.medium (Optional) */ InstanceType string `json:"instanceType"` /* 实例规格代数 (Optional) */ Generation int `json:"generation"` /* Cpu个数 (Optional) */ Cpu int `json:"cpu"` /* 内存大小 (Optional) */ MemoryMB int `json:"memoryMB"` /* 支持弹性网卡的数量 (Optional) */ NicLimit int `json:"nicLimit"` /* 描述 (Optional) */ Desc string `json:"desc"` /* 规格状态 (Optional) */ State []InstanceTypeState `json:"state"` /* Gpu配置 (Optional) */ Gpu Gpu `json:"gpu"` /* 本地缓存盘配置 (Optional) */ LocalDisks []LocalDisk `json:"localDisks"` }
type InstanceTypeState ¶
type InstanceVoucher ¶
type InstanceVoucher struct { /* 实例抵扣券 ID (Optional) */ InstanceVoucherId string `json:"instanceVoucherId"` /* 实例抵扣券名称 (Optional) */ Name string `json:"name"` /* 描述 (Optional) */ Description string `json:"description"` /* 产品类型 (Optional) */ ResourceType string `json:"resourceType"` /* 资源分配方式 (Optional) */ ReservedType string `json:"reservedType"` /* 非资源预留型实例抵扣券参数 (Optional) */ NonReservedVoucher NonReservedVoucher `json:"nonReservedVoucher"` /* 实例抵扣券状态 pending, active, expired, deleting (Optional) */ Status string `json:"status"` /* 创建时间 (Optional) */ CreatedTime string `json:"createdTime"` /* 计费配置信息 (Optional) */ Charge Charge `json:"charge"` }
type InstanceVoucherSpec ¶
type InstanceVoucherSpec struct { /* 实例抵扣券名称,支持中文、数字、大小写字母及英文下划线“_”及中划线“-”,不超过32个字符 */ Name string `json:"name"` /* 描述,不超过256个字符 (Optional) */ Description *string `json:"description"` /* 产品类型 支持[vm, nativecontainer, pod] */ ResourceType string `json:"resourceType"` /* 资源分配方式 支持[nonReserved] */ ReservedType string `json:"reservedType"` /* 非资源预留型实例抵扣券参数,reservedType 为 nonReserved 时生效 (Optional) */ NonReservedVoucherSpec *NonReservedVoucherSpec `json:"nonReservedVoucherSpec"` /* 计费模式 (Optional) */ Charge *ChargeSpec `json:"charge"` }
type InstanceVoucherType ¶
type InstanceVoucherType struct { /* 实例规格族 (Optional) */ InstanceTypeFamily string `json:"instanceTypeFamily"` /* 实例规格 (Optional) */ InstanceTypes []InstanceType `json:"instanceTypes"` }
type NonReservedVoucher ¶
type NonReservedVoucherSpec ¶
type Quota ¶
type Quota struct { /* 产品类型 (Optional) */ ResourceType string `json:"resourceType"` /* 资源分配方式 (Optional) */ ReservedType string `json:"reservedType"` /* cpu 核数上限 (Optional) */ CpuLimit int `json:"cpuLimit"` /* cpu 已使用核数 (Optional) */ CpuUsed int `json:"cpuUsed"` /* gpu 卡数上限 (Optional) */ GpuLimit int `json:"gpuLimit"` /* gpu 已使用卡数 (Optional) */ GpuUsed int `json:"gpuUsed"` }
type ReservedVoucher ¶
type ReservedVoucherSpec ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.