v20170312

package
v3.0.107+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2017-03-12"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {

	// 实例ID,形如postgres-lnp6j617
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 帐号
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 帐号备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 帐号状态。 1-创建中,2-正常,3-修改中,4-密码重置中,-1-删除中
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// 帐号创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 帐号最后一次更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CloseDBExtranetAccess

func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)

本接口(CloseDBExtranetAccess)用于关闭实例外网链接。

func (*Client) CreateDBInstances

func (c *Client) CreateDBInstances(request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)

本接口 (CreateDBInstances) 用于创建一个或者多个PostgreSQL实例。

func (*Client) DescribeAccounts

func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)

本接口(DescribeAccounts)用于获取实例用户列表。

func (*Client) DescribeDBBackups

func (c *Client) DescribeDBBackups(request *DescribeDBBackupsRequest) (response *DescribeDBBackupsResponse, err error)

本接口(DescribeDBBackups)用于查询实例备份列表。

func (*Client) DescribeDBErrlogs

func (c *Client) DescribeDBErrlogs(request *DescribeDBErrlogsRequest) (response *DescribeDBErrlogsResponse, err error)

本接口(DescribeDBErrlogs)用于获取错误日志。

func (*Client) DescribeDBInstanceAttribute

func (c *Client) DescribeDBInstanceAttribute(request *DescribeDBInstanceAttributeRequest) (response *DescribeDBInstanceAttributeResponse, err error)

本接口 (DescribeDBInstanceAttribute) 用于查询某个实例的详情信息。

func (*Client) DescribeDBInstances

func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)

本接口 (DescribeDBInstances) 用于查询一个或多个实例的详细信息。

func (*Client) DescribeDBSlowlogs

func (c *Client) DescribeDBSlowlogs(request *DescribeDBSlowlogsRequest) (response *DescribeDBSlowlogsResponse, err error)

本接口(DescribeDBSlowlogs)用于获取慢查询日志。

func (*Client) DescribeDBXlogs

func (c *Client) DescribeDBXlogs(request *DescribeDBXlogsRequest) (response *DescribeDBXlogsResponse, err error)

本接口(DescribeDBXlogs)用于获取实例Xlog列表。

func (*Client) DescribeOrders

func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)

本接口(DescribeOrders)用于获取订单信息。

func (*Client) DescribeProductConfig

func (c *Client) DescribeProductConfig(request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)

本接口 (DescribeProductConfig) 用于查询售卖规格配置。

func (*Client) DescribeRegions

func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)

本接口 (DescribeRegions) 用于查询售卖地域信息。

func (*Client) DescribeZones

func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)

本接口 (DescribeZones) 用于查询支持的可用区信息。

func (*Client) InitDBInstances

func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)

本接口 (InitDBInstances) 用于初始化云数据库PostgreSQL实例。

func (*Client) InquiryPriceCreateDBInstances

func (c *Client) InquiryPriceCreateDBInstances(request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)

本接口 (InquiryPriceCreateDBInstances) 用于查询购买一个或多个实例的价格信息。

func (*Client) InquiryPriceRenewDBInstance

func (c *Client) InquiryPriceRenewDBInstance(request *InquiryPriceRenewDBInstanceRequest) (response *InquiryPriceRenewDBInstanceResponse, err error)

本接口(InquiryPriceRenewDBInstance)用于查询续费实例的价格。

func (*Client) InquiryPriceUpgradeDBInstance

func (c *Client) InquiryPriceUpgradeDBInstance(request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)

本接口(InquiryPriceUpgradeDBInstance)用于查询升级实例的价格。

func (*Client) ModifyAccountRemark

func (c *Client) ModifyAccountRemark(request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)

本接口(ModifyAccountRemark)用于修改帐号备注。

func (*Client) ModifyDBInstanceName

func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)

本接口(ModifyDBInstanceName)用于修改postgresql实例名字。

func (*Client) ModifyDBInstancesProject

func (c *Client) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)

本接口(ModifyDBInstancesProject)用于将实例转至其他项目。

func (*Client) OpenDBExtranetAccess

func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)

本接口(OpenDBExtranetAccess)用于开通外网。

func (*Client) RenewInstance

func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)

本接口(RenewInstance)用于续费实例。

func (*Client) ResetAccountPassword

func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)

本接口(ResetAccountPassword)用于重置实例的账户密码。

func (*Client) RestartDBInstance

func (c *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)

本接口(RestartDBInstance)用于重启实例。

func (*Client) SetAutoRenewFlag

func (c *Client) SetAutoRenewFlag(request *SetAutoRenewFlagRequest) (response *SetAutoRenewFlagResponse, err error)

本接口(SetAutoRenewFlag)用于设置自动续费。

func (*Client) UpgradeDBInstance

func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)

本接口(UpgradeDBInstance)用于升级实例。

type CloseDBExtranetAccessRequest

type CloseDBExtranetAccessRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-6r233v55
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}

func NewCloseDBExtranetAccessRequest

func NewCloseDBExtranetAccessRequest() (request *CloseDBExtranetAccessRequest)

func (*CloseDBExtranetAccessRequest) FromJsonString

func (r *CloseDBExtranetAccessRequest) FromJsonString(s string) error

func (*CloseDBExtranetAccessRequest) ToJsonString

func (r *CloseDBExtranetAccessRequest) ToJsonString() string

type CloseDBExtranetAccessResponse

type CloseDBExtranetAccessResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 异步任务流程ID
		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCloseDBExtranetAccessResponse

func NewCloseDBExtranetAccessResponse() (response *CloseDBExtranetAccessResponse)

func (*CloseDBExtranetAccessResponse) FromJsonString

func (r *CloseDBExtranetAccessResponse) FromJsonString(s string) error

func (*CloseDBExtranetAccessResponse) ToJsonString

func (r *CloseDBExtranetAccessResponse) ToJsonString() string

