umem

package
v0.0.0-...-c113622 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package umem include resources of ucloud umem product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUMemSpaceRequest

type CreateUMemSpaceRequest struct {
	request.CommonBase

	// 内存大小, 单位:GB, 范围[1~1024]
	Size *int `required:"true"`

	// 空间名称,长度(6<=size<=63)
	Name *string `required:"true"`

	// 协议:memcache, redis (默认redis).注意:redis无single类型
	Protocol *string `required:"false"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`

	// Year , Month, Dynamic, Trial 默认: Month
	ChargeType *string `required:"false"`

	// 购买时长 默认: 1
	Quantity *int `required:"false"`

	//
	Tag *string `required:"false"`

	// URedis密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。
	Password *string `required:"false"`

	// 使用的代金券id
	CouponId *string `required:"false"`

	// VPC 的 ID
	VPCId *string `required:"false"`

	// Subnet 的 ID
	SubnetId *string `required:"false"`
}

CreateUMemSpaceRequest is request schema for CreateUMemSpace action

type CreateUMemSpaceResponse

type CreateUMemSpaceResponse struct {
	response.CommonBase

	// 创建内存空间ID列表
	SpaceId string
}

CreateUMemSpaceResponse is response schema for CreateUMemSpace action

type CreateUMemcacheGroupRequest

type CreateUMemcacheGroupRequest struct {
	request.CommonBase

	// 请求创建组的名称 范围[6-60]
	Name *string `required:"true"`

	// 每个节点的内存大小,单位GB,默认1GB 目前仅支持1/2/4/8/16/32这几档
	Size *int `required:"false"`

	// 配置ID,目前仅支持默认配置id 默认配置id:"9a891891-c245-4b66-bce8-67e59430d67c"
	ConfigId *string `required:"false"`

	// Memcache版本信息,默认为1.4.31
	Version *string `required:"false"`

	// 计费模式,Year , Month, Dynamic 默认: Month
	ChargeType *string `required:"false"`

	// 购买时长,默认为1
	Quantity *int `required:"false"`

	// 业务组 默认:Default
	Tag *string `required:"false"`

	//
	Protocol *string `required:"false"`

	// 代金券ID
	CouponId *string `required:"false"`

	// VPC 的 ID
	VPCId *string `required:"false"`

	// Subnet 的 ID
	SubnetId *string `required:"false"`
}

CreateUMemcacheGroupRequest is request schema for CreateUMemcacheGroup action

type CreateUMemcacheGroupResponse

type CreateUMemcacheGroupResponse struct {
	response.CommonBase

	// 创建的组ID
	GroupId string
}

CreateUMemcacheGroupResponse is response schema for CreateUMemcacheGroup action

type CreateURedisGroupRequest

type CreateURedisGroupRequest struct {
	request.CommonBase

	// 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_)
	Name *string `required:"true"`

	// 是否开启高可用,enable或disable
	HighAvailability *string `required:"true"`

	// 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种
	Size *int `required:"false"`

	// 是否自动备份,enable或disable,默认disable
	AutoBackup *string `required:"false"`

	// 自动备份开始时间,范围[0-23],默认3点
	BackupTime *int `required:"false"`

	// 配置ID,目前仅支持默认配置id 默认配置id:"03f58ca9-b64d-4bdd-abc7-c6b9a46fd801"
	ConfigId *string `required:"false"`

	// Redis版本信息(详见DescribeURedisVersion返回结果),默认版本3.0
	Version *string `required:"false"`

	// 计费模式,Year , Month, Dynamic 默认: Month
	ChargeType *string `required:"false"`

	// 购买时长,默认为1
	Quantity *int `required:"false"`

	// 业务组名称
	Tag *string `required:"false"`

	// 初始化密码,需要 base64 编码
	Password *string `required:"false"`

	// 有此项代表从备份中创建,无代表正常创建
	BackupId *string `required:"false"`

	// 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同)
	SlaveZone *string `required:"false"`

	// Master Redis Group的ID,创建只读Slave时,必须填写
	MasterGroupId *string `required:"false"`

	// 代金券ID
	CouponId *string `required:"false"`

	// VPC 的 ID
	VPCId *string `required:"false"`

	// Subnet 的 ID
	SubnetId *string `required:"false"`
}

