models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 1 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzId

type AzId struct {

	/* 缓存Redis主实例所在区域可用区ID (Optional) */
	Master string `json:"master"`

	/* 缓存Redis从实例所在区域可用区ID (Optional) */
	Slave string `json:"slave"`
}

type AzIdSpec

type AzIdSpec struct {

	/* 缓存Redis主实例所在区域可用区ID (Optional) */
	Master *string `json:"master"`

	/* 缓存Redis从实例所在区域可用区ID (Optional) */
	Slave *string `json:"slave"`
}

type Backup added in v1.1.0

type Backup struct {

	/* 备份操作ID  */
	BaseId string `json:"baseId"`

	/* 备份文件的名称  */
	BackupFileName string `json:"backupFileName"`

	/* 备份实例ID  */
	SpaceId string `json:"spaceId"`

	/* 备份开始时间  */
	BackupStartTime string `json:"backupStartTime"`

	/* 备份结束时间  */
	BackupEndTime string `json:"backupEndTime"`

	/* 备份类型,1表示手动备份,0表示自动备份  */
	BackupType int `json:"backupType"`

	/* 备份文件大小,如果实例是集群版,则表示每个分片备份文件大小的总和  */
	BackupSize int `json:"backupSize"`

	/* 备份任务状态状态,1表示失败,2表示成功  */
	BackupStatus int `json:"backupStatus"`

	/* 备份文件下载的URL地址,集群版有多个URL地址  */
	BackupDownloadURL string `json:"backupDownloadURL"`
}

type CacheInstance

type CacheInstance struct {

	/* 实例ID (Optional) */
	CacheInstanceId string `json:"cacheInstanceId"`

	/* 实例名称 (Optional) */
	CacheInstanceName string `json:"cacheInstanceName"`

	/* 实例规格代码,参见<a href="https://www.jdcloud.com/help/detail/411/isCatalog/1">实例规格代码</a> (Optional) */
	CacheInstanceClass string `json:"cacheInstanceClass"`

	/* 容量,单位MB (Optional) */
	CacheInstanceMemoryMB int `json:"cacheInstanceMemoryMB"`

	/* 实例状态,running:运行,error:错误,creating:创建中,changing:变配中,deleting:删除中 (Optional) */
	CacheInstanceStatus string `json:"cacheInstanceStatus"`

	/* 实例描述 (Optional) */
	CacheInstanceDescription string `json:"cacheInstanceDescription"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* az信息 (Optional) */
	AzId AzId `json:"azId"`

	/* 所属VPC的ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 所属子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 访问域名 (Optional) */
	ConnectionDomain string `json:"connectionDomain"`

	/* 端口 (Optional) */
	Port int `json:"port"`

	/* 计费信息 (Optional) */
	Charge charge.Charge `json:"charge"`

	/* 实例版本 (Optional) */
	InstanceVersion string `json:"instanceVersion"`

	/* 是否免密 (Optional) */
	Auth bool `json:"auth"`
}

type CacheInstanceSpec

type CacheInstanceSpec struct {

	/* 缓存redis实例所属的私有网络ID  */
	VpcId string `json:"vpcId"`

	/* 缓存redis实例在私有网络下所属的子网ID  */
	SubnetId string `json:"subnetId"`

	/* 缓存redis实例名称,只支持数字、字母、英文下划线、中文,且不少于2字符不超过32字符  */
	CacheInstanceName string `json:"cacheInstanceName"`

	/* 缓存redis实例规格代码,参见实例规格代码表<a href="https://www.jdcloud.com/help/detail/411/isCatalog/1">实例规格代码</a>。  */
	CacheInstanceClass string `json:"cacheInstanceClass"`

	/* 密码,为空即为免密,包含且只支持字母及数字,不少于8字符不超过16字符 (Optional) */
	Password *string `json:"password"`

	/* 缓存Redis实例所在区域可用区ID信息  */
	AzId *AzIdSpec `json:"azId"`

	/* 缓存Redis实例描述,不能超过256个字符 (Optional) */
	CacheInstanceDescription *string `json:"cacheInstanceDescription"`
}

type ConfigItem added in v1.1.0

type ConfigItem struct {

	/* configName目前只支持以下参数:
	maxmemory-policy:内存剔除策略的最大使用内存限制
	hash-max-ziplist-entries:用ziplist编码实现的哈希对象,ziplist中最多能存放entry个数的阈值
	hash-max-ziplist-value:用ziplist编码实现的哈希对象,ziplist中能存放的value长度的最大值
	list-max-ziplist-entries:用ziplist编码实现的列表对象,ziplist中最多能存放entry个数的阈值
	list-max-ziplist-value:用ziplist编码实现的列表对象,ziplist中能存放的value长度的最大值
	set-max-intset-entries:用intset编码实现的集合对象,intset中最多能存放entry个数的阈值
	zset-max-ziplist-entries:用ziplist编码实现的有序集合对象,ziplist中最多能存放entry个数的阈值
	zset-max-ziplist-value:用ziplist编码实现的有序集合对象,ziplist中能存放的value长度的最大值
	slowlog-log-slower-than:慢查询日志超时时间,单位微秒,负数表示不开启
	notify-keyspace-events:事件通知
	*/
	ConfigName string `json:"configName"`

	/* 参数的配置值,参考值如下:
	maxmemory-policy:[volatile-lru , allkeys-lru , volatile-random , allkeys-random , volatile-ttl , noeviction]
	hash-max-ziplist-entries:[1-10000]
	hash-max-ziplist-value:[1-10000]
	list-max-ziplist-entries:[1-10000]
	list-max-ziplist-value:[1-10000]
	set-max-intset-entries:[1-10000]
	zset-max-ziplist-entries:[1-10000]
	zset-max-ziplist-value:[1-10000]
	slowlog-log-slower-than:[1-10000]
	notify-keyspace-events:[K , E , g , $ , l , s , h , z , x , e , A]
	*/
	ConfigValue string `json:"configValue"`
}

type InstanceClass

type InstanceClass struct {

	/* 实例规格代码,参见实例规格代码表 (Optional) */
	InstanceClass string `json:"instanceClass"`

	/* cpu (Optional) */
	Cpu int `json:"cpu"`

	/* 内存 (Optional) */
	MemoryMB int `json:"memoryMB"`

	/* 磁盘 (Optional) */
	DiskGB int `json:"diskGB"`

	/* 最大链接数 (Optional) */
	MaxConnetction int `json:"maxConnetction"`

	/* 带宽 (Optional) */
	BandwidthMbps int `json:"bandwidthMbps"`
}

type OrderStatus added in v1.1.0

type OrderStatus struct {

	/* 订单总数 (Optional) */
	Total int `json:"total"`

	/* 成功数 (Optional) */
	Success int `json:"success"`

	/* 失败数 (Optional) */
	Fail int `json:"fail"`

	/* 正在处理数 (Optional) */
	InProcess int `json:"inProcess"`

	/* 成功的资源Id (Optional) */
	ResourceIds []string `json:"resourceIds"`
}

Jump to

Keyboard shortcuts

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