upgsql

package
v0.21.52 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package upgsql include resources of ucloud upgsql product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupUPgSQLLogRequest added in v0.21.49

type BackupUPgSQLLogRequest struct {
	request.CommonBase

	// 备份查询结果文件名称
	BackupFile *string `required:"true"`

	// 备份导出文件名称
	BackupName *string `required:"true"`

	// 日志开始时间
	BeginTime *int `required:"false"`

	// 日志结束时间
	EndTime *int `required:"false"`

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

	// 日志类型:slow(慢日志),error(错误日志)
	LogType *string `required:"false"`
}

BackupUPgSQLLogRequest is request schema for BackupUPgSQLLog action

type BackupUPgSQLLogResponse added in v0.21.49

type BackupUPgSQLLogResponse struct {
	response.CommonBase

	// 错误信息
	Message string
}

BackupUPgSQLLogResponse is response schema for BackupUPgSQLLog action

type CreateUPgSQLInstanceRequest

type CreateUPgSQLInstanceRequest struct {
	request.CommonBase

	// 管理员密码
	AdminPassword *string `required:"true"`

	// PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4
	DBVersion *string `required:"true"`

	// 磁盘空间(GB)
	DiskSpace *string `required:"true"`

	// UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal"
	InstanceMode *string `required:"false"`

	// 机器配置类型,2核4G的机器:o.pgsql2m.medium
	MachineType *string `required:"true"`

	// 实例名称,至少6位
	Name *string `required:"true"`

	// DB实例使用的配置参数组id
	ParamGroupID *int `required:"true"`

	// 端口默认为5432
	Port *int `required:"true"`

	// 子网ID
	SubnetID *string `required:"true"`

	// VPC的ID
	VPCID *string `required:"true"`
}

CreateUPgSQLInstanceRequest is request schema for CreateUPgSQLInstance action

type CreateUPgSQLInstanceResponse

type CreateUPgSQLInstanceResponse struct {
	response.CommonBase

	// 资源ID
	InstanceID string

	// 返回信息
	Message string
}

CreateUPgSQLInstanceResponse is response schema for CreateUPgSQLInstance action

type CreateUPgSQLParamTemplateRequest

type CreateUPgSQLParamTemplateRequest struct {
	request.CommonBase

	// 什么版本,以及类型的DB
	DBVersion *string `required:"true"`

	// 描述信息
	Description *string `required:"false"`

	// 模板名称
	GroupName *string `required:"true"`

	// 基准模板
	SrcGroupID *int `required:"true"`
}

CreateUPgSQLParamTemplateRequest is request schema for CreateUPgSQLParamTemplate action

type CreateUPgSQLParamTemplateResponse

type CreateUPgSQLParamTemplateResponse struct {
	response.CommonBase

	// 创建的模板ID
	GroupID int

	// 描述信息
	Message string
}

CreateUPgSQLParamTemplateResponse is response schema for CreateUPgSQLParamTemplate action

type CreateUPgSQLReadonlyRequest