CreateURedisGroupRequest is request schema for CreateURedisGroup action

type CreateURedisGroupResponse

type CreateURedisGroupResponse struct {
	response.CommonBase

	// 创建的组ID
	GroupId string
}

CreateURedisGroupResponse is response schema for CreateURedisGroup action

type DeleteUMemSpaceRequest

type DeleteUMemSpaceRequest struct {
	request.CommonBase

	// UMem内存空间ID
	SpaceId *string `required:"true"`
}

DeleteUMemSpaceRequest is request schema for DeleteUMemSpace action

type DeleteUMemSpaceResponse

type DeleteUMemSpaceResponse struct {
	response.CommonBase
}

DeleteUMemSpaceResponse is response schema for DeleteUMemSpace action

type DeleteUMemcacheGroupRequest

type DeleteUMemcacheGroupRequest struct {
	request.CommonBase

	// 组ID
	GroupId *string `required:"true"`
}

DeleteUMemcacheGroupRequest is request schema for DeleteUMemcacheGroup action

type DeleteUMemcacheGroupResponse

type DeleteUMemcacheGroupResponse struct {
	response.CommonBase
}

DeleteUMemcacheGroupResponse is response schema for DeleteUMemcacheGroup action

type DeleteURedisGroupRequest

type DeleteURedisGroupRequest struct {
	request.CommonBase

	// 组ID
	GroupId *string `required:"true"`
}

DeleteURedisGroupRequest is request schema for DeleteURedisGroup action

type DeleteURedisGroupResponse

type DeleteURedisGroupResponse struct {
	response.CommonBase
}

DeleteURedisGroupResponse is response schema for DeleteURedisGroup action

type DescribeUMemPriceRequest

type DescribeUMemPriceRequest struct {
	request.CommonBase

	// 购买umem大小,单位:GB,范围[1~1024]
	Size *int `required:"true"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`

	// Year, Month, Dynamic,Trial 如果不指定,则一次性获取三种计费
	ChargeType *string `required:"false"`

	// 购买UMem的时长,默认值为1
	Quantity *int `required:"false"`

	//
	RegionFlag *bool `required:"false"`
}

DescribeUMemPriceRequest is request schema for DescribeUMemPrice action

type DescribeUMemPriceResponse

type DescribeUMemPriceResponse struct {
	response.CommonBase

	// 价格 参数见 UMemPriceSet
	DataSet []UMemPriceSet
}

DescribeUMemPriceResponse is response schema for DescribeUMemPrice action

type DescribeUMemSpaceRequest

type DescribeUMemSpaceRequest struct {
	request.CommonBase

	// 数据偏移量, 默认为0
	Offset *int `required:"false"`

	// 返回数据长度, 默认为20
	Limit *int `required:"false"`

	// 内存空间ID (无ID,则获取所有)
	SpaceId *string `required:"false"`
}

DescribeUMemSpaceRequest is request schema for DescribeUMemSpace action

type DescribeUMemSpaceResponse

type DescribeUMemSpaceResponse struct {
	response.CommonBase

	// JSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSet
	DataSet []UMemSpaceSet

	// 根据过滤条件得到的总数
	TotalCount int
}

DescribeUMemSpaceResponse is response schema for DescribeUMemSpace action

type DescribeUMemUpgradePriceRequest

type DescribeUMemUpgradePriceRequest struct {
	request.CommonBase

	// 购买UMem大小,单位:GB
	Size *int `required:"true"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"true"`

	// 需要升级的空间的SpaceId
	SpaceId *string `required:"true"`
}

DescribeUMemUpgradePriceRequest is request schema for DescribeUMemUpgradePrice action

type DescribeUMemUpgradePriceResponse

type DescribeUMemUpgradePriceResponse struct {
	response.CommonBase

	// 价格
	Price float64
}

DescribeUMemUpgradePriceResponse is response schema for DescribeUMemUpgradePrice action

type DescribeUMemcacheGroupRequest

type DescribeUMemcacheGroupRequest struct {
	request.CommonBase

	// 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit
	GroupId *string `required:"false"`

	// 分页显示的起始偏移, 默认值为0
	Offset *int `required:"false"`

	// 分页显示的条目数, 默认值为20
	Limit *int `required:"false"`
}