type CreateDBInstancesRequest

type CreateDBInstancesRequest struct {
	*tchttp.BaseRequest

	// 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
	SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`

	// PostgreSQL内核版本,目前只支持:9.3.5、9.5.4两种版本。
	DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`

	// 实例容量大小,单位:GB。
	Storage *uint64 `json:"Storage,omitempty" name:"Storage"`

	// 一次性购买的实例数量。取值1-100
	InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
	Period *uint64 `json:"Period,omitempty" name:"Period"`

	// 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 项目ID。
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`

	// 是否自动使用代金券。1(是),0(否),默认不使用。
	AutoVoucher *uint64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`

	// 代金券ID列表,目前仅支持指定一张代金券。
	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`

	// 私有网络ID。
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// 私有网络子网ID。
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
}

func NewCreateDBInstancesRequest

func NewCreateDBInstancesRequest() (request *CreateDBInstancesRequest)

func (*CreateDBInstancesRequest) FromJsonString

func (r *CreateDBInstancesRequest) FromJsonString(s string) error

func (*CreateDBInstancesRequest) ToJsonString

func (r *CreateDBInstancesRequest) ToJsonString() string

type CreateDBInstancesResponse

type CreateDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 订单号列表。每个实例对应一个订单号。
		DealNames []*string `json:"DealNames,omitempty" name:"DealNames" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateDBInstancesResponse

func NewCreateDBInstancesResponse() (response *CreateDBInstancesResponse)

func (*CreateDBInstancesResponse) FromJsonString

func (r *CreateDBInstancesResponse) FromJsonString(s string) error

func (*CreateDBInstancesResponse) ToJsonString

func (r *CreateDBInstancesResponse) ToJsonString() string

type DBBackup

type DBBackup struct {

	// 备份文件唯一标识
	Id *int64 `json:"Id,omitempty" name:"Id"`

	// 文件生成的开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 文件生成的结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 文件大小(K)
	Size *int64 `json:"Size,omitempty" name:"Size"`

	// 策略(0-实例备份;1-多库备份)
	Strategy *int64 `json:"Strategy,omitempty" name:"Strategy"`

	// 类型(0-定时)
	Way *int64 `json:"Way,omitempty" name:"Way"`

	// 备份方式(1-完整)
	Type *int64 `json:"Type,omitempty" name:"Type"`

	// 状态(1-创建中;2-成功;3-失败)
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// DB列表
	DbList []*string `json:"DbList,omitempty" name:"DbList" list`

	// 内网下载地址
	InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"`

	// 外网下载地址
	ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"`
}

type DBInstance

type DBInstance struct {

	// 实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段
	Region *string `json:"Region,omitempty" name:"Region"`

	// 实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 项目ID
	ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`

	// 私有网络ID
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

	// SubnetId
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`

	// 实例ID
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 实例名称
	DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`

	// 实例状态
	DBInstanceStatus *string `json:"DBInstanceStatus,omitempty" name:"DBInstanceStatus"`

	// 实例分配的内存大小,单位:GB
	DBInstanceMemory *uint64 `json:"DBInstanceMemory,omitempty" name:"DBInstanceMemory"`

	// 实例分配的存储空间大小,单位:GB
	DBInstanceStorage *uint64 `json:"DBInstanceStorage,omitempty" name:"DBInstanceStorage"`

	// 实例分配的CPU数量,单位:个
	DBInstanceCpu *uint64 `json:"DBInstanceCpu,omitempty" name:"DBInstanceCpu"`

	// 售卖规格ID
	DBInstanceClass *string `json:"DBInstanceClass,omitempty" name:"DBInstanceClass"`

	// 实例类型,类型有:1、primary(主实例);2、readonly(只读实例);3、guard(灾备实例);4、temp(临时实例)
	DBInstanceType *string `json:"DBInstanceType,omitempty" name:"DBInstanceType"`

	// 实例版本,目前只支持standard(双机高可用版, 一主一从)
	DBInstanceVersion *string `json:"DBInstanceVersion,omitempty" name:"DBInstanceVersion"`

	// 实例DB字符集
	DBCharset *string `json:"DBCharset,omitempty" name:"DBCharset"`

	// PostgreSQL内核版本
	DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`

	// 实例创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 实例执行最后一次更新的时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 实例到期时间
	ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`

	// 实例隔离时间
	IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"`

	// 计费模式,1、prepaid(包年包月,预付费);2、postpaid(按量计费,后付费)
	PayType *string `json:"PayType,omitempty" name:"PayType"`

	// 是否自动续费,1:自动续费,0:不自动续费
	AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"`

	// 实例网络连接信息
	DBInstanceNetInfo []*DBInstanceNetInfo `json:"DBInstanceNetInfo,omitempty" name:"DBInstanceNetInfo" list`
}

type DBInstanceNetInfo

type DBInstanceNetInfo struct {

	// DNS域名
	Address *string `json:"Address,omitempty" name:"Address"`

	// Ip
	Ip *string `json:"Ip,omitempty" name:"Ip"`

	// 连接Port地址
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 网络类型,1、inner(内网地址);2、public(外网地址)
	NetType *string `json:"NetType,omitempty" name:"NetType"`

	// 网络连接状态
	Status *string `json:"Status,omitempty" name:"Status"`
}

type DescribeAccountsRequest

type DescribeAccountsRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-6fego161
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 分页返回,每页最大返回数目,默认20,取值范围为1-100
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 分页返回,返回第几页的用户数据。页码从0开始计数
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 返回数据按照创建时间或者用户名排序。取值只能为createTime或者name。createTime-按照创建时间排序;name-按照用户名排序
	OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`

	// 返回结果是升序还是降序。取值只能为desc或者asc。desc-降序;asc-升序
	OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
}

func NewDescribeAccountsRequest

func NewDescribeAccountsRequest() (request *DescribeAccountsRequest)

func (*DescribeAccountsRequest) FromJsonString

func (r *DescribeAccountsRequest) FromJsonString(s string) error

func (*DescribeAccountsRequest) ToJsonString

func (r *DescribeAccountsRequest) ToJsonString() string

type DescribeAccountsResponse

type DescribeAccountsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 本次调用接口共返回了多少条数据。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 帐号列表详细信息。
		Details []*AccountInfo `json:"Details,omitempty" name:"Details" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAccountsResponse

func NewDescribeAccountsResponse() (response *DescribeAccountsResponse)

func (*DescribeAccountsResponse) FromJsonString

func (r *DescribeAccountsResponse) FromJsonString(s string) error

func (*DescribeAccountsResponse) ToJsonString

func (r *DescribeAccountsResponse) ToJsonString() string

type DescribeDBBackupsRequest

type DescribeDBBackupsRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-4wdeb0zv。
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 备份方式(1-全量)。目前只支持全量,取值为1。
	Type *int64 `json:"Type,omitempty" name:"Type"`

	// 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间,形如2018-06-10 17:06:38
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 备份列表分页返回,每页返回数量,默认为 20,最小为1,最大值为 100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 返回结果中的第几页,从第0页开始。默认为0。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeDBBackupsRequest

func NewDescribeDBBackupsRequest() (request *DescribeDBBackupsRequest)

func (*DescribeDBBackupsRequest) FromJsonString

func (r *DescribeDBBackupsRequest) FromJsonString(s string) error

func (*DescribeDBBackupsRequest) ToJsonString

func (r *DescribeDBBackupsRequest) ToJsonString() string

type DescribeDBBackupsResponse

type DescribeDBBackupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回备份列表中备份文件的个数
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 备份列表
		BackupList []*DBBackup `json:"BackupList,omitempty" name:"BackupList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBBackupsResponse

func NewDescribeDBBackupsResponse() (response *DescribeDBBackupsResponse)

func (*DescribeDBBackupsResponse) FromJsonString

func (r *DescribeDBBackupsResponse) FromJsonString(s string) error

func (*DescribeDBBackupsResponse) ToJsonString

func (r *DescribeDBBackupsResponse) ToJsonString() string

type DescribeDBErrlogsRequest

type DescribeDBErrlogsRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-5bq3wfjd
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 查询起始时间,形如2018-01-01 00:00:00,起始时间不得小于7天以前
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间,形如2018-01-01 00:00:00
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 数据库名字
	DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`

	// 搜索关键字
	SearchKeys []*string `json:"SearchKeys,omitempty" name:"SearchKeys" list`

	// 分页返回,每页返回的最大数量。取值为1-100
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 分页返回,返回第几页的数据,从第0页开始计数
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeDBErrlogsRequest

func NewDescribeDBErrlogsRequest() (request *DescribeDBErrlogsRequest)

func (*DescribeDBErrlogsRequest) FromJsonString

func (r *DescribeDBErrlogsRequest) FromJsonString(s string) error

func (*DescribeDBErrlogsRequest) ToJsonString

func (r *DescribeDBErrlogsRequest) ToJsonString() string

type DescribeDBErrlogsResponse

type DescribeDBErrlogsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 本次调用返回了多少条数据
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 错误日志列表
		Details []*ErrLogDetail `json:"Details,omitempty" name:"Details" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBErrlogsResponse

func NewDescribeDBErrlogsResponse() (response *DescribeDBErrlogsResponse)

func (*DescribeDBErrlogsResponse) FromJsonString

func (r *DescribeDBErrlogsResponse) FromJsonString(s string) error

func (*DescribeDBErrlogsResponse) ToJsonString

func (r *DescribeDBErrlogsResponse) ToJsonString() string

type DescribeDBInstanceAttributeRequest

type DescribeDBInstanceAttributeRequest struct {
	*tchttp.BaseRequest

	// 实例ID
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}

func NewDescribeDBInstanceAttributeRequest

func NewDescribeDBInstanceAttributeRequest() (request *DescribeDBInstanceAttributeRequest)

func (*DescribeDBInstanceAttributeRequest) FromJsonString

func (r *DescribeDBInstanceAttributeRequest) FromJsonString(s string) error

func (*DescribeDBInstanceAttributeRequest) ToJsonString

func (r *DescribeDBInstanceAttributeRequest) ToJsonString() string

type DescribeDBInstanceAttributeResponse

type DescribeDBInstanceAttributeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 实例详细信息。
		DBInstance *DBInstance `json:"DBInstance,omitempty" name:"DBInstance"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBInstanceAttributeResponse

func NewDescribeDBInstanceAttributeResponse() (response *DescribeDBInstanceAttributeResponse)

func (*DescribeDBInstanceAttributeResponse) FromJsonString

func (r *DescribeDBInstanceAttributeResponse) FromJsonString(s string) error

func (*DescribeDBInstanceAttributeResponse) ToJsonString

func (r *DescribeDBInstanceAttributeResponse) ToJsonString() string

type DescribeDBInstancesRequest

type DescribeDBInstancesRequest struct {
	*tchttp.BaseRequest

	// 过滤条件,目前支持:db-instance-id、db-instance-name两种。
	Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`

	// 每页显示数量,默认返回10条。
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 分页序号,从0开始。
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeDBInstancesRequest

func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest)

func (*DescribeDBInstancesRequest) FromJsonString

func (r *DescribeDBInstancesRequest) FromJsonString(s string) error

func (*DescribeDBInstancesRequest) ToJsonString

func (r *DescribeDBInstancesRequest) ToJsonString() string

type DescribeDBInstancesResponse

type DescribeDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 查询到的实例数量。
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 实例详细信息集合。
		DBInstanceSet []*DBInstance `json:"DBInstanceSet,omitempty" name:"DBInstanceSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBInstancesResponse

func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse)

func (*DescribeDBInstancesResponse) FromJsonString

func (r *DescribeDBInstancesResponse) FromJsonString(s string) error

func (*DescribeDBInstancesResponse) ToJsonString

func (r *DescribeDBInstancesResponse) ToJsonString() string

type DescribeDBSlowlogsRequest

type DescribeDBSlowlogsRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-lnp6j617
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 查询起始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间,形如2018-06-10 17:06:38
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 数据库名字
	DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`

	// 按照何种指标排序,取值为sum_calls或者sum_cost_time。sum_calls-总调用次数;sum_cost_time-总的花费时间
	OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`

	// 排序规则。desc-降序;asc-升序
	OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`

	// 分页返回结果,每页最大返回数量,取值为1-100,默认20
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 分页返回结果,返回结果的第几页,从0开始计数
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}

func NewDescribeDBSlowlogsRequest

func NewDescribeDBSlowlogsRequest() (request *DescribeDBSlowlogsRequest)

func (*DescribeDBSlowlogsRequest) FromJsonString

func (r *DescribeDBSlowlogsRequest) FromJsonString(s string) error

func (*DescribeDBSlowlogsRequest) ToJsonString

func (r *DescribeDBSlowlogsRequest) ToJsonString() string

type DescribeDBSlowlogsResponse

type DescribeDBSlowlogsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 本次返回多少条数据
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 慢查询日志详情
		Detail *SlowlogDetail `json:"Detail,omitempty" name:"Detail"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBSlowlogsResponse

func NewDescribeDBSlowlogsResponse() (response *DescribeDBSlowlogsResponse)

func (*DescribeDBSlowlogsResponse) FromJsonString

func (r *DescribeDBSlowlogsResponse) FromJsonString(s string) error

func (*DescribeDBSlowlogsResponse) ToJsonString

func (r *DescribeDBSlowlogsResponse) ToJsonString() string

type DescribeDBXlogsRequest

type DescribeDBXlogsRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-4wdeb0zv。
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间,形如2018-06-10 17:06:38
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 分页返回,表示返回第几页的条目。从第0页开始计数。
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 分页返回,表示每页有多少条目。取值为1-100。
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeDBXlogsRequest

func NewDescribeDBXlogsRequest() (request *DescribeDBXlogsRequest)

func (*DescribeDBXlogsRequest) FromJsonString

func (r *DescribeDBXlogsRequest) FromJsonString(s string) error

func (*DescribeDBXlogsRequest) ToJsonString

func (r *DescribeDBXlogsRequest) ToJsonString() string

type DescribeDBXlogsResponse

type DescribeDBXlogsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 表示此次返回结果有多少条数据。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// Xlog列表
		XlogList []*Xlog `json:"XlogList,omitempty" name:"XlogList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDBXlogsResponse

func NewDescribeDBXlogsResponse() (response *DescribeDBXlogsResponse)

func (*DescribeDBXlogsResponse) FromJsonString

func (r *DescribeDBXlogsResponse) FromJsonString(s string) error

func (*DescribeDBXlogsResponse) ToJsonString

func (r *DescribeDBXlogsResponse) ToJsonString() string

type DescribeOrdersRequest

type DescribeOrdersRequest struct {
	*tchttp.BaseRequest

	// 订单名集合
	DealNames []*string `json:"DealNames,omitempty" name:"DealNames" list`
}

func NewDescribeOrdersRequest

func NewDescribeOrdersRequest() (request *DescribeOrdersRequest)

func (*DescribeOrdersRequest) FromJsonString

func (r *DescribeOrdersRequest) FromJsonString(s string) error

func (*DescribeOrdersRequest) ToJsonString

func (r *DescribeOrdersRequest) ToJsonString() string

type DescribeOrdersResponse

type DescribeOrdersResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 订单数量
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 订单数组
		Deals []*PgDeal `json:"Deals,omitempty" name:"Deals" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeOrdersResponse

func NewDescribeOrdersResponse() (response *DescribeOrdersResponse)

func (*DescribeOrdersResponse) FromJsonString

func (r *DescribeOrdersResponse) FromJsonString(s string) error

func (*DescribeOrdersResponse) ToJsonString

func (r *DescribeOrdersResponse) ToJsonString() string

type DescribeProductConfigRequest

type DescribeProductConfigRequest struct {
	*tchttp.BaseRequest

	// 可用区名称
	Zone *string `json:"Zone,omitempty" name:"Zone"`
}

func NewDescribeProductConfigRequest

func NewDescribeProductConfigRequest() (request *DescribeProductConfigRequest)

func (*DescribeProductConfigRequest) FromJsonString

func (r *DescribeProductConfigRequest) FromJsonString(s string) error

func (*DescribeProductConfigRequest) ToJsonString

func (r *DescribeProductConfigRequest) ToJsonString() string

type DescribeProductConfigResponse

type DescribeProductConfigResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 售卖规格列表。
		SpecInfoList []*SpecInfo `json:"SpecInfoList,omitempty" name:"SpecInfoList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeProductConfigResponse

func NewDescribeProductConfigResponse() (response *DescribeProductConfigResponse)

func (*DescribeProductConfigResponse) FromJsonString

func (r *DescribeProductConfigResponse) FromJsonString(s string) error

func (*DescribeProductConfigResponse) ToJsonString

func (r *DescribeProductConfigResponse) ToJsonString() string

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeRegionsRequest

func NewDescribeRegionsRequest() (request *DescribeRegionsRequest)

func (*DescribeRegionsRequest) FromJsonString

func (r *DescribeRegionsRequest) FromJsonString(s string) error

func (*DescribeRegionsRequest) ToJsonString

func (r *DescribeRegionsRequest) ToJsonString() string

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回的结果数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 地域信息集合。
		RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeRegionsResponse

func NewDescribeRegionsResponse() (response *DescribeRegionsResponse)

func (*DescribeRegionsResponse) FromJsonString

func (r *DescribeRegionsResponse) FromJsonString(s string) error

func (*DescribeRegionsResponse) ToJsonString

func (r *DescribeRegionsResponse) ToJsonString() string

type DescribeZonesRequest

type DescribeZonesRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeZonesRequest

func NewDescribeZonesRequest() (request *DescribeZonesRequest)

func (*DescribeZonesRequest) FromJsonString

func (r *DescribeZonesRequest) FromJsonString(s string) error

func (*DescribeZonesRequest) ToJsonString

func (r *DescribeZonesRequest) ToJsonString() string

type DescribeZonesResponse

type DescribeZonesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回的结果数量。
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 可用区信息集合。
		ZoneSet []*ZoneInfo `json:"ZoneSet,omitempty" name:"ZoneSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeZonesResponse

func NewDescribeZonesResponse() (response *DescribeZonesResponse)

func (*DescribeZonesResponse) FromJsonString

func (r *DescribeZonesResponse) FromJsonString(s string) error

func (*DescribeZonesResponse) ToJsonString

func (r *DescribeZonesResponse) ToJsonString() string

type ErrLogDetail

type ErrLogDetail struct {

	// 用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 数据库名字
	Database *string `json:"Database,omitempty" name:"Database"`

	// 错误发生时间
	ErrTime *string `json:"ErrTime,omitempty" name:"ErrTime"`

	// 错误消息
	ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
}

type Filter

type Filter struct {

	// 过滤键的名称。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 一个或者多个过滤值。
	Values []*string `json:"Values,omitempty" name:"Values" list`
}

type InitDBInstancesRequest

type InitDBInstancesRequest struct {
	*tchttp.BaseRequest

	// 实例ID集合。
	DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`

	// 实例根账号用户名。
	AdminName *string `json:"AdminName,omitempty" name:"AdminName"`

	// 实例根账号用户名对应的密码。
	AdminPassword *string `json:"AdminPassword,omitempty" name:"AdminPassword"`

	// 实例字符集,目前只支持:UTF8、LATIN1。
	Charset *string `json:"Charset,omitempty" name:"Charset"`
}

func NewInitDBInstancesRequest

func NewInitDBInstancesRequest() (request *InitDBInstancesRequest)

func (*InitDBInstancesRequest) FromJsonString

func (r *InitDBInstancesRequest) FromJsonString(s string) error

func (*InitDBInstancesRequest) ToJsonString

func (r *InitDBInstancesRequest) ToJsonString() string

type InitDBInstancesResponse

type InitDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 实例ID集合。
		DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInitDBInstancesResponse

func NewInitDBInstancesResponse() (response *InitDBInstancesResponse)

func (*InitDBInstancesResponse) FromJsonString

func (r *InitDBInstancesResponse) FromJsonString(s string) error

func (*InitDBInstancesResponse) ToJsonString

func (r *InitDBInstancesResponse) ToJsonString() string

type InquiryPriceCreateDBInstancesRequest

type InquiryPriceCreateDBInstancesRequest struct {
	*tchttp.BaseRequest

	// 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
	SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`

	// 存储容量大小,单位:GB。
	Storage *uint64 `json:"Storage,omitempty" name:"Storage"`

	// 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
	InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
	Period *uint64 `json:"Period,omitempty" name:"Period"`

	// 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
	Pid *uint64 `json:"Pid,omitempty" name:"Pid"`

	// 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
}

func NewInquiryPriceCreateDBInstancesRequest

func NewInquiryPriceCreateDBInstancesRequest() (request *InquiryPriceCreateDBInstancesRequest)

func (*InquiryPriceCreateDBInstancesRequest) FromJsonString

func (r *InquiryPriceCreateDBInstancesRequest) FromJsonString(s string) error

func (*InquiryPriceCreateDBInstancesRequest) ToJsonString

func (r *InquiryPriceCreateDBInstancesRequest) ToJsonString() string

type InquiryPriceCreateDBInstancesResponse

type InquiryPriceCreateDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 原始价格,单位:分
		OriginalPrice *uint64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

		// 折后价格,单位:分
		Price *uint64 `json:"Price,omitempty" name:"Price"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceCreateDBInstancesResponse

func NewInquiryPriceCreateDBInstancesResponse() (response *InquiryPriceCreateDBInstancesResponse)

func (*InquiryPriceCreateDBInstancesResponse) FromJsonString

func (r *InquiryPriceCreateDBInstancesResponse) FromJsonString(s string) error

func (*InquiryPriceCreateDBInstancesResponse) ToJsonString

type InquiryPriceRenewDBInstanceRequest

type InquiryPriceRenewDBInstanceRequest struct {
	*tchttp.BaseRequest

	// 实例ID
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 续费周期,按月计算,最大不超过48
	Period *int64 `json:"Period,omitempty" name:"Period"`
}

func NewInquiryPriceRenewDBInstanceRequest

func NewInquiryPriceRenewDBInstanceRequest() (request *InquiryPriceRenewDBInstanceRequest)

func (*InquiryPriceRenewDBInstanceRequest) FromJsonString

func (r *InquiryPriceRenewDBInstanceRequest) FromJsonString(s string) error

func (*InquiryPriceRenewDBInstanceRequest) ToJsonString

func (r *InquiryPriceRenewDBInstanceRequest) ToJsonString() string

type InquiryPriceRenewDBInstanceResponse

type InquiryPriceRenewDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 总费用,打折前的。比如24650表示246.5元
		OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

		// 实际需要付款金额。比如24650表示246.5元
		Price *int64 `json:"Price,omitempty" name:"Price"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceRenewDBInstanceResponse

func NewInquiryPriceRenewDBInstanceResponse() (response *InquiryPriceRenewDBInstanceResponse)

func (*InquiryPriceRenewDBInstanceResponse) FromJsonString

func (r *InquiryPriceRenewDBInstanceResponse) FromJsonString(s string) error

func (*InquiryPriceRenewDBInstanceResponse) ToJsonString

func (r *InquiryPriceRenewDBInstanceResponse) ToJsonString() string

type InquiryPriceUpgradeDBInstanceRequest

type InquiryPriceUpgradeDBInstanceRequest struct {
	*tchttp.BaseRequest

	// 实例的磁盘大小,单位GB
	Storage *int64 `json:"Storage,omitempty" name:"Storage"`

	// 实例的内存大小,单位GB
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// 实例ID,形如postgres-hez4fh0v
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 实例计费类型,预付费或者后付费。PREPAID-预付费。目前只支持预付费。
	InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
}

func NewInquiryPriceUpgradeDBInstanceRequest

func NewInquiryPriceUpgradeDBInstanceRequest() (request *InquiryPriceUpgradeDBInstanceRequest)

func (*InquiryPriceUpgradeDBInstanceRequest) FromJsonString

func (r *InquiryPriceUpgradeDBInstanceRequest) FromJsonString(s string) error

func (*InquiryPriceUpgradeDBInstanceRequest) ToJsonString

func (r *InquiryPriceUpgradeDBInstanceRequest) ToJsonString() string

type InquiryPriceUpgradeDBInstanceResponse

type InquiryPriceUpgradeDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 总费用,打折前的
		OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`

		// 实际需要付款金额
		Price *int64 `json:"Price,omitempty" name:"Price"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewInquiryPriceUpgradeDBInstanceResponse

func NewInquiryPriceUpgradeDBInstanceResponse() (response *InquiryPriceUpgradeDBInstanceResponse)

func (*InquiryPriceUpgradeDBInstanceResponse) FromJsonString

func (r *InquiryPriceUpgradeDBInstanceResponse) FromJsonString(s string) error

func (*InquiryPriceUpgradeDBInstanceResponse) ToJsonString

type ModifyAccountRemarkRequest

type ModifyAccountRemarkRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-4wdeb0zv
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 实例用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 用户UserName对应的新备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

func NewModifyAccountRemarkRequest

func NewModifyAccountRemarkRequest() (request *ModifyAccountRemarkRequest)

func (*ModifyAccountRemarkRequest) FromJsonString

func (r *ModifyAccountRemarkRequest) FromJsonString(s string) error

func (*ModifyAccountRemarkRequest) ToJsonString

func (r *ModifyAccountRemarkRequest) ToJsonString() string

type ModifyAccountRemarkResponse

type ModifyAccountRemarkResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyAccountRemarkResponse

func NewModifyAccountRemarkResponse() (response *ModifyAccountRemarkResponse)

func (*ModifyAccountRemarkResponse) FromJsonString

func (r *ModifyAccountRemarkResponse) FromJsonString(s string) error

func (*ModifyAccountRemarkResponse) ToJsonString

func (r *ModifyAccountRemarkResponse) ToJsonString() string

type ModifyDBInstanceNameRequest

type ModifyDBInstanceNameRequest struct {
	*tchttp.BaseRequest

	// 数据库实例ID,形如postgres-6fego161
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 新的数据库实例名字
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
}

func NewModifyDBInstanceNameRequest

func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest)

