Documentation ¶
Index ¶
- type ChangeURedisConfigRequest
- type ChangeURedisConfigResponse
- type CheckUMemSpaceAllowanceRequest
- type CheckUMemSpaceAllowanceResponse
- type CheckUMemcacheAllowanceRequest
- type CheckUMemcacheAllowanceResponse
- type CheckURedisAllowanceRequest
- type CheckURedisAllowanceResponse
- type DescribeURedisConfigRequest
- type DescribeURedisConfigResponse
- type ModifyUMemcacheGroupNameRequest
- type ModifyUMemcacheGroupNameResponse
- type ModifyURedisGroupPasswordRequest
- type ModifyURedisGroupPasswordResponse
- type ResizeUMemcacheGroupRequest
- type ResizeUMemcacheGroupResponse
- type UMemClient
- func (c *UMemClient) ChangeURedisConfig(req *ChangeURedisConfigRequest) (*ChangeURedisConfigResponse, error)
- func (c *UMemClient) CheckUMemSpaceAllowance(req *CheckUMemSpaceAllowanceRequest) (*CheckUMemSpaceAllowanceResponse, error)
- func (c *UMemClient) CheckUMemcacheAllowance(req *CheckUMemcacheAllowanceRequest) (*CheckUMemcacheAllowanceResponse, error)
- func (c *UMemClient) CheckURedisAllowance(req *CheckURedisAllowanceRequest) (*CheckURedisAllowanceResponse, error)
- func (c *UMemClient) DescribeURedisConfig(req *DescribeURedisConfigRequest) (*DescribeURedisConfigResponse, error)
- func (c *UMemClient) ModifyUMemcacheGroupName(req *ModifyUMemcacheGroupNameRequest) (*ModifyUMemcacheGroupNameResponse, error)
- func (c *UMemClient) ModifyURedisGroupPassword(req *ModifyURedisGroupPasswordRequest) (*ModifyURedisGroupPasswordResponse, error)
- func (c *UMemClient) NewChangeURedisConfigRequest() *ChangeURedisConfigRequest
- func (c *UMemClient) NewCheckUMemSpaceAllowanceRequest() *CheckUMemSpaceAllowanceRequest
- func (c *UMemClient) NewCheckUMemcacheAllowanceRequest() *CheckUMemcacheAllowanceRequest
- func (c *UMemClient) NewCheckURedisAllowanceRequest() *CheckURedisAllowanceRequest
- func (c *UMemClient) NewDescribeURedisConfigRequest() *DescribeURedisConfigRequest
- func (c *UMemClient) NewModifyUMemcacheGroupNameRequest() *ModifyUMemcacheGroupNameRequest
- func (c *UMemClient) NewModifyURedisGroupPasswordRequest() *ModifyURedisGroupPasswordRequest
- func (c *UMemClient) NewResizeUMemcacheGroupRequest() *ResizeUMemcacheGroupRequest
- func (c *UMemClient) ResizeUMemcacheGroup(req *ResizeUMemcacheGroupRequest) (*ResizeUMemcacheGroupResponse, error)
- type URedisConfigSet
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
func (c *UMemClient) CheckUMemSpaceAllowance(req *CheckUMemSpaceAllowanceRequest) (*CheckUMemSpaceAllowanceResponse, error)
CheckUMemSpaceAllowance - 检查分布式UMem剩余资源,包括分布式redis,分布式memcache
func (*UMemClient) CheckUMemcacheAllowance ¶ added in v0.6.9
func (c *UMemClient) CheckUMemcacheAllowance(req *CheckUMemcacheAllowanceRequest) (*CheckUMemcacheAllowanceResponse, error)
CheckUMemcacheAllowance - 检查UMemcache剩余资源
func (*UMemClient) CheckURedisAllowance ¶ added in v0.6.10
func (c *UMemClient) CheckURedisAllowance(req *CheckURedisAllowanceRequest) (*CheckURedisAllowanceResponse, error)
CheckURedisAllowance - 检查主备Redis的资源是否足够创建新实例
func (*UMemClient) DescribeURedisConfig ¶
func (c *UMemClient) DescribeURedisConfig(req *DescribeURedisConfigRequest) (*DescribeURedisConfigResponse, error)
DescribeURedisConfig - 查询主备Redis所有配置文件
func (*UMemClient) ModifyUMemcacheGroupName ¶
func (c *UMemClient) ModifyUMemcacheGroupName(req *ModifyUMemcacheGroupNameRequest) (*ModifyUMemcacheGroupNameResponse, error)
ModifyUMemcacheGroupName - 修改UMemcache名称
func (*UMemClient) ModifyURedisGroupPassword ¶
func (c *UMemClient) ModifyURedisGroupPassword(req *ModifyURedisGroupPasswordRequest) (*ModifyURedisGroupPasswordResponse, error)
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 ¶
func (c *UMemClient) ResizeUMemcacheGroup(req *ResizeUMemcacheGroupRequest) (*ResizeUMemcacheGroupResponse, error)
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.