DescribeUMemcacheGroupRequest is request schema for DescribeUMemcacheGroup action

type DescribeUMemcacheGroupResponse

type DescribeUMemcacheGroupResponse struct {
	response.CommonBase

	// 组的总的节点个数
	TotalCount int

	// 组列表,参见 UMemcacheGroupSet
	DataSet []UMemcacheGroupSet
}

DescribeUMemcacheGroupResponse is response schema for DescribeUMemcacheGroup action

type DescribeUMemcachePriceRequest

type DescribeUMemcachePriceRequest struct {
	request.CommonBase

	// 容量大小,单位:GB 取值范围[1-32]
	Size *int `required:"true"`

	// 计费模式,Year, Month, Dynamic,默认: Dynamic 默认: 获取所有计费模式的价格
	ChargeType *string `required:"false"`

	// 购买umemcache的时长,默认值为1
	Quantity *int `required:"false"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`
}

DescribeUMemcachePriceRequest is request schema for DescribeUMemcachePrice action

type DescribeUMemcachePriceResponse

type DescribeUMemcachePriceResponse struct {
	response.CommonBase

	// 价格列表, 参见 UMemcachePriceSet
	DataSet []UMemcachePriceSet
}

DescribeUMemcachePriceResponse is response schema for DescribeUMemcachePrice action

type DescribeUMemcacheUpgradePriceRequest

type DescribeUMemcacheUpgradePriceRequest struct {
	request.CommonBase

	// 购买umemcache大小,单位:GB
	Size *int `required:"true"`

	// 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口
	GroupId *string `required:"true"`
}

DescribeUMemcacheUpgradePriceRequest is request schema for DescribeUMemcacheUpgradePrice action

type DescribeUMemcacheUpgradePriceResponse

type DescribeUMemcacheUpgradePriceResponse struct {
	response.CommonBase

	// 价格,单位:元
	Price float64
}

DescribeUMemcacheUpgradePriceResponse is response schema for DescribeUMemcacheUpgradePrice action

type DescribeURedisBackupRequest

type DescribeURedisBackupRequest struct {
	request.CommonBase

	// 分页显示的起始偏移, 默认值为0
	Offset *int `required:"false"`

	// 分页显示的条目数, 默认值为10
	Limit *int `required:"false"`

	// 组的ID
	GroupId *string `required:"false"`
}

DescribeURedisBackupRequest is request schema for DescribeURedisBackup action

type DescribeURedisBackupResponse

type DescribeURedisBackupResponse struct {
	response.CommonBase

	// 用户名下总的备份个数
	TotalCount int

	// 备份列表 参见 URedisBackupSet
	DataSet []URedisBackupSet
}

DescribeURedisBackupResponse is response schema for DescribeURedisBackup action

type DescribeURedisBackupURLRequest

type DescribeURedisBackupURLRequest struct {
	request.CommonBase

	// 备份ID
	BackupId *string `required:"true"`

	//
	GroupId *string `required:"true"`

	// 是否是跨机房URedis(默认false)
	RegionFlag *bool `required:"false"`
}

DescribeURedisBackupURLRequest is request schema for DescribeURedisBackupURL action

type DescribeURedisBackupURLResponse

type DescribeURedisBackupURLResponse struct {
	response.CommonBase

	// 备份文件公网的地址
	BackupURL string
}

DescribeURedisBackupURLResponse is response schema for DescribeURedisBackupURL action

type DescribeURedisGroupRequest

type DescribeURedisGroupRequest struct {
	request.CommonBase

	// 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit
	GroupId *string `required:"false"`

	// 分页显示的起始偏移, 默认值为0
	Offset *int `required:"false"`

	// 分页显示的条目数, 默认值为20
	Limit *int `required:"false"`
}

DescribeURedisGroupRequest is request schema for DescribeURedisGroup action

type DescribeURedisGroupResponse

type DescribeURedisGroupResponse struct {
	response.CommonBase

	// 组的总的节点个数
	TotalCount int

	// 组列表 参见 URedisGroupSet
	DataSet []URedisGroupSet
}

DescribeURedisGroupResponse is response schema for DescribeURedisGroup action

type DescribeURedisPriceRequest

type DescribeURedisPriceRequest struct {
	request.CommonBase

	// 量大小,单位:GB  取值范围[1-32]
	Size *int `required:"true"`

	// 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费
	ChargeType *string `required:"false"`

	// 计费模式为Dynamic时,购买的时长, 默认为1
	Quantity *int `required:"false"`

	// 是否是跨机房URedis(默认false)
	RegionFlag *bool `required:"false"`

	// 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis
	ProductType *string `required:"false"`

	//
	Type *string `required:"false"`
}

DescribeURedisPriceRequest is request schema for DescribeURedisPrice action

type DescribeURedisPriceResponse

type DescribeURedisPriceResponse struct {
	response.CommonBase

	// 价格 参数见 UMemPriceSet
	DataSet []URedisPriceSet
}

DescribeURedisPriceResponse is response schema for DescribeURedisPrice action

type DescribeURedisUpgradePriceRequest

type DescribeURedisUpgradePriceRequest struct {
	request.CommonBase

	// 购买uredis大小,单位:GB,范围是[1-32]
	Size *int `required:"true"`

	// 要升级的空间的GroupId,请参考DescribeURedisGroup接口
	GroupId *string `required:"true"`

	//
	Type *string `required:"false"`
}

DescribeURedisUpgradePriceRequest is request schema for DescribeURedisUpgradePrice action

type DescribeURedisUpgradePriceResponse

type DescribeURedisUpgradePriceResponse struct {
	response.CommonBase

	// 扩容差价,单位: 元,保留小数点后两位有效数字
	Price float64
}

DescribeURedisUpgradePriceResponse is response schema for DescribeURedisUpgradePrice action

type GetUMemSpaceStateRequest

type GetUMemSpaceStateRequest struct {
	request.CommonBase

	// 内存空间ID
	SpaceId *string `required:"true"`
}

GetUMemSpaceStateRequest is request schema for GetUMemSpaceState action

type GetUMemSpaceStateResponse

type GetUMemSpaceStateResponse struct {
	response.CommonBase

	// Starting:创建中 Running:运行中 Fail:失败
	State string
}

GetUMemSpaceStateResponse is response schema for GetUMemSpaceState action

type ModifyUMemSpaceNameRequest

type ModifyUMemSpaceNameRequest struct {
	request.CommonBase

	// UMem内存空间ID
	SpaceId *string `required:"true"`

	// 新的名称,长度(6<=size<=63)
	Name *string `required:"true"`
}

ModifyUMemSpaceNameRequest is request schema for ModifyUMemSpaceName action

type ModifyUMemSpaceNameResponse

type ModifyUMemSpaceNameResponse struct {
	response.CommonBase
}

ModifyUMemSpaceNameResponse is response schema for ModifyUMemSpaceName action

type ModifyURedisGroupNameRequest

type ModifyURedisGroupNameRequest struct {
	request.CommonBase

	// 组的ID
	GroupId *string `required:"true"`

	// Redis组名称 (范围[6-63],只能包含英文、数字以及符号-和_)
	Name *string `required:"true"`
}

ModifyURedisGroupNameRequest is request schema for ModifyURedisGroupName action

type ModifyURedisGroupNameResponse

type ModifyURedisGroupNameResponse struct {
	response.CommonBase
}

ModifyURedisGroupNameResponse is response schema for ModifyURedisGroupName action

type ResizeUDredisSpaceRequest

type ResizeUDredisSpaceRequest struct {
	request.CommonBase

	// 高性能UMem 内存空间Id
	SpaceId *string `required:"true"`

	// 内存大小, 单位:GB (需要大于原size,<= 1024)
	Size *int `required:"true"`

	// 使用的代金券Id
	CouponId *string `required:"false"`
}

ResizeUDredisSpaceRequest is request schema for ResizeUDredisSpace action

type ResizeUDredisSpaceResponse

type ResizeUDredisSpaceResponse struct {
	response.CommonBase
}

ResizeUDredisSpaceResponse is response schema for ResizeUDredisSpace action

type ResizeUMemSpaceRequest