func (*ModifyDBInstanceNameRequest) FromJsonString

func (r *ModifyDBInstanceNameRequest) FromJsonString(s string) error

func (*ModifyDBInstanceNameRequest) ToJsonString

func (r *ModifyDBInstanceNameRequest) ToJsonString() string

type ModifyDBInstanceNameResponse

type ModifyDBInstanceNameResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyDBInstanceNameResponse

func NewModifyDBInstanceNameResponse() (response *ModifyDBInstanceNameResponse)

func (*ModifyDBInstanceNameResponse) FromJsonString

func (r *ModifyDBInstanceNameResponse) FromJsonString(s string) error

func (*ModifyDBInstanceNameResponse) ToJsonString

func (r *ModifyDBInstanceNameResponse) ToJsonString() string

type ModifyDBInstancesProjectRequest

type ModifyDBInstancesProjectRequest struct {
	*tchttp.BaseRequest

	// postgresql实例ID数组
	DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`

	// postgresql实例所属新项目的ID
	ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"`
}

func NewModifyDBInstancesProjectRequest

func NewModifyDBInstancesProjectRequest() (request *ModifyDBInstancesProjectRequest)

func (*ModifyDBInstancesProjectRequest) FromJsonString

func (r *ModifyDBInstancesProjectRequest) FromJsonString(s string) error