type CreateUPgSQLReadonlyRequest struct {
	request.CommonBase

	// 磁盘空间
	DiskSpace *int `required:"true"`

	// 机器配置类型,2核4G的机器:o.pgsql2m.medium
	MachineType *string `required:"true"`

	// Db名称
	Name *string `required:"true"`

	// DB端口
	Port *int `required:"true"`

	// 同步的源库
	SrcInstanceID *string `required:"true"`

	// 子网ID
	SubnetID *string `required:"false"`

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

CreateUPgSQLReadonlyRequest is request schema for CreateUPgSQLReadonly action

type CreateUPgSQLReadonlyResponse

type CreateUPgSQLReadonlyResponse struct {
	response.CommonBase

	// 资源ID
	InstanceID string
}

CreateUPgSQLReadonlyResponse is response schema for CreateUPgSQLReadonly action

type DeleteUPgSQLInstanceRequest

type DeleteUPgSQLInstanceRequest struct {
	request.CommonBase

	// 实例ID
	InstanceID *string `required:"true"`
}

DeleteUPgSQLInstanceRequest is request schema for DeleteUPgSQLInstance action

type DeleteUPgSQLInstanceResponse

type DeleteUPgSQLInstanceResponse struct {
	response.CommonBase

	// 描述信息
	Message string
}

DeleteUPgSQLInstanceResponse is response schema for DeleteUPgSQLInstance action

type DeleteUPgSQLParamTemplateRequest

type DeleteUPgSQLParamTemplateRequest struct {
	request.CommonBase

	// 模板ID
	GroupID *int `required:"true"`
}

DeleteUPgSQLParamTemplateRequest is request schema for DeleteUPgSQLParamTemplate action

type DeleteUPgSQLParamTemplateResponse

type DeleteUPgSQLParamTemplateResponse struct {
	response.CommonBase

	// 描述信息
	Message string
}

DeleteUPgSQLParamTemplateResponse is response schema for DeleteUPgSQLParamTemplate action

type DownloadUPgSQLParamTemplateRequest

type DownloadUPgSQLParamTemplateRequest struct {
	request.CommonBase

	// 参数模板id
	GroupID *int `required:"true"`
}

DownloadUPgSQLParamTemplateRequest is request schema for DownloadUPgSQLParamTemplate action

type DownloadUPgSQLParamTemplateResponse

type DownloadUPgSQLParamTemplateResponse struct {
	response.CommonBase

	// base64编码过的
	Content string

	// 描述信息
	Message string
}

DownloadUPgSQLParamTemplateResponse is response schema for DownloadUPgSQLParamTemplate action

type GetUPgSQLBackupStrategyRequest

type GetUPgSQLBackupStrategyRequest struct {
	request.CommonBase

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

GetUPgSQLBackupStrategyRequest is request schema for GetUPgSQLBackupStrategy action

type GetUPgSQLBackupStrategyResponse

type GetUPgSQLBackupStrategyResponse struct {
	response.CommonBase

	// 默认的备份方式
	BackupMethod string

	// 自动备份预计开始时间范围
	BackupTimeRange string

	// 自动备份预期星期几(1~7)开始
	BackupWeek string

	// 返回的详细信息
	Message string
}

GetUPgSQLBackupStrategyResponse is response schema for GetUPgSQLBackupStrategy action

type GetUPgSQLBackupURLRequest

type GetUPgSQLBackupURLRequest struct {
	request.CommonBase

	// 备份Id
	BackupID *string `required:"true"`

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

GetUPgSQLBackupURLRequest is request schema for GetUPgSQLBackupURL action

type GetUPgSQLBackupURLResponse

type GetUPgSQLBackupURLResponse struct {
	response.CommonBase

	// DB实例备份文件公网的地址
	BackupPath string

	// DB实例备份文件内网的地址
	InnerBackupPath string

	// 返回的详细信息
	Message string
}

GetUPgSQLBackupURLResponse is response schema for GetUPgSQLBackupURL action

type GetUPgSQLInstanceLogRequest added in v0.21.49

type GetUPgSQLInstanceLogRequest struct {
	request.CommonBase

	//
	AccountID *int `required:"true"`

	// 起始时间,需使用时间戳
	BeginTime *int `required:"true"`

	//
	CompanyID *int `required:"true"`

	// 实例ClusterID
	DBId *string `required:"true"`

	// 结束时间,需使用时间戳,结束时间需大于起始时间
	EndTime *int `required:"true"`

	// 日志类型
	LogType *string `required:"true"`

	// 可用区
	ZoneID *int `required:"true"`
}

GetUPgSQLInstanceLogRequest is request schema for GetUPgSQLInstanceLog action

type GetUPgSQLInstanceLogResponse added in v0.21.49

type GetUPgSQLInstanceLogResponse struct {
	response.CommonBase

	// 返回的日志信息
	Log string
}

GetUPgSQLInstanceLogResponse is response schema for GetUPgSQLInstanceLog action

type GetUPgSQLInstancePriceRequest

type GetUPgSQLInstancePriceRequest struct {
	request.CommonBase

	// 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
	ChargeType *string `required:"false"`

	// 磁盘空间(GB)
	DiskSpace *int `required:"true"`

	// UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例
	InstanceMode *string `required:"true"`

	// 机器配置类型 参考2C4G机器:o.pgsql2m.medium
	MachineType *string `required:"true"`

	// 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
	Quantity *int `required:"false"`
}

GetUPgSQLInstancePriceRequest is request schema for GetUPgSQLInstancePrice action

type GetUPgSQLInstancePriceResponse

type GetUPgSQLInstancePriceResponse struct {
	response.CommonBase

	// 价格列表
	PriceSet []UPgSQLInstancePriceSet
}

GetUPgSQLInstancePriceResponse is response schema for GetUPgSQLInstancePrice action

type GetUPgSQLInstanceRequest

type GetUPgSQLInstanceRequest struct {
	request.CommonBase

	// 资源ID
	InstanceID *string `required:"true"`
}

GetUPgSQLInstanceRequest is request schema for GetUPgSQLInstance action

type GetUPgSQLInstanceResponse

type GetUPgSQLInstanceResponse struct {
	response.CommonBase

	//
	DataSet UDBInstance

	// 返回信息
	Message string
}

GetUPgSQLInstanceResponse is response schema for GetUPgSQLInstance action

type GetUPgSQLParamTemplateRequest

type GetUPgSQLParamTemplateRequest struct {
	request.CommonBase

	// 模板ID
	GroupID *int `required:"true"`
}

GetUPgSQLParamTemplateRequest is request schema for GetUPgSQLParamTemplate action

type GetUPgSQLParamTemplateResponse

type GetUPgSQLParamTemplateResponse struct {
	response.CommonBase

	// 参数列表
	Data []Param

	// 描述信息
	Message string
}

GetUPgSQLParamTemplateResponse is response schema for GetUPgSQLParamTemplate action

type GetUPgSQLUpgradePriceRequest

type GetUPgSQLUpgradePriceRequest struct {
	request.CommonBase

	// 磁盘空间(GB)
	DiskSpace *int `required:"true"`

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

	// UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal"
	InstanceMode *string `required:"false"`

	// 机器配置类型
	MachineType *string `required:"true"`
}

GetUPgSQLUpgradePriceRequest is request schema for GetUPgSQLUpgradePrice action

type GetUPgSQLUpgradePriceResponse

type GetUPgSQLUpgradePriceResponse struct {
	response.CommonBase

	// 限时优惠的折前原价
	OriginalPrice float64

	// 规格调整差价。精确到小数点后2位。
	Price float64
}

GetUPgSQLUpgradePriceResponse is response schema for GetUPgSQLUpgradePrice action

type ListUPgSQLBackupRequest

type ListUPgSQLBackupRequest struct {
	request.CommonBase

	// 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份
	BackupType *int `required:"false"`

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

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

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`
}

ListUPgSQLBackupRequest is request schema for ListUPgSQLBackup action

type ListUPgSQLBackupResponse

type ListUPgSQLBackupResponse struct {
	response.CommonBase

	// 备份信息列表.修参数
	DataSet []UPgSQLBackup

	// 返回的详细信息
	Message string

	// 总个数
	TotalCount int
}

ListUPgSQLBackupResponse is response schema for ListUPgSQLBackup action

type ListUPgSQLInstanceRequest

type ListUPgSQLInstanceRequest struct {
	request.CommonBase
}

ListUPgSQLInstanceRequest is request schema for ListUPgSQLInstance action

type ListUPgSQLInstanceResponse

type ListUPgSQLInstanceResponse struct {
	response.CommonBase

	// 数据库信息列表
	DataSet []UDBInstanceSet

	// 错误信息
	Message string
}

ListUPgSQLInstanceResponse is response schema for ListUPgSQLInstance action

type ListUPgSQLLogRequest added in v0.21.49

type ListUPgSQLLogRequest struct {
	request.CommonBase

	// 查询的日志开始的时间戳
	BeginTime *int `required:"true"`

	// 查询日志的结束时间戳
	EndTime *int `required:"true"`

	// 资源ID
	InstanceID *string `required:"true"`
}

ListUPgSQLLogRequest is request schema for ListUPgSQLLog action

type ListUPgSQLLogResponse added in v0.21.49

type ListUPgSQLLogResponse struct {
	response.CommonBase

	// 数据库日志信息列表
	DataSet []LogSet

	// 错误信息
	Message string
}

ListUPgSQLLogResponse is response schema for ListUPgSQLLog action

type ListUPgSQLMachineTypeRequest

type ListUPgSQLMachineTypeRequest struct {
	request.CommonBase
}

ListUPgSQLMachineTypeRequest is request schema for ListUPgSQLMachineType action

type ListUPgSQLMachineTypeResponse

type ListUPgSQLMachineTypeResponse struct {
	response.CommonBase

	//
	DataSet []PgSQLMachineType

	// 返回信息
	Message string
}

ListUPgSQLMachineTypeResponse is response schema for ListUPgSQLMachineType action

type ListUPgSQLVersionRequest

type ListUPgSQLVersionRequest struct {
	request.CommonBase
}

ListUPgSQLVersionRequest is request schema for ListUPgSQLVersion action

type ListUPgSQLVersionResponse

type ListUPgSQLVersionResponse struct {
	response.CommonBase

	// postgresql版本信息
	DataSet []PgSQLVersion

	// 返回信息
	Message string
}

ListUPgSQLVersionResponse is response schema for ListUPgSQLVersion action

type LogSet added in v0.21.49

type LogSet struct {

	//
	BeginTime int

	//
	EndTime int

	//
	Name string

	//
	Size int
}

LogSet - 日志信息

type Param

type Param struct {

	// 允许的值
	AllowedVal string

	// 允许类型
	ApplyType int

	// 参数格式类型
	FormatType int

	// 参数Key
	Key string

	// 是否可以修改
	Modifiable bool

	// 参数值
	Value string

	// 值类型
	ValueType int
}

Param -

type PgSQLMachineType

type PgSQLMachineType struct {

	// cpu核数
	Cpu int

	// 格式为nCmG,n代表cpu核数,m代表内存大小(GB)
	Description string

	// 机器类型ID
	ID string

	// 内存用量(GB)
	Memory int

	// 机器类型,N/O
	Os string
}

PgSQLMachineType - 机器类型信息列表

type PgSQLVersion

type PgSQLVersion struct {

	// 2位二进制控制是否开放单点和高可用,前一位控制单点是否开放,后一位控制高可用,例如"01"代表只开放高可用,"10"代表只开放单点,"11"代表全开放
	Available string

	// PgSQL版本
	DBVersion string
}

PgSQLVersion - postgresql版本信息

type RestartUPgSQLInstanceRequest

type RestartUPgSQLInstanceRequest struct {
	request.CommonBase

	// 是否强制重启
	ForceToRestart *bool `required:"false"`

	// 实例ID
	InstanceID *string `required:"true"`

	// 是否一并重启主机
	RestartHost *bool `required:"false"`
}

RestartUPgSQLInstanceRequest is request schema for RestartUPgSQLInstance action

type RestartUPgSQLInstanceResponse

type RestartUPgSQLInstanceResponse struct {
	response.CommonBase

	// 描述信息
	Message string
}

RestartUPgSQLInstanceResponse is response schema for RestartUPgSQLInstance action

type StartUPgSQLInstanceRequest

type StartUPgSQLInstanceRequest struct {
	request.CommonBase

	// 实例ID
	InstanceID *string `required:"true"`
}

StartUPgSQLInstanceRequest is request schema for StartUPgSQLInstance action

type StartUPgSQLInstanceResponse

type StartUPgSQLInstanceResponse struct {
	response.CommonBase

	// 返回信息
	Message string
}

StartUPgSQLInstanceResponse is response schema for StartUPgSQLInstance action

type StopUPgSQLCreatingReadonlyRequest

type StopUPgSQLCreatingReadonlyRequest struct {
	request.CommonBase

	// 停止创建从库
	InstanceID *string `required:"true"`
}

StopUPgSQLCreatingReadonlyRequest is request schema for StopUPgSQLCreatingReadonly action

type StopUPgSQLCreatingReadonlyResponse

type StopUPgSQLCreatingReadonlyResponse struct {
	response.CommonBase
}

StopUPgSQLCreatingReadonlyResponse is response schema for StopUPgSQLCreatingReadonly action

type StopUPgSQLInstanceRequest

type StopUPgSQLInstanceRequest struct {
	request.CommonBase

	// 是否强制关闭
	ForceToStop *bool `required:"false"`

	// 实例ID
	InstanceID *string `required:"true"`

	// 是否将主机一并关闭
	StopHost *bool `required:"false"`
}

StopUPgSQLInstanceRequest is request schema for StopUPgSQLInstance action

type StopUPgSQLInstanceResponse

type StopUPgSQLInstanceResponse struct {
	response.CommonBase

	// 描述信息
	Message string
}

StopUPgSQLInstanceResponse is response schema for StopUPgSQLInstance action

type UDBInstance

type UDBInstance struct {

	// 管理员帐户名,默认root
	AdminUser string

	// 备份开始时间,单位小时计,默认3点
	BackupBeginTime int

	// 备份文件保留的数量,默认7次
	BackupCount int

	// 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
	BackupDate string

	// 备份的时间段,范围[0,23]
	BackupTimeRange int

	// 跨可用区高可用备库所在可用区
	BackupZone string

	// DB实例创建时间,采用UTC计时时间戳
	CreateTime int

	// DB 版本
	DBVersion string

	// DB实例数据文件大小,单位GB
	DataFileSize float64

	// 磁盘空间(GB), 默认根据配置机型
	DiskSpace int

	// DB实例磁盘已使用空间,单位GB
	DiskUsedSize float64

	// DB实例过期时间,采用UTC计时时间戳
	ExpiredTime int

	// DBip
	IP string

	// DB实例id
	InstanceID string

	// Normal/HA,普通/高可用
	InstanceMode string

	// DB实例日志文件大小,单位GB
	LogFileSize float64

	// 内存限制(MB),默认根据配置机型
	MemoryLimit int

	// DB实例修改时间,采用UTC计时时间戳
	ModifyTime int

	// 实例名称
	Name string

	// DB实例使用的配置参数组id
	ParamGroupID int

	// DB port
	Port int

	// 备注
	Remark string

	// DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败
	State string

	// 子网ID
	SubnetID string

	// DB实例系统文件大小,单位GB
	SystemFileSize float64

	// VPC的ID
	VPCID string

	// DB实例所在可用区
	Zone string
}

UDBInstance - 数据库信息

type UDBInstanceSet

type UDBInstanceSet struct {

	// DB实例创建时间,采用UTC计时时间戳
	CreateTime int

	// 实例的版本,包括postgresql-10.4,postgresql-13.4
	DBVersion string

	// 从库列表
	DataSet []UDBReadonlyInstance

	// DB实例过期时间,采用UTC计时时间戳
	ExpiredTime int

	// DB实例ip
	IP string

	// 资源ID
	InstanceID string

	// normal/ha/readonly,普通/高可用/只读从库
	InstanceMode string

	// 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB)
	MachineType string

	// 实例名称
	Name string

	// 备注
	Remark string

	// 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败
	State string

	// 子网ID
	SubnetID string

	// VPC的ID
	VPCID string

	// 可用区
	Zone string
}

UDBInstanceSet - 数据库信息列表

type UDBReadonlyInstance

type UDBReadonlyInstance struct {

	// DB实例创建时间,采用UTC计时时间戳
	CreateTime int

	// 实例的版本,包括postgresql-10.4,postgresql-13.4
	DBVersion string

	// DB实例过期时间,采用UTC计时时间戳
	ExpiredTime int

	// DB实例ip
	IP string

	// 资源ID
	InstanceID string

	// normal/ha/readonly,普通/高可用/只读从库
	InstanceMode string

	// 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB)
	MachineType string

	// 实例名称
	Name string

	// 备注
	Remark string

	// 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败
	State string

	// 子网ID
	SubnetID string

	// VPC的ID
	VPCID string

	// 可用区
	Zone string
}

UDBReadonlyInstance - 只读从库结构

type UPgSQLBackup

type UPgSQLBackup struct {

	// 备份完成时间(Unix时间戳)
	BackupEndTime int

	// 备份id
	BackupID string

	// 备份名称
	BackupName string

	// 备份文件大小(字节)
	BackupSize int

	// 备份时间(Unix时间戳)
	BackupStartTime int

	// 备份类型,手动或者自动
	BackupType int

	// DB实例Id
	InstanceID string

	// 备份所在地域
	Region string

	// 备份状态 (Backuping:备份中,Success:备份成功, Failed:备份失败, Expired:备份过期)
	State string
}

UPgSQLBackup - 备份详情信息

type UPgSQLClient

type UPgSQLClient struct {
	*ucloud.Client
}

UPgSQLClient is the client of UPgSQL

func NewClient

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

NewClient will return a instance of UPgSQLClient

func (*UPgSQLClient) BackupUPgSQLLog added in v0.21.49

API: BackupUPgSQLLog

备份日志包

func (*UPgSQLClient) CreateUPgSQLInstance

API: CreateUPgSQLInstance

创建PG云数据库

func (*UPgSQLClient) CreateUPgSQLParamTemplate

API: CreateUPgSQLParamTemplate

创建PG参数模板

func (*UPgSQLClient) CreateUPgSQLReadonly

API: CreateUPgSQLReadonly

创建PG从库

func (*UPgSQLClient) DeleteUPgSQLInstance

API: DeleteUPgSQLInstance

删除PG实例

func (*UPgSQLClient) DeleteUPgSQLParamTemplate

API: DeleteUPgSQLParamTemplate

删除参数模板

func (*UPgSQLClient) DownloadUPgSQLParamTemplate

API: DownloadUPgSQLParamTemplate

下载参数模板信息

func (*UPgSQLClient) GetUPgSQLBackupStrategy

API: GetUPgSQLBackupStrategy

获取备份策略

func (*UPgSQLClient) GetUPgSQLBackupURL

API: GetUPgSQLBackupURL

获取备份下载地址

func (*UPgSQLClient) GetUPgSQLInstance

API: GetUPgSQLInstance

获取PG云数据库实例描述

func (*UPgSQLClient) GetUPgSQLInstanceLog added in v0.21.49

API: GetUPgSQLInstanceLog

可以查询DB的错误日志和满查询日志

func (*UPgSQLClient) GetUPgSQLInstancePrice

API: GetUPgSQLInstancePrice

获取创建PG云数据库价格

func (*UPgSQLClient) GetUPgSQLParamTemplate

API: GetUPgSQLParamTemplate

获取模板信息

func (*UPgSQLClient) GetUPgSQLUpgradePrice

API: GetUPgSQLUpgradePrice

获取 PG 云数据库升降级价格

func (*UPgSQLClient) ListUPgSQLBackup

API: ListUPgSQLBackup

获取备份列表

func (*UPgSQLClient) ListUPgSQLInstance

API: ListUPgSQLInstance

获取PG云数据库列表

func (*UPgSQLClient) ListUPgSQLLog added in v0.21.49

func (c *UPgSQLClient) ListUPgSQLLog(req *ListUPgSQLLogRequest) (*ListUPgSQLLogResponse, error)

API: ListUPgSQLLog

获取数据库日志

func (*UPgSQLClient) ListUPgSQLMachineType

API: ListUPgSQLMachineType

获取UPgSQL支持机器类型列表

func (*UPgSQLClient) ListUPgSQLVersion

API: ListUPgSQLVersion

获取UPgSQL支持版本列表

func (*UPgSQLClient) NewBackupUPgSQLLogRequest added in v0.21.49

func (c *UPgSQLClient) NewBackupUPgSQLLogRequest() *BackupUPgSQLLogRequest

NewBackupUPgSQLLogRequest will create request of BackupUPgSQLLog action.

func (*UPgSQLClient) NewCreateUPgSQLInstanceRequest

func (c *UPgSQLClient) NewCreateUPgSQLInstanceRequest() *CreateUPgSQLInstanceRequest

NewCreateUPgSQLInstanceRequest will create request of CreateUPgSQLInstance action.

func (*UPgSQLClient) NewCreateUPgSQLParamTemplateRequest

func (c *UPgSQLClient) NewCreateUPgSQLParamTemplateRequest() *CreateUPgSQLParamTemplateRequest

NewCreateUPgSQLParamTemplateRequest will create request of CreateUPgSQLParamTemplate action.

func (*UPgSQLClient) NewCreateUPgSQLReadonlyRequest

func (c *UPgSQLClient) NewCreateUPgSQLReadonlyRequest() *CreateUPgSQLReadonlyRequest

NewCreateUPgSQLReadonlyRequest will create request of CreateUPgSQLReadonly action.

func (*UPgSQLClient) NewDeleteUPgSQLInstanceRequest

func (c *UPgSQLClient) NewDeleteUPgSQLInstanceRequest() *DeleteUPgSQLInstanceRequest

NewDeleteUPgSQLInstanceRequest will create request of DeleteUPgSQLInstance action.

func (*UPgSQLClient) NewDeleteUPgSQLParamTemplateRequest

func (c *UPgSQLClient) NewDeleteUPgSQLParamTemplateRequest() *DeleteUPgSQLParamTemplateRequest

NewDeleteUPgSQLParamTemplateRequest will create request of DeleteUPgSQLParamTemplate action.

func (*UPgSQLClient) NewDownloadUPgSQLParamTemplateRequest

func (c *UPgSQLClient) NewDownloadUPgSQLParamTemplateRequest() *DownloadUPgSQLParamTemplateRequest

NewDownloadUPgSQLParamTemplateRequest will create request of DownloadUPgSQLParamTemplate action.

func (*UPgSQLClient) NewGetUPgSQLBackupStrategyRequest

func (c *UPgSQLClient) NewGetUPgSQLBackupStrategyRequest() *GetUPgSQLBackupStrategyRequest

NewGetUPgSQLBackupStrategyRequest will create request of GetUPgSQLBackupStrategy action.

func (*UPgSQLClient) NewGetUPgSQLBackupURLRequest

func (c *UPgSQLClient) NewGetUPgSQLBackupURLRequest() *GetUPgSQLBackupURLRequest

NewGetUPgSQLBackupURLRequest will create request of GetUPgSQLBackupURL action.

func (*UPgSQLClient) NewGetUPgSQLInstanceLogRequest added in v0.21.49

func (c *UPgSQLClient) NewGetUPgSQLInstanceLogRequest() *GetUPgSQLInstanceLogRequest

NewGetUPgSQLInstanceLogRequest will create request of GetUPgSQLInstanceLog action.

func (*UPgSQLClient) NewGetUPgSQLInstancePriceRequest

func (c *UPgSQLClient) NewGetUPgSQLInstancePriceRequest() *GetUPgSQLInstancePriceRequest

NewGetUPgSQLInstancePriceRequest will create request of GetUPgSQLInstancePrice action.

func (*UPgSQLClient) NewGetUPgSQLInstanceRequest

func (c *UPgSQLClient) NewGetUPgSQLInstanceRequest() *GetUPgSQLInstanceRequest

NewGetUPgSQLInstanceRequest will create request of GetUPgSQLInstance action.

func (*UPgSQLClient) NewGetUPgSQLParamTemplateRequest

func (c *UPgSQLClient) NewGetUPgSQLParamTemplateRequest() *GetUPgSQLParamTemplateRequest

NewGetUPgSQLParamTemplateRequest will create request of GetUPgSQLParamTemplate action.

func (*UPgSQLClient) NewGetUPgSQLUpgradePriceRequest

func (c *UPgSQLClient) NewGetUPgSQLUpgradePriceRequest() *GetUPgSQLUpgradePriceRequest

NewGetUPgSQLUpgradePriceRequest will create request of GetUPgSQLUpgradePrice action.

func (*UPgSQLClient) NewListUPgSQLBackupRequest

func (c *UPgSQLClient) NewListUPgSQLBackupRequest() *ListUPgSQLBackupRequest

NewListUPgSQLBackupRequest will create request of ListUPgSQLBackup action.

func (*UPgSQLClient) NewListUPgSQLInstanceRequest

func (c *UPgSQLClient) NewListUPgSQLInstanceRequest() *ListUPgSQLInstanceRequest

NewListUPgSQLInstanceRequest will create request of ListUPgSQLInstance action.

func (*UPgSQLClient) NewListUPgSQLLogRequest added in v0.21.49

func (c *UPgSQLClient) NewListUPgSQLLogRequest() *ListUPgSQLLogRequest

NewListUPgSQLLogRequest will create request of ListUPgSQLLog action.

func (*UPgSQLClient) NewListUPgSQLMachineTypeRequest

func (c *UPgSQLClient) NewListUPgSQLMachineTypeRequest() *ListUPgSQLMachineTypeRequest

NewListUPgSQLMachineTypeRequest will create request of ListUPgSQLMachineType action.

func (*UPgSQLClient) NewListUPgSQLVersionRequest

func (c *UPgSQLClient) NewListUPgSQLVersionRequest() *ListUPgSQLVersionRequest

NewListUPgSQLVersionRequest will create request of ListUPgSQLVersion action.

func (*UPgSQLClient) NewRestartUPgSQLInstanceRequest

func (c *UPgSQLClient) NewRestartUPgSQLInstanceRequest() *RestartUPgSQLInstanceRequest

NewRestartUPgSQLInstanceRequest will create request of RestartUPgSQLInstance action.

func (*UPgSQLClient) NewStartUPgSQLInstanceRequest

func (c *UPgSQLClient) NewStartUPgSQLInstanceRequest() *StartUPgSQLInstanceRequest

NewStartUPgSQLInstanceRequest will create request of StartUPgSQLInstance action.

func (*UPgSQLClient) NewStopUPgSQLCreatingReadonlyRequest

func (c *UPgSQLClient) NewStopUPgSQLCreatingReadonlyRequest() *StopUPgSQLCreatingReadonlyRequest

NewStopUPgSQLCreatingReadonlyRequest will create request of StopUPgSQLCreatingReadonly action.

func (*UPgSQLClient) NewStopUPgSQLInstanceRequest

func (c *UPgSQLClient) NewStopUPgSQLInstanceRequest() *StopUPgSQLInstanceRequest

NewStopUPgSQLInstanceRequest will create request of StopUPgSQLInstance action.

func (*UPgSQLClient) NewUpdateUPgSQLAttributeRequest

func (c *UPgSQLClient) NewUpdateUPgSQLAttributeRequest() *UpdateUPgSQLAttributeRequest

NewUpdateUPgSQLAttributeRequest will create request of UpdateUPgSQLAttribute action.

func (*UPgSQLClient) NewUpdateUPgSQLBackupStrategyRequest

func (c *UPgSQLClient) NewUpdateUPgSQLBackupStrategyRequest() *UpdateUPgSQLBackupStrategyRequest

NewUpdateUPgSQLBackupStrategyRequest will create request of UpdateUPgSQLBackupStrategy action.

func (*UPgSQLClient) NewUpdateUPgSQLPasswordRequest

func (c *UPgSQLClient) NewUpdateUPgSQLPasswordRequest() *UpdateUPgSQLPasswordRequest

NewUpdateUPgSQLPasswordRequest will create request of UpdateUPgSQLPassword action.

func (*UPgSQLClient) NewUpgradeUPgSQLInstanceRequest

func (c *UPgSQLClient) NewUpgradeUPgSQLInstanceRequest() *UpgradeUPgSQLInstanceRequest

NewUpgradeUPgSQLInstanceRequest will create request of UpgradeUPgSQLInstance action.

func (*UPgSQLClient) NewUploadUPgSQLParamTemplateRequest

func (c *UPgSQLClient) NewUploadUPgSQLParamTemplateRequest() *UploadUPgSQLParamTemplateRequest

NewUploadUPgSQLParamTemplateRequest will create request of UploadUPgSQLParamTemplate action.

func (*UPgSQLClient) RestartUPgSQLInstance

API: RestartUPgSQLInstance

重启PG实例

func (*UPgSQLClient) StartUPgSQLInstance

API: StartUPgSQLInstance

启动 PG实例

func (*UPgSQLClient) StopUPgSQLCreatingReadonly

API: StopUPgSQLCreatingReadonly

停止创建从库

func (*UPgSQLClient) StopUPgSQLInstance

API: StopUPgSQLInstance

关闭PG实例

func (*UPgSQLClient) UpdateUPgSQLAttribute

API: UpdateUPgSQLAttribute

更新数据库属性

func (*UPgSQLClient) UpdateUPgSQLBackupStrategy

API: UpdateUPgSQLBackupStrategy

修改备份策略

func (*UPgSQLClient) UpdateUPgSQLPassword

API: UpdateUPgSQLPassword

更新数据库密码

func (*UPgSQLClient) UpgradeUPgSQLInstance

API: UpgradeUPgSQLInstance

硬件规格升降级

func (*UPgSQLClient) UploadUPgSQLParamTemplate

API: UploadUPgSQLParamTemplate

上传参数模板

type UPgSQLInstancePriceSet

type UPgSQLInstancePriceSet struct {

	// 计费类型,Year,Month,Dynamic。
	ChargeType string

	// 购买原价,单位:元。
	OriginalPrice float64

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

UPgSQLInstancePriceSet - PG云数据库价格

type UpdateUPgSQLAttributeRequest

type UpdateUPgSQLAttributeRequest struct {
	request.CommonBase

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

	// 新的db名字(不能为空字符串)
	Name *string `required:"false"`

	// 新的备注信息
	Remark *string `required:"false"`
}

UpdateUPgSQLAttributeRequest is request schema for UpdateUPgSQLAttribute action

type UpdateUPgSQLAttributeResponse

type UpdateUPgSQLAttributeResponse struct {
	response.CommonBase

	// 返回的详细信息
	Message string
}

UpdateUPgSQLAttributeResponse is response schema for UpdateUPgSQLAttribute action

type UpdateUPgSQLBackupStrategyRequest

type UpdateUPgSQLBackupStrategyRequest struct {
	request.CommonBase

	// 选择默认的备份方式
	BackupMethod *string `required:"false"`

	// 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00)
	BackupTimeRange *string `required:"false"`

	// 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日)
	BackupWeek *string `required:"false"`

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

UpdateUPgSQLBackupStrategyRequest is request schema for UpdateUPgSQLBackupStrategy action

type UpdateUPgSQLBackupStrategyResponse

type UpdateUPgSQLBackupStrategyResponse struct {
	response.CommonBase

	// 返回的详细信息
	Message string
}

UpdateUPgSQLBackupStrategyResponse is response schema for UpdateUPgSQLBackupStrategy action

type UpdateUPgSQLPasswordRequest

type UpdateUPgSQLPasswordRequest struct {
	request.CommonBase

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

	// 新的db密码
	Password *string `required:"true"`
}

UpdateUPgSQLPasswordRequest is request schema for UpdateUPgSQLPassword action

type UpdateUPgSQLPasswordResponse

type UpdateUPgSQLPasswordResponse struct {
	response.CommonBase

	// 返回的详细信息
	Message string
}

UpdateUPgSQLPasswordResponse is response schema for UpdateUPgSQLPassword action

type UpgradeUPgSQLInstanceRequest

type UpgradeUPgSQLInstanceRequest struct {
	request.CommonBase

	// 磁盘空间(GB)
	DiskSpace *int `required:"true"`

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

	// 机器配置类型
	MachineType *string `required:"true"`
}

UpgradeUPgSQLInstanceRequest is request schema for UpgradeUPgSQLInstance action

type UpgradeUPgSQLInstanceResponse

type UpgradeUPgSQLInstanceResponse struct {
	response.CommonBase

	// 错误信息
	Message string
}

UpgradeUPgSQLInstanceResponse is response schema for UpgradeUPgSQLInstance action

type UploadUPgSQLParamTemplateRequest

type UploadUPgSQLParamTemplateRequest struct {
	request.CommonBase

	// base64编码过的
	Content *string `required:"true"`

	// 应用的DB版本
	DBVersion *string `required:"true"`

	// 模板描述
	Description *string `required:"false"`

	// 模板名称
	GroupName *string `required:"true"`

	// 版本
	ParamGroupType *string `required:"false"`
}

UploadUPgSQLParamTemplateRequest is request schema for UploadUPgSQLParamTemplate action

type UploadUPgSQLParamTemplateResponse

type UploadUPgSQLParamTemplateResponse struct {
	response.CommonBase

	// 生成的模板ID
	GroupID int

	// 描述信息
	Message string
}

UploadUPgSQLParamTemplateResponse is response schema for UploadUPgSQLParamTemplate action

Jump to

Keyboard shortcuts

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