type ResizeUMemSpaceRequest struct {
	request.CommonBase

	// UMem 内存空间Id
	SpaceId *string `required:"true"`

	// 内存大小, 单位:GB (需要大于原size,<= 1024)
	Size *int `required:"true"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`

	//
	ChargeType *string `required:"false"`

	// 使用的代金券Id
	CouponId *string `required:"false"`
}

ResizeUMemSpaceRequest is request schema for ResizeUMemSpace action

type ResizeUMemSpaceResponse

type ResizeUMemSpaceResponse struct {
	response.CommonBase
}

ResizeUMemSpaceResponse is response schema for ResizeUMemSpace action

type ResizeURedisGroupRequest

type ResizeURedisGroupRequest struct {
	request.CommonBase

	// 组ID
	GroupId *string `required:"true"`

	// 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格
	Size *int `required:"true"`

	//
	ChargeType *string `required:"false"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`

	// 代金券ID 请参考DescribeCoupon接口
	CouponId *int `required:"false"`
}

ResizeURedisGroupRequest is request schema for ResizeURedisGroup action

type ResizeURedisGroupResponse

type ResizeURedisGroupResponse struct {
	response.CommonBase
}

ResizeURedisGroupResponse is response schema for ResizeURedisGroup action

type RestartUMemcacheGroupRequest

type RestartUMemcacheGroupRequest struct {
	request.CommonBase

	// 组的ID
	GroupId *string `required:"true"`
}

RestartUMemcacheGroupRequest is request schema for RestartUMemcacheGroup action

type RestartUMemcacheGroupResponse

type RestartUMemcacheGroupResponse struct {
	response.CommonBase
}

RestartUMemcacheGroupResponse is response schema for RestartUMemcacheGroup action

type UMemClient

type UMemClient struct {
	*ucloud.Client
}

UMemClient is the client of UMem

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UMemClient

NewClient will return a instance of UMemClient

func (*UMemClient) CreateUMemSpace

func (c *UMemClient) CreateUMemSpace(req *CreateUMemSpaceRequest) (*CreateUMemSpaceResponse, error)

CreateUMemSpace - 创建UMem内存空间

func (*UMemClient) CreateUMemcacheGroup

CreateUMemcacheGroup - 创建单机Memcache

func (*UMemClient) CreateURedisGroup

func (c *UMemClient) CreateURedisGroup(req *CreateURedisGroupRequest) (*CreateURedisGroupResponse, error)

CreateURedisGroup - 创建主备redis

func (*UMemClient) DeleteUMemSpace

func (c *UMemClient) DeleteUMemSpace(req *DeleteUMemSpaceRequest) (*DeleteUMemSpaceResponse, error)

DeleteUMemSpace - 删除UMem内存空间

func (*UMemClient) DeleteUMemcacheGroup

DeleteUMemcacheGroup - 删除单机Memcache

func (*UMemClient) DeleteURedisGroup

func (c *UMemClient) DeleteURedisGroup(req *DeleteURedisGroupRequest) (*DeleteURedisGroupResponse, error)

DeleteURedisGroup - 删除主备redis

func (*UMemClient) DescribeUMemPrice

func (c *UMemClient) DescribeUMemPrice(req *DescribeUMemPriceRequest) (*DescribeUMemPriceResponse, error)

DescribeUMemPrice - 获取UMem实例价格信息

func (*UMemClient) DescribeUMemSpace

func (c *UMemClient) DescribeUMemSpace(req *DescribeUMemSpaceRequest) (*DescribeUMemSpaceResponse, error)

DescribeUMemSpace - 获取UMem内存空间列表

func (*UMemClient) DescribeUMemUpgradePrice

DescribeUMemUpgradePrice - 获取UMem升级价格信息

func (*UMemClient) DescribeUMemcacheGroup

DescribeUMemcacheGroup - 显示Memcache

func (*UMemClient) DescribeUMemcachePrice

DescribeUMemcachePrice - 获取umemcache组价格信息

func (*UMemClient) DescribeUMemcacheUpgradePrice

DescribeUMemcacheUpgradePrice - 获取umemcache升级价格信息

func (*UMemClient) DescribeURedisBackup

DescribeURedisBackup - 查询主备redis备份

func (*UMemClient) DescribeURedisBackupURL

DescribeURedisBackupURL - 获取主备Redis备份下载链接

func (*UMemClient) DescribeURedisGroup