func (*ModifyDBInstancesProjectRequest) ToJsonString

func (r *ModifyDBInstancesProjectRequest) ToJsonString() string

type ModifyDBInstancesProjectResponse

type ModifyDBInstancesProjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 转移项目成功的实例个数
		Count *int64 `json:"Count,omitempty" name:"Count"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyDBInstancesProjectResponse

func NewModifyDBInstancesProjectResponse() (response *ModifyDBInstancesProjectResponse)

func (*ModifyDBInstancesProjectResponse) FromJsonString

func (r *ModifyDBInstancesProjectResponse) FromJsonString(s string) error

func (*ModifyDBInstancesProjectResponse) ToJsonString

func (r *ModifyDBInstancesProjectResponse) ToJsonString() string

type NormalQueryItem

type NormalQueryItem struct {

	// 用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 调用次数
	Calls *int64 `json:"Calls,omitempty" name:"Calls"`

	// 粒度点
	CallsGrids []*int64 `json:"CallsGrids,omitempty" name:"CallsGrids" list`

	// 花费总时间
	CostTime *float64 `json:"CostTime,omitempty" name:"CostTime"`

	// 影响的行数
	Rows *int64 `json:"Rows,omitempty" name:"Rows"`

	// 花费最小时间
	MinCostTime *float64 `json:"MinCostTime,omitempty" name:"MinCostTime"`

	// 花费最大时间
	MaxCostTime *float64 `json:"MaxCostTime,omitempty" name:"MaxCostTime"`

	// 最早一条慢SQL时间
	FirstTime *string `json:"FirstTime,omitempty" name:"FirstTime"`

	// 最晚一条慢SQL时间
	LastTime *string `json:"LastTime,omitempty" name:"LastTime"`

	// 读共享内存块数
	SharedReadBlks *int64 `json:"SharedReadBlks,omitempty" name:"SharedReadBlks"`

	// 写共享内存块数
	SharedWriteBlks *int64 `json:"SharedWriteBlks,omitempty" name:"SharedWriteBlks"`

	// 读io总耗时
	ReadCostTime *int64 `json:"ReadCostTime,omitempty" name:"ReadCostTime"`

	// 写io总耗时
	WriteCostTime *int64 `json:"WriteCostTime,omitempty" name:"WriteCostTime"`

	// 数据库名字
	DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`

	// 脱敏后的慢SQL
	NormalQuery *string `json:"NormalQuery,omitempty" name:"NormalQuery"`
}

