umem

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeURedisConfigRequest

type ChangeURedisConfigRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

	// 资源ID
	GroupId *string `required:"true"`

	// 配置文件ID
	ConfigId *string `required:"true"`
}

ChangeURedisConfigRequest is request schema for ChangeURedisConfig action

type ChangeURedisConfigResponse

type ChangeURedisConfigResponse struct {
	response.CommonBase

	// 返回码
	RetCode int

	// 操作名称
	Action string
}

ChangeURedisConfigResponse is response schema for ChangeURedisConfig action

type CheckUMemSpaceAllowanceRequest added in v0.6.9

type CheckUMemSpaceAllowanceRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 创建实例的容量大小;分布式memcache最低8G, 分布式redis最低16G,两者最高都是1000G
	Size *int `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`

	// redis memcache
	Protocol *string `required:"false"`
}

CheckUMemSpaceAllowanceRequest is request schema for CheckUMemSpaceAllowance action

type CheckUMemSpaceAllowanceResponse added in v0.6.9

type CheckUMemSpaceAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckUMemSpaceAllowanceResponse is response schema for CheckUMemSpaceAllowance action

type CheckUMemcacheAllowanceRequest added in v0.6.9

type CheckUMemcacheAllowanceRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16五种规格
	Size *int `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`
}

CheckUMemcacheAllowanceRequest is request schema for CheckUMemcacheAllowance action

type CheckUMemcacheAllowanceResponse added in v0.6.9

type CheckUMemcacheAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckUMemcacheAllowanceResponse is response schema for CheckUMemcacheAllowance action

type CheckURedisAllowanceRequest added in v0.6.10

type CheckURedisAllowanceRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

	// 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16/32六种规格
	Size *string `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`

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

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

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

CheckURedisAllowanceRequest is request schema for CheckURedisAllowance action

type CheckURedisAllowanceResponse added in v0.6.10

type CheckURedisAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckURedisAllowanceResponse is response schema for CheckURedisAllowance action

type DescribeURedisConfigRequest

type DescribeURedisConfigRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"true"`

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

	// Redis版本号
	Version *string `required:"false"`

	// 配置文件ID
	ConfigId *string `required:"false"`

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

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

DescribeURedisConfigRequest is request schema for DescribeURedisConfig action

type DescribeURedisConfigResponse

type DescribeURedisConfigResponse struct {
	response.CommonBase

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

	// 配置文件列表 参见 URedisConfigSet
	DataSet []URedisConfigSet
}

DescribeURedisConfigResponse is response schema for DescribeURedisConfig action

type ModifyUMemcacheGroupNameRequest

type ModifyUMemcacheGroupNameRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

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

	// 组名称
	Name *string `required:"true"`
}

ModifyUMemcacheGroupNameRequest is request schema for ModifyUMemcacheGroupName action

type ModifyUMemcacheGroupNameResponse

type ModifyUMemcacheGroupNameResponse struct {
	response.CommonBase
}

ModifyUMemcacheGroupNameResponse is response schema for ModifyUMemcacheGroupName action

type ModifyURedisGroupPasswordRequest

type ModifyURedisGroupPasswordRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

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

	// 新密码字符串,如要取消密码,此值为空字符串
	Password *string `required:"true"`

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

ModifyURedisGroupPasswordRequest is request schema for ModifyURedisGroupPassword action

type ModifyURedisGroupPasswordResponse

type ModifyURedisGroupPasswordResponse struct {
	response.CommonBase
}

ModifyURedisGroupPasswordResponse is response schema for ModifyURedisGroupPassword action

type ResizeUMemcacheGroupRequest

type ResizeUMemcacheGroupRequest struct {
	request.CommonBase

	// 可用区。参见 [可用区列表](../summary/regionlist.html)
	Zone *string `required:"false"`

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

	// 内存大小, 单位:GB 目前仅支持1/2/4/8/16五种规格(暂时只支持扩容)
	Size *int `required:"true"`

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

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

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

ResizeUMemcacheGroupRequest is request schema for ResizeUMemcacheGroup action

type ResizeUMemcacheGroupResponse

type ResizeUMemcacheGroupResponse struct {
	response.CommonBase
}

ResizeUMemcacheGroupResponse is response schema for ResizeUMemcacheGroup action

type UMemClient

type UMemClient struct {
	// contains filtered or unexported fields
}

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) ChangeURedisConfig

func (c *UMemClient) ChangeURedisConfig(req *ChangeURedisConfigRequest) (*ChangeURedisConfigResponse, error)

ChangeURedisConfig - 更换Redis配置文件

func (*UMemClient) CheckUMemSpaceAllowance added in v0.6.9

CheckUMemSpaceAllowance - 检查分布式UMem剩余资源,包括分布式redis,分布式memcache

func (*UMemClient) CheckUMemcacheAllowance added in v0.6.9

CheckUMemcacheAllowance - 检查UMemcache剩余资源

func (*UMemClient) CheckURedisAllowance added in v0.6.10

CheckURedisAllowance - 检查主备Redis的资源是否足够创建新实例

func (*UMemClient) DescribeURedisConfig

DescribeURedisConfig - 查询主备Redis所有配置文件

func (*UMemClient) ModifyUMemcacheGroupName

ModifyUMemcacheGroupName - 修改UMemcache名称

func (*UMemClient) ModifyURedisGroupPassword

ModifyURedisGroupPassword - 修改主备密码/重置密码

func (*UMemClient) NewChangeURedisConfigRequest

func (c *UMemClient) NewChangeURedisConfigRequest() *ChangeURedisConfigRequest

NewChangeURedisConfigRequest will create request of ChangeURedisConfig action.

func (*UMemClient) NewCheckUMemSpaceAllowanceRequest added in v0.6.9

func (c *UMemClient) NewCheckUMemSpaceAllowanceRequest() *CheckUMemSpaceAllowanceRequest

NewCheckUMemSpaceAllowanceRequest will create request of CheckUMemSpaceAllowance action.

func (*UMemClient) NewCheckUMemcacheAllowanceRequest added in v0.6.9

func (c *UMemClient) NewCheckUMemcacheAllowanceRequest() *CheckUMemcacheAllowanceRequest

NewCheckUMemcacheAllowanceRequest will create request of CheckUMemcacheAllowance action.

func (*UMemClient) NewCheckURedisAllowanceRequest added in v0.6.10

func (c *UMemClient) NewCheckURedisAllowanceRequest() *CheckURedisAllowanceRequest

NewCheckURedisAllowanceRequest will create request of CheckURedisAllowance action.

func (*UMemClient) NewDescribeURedisConfigRequest

func (c *UMemClient) NewDescribeURedisConfigRequest() *DescribeURedisConfigRequest

NewDescribeURedisConfigRequest will create request of DescribeURedisConfig action.

func (*UMemClient) NewModifyUMemcacheGroupNameRequest

func (c *UMemClient) NewModifyUMemcacheGroupNameRequest() *ModifyUMemcacheGroupNameRequest

NewModifyUMemcacheGroupNameRequest will create request of ModifyUMemcacheGroupName action.

func (*UMemClient) NewModifyURedisGroupPasswordRequest

func (c *UMemClient) NewModifyURedisGroupPasswordRequest() *ModifyURedisGroupPasswordRequest

NewModifyURedisGroupPasswordRequest will create request of ModifyURedisGroupPassword action.

func (*UMemClient) NewResizeUMemcacheGroupRequest

func (c *UMemClient) NewResizeUMemcacheGroupRequest() *ResizeUMemcacheGroupRequest

NewResizeUMemcacheGroupRequest will create request of ResizeUMemcacheGroup action.

func (*UMemClient) ResizeUMemcacheGroup

ResizeUMemcacheGroup - 调整内存空间容量

type URedisConfigSet

type URedisConfigSet struct {

	// 配置ID
	ConfigId string

	// 配置名称
	Name string

	// 配置描述
	Description string

	// 配置对应的Redis版本
	Version string

	// 置是否可以修改
	IsModify string

	// 配置所处的状态
	State string

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

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

	// 是否是跨机房URedis(默认false)
	RegionFlag bool

	// 配置文件所在的可用区
	Zone string
}

URedisConfigSet - 主备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