models

package
v1.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindInfo

type BindInfo struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`
}

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 Gpu

type Gpu struct {

	/* GPU型号 (Optional) */
	Model string `json:"model"`

	/* GPU数量 (Optional) */
	Number int `json:"number"`
}

type InstanceInfo

type InstanceInfo struct {

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`

	/* 绑定资源 (Optional) */
	Bind []BindInfo `json:"bind"`
}

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 InstanceTypeState struct {

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 可售卖情况,true:可售卖、false:已售罄不可用
	- 非预留型:实例规格当前售卖情况,仅供参考。仍可购买,用于抵扣现有资源
	- 预留型:实例抵扣券与实例规格的售卖情况,售罄不可购买
	 (Optional) */
	InStock bool `json:"inStock"`

	/* 在线情况,true:在线、false:已下线不可用 (Optional) */
	Online bool `json:"online"`
}

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 LocalDisk

type LocalDisk struct {

	/* 磁盘类型 (Optional) */
	DiskType string `json:"diskType"`

	/* 磁盘大小 (Optional) */
	DiskSizeGB int `json:"diskSizeGB"`
}

type NonReservedVoucher

type NonReservedVoucher struct {

	/* 实例规格族 (Optional) */
	InstanceTypeFamily string `json:"instanceTypeFamily"`

	/* cpu 核数 / gpu 卡数 (Optional) */
	UnitCount int `json:"unitCount"`
}

type NonReservedVoucherSpec

type NonReservedVoucherSpec struct {

	/* 实例规格族  */
	InstanceTypeFamily string `json:"instanceTypeFamily"`

	/* cpu 核数 / gpu 卡数  */
	UnitCount int `json:"unitCount"`
}

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 ReservedVoucher struct {

	/* 实例规格 (Optional) */
	InstanceType string `json:"instanceType"`

	/* 可用区 (Optional) */
	Az string `json:"az"`

	/* 购买数量 (Optional) */
	UnitCount int `json:"unitCount"`
}

type ReservedVoucherSpec

type ReservedVoucherSpec struct {

	/* 实例规格  */
	InstanceType string `json:"instanceType"`

	/* 可用区  */
	Az string `json:"az"`

	/* 购买数量  */
	UnitCount int `json:"unitCount"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL