Documentation ¶
Index ¶
- type CheckURedisAllowanceRequest
- type CheckURedisAllowanceResponse
- type CreateURedisBackupRequest
- type CreateURedisBackupResponse
- type DeleteUMemRequest
- type DeleteUMemResponse
- type DescribeUMemRequest
- type DescribeUMemResponse
- type DescribeURedisBackupStateRequest
- type DescribeURedisBackupStateResponse
- type ResizeUMemcacheGroupRequest
- type ResizeUMemcacheGroupResponse
- type RestartURedisGroupRequest
- type RestartURedisGroupResponse
- type UMemClient
- func (c *UMemClient) CheckURedisAllowance(req *CheckURedisAllowanceRequest) (*CheckURedisAllowanceResponse, error)
- func (c *UMemClient) CreateURedisBackup(req *CreateURedisBackupRequest) (*CreateURedisBackupResponse, error)
- func (c *UMemClient) DeleteUMem(req *DeleteUMemRequest) (*DeleteUMemResponse, error)
- func (c *UMemClient) DescribeUMem(req *DescribeUMemRequest) (*DescribeUMemResponse, error)
- func (c *UMemClient) DescribeURedisBackupState(req *DescribeURedisBackupStateRequest) (*DescribeURedisBackupStateResponse, error)
- func (c *UMemClient) NewCheckURedisAllowanceRequest() *CheckURedisAllowanceRequest
- func (c *UMemClient) NewCreateURedisBackupRequest() *CreateURedisBackupRequest
- func (c *UMemClient) NewDeleteUMemRequest() *DeleteUMemRequest
- func (c *UMemClient) NewDescribeUMemRequest() *DescribeUMemRequest
- func (c *UMemClient) NewDescribeURedisBackupStateRequest() *DescribeURedisBackupStateRequest
- func (c *UMemClient) NewResizeUMemcacheGroupRequest() *ResizeUMemcacheGroupRequest
- func (c *UMemClient) NewRestartURedisGroupRequest() *RestartURedisGroupRequest
- func (c *UMemClient) ResizeUMemcacheGroup(req *ResizeUMemcacheGroupRequest) (*ResizeUMemcacheGroupResponse, error)
- func (c *UMemClient) RestartURedisGroup(req *RestartURedisGroupRequest) (*RestartURedisGroupResponse, error)
- type UMemDataSet
- type UMemSpaceAddressSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckURedisAllowanceRequest ¶
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"` // 是否是跨机房URedis(默认false) RegionFlag *bool `required:"false"` // SlaveZone *string `required:"false"` }
CheckURedisAllowanceRequest is request schema for CheckURedisAllowance action
type CheckURedisAllowanceResponse ¶
type CheckURedisAllowanceResponse struct { response.CommonBase // 可创建的数量 Count int }
CheckURedisAllowanceResponse is response schema for CheckURedisAllowance action
type CreateURedisBackupRequest ¶
type CreateURedisBackupRequest struct { request.CommonBase // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"false"` // 资源id GroupId *string `required:"true"` // 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) BackupName *string `required:"true"` }
CreateURedisBackupRequest is request schema for CreateURedisBackup action
type CreateURedisBackupResponse ¶
type CreateURedisBackupResponse struct { response.CommonBase // 备份id BackupId string }
CreateURedisBackupResponse is response schema for CreateURedisBackup action
type DeleteUMemRequest ¶
type DeleteUMemRequest struct { request.CommonBase // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"false"` // ResourceId *string `required:"true"` // ResourceType *string `required:"true"` }
DeleteUMemRequest is request schema for DeleteUMem action
type DeleteUMemResponse ¶
type DeleteUMemResponse struct {
response.CommonBase
}
DeleteUMemResponse is response schema for DeleteUMem action
type DescribeUMemRequest ¶
type DescribeUMemRequest struct { request.CommonBase // 协议类型: memcache, redis Protocol *string `required:"true"` // 分页显示的起始偏移, 默认值为0 Offset *int `required:"false"` // 分页显示的条目数, 默认值为20 Limit *int `required:"false"` // 资源ID ResourceId *string `required:"false"` // ResourceType *string `required:"false"` }
DescribeUMemRequest is request schema for DescribeUMem action
type DescribeUMemResponse ¶
type DescribeUMemResponse struct { response.CommonBase // 根据过滤条件得到的总数 TotalCount int // UMem实例列表, 详细参见UMemDataSet DataSet []UMemDataSet }
DescribeUMemResponse is response schema for DescribeUMem action
type DescribeURedisBackupStateRequest ¶
type DescribeURedisBackupStateRequest struct { request.CommonBase // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"true"` // 资源id GroupId *string `required:"true"` // 备份id BackupId *string `required:"true"` }
DescribeURedisBackupStateRequest is request schema for DescribeURedisBackupState action
type DescribeURedisBackupStateResponse ¶
type DescribeURedisBackupStateResponse struct { response.CommonBase // 返回码 RetCode int // 操作名称 Action string // 备份状态 State string }
DescribeURedisBackupStateResponse is response schema for DescribeURedisBackupState 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"` // 代金券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 RestartURedisGroupRequest ¶
type RestartURedisGroupRequest struct { request.CommonBase // 可用区。参见 [可用区列表](../summary/regionlist.html) Zone *string `required:"false"` // 组的ID GroupId *string `required:"true"` }
RestartURedisGroupRequest is request schema for RestartURedisGroup action
type RestartURedisGroupResponse ¶
type RestartURedisGroupResponse struct {
response.CommonBase
}
RestartURedisGroupResponse is response schema for RestartURedisGroup action
type UMemClient ¶
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) CheckURedisAllowance ¶
func (c *UMemClient) CheckURedisAllowance(req *CheckURedisAllowanceRequest) (*CheckURedisAllowanceResponse, error)
CheckURedisAllowance - 检查主备Redis的资源是否足够创建新实例
func (*UMemClient) CreateURedisBackup ¶
func (c *UMemClient) CreateURedisBackup(req *CreateURedisBackupRequest) (*CreateURedisBackupResponse, error)
CreateURedisBackup - 创建主备Redis备份
func (*UMemClient) DeleteUMem ¶
func (c *UMemClient) DeleteUMem(req *DeleteUMemRequest) (*DeleteUMemResponse, error)
DeleteUMem - DeleteUMem
func (*UMemClient) DescribeUMem ¶
func (c *UMemClient) DescribeUMem(req *DescribeUMemRequest) (*DescribeUMemResponse, error)
DescribeUMem - 获取UMem列表
func (*UMemClient) DescribeURedisBackupState ¶
func (c *UMemClient) DescribeURedisBackupState(req *DescribeURedisBackupStateRequest) (*DescribeURedisBackupStateResponse, error)
DescribeURedisBackupState - 查询备份任务的状态
func (*UMemClient) NewCheckURedisAllowanceRequest ¶
func (c *UMemClient) NewCheckURedisAllowanceRequest() *CheckURedisAllowanceRequest
NewCheckURedisAllowanceRequest will create request of CheckURedisAllowance action.
func (*UMemClient) NewCreateURedisBackupRequest ¶
func (c *UMemClient) NewCreateURedisBackupRequest() *CreateURedisBackupRequest
NewCreateURedisBackupRequest will create request of CreateURedisBackup action.
func (*UMemClient) NewDeleteUMemRequest ¶
func (c *UMemClient) NewDeleteUMemRequest() *DeleteUMemRequest
NewDeleteUMemRequest will create request of DeleteUMem action.
func (*UMemClient) NewDescribeUMemRequest ¶
func (c *UMemClient) NewDescribeUMemRequest() *DescribeUMemRequest
NewDescribeUMemRequest will create request of DescribeUMem action.
func (*UMemClient) NewDescribeURedisBackupStateRequest ¶
func (c *UMemClient) NewDescribeURedisBackupStateRequest() *DescribeURedisBackupStateRequest
NewDescribeURedisBackupStateRequest will create request of DescribeURedisBackupState action.
func (*UMemClient) NewResizeUMemcacheGroupRequest ¶
func (c *UMemClient) NewResizeUMemcacheGroupRequest() *ResizeUMemcacheGroupRequest
NewResizeUMemcacheGroupRequest will create request of ResizeUMemcacheGroup action.
func (*UMemClient) NewRestartURedisGroupRequest ¶
func (c *UMemClient) NewRestartURedisGroupRequest() *RestartURedisGroupRequest
NewRestartURedisGroupRequest will create request of RestartURedisGroup action.
func (*UMemClient) ResizeUMemcacheGroup ¶
func (c *UMemClient) ResizeUMemcacheGroup(req *ResizeUMemcacheGroupRequest) (*ResizeUMemcacheGroupResponse, error)
ResizeUMemcacheGroup - 调整内存空间容量
func (*UMemClient) RestartURedisGroup ¶
func (c *UMemClient) RestartURedisGroup(req *RestartURedisGroupRequest) (*RestartURedisGroupResponse, error)
RestartURedisGroup - 重启主备实例
type UMemDataSet ¶
type UMemDataSet struct { // 资源ID ResourceId string // 资源名称 Name string // 创建时间 CreateTime int // 到期时间 ExpireTime int // 空间类型:single(无热备),double(热备) Type string // 协议类型: memcache, redis Protocol string // 容量单位GB Size int // 使用量单位MB UsedSize int // 实例状态 Starting // 创建中 Creating // 初始化中 CreateFail // 创建失败 Fail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 State string // 计费模式,Year, Month, Dynamic, Trial ChargeType string // IP端口信息请,参见UMemSpaceAddressSet Address []UMemSpaceAddressSet // 业务组名称 Tag string // distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版 ResourceType string // 节点的配置ID ConfigId string // 是否需要自动备份,enable,disable AutoBackup string // 自动备份开始时间,单位小时计,范围[0-23] BackupTime int // 是否开启高可用,enable,disable HighAvailability string // Redis版本信息 Version string // 主备Redis,提供两种类型:同机房高可用Redis,和同地域跨机房高可用Redis URedisType string // 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html) SlaveZone string // 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html) Zone string // 是否拥有只读Slave OwnSlave string }
UMemDataSet - DescribeUMem
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type UMemSpaceAddressSet ¶
UMemSpaceAddressSet - DescribeUMemSpace
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.