DescribeURedisGroup - 查询主备Redis

func (*UMemClient) DescribeURedisPrice

DescribeURedisPrice - 取uredis价格信息

func (*UMemClient) DescribeURedisUpgradePrice

DescribeURedisUpgradePrice - 获取uredis升级价格信息

func (*UMemClient) GetUMemSpaceState

func (c *UMemClient) GetUMemSpaceState(req *GetUMemSpaceStateRequest) (*GetUMemSpaceStateResponse, error)

GetUMemSpaceState - 获取UMem内存空间列表

func (*UMemClient) ModifyUMemSpaceName

ModifyUMemSpaceName - 修改UMem内存空间名称

func (*UMemClient) ModifyURedisGroupName

ModifyURedisGroupName - 修改主备redis名称

func (*UMemClient) NewCreateUMemSpaceRequest

func (c *UMemClient) NewCreateUMemSpaceRequest() *CreateUMemSpaceRequest

NewCreateUMemSpaceRequest will create request of CreateUMemSpace action.

func (*UMemClient) NewCreateUMemcacheGroupRequest

func (c *UMemClient) NewCreateUMemcacheGroupRequest() *CreateUMemcacheGroupRequest

NewCreateUMemcacheGroupRequest will create request of CreateUMemcacheGroup action.

func (*UMemClient) NewCreateURedisGroupRequest

func (c *UMemClient) NewCreateURedisGroupRequest() *CreateURedisGroupRequest

NewCreateURedisGroupRequest will create request of CreateURedisGroup action.

func (*UMemClient) NewDeleteUMemSpaceRequest

func (c *UMemClient) NewDeleteUMemSpaceRequest() *DeleteUMemSpaceRequest

NewDeleteUMemSpaceRequest will create request of DeleteUMemSpace action.

func (*UMemClient) NewDeleteUMemcacheGroupRequest

func (c *UMemClient) NewDeleteUMemcacheGroupRequest() *DeleteUMemcacheGroupRequest

NewDeleteUMemcacheGroupRequest will create request of DeleteUMemcacheGroup action.

func (*UMemClient) NewDeleteURedisGroupRequest

func (c *UMemClient) NewDeleteURedisGroupRequest() *DeleteURedisGroupRequest

NewDeleteURedisGroupRequest will create request of DeleteURedisGroup action.

func (*UMemClient) NewDescribeUMemPriceRequest

func (c *UMemClient) NewDescribeUMemPriceRequest() *DescribeUMemPriceRequest

NewDescribeUMemPriceRequest will create request of DescribeUMemPrice action.

func (*UMemClient) NewDescribeUMemSpaceRequest

func (c *UMemClient) NewDescribeUMemSpaceRequest() *DescribeUMemSpaceRequest

NewDescribeUMemSpaceRequest will create request of DescribeUMemSpace action.

func (*UMemClient) NewDescribeUMemUpgradePriceRequest

func (c *UMemClient) NewDescribeUMemUpgradePriceRequest() *DescribeUMemUpgradePriceRequest

NewDescribeUMemUpgradePriceRequest will create request of DescribeUMemUpgradePrice action.

func (*UMemClient) NewDescribeUMemcacheGroupRequest

func (c *UMemClient) NewDescribeUMemcacheGroupRequest() *DescribeUMemcacheGroupRequest

NewDescribeUMemcacheGroupRequest will create request of DescribeUMemcacheGroup action.

func (*UMemClient) NewDescribeUMemcachePriceRequest

func (c *UMemClient) NewDescribeUMemcachePriceRequest() *DescribeUMemcachePriceRequest

NewDescribeUMemcachePriceRequest will create request of DescribeUMemcachePrice action.

func (*UMemClient) NewDescribeUMemcacheUpgradePriceRequest

func (c *UMemClient) NewDescribeUMemcacheUpgradePriceRequest() *DescribeUMemcacheUpgradePriceRequest

NewDescribeUMemcacheUpgradePriceRequest will create request of DescribeUMemcacheUpgradePrice action.

func (*UMemClient) NewDescribeURedisBackupRequest

func (c *UMemClient) NewDescribeURedisBackupRequest() *DescribeURedisBackupRequest

NewDescribeURedisBackupRequest will create request of DescribeURedisBackup action.

