Documentation
¶
Index ¶
- Constants
- type AccountInfo
- type AddDBInstanceToReadOnlyGroupRequest
- type AddDBInstanceToReadOnlyGroupResponse
- type Client
- func (c *Client) AddDBInstanceToReadOnlyGroup(request *AddDBInstanceToReadOnlyGroupRequest) (response *AddDBInstanceToReadOnlyGroupResponse, err error)
- func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
- func (c *Client) CloseServerlessDBExtranetAccess(request *CloseServerlessDBExtranetAccessRequest) (response *CloseServerlessDBExtranetAccessResponse, err error)
- func (c *Client) CreateDBInstances(request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
- func (c *Client) CreateReadOnlyDBInstance(request *CreateReadOnlyDBInstanceRequest) (response *CreateReadOnlyDBInstanceResponse, err error)
- func (c *Client) CreateReadOnlyGroup(request *CreateReadOnlyGroupRequest) (response *CreateReadOnlyGroupResponse, err error)
- func (c *Client) CreateServerlessDBInstance(request *CreateServerlessDBInstanceRequest) (response *CreateServerlessDBInstanceResponse, err error)
- func (c *Client) DeleteReadOnlyGroup(request *DeleteReadOnlyGroupRequest) (response *DeleteReadOnlyGroupResponse, err error)
- func (c *Client) DeleteServerlessDBInstance(request *DeleteServerlessDBInstanceRequest) (response *DeleteServerlessDBInstanceResponse, err error)
- func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
- func (c *Client) DescribeDBBackups(request *DescribeDBBackupsRequest) (response *DescribeDBBackupsResponse, err error)
- func (c *Client) DescribeDBErrlogs(request *DescribeDBErrlogsRequest) (response *DescribeDBErrlogsResponse, err error)
- func (c *Client) DescribeDBInstanceAttribute(request *DescribeDBInstanceAttributeRequest) (response *DescribeDBInstanceAttributeResponse, err error)
- func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
- func (c *Client) DescribeDBSlowlogs(request *DescribeDBSlowlogsRequest) (response *DescribeDBSlowlogsResponse, err error)
- func (c *Client) DescribeDBXlogs(request *DescribeDBXlogsRequest) (response *DescribeDBXlogsResponse, err error)
- func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
- func (c *Client) DescribeProductConfig(request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
- func (c *Client) DescribeReadOnlyGroups(request *DescribeReadOnlyGroupsRequest) (response *DescribeReadOnlyGroupsResponse, err error)
- func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
- func (c *Client) DescribeServerlessDBInstances(request *DescribeServerlessDBInstancesRequest) (response *DescribeServerlessDBInstancesResponse, err error)
- func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
- func (c *Client) DestroyDBInstance(request *DestroyDBInstanceRequest) (response *DestroyDBInstanceResponse, err error)
- func (c *Client) DisIsolateDBInstances(request *DisIsolateDBInstancesRequest) (response *DisIsolateDBInstancesResponse, err error)
- func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
- func (c *Client) InquiryPriceCreateDBInstances(request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
- func (c *Client) InquiryPriceRenewDBInstance(request *InquiryPriceRenewDBInstanceRequest) (response *InquiryPriceRenewDBInstanceResponse, err error)
- func (c *Client) InquiryPriceUpgradeDBInstance(request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
- func (c *Client) IsolateDBInstances(request *IsolateDBInstancesRequest) (response *IsolateDBInstancesResponse, err error)
- func (c *Client) ModifyAccountRemark(request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
- func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
- func (c *Client) ModifyDBInstanceReadOnlyGroup(request *ModifyDBInstanceReadOnlyGroupRequest) (response *ModifyDBInstanceReadOnlyGroupResponse, err error)
- func (c *Client) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
- func (c *Client) ModifyReadOnlyGroupConfig(request *ModifyReadOnlyGroupConfigRequest) (response *ModifyReadOnlyGroupConfigResponse, err error)
- func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
- func (c *Client) OpenServerlessDBExtranetAccess(request *OpenServerlessDBExtranetAccessRequest) (response *OpenServerlessDBExtranetAccessResponse, err error)
- func (c *Client) RebalanceReadOnlyGroup(request *RebalanceReadOnlyGroupRequest) (response *RebalanceReadOnlyGroupResponse, err error)
- func (c *Client) RemoveDBInstanceFromReadOnlyGroup(request *RemoveDBInstanceFromReadOnlyGroupRequest) (response *RemoveDBInstanceFromReadOnlyGroupResponse, err error)
- func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
- func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
- func (c *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
- func (c *Client) SetAutoRenewFlag(request *SetAutoRenewFlagRequest) (response *SetAutoRenewFlagResponse, err error)
- func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
- type CloseDBExtranetAccessRequest
- type CloseDBExtranetAccessResponse
- type CloseServerlessDBExtranetAccessRequest
- type CloseServerlessDBExtranetAccessResponse
- type CreateDBInstancesRequest
- type CreateDBInstancesResponse
- type CreateReadOnlyDBInstanceRequest
- type CreateReadOnlyDBInstanceResponse
- type CreateReadOnlyGroupRequest
- type CreateReadOnlyGroupResponse
- type CreateServerlessDBInstanceRequest
- type CreateServerlessDBInstanceResponse
- type DBBackup
- type DBInstance
- type DBInstanceNetInfo
- type DeleteReadOnlyGroupRequest
- type DeleteReadOnlyGroupResponse
- type DeleteServerlessDBInstanceRequest
- type DeleteServerlessDBInstanceResponse
- type DescribeAccountsRequest
- type DescribeAccountsResponse
- type DescribeDBBackupsRequest
- type DescribeDBBackupsResponse
- type DescribeDBErrlogsRequest
- type DescribeDBErrlogsResponse
- type DescribeDBInstanceAttributeRequest
- type DescribeDBInstanceAttributeResponse
- type DescribeDBInstancesRequest
- type DescribeDBInstancesResponse
- type DescribeDBSlowlogsRequest
- type DescribeDBSlowlogsResponse
- type DescribeDBXlogsRequest
- type DescribeDBXlogsResponse
- type DescribeDatabasesRequest
- type DescribeDatabasesResponse
- type DescribeOrdersRequest
- type DescribeOrdersResponse
- type DescribeProductConfigRequest
- type DescribeProductConfigResponse
- type DescribeReadOnlyGroupsRequest
- type DescribeReadOnlyGroupsResponse
- type DescribeRegionsRequest
- type DescribeRegionsResponse
- type DescribeServerlessDBInstancesRequest
- type DescribeServerlessDBInstancesResponse
- type DescribeZonesRequest
- type DescribeZonesResponse
- type DestroyDBInstanceRequest
- type DestroyDBInstanceResponse
- type DisIsolateDBInstancesRequest
- type DisIsolateDBInstancesResponse
- type ErrLogDetail
- type Filter
- type InitDBInstancesRequest
- type InitDBInstancesResponse
- type InquiryPriceCreateDBInstancesRequest
- type InquiryPriceCreateDBInstancesResponse
- type InquiryPriceRenewDBInstanceRequest
- type InquiryPriceRenewDBInstanceResponse
- type InquiryPriceUpgradeDBInstanceRequest
- type InquiryPriceUpgradeDBInstanceResponse
- type IsolateDBInstancesRequest
- type IsolateDBInstancesResponse
- type ModifyAccountRemarkRequest
- type ModifyAccountRemarkResponse
- type ModifyDBInstanceNameRequest
- type ModifyDBInstanceNameResponse
- type ModifyDBInstanceReadOnlyGroupRequest
- type ModifyDBInstanceReadOnlyGroupResponse
- type ModifyDBInstancesProjectRequest
- type ModifyDBInstancesProjectResponse
- type ModifyReadOnlyGroupConfigRequest
- type ModifyReadOnlyGroupConfigResponse
- type NormalQueryItem
- type OpenDBExtranetAccessRequest
- type OpenDBExtranetAccessResponse
- type OpenServerlessDBExtranetAccessRequest
- type OpenServerlessDBExtranetAccessResponse
- type PgDeal
- type ReadOnlyGroup
- type RebalanceReadOnlyGroupRequest
- type RebalanceReadOnlyGroupResponse
- type RegionInfo
- type RemoveDBInstanceFromReadOnlyGroupRequest
- type RemoveDBInstanceFromReadOnlyGroupResponse
- type RenewInstanceRequest
- type RenewInstanceResponse
- type ResetAccountPasswordRequest
- type ResetAccountPasswordResponse
- type RestartDBInstanceRequest
- type RestartDBInstanceResponse
- type ServerlessDBAccount
- type ServerlessDBInstance
- type ServerlessDBInstanceNetInfo
- type SetAutoRenewFlagRequest
- type SetAutoRenewFlagResponse
- type SlowlogDetail
- type SpecInfo
- type SpecItemInfo
- type Tag
- type UpgradeDBInstanceRequest
- type UpgradeDBInstanceResponse
- type Xlog
- type ZoneInfo
Constants ¶
const APIVersion = "2017-03-12"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountInfo struct {
// Instance ID in the format of postgres-lnp6j617
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Account
UserName *string `json:"UserName,omitempty" name:"UserName"`
// Account remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Account status. 1: creating, 2: normal, 3: modifying, 4: resetting password, -1: deleting
Status *int64 `json:"Status,omitempty" name:"Status"`
// Account creation time
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Account last modified time
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
type AddDBInstanceToReadOnlyGroupRequest ¶
type AddDBInstanceToReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
}
func NewAddDBInstanceToReadOnlyGroupRequest ¶
func NewAddDBInstanceToReadOnlyGroupRequest() (request *AddDBInstanceToReadOnlyGroupRequest)
func (*AddDBInstanceToReadOnlyGroupRequest) FromJsonString ¶
func (r *AddDBInstanceToReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddDBInstanceToReadOnlyGroupRequest) ToJsonString ¶
func (r *AddDBInstanceToReadOnlyGroupRequest) ToJsonString() string
type AddDBInstanceToReadOnlyGroupResponse ¶
type AddDBInstanceToReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// Task ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewAddDBInstanceToReadOnlyGroupResponse ¶
func NewAddDBInstanceToReadOnlyGroupResponse() (response *AddDBInstanceToReadOnlyGroupResponse)
func (*AddDBInstanceToReadOnlyGroupResponse) FromJsonString ¶
func (r *AddDBInstanceToReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddDBInstanceToReadOnlyGroupResponse) ToJsonString ¶
func (r *AddDBInstanceToReadOnlyGroupResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddDBInstanceToReadOnlyGroup ¶
func (c *Client) AddDBInstanceToReadOnlyGroup(request *AddDBInstanceToReadOnlyGroupRequest) (response *AddDBInstanceToReadOnlyGroupResponse, err error)
This API is used to add a read-only replica to an RO group.
func (*Client) CloseDBExtranetAccess ¶
func (c *Client) CloseDBExtranetAccess(request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)
This API is used to disable the public network link to an instance.
func (*Client) CloseServerlessDBExtranetAccess ¶
func (c *Client) CloseServerlessDBExtranetAccess(request *CloseServerlessDBExtranetAccessRequest) (response *CloseServerlessDBExtranetAccessResponse, err error)
This API is used to disable public network access for a PostgreSQL for Serverless instance.
func (*Client) CreateDBInstances ¶
func (c *Client) CreateDBInstances(request *CreateDBInstancesRequest) (response *CreateDBInstancesResponse, err error)
This API is used to create one or more TencentDB for PostgreSQL instances.
func (*Client) CreateReadOnlyDBInstance ¶
func (c *Client) CreateReadOnlyDBInstance(request *CreateReadOnlyDBInstanceRequest) (response *CreateReadOnlyDBInstanceResponse, err error)
This API is used to create read-only replicas.
func (*Client) CreateReadOnlyGroup ¶
func (c *Client) CreateReadOnlyGroup(request *CreateReadOnlyGroupRequest) (response *CreateReadOnlyGroupResponse, err error)
This API is used to create an RO group.
func (*Client) CreateServerlessDBInstance ¶
func (c *Client) CreateServerlessDBInstance(request *CreateServerlessDBInstanceRequest) (response *CreateServerlessDBInstanceResponse, err error)
This API is used to create a PostgreSQL for Serverless instance. If the creation succeeds, the instance ID will be returned.
func (*Client) DeleteReadOnlyGroup ¶
func (c *Client) DeleteReadOnlyGroup(request *DeleteReadOnlyGroupRequest) (response *DeleteReadOnlyGroupResponse, err error)
This API is used to delete an RO group.
func (*Client) DeleteServerlessDBInstance ¶
func (c *Client) DeleteServerlessDBInstance(request *DeleteServerlessDBInstanceRequest) (response *DeleteServerlessDBInstanceResponse, err error)
This API is used to delete a PostgreSQL for Serverless instance.
func (*Client) DescribeAccounts ¶
func (c *Client) DescribeAccounts(request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)
This API is used to get the instance user list.
func (*Client) DescribeDBBackups ¶
func (c *Client) DescribeDBBackups(request *DescribeDBBackupsRequest) (response *DescribeDBBackupsResponse, err error)
This API is used to query the instance backup list.
func (*Client) DescribeDBErrlogs ¶
func (c *Client) DescribeDBErrlogs(request *DescribeDBErrlogsRequest) (response *DescribeDBErrlogsResponse, err error)
This API is used to get error logs.
func (*Client) DescribeDBInstanceAttribute ¶
func (c *Client) DescribeDBInstanceAttribute(request *DescribeDBInstanceAttributeRequest) (response *DescribeDBInstanceAttributeResponse, err error)
This API is used to query the details of one instance.
func (*Client) DescribeDBInstances ¶
func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error)
This API is used to query the details of one or more instances.
func (*Client) DescribeDBSlowlogs ¶
func (c *Client) DescribeDBSlowlogs(request *DescribeDBSlowlogsRequest) (response *DescribeDBSlowlogsResponse, err error)
This API is used to get slow query logs.
func (*Client) DescribeDBXlogs ¶
func (c *Client) DescribeDBXlogs(request *DescribeDBXlogsRequest) (response *DescribeDBXlogsResponse, err error)
This API is used to get the instance Xlog list.
func (*Client) DescribeDatabases ¶
func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
This API is used to pull the list of databases.
func (*Client) DescribeOrders ¶
func (c *Client) DescribeOrders(request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)
This API is used to get order information.
func (*Client) DescribeProductConfig ¶
func (c *Client) DescribeProductConfig(request *DescribeProductConfigRequest) (response *DescribeProductConfigResponse, err error)
This API is used to query the purchasable specification configuration.
func (*Client) DescribeReadOnlyGroups ¶
func (c *Client) DescribeReadOnlyGroups(request *DescribeReadOnlyGroupsRequest) (response *DescribeReadOnlyGroupsResponse, err error)
This API is used to query RO group information by specifying the primary instance IDs.
func (*Client) DescribeRegions ¶
func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error)
This API is used to query the purchasable regions.
func (*Client) DescribeServerlessDBInstances ¶
func (c *Client) DescribeServerlessDBInstances(request *DescribeServerlessDBInstancesRequest) (response *DescribeServerlessDBInstancesResponse, err error)
This API is used to query the details of one or more PostgreSQL for Serverless instances.
func (*Client) DescribeZones ¶
func (c *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error)
This API is used to query the supported AZs.
func (*Client) DestroyDBInstance ¶
func (c *Client) DestroyDBInstance(request *DestroyDBInstanceRequest) (response *DestroyDBInstanceResponse, err error)
This API is used to eliminate an isolated instance by specifying the `DBInstanceId` parameter. The data of an eliminated instance will be deleted and cannot be recovered.
func (*Client) DisIsolateDBInstances ¶
func (c *Client) DisIsolateDBInstances(request *DisIsolateDBInstancesRequest) (response *DisIsolateDBInstancesResponse, err error)
This API is used to remove one or more instances from isolation.
func (*Client) InitDBInstances ¶
func (c *Client) InitDBInstances(request *InitDBInstancesRequest) (response *InitDBInstancesResponse, err error)
This API is used to initialize a TencentDB for PostgreSQL instance.
func (*Client) InquiryPriceCreateDBInstances ¶
func (c *Client) InquiryPriceCreateDBInstances(request *InquiryPriceCreateDBInstancesRequest) (response *InquiryPriceCreateDBInstancesResponse, err error)
This API is used to query the purchase price of one or multiple instances.
func (*Client) InquiryPriceRenewDBInstance ¶
func (c *Client) InquiryPriceRenewDBInstance(request *InquiryPriceRenewDBInstanceRequest) (response *InquiryPriceRenewDBInstanceResponse, err error)
This API is used to query the renewal price of an instance.
func (*Client) InquiryPriceUpgradeDBInstance ¶
func (c *Client) InquiryPriceUpgradeDBInstance(request *InquiryPriceUpgradeDBInstanceRequest) (response *InquiryPriceUpgradeDBInstanceResponse, err error)
This API is used to query the upgrade price of an instance.
func (*Client) IsolateDBInstances ¶
func (c *Client) IsolateDBInstances(request *IsolateDBInstancesRequest) (response *IsolateDBInstancesResponse, err error)
This API is used to isolate one or more instances.
func (*Client) ModifyAccountRemark ¶
func (c *Client) ModifyAccountRemark(request *ModifyAccountRemarkRequest) (response *ModifyAccountRemarkResponse, err error)
This API is used to modify account remarks.
func (*Client) ModifyDBInstanceName ¶
func (c *Client) ModifyDBInstanceName(request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)
This API is used to rename a TencentDB for PostgreSQL instance.
func (*Client) ModifyDBInstanceReadOnlyGroup ¶
func (c *Client) ModifyDBInstanceReadOnlyGroup(request *ModifyDBInstanceReadOnlyGroupRequest) (response *ModifyDBInstanceReadOnlyGroupResponse, err error)
This API is used to modify the RO group of an instance.
func (*Client) ModifyDBInstancesProject ¶
func (c *Client) ModifyDBInstancesProject(request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)
This API is used to transfer an instance to another project.
func (*Client) ModifyReadOnlyGroupConfig ¶
func (c *Client) ModifyReadOnlyGroupConfig(request *ModifyReadOnlyGroupConfigRequest) (response *ModifyReadOnlyGroupConfigResponse, err error)
This API is used to modify RO group configuration.
func (*Client) OpenDBExtranetAccess ¶
func (c *Client) OpenDBExtranetAccess(request *OpenDBExtranetAccessRequest) (response *OpenDBExtranetAccessResponse, err error)
This API is used to enable public network access.
func (*Client) OpenServerlessDBExtranetAccess ¶
func (c *Client) OpenServerlessDBExtranetAccess(request *OpenServerlessDBExtranetAccessRequest) (response *OpenServerlessDBExtranetAccessResponse, err error)
This API is used to enable public network access for a PostgreSQL for Serverless instance.
func (*Client) RebalanceReadOnlyGroup ¶
func (c *Client) RebalanceReadOnlyGroup(request *RebalanceReadOnlyGroupRequest) (response *RebalanceReadOnlyGroupResponse, err error)
This API is used to rebalance the loads of read-only replicas in an RO group. Please note that connections to those read-only replicas will be interrupted transiently; therefore, you should ensure that your application can reconnect to the databases. This operation should be performed with caution.
func (*Client) RemoveDBInstanceFromReadOnlyGroup ¶
func (c *Client) RemoveDBInstanceFromReadOnlyGroup(request *RemoveDBInstanceFromReadOnlyGroupRequest) (response *RemoveDBInstanceFromReadOnlyGroupResponse, err error)
This API is used to remove a read-only replica from an RO group.
func (*Client) RenewInstance ¶
func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error)
This API is used to renew an instance.
func (*Client) ResetAccountPassword ¶
func (c *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)
This API is used to reset the account password of an instance.
func (*Client) RestartDBInstance ¶
func (c *Client) RestartDBInstance(request *RestartDBInstanceRequest) (response *RestartDBInstanceResponse, err error)
This API is used to restart an instance.
func (*Client) SetAutoRenewFlag ¶
func (c *Client) SetAutoRenewFlag(request *SetAutoRenewFlagRequest) (response *SetAutoRenewFlagResponse, err error)
This API is used to set auto-renewal.
func (*Client) UpgradeDBInstance ¶
func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error)
This API is used to upgrade an instance.
type CloseDBExtranetAccessRequest ¶
type CloseDBExtranetAccessRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-6r233v55
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Whether to disable public network access over IPv6 address. Valid values: 1 (yes), 0 (no)
IsIpv6 *int64 `json:"IsIpv6,omitempty" name:"IsIpv6"`
}
func NewCloseDBExtranetAccessRequest ¶
func NewCloseDBExtranetAccessRequest() (request *CloseDBExtranetAccessRequest)
func (*CloseDBExtranetAccessRequest) FromJsonString ¶
func (r *CloseDBExtranetAccessRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseDBExtranetAccessRequest) ToJsonString ¶
func (r *CloseDBExtranetAccessRequest) ToJsonString() string
type CloseDBExtranetAccessResponse ¶
type CloseDBExtranetAccessResponse struct {
*tchttp.BaseResponse
Response *struct {
// Async task flow ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseDBExtranetAccessResponse) ToJsonString ¶
func (r *CloseDBExtranetAccessResponse) ToJsonString() string
type CloseServerlessDBExtranetAccessRequest ¶
type CloseServerlessDBExtranetAccessRequest struct {
*tchttp.BaseRequest
// Unique ID of an instance
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance name
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
}
func NewCloseServerlessDBExtranetAccessRequest ¶
func NewCloseServerlessDBExtranetAccessRequest() (request *CloseServerlessDBExtranetAccessRequest)
func (*CloseServerlessDBExtranetAccessRequest) FromJsonString ¶
func (r *CloseServerlessDBExtranetAccessRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseServerlessDBExtranetAccessRequest) ToJsonString ¶
func (r *CloseServerlessDBExtranetAccessRequest) ToJsonString() string
type CloseServerlessDBExtranetAccessResponse ¶
type CloseServerlessDBExtranetAccessResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCloseServerlessDBExtranetAccessResponse ¶
func NewCloseServerlessDBExtranetAccessResponse() (response *CloseServerlessDBExtranetAccessResponse)
func (*CloseServerlessDBExtranetAccessResponse) FromJsonString ¶
func (r *CloseServerlessDBExtranetAccessResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CloseServerlessDBExtranetAccessResponse) ToJsonString ¶
func (r *CloseServerlessDBExtranetAccessResponse) ToJsonString() string
type CreateDBInstancesRequest ¶
type CreateDBInstancesRequest struct {
*tchttp.BaseRequest
// Purchasable specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` API.
SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`
// PostgreSQL kernel version. Currently, only two versions are supported: 9.3.5 and 9.5.4.
DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`
// Instance capacity size in GB.
Storage *uint64 `json:"Storage,omitempty" name:"Storage"`
// Number of instances purchased at a time. Value range: 1-100.
InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
// Length of purchase in months. Currently, only 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, and 36 are supported.
Period *uint64 `json:"Period,omitempty" name:"Period"`
// AZ ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Project ID.
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Instance billing type.
InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
// Whether to automatically use vouchers. 1: yes, 0: no. Default value: no.
AutoVoucher *uint64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
// Voucher ID list (only one voucher can be specified currently).
VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
// VPC ID.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// VPC subnet ID.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Renewal flag. 0: normal renewal (default), 1: auto-renewal.
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
// Activity ID
ActivityId *int64 `json:"ActivityId,omitempty" name:"ActivityId"`
// Instance name (which will be supported in the future)
Name *string `json:"Name,omitempty" name:"Name"`
// Whether to support IPv6 address access. Valid values: 1 (yes), 0 (no)
NeedSupportIpv6 *uint64 `json:"NeedSupportIpv6,omitempty" name:"NeedSupportIpv6"`
// The information of tags to be associated with instances. This parameter is left empty by default.
TagList []*Tag `json:"TagList,omitempty" name:"TagList" list`
// Security group ID
SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list`
}
func NewCreateDBInstancesRequest ¶
func NewCreateDBInstancesRequest() (request *CreateDBInstancesRequest)
func (*CreateDBInstancesRequest) FromJsonString ¶
func (r *CreateDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstancesRequest) ToJsonString ¶
func (r *CreateDBInstancesRequest) ToJsonString() string
type CreateDBInstancesResponse ¶
type CreateDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Order number list. Each instance corresponds to an order number.
DealNames []*string `json:"DealNames,omitempty" name:"DealNames" list`
// Bill ID of frozen fees
BillId *string `json:"BillId,omitempty" name:"BillId"`
// ID set of instances which have been created successfully. The parameter value will be returned only when the billing mode is postpaid.
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDBInstancesResponse) ToJsonString ¶
func (r *CreateDBInstancesResponse) ToJsonString() string
type CreateReadOnlyDBInstanceRequest ¶
type CreateReadOnlyDBInstanceRequest struct {
*tchttp.BaseRequest
// Purchasable specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` API.
SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`
// PostgreSQL kernel version, which must be the same as that of the primary instance
DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`
// Instance storage capacity in GB
Storage *uint64 `json:"Storage,omitempty" name:"Storage"`
// Number of instances purchased at a time. Value range: 1–100.
InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
// Valid period in months of purchased instances. Valid values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`. This parameter is set to `1` when the pay-as-you-go billing mode is used.
Period *uint64 `json:"Period,omitempty" name:"Period"`
// ID of the primary instance to which the read-only replica belongs
MasterDBInstanceId *string `json:"MasterDBInstanceId,omitempty" name:"MasterDBInstanceId"`
// Availability zone ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Project ID
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Instance billing mode. Valid values: `PREPAID` (monthly subscription), `POSTPAID_BY_HOUR` (pay-as-you-go).
InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
// Whether to automatically use vouchers. Valid values: `1` (yes), `0` (no). Default value: `0`.
AutoVoucher *uint64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
// Voucher ID list. Currently, you can specify only one voucher.
VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
// Renewal flag. Valid values: `0` (manual renewal), `1` (auto-renewal). Default value: `0`.
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
// VPC ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// VPC subnet ID
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Special offer ID
ActivityId *int64 `json:"ActivityId,omitempty" name:"ActivityId"`
// Instance name (which will be supported in the future)
Name *string `json:"Name,omitempty" name:"Name"`
// Whether to support IPv6 address access. Valid values: `1` (yes), `0` (no).
NeedSupportIpv6 *uint64 `json:"NeedSupportIpv6,omitempty" name:"NeedSupportIpv6"`
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
// The information of tags to be associated with instances. This parameter is left empty by default.
TagList *Tag `json:"TagList,omitempty" name:"TagList"`
// Security group ID
SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list`
}
func NewCreateReadOnlyDBInstanceRequest ¶
func NewCreateReadOnlyDBInstanceRequest() (request *CreateReadOnlyDBInstanceRequest)
func (*CreateReadOnlyDBInstanceRequest) FromJsonString ¶
func (r *CreateReadOnlyDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReadOnlyDBInstanceRequest) ToJsonString ¶
func (r *CreateReadOnlyDBInstanceRequest) ToJsonString() string
type CreateReadOnlyDBInstanceResponse ¶
type CreateReadOnlyDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Order number list. Each instance corresponds to an order number.
DealNames []*string `json:"DealNames,omitempty" name:"DealNames" list`
// Bill ID of frozen fees
BillId *string `json:"BillId,omitempty" name:"BillId"`
// ID set of instances which have been created successfully. The parameter value will be returned only when the pay-as-you-go billing mode is used.
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateReadOnlyDBInstanceResponse ¶
func NewCreateReadOnlyDBInstanceResponse() (response *CreateReadOnlyDBInstanceResponse)
func (*CreateReadOnlyDBInstanceResponse) FromJsonString ¶
func (r *CreateReadOnlyDBInstanceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReadOnlyDBInstanceResponse) ToJsonString ¶
func (r *CreateReadOnlyDBInstanceResponse) ToJsonString() string
type CreateReadOnlyGroupRequest ¶
type CreateReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// Primary instance ID
MasterDBInstanceId *string `json:"MasterDBInstanceId,omitempty" name:"MasterDBInstanceId"`
// RO group name
Name *string `json:"Name,omitempty" name:"Name"`
// Project ID
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// VPC ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLagEliminate *uint64 `json:"ReplayLagEliminate,omitempty" name:"ReplayLagEliminate"`
// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLatencyEliminate *uint64 `json:"ReplayLatencyEliminate,omitempty" name:"ReplayLatencyEliminate"`
// Delay threshold in ms
MaxReplayLag *uint64 `json:"MaxReplayLag,omitempty" name:"MaxReplayLag"`
// Delayed log size threshold in MB
MaxReplayLatency *uint64 `json:"MaxReplayLatency,omitempty" name:"MaxReplayLatency"`
// The minimum number of read-only replicas that must be retained in an RO group
MinDelayEliminateReserve *uint64 `json:"MinDelayEliminateReserve,omitempty" name:"MinDelayEliminateReserve"`
// Security group ID
SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list`
}
func NewCreateReadOnlyGroupRequest ¶
func NewCreateReadOnlyGroupRequest() (request *CreateReadOnlyGroupRequest)
func (*CreateReadOnlyGroupRequest) FromJsonString ¶
func (r *CreateReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReadOnlyGroupRequest) ToJsonString ¶
func (r *CreateReadOnlyGroupRequest) ToJsonString() string
type CreateReadOnlyGroupResponse ¶
type CreateReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
// Task ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateReadOnlyGroupResponse ¶
func NewCreateReadOnlyGroupResponse() (response *CreateReadOnlyGroupResponse)
func (*CreateReadOnlyGroupResponse) FromJsonString ¶
func (r *CreateReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateReadOnlyGroupResponse) ToJsonString ¶
func (r *CreateReadOnlyGroupResponse) ToJsonString() string
type CreateServerlessDBInstanceRequest ¶
type CreateServerlessDBInstanceRequest struct {
*tchttp.BaseRequest
// Availability zone ID. Only ap-shanghai-2, ap-beijing-1, and ap-guangzhou-2 are supported during the beta test.
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Instance name. The value must be unique for the same account.
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
// Kernel version of a PostgreSQL instance. Currently, only 10.4 is supported.
DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`
// Database character set of a PostgreSQL instance. Currently, only UTF-8 is supported.
DBCharset *string `json:"DBCharset,omitempty" name:"DBCharset"`
// Project ID.
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// VPC ID.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// VPC subnet ID.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Array of tags to be bound with the instance
TagList []*Tag `json:"TagList,omitempty" name:"TagList" list`
}
func NewCreateServerlessDBInstanceRequest ¶
func NewCreateServerlessDBInstanceRequest() (request *CreateServerlessDBInstanceRequest)
func (*CreateServerlessDBInstanceRequest) FromJsonString ¶
func (r *CreateServerlessDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateServerlessDBInstanceRequest) ToJsonString ¶
func (r *CreateServerlessDBInstanceRequest) ToJsonString() string
type CreateServerlessDBInstanceResponse ¶
type CreateServerlessDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Instance ID, such as "postgres-xxxxx". The value must be globally unique.
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateServerlessDBInstanceResponse ¶
func NewCreateServerlessDBInstanceResponse() (response *CreateServerlessDBInstanceResponse)
func (*CreateServerlessDBInstanceResponse) FromJsonString ¶
func (r *CreateServerlessDBInstanceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateServerlessDBInstanceResponse) ToJsonString ¶
func (r *CreateServerlessDBInstanceResponse) ToJsonString() string
type DBBackup ¶
type DBBackup struct {
// Unique backup file ID
Id *int64 `json:"Id,omitempty" name:"Id"`
// File generation start time
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// File generation end time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// File size in KB
Size *int64 `json:"Size,omitempty" name:"Size"`
// Policy (0: instance backup, 1: multi-database backup)
Strategy *int64 `json:"Strategy,omitempty" name:"Strategy"`
// Type (0: scheduled)
Way *int64 `json:"Way,omitempty" name:"Way"`
// Backup mode (1: full)
Type *int64 `json:"Type,omitempty" name:"Type"`
// Status (1: creating, 2: success, 3: failure)
Status *int64 `json:"Status,omitempty" name:"Status"`
// DB list
DbList []*string `json:"DbList,omitempty" name:"DbList" list`
// Download address on private network
InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"`
// Download address on public network
ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"`
}
type DBInstance ¶
type DBInstance struct {
// Instance region such as ap-guangzhou, which corresponds to the `Region` field of `RegionSet`
Region *string `json:"Region,omitempty" name:"Region"`
// Instance AZ such as ap-guangzhou-3, which corresponds to the `Zone` field of `ZoneSet`
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Project ID
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// VPC ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// SubnetId
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance name
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
// Instance status
DBInstanceStatus *string `json:"DBInstanceStatus,omitempty" name:"DBInstanceStatus"`
// Assigned instance memory size in GB
DBInstanceMemory *uint64 `json:"DBInstanceMemory,omitempty" name:"DBInstanceMemory"`
// Assigned instance storage capacity in GB
DBInstanceStorage *uint64 `json:"DBInstanceStorage,omitempty" name:"DBInstanceStorage"`
// Number of assigned CPUs
DBInstanceCpu *uint64 `json:"DBInstanceCpu,omitempty" name:"DBInstanceCpu"`
// Purchasable specification ID
DBInstanceClass *string `json:"DBInstanceClass,omitempty" name:"DBInstanceClass"`
// Instance type. 1: primary (master instance), 2: readonly (read-only instance), 3: guard (disaster recovery instance), 4: temp (temp instance)
DBInstanceType *string `json:"DBInstanceType,omitempty" name:"DBInstanceType"`
// Instance edition. Currently, only `standard` edition (dual-server high-availability one-master-one-slave edition) is supported
DBInstanceVersion *string `json:"DBInstanceVersion,omitempty" name:"DBInstanceVersion"`
// Instance database character set
DBCharset *string `json:"DBCharset,omitempty" name:"DBCharset"`
// PostgreSQL kernel version
DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`
// Instance creation time
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Instance last modified time
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// Instance expiration time
ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"`
// Instance isolation time
IsolatedTime *string `json:"IsolatedTime,omitempty" name:"IsolatedTime"`
// Billing mode. postpaid: pay-as-you-go
PayType *string `json:"PayType,omitempty" name:"PayType"`
// Whether to renew automatically. 1: yes, 0: no
AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// Instance network connection information
DBInstanceNetInfo []*DBInstanceNetInfo `json:"DBInstanceNetInfo,omitempty" name:"DBInstanceNetInfo" list`
// Machine type
Type *string `json:"Type,omitempty" name:"Type"`
// User `AppId`
AppId *uint64 `json:"AppId,omitempty" name:"AppId"`
// Instance `Uid`
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// Whether the instance supports IPv6 address access. Valid values: 1 (yes), 0 (no)
SupportIpv6 *uint64 `json:"SupportIpv6,omitempty" name:"SupportIpv6"`
// The information of tags associated with instances.
// Note: this field may return null, indicating that no valid values can be obtained.
TagList []*Tag `json:"TagList,omitempty" name:"TagList" list`
// Primary instance information, which is returned only when the instance is read-only
// Note: this field may return null, indicating that no valid values can be obtained.
MasterDBInstanceId *string `json:"MasterDBInstanceId,omitempty" name:"MasterDBInstanceId"`
// Number of read-only instances
// Note: this field may return null, indicating that no valid values can be obtained.
ReadOnlyInstanceNum *int64 `json:"ReadOnlyInstanceNum,omitempty" name:"ReadOnlyInstanceNum"`
// The status of a instance in a read-only group
// Note: this field may return null, indicating that no valid values can be obtained.
StatusInReadonlyGroup *string `json:"StatusInReadonlyGroup,omitempty" name:"StatusInReadonlyGroup"`
// Elimination time
// Note: this field may return null, indicating that no valid values can be obtained.
OfflineTime *string `json:"OfflineTime,omitempty" name:"OfflineTime"`
}
type DBInstanceNetInfo ¶
type DBInstanceNetInfo struct {
// DNS domain name
Address *string `json:"Address,omitempty" name:"Address"`
// Ip
Ip *string `json:"Ip,omitempty" name:"Ip"`
// Connection port address
Port *uint64 `json:"Port,omitempty" name:"Port"`
// Network type. 1: inner (private network address), 2: public (public network address)
NetType *string `json:"NetType,omitempty" name:"NetType"`
// Network connection status
Status *string `json:"Status,omitempty" name:"Status"`
}
type DeleteReadOnlyGroupRequest ¶
type DeleteReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// ID of the RO group to be deleted
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
}
func NewDeleteReadOnlyGroupRequest ¶
func NewDeleteReadOnlyGroupRequest() (request *DeleteReadOnlyGroupRequest)
func (*DeleteReadOnlyGroupRequest) FromJsonString ¶
func (r *DeleteReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReadOnlyGroupRequest) ToJsonString ¶
func (r *DeleteReadOnlyGroupRequest) ToJsonString() string
type DeleteReadOnlyGroupResponse ¶
type DeleteReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// Task ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteReadOnlyGroupResponse ¶
func NewDeleteReadOnlyGroupResponse() (response *DeleteReadOnlyGroupResponse)
func (*DeleteReadOnlyGroupResponse) FromJsonString ¶
func (r *DeleteReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReadOnlyGroupResponse) ToJsonString ¶
func (r *DeleteReadOnlyGroupResponse) ToJsonString() string
type DeleteServerlessDBInstanceRequest ¶
type DeleteServerlessDBInstanceRequest struct {
*tchttp.BaseRequest
// Instance name. Either instance name or instance ID (or both) must be passed in. If both are passed in, the instance ID will prevail.
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
// Instance ID. Either instance name or instance ID (or both) must be passed in. If both are passed in, the instance ID will prevail.
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}
func NewDeleteServerlessDBInstanceRequest ¶
func NewDeleteServerlessDBInstanceRequest() (request *DeleteServerlessDBInstanceRequest)
func (*DeleteServerlessDBInstanceRequest) FromJsonString ¶
func (r *DeleteServerlessDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteServerlessDBInstanceRequest) ToJsonString ¶
func (r *DeleteServerlessDBInstanceRequest) ToJsonString() string
type DeleteServerlessDBInstanceResponse ¶
type DeleteServerlessDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteServerlessDBInstanceResponse ¶
func NewDeleteServerlessDBInstanceResponse() (response *DeleteServerlessDBInstanceResponse)
func (*DeleteServerlessDBInstanceResponse) FromJsonString ¶
func (r *DeleteServerlessDBInstanceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteServerlessDBInstanceResponse) ToJsonString ¶
func (r *DeleteServerlessDBInstanceResponse) ToJsonString() string
type DescribeAccountsRequest ¶
type DescribeAccountsRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-6fego161
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Number of entries returned per page. Default value: 20. Value range: 1-100.
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page number for data return in paged query. Pagination starts from 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// Whether to sort by creation time or username. Valid values: `createTime` (sort by creation time), `name` (sort by username)
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// Whether returns are sorted in ascending or descending order. Valid values: `desc` (descending), `asc` (ascending)
OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
}
func NewDescribeAccountsRequest ¶
func NewDescribeAccountsRequest() (request *DescribeAccountsRequest)
func (*DescribeAccountsRequest) FromJsonString ¶
func (r *DescribeAccountsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsRequest) ToJsonString ¶
func (r *DescribeAccountsRequest) ToJsonString() string
type DescribeAccountsResponse ¶
type DescribeAccountsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of date entries returned for this API call.
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Account list details.
Details []*AccountInfo `json:"Details,omitempty" name:"Details" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountsResponse) ToJsonString ¶
func (r *DescribeAccountsResponse) ToJsonString() string
type DescribeDBBackupsRequest ¶
type DescribeDBBackupsRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-4wdeb0zv.
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Backup mode (1: full). Currently, only full backup is supported. The value is 1.
Type *int64 `json:"Type,omitempty" name:"Type"`
// Query start time in the format of 2018-06-10 17:06:38, which cannot be more than 7 days ago
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Query end time in the format of 2018-06-10 17:06:38
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Number of entries to be returned per page for backup list. Default value: 20. Minimum value: 1. Maximum value: 100. (If this parameter is left empty or 0, the default value will be used)
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page number for data return in paged query. Pagination starts from 0. Default value: 0.
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}
func NewDescribeDBBackupsRequest ¶
func NewDescribeDBBackupsRequest() (request *DescribeDBBackupsRequest)
func (*DescribeDBBackupsRequest) FromJsonString ¶
func (r *DescribeDBBackupsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBBackupsRequest) ToJsonString ¶
func (r *DescribeDBBackupsRequest) ToJsonString() string
type DescribeDBBackupsResponse ¶
type DescribeDBBackupsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of backup files in the returned backup list
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Backup list
BackupList []*DBBackup `json:"BackupList,omitempty" name:"BackupList" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBBackupsResponse) ToJsonString ¶
func (r *DescribeDBBackupsResponse) ToJsonString() string
type DescribeDBErrlogsRequest ¶
type DescribeDBErrlogsRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-5bq3wfjd
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Query start time in the format of 2018-01-01 00:00:00, which cannot be more than 7 days ago
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Query end time in the format of 2018-01-01 00:00:00
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Database name
DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`
// Search keyword
SearchKeys []*string `json:"SearchKeys,omitempty" name:"SearchKeys" list`
// Number of entries returned per page. Value range: 1-100
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page number for data return in paged query. Pagination starts from 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}
func NewDescribeDBErrlogsRequest ¶
func NewDescribeDBErrlogsRequest() (request *DescribeDBErrlogsRequest)
func (*DescribeDBErrlogsRequest) FromJsonString ¶
func (r *DescribeDBErrlogsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBErrlogsRequest) ToJsonString ¶
func (r *DescribeDBErrlogsRequest) ToJsonString() string
type DescribeDBErrlogsResponse ¶
type DescribeDBErrlogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of date entries returned for this call
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Error log list
Details []*ErrLogDetail `json:"Details,omitempty" name:"Details" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBErrlogsResponse) ToJsonString ¶
func (r *DescribeDBErrlogsResponse) ToJsonString() string
type DescribeDBInstanceAttributeRequest ¶
type DescribeDBInstanceAttributeRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}
func NewDescribeDBInstanceAttributeRequest ¶
func NewDescribeDBInstanceAttributeRequest() (request *DescribeDBInstanceAttributeRequest)
func (*DescribeDBInstanceAttributeRequest) FromJsonString ¶
func (r *DescribeDBInstanceAttributeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceAttributeRequest) ToJsonString ¶
func (r *DescribeDBInstanceAttributeRequest) ToJsonString() string
type DescribeDBInstanceAttributeResponse ¶
type DescribeDBInstanceAttributeResponse struct {
*tchttp.BaseResponse
Response *struct {
// Instance details.
DBInstance *DBInstance `json:"DBInstance,omitempty" name:"DBInstance"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstanceAttributeResponse) ToJsonString ¶
func (r *DescribeDBInstanceAttributeResponse) ToJsonString() string
type DescribeDBInstancesRequest ¶
type DescribeDBInstancesRequest struct {
*tchttp.BaseRequest
// Filter condition. Valid values: db-instance-id, db-instance-name, db-project-id, db-pay-mode, db-tag-key.
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
// Number of entries returned per page. Default value: 10.
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// Data offset which starts from 0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Sorting metric, such as instance name or creation time. Valid values: DBInstanceId, CreateTime, Name, EndTime
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// In ascending or descending order
OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
}
func NewDescribeDBInstancesRequest ¶
func NewDescribeDBInstancesRequest() (request *DescribeDBInstancesRequest)
func (*DescribeDBInstancesRequest) FromJsonString ¶
func (r *DescribeDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstancesRequest) ToJsonString ¶
func (r *DescribeDBInstancesRequest) ToJsonString() string
type DescribeDBInstancesResponse ¶
type DescribeDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of instances found.
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Instance details set.
DBInstanceSet []*DBInstance `json:"DBInstanceSet,omitempty" name:"DBInstanceSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBInstancesResponse) ToJsonString ¶
func (r *DescribeDBInstancesResponse) ToJsonString() string
type DescribeDBSlowlogsRequest ¶
type DescribeDBSlowlogsRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-lnp6j617
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Query start time in the format of 2018-06-10 17:06:38, which cannot be more than 7 days ago
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Query end time in the format of 2018-06-10 17:06:38
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Database name
DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`
// Metric for sorting. Valid values: `sum_calls` (total number of calls), `sum_cost_time` (total time consumed)
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// Sorting order. desc: descending, asc: ascending
OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
// Number of entries returned per page. Value range: 1-100. Default value: 20.
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// Page number for data return in paged query. Pagination starts from 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
}
func NewDescribeDBSlowlogsRequest ¶
func NewDescribeDBSlowlogsRequest() (request *DescribeDBSlowlogsRequest)
func (*DescribeDBSlowlogsRequest) FromJsonString ¶
func (r *DescribeDBSlowlogsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSlowlogsRequest) ToJsonString ¶
func (r *DescribeDBSlowlogsRequest) ToJsonString() string
type DescribeDBSlowlogsResponse ¶
type DescribeDBSlowlogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of date entries returned this time
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Slow query log details
Detail *SlowlogDetail `json:"Detail,omitempty" name:"Detail"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBSlowlogsResponse) ToJsonString ¶
func (r *DescribeDBSlowlogsResponse) ToJsonString() string
type DescribeDBXlogsRequest ¶
type DescribeDBXlogsRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-4wdeb0zv.
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Query start time in the format of 2018-06-10 17:06:38, which cannot be more than 7 days ago
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// Query end time in the format of 2018-06-10 17:06:38
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Page number for data return in paged query. Pagination starts from 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// Number of entries returned per page in paged query. Value range: 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBXlogsRequest) ToJsonString ¶
func (r *DescribeDBXlogsRequest) ToJsonString() string
type DescribeDBXlogsResponse ¶
type DescribeDBXlogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of date entries returned this time.
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Xlog list
XlogList []*Xlog `json:"XlogList,omitempty" name:"XlogList" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDBXlogsResponse) ToJsonString ¶
func (r *DescribeDBXlogsResponse) ToJsonString() string
type DescribeDatabasesRequest ¶
type DescribeDatabasesRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}
func NewDescribeDatabasesRequest ¶
func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest)
func (*DescribeDatabasesRequest) FromJsonString ¶
func (r *DescribeDatabasesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesRequest) ToJsonString ¶
func (r *DescribeDatabasesRequest) ToJsonString() string
type DescribeDatabasesResponse ¶
type DescribeDatabasesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Database information
Items []*string `json:"Items,omitempty" name:"Items" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeDatabasesResponse ¶
func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse)
func (*DescribeDatabasesResponse) FromJsonString ¶
func (r *DescribeDatabasesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesResponse) ToJsonString ¶
func (r *DescribeDatabasesResponse) ToJsonString() string
type DescribeOrdersRequest ¶
type DescribeOrdersRequest struct {
*tchttp.BaseRequest
// Order name set
DealNames []*string `json:"DealNames,omitempty" name:"DealNames" list`
}
func NewDescribeOrdersRequest ¶
func NewDescribeOrdersRequest() (request *DescribeOrdersRequest)
func (*DescribeOrdersRequest) FromJsonString ¶
func (r *DescribeOrdersRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOrdersRequest) ToJsonString ¶
func (r *DescribeOrdersRequest) ToJsonString() string
type DescribeOrdersResponse ¶
type DescribeOrdersResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of orders
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Order array
Deals []*PgDeal `json:"Deals,omitempty" name:"Deals" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeOrdersResponse) ToJsonString ¶
func (r *DescribeOrdersResponse) ToJsonString() string
type DescribeProductConfigRequest ¶
type DescribeProductConfigRequest struct {
*tchttp.BaseRequest
// AZ name
Zone *string `json:"Zone,omitempty" name:"Zone"`
}
func NewDescribeProductConfigRequest ¶
func NewDescribeProductConfigRequest() (request *DescribeProductConfigRequest)
func (*DescribeProductConfigRequest) FromJsonString ¶
func (r *DescribeProductConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProductConfigRequest) ToJsonString ¶
func (r *DescribeProductConfigRequest) ToJsonString() string
type DescribeProductConfigResponse ¶
type DescribeProductConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// Purchasable specification list.
SpecInfoList []*SpecInfo `json:"SpecInfoList,omitempty" name:"SpecInfoList" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeProductConfigResponse) ToJsonString ¶
func (r *DescribeProductConfigResponse) ToJsonString() string
type DescribeReadOnlyGroupsRequest ¶
type DescribeReadOnlyGroupsRequest struct {
*tchttp.BaseRequest
// Filter condition. The primary ID must be specified in the format of `db-master-instance-id` to filter results, or else `null` will be returned.
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
// The number of results per page. Default value: 10.
PageSize *int64 `json:"PageSize,omitempty" name:"PageSize"`
// Specify which page is displayed. Default value: 1 (the first page).
PageNumber *int64 `json:"PageNumber,omitempty" name:"PageNumber"`
// Sorting criterion. Valid values: `ROGroupId`, `CreateTime`, `Name`.
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// Sorting order. Valid values: `desc`, `asc`.
OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
}
func NewDescribeReadOnlyGroupsRequest ¶
func NewDescribeReadOnlyGroupsRequest() (request *DescribeReadOnlyGroupsRequest)
func (*DescribeReadOnlyGroupsRequest) FromJsonString ¶
func (r *DescribeReadOnlyGroupsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeReadOnlyGroupsRequest) ToJsonString ¶
func (r *DescribeReadOnlyGroupsRequest) ToJsonString() string
type DescribeReadOnlyGroupsResponse ¶
type DescribeReadOnlyGroupsResponse struct {
*tchttp.BaseResponse
Response *struct {
// RO group list
ReadOnlyGroupList []*ReadOnlyGroup `json:"ReadOnlyGroupList,omitempty" name:"ReadOnlyGroupList" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeReadOnlyGroupsResponse ¶
func NewDescribeReadOnlyGroupsResponse() (response *DescribeReadOnlyGroupsResponse)
func (*DescribeReadOnlyGroupsResponse) FromJsonString ¶
func (r *DescribeReadOnlyGroupsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeReadOnlyGroupsResponse) ToJsonString ¶
func (r *DescribeReadOnlyGroupsResponse) 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsRequest) ToJsonString ¶
func (r *DescribeRegionsRequest) ToJsonString() string
type DescribeRegionsResponse ¶
type DescribeRegionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of returned results.
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Region information set.
RegionSet []*RegionInfo `json:"RegionSet,omitempty" name:"RegionSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeRegionsResponse) ToJsonString ¶
func (r *DescribeRegionsResponse) ToJsonString() string
type DescribeServerlessDBInstancesRequest ¶
type DescribeServerlessDBInstancesRequest struct {
*tchttp.BaseRequest
// Query conditions
Filter []*Filter `json:"Filter,omitempty" name:"Filter" list`
// The number of queries
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// The offset value
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// Sorting metric. Currently, only "CreateTime" (instance creation time) is supported.
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// Sorting order. Ascending and descending are supported.
OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"`
}
func NewDescribeServerlessDBInstancesRequest ¶
func NewDescribeServerlessDBInstancesRequest() (request *DescribeServerlessDBInstancesRequest)
func (*DescribeServerlessDBInstancesRequest) FromJsonString ¶
func (r *DescribeServerlessDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeServerlessDBInstancesRequest) ToJsonString ¶
func (r *DescribeServerlessDBInstancesRequest) ToJsonString() string
type DescribeServerlessDBInstancesResponse ¶
type DescribeServerlessDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// The number of query results
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// Query results
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBInstanceSet []*ServerlessDBInstance `json:"DBInstanceSet,omitempty" name:"DBInstanceSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeServerlessDBInstancesResponse ¶
func NewDescribeServerlessDBInstancesResponse() (response *DescribeServerlessDBInstancesResponse)
func (*DescribeServerlessDBInstancesResponse) FromJsonString ¶
func (r *DescribeServerlessDBInstancesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeServerlessDBInstancesResponse) ToJsonString ¶
func (r *DescribeServerlessDBInstancesResponse) 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeZonesRequest) ToJsonString ¶
func (r *DescribeZonesRequest) ToJsonString() string
type DescribeZonesResponse ¶
type DescribeZonesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of returned results.
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// AZ information set.
ZoneSet []*ZoneInfo `json:"ZoneSet,omitempty" name:"ZoneSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeZonesResponse) ToJsonString ¶
func (r *DescribeZonesResponse) ToJsonString() string
type DestroyDBInstanceRequest ¶
type DestroyDBInstanceRequest struct {
*tchttp.BaseRequest
// The ID of the instance to be eliminated
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
}
func NewDestroyDBInstanceRequest ¶
func NewDestroyDBInstanceRequest() (request *DestroyDBInstanceRequest)
func (*DestroyDBInstanceRequest) FromJsonString ¶
func (r *DestroyDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DestroyDBInstanceRequest) ToJsonString ¶
func (r *DestroyDBInstanceRequest) ToJsonString() string
type DestroyDBInstanceResponse ¶
type DestroyDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDestroyDBInstanceResponse ¶
func NewDestroyDBInstanceResponse() (response *DestroyDBInstanceResponse)
func (*DestroyDBInstanceResponse) FromJsonString ¶
func (r *DestroyDBInstanceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DestroyDBInstanceResponse) ToJsonString ¶
func (r *DestroyDBInstanceResponse) ToJsonString() string
type DisIsolateDBInstancesRequest ¶
type DisIsolateDBInstancesRequest struct {
*tchttp.BaseRequest
// Resource ID list
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// The valid period (in months) of the monthly-subscribed instance when removing it from isolation
Period *int64 `json:"Period,omitempty" name:"Period"`
// Whether to use vouchers
AutoVoucher *bool `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
// Voucher ID list
VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
}
func NewDisIsolateDBInstancesRequest ¶
func NewDisIsolateDBInstancesRequest() (request *DisIsolateDBInstancesRequest)
func (*DisIsolateDBInstancesRequest) FromJsonString ¶
func (r *DisIsolateDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisIsolateDBInstancesRequest) ToJsonString ¶
func (r *DisIsolateDBInstancesRequest) ToJsonString() string
type DisIsolateDBInstancesResponse ¶
type DisIsolateDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDisIsolateDBInstancesResponse ¶
func NewDisIsolateDBInstancesResponse() (response *DisIsolateDBInstancesResponse)
func (*DisIsolateDBInstancesResponse) FromJsonString ¶
func (r *DisIsolateDBInstancesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisIsolateDBInstancesResponse) ToJsonString ¶
func (r *DisIsolateDBInstancesResponse) ToJsonString() string
type ErrLogDetail ¶
type ErrLogDetail struct {
// Username
UserName *string `json:"UserName,omitempty" name:"UserName"`
// Database name
Database *string `json:"Database,omitempty" name:"Database"`
// Error occurrence time
ErrTime *string `json:"ErrTime,omitempty" name:"ErrTime"`
// Error message
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
}
type InitDBInstancesRequest ¶
type InitDBInstancesRequest struct {
*tchttp.BaseRequest
// Instance ID set.
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// Instance admin account username.
AdminName *string `json:"AdminName,omitempty" name:"AdminName"`
// Password corresponding to instance root account username.
AdminPassword *string `json:"AdminPassword,omitempty" name:"AdminPassword"`
// Instance character set. Valid values: 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InitDBInstancesRequest) ToJsonString ¶
func (r *InitDBInstancesRequest) ToJsonString() string
type InitDBInstancesResponse ¶
type InitDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Instance ID set.
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InitDBInstancesResponse) ToJsonString ¶
func (r *InitDBInstancesResponse) ToJsonString() string
type InquiryPriceCreateDBInstancesRequest ¶
type InquiryPriceCreateDBInstancesRequest struct {
*tchttp.BaseRequest
// AZ ID, which can be obtained through the `Zone` field in the returned value of the `DescribeZones` API.
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Specification ID, which can be obtained through the `SpecCode` field in the returned value of the `DescribeProductConfig` API.
SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`
// Storage capacity size in GB.
Storage *uint64 `json:"Storage,omitempty" name:"Storage"`
// Number of instances. Maximum value: 100. If you need to create more instances at a time, please contact customer service.
InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"`
// Length of purchase in months. Currently, only 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, and 36 are supported.
Period *uint64 `json:"Period,omitempty" name:"Period"`
// Billing ID, which can be obtained through the `Pid` field in the returned value of the `DescribeProductConfig` API.
Pid *uint64 `json:"Pid,omitempty" name:"Pid"`
// Instance billing type. Valid value: POSTPAID_BY_HOUR (pay-as-you-go)
InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
}
func NewInquiryPriceCreateDBInstancesRequest ¶
func NewInquiryPriceCreateDBInstancesRequest() (request *InquiryPriceCreateDBInstancesRequest)
func (*InquiryPriceCreateDBInstancesRequest) FromJsonString ¶
func (r *InquiryPriceCreateDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceCreateDBInstancesRequest) ToJsonString ¶
func (r *InquiryPriceCreateDBInstancesRequest) ToJsonString() string
type InquiryPriceCreateDBInstancesResponse ¶
type InquiryPriceCreateDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// Original price in 0.01 CNY.
OriginalPrice *uint64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
// Discounted price in 0.01 CNY.
Price *uint64 `json:"Price,omitempty" name:"Price"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceCreateDBInstancesResponse) ToJsonString ¶
func (r *InquiryPriceCreateDBInstancesResponse) ToJsonString() string
type InquiryPriceRenewDBInstanceRequest ¶
type InquiryPriceRenewDBInstanceRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Renewal duration in months. Maximum value: 48
Period *int64 `json:"Period,omitempty" name:"Period"`
}
func NewInquiryPriceRenewDBInstanceRequest ¶
func NewInquiryPriceRenewDBInstanceRequest() (request *InquiryPriceRenewDBInstanceRequest)
func (*InquiryPriceRenewDBInstanceRequest) FromJsonString ¶
func (r *InquiryPriceRenewDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceRenewDBInstanceRequest) ToJsonString ¶
func (r *InquiryPriceRenewDBInstanceRequest) ToJsonString() string
type InquiryPriceRenewDBInstanceResponse ¶
type InquiryPriceRenewDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Total cost before discount; for example, 24650 indicates 246.5 CNY
OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
// Actual amount payable; for example, 24650 indicates 246.5 CNY
Price *int64 `json:"Price,omitempty" name:"Price"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceRenewDBInstanceResponse) ToJsonString ¶
func (r *InquiryPriceRenewDBInstanceResponse) ToJsonString() string
type InquiryPriceUpgradeDBInstanceRequest ¶
type InquiryPriceUpgradeDBInstanceRequest struct {
*tchttp.BaseRequest
// Instance disk size in GB
Storage *int64 `json:"Storage,omitempty" name:"Storage"`
// Instance memory size in GB
Memory *int64 `json:"Memory,omitempty" name:"Memory"`
// Instance ID in the format of postgres-hez4fh0v
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance billing type. Valid value: `POSTPAID_BY_HOUR` (pay-as-you-go hourly)
InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"`
}
func NewInquiryPriceUpgradeDBInstanceRequest ¶
func NewInquiryPriceUpgradeDBInstanceRequest() (request *InquiryPriceUpgradeDBInstanceRequest)
func (*InquiryPriceUpgradeDBInstanceRequest) FromJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceUpgradeDBInstanceRequest) ToJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceRequest) ToJsonString() string
type InquiryPriceUpgradeDBInstanceResponse ¶
type InquiryPriceUpgradeDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Total cost before discount.
OriginalPrice *int64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"`
// Actual amount payable
Price *int64 `json:"Price,omitempty" name:"Price"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceUpgradeDBInstanceResponse) ToJsonString ¶
func (r *InquiryPriceUpgradeDBInstanceResponse) ToJsonString() string
type IsolateDBInstancesRequest ¶
type IsolateDBInstancesRequest struct {
*tchttp.BaseRequest
// Instance ID set
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
}
func NewIsolateDBInstancesRequest ¶
func NewIsolateDBInstancesRequest() (request *IsolateDBInstancesRequest)
func (*IsolateDBInstancesRequest) FromJsonString ¶
func (r *IsolateDBInstancesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateDBInstancesRequest) ToJsonString ¶
func (r *IsolateDBInstancesRequest) ToJsonString() string
type IsolateDBInstancesResponse ¶
type IsolateDBInstancesResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewIsolateDBInstancesResponse ¶
func NewIsolateDBInstancesResponse() (response *IsolateDBInstancesResponse)
func (*IsolateDBInstancesResponse) FromJsonString ¶
func (r *IsolateDBInstancesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*IsolateDBInstancesResponse) ToJsonString ¶
func (r *IsolateDBInstancesResponse) ToJsonString() string
type ModifyAccountRemarkRequest ¶
type ModifyAccountRemarkRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-4wdeb0zv
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance username
UserName *string `json:"UserName,omitempty" name:"UserName"`
// New remarks corresponding to user `UserName`
Remark *string `json:"Remark,omitempty" name:"Remark"`
}
func NewModifyAccountRemarkRequest ¶
func NewModifyAccountRemarkRequest() (request *ModifyAccountRemarkRequest)
func (*ModifyAccountRemarkRequest) FromJsonString ¶
func (r *ModifyAccountRemarkRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountRemarkRequest) ToJsonString ¶
func (r *ModifyAccountRemarkRequest) ToJsonString() string
type ModifyAccountRemarkResponse ¶
type ModifyAccountRemarkResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyAccountRemarkResponse) ToJsonString ¶
func (r *ModifyAccountRemarkResponse) ToJsonString() string
type ModifyDBInstanceNameRequest ¶
type ModifyDBInstanceNameRequest struct {
*tchttp.BaseRequest
// Database instance ID in the format of postgres-6fego161
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// New name of database instance
InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
}
func NewModifyDBInstanceNameRequest ¶
func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest)
func (*ModifyDBInstanceNameRequest) FromJsonString ¶
func (r *ModifyDBInstanceNameRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceNameRequest) ToJsonString ¶
func (r *ModifyDBInstanceNameRequest) ToJsonString() string
type ModifyDBInstanceNameResponse ¶
type ModifyDBInstanceNameResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceNameResponse) ToJsonString ¶
func (r *ModifyDBInstanceNameResponse) ToJsonString() string
type ModifyDBInstanceReadOnlyGroupRequest ¶
type ModifyDBInstanceReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// ID of the RO group to which the read-only replica belongs
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
// ID of the new RO group into which the read-only replica will move
NewReadOnlyGroupId *string `json:"NewReadOnlyGroupId,omitempty" name:"NewReadOnlyGroupId"`
}
func NewModifyDBInstanceReadOnlyGroupRequest ¶
func NewModifyDBInstanceReadOnlyGroupRequest() (request *ModifyDBInstanceReadOnlyGroupRequest)
func (*ModifyDBInstanceReadOnlyGroupRequest) FromJsonString ¶
func (r *ModifyDBInstanceReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceReadOnlyGroupRequest) ToJsonString ¶
func (r *ModifyDBInstanceReadOnlyGroupRequest) ToJsonString() string
type ModifyDBInstanceReadOnlyGroupResponse ¶
type ModifyDBInstanceReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// Task ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyDBInstanceReadOnlyGroupResponse ¶
func NewModifyDBInstanceReadOnlyGroupResponse() (response *ModifyDBInstanceReadOnlyGroupResponse)
func (*ModifyDBInstanceReadOnlyGroupResponse) FromJsonString ¶
func (r *ModifyDBInstanceReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstanceReadOnlyGroupResponse) ToJsonString ¶
func (r *ModifyDBInstanceReadOnlyGroupResponse) ToJsonString() string
type ModifyDBInstancesProjectRequest ¶
type ModifyDBInstancesProjectRequest struct {
*tchttp.BaseRequest
// TencentDB for PostgreSQL instance ID array
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// New project ID of TencentDB for PostgreSQL instance
ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"`
}
func NewModifyDBInstancesProjectRequest ¶
func NewModifyDBInstancesProjectRequest() (request *ModifyDBInstancesProjectRequest)
func (*ModifyDBInstancesProjectRequest) FromJsonString ¶
func (r *ModifyDBInstancesProjectRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstancesProjectRequest) ToJsonString ¶
func (r *ModifyDBInstancesProjectRequest) ToJsonString() string
type ModifyDBInstancesProjectResponse ¶
type ModifyDBInstancesProjectResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of successfully transferred instances
Count *int64 `json:"Count,omitempty" name:"Count"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDBInstancesProjectResponse) ToJsonString ¶
func (r *ModifyDBInstancesProjectResponse) ToJsonString() string
type ModifyReadOnlyGroupConfigRequest ¶
type ModifyReadOnlyGroupConfigRequest struct {
*tchttp.BaseRequest
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
// RO group name
ReadOnlyGroupName *string `json:"ReadOnlyGroupName,omitempty" name:"ReadOnlyGroupName"`
// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLagEliminate *uint64 `json:"ReplayLagEliminate,omitempty" name:"ReplayLagEliminate"`
// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLatencyEliminate *uint64 `json:"ReplayLatencyEliminate,omitempty" name:"ReplayLatencyEliminate"`
// Delayed log size threshold in MB
MaxReplayLatency *uint64 `json:"MaxReplayLatency,omitempty" name:"MaxReplayLatency"`
// Delay threshold in ms
MaxReplayLag *uint64 `json:"MaxReplayLag,omitempty" name:"MaxReplayLag"`
// Whether to enable automatic load balancing. Valid values: `0` (disable), `1` (enable).
Rebalance *uint64 `json:"Rebalance,omitempty" name:"Rebalance"`
// The minimum number of read-only replicas that must be retained in an RO group
MinDelayEliminateReserve *uint64 `json:"MinDelayEliminateReserve,omitempty" name:"MinDelayEliminateReserve"`
}
func NewModifyReadOnlyGroupConfigRequest ¶
func NewModifyReadOnlyGroupConfigRequest() (request *ModifyReadOnlyGroupConfigRequest)
func (*ModifyReadOnlyGroupConfigRequest) FromJsonString ¶
func (r *ModifyReadOnlyGroupConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyReadOnlyGroupConfigRequest) ToJsonString ¶
func (r *ModifyReadOnlyGroupConfigRequest) ToJsonString() string
type ModifyReadOnlyGroupConfigResponse ¶
type ModifyReadOnlyGroupConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewModifyReadOnlyGroupConfigResponse ¶
func NewModifyReadOnlyGroupConfigResponse() (response *ModifyReadOnlyGroupConfigResponse)
func (*ModifyReadOnlyGroupConfigResponse) FromJsonString ¶
func (r *ModifyReadOnlyGroupConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyReadOnlyGroupConfigResponse) ToJsonString ¶
func (r *ModifyReadOnlyGroupConfigResponse) ToJsonString() string
type NormalQueryItem ¶
type NormalQueryItem struct {
// Username
UserName *string `json:"UserName,omitempty" name:"UserName"`
// Number of calls
Calls *int64 `json:"Calls,omitempty" name:"Calls"`
// Granularity
CallsGrids []*int64 `json:"CallsGrids,omitempty" name:"CallsGrids" list`
// Total time consumed
CostTime *float64 `json:"CostTime,omitempty" name:"CostTime"`
// Number of affected rows
Rows *int64 `json:"Rows,omitempty" name:"Rows"`
// Minimum time consumed
MinCostTime *float64 `json:"MinCostTime,omitempty" name:"MinCostTime"`
// Maximum time consumed
MaxCostTime *float64 `json:"MaxCostTime,omitempty" name:"MaxCostTime"`
// Time of the earliest slow SQL statement
FirstTime *string `json:"FirstTime,omitempty" name:"FirstTime"`
// Time of the latest slow SQL statement
LastTime *string `json:"LastTime,omitempty" name:"LastTime"`
SharedReadBlks *int64 `json:"SharedReadBlks,omitempty" name:"SharedReadBlks"`
SharedWriteBlks *int64 `json:"SharedWriteBlks,omitempty" name:"SharedWriteBlks"`
// Total IO read time
ReadCostTime *int64 `json:"ReadCostTime,omitempty" name:"ReadCostTime"`
// Total IO write time
WriteCostTime *int64 `json:"WriteCostTime,omitempty" name:"WriteCostTime"`
// Database name
DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"`
// Slow SQL statement after desensitization
NormalQuery *string `json:"NormalQuery,omitempty" name:"NormalQuery"`
}
type OpenDBExtranetAccessRequest ¶
type OpenDBExtranetAccessRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-hez4fh0v
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Whether to enable public network access over IPv6 address. Valid values: 1 (yes), 0 (no)
IsIpv6 *int64 `json:"IsIpv6,omitempty" name:"IsIpv6"`
}
func NewOpenDBExtranetAccessRequest ¶
func NewOpenDBExtranetAccessRequest() (request *OpenDBExtranetAccessRequest)
func (*OpenDBExtranetAccessRequest) FromJsonString ¶
func (r *OpenDBExtranetAccessRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBExtranetAccessRequest) ToJsonString ¶
func (r *OpenDBExtranetAccessRequest) ToJsonString() string
type OpenDBExtranetAccessResponse ¶
type OpenDBExtranetAccessResponse struct {
*tchttp.BaseResponse
Response *struct {
// Async task flow ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenDBExtranetAccessResponse) ToJsonString ¶
func (r *OpenDBExtranetAccessResponse) ToJsonString() string
type OpenServerlessDBExtranetAccessRequest ¶
type OpenServerlessDBExtranetAccessRequest struct {
*tchttp.BaseRequest
// Unique ID of an instance
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance name
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
}
func NewOpenServerlessDBExtranetAccessRequest ¶
func NewOpenServerlessDBExtranetAccessRequest() (request *OpenServerlessDBExtranetAccessRequest)
func (*OpenServerlessDBExtranetAccessRequest) FromJsonString ¶
func (r *OpenServerlessDBExtranetAccessRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenServerlessDBExtranetAccessRequest) ToJsonString ¶
func (r *OpenServerlessDBExtranetAccessRequest) ToJsonString() string
type OpenServerlessDBExtranetAccessResponse ¶
type OpenServerlessDBExtranetAccessResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewOpenServerlessDBExtranetAccessResponse ¶
func NewOpenServerlessDBExtranetAccessResponse() (response *OpenServerlessDBExtranetAccessResponse)
func (*OpenServerlessDBExtranetAccessResponse) FromJsonString ¶
func (r *OpenServerlessDBExtranetAccessResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*OpenServerlessDBExtranetAccessResponse) ToJsonString ¶
func (r *OpenServerlessDBExtranetAccessResponse) ToJsonString() string
type PgDeal ¶
type PgDeal struct {
// Order name
DealName *string `json:"DealName,omitempty" name:"DealName"`
// User
OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"`
// Number of instances involved in order
Count *int64 `json:"Count,omitempty" name:"Count"`
// Billing mode. 0: pay-as-you-go
PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"`
// Async task flow ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// Instance ID array
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
}
type ReadOnlyGroup ¶
type ReadOnlyGroup struct {
// RO group identifier
// Note: this field may return `null`, indicating that no valid values can be obtained.
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
// RO group name
// Note: this field may return `null`, indicating that no valid values can be obtained.
ReadOnlyGroupName *string `json:"ReadOnlyGroupName,omitempty" name:"ReadOnlyGroupName"`
// Project ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// Primary instance ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
MasterDBInstanceId *string `json:"MasterDBInstanceId,omitempty" name:"MasterDBInstanceId"`
// The minimum number of read-only replicas that must be retained in an RO group
// Note: this field may return `null`, indicating that no valid values can be obtained.
MinDelayEliminateReserve *int64 `json:"MinDelayEliminateReserve,omitempty" name:"MinDelayEliminateReserve"`
// Delayed log size threshold
MaxReplayLatency *int64 `json:"MaxReplayLatency,omitempty" name:"MaxReplayLatency"`
// Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLatencyEliminate *int64 `json:"ReplayLatencyEliminate,omitempty" name:"ReplayLatencyEliminate"`
// Delay threshold
MaxReplayLag *float64 `json:"MaxReplayLag,omitempty" name:"MaxReplayLag"`
// Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).
ReplayLagEliminate *int64 `json:"ReplayLagEliminate,omitempty" name:"ReplayLagEliminate"`
// VPC ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Region ID
Region *string `json:"Region,omitempty" name:"Region"`
// Availability zone ID
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Status
Status *string `json:"Status,omitempty" name:"Status"`
// Instance details
ReadOnlyDBInstanceList []*DBInstance `json:"ReadOnlyDBInstanceList,omitempty" name:"ReadOnlyDBInstanceList" list`
// Whether to enable automatic load balancing
Rebalance *int64 `json:"Rebalance,omitempty" name:"Rebalance"`
// Network information
DBInstanceNetInfo []*DBInstanceNetInfo `json:"DBInstanceNetInfo,omitempty" name:"DBInstanceNetInfo" list`
}
type RebalanceReadOnlyGroupRequest ¶
type RebalanceReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
}
func NewRebalanceReadOnlyGroupRequest ¶
func NewRebalanceReadOnlyGroupRequest() (request *RebalanceReadOnlyGroupRequest)
func (*RebalanceReadOnlyGroupRequest) FromJsonString ¶
func (r *RebalanceReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RebalanceReadOnlyGroupRequest) ToJsonString ¶
func (r *RebalanceReadOnlyGroupRequest) ToJsonString() string
type RebalanceReadOnlyGroupResponse ¶
type RebalanceReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRebalanceReadOnlyGroupResponse ¶
func NewRebalanceReadOnlyGroupResponse() (response *RebalanceReadOnlyGroupResponse)
func (*RebalanceReadOnlyGroupResponse) FromJsonString ¶
func (r *RebalanceReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RebalanceReadOnlyGroupResponse) ToJsonString ¶
func (r *RebalanceReadOnlyGroupResponse) ToJsonString() string
type RegionInfo ¶
type RegionInfo struct {
// Region abbreviation
Region *string `json:"Region,omitempty" name:"Region"`
// Region name
RegionName *string `json:"RegionName,omitempty" name:"RegionName"`
// Region number
RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"`
// Availability status. UNAVAILABLE: unavailable, AVAILABLE: available
RegionState *string `json:"RegionState,omitempty" name:"RegionState"`
// Whether the resource can be purchased in this region. Valid values: `0` (no), `1` (yes).
// Note: this field may return `null`, indicating that no valid values can be obtained.
SupportInternational *uint64 `json:"SupportInternational,omitempty" name:"SupportInternational"`
}
type RemoveDBInstanceFromReadOnlyGroupRequest ¶
type RemoveDBInstanceFromReadOnlyGroupRequest struct {
*tchttp.BaseRequest
// Instance ID
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// RO group ID
ReadOnlyGroupId *string `json:"ReadOnlyGroupId,omitempty" name:"ReadOnlyGroupId"`
}
func NewRemoveDBInstanceFromReadOnlyGroupRequest ¶
func NewRemoveDBInstanceFromReadOnlyGroupRequest() (request *RemoveDBInstanceFromReadOnlyGroupRequest)
func (*RemoveDBInstanceFromReadOnlyGroupRequest) FromJsonString ¶
func (r *RemoveDBInstanceFromReadOnlyGroupRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveDBInstanceFromReadOnlyGroupRequest) ToJsonString ¶
func (r *RemoveDBInstanceFromReadOnlyGroupRequest) ToJsonString() string
type RemoveDBInstanceFromReadOnlyGroupResponse ¶
type RemoveDBInstanceFromReadOnlyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// Task ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewRemoveDBInstanceFromReadOnlyGroupResponse ¶
func NewRemoveDBInstanceFromReadOnlyGroupResponse() (response *RemoveDBInstanceFromReadOnlyGroupResponse)
func (*RemoveDBInstanceFromReadOnlyGroupResponse) FromJsonString ¶
func (r *RemoveDBInstanceFromReadOnlyGroupResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RemoveDBInstanceFromReadOnlyGroupResponse) ToJsonString ¶
func (r *RemoveDBInstanceFromReadOnlyGroupResponse) ToJsonString() string
type RenewInstanceRequest ¶
type RenewInstanceRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of `postgres-6fego161`
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Renewal duration in months
Period *int64 `json:"Period,omitempty" name:"Period"`
// Whether to automatically use vouchers. 1: yes, 0: no. Default value: 0
AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
// Voucher ID list (only one voucher can be specified currently)
VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
}
func NewRenewInstanceRequest ¶
func NewRenewInstanceRequest() (request *RenewInstanceRequest)
func (*RenewInstanceRequest) FromJsonString ¶
func (r *RenewInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RenewInstanceRequest) ToJsonString ¶
func (r *RenewInstanceRequest) ToJsonString() string
type RenewInstanceResponse ¶
type RenewInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Order name
DealName *string `json:"DealName,omitempty" name:"DealName"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RenewInstanceResponse) ToJsonString ¶
func (r *RenewInstanceResponse) ToJsonString() string
type ResetAccountPasswordRequest ¶
type ResetAccountPasswordRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of postgres-4wdeb0zv
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance account name
UserName *string `json:"UserName,omitempty" name:"UserName"`
// New password corresponding to `UserName` account
Password *string `json:"Password,omitempty" name:"Password"`
}
func NewResetAccountPasswordRequest ¶
func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest)
func (*ResetAccountPasswordRequest) FromJsonString ¶
func (r *ResetAccountPasswordRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetAccountPasswordRequest) ToJsonString ¶
func (r *ResetAccountPasswordRequest) ToJsonString() string
type ResetAccountPasswordResponse ¶
type ResetAccountPasswordResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ResetAccountPasswordResponse) ToJsonString ¶
func (r *ResetAccountPasswordResponse) ToJsonString() string
type RestartDBInstanceRequest ¶
type RestartDBInstanceRequest struct {
*tchttp.BaseRequest
// Instance ID in the format of 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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RestartDBInstanceRequest) ToJsonString ¶
func (r *RestartDBInstanceRequest) ToJsonString() string
type RestartDBInstanceResponse ¶
type RestartDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Async flow ID
FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RestartDBInstanceResponse) ToJsonString ¶
func (r *RestartDBInstanceResponse) ToJsonString() string
type ServerlessDBAccount ¶
type ServerlessDBAccount struct {
// Username
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBUser *string `json:"DBUser,omitempty" name:"DBUser"`
// Password
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBPassword *string `json:"DBPassword,omitempty" name:"DBPassword"`
// The maximum number of connections
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBConnLimit *int64 `json:"DBConnLimit,omitempty" name:"DBConnLimit"`
}
type ServerlessDBInstance ¶
type ServerlessDBInstance struct {
// Instance ID, which is the unique identifier
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Instance name
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBInstanceName *string `json:"DBInstanceName,omitempty" name:"DBInstanceName"`
// Instance status
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBInstanceStatus *string `json:"DBInstanceStatus,omitempty" name:"DBInstanceStatus"`
// Region
// Note: this field may return `null`, indicating that no valid values can be obtained.
Region *string `json:"Region,omitempty" name:"Region"`
// Availability zone
// Note: this field may return `null`, indicating that no valid values can be obtained.
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Project ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// VPC ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// Subnet ID
// Note: this field may return `null`, indicating that no valid values can be obtained.
SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`
// Character set
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBCharset *string `json:"DBCharset,omitempty" name:"DBCharset"`
// Database version
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBVersion *string `json:"DBVersion,omitempty" name:"DBVersion"`
// Creation time
// Note: this field may return `null`, indicating that no valid values can be obtained.
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Instance network information
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBInstanceNetInfo []*ServerlessDBInstanceNetInfo `json:"DBInstanceNetInfo,omitempty" name:"DBInstanceNetInfo" list`
// Instance account information
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBAccountSet []*ServerlessDBAccount `json:"DBAccountSet,omitempty" name:"DBAccountSet" list`
// Information of the databases in an instance
// Note: this field may return `null`, indicating that no valid values can be obtained.
DBDatabaseList []*string `json:"DBDatabaseList,omitempty" name:"DBDatabaseList" list`
// The array of tags bound to an instance
// Note: this field may return `null`, indicating that no valid values can be obtained.
TagList []*Tag `json:"TagList,omitempty" name:"TagList" list`
}
type ServerlessDBInstanceNetInfo ¶
type ServerlessDBInstanceNetInfo struct {
// Address
// Note: this field may return `null`, indicating that no valid values can be obtained.
Address *string `json:"Address,omitempty" name:"Address"`
// IP address
// Note: this field may return `null`, indicating that no valid values can be obtained.
Ip *string `json:"Ip,omitempty" name:"Ip"`
// Port number
// Note: this field may return `null`, indicating that no valid values can be obtained.
Port *int64 `json:"Port,omitempty" name:"Port"`
// Status
// Note: this field may return `null`, indicating that no valid values can be obtained.
Status *string `json:"Status,omitempty" name:"Status"`
// Network type
// Note: this field may return `null`, indicating that no valid values can be obtained.
NetType *string `json:"NetType,omitempty" name:"NetType"`
}
type SetAutoRenewFlagRequest ¶
type SetAutoRenewFlagRequest struct {
*tchttp.BaseRequest
// Instance ID array
DBInstanceIdSet []*string `json:"DBInstanceIdSet,omitempty" name:"DBInstanceIdSet" list`
// Renewal flag. 0: normal renewal, 1: auto-renewal, 2: no renewal upon expiration
AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"`
}
func NewSetAutoRenewFlagRequest ¶
func NewSetAutoRenewFlagRequest() (request *SetAutoRenewFlagRequest)
func (*SetAutoRenewFlagRequest) FromJsonString ¶
func (r *SetAutoRenewFlagRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetAutoRenewFlagRequest) ToJsonString ¶
func (r *SetAutoRenewFlagRequest) ToJsonString() string
type SetAutoRenewFlagResponse ¶
type SetAutoRenewFlagResponse struct {
*tchttp.BaseResponse
Response *struct {
// Number of successfully set instances
Count *int64 `json:"Count,omitempty" name:"Count"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SetAutoRenewFlagResponse) ToJsonString ¶
func (r *SetAutoRenewFlagResponse) ToJsonString() string
type SlowlogDetail ¶
type SlowlogDetail struct {
// Total time consumed
TotalTime *float64 `json:"TotalTime,omitempty" name:"TotalTime"`
// Total number of calls
TotalCalls *int64 `json:"TotalCalls,omitempty" name:"TotalCalls"`
// List of slow SQL statements after desensitization
NormalQueries []*NormalQueryItem `json:"NormalQueries,omitempty" name:"NormalQueries" list`
}
type SpecInfo ¶
type SpecInfo struct {
// Region abbreviation, which corresponds to the `Region` field of `RegionSet`
Region *string `json:"Region,omitempty" name:"Region"`
// AZ abbreviate, which corresponds to the `Zone` field of `ZoneSet`
Zone *string `json:"Zone,omitempty" name:"Zone"`
// Specification details list
SpecItemInfoList []*SpecItemInfo `json:"SpecItemInfoList,omitempty" name:"SpecItemInfoList" list`
}
type SpecItemInfo ¶
type SpecItemInfo struct {
// Specification ID
SpecCode *string `json:"SpecCode,omitempty" name:"SpecCode"`
// PostgreSQL kernel version number
Version *string `json:"Version,omitempty" name:"Version"`
// Full version name corresponding to kernel number
VersionName *string `json:"VersionName,omitempty" name:"VersionName"`
// Number of CPU cores
Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"`
// Memory size in MB
Memory *uint64 `json:"Memory,omitempty" name:"Memory"`
// Maximum storage capacity in GB supported by this specification
MaxStorage *uint64 `json:"MaxStorage,omitempty" name:"MaxStorage"`
// Minimum storage capacity in GB supported by this specification
MinStorage *uint64 `json:"MinStorage,omitempty" name:"MinStorage"`
// Estimated QPS for this specification
Qps *uint64 `json:"Qps,omitempty" name:"Qps"`
// Billing ID for this specification
Pid *uint64 `json:"Pid,omitempty" name:"Pid"`
// Machine type
Type *string `json:"Type,omitempty" name:"Type"`
}
type UpgradeDBInstanceRequest ¶
type UpgradeDBInstanceRequest struct {
*tchttp.BaseRequest
// Instance memory size in GB after upgrade
Memory *int64 `json:"Memory,omitempty" name:"Memory"`
// Instance disk size in GB after upgrade
Storage *int64 `json:"Storage,omitempty" name:"Storage"`
// Instance ID in the format of postgres-lnp6j617
DBInstanceId *string `json:"DBInstanceId,omitempty" name:"DBInstanceId"`
// Whether to automatically use vouchers. 1: yes, 0: no. Default value: no
AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"`
// Voucher ID list (only one voucher can be specified currently)
VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list`
// Activity ID
ActivityId *int64 `json:"ActivityId,omitempty" name:"ActivityId"`
}
func NewUpgradeDBInstanceRequest ¶
func NewUpgradeDBInstanceRequest() (request *UpgradeDBInstanceRequest)
func (*UpgradeDBInstanceRequest) FromJsonString ¶
func (r *UpgradeDBInstanceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceRequest) ToJsonString ¶
func (r *UpgradeDBInstanceRequest) ToJsonString() string
type UpgradeDBInstanceResponse ¶
type UpgradeDBInstanceResponse struct {
*tchttp.BaseResponse
Response *struct {
// Transaction name.
DealName *string `json:"DealName,omitempty" name:"DealName"`
// Bill ID of frozen fees
BillId *string `json:"BillId,omitempty" name:"BillId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpgradeDBInstanceResponse) ToJsonString ¶
func (r *UpgradeDBInstanceResponse) ToJsonString() string
type Xlog ¶
type Xlog struct {
// Unique backup file ID
Id *int64 `json:"Id,omitempty" name:"Id"`
// File generation start time
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// File generation end time
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// Download address on private network
InternalAddr *string `json:"InternalAddr,omitempty" name:"InternalAddr"`
// Download address on public network
ExternalAddr *string `json:"ExternalAddr,omitempty" name:"ExternalAddr"`
// Backup file size
Size *int64 `json:"Size,omitempty" name:"Size"`
}
type ZoneInfo ¶
type ZoneInfo struct {
// AZ abbreviation
Zone *string `json:"Zone,omitempty" name:"Zone"`
// AZ name
ZoneName *string `json:"ZoneName,omitempty" name:"ZoneName"`
// AZ number
ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"`
// Availability status. UNAVAILABLE: unavailable, AVAILABLE: available
ZoneState *string `json:"ZoneState,omitempty" name:"ZoneState"`
// Whether the AZ supports IPv6 address access
ZoneSupportIpv6 *uint64 `json:"ZoneSupportIpv6,omitempty" name:"ZoneSupportIpv6"`
}