udb

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeUDBParamGroupRequest

type ChangeUDBParamGroupRequest struct {
	request.CommonBase

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

	// DB实例Id
	DBId *string `required:"true"`

	// 参数组Id
	GroupId *string `required:"true"`
}

ChangeUDBParamGroupRequest is request schema for ChangeUDBParamGroup action

type ChangeUDBParamGroupResponse

type ChangeUDBParamGroupResponse struct {
	response.CommonBase
}

ChangeUDBParamGroupResponse is response schema for ChangeUDBParamGroup action

type CheckUDBInstanceAllowanceRequest added in v0.6.9

type CheckUDBInstanceAllowanceRequest struct {
	request.CommonBase

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

	// DB种类,分为SQL和NOSQL,取值分别为sql、nosql、postgresql
	ClassType *string `required:"true"`

	// 申请资源的内存限制
	MemoryLimit *int `required:"true"`

	// 申请资源的磁盘空间
	DiskSpace *int `required:"true"`

	// 是否使用SSD资源,true代表使用,false代表不使用
	UseSSD *bool `required:"true"`

	// 资源申请个数,默认为一个
	Count *int `required:"true"`

	// UDB实例的部署模式:可选值为:Normal: 普通单点实例,HA: 高可用部署实例
	InstanceMode *string `required:"true"`

	// SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则需要指定SSD类型
	SSDType *string `required:"false"`

	// 如果是从库创建核查,需要指定SrcId
	SrcId *string `required:"false"`

	// 跨可用区备库所在可用区, 参见 [可用区列表](../summary/regionlist.html)
	BackupZone *string `required:"false"`

	// 专区ID
	UDBCId *string `required:"false"`

	// 专区里面DB升降级需要原来DB的信息
	DBId *string `required:"false"`
}

CheckUDBInstanceAllowanceRequest is request schema for CheckUDBInstanceAllowance action

type CheckUDBInstanceAllowanceResponse added in v0.6.9

type CheckUDBInstanceAllowanceResponse struct {
	response.CommonBase

	// 资源核查部分成功情况下,成功个数
	Count int
}

CheckUDBInstanceAllowanceResponse is response schema for CheckUDBInstanceAllowance action

type UDBClient

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

UDBClient is the client of UDB

func NewClient

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

NewClient will return a instance of UDBClient

func (*UDBClient) ChangeUDBParamGroup

func (c *UDBClient) ChangeUDBParamGroup(req *ChangeUDBParamGroupRequest) (*ChangeUDBParamGroupResponse, error)

ChangeUDBParamGroup - 修改配置文件

func (*UDBClient) CheckUDBInstanceAllowance added in v0.6.9

CheckUDBInstanceAllowance - 核查UDB资源余量

func (*UDBClient) NewChangeUDBParamGroupRequest

func (c *UDBClient) NewChangeUDBParamGroupRequest() *ChangeUDBParamGroupRequest

NewChangeUDBParamGroupRequest will create request of ChangeUDBParamGroup action.

func (*UDBClient) NewCheckUDBInstanceAllowanceRequest added in v0.6.9

func (c *UDBClient) NewCheckUDBInstanceAllowanceRequest() *CheckUDBInstanceAllowanceRequest

NewCheckUDBInstanceAllowanceRequest will create request of CheckUDBInstanceAllowance action.

Jump to

Keyboard shortcuts

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