type OpenDBExtranetAccessRequest

type OpenDBExtranetAccessRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-hez4fh0v
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}

func NewOpenDBExtranetAccessRequest

func NewOpenDBExtranetAccessRequest() (request *OpenDBExtranetAccessRequest)

func (*OpenDBExtranetAccessRequest) FromJsonString

func (r *OpenDBExtranetAccessRequest) FromJsonString(s string) error

func (*OpenDBExtranetAccessRequest) ToJsonString

func (r *OpenDBExtranetAccessRequest) ToJsonString() string

type OpenDBExtranetAccessResponse

type OpenDBExtranetAccessResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 异步任务流程ID
		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewOpenDBExtranetAccessResponse

func NewOpenDBExtranetAccessResponse() (response *OpenDBExtranetAccessResponse)

func (*OpenDBExtranetAccessResponse) FromJsonString

func (r *OpenDBExtranetAccessResponse) FromJsonString(s string) error

func (*OpenDBExtranetAccessResponse) ToJsonString

func (r *OpenDBExtranetAccessResponse) ToJsonString() string

type PgDeal

type PgDeal struct {

	// 订单名
	DealName *string `json:"DealName,omitempty" name:"DealName"`

	// 所属用户
	OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`

	// 订单涉及多少个实例
	Count *int64 `json:"Count,omitempty" name:"Count"`

	// 付费模式。1-预付费;0-后付费
	PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`

	// 异步任务流程ID
	FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`

	// 实例ID数组
	DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
}

type RegionInfo

type RegionInfo struct {

	// 该地域对应的英文名称
	Region *string `json:"Region,omitempty" name:"Region"`

	// 该地域对应的中文名称
	RegionName *string `json:"RegionName,omitempty" name:"RegionName"`

	// 该地域对应的数字编号
	RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"`

	// 可用状态,UNAVAILABLE表示不可用,AVAILABLE表示可用
	RegionState *string `json:"RegionState,omitempty" name:"RegionState"`
}