func (*UMemClient) NewDescribeURedisBackupURLRequest

func (c *UMemClient) NewDescribeURedisBackupURLRequest() *DescribeURedisBackupURLRequest

NewDescribeURedisBackupURLRequest will create request of DescribeURedisBackupURL action.

func (*UMemClient) NewDescribeURedisGroupRequest

func (c *UMemClient) NewDescribeURedisGroupRequest() *DescribeURedisGroupRequest

NewDescribeURedisGroupRequest will create request of DescribeURedisGroup action.

func (*UMemClient) NewDescribeURedisPriceRequest

func (c *UMemClient) NewDescribeURedisPriceRequest() *DescribeURedisPriceRequest

NewDescribeURedisPriceRequest will create request of DescribeURedisPrice action.

func (*UMemClient) NewDescribeURedisUpgradePriceRequest

func (c *UMemClient) NewDescribeURedisUpgradePriceRequest() *DescribeURedisUpgradePriceRequest

NewDescribeURedisUpgradePriceRequest will create request of DescribeURedisUpgradePrice action.

func (*UMemClient) NewGetUMemSpaceStateRequest

func (c *UMemClient) NewGetUMemSpaceStateRequest() *GetUMemSpaceStateRequest

NewGetUMemSpaceStateRequest will create request of GetUMemSpaceState action.

func (*UMemClient) NewModifyUMemSpaceNameRequest

func (c *UMemClient) NewModifyUMemSpaceNameRequest() *ModifyUMemSpaceNameRequest

NewModifyUMemSpaceNameRequest will create request of ModifyUMemSpaceName action.

func (*UMemClient) NewModifyURedisGroupNameRequest

func (c *UMemClient) NewModifyURedisGroupNameRequest() *ModifyURedisGroupNameRequest

NewModifyURedisGroupNameRequest will create request of ModifyURedisGroupName action.

func (*UMemClient) NewResizeUDredisSpaceRequest

func (c *UMemClient) NewResizeUDredisSpaceRequest() *ResizeUDredisSpaceRequest

NewResizeUDredisSpaceRequest will create request of ResizeUDredisSpace action.

func (*UMemClient) NewResizeUMemSpaceRequest

func (c *UMemClient) NewResizeUMemSpaceRequest() *ResizeUMemSpaceRequest

NewResizeUMemSpaceRequest will create request of ResizeUMemSpace action.

func (*UMemClient) NewResizeURedisGroupRequest

func (c *UMemClient) NewResizeURedisGroupRequest() *ResizeURedisGroupRequest

NewResizeURedisGroupRequest will create request of ResizeURedisGroup action.

func (*UMemClient) NewRestartUMemcacheGroupRequest

func (c *UMemClient) NewRestartUMemcacheGroupRequest() *RestartUMemcacheGroupRequest

NewRestartUMemcacheGroupRequest will create request of RestartUMemcacheGroup action.

func (*UMemClient) ResizeUDredisSpace

func (c *UMemClient) ResizeUDredisSpace(req *ResizeUDredisSpaceRequest) (*ResizeUDredisSpaceResponse, error)

ResizeUDredisSpace - 调整内存空间容量

func (*UMemClient) ResizeUMemSpace

func (c *UMemClient) ResizeUMemSpace(req *ResizeUMemSpaceRequest) (*ResizeUMemSpaceResponse, error)

ResizeUMemSpace - 调整内存空间容量

func (*UMemClient) ResizeURedisGroup

func (c *UMemClient) ResizeURedisGroup(req *ResizeURedisGroupRequest) (*ResizeURedisGroupResponse, error)

ResizeURedisGroup - 调整主备redis容量

func (*UMemClient) RestartUMemcacheGroup

RestartUMemcacheGroup - 重启单机Memcache

type UMemPriceSet

type UMemPriceSet struct {

	// Year, Month, Dynamic,Trial
	ChargeType string

	// 价格,单位: 元,保留小数点后两位有效数字
	Price float64
}

UMemPriceSet - DescribeUMemPrice

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemSpaceAddressSet

type UMemSpaceAddressSet struct {

	// UMem实例访问IP
	IP string

	// UMem实例访问Port
	Port int
}

UMemSpaceAddressSet - DescribeUMemSpace

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemSpaceSet

type UMemSpaceSet struct {

	// 内存空间ID
	SpaceId string

	// 内存空间名称
	Name string

	// 可用区,参见[可用区列表](../summary/regionlist.html)
	Zone string

	// 创建时间
	CreateTime int

	// 到期时间
	ExpireTime int

	// 空间类型:single(无热备),double(热备)
	Type string

	// 协议类型: memcache, redis
	Protocol string

	// 容量单位GB
	Size int

	// 使用量单位MB
	UsedSize int

	// Starting:创建中 Running:运行中 Fail:失败
	State string

	// Year, Month, Dynamic, Trial
	ChargeType string

	// IP端口信息请参见 UMemSpaceAddressSet
	Address []UMemSpaceAddressSet

	// VPC ID
	VPCId string

	// Subnet ID
	SubnetId string

	// 业务组
	Tag string
}

UMemSpaceSet - DescribeUMemSpace

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemcacheGroupSet

type UMemcacheGroupSet struct {

	// 组ID
	GroupId string

	// 组名称
	Name string

	// 节点的配置ID
	ConfigId string

	// 节点的虚拟IP地址
	VirtualIP string

	// 节点分配的服务端口
	Port int

	// 容量单位GB
	Size int

	// 使用量单位MB
	UsedSize int

	// Memcache版本信息,默认为1.4.31
	Version string

	// 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中
	State string

	// 创建时间 (UNIX时间戳)
	CreateTime int

	// 修改时间 (UNIX时间戳)
	ModifyTime int

	// 过期时间 (UNIX时间戳)
	ExpireTime int

	// 计费类型:Year,Month,Dynamic 默认Dynamic
	ChargeType string

	// 业务组名称
	Tag string

	// VPC ID
	VPCId string

	// Subnet ID
	SubnetId string
}

UMemcacheGroupSet - DescribeUMemcacheGroup

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemcachePriceSet

type UMemcachePriceSet struct {

	// 计费模式,Year, Month, Dynamic
	ChargeType string

	// 价格,单位: 元,保留小数点后两位有效数字
	Price float64
}

UMemcachePriceSet - DescribeUMemcachePrice

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type URedisBackupSet

type URedisBackupSet struct {

	// 备份ID
	BackupId string

	// 可用区,参见[可用区列表](../summary/regionlist.html)
	Zone string

	// 对应的实例ID
	GroupId string

	// 组名称
	GroupName string

	// 备份的名称
	BackupName string

	// 备份时间 (UNIX时间戳)
	BackupTime int

	// 备份文件大小, 以字节为单位
	BackupSize int

	// 备份类型: Manual 手动 Auto 自动
	BackupType string

	// 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期
	State string
}

URedisBackupSet - DescribeURedisBackup

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type URedisGroupSet

type URedisGroupSet struct {

	// 组ID
	GroupId string

	// 组名称
	Name string

	// 节点的配置ID
	ConfigId string

	// 节点的虚拟IP地址
	VirtualIP string

	// 节点分配的服务端口
	Port int

	// 容量单位GB
	Size int

	// 使用量单位MB
	UsedSize int

	// 是否需要自动备份,enable,disable
	AutoBackup string

	// 组自动备份开始时间,单位小时计,范围[0-23]
	BackupTime int

	// 是否开启高可用,enable,disable
	HighAvailability string

	// Redis版本信息
	Version string

	// 过期时间 (UNIX时间戳)
	ExpireTime int

	// 计费类型:Year,Month,Dynamic 默认Dynamic
	ChargeType string

	// 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败
	State string

	// 创建时间 (UNIX时间戳)
	CreateTime int

	// 修改时间 (UNIX时间戳)
	ModifyTime int

	// 业务组名称
	Tag string

	// 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
	Zone string

	// 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
	SlaveZone string

	// VPC ID
	VPCId string

	// Subnet ID
	SubnetId string
}

URedisGroupSet - DescribeURedisGroup

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type URedisPriceSet

type URedisPriceSet struct {

	// Year, Month, Dynamic,Trial
	ChargeType string

	// 价格,单位: 元,保留小数点后两位有效数字
	Price float64
}

URedisPriceSet - 主备Redis价格

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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