type RenewInstanceRequest

type RenewInstanceRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-6fego161
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 续费多少个月
	Period *int64 `json:"Period,omitempty" name:"Period"`

	// 是否自动使用代金券,1是,0否,默认不使用
	AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`

	// 代金券ID列表,目前仅支持指定一张代金券
	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
}

func NewRenewInstanceRequest

func NewRenewInstanceRequest() (request *RenewInstanceRequest)

func (*RenewInstanceRequest) FromJsonString

func (r *RenewInstanceRequest) FromJsonString(s string) error

func (*RenewInstanceRequest) ToJsonString

func (r *RenewInstanceRequest) ToJsonString() string

type RenewInstanceResponse

type RenewInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 订单名
		DealName *string `json:"DealName,omitempty" name:"DealName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRenewInstanceResponse

func NewRenewInstanceResponse() (response *RenewInstanceResponse)

func (*RenewInstanceResponse) FromJsonString

func (r *RenewInstanceResponse) FromJsonString(s string) error

func (*RenewInstanceResponse) ToJsonString

func (r *RenewInstanceResponse) ToJsonString() string

type ResetAccountPasswordRequest

type ResetAccountPasswordRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-4wdeb0zv
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 实例账户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// UserName账户对应的新密码
	Password *string `json:"Password,omitempty" name:"Password"`
}

func NewResetAccountPasswordRequest

func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest)

func (*ResetAccountPasswordRequest) FromJsonString

func (r *ResetAccountPasswordRequest) FromJsonString(s string) error

func (*ResetAccountPasswordRequest) ToJsonString

func (r *ResetAccountPasswordRequest) ToJsonString() string

type ResetAccountPasswordResponse

type ResetAccountPasswordResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetAccountPasswordResponse

func NewResetAccountPasswordResponse() (response *ResetAccountPasswordResponse)

func (*ResetAccountPasswordResponse) FromJsonString

func (r *ResetAccountPasswordResponse) FromJsonString(s string) error

func (*ResetAccountPasswordResponse) ToJsonString

func (r *ResetAccountPasswordResponse) ToJsonString() string

type RestartDBInstanceRequest

type RestartDBInstanceRequest struct {
	*tchttp.BaseRequest

	// 实例ID,形如postgres-6r233v55
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}

func NewRestartDBInstanceRequest

func NewRestartDBInstanceRequest() (request *RestartDBInstanceRequest)

func (*RestartDBInstanceRequest) FromJsonString

func (r *RestartDBInstanceRequest) FromJsonString(s string) error

func (*RestartDBInstanceRequest) ToJsonString

func (r *RestartDBInstanceRequest) ToJsonString() string

type RestartDBInstanceResponse

type RestartDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 异步流程ID
		FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRestartDBInstanceResponse

func NewRestartDBInstanceResponse() (response *RestartDBInstanceResponse)

func (*RestartDBInstanceResponse) FromJsonString

func (r *RestartDBInstanceResponse) FromJsonString(s string) error

func (*RestartDBInstanceResponse) ToJsonString

func (r *RestartDBInstanceResponse) ToJsonString() string

type SetAutoRenewFlagRequest

type SetAutoRenewFlagRequest struct {
	*tchttp.BaseRequest

	// 实例ID数组
	DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`

	// 续费标记。0-正常续费;1-自动续费;2-到期不续费
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
}

func NewSetAutoRenewFlagRequest

func NewSetAutoRenewFlagRequest() (request *SetAutoRenewFlagRequest)

func (*SetAutoRenewFlagRequest) FromJsonString

func (r *SetAutoRenewFlagRequest) FromJsonString(s string) error

func (*SetAutoRenewFlagRequest) ToJsonString

func (r *SetAutoRenewFlagRequest) ToJsonString() string

type SetAutoRenewFlagResponse

type SetAutoRenewFlagResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设置成功的实例个数
		Count *int64 `json:"Count,omitempty" name:"Count"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSetAutoRenewFlagResponse

func NewSetAutoRenewFlagResponse() (response *SetAutoRenewFlagResponse)

func (*SetAutoRenewFlagResponse) FromJsonString

func (r *SetAutoRenewFlagResponse) FromJsonString(s string) error

func (*SetAutoRenewFlagResponse) ToJsonString

func (r *SetAutoRenewFlagResponse) ToJsonString() string

type SlowlogDetail

type SlowlogDetail struct {

	// 花费总时间
	TotalTime *float64 `json:"TotalTime,omitempty" name:"TotalTime"`

	// 调用总次数
	TotalCalls *int64 `json:"TotalCalls,omitempty" name:"TotalCalls"`

	// 脱敏后的慢SQL列表
	NormalQueries []*NormalQueryItem `json:"NormalQueries,omitempty" name:"NormalQueries" list`
}

type SpecInfo

type SpecInfo struct {

	// 地域英文编码,对应RegionSet的Region字段
	Region *string `json:"Region,omitempty" name:"Region"`

	// 区域英文编码,对应ZoneSet的Zone字段
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 规格详细信息列表
	SpecItemInfoList []*SpecItemInfo `json:"SpecItemInfoList,omitempty" name:"SpecItemInfoList" list`
}

type SpecItemInfo

type SpecItemInfo struct {

	// 规格ID
	SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`

	// PostgreSQL的内核版本编号
	Version *string `json:"Version,omitempty" name:"Version"`

	// 内核编号对应的完整版本名称
	VersionName *string `json:"VersionName,omitempty" name:"VersionName"`

	// CPU核数
	Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`

	// 内存大小,单位:MB
	Memory *uint64 `json:"Memory,omitempty" name:"Memory"`

	// 该规格所支持最大存储容量,单位:GB
	MaxStorage *uint64 `json:"MaxStorage,omitempty" name:"MaxStorage"`

	// 该规格所支持最小存储容量,单位:GB
	MinStorage *uint64 `json:"MinStorage,omitempty" name:"MinStorage"`

	// 该规格的预估QPS
	Qps *uint64 `json:"Qps,omitempty" name:"Qps"`

	// 该规格对应的计费ID
	Pid *uint64 `json:"Pid,omitempty" name:"Pid"`
}

type UpgradeDBInstanceRequest

type UpgradeDBInstanceRequest struct {
	*tchttp.BaseRequest

	// 升级后的实例内存大小,单位GB
	Memory *int64 `json:"Memory,omitempty" name:"Memory"`

	// 升级后的实例磁盘大小,单位GB
	Storage *int64 `json:"Storage,omitempty" name:"Storage"`

	// 实例ID,形如postgres-lnp6j617
	DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`

	// 是否自动使用代金券,1是,0否,默认不使用
	AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`

	// 代金券ID列表,目前仅支持指定一张代金券
	VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
}

func NewUpgradeDBInstanceRequest

func NewUpgradeDBInstanceRequest() (request *UpgradeDBInstanceRequest)

func (*UpgradeDBInstanceRequest) FromJsonString

func (r *UpgradeDBInstanceRequest) FromJsonString(s string) error

func (*UpgradeDBInstanceRequest) ToJsonString

func (r *UpgradeDBInstanceRequest) ToJsonString() string

type UpgradeDBInstanceResponse

type UpgradeDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 交易名字。
		DealName *string `json:"DealName,omitempty" name:"DealName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpgradeDBInstanceResponse

func NewUpgradeDBInstanceResponse() (response *UpgradeDBInstanceResponse)

func (*UpgradeDBInstanceResponse) FromJsonString

func (r *UpgradeDBInstanceResponse) FromJsonString(s string) error

func (*UpgradeDBInstanceResponse) ToJsonString

func (r *UpgradeDBInstanceResponse) ToJsonString() string

type Xlog

type Xlog struct {

	// 备份文件唯一标识
	Id *int64 `json:"Id,omitempty" name:"Id"`

	// 文件生成的开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 文件生成的结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 内网下载地址
	InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"`

	// 外网下载地址
	ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"`
}

type ZoneInfo

type ZoneInfo struct {

	// 该可用区的英文名称
	Zone *string `json:"Zone,omitempty" name:"Zone"`

	// 该可用区的中文名称
	ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`

	// 该可用区对应的数字编号
	ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`

	// 可用状态,UNAVAILABLE表示不可用,AVAILABLE表示可用
	ZoneState *string `json:"ZoneState,omitempty" name:"ZoneState"`
}

Jump to

Keyboard shortcuts

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