v20180411

package
v3.0.901+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM signature/authentication error
	AUTHFAILURE = "AuthFailure"

	// Failed to add the security group information of an instance.
	FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"

	// Failed to apply for VIP
	FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"

	// Failed to associate the security group.
	FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"

	// Authentication failed.
	FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"

	// Failed to clear the security group information of an instance.
	FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"

	// Error copying account permissions.
	FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError"

	// Failed to create the flow.
	FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"

	// Failed to create an order.
	FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"

	// Failed to create the account.
	FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed"

	// Failed to delete the account.
	FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed"

	// Failed to unassociate the security group.
	FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"

	// Failed to query the security group details
	FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"

	// Refund is not supported for the instance
	FAILEDOPERATION_INSTANCECANNOTRETURN = "FailedOperation.InstanceCanNotReturn"

	// Instance refund failed
	FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"

	// Failed to modify account permissions.
	FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed"

	// Failed to modify account permissions
	FAILEDOPERATION_MODIFYUSERCONFIGFAILED = "FailedOperation.ModifyUserConfigFailed"

	// Failed to isolate the instance
	FAILEDOPERATION_OSSISOLATEINSTANCEFAILED = "FailedOperation.OssIsolateInstanceFailed"

	// Failed to request the backend API.
	FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"

	// Failed to make order payment.
	FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"

	// Failed to reset the account password.
	FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed"

	// Failed to update the security group
	FAILEDOPERATION_SGCHANGEVIP = "FailedOperation.SGChangeVip"

	// Failed to set a rule.
	FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"

	// Failed to publish security group rules
	FAILEDOPERATION_SETSVCLOCATIONFAILED = "FailedOperation.SetSvcLocationFailed"

	// Either tag key/value verification or tag API authentication failed.
	FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"

	// Insufficient tags
	FAILEDOPERATION_TAGQUOTAEXCEEDLIMIT = "FailedOperation.TagQuotaExceedLimit"

	// Failed to update the security group information of an instance.
	FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"

	// Unverified user.
	FAILEDOPERATION_USERNOTAUTHED = "FailedOperation.UserNotAuthed"

	// VIP can’t be the same.
	FAILEDOPERATION_VIPNOTCHANGE = "FailedOperation.VipNotChange"

	// Failed to add service to VPC
	FAILEDOPERATION_VPCADDSERVICEFAILED = "FailedOperation.VpcAddServiceFailed"

	// Abnormal public network status
	FAILEDOPERATION_WANSTATUSABNORMAL = "FailedOperation.WanStatusAbnormal"

	// Internal error.
	INTERNALERROR = "InternalError"

	// CAM authentication request failed.
	INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"

	// Failed to verify the VIP status
	INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"

	// Invalid COS instance address configuration.
	INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration"

	// Backup filename signature failed.
	INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"

	// Failed to create a process
	INTERNALERROR_CREATEFLOWERROR = "InternalError.CreateFlowError"

	// No database data has changed.
	INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError"

	// Failed to query the database.
	INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"

	// Failed to query the information of a dedicated cluster.
	INTERNALERROR_FENCEERROR = "InternalError.FenceError"

	// Failed to get database instance parameters.
	INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"

	// Failed to get database list.
	INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed"

	// Failed to get the database objects.
	INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed"

	// Failed to get the instance details.
	INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"

	// Failed to get the instance information.
	INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"

	// Failed to get the current permissions of the account.
	INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"

	// Failed to query security group details.
	INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"

	// Failed to query slow query logs.
	INTERNALERROR_GETSLOWLOGFAILED = "InternalError.GetSlowLogFailed"

	// Failed to query the VPC subnet information.
	INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"

	// Failed to get the table information.
	INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed"

	// Failed to get the list of accounts.
	INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"

	// Failed to get the number of security groups
	INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"

	// Failed to query the security group quota of the user.
	INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError"

	// Failed to query the VPC information.
	INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"

	// Internal system error.
	INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"

	// Failed to insert data into the database.
	INTERNALERROR_INSERTFAIL = "InternalError.InsertFail"

	// You have no permission to operate this instance.
	INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"

	// The maximum number of security groups with which a single instance can associate has been reached.
	INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"

	// The number of resources returned is inconsistent with the number specified in the request of querying instance information.
	INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"

	// An error occurred when querying instance information.
	INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"

	// Database operation failed.
	INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"

	// An error occurred when reading data from the database.
	INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"

	// Failed to query the order information.
	INTERNALERROR_QUERYORDERFAILED = "InternalError.QueryOrderFailed"

	// Failed to query the price
	INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"

	// An error occurred when reading data from the database.
	INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"

	// Invalid rollback time
	INTERNALERROR_RETREATETIME = "InternalError.RetreateTime"

	// Route not found.
	INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"

	// The security group policy of the resource failed to take effect.
	INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"

	// Failed to update the database.
	INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed"

	// VPC operation failed
	INTERNALERROR_VPCOPERATIONFAILED = "InternalError.VpcOperationFailed"

	// Public network operation failed.
	INTERNALERROR_WANSERVICEFAILED = "InternalError.WanServiceFailed"

	// Parameter error.
	INVALIDPARAMETER = "InvalidParameter"

	// The password contains invalid characters.
	INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"

	// Failed to verify input parameters.
	INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"

	// The order ID to be queried is not specified.
	INVALIDPARAMETER_DEALNAMENOTGIVEN = "InvalidParameter.DealNameNotGiven"

	// The specified task information was not found.
	INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound"

	// An error occurred while verifying parameter validity.
	INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"

	// Invalid parameters.
	INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"

	// Incorrect time parameter.
	INVALIDPARAMETER_ILLEGALTIME = "InvalidParameter.IllegalTime"

	// Failed to find the requested instance.
	INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"

	// The API doesn’t support instances of this payment mode
	INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"

	// You have no permission to manipulate this API or resource.
	INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

	// Security group validity test failed.
	INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail"

	// No purchasable specifications found
	INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"

	// The specified VPC subnet was not found.
	INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"

	// The SNAT subnet doesn’t support applying for IPs.
	INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"

	// VIP is not in the subnet.
	INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"

	// VIP is in use.
	INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"

	// The specified VPC was not found.
	INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"

	// Vport is in use.
	INVALIDPARAMETER_VPORTUSED = "InvalidParameter.VportUsed"

	// Incorrect AZ information.
	INVALIDPARAMETER_ZONEIDILLEGAL = "InvalidParameter.ZoneIdIllegal"

	// The account to be created already exists.
	INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"

	// The instance does not support this sync mode.
	INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode"

	// The specified permission could not be granted to this account.
	INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"

	// Invalid account type.
	INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType"

	// The dedicated cluster to which the database instance belongs was not found.
	INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"

	// An error occurred while initializing database instance parameters.
	INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam"

	// The number of products exceeds the upper limit.
	INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"

	// Incorrect permission parameter
	INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam"

	// The specified AZ was not found.
	INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"

	// Parameter input error
	INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"

	// The specification information of the database instance was not found.
	INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"

	// Operations by a system user are not allowed.
	INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"

	// The deployment mode does not support setting the sync mode.
	INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"

	// Insufficient resources
	RESOURCEINSUFFICIENT = "ResourceInsufficient"

	// The specified account does not exist.
	RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"

	// The instance doesn’t exist.
	RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"

	// The specified database instance was not found.
	RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"

	// Failed to find the configuration of the product associated with the security group.
	RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"

	// Incorrect instance status. Unable to initialize.
	RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"

	// An error occurred while calling COS APIs.
	RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed"

	// Abnormal dedicated cluster status
	RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"

	// The database instance has been dropped.
	RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"

	// The database instance has been locked. Operations are not allowed.
	RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"

	// Incorrect database instance status. Operations are not allowed.
	RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

	// Failed to verify the security group
	RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"

	// You have no permission to manipulate this API or resource.
	UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

	// This database version is not supported.
	UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"

	// Unsupported operation.
	UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

	// The proxy program is too old. Please contact customer service for upgrade and try again.
	UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"
)
View Source
const APIVersion = "2018-04-11"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// Account name
	User *string `json:"User,omitnil" name:"User"`

	// Host address
	Host *string `json:"Host,omitnil" name:"Host"`
}

type ActiveHourDCDBInstanceRequest

type ActiveHourDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// List of instance IDs in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

func NewActiveHourDCDBInstanceRequest

func NewActiveHourDCDBInstanceRequest() (request *ActiveHourDCDBInstanceRequest)

func (*ActiveHourDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActiveHourDCDBInstanceRequest) ToJsonString

func (r *ActiveHourDCDBInstanceRequest) ToJsonString() string

type ActiveHourDCDBInstanceRequestParams

type ActiveHourDCDBInstanceRequestParams struct {
	// List of instance IDs in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

Predefined struct for user

type ActiveHourDCDBInstanceResponse

type ActiveHourDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *ActiveHourDCDBInstanceResponseParams `json:"Response"`
}

func NewActiveHourDCDBInstanceResponse

func NewActiveHourDCDBInstanceResponse() (response *ActiveHourDCDBInstanceResponse)

func (*ActiveHourDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActiveHourDCDBInstanceResponse) ToJsonString

func (r *ActiveHourDCDBInstanceResponse) ToJsonString() string

type ActiveHourDCDBInstanceResponseParams

type ActiveHourDCDBInstanceResponseParams struct {
	// IDs of instances removed from isolation
	SuccessInstanceIds []*string `json:"SuccessInstanceIds,omitnil" name:"SuccessInstanceIds"`

	// IDs of instances failed to be removed from isolation
	FailedInstanceIds []*string `json:"FailedInstanceIds,omitnil" name:"FailedInstanceIds"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type AddShardConfig

type AddShardConfig struct {
	// The number of shards to be added
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// Shard memory capacity in GB
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage capacity in GB
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`
}

type AssociateSecurityGroupsRequest

type AssociateSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// ID of the security group to be associated in the format of sg-efil73jd.
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// ID(s) of the instance(s) to be associated in the format of tdsqlshard-lesecurk. You can specify multiple instances.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

func NewAssociateSecurityGroupsRequest

func NewAssociateSecurityGroupsRequest() (request *AssociateSecurityGroupsRequest)

func (*AssociateSecurityGroupsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSecurityGroupsRequest) ToJsonString

func (r *AssociateSecurityGroupsRequest) ToJsonString() string

type AssociateSecurityGroupsRequestParams

type AssociateSecurityGroupsRequestParams struct {
	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// ID of the security group to be associated in the format of sg-efil73jd.
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// ID(s) of the instance(s) to be associated in the format of tdsqlshard-lesecurk. You can specify multiple instances.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

Predefined struct for user

type AssociateSecurityGroupsResponse

type AssociateSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *AssociateSecurityGroupsResponseParams `json:"Response"`
}

func NewAssociateSecurityGroupsResponse

func NewAssociateSecurityGroupsResponse() (response *AssociateSecurityGroupsResponse)

func (*AssociateSecurityGroupsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSecurityGroupsResponse) ToJsonString

func (r *AssociateSecurityGroupsResponse) ToJsonString() string

type AssociateSecurityGroupsResponseParams

type AssociateSecurityGroupsResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type BriefNodeInfo

type BriefNodeInfo struct {
	// Node ID
	NodeId *string `json:"NodeId,omitnil" name:"NodeId"`

	// Node role. Valid values: `master`, `slave`
	Role *string `json:"Role,omitnil" name:"Role"`

	// The ID of the shard where the node resides
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`
}

type CancelDcnJobRequest

type CancelDcnJobRequest struct {
	*tchttp.BaseRequest

	// Disaster recovery instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewCancelDcnJobRequest

func NewCancelDcnJobRequest() (request *CancelDcnJobRequest)

func (*CancelDcnJobRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CancelDcnJobRequest) ToJsonString

func (r *CancelDcnJobRequest) ToJsonString() string

type CancelDcnJobRequestParams

type CancelDcnJobRequestParams struct {
	// Disaster recovery instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type CancelDcnJobResponse

type CancelDcnJobResponse struct {
	*tchttp.BaseResponse
	Response *CancelDcnJobResponseParams `json:"Response"`
}

func NewCancelDcnJobResponse

func NewCancelDcnJobResponse() (response *CancelDcnJobResponse)

func (*CancelDcnJobResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CancelDcnJobResponse) ToJsonString

func (r *CancelDcnJobResponse) ToJsonString() string

type CancelDcnJobResponseParams

type CancelDcnJobResponseParams struct {
	// Task ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) ActiveHourDCDBInstance

func (c *Client) ActiveHourDCDBInstance(request *ActiveHourDCDBInstanceRequest) (response *ActiveHourDCDBInstanceResponse, err error)

ActiveHourDCDBInstance This API is used to remove a pay-as-you-go TDSQL instance from isolation.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ActiveHourDCDBInstanceWithContext

func (c *Client) ActiveHourDCDBInstanceWithContext(ctx context.Context, request *ActiveHourDCDBInstanceRequest) (response *ActiveHourDCDBInstanceResponse, err error)

ActiveHourDCDBInstance This API is used to remove a pay-as-you-go TDSQL instance from isolation.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) AssociateSecurityGroups

func (c *Client) AssociateSecurityGroups(request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)

AssociateSecurityGroups This API is used to associate security groups with Tencent Cloud resources in batches.

error code that may be returned:

FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_SETSVCLOCATIONFAILED = "FailedOperation.SetSvcLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError"
INTERNALERROR_INSERTFAIL = "InternalError.InsertFail"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) AssociateSecurityGroupsWithContext

func (c *Client) AssociateSecurityGroupsWithContext(ctx context.Context, request *AssociateSecurityGroupsRequest) (response *AssociateSecurityGroupsResponse, err error)

AssociateSecurityGroups This API is used to associate security groups with Tencent Cloud resources in batches.

error code that may be returned:

FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_SETSVCLOCATIONFAILED = "FailedOperation.SetSvcLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_DBROWSAFFECTEDERROR = "InternalError.DBRowsAffectedError"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
INTERNALERROR_GETUSGQUOTAERROR = "InternalError.GetUsgQuotaError"
INTERNALERROR_INSERTFAIL = "InternalError.InsertFail"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
INTERNALERROR_UPDATEDATABASEFAILED = "InternalError.UpdateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETER_SGCHECKFAIL = "InvalidParameter.SGCheckFail"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CancelDcnJob

func (c *Client) CancelDcnJob(request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)

CancelDcnJob This API is used to cancel DCN synchronization.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR = "InternalError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CancelDcnJobWithContext

func (c *Client) CancelDcnJobWithContext(ctx context.Context, request *CancelDcnJobRequest) (response *CancelDcnJobResponse, err error)

CancelDcnJob This API is used to cancel DCN synchronization.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR = "InternalError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CloneAccount

func (c *Client) CloneAccount(request *CloneAccountRequest) (response *CloneAccountResponse, err error)

CloneAccount This API is used to clone an instance account.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) CloneAccountWithContext

func (c *Client) CloneAccountWithContext(ctx context.Context, request *CloneAccountRequest) (response *CloneAccountResponse, err error)

CloneAccount This API is used to clone an instance account.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) CloseDBExtranetAccess

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

CloseDBExtranetAccess This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INTERNALERROR_WANSERVICEFAILED = "InternalError.WanServiceFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CloseDBExtranetAccessWithContext

func (c *Client) CloseDBExtranetAccessWithContext(ctx context.Context, request *CloseDBExtranetAccessRequest) (response *CloseDBExtranetAccessResponse, err error)

CloseDBExtranetAccess This API is used to disable public network access for a TencentDB instance, which will make the public IP address inaccessible. The `DescribeDCDBInstances` API will not return the public domain name and port information of the corresponding instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INTERNALERROR_WANSERVICEFAILED = "InternalError.WanServiceFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CopyAccountPrivileges

func (c *Client) CopyAccountPrivileges(request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)

CopyAccountPrivileges This API is used to copy the permissions of a TencentDB account.

Note: Accounts with the same username but different hosts are different accounts. Permissions can only be copied between accounts with the same `Readonly` attribute.

error code that may be returned:

FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CopyAccountPrivilegesWithContext

func (c *Client) CopyAccountPrivilegesWithContext(ctx context.Context, request *CopyAccountPrivilegesRequest) (response *CopyAccountPrivilegesResponse, err error)

CopyAccountPrivileges This API is used to copy the permissions of a TencentDB account.

Note: Accounts with the same username but different hosts are different accounts. Permissions can only be copied between accounts with the same `Readonly` attribute.

error code that may be returned:

FAILEDOPERATION_COPYRIGHTERROR = "FailedOperation.CopyRightError"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_BADUSERTYPE = "InvalidParameterValue.BadUserType"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateAccount

func (c *Client) CreateAccount(request *CreateAccountRequest) (response *CreateAccountResponse, err error)

CreateAccount This API is used to create a TencentDB account. Multiple accounts can be created for one instance. Accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"

func (*Client) CreateAccountWithContext

func (c *Client) CreateAccountWithContext(ctx context.Context, request *CreateAccountRequest) (response *CreateAccountResponse, err error)

CreateAccount This API is used to create a TencentDB account. Multiple accounts can be created for one instance. Accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_CREATEUSERFAILED = "FailedOperation.CreateUserFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_ACCOUNTALREADYEXISTS = "InvalidParameterValue.AccountAlreadyExists"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_OLDPROXYVERSION = "UnsupportedOperation.OldProxyVersion"

func (*Client) CreateDCDBInstance

func (c *Client) CreateDCDBInstance(request *CreateDCDBInstanceRequest) (response *CreateDCDBInstanceResponse, err error)

CreateDCDBInstance This API is used to create a monthly subscribed TDSQL instance by passing in information such as instance specifications, database version number, and purchased duration.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"

func (*Client) CreateDCDBInstanceWithContext

func (c *Client) CreateDCDBInstanceWithContext(ctx context.Context, request *CreateDCDBInstanceRequest) (response *CreateDCDBInstanceResponse, err error)

CreateDCDBInstance This API is used to create a monthly subscribed TDSQL instance by passing in information such as instance specifications, database version number, and purchased duration.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_PAYFAILED = "FailedOperation.PayFailed"
FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALQUANTITY = "InvalidParameterValue.IllegalQuantity"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"

func (*Client) CreateDedicatedClusterDCDBInstance

func (c *Client) CreateDedicatedClusterDCDBInstance(request *CreateDedicatedClusterDCDBInstanceRequest) (response *CreateDedicatedClusterDCDBInstanceResponse, err error)

CreateDedicatedClusterDCDBInstance This API is used to create a dedicated TDSQL cluster instance.

error code that may be returned:

FAILEDOPERATION_TAGQUOTAEXCEEDLIMIT = "FailedOperation.TagQuotaExceedLimit"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateDedicatedClusterDCDBInstanceWithContext

func (c *Client) CreateDedicatedClusterDCDBInstanceWithContext(ctx context.Context, request *CreateDedicatedClusterDCDBInstanceRequest) (response *CreateDedicatedClusterDCDBInstanceResponse, err error)

CreateDedicatedClusterDCDBInstance This API is used to create a dedicated TDSQL cluster instance.

error code that may be returned:

FAILEDOPERATION_TAGQUOTAEXCEEDLIMIT = "FailedOperation.TagQuotaExceedLimit"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateHourDCDBInstance

func (c *Client) CreateHourDCDBInstance(request *CreateHourDCDBInstanceRequest) (response *CreateHourDCDBInstanceResponse, err error)

CreateHourDCDBInstance This API is used to create a pay-as-you-go TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
FAILEDOPERATION_USERNOTAUTHED = "FailedOperation.UserNotAuthed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INTERNALERROR_RETREATETIME = "InternalError.RetreateTime"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"

func (*Client) CreateHourDCDBInstanceWithContext

func (c *Client) CreateHourDCDBInstanceWithContext(ctx context.Context, request *CreateHourDCDBInstanceRequest) (response *CreateHourDCDBInstanceResponse, err error)

CreateHourDCDBInstance This API is used to create a pay-as-you-go TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_TAGDRYRUNERROR = "FailedOperation.TagDryRunError"
FAILEDOPERATION_USERNOTAUTHED = "FailedOperation.UserNotAuthed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INTERNALERROR_RETREATETIME = "InternalError.RetreateTime"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_CHECKPARAMNOTPASS = "InvalidParameter.CheckParamNotPass"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETER_VPCNOTFOUND = "InvalidParameter.VpcNotFound"
INVALIDPARAMETERVALUE_ILLEGALZONE = "InvalidParameterValue.IllegalZone"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_DBVERSIONNOTSUPPORTED = "UnsupportedOperation.DbVersionNotSupported"

func (*Client) DeleteAccount

func (c *Client) DeleteAccount(request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)

DeleteAccount This API is used to delete a TencentDB account, which is uniquely identified by username and host.

error code that may be returned:

FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DeleteAccountWithContext

func (c *Client) DeleteAccountWithContext(ctx context.Context, request *DeleteAccountRequest) (response *DeleteAccountResponse, err error)

DeleteAccount This API is used to delete a TencentDB account, which is uniquely identified by username and host.

error code that may be returned:

FAILEDOPERATION_DELETEUSERFAILED = "FailedOperation.DeleteUserFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccountPrivileges

func (c *Client) DescribeAccountPrivileges(request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)

DescribeAccountPrivileges This API is used to query the permissions of a TencentDB account.

Note: Accounts with the same username but different hosts are considered as different accounts.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccountPrivilegesWithContext

func (c *Client) DescribeAccountPrivilegesWithContext(ctx context.Context, request *DescribeAccountPrivilegesRequest) (response *DescribeAccountPrivilegesResponse, err error)

DescribeAccountPrivileges This API is used to query the permissions of a TencentDB account.

Note: Accounts with the same username but different hosts are considered as different accounts.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccounts

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

DescribeAccounts This API is used to query the list of accounts of a specified TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccountsWithContext

func (c *Client) DescribeAccountsWithContext(ctx context.Context, request *DescribeAccountsRequest) (response *DescribeAccountsResponse, err error)

DescribeAccounts This API is used to query the list of accounts of a specified TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETUSERLISTFAILED = "InternalError.GetUserListFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeBackupFiles

func (c *Client) DescribeBackupFiles(request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)

DescribeBackupFiles This API is used to query the list of backup files.

error code that may be returned:

UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeBackupFilesWithContext

func (c *Client) DescribeBackupFilesWithContext(ctx context.Context, request *DescribeBackupFilesRequest) (response *DescribeBackupFilesResponse, err error)

DescribeBackupFiles This API is used to query the list of backup files.

error code that may be returned:

UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBEncryptAttributes

func (c *Client) DescribeDBEncryptAttributes(request *DescribeDBEncryptAttributesRequest) (response *DescribeDBEncryptAttributesResponse, err error)

DescribeDBEncryptAttributes This API is used to query the encryption status of the instance data.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR = "InternalError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) DescribeDBEncryptAttributesWithContext

func (c *Client) DescribeDBEncryptAttributesWithContext(ctx context.Context, request *DescribeDBEncryptAttributesRequest) (response *DescribeDBEncryptAttributesResponse, err error)

DescribeDBEncryptAttributes This API is used to query the encryption status of the instance data.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR = "InternalError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) DescribeDBLogFiles

func (c *Client) DescribeDBLogFiles(request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)

DescribeDBLogFiles This API is used to get the list of various logs of a database, including cold backups, binlogs, errlogs, and slowlogs.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration"
INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBLogFilesWithContext

func (c *Client) DescribeDBLogFilesWithContext(ctx context.Context, request *DescribeDBLogFilesRequest) (response *DescribeDBLogFilesResponse, err error)

DescribeDBLogFiles This API is used to get the list of various logs of a database, including cold backups, binlogs, errlogs, and slowlogs.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_COSCONFIGURATION = "InternalError.CosConfiguration"
INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_COSAPIFAILED = "ResourceUnavailable.CosApiFailed"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBParameters

func (c *Client) DescribeDBParameters(request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error)

DescribeDBParameters This API is used to get the current parameter settings of a database.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBParametersWithContext

func (c *Client) DescribeDBParametersWithContext(ctx context.Context, request *DescribeDBParametersRequest) (response *DescribeDBParametersResponse, err error)

DescribeDBParameters This API is used to get the current parameter settings of a database.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSecurityGroups

func (c *Client) DescribeDBSecurityGroups(request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)

DescribeDBSecurityGroups This API is used to query the security group information of an instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSecurityGroupsWithContext

func (c *Client) DescribeDBSecurityGroupsWithContext(ctx context.Context, request *DescribeDBSecurityGroupsRequest) (response *DescribeDBSecurityGroupsResponse, err error)

DescribeDBSecurityGroups This API is used to query the security group information of an instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSlowLogs

func (c *Client) DescribeDBSlowLogs(request *DescribeDBSlowLogsRequest) (response *DescribeDBSlowLogsResponse, err error)

DescribeDBSlowLogs This API is used to query the list of slow query logs.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_GETSLOWLOGFAILED = "InternalError.GetSlowLogFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_ILLEGALTIME = "InvalidParameter.IllegalTime"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSlowLogsWithContext

func (c *Client) DescribeDBSlowLogsWithContext(ctx context.Context, request *DescribeDBSlowLogsRequest) (response *DescribeDBSlowLogsResponse, err error)

DescribeDBSlowLogs This API is used to query the list of slow query logs.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_GETSLOWLOGFAILED = "InternalError.GetSlowLogFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_ILLEGALTIME = "InvalidParameter.IllegalTime"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSyncMode

func (c *Client) DescribeDBSyncMode(request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)

DescribeDBSyncMode This API is used to query the sync mode of a TencentDB instance.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBSyncModeWithContext

func (c *Client) DescribeDBSyncModeWithContext(ctx context.Context, request *DescribeDBSyncModeRequest) (response *DescribeDBSyncModeResponse, err error)

DescribeDBSyncMode This API is used to query the sync mode of a TencentDB instance.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBTmpInstances

func (c *Client) DescribeDBTmpInstances(request *DescribeDBTmpInstancesRequest) (response *DescribeDBTmpInstancesResponse, err error)

DescribeDBTmpInstances This API is used to obtain u200da temp rollback instance.

error code that may be returned:

INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDBTmpInstancesWithContext

func (c *Client) DescribeDBTmpInstancesWithContext(ctx context.Context, request *DescribeDBTmpInstancesRequest) (response *DescribeDBTmpInstancesResponse, err error)

DescribeDBTmpInstances This API is used to obtain u200da temp rollback instance.

error code that may be returned:

INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBInstanceDetail

func (c *Client) DescribeDCDBInstanceDetail(request *DescribeDCDBInstanceDetailRequest) (response *DescribeDCDBInstanceDetailResponse, err error)

DescribeDCDBInstanceDetail This API is used to get the details of a TDSQL instance.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBInstanceDetailWithContext

func (c *Client) DescribeDCDBInstanceDetailWithContext(ctx context.Context, request *DescribeDCDBInstanceDetailRequest) (response *DescribeDCDBInstanceDetailResponse, err error)

DescribeDCDBInstanceDetail This API is used to get the details of a TDSQL instance.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBInstanceNodeInfo

func (c *Client) DescribeDCDBInstanceNodeInfo(request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)

DescribeDCDBInstanceNodeInfo This API is used to query the information of instance nodes.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"

func (*Client) DescribeDCDBInstanceNodeInfoWithContext

func (c *Client) DescribeDCDBInstanceNodeInfoWithContext(ctx context.Context, request *DescribeDCDBInstanceNodeInfoRequest) (response *DescribeDCDBInstanceNodeInfoResponse, err error)

DescribeDCDBInstanceNodeInfo This API is used to query the information of instance nodes.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"

func (*Client) DescribeDCDBInstances

func (c *Client) DescribeDCDBInstances(request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)

DescribeDCDBInstances This API is used to query the list of TencentDB instances. It supports filtering instances by project ID, instance ID, private network address, and instance name.

If no filter is specified, 10 instances will be returned by default. Up to 100 instances can be returned for a single request.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBInstancesWithContext

func (c *Client) DescribeDCDBInstancesWithContext(ctx context.Context, request *DescribeDCDBInstancesRequest) (response *DescribeDCDBInstancesResponse, err error)

DescribeDCDBInstances This API is used to query the list of TencentDB instances. It supports filtering instances by project ID, instance ID, private network address, and instance name.

If no filter is specified, 10 instances will be returned by default. Up to 100 instances can be returned for a single request.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SUBNETNOTFOUND = "InvalidParameter.SubnetNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBPrice

func (c *Client) DescribeDCDBPrice(request *DescribeDCDBPriceRequest) (response *DescribeDCDBPriceResponse, err error)

DescribeDCDBPrice This API is used to query the price of an instance before you purchase it.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBPriceWithContext

func (c *Client) DescribeDCDBPriceWithContext(ctx context.Context, request *DescribeDCDBPriceRequest) (response *DescribeDCDBPriceResponse, err error)

DescribeDCDBPrice This API is used to query the price of an instance before you purchase it.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_QUERYPRICEFAILED = "InternalError.QueryPriceFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_SPECNOTFOUND = "InvalidParameter.SpecNotFound"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBShards

func (c *Client) DescribeDCDBShards(request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)

DescribeDCDBShards This API is used to query the information of shards of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDCDBShardsWithContext

func (c *Client) DescribeDCDBShardsWithContext(ctx context.Context, request *DescribeDCDBShardsRequest) (response *DescribeDCDBShardsResponse, err error)

DescribeDCDBShards This API is used to query the information of shards of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabaseObjects

func (c *Client) DescribeDatabaseObjects(request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)

DescribeDatabaseObjects This API is used to query the list of database objects in a TencentDB instance, including tables, stored procedures, views, and functions.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabaseObjectsWithContext

func (c *Client) DescribeDatabaseObjectsWithContext(ctx context.Context, request *DescribeDatabaseObjectsRequest) (response *DescribeDatabaseObjectsResponse, err error)

DescribeDatabaseObjects This API is used to query the list of database objects in a TencentDB instance, including tables, stored procedures, views, and functions.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBOBJECTFAILED = "InternalError.GetDbObjectFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabaseTable

func (c *Client) DescribeDatabaseTable(request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)

DescribeDatabaseTable This API is used to query the table information of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabaseTableWithContext

func (c *Client) DescribeDatabaseTableWithContext(ctx context.Context, request *DescribeDatabaseTableRequest) (response *DescribeDatabaseTableResponse, err error)

DescribeDatabaseTable This API is used to query the table information of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETTABLEINFOFAILED = "InternalError.GetTableInfoFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabases

func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)

DescribeDatabases This API is used to query the database list of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDatabasesWithContext

func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)

DescribeDatabases This API is used to query the database list of a TencentDB instance.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBLISTFAILED = "InternalError.GetDbListFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDcnDetail

func (c *Client) DescribeDcnDetail(request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)

DescribeDcnDetail This API is used to query the disaster recovery details of an instance.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeDcnDetailWithContext

func (c *Client) DescribeDcnDetailWithContext(ctx context.Context, request *DescribeDcnDetailRequest) (response *DescribeDcnDetailResponse, err error)

DescribeDcnDetail This API is used to query the disaster recovery details of an instance.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeFileDownloadUrl

func (c *Client) DescribeFileDownloadUrl(request *DescribeFileDownloadUrlRequest) (response *DescribeFileDownloadUrlResponse, err error)

DescribeFileDownloadUrl This API is used to get the download URL of a specific backup or log file of a database.

error code that may be returned:

INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) DescribeFileDownloadUrlWithContext

func (c *Client) DescribeFileDownloadUrlWithContext(ctx context.Context, request *DescribeFileDownloadUrlRequest) (response *DescribeFileDownloadUrlResponse, err error)

DescribeFileDownloadUrl This API is used to get the download URL of a specific backup or log file of a database.

error code that may be returned:

INTERNALERROR_COSSIGNURL = "InternalError.CosSignUrl"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) DescribeFlow

func (c *Client) DescribeFlow(request *DescribeFlowRequest) (response *DescribeFlowResponse, err error)

DescribeFlow This API is used to query task status.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeFlowWithContext

func (c *Client) DescribeFlowWithContext(ctx context.Context, request *DescribeFlowRequest) (response *DescribeFlowResponse, err error)

DescribeFlow This API is used to query task status.

error code that may be returned:

INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_FLOWNOTFOUND = "InvalidParameter.FlowNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeLogFileRetentionPeriod

func (c *Client) DescribeLogFileRetentionPeriod(request *DescribeLogFileRetentionPeriodRequest) (response *DescribeLogFileRetentionPeriodResponse, err error)

DescribeLogFileRetentionPeriod This API is used to view the backup log retention days.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeLogFileRetentionPeriodWithContext

func (c *Client) DescribeLogFileRetentionPeriodWithContext(ctx context.Context, request *DescribeLogFileRetentionPeriodRequest) (response *DescribeLogFileRetentionPeriodResponse, err error)

DescribeLogFileRetentionPeriod This API is used to view the backup log retention days.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeOrders

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

DescribeOrders This API is used to query TDSQL order information. You can pass in an order ID to query the TDSQL instance associated with the order and the corresponding task process ID.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_QUERYORDERFAILED = "InternalError.QueryOrderFailed"
INVALIDPARAMETER_DEALNAMENOTGIVEN = "InvalidParameter.DealNameNotGiven"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeOrdersWithContext

func (c *Client) DescribeOrdersWithContext(ctx context.Context, request *DescribeOrdersRequest) (response *DescribeOrdersResponse, err error)

DescribeOrders This API is used to query TDSQL order information. You can pass in an order ID to query the TDSQL instance associated with the order and the corresponding task process ID.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_QUERYORDERFAILED = "InternalError.QueryOrderFailed"
INVALIDPARAMETER_DEALNAMENOTGIVEN = "InvalidParameter.DealNameNotGiven"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeProjectSecurityGroups

func (c *Client) DescribeProjectSecurityGroups(request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)

DescribeProjectSecurityGroups This API is used to query the security group details of a project.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

func (*Client) DescribeProjectSecurityGroupsWithContext

func (c *Client) DescribeProjectSecurityGroupsWithContext(ctx context.Context, request *DescribeProjectSecurityGroupsRequest) (response *DescribeProjectSecurityGroupsResponse, err error)

DescribeProjectSecurityGroups This API is used to query the security group details of a project.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = "FailedOperation.GetSecurityGroupDetailFailed"
INTERNALERROR_GETUSERSGCOUNTFAILED = "InternalError.GetUserSGCountFailed"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"

func (*Client) DestroyDCDBInstance

func (c *Client) DestroyDCDBInstance(request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)

DestroyDCDBInstance This API is used to terminate an isolated monthly subscribed TDSQL instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DestroyDCDBInstanceWithContext

func (c *Client) DestroyDCDBInstanceWithContext(ctx context.Context, request *DestroyDCDBInstanceRequest) (response *DestroyDCDBInstanceResponse, err error)

DestroyDCDBInstance This API is used to terminate an isolated monthly subscribed TDSQL instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DestroyHourDCDBInstance

func (c *Client) DestroyHourDCDBInstance(request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)

DestroyHourDCDBInstance This API is used to terminate a pay-as-you-go TDSQL instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DestroyHourDCDBInstanceWithContext

func (c *Client) DestroyHourDCDBInstanceWithContext(ctx context.Context, request *DestroyHourDCDBInstanceRequest) (response *DestroyHourDCDBInstanceResponse, err error)

DestroyHourDCDBInstance This API is used to terminate a pay-as-you-go TDSQL instance.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DisassociateSecurityGroups

func (c *Client) DisassociateSecurityGroups(request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)

DisassociateSecurityGroups This API is used to unassociate security groups from instances in batches.

error code that may be returned:

FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DisassociateSecurityGroupsWithContext

func (c *Client) DisassociateSecurityGroupsWithContext(ctx context.Context, request *DisassociateSecurityGroupsRequest) (response *DisassociateSecurityGroupsResponse, err error)

DisassociateSecurityGroups This API is used to unassociate security groups from instances in batches.

error code that may be returned:

FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_ASSOCIATESECURITYGROUPSFAILED = "FailedOperation.AssociateSecurityGroupsFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_ROUTENOTFOUND = "InternalError.RouteNotFound"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) GrantAccountPrivileges

func (c *Client) GrantAccountPrivileges(request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)

GrantAccountPrivileges This API is used to grant permissions to a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) GrantAccountPrivilegesWithContext

func (c *Client) GrantAccountPrivilegesWithContext(ctx context.Context, request *GrantAccountPrivilegesRequest) (response *GrantAccountPrivilegesResponse, err error)

GrantAccountPrivileges This API is used to grant permissions to a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_MODIFYRIGHTFAILED = "FailedOperation.ModifyRightFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETRIGHTFAILED = "InternalError.GetRightFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
INVALIDPARAMETERVALUE_ILLEGALRIGHTPARAM = "InvalidParameterValue.IllegalRightParam"
INVALIDPARAMETERVALUE_SUPERUSERFORBIDDEN = "InvalidParameterValue.SuperUserForbidden"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) InitDCDBInstances

func (c *Client) InitDCDBInstances(request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)

InitDCDBInstances This API is used to initialize instances, including setting the default character set and table name case sensitivity.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam"
INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) InitDCDBInstancesWithContext

func (c *Client) InitDCDBInstancesWithContext(ctx context.Context, request *InitDCDBInstancesRequest) (response *InitDCDBInstancesResponse, err error)

InitDCDBInstances This API is used to initialize instances, including setting the default character set and table name case sensitivity.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETERVALUE_ILLEGALINITPARAM = "InvalidParameterValue.IllegalInitParam"
INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) IsolateDCDBInstance

func (c *Client) IsolateDCDBInstance(request *IsolateDCDBInstanceRequest) (response *IsolateDCDBInstanceResponse, err error)

IsolateDCDBInstance This API is used to isolate a monthly subscribed TDSQL instance, which will no longer be accessible via IP and port. The isolated instance can be started up in the recycle bin. If it is isolated due to overdue payments, top up your account as soon as possible.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_INSTANCECANNOTRETURN = "FailedOperation.InstanceCanNotReturn"
FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) IsolateDCDBInstanceWithContext

func (c *Client) IsolateDCDBInstanceWithContext(ctx context.Context, request *IsolateDCDBInstanceRequest) (response *IsolateDCDBInstanceResponse, err error)

IsolateDCDBInstance This API is used to isolate a monthly subscribed TDSQL instance, which will no longer be accessible via IP and port. The isolated instance can be started up in the recycle bin. If it is isolated due to overdue payments, top up your account as soon as possible.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
FAILEDOPERATION_INSTANCECANNOTRETURN = "FailedOperation.InstanceCanNotReturn"
FAILEDOPERATION_INSTANCERETURNFAILED = "FailedOperation.InstanceReturnFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) IsolateDedicatedDBInstance

func (c *Client) IsolateDedicatedDBInstance(request *IsolateDedicatedDBInstanceRequest) (response *IsolateDedicatedDBInstanceResponse, err error)

IsolateDedicatedDBInstance This API is used to isolate a dedicated TencentDB instance.

error code that may be returned:

FAILEDOPERATION_OSSISOLATEINSTANCEFAILED = "FailedOperation.OssIsolateInstanceFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) IsolateDedicatedDBInstanceWithContext

func (c *Client) IsolateDedicatedDBInstanceWithContext(ctx context.Context, request *IsolateDedicatedDBInstanceRequest) (response *IsolateDedicatedDBInstanceResponse, err error)

IsolateDedicatedDBInstance This API is used to isolate a dedicated TencentDB instance.

error code that may be returned:

FAILEDOPERATION_OSSISOLATEINSTANCEFAILED = "FailedOperation.OssIsolateInstanceFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) IsolateHourDCDBInstance

func (c *Client) IsolateHourDCDBInstance(request *IsolateHourDCDBInstanceRequest) (response *IsolateHourDCDBInstanceResponse, err error)

IsolateHourDCDBInstance This API is used to isolate a pay-as-you-go TDSQL instance.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) IsolateHourDCDBInstanceWithContext

func (c *Client) IsolateHourDCDBInstanceWithContext(ctx context.Context, request *IsolateHourDCDBInstanceRequest) (response *IsolateHourDCDBInstanceResponse, err error)

IsolateHourDCDBInstance This API is used to isolate a pay-as-you-go TDSQL instance.

error code that may be returned:

INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) KillSession

func (c *Client) KillSession(request *KillSessionRequest) (response *KillSessionResponse, err error)

KillSession This API is used to kill the specified session.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) KillSessionWithContext

func (c *Client) KillSessionWithContext(ctx context.Context, request *KillSessionRequest) (response *KillSessionResponse, err error)

KillSession This API is used to kill the specified session.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountConfig

func (c *Client) ModifyAccountConfig(request *ModifyAccountConfigRequest) (response *ModifyAccountConfigResponse, err error)

ModifyAccountConfig This API is used to modify the configurations of an account, such as `max_user_connections`.

error code that may be returned:

FAILEDOPERATION_MODIFYUSERCONFIGFAILED = "FailedOperation.ModifyUserConfigFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountConfigWithContext

func (c *Client) ModifyAccountConfigWithContext(ctx context.Context, request *ModifyAccountConfigRequest) (response *ModifyAccountConfigResponse, err error)

ModifyAccountConfig This API is used to modify the configurations of an account, such as `max_user_connections`.

error code that may be returned:

FAILEDOPERATION_MODIFYUSERCONFIGFAILED = "FailedOperation.ModifyUserConfigFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountDescription

func (c *Client) ModifyAccountDescription(request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)

ModifyAccountDescription This API is used to modify the remarks of a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountDescriptionWithContext

func (c *Client) ModifyAccountDescriptionWithContext(ctx context.Context, request *ModifyAccountDescriptionRequest) (response *ModifyAccountDescriptionResponse, err error)

ModifyAccountDescription This API is used to modify the remarks of a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCENOTFOUND_ACCOUNTDOESNOTEXIST = "ResourceNotFound.AccountDoesNotExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountPrivileges

func (c *Client) ModifyAccountPrivileges(request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)

ModifyAccountPrivileges This API is used to modify the permissions of a TencentDB instance account. \n\n**Note**\n-Only the SELECT permission (that is, set the permission parameter to `["SELECT"]`) of the system database `mysql` can be granted. An error will be reported if read-write permissions are granted to a read-only account. If the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted view permissions, set `Privileges` to an empty array.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountPrivilegesWithContext

func (c *Client) ModifyAccountPrivilegesWithContext(ctx context.Context, request *ModifyAccountPrivilegesRequest) (response *ModifyAccountPrivilegesResponse, err error)

ModifyAccountPrivileges This API is used to modify the permissions of a TencentDB instance account. \n\n**Note**\n-Only the SELECT permission (that is, set the permission parameter to `["SELECT"]`) of the system database `mysql` can be granted. An error will be reported if read-write permissions are granted to a read-only account. If the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted view permissions, set `Privileges` to an empty array.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETERVALUE_BADUSERRIGHT = "InvalidParameterValue.BadUserRight"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBEncryptAttributes

func (c *Client) ModifyDBEncryptAttributes(request *ModifyDBEncryptAttributesRequest) (response *ModifyDBEncryptAttributesResponse, err error)

ModifyDBEncryptAttributes This API is used to modify the instance data encryption.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) ModifyDBEncryptAttributesWithContext

func (c *Client) ModifyDBEncryptAttributesWithContext(ctx context.Context, request *ModifyDBEncryptAttributesRequest) (response *ModifyDBEncryptAttributesResponse, err error)

ModifyDBEncryptAttributes This API is used to modify the instance data encryption.

error code that may be returned:

FAILEDOPERATION_OSSOPERATIONFAILED = "FailedOperation.OssOperationFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER = "InvalidParameter"
RESOURCEUNAVAILABLE_BADINSTANCESTATUS = "ResourceUnavailable.BadInstanceStatus"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) ModifyDBInstanceName

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

ModifyDBInstanceName This API is used to modify instance name.

error code that may be returned:

INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBInstanceNameWithContext

func (c *Client) ModifyDBInstanceNameWithContext(ctx context.Context, request *ModifyDBInstanceNameRequest) (response *ModifyDBInstanceNameResponse, err error)

ModifyDBInstanceName This API is used to modify instance name.

error code that may be returned:

INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBInstanceSecurityGroups

func (c *Client) ModifyDBInstanceSecurityGroups(request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)

ModifyDBInstanceSecurityGroups This API is used to modify the security groups associated with TencentDB.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBInstanceSecurityGroupsWithContext

func (c *Client) ModifyDBInstanceSecurityGroupsWithContext(ctx context.Context, request *ModifyDBInstanceSecurityGroupsRequest) (response *ModifyDBInstanceSecurityGroupsResponse, err error)

ModifyDBInstanceSecurityGroups This API is used to modify the security groups associated with TencentDB.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_ADDINSTANCEINFOFAILED = "FailedOperation.AddInstanceInfoFailed"
FAILEDOPERATION_AUTHNOSTRATEGY = "FailedOperation.AuthNoStrategy"
FAILEDOPERATION_CLEARINSTANCEINFOFAILED = "FailedOperation.ClearInstanceInfoFailed"
FAILEDOPERATION_DISASSOCIATESECURITYGROUPSFAILED = "FailedOperation.DisassociateSecurityGroupsFailed"
FAILEDOPERATION_SETRULELOCATIONFAILED = "FailedOperation.SetRuleLocationFailed"
FAILEDOPERATION_UPDATEINSTANCEINFOFAILED = "FailedOperation.UpdateInstanceInfoFailed"
INTERNALERROR_GETSECURITYGROUPDETAILFAILED = "InternalError.GetSecurityGroupDetailFailed"
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = "InternalError.InstanceOperatePermissionError"
INTERNALERROR_INSTANCESGOVERLIMITERROR = "InternalError.InstanceSGOverLimitError"
INTERNALERROR_LISTINSTANCERESPRESOURCECOUNTNOTMATCHERROR = "InternalError.ListInstanceRespResourceCountNotMatchError"
INTERNALERROR_LISTINSTANCESERROR = "InternalError.ListInstancesError"
INTERNALERROR_QUERYDATABASEFAILED = "InternalError.QueryDatabaseFailed"
INTERNALERROR_READDATABASEFAILED = "InternalError.ReadDatabaseFailed"
INTERNALERROR_SETSVCLOCATIONFAILED = "InternalError.SetSvcLocationFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_ILLEGALPARAMETERERROR = "InvalidParameter.IllegalParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_PERMISSIONDENIED = "InvalidParameter.PermissionDenied"
RESOURCENOTFOUND_PRODUCTCONFIGNOTEXISTEDERROR = "ResourceNotFound.ProductConfigNotExistedError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
RESOURCEUNAVAILABLE_SGCHECKFAIL = "ResourceUnavailable.SGCheckFail"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBInstancesProject

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

ModifyDBInstancesProject This API is used to modify the project to which TencentDB instances belong.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBInstancesProjectWithContext

func (c *Client) ModifyDBInstancesProjectWithContext(ctx context.Context, request *ModifyDBInstancesProjectRequest) (response *ModifyDBInstancesProjectResponse, err error)

ModifyDBInstancesProject This API is used to modify the project to which TencentDB instances belong.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBParameters

func (c *Client) ModifyDBParameters(request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)

ModifyDBParameters This API is used to modify database parameters.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBParametersWithContext

func (c *Client) ModifyDBParametersWithContext(ctx context.Context, request *ModifyDBParametersRequest) (response *ModifyDBParametersResponse, err error)

ModifyDBParameters This API is used to modify database parameters.

error code that may be returned:

INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETDBCONFIGFAILED = "InternalError.GetDbConfigFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyDBSyncMode

func (c *Client) ModifyDBSyncMode(request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)

ModifyDBSyncMode This API is used to modify the sync mode of a TencentDB instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode"
INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) ModifyDBSyncModeWithContext

func (c *Client) ModifyDBSyncModeWithContext(ctx context.Context, request *ModifyDBSyncModeRequest) (response *ModifyDBSyncModeResponse, err error)

ModifyDBSyncMode This API is used to modify the sync mode of a TencentDB instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_GETINSTANCEINFOFAILED = "InternalError.GetInstanceInfoFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_BADSYNCMODE = "InvalidParameterValue.BadSyncMode"
INVALIDPARAMETERVALUE_SYNCMODENOTALLOWED = "InvalidParameterValue.SyncModeNotAllowed"
RESOURCENOTFOUND_NOINSTANCEFOUND = "ResourceNotFound.NoInstanceFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) ModifyInstanceNetwork

func (c *Client) ModifyInstanceNetwork(request *ModifyInstanceNetworkRequest) (response *ModifyInstanceNetworkResponse, err error)

ModifyInstanceNetwork This API is used to modify instance network.

error code that may be returned:

FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
FAILEDOPERATION_WANSTATUSABNORMAL = "FailedOperation.WanStatusAbnormal"
INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_VPCOPERATIONFAILED = "InternalError.VpcOperationFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyInstanceNetworkWithContext

func (c *Client) ModifyInstanceNetworkWithContext(ctx context.Context, request *ModifyInstanceNetworkRequest) (response *ModifyInstanceNetworkResponse, err error)

ModifyInstanceNetwork This API is used to modify instance network.

error code that may be returned:

FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
FAILEDOPERATION_WANSTATUSABNORMAL = "FailedOperation.WanStatusAbnormal"
INTERNALERROR_CHECKVIPSTATUSFAILED = "InternalError.CheckVipStatusFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETSUBNETFAILED = "InternalError.GetSubnetFailed"
INTERNALERROR_GETVPCFAILED = "InternalError.GetVpcFailed"
INTERNALERROR_VPCOPERATIONFAILED = "InternalError.VpcOperationFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_SUBNETUNAVAILABLE = "InvalidParameter.SubnetUnavailable"
INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyInstanceVip

func (c *Client) ModifyInstanceVip(request *ModifyInstanceVipRequest) (response *ModifyInstanceVipResponse, err error)

ModifyInstanceVip This API is used to modify instance VIP.

error code that may be returned:

FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
FAILEDOPERATION_VIPNOTCHANGE = "FailedOperation.VipNotChange"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyInstanceVipWithContext

func (c *Client) ModifyInstanceVipWithContext(ctx context.Context, request *ModifyInstanceVipRequest) (response *ModifyInstanceVipResponse, err error)

ModifyInstanceVip This API is used to modify instance VIP.

error code that may be returned:

FAILEDOPERATION_APPLYVIPFAILED = "FailedOperation.ApplyVipFailed"
FAILEDOPERATION_VIPNOTCHANGE = "FailedOperation.VipNotChange"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_VIPNOTINSUBNET = "InvalidParameter.VipNotInSubnet"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyInstanceVport

func (c *Client) ModifyInstanceVport(request *ModifyInstanceVportRequest) (response *ModifyInstanceVportResponse, err error)

ModifyInstanceVport This API is used to modify instance Vport.

error code that may be returned:

FAILEDOPERATION_SGCHANGEVIP = "FailedOperation.SGChangeVip"
FAILEDOPERATION_VPCADDSERVICEFAILED = "FailedOperation.VpcAddServiceFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
INVALIDPARAMETER_VPORTUSED = "InvalidParameter.VportUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyInstanceVportWithContext

func (c *Client) ModifyInstanceVportWithContext(ctx context.Context, request *ModifyInstanceVportRequest) (response *ModifyInstanceVportResponse, err error)

ModifyInstanceVport This API is used to modify instance Vport.

error code that may be returned:

FAILEDOPERATION_SGCHANGEVIP = "FailedOperation.SGChangeVip"
FAILEDOPERATION_VPCADDSERVICEFAILED = "FailedOperation.VpcAddServiceFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_INNERSYSTEMERROR = "InternalError.InnerSystemError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_VIPUSED = "InvalidParameter.VipUsed"
INVALIDPARAMETER_VPORTUSED = "InvalidParameter.VportUsed"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ResetAccountPassword

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

ResetAccountPassword This API is used to reset the password of a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ResetAccountPasswordWithContext

func (c *Client) ResetAccountPasswordWithContext(ctx context.Context, request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error)

ResetAccountPassword This API is used to reset the password of a TencentDB account.

Note: accounts with the same username but different hosts are different accounts.

error code that may be returned:

FAILEDOPERATION_RESETPASSWORDFAILED = "FailedOperation.ResetPasswordFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INVALIDPARAMETER_CHARACTERERROR = "InvalidParameter.CharacterError"
INVALIDPARAMETER_GENERICPARAMETERERROR = "InvalidParameter.GenericParameterError"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCEHASBEENLOCKED = "ResourceUnavailable.InstanceHasBeenLocked"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) SwitchDBInstanceHA

func (c *Client) SwitchDBInstanceHA(request *SwitchDBInstanceHARequest) (response *SwitchDBInstanceHAResponse, err error)

SwitchDBInstanceHA This API is used to start a source-replica switch of instances.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_ZONEIDILLEGAL = "InvalidParameter.ZoneIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) SwitchDBInstanceHAWithContext

func (c *Client) SwitchDBInstanceHAWithContext(ctx context.Context, request *SwitchDBInstanceHARequest) (response *SwitchDBInstanceHAResponse, err error)

SwitchDBInstanceHA This API is used to start a source-replica switch of instances.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_DBOPERATIONFAILED = "InternalError.DbOperationFailed"
INTERNALERROR_GETINSTANCEDETAILFAILED = "InternalError.GetInstanceDetailFailed"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_ZONEIDILLEGAL = "InvalidParameter.ZoneIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) TerminateDedicatedDBInstance

func (c *Client) TerminateDedicatedDBInstance(request *TerminateDedicatedDBInstanceRequest) (response *TerminateDedicatedDBInstanceResponse, err error)

TerminateDedicatedDBInstance This API is used to terminate the isolated dedicated TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) TerminateDedicatedDBInstanceWithContext

func (c *Client) TerminateDedicatedDBInstanceWithContext(ctx context.Context, request *TerminateDedicatedDBInstanceRequest) (response *TerminateDedicatedDBInstanceResponse, err error)

TerminateDedicatedDBInstance This API is used to terminate the isolated dedicated TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEFLOWFAILED = "FailedOperation.CreateFlowFailed"
INTERNALERROR_CAMAUTHFAILED = "InternalError.CamAuthFailed"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCEALREADYDELETED = "ResourceUnavailable.InstanceAlreadyDeleted"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) UpgradeDedicatedDCDBInstance

func (c *Client) UpgradeDedicatedDCDBInstance(request *UpgradeDedicatedDCDBInstanceRequest) (response *UpgradeDedicatedDCDBInstanceResponse, err error)

UpgradeDedicatedDCDBInstance This API is used to u200dupgrade a dedicated TDSQL cluster instance.

error code that may be returned:

INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) UpgradeDedicatedDCDBInstanceWithContext

func (c *Client) UpgradeDedicatedDCDBInstanceWithContext(ctx context.Context, request *UpgradeDedicatedDCDBInstanceRequest) (response *UpgradeDedicatedDCDBInstanceResponse, err error)

UpgradeDedicatedDCDBInstance This API is used to u200dupgrade a dedicated TDSQL cluster instance.

error code that may be returned:

INTERNALERROR_FENCEERROR = "InternalError.FenceError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETERVALUE_ILLEGALEXCLUSTERID = "InvalidParameterValue.IllegalExclusterID"
RESOURCEUNAVAILABLE_EXCLUSTERSTATUSABNORMAL = "ResourceUnavailable.ExclusterStatusAbnormal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNSUPPORTEDOPERATION_INVALIDOPERATION = "UnsupportedOperation.InvalidOperation"

func (*Client) UpgradeHourDCDBInstance

func (c *Client) UpgradeHourDCDBInstance(request *UpgradeHourDCDBInstanceRequest) (response *UpgradeHourDCDBInstanceResponse, err error)

UpgradeHourDCDBInstance This API is used to upgrade a pay-as-you-go TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
INTERNALERROR_CREATEFLOWERROR = "InternalError.CreateFlowError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) UpgradeHourDCDBInstanceWithContext

func (c *Client) UpgradeHourDCDBInstanceWithContext(ctx context.Context, request *UpgradeHourDCDBInstanceRequest) (response *UpgradeHourDCDBInstanceResponse, err error)

UpgradeHourDCDBInstance This API is used to upgrade a pay-as-you-go TDSQL instance.

error code that may be returned:

FAILEDOPERATION_CREATEORDERFAILED = "FailedOperation.CreateOrderFailed"
INTERNALERROR_CREATEFLOWERROR = "InternalError.CreateFlowError"
INTERNALERROR_OPERATEDATABASEFAILED = "InternalError.OperateDatabaseFailed"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_INSTANCENOTFOUND = "InvalidParameter.InstanceNotFound"
INVALIDPARAMETER_NOTSUPPORTEDPAYMODE = "InvalidParameter.NotSupportedPayMode"
INVALIDPARAMETERVALUE_SPECIDILLEGAL = "InvalidParameterValue.SpecIdIllegal"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

type CloneAccountRequest

type CloneAccountRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Source user account name
	SrcUser *string `json:"SrcUser,omitnil" name:"SrcUser"`

	// Source user host
	SrcHost *string `json:"SrcHost,omitnil" name:"SrcHost"`

	// Target user account name
	DstUser *string `json:"DstUser,omitnil" name:"DstUser"`

	// Target user host
	DstHost *string `json:"DstHost,omitnil" name:"DstHost"`

	// Target account description
	DstDesc *string `json:"DstDesc,omitnil" name:"DstDesc"`
}

func NewCloneAccountRequest

func NewCloneAccountRequest() (request *CloneAccountRequest)

func (*CloneAccountRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CloneAccountRequest) ToJsonString

func (r *CloneAccountRequest) ToJsonString() string

type CloneAccountRequestParams

type CloneAccountRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Source user account name
	SrcUser *string `json:"SrcUser,omitnil" name:"SrcUser"`

	// Source user host
	SrcHost *string `json:"SrcHost,omitnil" name:"SrcHost"`

	// Target user account name
	DstUser *string `json:"DstUser,omitnil" name:"DstUser"`

	// Target user host
	DstHost *string `json:"DstHost,omitnil" name:"DstHost"`

	// Target account description
	DstDesc *string `json:"DstDesc,omitnil" name:"DstDesc"`
}

Predefined struct for user

type CloneAccountResponse

type CloneAccountResponse struct {
	*tchttp.BaseResponse
	Response *CloneAccountResponseParams `json:"Response"`
}

func NewCloneAccountResponse

func NewCloneAccountResponse() (response *CloneAccountResponse)

func (*CloneAccountResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CloneAccountResponse) ToJsonString

func (r *CloneAccountResponse) ToJsonString() string

type CloneAccountResponseParams

type CloneAccountResponseParams struct {
	// Async task flow ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CloseDBExtranetAccessRequest

type CloseDBExtranetAccessRequest struct {
	*tchttp.BaseRequest

	// ID of an instance for which to disable public network access. The ID is in the format of dcdbt-ow728lmc and can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Whether IPv6 is used. Default value: 0
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`
}

func NewCloseDBExtranetAccessRequest

func NewCloseDBExtranetAccessRequest() (request *CloseDBExtranetAccessRequest)

func (*CloseDBExtranetAccessRequest) FromJsonString

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

FromJsonString 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 CloseDBExtranetAccessRequestParams

type CloseDBExtranetAccessRequestParams struct {
	// ID of an instance for which to disable public network access. The ID is in the format of dcdbt-ow728lmc and can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Whether IPv6 is used. Default value: 0
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`
}

Predefined struct for user

type CloseDBExtranetAccessResponse

type CloseDBExtranetAccessResponse struct {
	*tchttp.BaseResponse
	Response *CloseDBExtranetAccessResponseParams `json:"Response"`
}

func NewCloseDBExtranetAccessResponse

func NewCloseDBExtranetAccessResponse() (response *CloseDBExtranetAccessResponse)

func (*CloseDBExtranetAccessResponse) FromJsonString

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

FromJsonString 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 CloseDBExtranetAccessResponseParams

type CloseDBExtranetAccessResponseParams struct {
	// Async task ID. The task status can be queried through the `DescribeFlow` API.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ColumnPrivilege

type ColumnPrivilege struct {
	// Database name
	Database *string `json:"Database,omitnil" name:"Database"`

	// Table name
	Table *string `json:"Table,omitnil" name:"Table"`

	// Column name
	Column *string `json:"Column,omitnil" name:"Column"`

	// Permission information
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`
}

type ConfigValue

type ConfigValue struct {
	// Configuration name, which supports `max_user_connections`.
	Config *string `json:"Config,omitnil" name:"Config"`

	// Configuration value
	Value *string `json:"Value,omitnil" name:"Value"`
}

type ConstraintRange

type ConstraintRange struct {
	// Minimum value when the constraint type is `section`
	Min *string `json:"Min,omitnil" name:"Min"`

	// Maximum value when the constraint type is `section`
	Max *string `json:"Max,omitnil" name:"Max"`
}

type CopyAccountPrivilegesRequest

type CopyAccountPrivilegesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Source username
	SrcUserName *string `json:"SrcUserName,omitnil" name:"SrcUserName"`

	// Access host allowed for a source user
	SrcHost *string `json:"SrcHost,omitnil" name:"SrcHost"`

	// Target username
	DstUserName *string `json:"DstUserName,omitnil" name:"DstUserName"`

	// Access host allowed for a target user
	DstHost *string `json:"DstHost,omitnil" name:"DstHost"`

	// `ReadOnly` attribute of a source account
	SrcReadOnly *string `json:"SrcReadOnly,omitnil" name:"SrcReadOnly"`

	// `ReadOnly` attribute of a target account
	DstReadOnly *string `json:"DstReadOnly,omitnil" name:"DstReadOnly"`
}

func NewCopyAccountPrivilegesRequest

func NewCopyAccountPrivilegesRequest() (request *CopyAccountPrivilegesRequest)

func (*CopyAccountPrivilegesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyAccountPrivilegesRequest) ToJsonString

func (r *CopyAccountPrivilegesRequest) ToJsonString() string

type CopyAccountPrivilegesRequestParams

type CopyAccountPrivilegesRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Source username
	SrcUserName *string `json:"SrcUserName,omitnil" name:"SrcUserName"`

	// Access host allowed for a source user
	SrcHost *string `json:"SrcHost,omitnil" name:"SrcHost"`

	// Target username
	DstUserName *string `json:"DstUserName,omitnil" name:"DstUserName"`

	// Access host allowed for a target user
	DstHost *string `json:"DstHost,omitnil" name:"DstHost"`

	// `ReadOnly` attribute of a source account
	SrcReadOnly *string `json:"SrcReadOnly,omitnil" name:"SrcReadOnly"`

	// `ReadOnly` attribute of a target account
	DstReadOnly *string `json:"DstReadOnly,omitnil" name:"DstReadOnly"`
}

Predefined struct for user

type CopyAccountPrivilegesResponse

type CopyAccountPrivilegesResponse struct {
	*tchttp.BaseResponse
	Response *CopyAccountPrivilegesResponseParams `json:"Response"`
}

func NewCopyAccountPrivilegesResponse

func NewCopyAccountPrivilegesResponse() (response *CopyAccountPrivilegesResponse)

func (*CopyAccountPrivilegesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyAccountPrivilegesResponse) ToJsonString

func (r *CopyAccountPrivilegesResponse) ToJsonString() string

type CopyAccountPrivilegesResponseParams

type CopyAccountPrivilegesResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CreateAccountRequest

type CreateAccountRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// AccountName
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Account password. It must contain 8-32 characters in all of the following four types: lowercase letters, uppercase letters, digits, and symbols (()~!@#$%^&*-+=_|{}[]:<>,.?/), and cannot start with a slash (/).
	Password *string `json:"Password,omitnil" name:"Password"`

	// Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the secondary will be used first, and if it is unavailable, the primary will be used; 2: the secondary will be used first, and if it is unavailable, the operation will fail; 3: only the secondary will be read from.
	ReadOnly *int64 `json:"ReadOnly,omitnil" name:"ReadOnly"`

	// Account remarks, which can contain 0-256 letters, digits, and common symbols.
	Description *string `json:"Description,omitnil" name:"Description"`

	// If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed.
	// It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2.
	DelayThresh *int64 `json:"DelayThresh,omitnil" name:"DelayThresh"`

	// Whether to specify a replica server for read-only account. Valid values: `0` (No replica server is specified, which means that the proxy will select another available replica server to keep connection with the client if the current replica server doesn’t meet the requirement). `1` (The replica server is specified, which means that the connection will be disconnected if the specified replica server doesn’t meet the requirement.)
	SlaveConst *int64 `json:"SlaveConst,omitnil" name:"SlaveConst"`

	// Maximum number of connections. If left empty or `0` is passed in, the connections will be unlimited. This parameter configuration is not supported for kernel version 10.1.
	MaxUserConnections *uint64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"`
}

func NewCreateAccountRequest

func NewCreateAccountRequest() (request *CreateAccountRequest)

func (*CreateAccountRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateAccountRequest) ToJsonString

func (r *CreateAccountRequest) ToJsonString() string

type CreateAccountRequestParams

type CreateAccountRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// AccountName
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Host that can be logged in to, which is in the same format as the host of the MySQL account and supports wildcards, such as %, 10.%, and 10.20.%.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Account password. It must contain 8-32 characters in all of the following four types: lowercase letters, uppercase letters, digits, and symbols (()~!@#$%^&*-+=_|{}[]:<>,.?/), and cannot start with a slash (/).
	Password *string `json:"Password,omitnil" name:"Password"`

	// Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the secondary will be used first, and if it is unavailable, the primary will be used; 2: the secondary will be used first, and if it is unavailable, the operation will fail; 3: only the secondary will be read from.
	ReadOnly *int64 `json:"ReadOnly,omitnil" name:"ReadOnly"`

	// Account remarks, which can contain 0-256 letters, digits, and common symbols.
	Description *string `json:"Description,omitnil" name:"Description"`

	// If the secondary delay exceeds the set value of this parameter, the secondary will be deemed to have failed.
	// It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2.
	DelayThresh *int64 `json:"DelayThresh,omitnil" name:"DelayThresh"`

	// Whether to specify a replica server for read-only account. Valid values: `0` (No replica server is specified, which means that the proxy will select another available replica server to keep connection with the client if the current replica server doesn’t meet the requirement). `1` (The replica server is specified, which means that the connection will be disconnected if the specified replica server doesn’t meet the requirement.)
	SlaveConst *int64 `json:"SlaveConst,omitnil" name:"SlaveConst"`

	// Maximum number of connections. If left empty or `0` is passed in, the connections will be unlimited. This parameter configuration is not supported for kernel version 10.1.
	MaxUserConnections *uint64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"`
}

Predefined struct for user

type CreateAccountResponse

type CreateAccountResponse struct {
	*tchttp.BaseResponse
	Response *CreateAccountResponseParams `json:"Response"`
}

func NewCreateAccountResponse

func NewCreateAccountResponse() (response *CreateAccountResponse)

func (*CreateAccountResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateAccountResponse) ToJsonString

func (r *CreateAccountResponse) ToJsonString() string

type CreateAccountResponseParams

type CreateAccountResponseParams struct {
	// Instance ID, which is passed through from the input parameters.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Username, which is passed through from the input parameters.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Host allowed for access, which is passed through from the input parameters.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Passed through from the input parameters.
	ReadOnly *int64 `json:"ReadOnly,omitnil" name:"ReadOnly"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CreateDCDBInstanceRequest

type CreateDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// AZs to deploy shard nodes. You can specify up to two AZs. When the shard specification is 1-source-2-replica, two of the nodes are deployed in the first AZ.
	// The current purchasable AZ needs be pulled through `DescribeDCDBSaleInfo` API.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`

	// Validity period in months
	Period *int64 `json:"Period,omitnil" name:"Period"`

	// Shard memory size in GB, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage size in GB, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// Number of nodes in a single shard, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// The number of shards in the instance. Value range: 2-8. You can increase up to 64 shards by upgrading your instance.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// The number of instances to be purchased
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Project ID, which can be obtained through the `DescribeProjects` API. If this parameter is not passed in, the instance will be associated with the default project.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// VPC ID. If this parameter is left empty or not passed in, the instance will be created on the classic network.
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is required when `VpcId` is specified.
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// Whether to automatically use vouchers. This option is disabled by default.
	AutoVoucher *bool `json:"AutoVoucher,omitnil" name:"AutoVoucher"`

	// Voucher ID list. Currently, you can specify only one voucher.
	VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Custom name of the instance
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Whether IPv6 is supported. Valid values: `0` (unsupported), `1` (supported).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Array of tag key-value pairs
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// List of parameters. Valid values: `character_set_server` (character set; required); `lower_case_table_names` (table name case sensitivity; required; `0`: case-sensitive; `1`: case-insensitive); `innodb_page_size` (InnoDB data page size; default size: 16 KB); `sync_mode` (sync mode; `0`: async; `1`: strong sync; `2`: downgradable strong sync; default value: `2`).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// DCN source region
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// DCN source instance ID
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// Renewal mode. Valid values: `0` (manual renewal, which is the default mode), `1` (auto-renewal), `2` (manual renewal, which is specified by users).  If no renewal is required, set it to `0`.
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"`

	// Security group IDs in array. This parameter is compatible with the old parameter `SecurityGroupId`.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

func NewCreateDCDBInstanceRequest

func NewCreateDCDBInstanceRequest() (request *CreateDCDBInstanceRequest)

func (*CreateDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDCDBInstanceRequest) ToJsonString

func (r *CreateDCDBInstanceRequest) ToJsonString() string

type CreateDCDBInstanceRequestParams

type CreateDCDBInstanceRequestParams struct {
	// AZs to deploy shard nodes. You can specify up to two AZs. When the shard specification is 1-source-2-replica, two of the nodes are deployed in the first AZ.
	// The current purchasable AZ needs be pulled through `DescribeDCDBSaleInfo` API.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`

	// Validity period in months
	Period *int64 `json:"Period,omitnil" name:"Period"`

	// Shard memory size in GB, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage size in GB, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// Number of nodes in a single shard, which can be obtained
	//  by querying the instance specification through `DescribeShardSpec` API.
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// The number of shards in the instance. Value range: 2-8. You can increase up to 64 shards by upgrading your instance.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// The number of instances to be purchased
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Project ID, which can be obtained through the `DescribeProjects` API. If this parameter is not passed in, the instance will be associated with the default project.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// VPC ID. If this parameter is left empty or not passed in, the instance will be created on the classic network.
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is required when `VpcId` is specified.
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// Whether to automatically use vouchers. This option is disabled by default.
	AutoVoucher *bool `json:"AutoVoucher,omitnil" name:"AutoVoucher"`

	// Voucher ID list. Currently, you can specify only one voucher.
	VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Custom name of the instance
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Whether IPv6 is supported. Valid values: `0` (unsupported), `1` (supported).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Array of tag key-value pairs
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// List of parameters. Valid values: `character_set_server` (character set; required); `lower_case_table_names` (table name case sensitivity; required; `0`: case-sensitive; `1`: case-insensitive); `innodb_page_size` (InnoDB data page size; default size: 16 KB); `sync_mode` (sync mode; `0`: async; `1`: strong sync; `2`: downgradable strong sync; default value: `2`).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// DCN source region
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// DCN source instance ID
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// Renewal mode. Valid values: `0` (manual renewal, which is the default mode), `1` (auto-renewal), `2` (manual renewal, which is specified by users).  If no renewal is required, set it to `0`.
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"`

	// Security group IDs in array. This parameter is compatible with the old parameter `SecurityGroupId`.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

Predefined struct for user

type CreateDCDBInstanceResponse

type CreateDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *CreateDCDBInstanceResponseParams `json:"Response"`
}

func NewCreateDCDBInstanceResponse

func NewCreateDCDBInstanceResponse() (response *CreateDCDBInstanceResponse)

func (*CreateDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDCDBInstanceResponse) ToJsonString

func (r *CreateDCDBInstanceResponse) ToJsonString() string

type CreateDCDBInstanceResponseParams

type CreateDCDBInstanceResponseParams struct {
	// Long order ID, which is used to call the `DescribeOrders` API.
	//  The parameter can be used to either query order details or call the user account APIs to make another payment when this payment fails.
	DealName *string `json:"DealName,omitnil" name:"DealName"`

	// IDs of the instances you have purchased in this order. If no instance IDs are returned, you can query them with the `DescribeOrders` API. You can also use the `DescribeDBInstances` API to check whether an instance has been created successfully.
	// Note: This field may return null, indicating that no valid values can be obtained.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CreateDedicatedClusterDCDBInstanceRequest

type CreateDedicatedClusterDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Number of created instances
	GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"`

	// Shard u200dcount
	ShardNum *int64 `json:"ShardNum,omitnil" name:"ShardNum"`

	// Shard memory size in GB
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard disk size in GB
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// UUID of the dedicated cluster
	ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"`

	// (Disused) AZ
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// (Disused) u200dNumber of CPU u200dcores
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// VPC ID
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// Subnet ID
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// (Disused) Shard model
	ShardMachine *string `json:"ShardMachine,omitnil" name:"ShardMachine"`

	// Number of shard nodes
	ShardNodeNum *int64 `json:"ShardNodeNum,omitnil" name:"ShardNodeNum"`

	// (Disused) Number of node CPU cores. Value range: 1-100.
	ShardNodeCpu *int64 `json:"ShardNodeCpu,omitnil" name:"ShardNodeCpu"`

	// (Disused) Node memory size in GB
	ShardNodeMemory *int64 `json:"ShardNodeMemory,omitnil" name:"ShardNodeMemory"`

	// (Disused) Node disk size in GB
	ShardNodeStorage *int64 `json:"ShardNodeStorage,omitnil" name:"ShardNodeStorage"`

	// Database version
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// List of security group IDs
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`

	// DCN source instance ID
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// Region of DCN source instance
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// Custom instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Tag
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// Whether IPv6 flag is supported. Valid values: `1` (yes), `0` (no).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// (Disused) Pid, which can be queried by the u200d`DescribeSpecInfo` API.
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// List of parameters. Valid values: `character_set_server` (character set; required), `lower_case_table_names` (table name case sensitivity; required; `0`: case-sensitive; `1`: case-insensitive), `innodb_page_size` (InnoDB data page; default size: 16 KB), `sync_mode` (sync mode; `0`: async; `1`: strong sync; `2`: downgradable strong sync. Default value: u200d`2`).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// Specified UUID for the source node. If left empty, it will be assigned by the system randomly.
	MasterHostId *string `json:"MasterHostId,omitnil" name:"MasterHostId"`

	// Specified UUID for the u200dreplica node. If left empty, it will be assigned by the system randomly.
	SlaveHostIds []*string `json:"SlaveHostIds,omitnil" name:"SlaveHostIds"`

	// ID of the u200dsource instance to be rolled back
	RollbackInstanceId *string `json:"RollbackInstanceId,omitnil" name:"RollbackInstanceId"`

	// Rollback time
	RollbackTime *string `json:"RollbackTime,omitnil" name:"RollbackTime"`
}

func NewCreateDedicatedClusterDCDBInstanceRequest

func NewCreateDedicatedClusterDCDBInstanceRequest() (request *CreateDedicatedClusterDCDBInstanceRequest)

func (*CreateDedicatedClusterDCDBInstanceRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDedicatedClusterDCDBInstanceRequest) ToJsonString

type CreateDedicatedClusterDCDBInstanceRequestParams

type CreateDedicatedClusterDCDBInstanceRequestParams struct {
	// Number of created instances
	GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"`

	// Shard u200dcount
	ShardNum *int64 `json:"ShardNum,omitnil" name:"ShardNum"`

	// Shard memory size in GB
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard disk size in GB
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// UUID of the dedicated cluster
	ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"`

	// (Disused) AZ
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// (Disused) u200dNumber of CPU u200dcores
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// VPC ID
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// Subnet ID
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// (Disused) Shard model
	ShardMachine *string `json:"ShardMachine,omitnil" name:"ShardMachine"`

	// Number of shard nodes
	ShardNodeNum *int64 `json:"ShardNodeNum,omitnil" name:"ShardNodeNum"`

	// (Disused) Number of node CPU cores. Value range: 1-100.
	ShardNodeCpu *int64 `json:"ShardNodeCpu,omitnil" name:"ShardNodeCpu"`

	// (Disused) Node memory size in GB
	ShardNodeMemory *int64 `json:"ShardNodeMemory,omitnil" name:"ShardNodeMemory"`

	// (Disused) Node disk size in GB
	ShardNodeStorage *int64 `json:"ShardNodeStorage,omitnil" name:"ShardNodeStorage"`

	// Database version
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// List of security group IDs
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`

	// DCN source instance ID
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// Region of DCN source instance
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// Custom instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Tag
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// Whether IPv6 flag is supported. Valid values: `1` (yes), `0` (no).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// (Disused) Pid, which can be queried by the u200d`DescribeSpecInfo` API.
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// List of parameters. Valid values: `character_set_server` (character set; required), `lower_case_table_names` (table name case sensitivity; required; `0`: case-sensitive; `1`: case-insensitive), `innodb_page_size` (InnoDB data page; default size: 16 KB), `sync_mode` (sync mode; `0`: async; `1`: strong sync; `2`: downgradable strong sync. Default value: u200d`2`).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// Specified UUID for the source node. If left empty, it will be assigned by the system randomly.
	MasterHostId *string `json:"MasterHostId,omitnil" name:"MasterHostId"`

	// Specified UUID for the u200dreplica node. If left empty, it will be assigned by the system randomly.
	SlaveHostIds []*string `json:"SlaveHostIds,omitnil" name:"SlaveHostIds"`

	// ID of the u200dsource instance to be rolled back
	RollbackInstanceId *string `json:"RollbackInstanceId,omitnil" name:"RollbackInstanceId"`

	// Rollback time
	RollbackTime *string `json:"RollbackTime,omitnil" name:"RollbackTime"`
}

Predefined struct for user

type CreateDedicatedClusterDCDBInstanceResponse

type CreateDedicatedClusterDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *CreateDedicatedClusterDCDBInstanceResponseParams `json:"Response"`
}

func NewCreateDedicatedClusterDCDBInstanceResponse

func NewCreateDedicatedClusterDCDBInstanceResponse() (response *CreateDedicatedClusterDCDBInstanceResponse)

func (*CreateDedicatedClusterDCDBInstanceResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDedicatedClusterDCDBInstanceResponse) ToJsonString

type CreateDedicatedClusterDCDBInstanceResponseParams

type CreateDedicatedClusterDCDBInstanceResponseParams struct {
	// Array of assigned resource IDs
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Flow ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type CreateHourDCDBInstanceRequest

type CreateHourDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Shard memory in GB, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard capacity in GB, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// The number of nodes per shard, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// The number of shards in the instance. Value range: 2-8. Upgrade your instance to have up to 64 shards if you require more.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// The number of instances to be purchased
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Project ID, which can be obtained through the `DescribeProjects` API. If this parameter is not passed in, the instance will be associated with the default project.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// VPC ID. If this parameter is left empty or not passed in, the instance will be created on the classic network.
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is required when `VpcId` is specified
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// The number of CPU cores per shard, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardCpu *int64 `json:"ShardCpu,omitnil" name:"ShardCpu"`

	// Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// AZs to deploy shard nodes. You can specify up to two AZs.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Custom name of the instance
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Whether IPv6 is supported. Valid values: `0` (unsupported), `1` (supported).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Array of tag key-value pairs
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// If you create a disaster recovery instance, you need to use this parameter to specify the region of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// If you create a disaster recovery instance, you need to use this parameter to specify the ID of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// List of parameters. Valid values: `character_set_server` (character set; required); `lower_case_table_names` (table name case sensitivity; required; 0: case-sensitive; 1: case-insensitive); `innodb_page_size` (InnoDB data page size; default size: 16 KB); `sync_mode` (sync mode; 0: async; 1: strong sync; 2: downgradable strong sync; default value: 2).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// ID of the instance to be rolled back
	RollbackInstanceId *string `json:"RollbackInstanceId,omitnil" name:"RollbackInstanceId"`

	// Rollback time, such as "2021-11-22 00:00:00".
	RollbackTime *string `json:"RollbackTime,omitnil" name:"RollbackTime"`

	// Array of security group IDs (this parameter is compatible with the old parameter `SecurityGroupId`)
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

func NewCreateHourDCDBInstanceRequest

func NewCreateHourDCDBInstanceRequest() (request *CreateHourDCDBInstanceRequest)

func (*CreateHourDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateHourDCDBInstanceRequest) ToJsonString

func (r *CreateHourDCDBInstanceRequest) ToJsonString() string

type CreateHourDCDBInstanceRequestParams

type CreateHourDCDBInstanceRequestParams struct {
	// Shard memory in GB, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard capacity in GB, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// The number of nodes per shard, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// The number of shards in the instance. Value range: 2-8. Upgrade your instance to have up to 64 shards if you require more.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// The number of instances to be purchased
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Project ID, which can be obtained through the `DescribeProjects` API. If this parameter is not passed in, the instance will be associated with the default project.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// VPC ID. If this parameter is left empty or not passed in, the instance will be created on the classic network.
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is required when `VpcId` is specified
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// The number of CPU cores per shard, which can be obtained through the `DescribeShardSpec` API.
	//
	ShardCpu *int64 `json:"ShardCpu,omitnil" name:"ShardCpu"`

	// Database engine version. Valid values: `5.7`, `8.0`, `10.0`, `10.1`.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// AZs to deploy shard nodes. You can specify up to two AZs.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Custom name of the instance
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Whether IPv6 is supported. Valid values: `0` (unsupported), `1` (supported).
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Array of tag key-value pairs
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// If you create a disaster recovery instance, you need to use this parameter to specify the region of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
	DcnRegion *string `json:"DcnRegion,omitnil" name:"DcnRegion"`

	// If you create a disaster recovery instance, you need to use this parameter to specify the ID of the associated source instance so that the disaster recovery instance can sync data with the source instance over the Data Communication Network (DCN).
	DcnInstanceId *string `json:"DcnInstanceId,omitnil" name:"DcnInstanceId"`

	// List of parameters. Valid values: `character_set_server` (character set; required); `lower_case_table_names` (table name case sensitivity; required; 0: case-sensitive; 1: case-insensitive); `innodb_page_size` (InnoDB data page size; default size: 16 KB); `sync_mode` (sync mode; 0: async; 1: strong sync; 2: downgradable strong sync; default value: 2).
	InitParams []*DBParamValue `json:"InitParams,omitnil" name:"InitParams"`

	// ID of the instance to be rolled back
	RollbackInstanceId *string `json:"RollbackInstanceId,omitnil" name:"RollbackInstanceId"`

	// Rollback time, such as "2021-11-22 00:00:00".
	RollbackTime *string `json:"RollbackTime,omitnil" name:"RollbackTime"`

	// Array of security group IDs (this parameter is compatible with the old parameter `SecurityGroupId`)
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

Predefined struct for user

type CreateHourDCDBInstanceResponse

type CreateHourDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *CreateHourDCDBInstanceResponseParams `json:"Response"`
}

func NewCreateHourDCDBInstanceResponse

func NewCreateHourDCDBInstanceResponse() (response *CreateHourDCDBInstanceResponse)

func (*CreateHourDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateHourDCDBInstanceResponse) ToJsonString

func (r *CreateHourDCDBInstanceResponse) ToJsonString() string

type CreateHourDCDBInstanceResponseParams

type CreateHourDCDBInstanceResponseParams struct {
	// IDs of the instances you have purchased in this order. If no instance IDs are returned, you can query them with the `DescribeOrders` API. You can also use the `DescribeDBInstances` API to check whether an instance has been created successfully.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Task ID, which can be used to query the creation progress
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// Order ID, which is used for calling the `DescribeOrders` API.
	//  The parameter can be used to either query order details or call the user account APIs to make another payment when this payment fails.
	DealName *string `json:"DealName,omitnil" name:"DealName"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DBAccount

type DBAccount struct {
	// Username
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Host from which a user can log in (corresponding to the `host` field for a MySQL user; a user is uniquely identified by username and host; this parameter is in IP format and ends with % for IP range; % can be entered; if this parameter is left empty, % will be used by default).
	Host *string `json:"Host,omitnil" name:"Host"`

	// User remarks
	Description *string `json:"Description,omitnil" name:"Description"`

	// Creation time
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Last updated time
	UpdateTime *string `json:"UpdateTime,omitnil" name:"UpdateTime"`

	// Read-only flag. 0: no; 1: for the account's SQL requests, the replica will be used first, and if it is unavailable, the source will be used; 2: the replica will be used first, and if it is unavailable, the operation will fail.
	ReadOnly *int64 `json:"ReadOnly,omitnil" name:"ReadOnly"`

	// If the replica delay exceeds the set value of this parameter, the replica will be considered to have failed.
	// Set this parameter to a value above 10. This parameter takes effect when `ReadOnly` is 1 or 2.
	DelayThresh *int64 `json:"DelayThresh,omitnil" name:"DelayThresh"`

	// Whether to specify a replica server for read-only account. Valid values: `0` (No replica server is specified, which means that the proxy will select another available replica server to keep connection with the client if the current replica server doesn’t meet the requirement). `1` (The replica server is specified, which means that the connection will be disconnected if the specified replica server doesn’t meet the requirement.)
	SlaveConst *int64 `json:"SlaveConst,omitnil" name:"SlaveConst"`

	// Maximum number of connections. `0` indicates no limit.
	MaxUserConnections *int64 `json:"MaxUserConnections,omitnil" name:"MaxUserConnections"`
}

type DBParamValue

type DBParamValue struct {
	// Parameter name
	Param *string `json:"Param,omitnil" name:"Param"`

	// Parameter value
	Value *string `json:"Value,omitnil" name:"Value"`
}

type DCDBInstanceInfo

type DCDBInstanceInfo struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Application ID
	AppId *int64 `json:"AppId,omitnil" name:"AppId"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// Region
	Region *string `json:"Region,omitnil" name:"Region"`

	// AZ
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Numeric ID of a VPC
	VpcId *int64 `json:"VpcId,omitnil" name:"VpcId"`

	// Subnet Digital ID
	SubnetId *int64 `json:"SubnetId,omitnil" name:"SubnetId"`

	// Status description
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// Instance status. Valid values: `0` (creating), `1` (running task), `2` (running), `3` (uninitialized), `-1` (isolated), `4` (initializing), `5` (eliminating), `6` (restarting), `7` (migrating data)
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Private IP
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// Private network port
	Vport *int64 `json:"Vport,omitnil" name:"Vport"`

	// Creation time
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Auto-renewal flag
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"`

	// Memory size in GB
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Storage capacity in GB
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Number of shards
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// Expiration time
	PeriodEndTime *string `json:"PeriodEndTime,omitnil" name:"PeriodEndTime"`

	// Isolation time
	IsolatedTimestamp *string `json:"IsolatedTimestamp,omitnil" name:"IsolatedTimestamp"`

	// Account ID
	Uin *string `json:"Uin,omitnil" name:"Uin"`

	// Shard details
	ShardDetail []*ShardInfo `json:"ShardDetail,omitnil" name:"ShardDetail"`

	// Number of nodes. 2: one master and one slave; 3: one master and two slaves
	NodeCount *int64 `json:"NodeCount,omitnil" name:"NodeCount"`

	// Temporary instance flag. 0: non-temporary instance
	IsTmp *int64 `json:"IsTmp,omitnil" name:"IsTmp"`

	// Dedicated cluster ID. If this parameter is empty, the instance is a non-dedicated cluster instance
	ExclusterId *string `json:"ExclusterId,omitnil" name:"ExclusterId"`

	// VPC ID in string type
	UniqueVpcId *string `json:"UniqueVpcId,omitnil" name:"UniqueVpcId"`

	// VPC subnet ID in string type
	UniqueSubnetId *string `json:"UniqueSubnetId,omitnil" name:"UniqueSubnetId"`

	// Numeric ID of instance (this field is obsolete and should not be depended on)
	Id *uint64 `json:"Id,omitnil" name:"Id"`

	// Domain name for public network access, which can be resolved by the public network
	WanDomain *string `json:"WanDomain,omitnil" name:"WanDomain"`

	// Public IP address, which can be accessed over the public network
	WanVip *string `json:"WanVip,omitnil" name:"WanVip"`

	// Public network port
	WanPort *int64 `json:"WanPort,omitnil" name:"WanPort"`

	// Product type ID (this field is obsolete and should not be depended on)
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// Last updated time of an instance in the format of 2006-01-02 15:04:05
	UpdateTime *string `json:"UpdateTime,omitnil" name:"UpdateTime"`

	// Database engine
	DbEngine *string `json:"DbEngine,omitnil" name:"DbEngine"`

	// Database engine version
	DbVersion *string `json:"DbVersion,omitnil" name:"DbVersion"`

	// Billing mode
	Paymode *string `json:"Paymode,omitnil" name:"Paymode"`

	// Async task flow ID when an async task is in progress on an instance
	// Note: this field may return null, indicating that no valid values can be obtained.
	Locker *int64 `json:"Locker,omitnil" name:"Locker"`

	// Public network access status. 0: not enabled; 1: enabled; 2: disabled; 3: enabling
	WanStatus *int64 `json:"WanStatus,omitnil" name:"WanStatus"`

	// Whether the instance supports audit. 1: yes; 0: no
	IsAuditSupported *uint64 `json:"IsAuditSupported,omitnil" name:"IsAuditSupported"`

	// Number of CPU cores
	Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"`

	// Indicates whether the instance uses IPv6
	// Note: this field may return null, indicating that no valid values can be obtained.
	Ipv6Flag *uint64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Private network IPv6 address
	// Note: this field may return null, indicating that no valid values can be obtained.
	Vipv6 *string `json:"Vipv6,omitnil" name:"Vipv6"`

	// Public network IPv6 address
	// Note: this field may return null, indicating that no valid values can be obtained.
	WanVipv6 *string `json:"WanVipv6,omitnil" name:"WanVipv6"`

	// Public network IPv6 port
	// Note: this field may return null, indicating that no valid values can be obtained.
	WanPortIpv6 *uint64 `json:"WanPortIpv6,omitnil" name:"WanPortIpv6"`

	// Public network IPv6 status
	// Note: this field may return null, indicating that no valid values can be obtained.
	WanStatusIpv6 *uint64 `json:"WanStatusIpv6,omitnil" name:"WanStatusIpv6"`

	// DCN type. Valid values: 0 (null), 1 (primary instance), 2 (disaster recovery instance)
	// Note: this field may return null, indicating that no valid values can be obtained.
	DcnFlag *int64 `json:"DcnFlag,omitnil" name:"DcnFlag"`

	// DCN status. Valid values: 0 (null), 1 (creating), 2 (syncing), 3 (disconnected)
	// Note: this field may return null, indicating that no valid values can be obtained.
	DcnStatus *int64 `json:"DcnStatus,omitnil" name:"DcnStatus"`

	// The number of DCN disaster recovery instances
	// Note: this field may return null, indicating that no valid values can be obtained.
	DcnDstNum *int64 `json:"DcnDstNum,omitnil" name:"DcnDstNum"`

	// Instance type. Valid values: `1` (dedicated primary instance), `2` (standard primary instance), `3` (standard disaster recovery instance), `4` (dedicated disaster recovery instance)
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"`

	// Instance tag information
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// Database engine version
	// Note: This field may return null, indicating that no valid values can be obtained.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`
}

type DCDBShardInfo

type DCDBShardInfo struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard SQL passthrough ID, which is used to pass through SQL statements to the specified shard for execution.
	ShardSerialId *string `json:"ShardSerialId,omitnil" name:"ShardSerialId"`

	// Globally unique shard ID
	ShardInstanceId *string `json:"ShardInstanceId,omitnil" name:"ShardInstanceId"`

	// Status. 0: creating; 1: processing; 2: running; 3: shard not initialized.
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Status description
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// Creation time
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// VPC ID in string format
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID in string format
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// Region
	Region *string `json:"Region,omitnil" name:"Region"`

	// AZ
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Memory size in GB
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Storage capacity in GB
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Expiration time
	PeriodEndTime *string `json:"PeriodEndTime,omitnil" name:"PeriodEndTime"`

	// Number of nodes. 2: one source and one replica; 3: one source and two replicas
	NodeCount *int64 `json:"NodeCount,omitnil" name:"NodeCount"`

	// Storage utilization in %
	StorageUsage *float64 `json:"StorageUsage,omitnil" name:"StorageUsage"`

	// Memory utilization in %
	MemoryUsage *float64 `json:"MemoryUsage,omitnil" name:"MemoryUsage"`

	// Numeric shard ID (this field is obsolete and should not be depended on)
	ShardId *int64 `json:"ShardId,omitnil" name:"ShardId"`

	// Product ID
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// Proxy version
	ProxyVersion *string `json:"ProxyVersion,omitnil" name:"ProxyVersion"`

	// Billing mode
	// Note: This field may return null, indicating that no valid values can be obtained.
	Paymode *string `json:"Paymode,omitnil" name:"Paymode"`

	// Source AZ of the shard
	// Note: This field may return null, indicating that no valid values can be obtained.
	ShardMasterZone *string `json:"ShardMasterZone,omitnil" name:"ShardMasterZone"`

	// List of replica AZs of the shard
	// Note: This field may return null, indicating that no valid values can be obtained.
	ShardSlaveZones []*string `json:"ShardSlaveZones,omitnil" name:"ShardSlaveZones"`

	// Number of CPU cores
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// The value range of shardkey, which includes 64 hash values, such as 0-31 or 32-63.
	Range *string `json:"Range,omitnil" name:"Range"`
}

type Database

type Database struct {
	// Database name
	DbName *string `json:"DbName,omitnil" name:"DbName"`
}

type DatabaseFunction

type DatabaseFunction struct {
	// Function name
	Func *string `json:"Func,omitnil" name:"Func"`
}

type DatabasePrivilege

type DatabasePrivilege struct {
	// Permission information
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`

	// Database name
	Database *string `json:"Database,omitnil" name:"Database"`
}

type DatabaseProcedure

type DatabaseProcedure struct {
	// Stored procedure name
	Proc *string `json:"Proc,omitnil" name:"Proc"`
}

type DatabaseTable

type DatabaseTable struct {
	// Table name
	Table *string `json:"Table,omitnil" name:"Table"`
}

type DatabaseView

type DatabaseView struct {
	// View name
	View *string `json:"View,omitnil" name:"View"`
}

type DcnDetailItem

type DcnDetailItem struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Region where the instance resides
	Region *string `json:"Region,omitnil" name:"Region"`

	// Availability zone where the instance resides
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Instance IP address
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// Instance IPv6 address
	Vipv6 *string `json:"Vipv6,omitnil" name:"Vipv6"`

	// Instance port
	Vport *int64 `json:"Vport,omitnil" name:"Vport"`

	// Instance status
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Instance status description
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// DCN flag. Valid values: `1` (primary), `2` (disaster recovery)
	DcnFlag *int64 `json:"DcnFlag,omitnil" name:"DcnFlag"`

	// DCN status. Valid values: `0` (none), `1` (creating), `2` (syncing), `3` (disconnected)
	DcnStatus *int64 `json:"DcnStatus,omitnil" name:"DcnStatus"`

	// Number of CPU cores of the instance
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// Instance memory capacity in GB
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Instance storage capacity in GB
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Billing mode
	PayMode *int64 `json:"PayMode,omitnil" name:"PayMode"`

	// Creation time of the instance in the format of 2006-01-02 15:04:05
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Expiration time of the instance in the format of 2006-01-02 15:04:05
	PeriodEndTime *string `json:"PeriodEndTime,omitnil" name:"PeriodEndTime"`

	// Instance type. Valid values: `1` (dedicated primary instance), `2` (non-dedicated primary instance), `3` (non-dedicated disaster recovery instance), and `4` (dedicated disaster recovery instance).
	InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"`

	// Whether KMS is enabled.
	EncryptStatus *int64 `json:"EncryptStatus,omitnil" name:"EncryptStatus"`
}

type Deal

type Deal struct {
	// Order ID.
	DealName *string `json:"DealName,omitnil" name:"DealName"`

	// Account
	OwnerUin *string `json:"OwnerUin,omitnil" name:"OwnerUin"`

	// Number of items
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// The associated process ID, which can be used to query the process execution status.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The ID of the created instance, which is required only for the order that creates an instance.
	// Note: This field may return null, indicating that no valid values can be obtained.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Billing mode. Valid values: `0` (postpaid), `1` (prepaid).
	PayMode *int64 `json:"PayMode,omitnil" name:"PayMode"`
}

type DeleteAccountRequest

type DeleteAccountRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Username
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user
	Host *string `json:"Host,omitnil" name:"Host"`
}

func NewDeleteAccountRequest

func NewDeleteAccountRequest() (request *DeleteAccountRequest)

func (*DeleteAccountRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteAccountRequest) ToJsonString

func (r *DeleteAccountRequest) ToJsonString() string

type DeleteAccountRequestParams

type DeleteAccountRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Username
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user
	Host *string `json:"Host,omitnil" name:"Host"`
}

Predefined struct for user

type DeleteAccountResponse

type DeleteAccountResponse struct {
	*tchttp.BaseResponse
	Response *DeleteAccountResponseParams `json:"Response"`
}

func NewDeleteAccountResponse

func NewDeleteAccountResponse() (response *DeleteAccountResponse)

func (*DeleteAccountResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteAccountResponse) ToJsonString

func (r *DeleteAccountResponse) ToJsonString() string

type DeleteAccountResponseParams

type DeleteAccountResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeAccountPrivilegesRequest

type DescribeAccountPrivilegesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
	Type *string `json:"Type,omitnil" name:"Type"`

	// Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
	Object *string `json:"Object,omitnil" name:"Object"`

	// If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
	ColName *string `json:"ColName,omitnil" name:"ColName"`
}

func NewDescribeAccountPrivilegesRequest

func NewDescribeAccountPrivilegesRequest() (request *DescribeAccountPrivilegesRequest)

func (*DescribeAccountPrivilegesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAccountPrivilegesRequest) ToJsonString

func (r *DescribeAccountPrivilegesRequest) ToJsonString() string

type DescribeAccountPrivilegesRequestParams

type DescribeAccountPrivilegesRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Type. Valid values: table, view, proc, func, \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be queried (i.e., `db.\*`), in which case the `Object` parameter will be ignored.
	Type *string `json:"Type,omitnil" name:"Type"`

	// Type name. For example, if `Type` is `table`, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty.
	Object *string `json:"Object,omitnil" name:"Object"`

	// If `Type` is `table` and `ColName` is `\*`, the permissions of the table will be queried; if `ColName` is a specific field name, the permissions of the corresponding field will be queried.
	ColName *string `json:"ColName,omitnil" name:"ColName"`
}

Predefined struct for user

type DescribeAccountPrivilegesResponse

type DescribeAccountPrivilegesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeAccountPrivilegesResponseParams `json:"Response"`
}

func NewDescribeAccountPrivilegesResponse

func NewDescribeAccountPrivilegesResponse() (response *DescribeAccountPrivilegesResponse)

func (*DescribeAccountPrivilegesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeAccountPrivilegesResponse) ToJsonString

func (r *DescribeAccountPrivilegesResponse) ToJsonString() string

type DescribeAccountPrivilegesResponseParams

type DescribeAccountPrivilegesResponseParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Permission list
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`

	// Database account username
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Database account host
	Host *string `json:"Host,omitnil" name:"Host"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeAccountsRequest

type DescribeAccountsRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeAccountsRequest

func NewDescribeAccountsRequest() (request *DescribeAccountsRequest)

func (*DescribeAccountsRequest) FromJsonString

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

FromJsonString 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 DescribeAccountsRequestParams

type DescribeAccountsRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeAccountsResponse

type DescribeAccountsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeAccountsResponseParams `json:"Response"`
}

func NewDescribeAccountsResponse

func NewDescribeAccountsResponse() (response *DescribeAccountsResponse)

func (*DescribeAccountsResponse) FromJsonString

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

FromJsonString 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 DescribeAccountsResponseParams

type DescribeAccountsResponseParams struct {
	// Instance ID, which is passed through from the input parameters.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance user list.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Users []*DBAccount `json:"Users,omitnil" name:"Users"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeBackupFilesRequest

type DescribeBackupFilesRequest struct {
	*tchttp.BaseRequest

	// Query by instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Query by shard ID
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Backup type. Valid values: `Data` (data backup), `Binlog` (Binlog backup), `Errlog` (error log), `Slowlog` (slow log).
	BackupType *string `json:"BackupType,omitnil" name:"BackupType"`

	// Query by start time
	StartTime *string `json:"StartTime,omitnil" name:"StartTime"`

	// Query by end time
	EndTime *string `json:"EndTime,omitnil" name:"EndTime"`

	// Pagination parameter
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// Pagination parameter
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Sorting dimension. Valid values: `Time`, `Size`.
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: `DESC`, `ASC`.
	OrderType *string `json:"OrderType,omitnil" name:"OrderType"`
}

func NewDescribeBackupFilesRequest

func NewDescribeBackupFilesRequest() (request *DescribeBackupFilesRequest)

func (*DescribeBackupFilesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeBackupFilesRequest) ToJsonString

func (r *DescribeBackupFilesRequest) ToJsonString() string

type DescribeBackupFilesRequestParams

type DescribeBackupFilesRequestParams struct {
	// Query by instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Query by shard ID
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Backup type. Valid values: `Data` (data backup), `Binlog` (Binlog backup), `Errlog` (error log), `Slowlog` (slow log).
	BackupType *string `json:"BackupType,omitnil" name:"BackupType"`

	// Query by start time
	StartTime *string `json:"StartTime,omitnil" name:"StartTime"`

	// Query by end time
	EndTime *string `json:"EndTime,omitnil" name:"EndTime"`

	// Pagination parameter
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// Pagination parameter
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Sorting dimension. Valid values: `Time`, `Size`.
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: `DESC`, `ASC`.
	OrderType *string `json:"OrderType,omitnil" name:"OrderType"`
}

Predefined struct for user

type DescribeBackupFilesResponse

type DescribeBackupFilesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeBackupFilesResponseParams `json:"Response"`
}

func NewDescribeBackupFilesResponse

func NewDescribeBackupFilesResponse() (response *DescribeBackupFilesResponse)

func (*DescribeBackupFilesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeBackupFilesResponse) ToJsonString

func (r *DescribeBackupFilesResponse) ToJsonString() string

type DescribeBackupFilesResponseParams

type DescribeBackupFilesResponseParams struct {
	// List of backup files
	Files []*InstanceBackupFileItem `json:"Files,omitnil" name:"Files"`

	// Total number
	TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBEncryptAttributesRequest

type DescribeDBEncryptAttributesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of  `tdsqlshard-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDBEncryptAttributesRequest

func NewDescribeDBEncryptAttributesRequest() (request *DescribeDBEncryptAttributesRequest)

func (*DescribeDBEncryptAttributesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBEncryptAttributesRequest) ToJsonString

func (r *DescribeDBEncryptAttributesRequest) ToJsonString() string

type DescribeDBEncryptAttributesRequestParams

type DescribeDBEncryptAttributesRequestParams struct {
	// Instance ID in the format of  `tdsqlshard-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDBEncryptAttributesResponse

type DescribeDBEncryptAttributesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBEncryptAttributesResponseParams `json:"Response"`
}

func NewDescribeDBEncryptAttributesResponse

func NewDescribeDBEncryptAttributesResponse() (response *DescribeDBEncryptAttributesResponse)

func (*DescribeDBEncryptAttributesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBEncryptAttributesResponse) ToJsonString

func (r *DescribeDBEncryptAttributesResponse) ToJsonString() string

type DescribeDBEncryptAttributesResponseParams

type DescribeDBEncryptAttributesResponseParams struct {
	// Whether encryption is enabled. Valid values: `1` (enabled), `2` (disabled).
	EncryptStatus *int64 `json:"EncryptStatus,omitnil" name:"EncryptStatus"`

	// DEK
	CipherText *string `json:"CipherText,omitnil" name:"CipherText"`

	// DEK expiration date
	ExpireDate *string `json:"ExpireDate,omitnil" name:"ExpireDate"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBLogFilesRequest

type DescribeDBLogFilesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID in the format of shard-7noic7tv
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Requested log type. Valid values: 1 (binlog); 2 (cold backup); 3 (errlog); 4 (slowlog).
	Type *int64 `json:"Type,omitnil" name:"Type"`
}

func NewDescribeDBLogFilesRequest

func NewDescribeDBLogFilesRequest() (request *DescribeDBLogFilesRequest)

func (*DescribeDBLogFilesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBLogFilesRequest) ToJsonString

func (r *DescribeDBLogFilesRequest) ToJsonString() string

type DescribeDBLogFilesRequestParams

type DescribeDBLogFilesRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID in the format of shard-7noic7tv
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Requested log type. Valid values: 1 (binlog); 2 (cold backup); 3 (errlog); 4 (slowlog).
	Type *int64 `json:"Type,omitnil" name:"Type"`
}

Predefined struct for user

type DescribeDBLogFilesResponse

type DescribeDBLogFilesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBLogFilesResponseParams `json:"Response"`
}

func NewDescribeDBLogFilesResponse

func NewDescribeDBLogFilesResponse() (response *DescribeDBLogFilesResponse)

func (*DescribeDBLogFilesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBLogFilesResponse) ToJsonString

func (r *DescribeDBLogFilesResponse) ToJsonString() string

type DescribeDBLogFilesResponseParams

type DescribeDBLogFilesResponseParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Requested log type. Valid values: 1 (binlog); 2 (cold backup); 3 (errlog); 4 (slowlog).
	Type *uint64 `json:"Type,omitnil" name:"Type"`

	// Total number of requested logs
	Total *uint64 `json:"Total,omitnil" name:"Total"`

	// List of log files
	Files []*LogFileInfo `json:"Files,omitnil" name:"Files"`

	// For an instance in a VPC, this prefix plus URI can be used as the download address
	VpcPrefix *string `json:"VpcPrefix,omitnil" name:"VpcPrefix"`

	// For an instance in a common network, this prefix plus URI can be used as the download address
	NormalPrefix *string `json:"NormalPrefix,omitnil" name:"NormalPrefix"`

	// Shard ID in the format of shard-7noic7tv
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBParametersRequest

type DescribeDBParametersRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDBParametersRequest

func NewDescribeDBParametersRequest() (request *DescribeDBParametersRequest)

func (*DescribeDBParametersRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBParametersRequest) ToJsonString

func (r *DescribeDBParametersRequest) ToJsonString() string

type DescribeDBParametersRequestParams

type DescribeDBParametersRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDBParametersResponse

type DescribeDBParametersResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBParametersResponseParams `json:"Response"`
}

func NewDescribeDBParametersResponse

func NewDescribeDBParametersResponse() (response *DescribeDBParametersResponse)

func (*DescribeDBParametersResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBParametersResponse) ToJsonString

func (r *DescribeDBParametersResponse) ToJsonString() string

type DescribeDBParametersResponseParams

type DescribeDBParametersResponseParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Requests the current parameter values of the database
	Params []*ParamDesc `json:"Params,omitnil" name:"Params"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBSecurityGroupsRequest

type DescribeDBSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDBSecurityGroupsRequest

func NewDescribeDBSecurityGroupsRequest() (request *DescribeDBSecurityGroupsRequest)

func (*DescribeDBSecurityGroupsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSecurityGroupsRequest) ToJsonString

func (r *DescribeDBSecurityGroupsRequest) ToJsonString() string

type DescribeDBSecurityGroupsRequestParams

type DescribeDBSecurityGroupsRequestParams struct {
	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDBSecurityGroupsResponse

type DescribeDBSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBSecurityGroupsResponseParams `json:"Response"`
}

func NewDescribeDBSecurityGroupsResponse

func NewDescribeDBSecurityGroupsResponse() (response *DescribeDBSecurityGroupsResponse)

func (*DescribeDBSecurityGroupsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSecurityGroupsResponse) ToJsonString

func (r *DescribeDBSecurityGroupsResponse) ToJsonString() string

type DescribeDBSecurityGroupsResponseParams

type DescribeDBSecurityGroupsResponseParams struct {
	// Security group details
	Groups []*SecurityGroup `json:"Groups,omitnil" name:"Groups"`

	// Instance VIP
	// Note: This field may return null, indicating that no valid values can be obtained.
	VIP *string `json:"VIP,omitnil" name:"VIP"`

	// Instance Port
	// Note: This field may return null, indicating that no valid value can be obtained.
	VPort *string `json:"VPort,omitnil" name:"VPort"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBSlowLogsRequest

type DescribeDBSlowLogsRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-hw0qj6m1
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Data entry number starting from which to return results
	Offset *uint64 `json:"Offset,omitnil" name:"Offset"`

	// Number of results to be returned
	Limit *uint64 `json:"Limit,omitnil" name:"Limit"`

	// Query start time in the format of 2016-07-23 14:55:20
	StartTime *string `json:"StartTime,omitnil" name:"StartTime"`

	// Shard ID of the instance in the format of shard-53ima8ln
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
	EndTime *string `json:"EndTime,omitnil" name:"EndTime"`

	// Specific name of the database to be queried
	Db *string `json:"Db,omitnil" name:"Db"`

	// Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`

	// Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
	Slave *int64 `json:"Slave,omitnil" name:"Slave"`
}

func NewDescribeDBSlowLogsRequest

func NewDescribeDBSlowLogsRequest() (request *DescribeDBSlowLogsRequest)

func (*DescribeDBSlowLogsRequest) FromJsonString

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

FromJsonString 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 DescribeDBSlowLogsRequestParams

type DescribeDBSlowLogsRequestParams struct {
	// Instance ID in the format of dcdbt-hw0qj6m1
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Data entry number starting from which to return results
	Offset *uint64 `json:"Offset,omitnil" name:"Offset"`

	// Number of results to be returned
	Limit *uint64 `json:"Limit,omitnil" name:"Limit"`

	// Query start time in the format of 2016-07-23 14:55:20
	StartTime *string `json:"StartTime,omitnil" name:"StartTime"`

	// Shard ID of the instance in the format of shard-53ima8ln
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Query end time in the format of 2016-08-22 14:55:20. If this parameter is left empty, the current time will be used as the query end time.
	EndTime *string `json:"EndTime,omitnil" name:"EndTime"`

	// Specific name of the database to be queried
	Db *string `json:"Db,omitnil" name:"Db"`

	// Sorting metric. Valid values: `query_time_sum`, `query_count`. Default value: `query_time_sum`
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: `desc` (descending), `asc` (ascending). Default value: `desc`
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`

	// Query slow queries from either the source or the replica. Valid values: `0` (source), `1` (replica). Default value: `0`
	Slave *int64 `json:"Slave,omitnil" name:"Slave"`
}

Predefined struct for user

type DescribeDBSlowLogsResponse

type DescribeDBSlowLogsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBSlowLogsResponseParams `json:"Response"`
}

func NewDescribeDBSlowLogsResponse

func NewDescribeDBSlowLogsResponse() (response *DescribeDBSlowLogsResponse)

func (*DescribeDBSlowLogsResponse) FromJsonString

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

FromJsonString 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 DescribeDBSlowLogsResponseParams

type DescribeDBSlowLogsResponseParams struct {
	// Sum of all statement lock durations
	LockTimeSum *float64 `json:"LockTimeSum,omitnil" name:"LockTimeSum"`

	// Total number of statement queries
	QueryCount *int64 `json:"QueryCount,omitnil" name:"QueryCount"`

	// Total number of results
	Total *int64 `json:"Total,omitnil" name:"Total"`

	// Sum of all statement query durations
	QueryTimeSum *float64 `json:"QueryTimeSum,omitnil" name:"QueryTimeSum"`

	// Slow query log data
	Data []*SlowLogData `json:"Data,omitnil" name:"Data"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBSyncModeRequest

type DescribeDBSyncModeRequest struct {
	*tchttp.BaseRequest

	// ID of an instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDBSyncModeRequest

func NewDescribeDBSyncModeRequest() (request *DescribeDBSyncModeRequest)

func (*DescribeDBSyncModeRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSyncModeRequest) ToJsonString

func (r *DescribeDBSyncModeRequest) ToJsonString() string

type DescribeDBSyncModeRequestParams

type DescribeDBSyncModeRequestParams struct {
	// ID of an instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDBSyncModeResponse

type DescribeDBSyncModeResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBSyncModeResponseParams `json:"Response"`
}

func NewDescribeDBSyncModeResponse

func NewDescribeDBSyncModeResponse() (response *DescribeDBSyncModeResponse)

func (*DescribeDBSyncModeResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBSyncModeResponse) ToJsonString

func (r *DescribeDBSyncModeResponse) ToJsonString() string

type DescribeDBSyncModeResponseParams

type DescribeDBSyncModeResponseParams struct {
	// Sync mode. 0: async; 1: strong sync; 2: downgradable strong sync
	SyncMode *int64 `json:"SyncMode,omitnil" name:"SyncMode"`

	// Whether a modification is in progress. 1: yes; 0: no.
	IsModifying *int64 `json:"IsModifying,omitnil" name:"IsModifying"`

	// Current sync mode. Valid values: `0` (async), `1` (sync).
	CurrentSyncMode *int64 `json:"CurrentSyncMode,omitnil" name:"CurrentSyncMode"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDBTmpInstancesRequest

type DescribeDBTmpInstancesRequest struct {
	*tchttp.BaseRequest

	// The instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDBTmpInstancesRequest

func NewDescribeDBTmpInstancesRequest() (request *DescribeDBTmpInstancesRequest)

func (*DescribeDBTmpInstancesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBTmpInstancesRequest) ToJsonString

func (r *DescribeDBTmpInstancesRequest) ToJsonString() string

type DescribeDBTmpInstancesRequestParams

type DescribeDBTmpInstancesRequestParams struct {
	// The instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDBTmpInstancesResponse

type DescribeDBTmpInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDBTmpInstancesResponseParams `json:"Response"`
}

func NewDescribeDBTmpInstancesResponse

func NewDescribeDBTmpInstancesResponse() (response *DescribeDBTmpInstancesResponse)

func (*DescribeDBTmpInstancesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDBTmpInstancesResponse) ToJsonString

func (r *DescribeDBTmpInstancesResponse) ToJsonString() string

type DescribeDBTmpInstancesResponseParams

type DescribeDBTmpInstancesResponseParams struct {
	// List of temp instances
	TmpInstances []*TmpInstance `json:"TmpInstances,omitnil" name:"TmpInstances"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDCDBInstanceDetailRequest

type DescribeDCDBInstanceDetailRequest struct {
	*tchttp.BaseRequest

	// Instance ID, such as dcdbt-7oaxtcb7.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDCDBInstanceDetailRequest

func NewDescribeDCDBInstanceDetailRequest() (request *DescribeDCDBInstanceDetailRequest)

func (*DescribeDCDBInstanceDetailRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstanceDetailRequest) ToJsonString

func (r *DescribeDCDBInstanceDetailRequest) ToJsonString() string

type DescribeDCDBInstanceDetailRequestParams

type DescribeDCDBInstanceDetailRequestParams struct {
	// Instance ID, such as dcdbt-7oaxtcb7.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDCDBInstanceDetailResponse

type DescribeDCDBInstanceDetailResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDCDBInstanceDetailResponseParams `json:"Response"`
}

func NewDescribeDCDBInstanceDetailResponse

func NewDescribeDCDBInstanceDetailResponse() (response *DescribeDCDBInstanceDetailResponse)

func (*DescribeDCDBInstanceDetailResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstanceDetailResponse) ToJsonString

func (r *DescribeDCDBInstanceDetailResponse) ToJsonString() string

type DescribeDCDBInstanceDetailResponseParams

type DescribeDCDBInstanceDetailResponseParams struct {
	// Instance ID, such as dcdbt-7oaxtcb7.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Instance status. Valid values: `0` (creating), `1` (running task), `2` (running), `3` (uninitialized), `-1` (isolated).
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Current status of the instance
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// Instance private IP address
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// Private port of instance
	Vport *int64 `json:"Vport,omitnil" name:"Vport"`

	// Number of instance nodes. Valid values: `2` (1-source-1-replica), `3` (1-source-2-replica).
	NodeCount *int64 `json:"NodeCount,omitnil" name:"NodeCount"`

	// Instance region, such as ap-guangzhou.
	Region *string `json:"Region,omitnil" name:"Region"`

	// Instance VPC ID, such as vpc-r9jr0de3.
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID of an instance, such as subnet-6rqs61o2.
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Public network status. Valid values: `0` (not enabled), `1` (enabled), `2` (disabled), `3`: (enabling), `4` (disabling).
	WanStatus *int64 `json:"WanStatus,omitnil" name:"WanStatus"`

	// Domain name for public network access, which can be resolved by the public network.
	WanDomain *string `json:"WanDomain,omitnil" name:"WanDomain"`

	// Public IP address, which can be accessed over the public network.
	WanVip *string `json:"WanVip,omitnil" name:"WanVip"`

	// Public network access port
	WanPort *int64 `json:"WanPort,omitnil" name:"WanPort"`

	// Project ID of the instance
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// Automatic renewal flag for an instance. Valid values: `0` (normal renewal), `1` (auto-renewal), `3` (no renewal upon expiration).
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil" name:"AutoRenewFlag"`

	// Dedicated cluster ID
	ExclusterId *string `json:"ExclusterId,omitnil" name:"ExclusterId"`

	// Billing mode. Valid values: `prepaid` (monthly subscription), `postpaid` (pay-as-you-go).
	PayMode *string `json:"PayMode,omitnil" name:"PayMode"`

	// Creation time of the instance in the format of 2006-01-02 15:04:05
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Expiration time of the instance in the format of 2006-01-02 15:04:05
	PeriodEndTime *string `json:"PeriodEndTime,omitnil" name:"PeriodEndTime"`

	// Database version information
	DbVersion *string `json:"DbVersion,omitnil" name:"DbVersion"`

	// Whether the instance supports audit. Valid values: `1` (yes), `0` (no).
	IsAuditSupported *int64 `json:"IsAuditSupported,omitnil" name:"IsAuditSupported"`

	// Whether data encryption is supported for an instance. Valid values: `1` (yes), `0` (no).
	IsEncryptSupported *int64 `json:"IsEncryptSupported,omitnil" name:"IsEncryptSupported"`

	// Instance machine model
	Machine *string `json:"Machine,omitnil" name:"Machine"`

	// Instance memory size in GB, which is the sum of the memory of all shards.
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Instance disk storage size in GB, which is the sum of the disk size of all shards.
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Instance storage space utilization. It is calculated by dividing the sum of the used disk size of all shards by the total disk size of all shards.
	StorageUsage *float64 `json:"StorageUsage,omitnil" name:"StorageUsage"`

	// Size of log storage space in GB
	LogStorage *int64 `json:"LogStorage,omitnil" name:"LogStorage"`

	// Product type ID
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// Source AZ
	MasterZone *string `json:"MasterZone,omitnil" name:"MasterZone"`

	// Replica AZ
	SlaveZones []*string `json:"SlaveZones,omitnil" name:"SlaveZones"`

	// Shard information
	Shards []*ShardBriefInfo `json:"Shards,omitnil" name:"Shards"`

	// Private network IPv6 address
	// Note: This field may return null, indicating that no valid values can be obtained.
	Vip6 *string `json:"Vip6,omitnil" name:"Vip6"`

	// Number of CPU cores of an instance.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// Instance QPS
	// Note: This field may return null, indicating that no valid values can be obtained.
	Qps *int64 `json:"Qps,omitnil" name:"Qps"`

	// Database engine
	// Note: This field may return null, indicating that no valid values can be obtained.
	DbEngine *string `json:"DbEngine,omitnil" name:"DbEngine"`

	// Whether IPv6 is supported.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Ipv6Flag *int64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// Public IPv6 address, which can be accessed over the public network
	// Note: This field may return null, indicating that no valid values can be obtained.
	WanVipv6 *string `json:"WanVipv6,omitnil" name:"WanVipv6"`

	// Public network status. Valid values: `0` (not enabled), `1` (enabled), `2` (disabled), `3`: (enabling), `4` (disabling).
	// Note: This field may return null, indicating that no valid values can be obtained.
	WanStatusIpv6 *int64 `json:"WanStatusIpv6,omitnil" name:"WanStatusIpv6"`

	// Public network IPv6 port
	// Note: This field may return null, indicating that no valid values can be obtained.
	WanPortIpv6 *int64 `json:"WanPortIpv6,omitnil" name:"WanPortIpv6"`

	// Tag information
	ResourceTags []*ResourceTag `json:"ResourceTags,omitnil" name:"ResourceTags"`

	// DCN type. Valid values: `0` (N/A), `1` (source instance), `2` (disaster recovery read-only instance)
	// Note: This field may return null, indicating that no valid values can be obtained.
	DcnFlag *int64 `json:"DcnFlag,omitnil" name:"DcnFlag"`

	// DCN status. Valid values: `0` (N/A), `1` (creating), `2` (syncing), `3` (disconnected).
	// Note: This field may return null, indicating that no valid values can be obtained.
	DcnStatus *int64 `json:"DcnStatus,omitnil" name:"DcnStatus"`

	// The number of DCN disaster recovery instances
	// Note: This field may return null, indicating that no valid values can be obtained.
	DcnDstNum *int64 `json:"DcnDstNum,omitnil" name:"DcnDstNum"`

	// Instance type. Valid values: `1` (dedicated primary instance), `2` (non-dedicated primary instance), `3` (non-dedicated disaster recovery read-only instance), `4` (dedicated disaster recovery read-only instance)
	// Note: This field may return null, indicating that no valid values can be obtained.
	InstanceType *int64 `json:"InstanceType,omitnil" name:"InstanceType"`

	// Whether the instance supports setting the connection limit, which is not supported for kernel version 10.1.
	// Note: This field may return null, indicating that no valid values can be obtained.
	IsMaxUserConnectionsSupported *bool `json:"IsMaxUserConnectionsSupported,omitnil" name:"IsMaxUserConnectionsSupported"`

	// The displayed database version
	// Note: This field may return null, indicating that no valid values can be obtained.
	DbVersionId *string `json:"DbVersionId,omitnil" name:"DbVersionId"`

	// Encryption status. Valid values: `0` (disabled), `1` (enabled).
	// Note: This field may return null, indicating that no valid values can be obtained.
	EncryptStatus *int64 `json:"EncryptStatus,omitnil" name:"EncryptStatus"`

	// Type of dedicated cluster. Valid values: `0` (public cloud), `1` (finance cage), `2` (CDC cluster).
	// Note: This field may return null, indicating that no valid values can be obtained.
	ExclusterType *int64 `json:"ExclusterType,omitnil" name:"ExclusterType"`

	// Nearby VPC access
	// Note: This field may return null, indicating that no valid values can be obtained.
	RsAccessStrategy *int64 `json:"RsAccessStrategy,omitnil" name:"RsAccessStrategy"`

	// Unclaimed network resource
	ReservedNetResources []*ReservedNetResource `json:"ReservedNetResources,omitnil" name:"ReservedNetResources"`

	// Whether physical replication is supported.
	IsPhysicalReplicationSupported *bool `json:"IsPhysicalReplicationSupported,omitnil" name:"IsPhysicalReplicationSupported"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDCDBInstanceNodeInfoRequest

type DescribeDCDBInstanceNodeInfoRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The maximum number of results returned at a time. Value range: (0-100]. Default value: `100`.
	Limit *uint64 `json:"Limit,omitnil" name:"Limit"`

	// Offset of the returned results. Default value: `0`.
	Offset *uint64 `json:"Offset,omitnil" name:"Offset"`
}

func NewDescribeDCDBInstanceNodeInfoRequest

func NewDescribeDCDBInstanceNodeInfoRequest() (request *DescribeDCDBInstanceNodeInfoRequest)

func (*DescribeDCDBInstanceNodeInfoRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstanceNodeInfoRequest) ToJsonString

func (r *DescribeDCDBInstanceNodeInfoRequest) ToJsonString() string

type DescribeDCDBInstanceNodeInfoRequestParams

type DescribeDCDBInstanceNodeInfoRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The maximum number of results returned at a time. Value range: (0-100]. Default value: `100`.
	Limit *uint64 `json:"Limit,omitnil" name:"Limit"`

	// Offset of the returned results. Default value: `0`.
	Offset *uint64 `json:"Offset,omitnil" name:"Offset"`
}

Predefined struct for user

type DescribeDCDBInstanceNodeInfoResponse

type DescribeDCDBInstanceNodeInfoResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDCDBInstanceNodeInfoResponseParams `json:"Response"`
}

func NewDescribeDCDBInstanceNodeInfoResponse

func NewDescribeDCDBInstanceNodeInfoResponse() (response *DescribeDCDBInstanceNodeInfoResponse)

func (*DescribeDCDBInstanceNodeInfoResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstanceNodeInfoResponse) ToJsonString

func (r *DescribeDCDBInstanceNodeInfoResponse) ToJsonString() string

type DescribeDCDBInstanceNodeInfoResponseParams

type DescribeDCDBInstanceNodeInfoResponseParams struct {
	// Total number of nodes
	TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"`

	// Node information
	NodesInfo []*BriefNodeInfo `json:"NodesInfo,omitnil" name:"NodesInfo"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDCDBInstancesRequest

type DescribeDCDBInstancesRequest struct {
	*tchttp.BaseRequest

	// Query by instance ID or IDs. Instance ID is in the format of dcdbt-2t4cf98d
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Search field name. Valid values: instancename (search by instance name); vip (search by private IP); all (search by instance ID, instance name, and private IP).
	SearchName *string `json:"SearchName,omitnil" name:"SearchName"`

	// Search keyword. Fuzzy search is supported. Multiple keywords should be separated by line breaks (`\n`).
	SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"`

	// Query by project ID
	ProjectIds []*int64 `json:"ProjectIds,omitnil" name:"ProjectIds"`

	// Whether to search by VPC
	IsFilterVpc *bool `json:"IsFilterVpc,omitnil" name:"IsFilterVpc"`

	// VPC ID, which is valid when `IsFilterVpc` is 1
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is valid when `IsFilterVpc` is 1
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Sort by field. Valid values: projectId; createtime; instancename
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sort by type. Valid values: desc; asc
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Number of returned results. Default value: 10. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// 1: non-dedicated cluster; 2: dedicated cluster; 0: all
	ExclusterType *int64 `json:"ExclusterType,omitnil" name:"ExclusterType"`

	// Identifies whether to use the `ExclusterType` field. false: no; true: yes
	IsFilterExcluster *bool `json:"IsFilterExcluster,omitnil" name:"IsFilterExcluster"`

	// Dedicated cluster ID
	ExclusterIds []*string `json:"ExclusterIds,omitnil" name:"ExclusterIds"`

	// Tag key used in queries
	TagKeys []*string `json:"TagKeys,omitnil" name:"TagKeys"`

	// Instance types used in filtering. Valid values: 1 (dedicated instance), 2 (primary instance), 3 (disaster recovery instance). Multiple values should be separated by commas.
	FilterInstanceType *string `json:"FilterInstanceType,omitnil" name:"FilterInstanceType"`

	// Use this filter to include instances in specific statuses
	Status []*int64 `json:"Status,omitnil" name:"Status"`

	// Use this filter to exclude instances in specific statuses
	ExcludeStatus []*int64 `json:"ExcludeStatus,omitnil" name:"ExcludeStatus"`
}

func NewDescribeDCDBInstancesRequest

func NewDescribeDCDBInstancesRequest() (request *DescribeDCDBInstancesRequest)

func (*DescribeDCDBInstancesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstancesRequest) ToJsonString

func (r *DescribeDCDBInstancesRequest) ToJsonString() string

type DescribeDCDBInstancesRequestParams

type DescribeDCDBInstancesRequestParams struct {
	// Query by instance ID or IDs. Instance ID is in the format of dcdbt-2t4cf98d
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Search field name. Valid values: instancename (search by instance name); vip (search by private IP); all (search by instance ID, instance name, and private IP).
	SearchName *string `json:"SearchName,omitnil" name:"SearchName"`

	// Search keyword. Fuzzy search is supported. Multiple keywords should be separated by line breaks (`\n`).
	SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"`

	// Query by project ID
	ProjectIds []*int64 `json:"ProjectIds,omitnil" name:"ProjectIds"`

	// Whether to search by VPC
	IsFilterVpc *bool `json:"IsFilterVpc,omitnil" name:"IsFilterVpc"`

	// VPC ID, which is valid when `IsFilterVpc` is 1
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// VPC subnet ID, which is valid when `IsFilterVpc` is 1
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Sort by field. Valid values: projectId; createtime; instancename
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sort by type. Valid values: desc; asc
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Number of returned results. Default value: 10. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// 1: non-dedicated cluster; 2: dedicated cluster; 0: all
	ExclusterType *int64 `json:"ExclusterType,omitnil" name:"ExclusterType"`

	// Identifies whether to use the `ExclusterType` field. false: no; true: yes
	IsFilterExcluster *bool `json:"IsFilterExcluster,omitnil" name:"IsFilterExcluster"`

	// Dedicated cluster ID
	ExclusterIds []*string `json:"ExclusterIds,omitnil" name:"ExclusterIds"`

	// Tag key used in queries
	TagKeys []*string `json:"TagKeys,omitnil" name:"TagKeys"`

	// Instance types used in filtering. Valid values: 1 (dedicated instance), 2 (primary instance), 3 (disaster recovery instance). Multiple values should be separated by commas.
	FilterInstanceType *string `json:"FilterInstanceType,omitnil" name:"FilterInstanceType"`

	// Use this filter to include instances in specific statuses
	Status []*int64 `json:"Status,omitnil" name:"Status"`

	// Use this filter to exclude instances in specific statuses
	ExcludeStatus []*int64 `json:"ExcludeStatus,omitnil" name:"ExcludeStatus"`
}

Predefined struct for user

type DescribeDCDBInstancesResponse

type DescribeDCDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDCDBInstancesResponseParams `json:"Response"`
}

func NewDescribeDCDBInstancesResponse

func NewDescribeDCDBInstancesResponse() (response *DescribeDCDBInstancesResponse)

func (*DescribeDCDBInstancesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBInstancesResponse) ToJsonString

func (r *DescribeDCDBInstancesResponse) ToJsonString() string

type DescribeDCDBInstancesResponseParams

type DescribeDCDBInstancesResponseParams struct {
	// Number of eligible instances
	TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"`

	// List of instance details
	Instances []*DCDBInstanceInfo `json:"Instances,omitnil" name:"Instances"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDCDBPriceRequest

type DescribeDCDBPriceRequest struct {
	*tchttp.BaseRequest

	// AZ ID of the purchased instance.
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// The number of instances to be purchased. You can purchase 1-10 instances.
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Validity period in months
	Period *int64 `json:"Period,omitnil" name:"Period"`

	// Number of nodes in a single shard, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// Shard memory size in GB, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage size in GB, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// The number of shards in the instance. Value range: 2-8. Upgrade your instance to have up to 64 shards if you require more.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// Billing type. Valid values: `postpaid` (pay-as-you-go), `prepaid` (monthly subscription).
	Paymode *string `json:"Paymode,omitnil" name:"Paymode"`

	// Price unit. Valid values:
	// `* pent` (cent),
	// `* microPent` (microcent).
	AmountUnit *string `json:"AmountUnit,omitnil" name:"AmountUnit"`
}

func NewDescribeDCDBPriceRequest

func NewDescribeDCDBPriceRequest() (request *DescribeDCDBPriceRequest)

func (*DescribeDCDBPriceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBPriceRequest) ToJsonString

func (r *DescribeDCDBPriceRequest) ToJsonString() string

type DescribeDCDBPriceRequestParams

type DescribeDCDBPriceRequestParams struct {
	// AZ ID of the purchased instance.
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// The number of instances to be purchased. You can purchase 1-10 instances.
	Count *int64 `json:"Count,omitnil" name:"Count"`

	// Validity period in months
	Period *int64 `json:"Period,omitnil" name:"Period"`

	// Number of nodes in a single shard, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`

	// Shard memory size in GB, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage size in GB, which can be obtained
	//  by querying the instance specification through the `DescribeDBInstanceSpecs` API.
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// The number of shards in the instance. Value range: 2-8. Upgrade your instance to have up to 64 shards if you require more.
	ShardCount *int64 `json:"ShardCount,omitnil" name:"ShardCount"`

	// Billing type. Valid values: `postpaid` (pay-as-you-go), `prepaid` (monthly subscription).
	Paymode *string `json:"Paymode,omitnil" name:"Paymode"`

	// Price unit. Valid values:
	// `* pent` (cent),
	// `* microPent` (microcent).
	AmountUnit *string `json:"AmountUnit,omitnil" name:"AmountUnit"`
}

Predefined struct for user

type DescribeDCDBPriceResponse

type DescribeDCDBPriceResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDCDBPriceResponseParams `json:"Response"`
}

func NewDescribeDCDBPriceResponse

func NewDescribeDCDBPriceResponse() (response *DescribeDCDBPriceResponse)

func (*DescribeDCDBPriceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBPriceResponse) ToJsonString

func (r *DescribeDCDBPriceResponse) ToJsonString() string

type DescribeDCDBPriceResponseParams

type DescribeDCDBPriceResponseParams struct {
	// Original price
	// * Unit: Cent (default). If the request parameter contains `AmountUnit`, see `AmountUnit` description.
	// * Currency: CNY (Chinese site), USD (international site)
	OriginalPrice *int64 `json:"OriginalPrice,omitnil" name:"OriginalPrice"`

	// The actual price may be different from the original price due to discounts.
	// * Unit: Cent (default). If the request parameter contains `AmountUnit`, see `AmountUnit` description.
	// * Currency: CNY (Chinese site), USD (international site)
	Price *int64 `json:"Price,omitnil" name:"Price"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDCDBShardsRequest

type DescribeDCDBShardsRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID list.
	ShardInstanceIds []*string `json:"ShardInstanceIds,omitnil" name:"ShardInstanceIds"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// Sort by field. Only `createtime` is supported currently.
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: desc, asc
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`
}

func NewDescribeDCDBShardsRequest

func NewDescribeDCDBShardsRequest() (request *DescribeDCDBShardsRequest)

func (*DescribeDCDBShardsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBShardsRequest) ToJsonString

func (r *DescribeDCDBShardsRequest) ToJsonString() string

type DescribeDCDBShardsRequestParams

type DescribeDCDBShardsRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID list.
	ShardInstanceIds []*string `json:"ShardInstanceIds,omitnil" name:"ShardInstanceIds"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil" name:"Offset"`

	// Number of returned results. Default value: 20. Maximum value: 100.
	Limit *int64 `json:"Limit,omitnil" name:"Limit"`

	// Sort by field. Only `createtime` is supported currently.
	OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"`

	// Sorting order. Valid values: desc, asc
	OrderByType *string `json:"OrderByType,omitnil" name:"OrderByType"`
}

Predefined struct for user

type DescribeDCDBShardsResponse

type DescribeDCDBShardsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDCDBShardsResponseParams `json:"Response"`
}

func NewDescribeDCDBShardsResponse

func NewDescribeDCDBShardsResponse() (response *DescribeDCDBShardsResponse)

func (*DescribeDCDBShardsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDCDBShardsResponse) ToJsonString

func (r *DescribeDCDBShardsResponse) ToJsonString() string

type DescribeDCDBShardsResponseParams

type DescribeDCDBShardsResponseParams struct {
	// Number of eligible shards
	TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"`

	// Shard information list
	Shards []*DCDBShardInfo `json:"Shards,omitnil" name:"Shards"`

	// Disaster recovery flag. Valid values: 0 (none), 1 (source instance), 2 (disaster recovery instance)
	// Note: This field may return null, indicating that no valid values can be obtained.
	DcnFlag *int64 `json:"DcnFlag,omitnil" name:"DcnFlag"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDatabaseObjectsRequest

type DescribeDatabaseObjectsRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name, which can be obtained through the `DescribeDatabases` API.
	DbName *string `json:"DbName,omitnil" name:"DbName"`
}

func NewDescribeDatabaseObjectsRequest

func NewDescribeDatabaseObjectsRequest() (request *DescribeDatabaseObjectsRequest)

func (*DescribeDatabaseObjectsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDatabaseObjectsRequest) ToJsonString

func (r *DescribeDatabaseObjectsRequest) ToJsonString() string

type DescribeDatabaseObjectsRequestParams

type DescribeDatabaseObjectsRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name, which can be obtained through the `DescribeDatabases` API.
	DbName *string `json:"DbName,omitnil" name:"DbName"`
}

Predefined struct for user

type DescribeDatabaseObjectsResponse

type DescribeDatabaseObjectsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDatabaseObjectsResponseParams `json:"Response"`
}

func NewDescribeDatabaseObjectsResponse

func NewDescribeDatabaseObjectsResponse() (response *DescribeDatabaseObjectsResponse)

func (*DescribeDatabaseObjectsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDatabaseObjectsResponse) ToJsonString

func (r *DescribeDatabaseObjectsResponse) ToJsonString() string

type DescribeDatabaseObjectsResponseParams

type DescribeDatabaseObjectsResponseParams struct {
	// Passed through from input parameters.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Table list.
	Tables []*DatabaseTable `json:"Tables,omitnil" name:"Tables"`

	// View list.
	Views []*DatabaseView `json:"Views,omitnil" name:"Views"`

	// Stored procedure list.
	Procs []*DatabaseProcedure `json:"Procs,omitnil" name:"Procs"`

	// Function list.
	Funcs []*DatabaseFunction `json:"Funcs,omitnil" name:"Funcs"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDatabaseTableRequest

type DescribeDatabaseTableRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name, which can be obtained through the `DescribeDatabases` API.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Table name, which can be obtained through the `DescribeDatabaseObjects` API.
	Table *string `json:"Table,omitnil" name:"Table"`
}

func NewDescribeDatabaseTableRequest

func NewDescribeDatabaseTableRequest() (request *DescribeDatabaseTableRequest)

func (*DescribeDatabaseTableRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDatabaseTableRequest) ToJsonString

func (r *DescribeDatabaseTableRequest) ToJsonString() string

type DescribeDatabaseTableRequestParams

type DescribeDatabaseTableRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name, which can be obtained through the `DescribeDatabases` API.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Table name, which can be obtained through the `DescribeDatabaseObjects` API.
	Table *string `json:"Table,omitnil" name:"Table"`
}

Predefined struct for user

type DescribeDatabaseTableResponse

type DescribeDatabaseTableResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDatabaseTableResponseParams `json:"Response"`
}

func NewDescribeDatabaseTableResponse

func NewDescribeDatabaseTableResponse() (response *DescribeDatabaseTableResponse)

func (*DescribeDatabaseTableResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDatabaseTableResponse) ToJsonString

func (r *DescribeDatabaseTableResponse) ToJsonString() string

type DescribeDatabaseTableResponseParams

type DescribeDatabaseTableResponseParams struct {
	// Instance name.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database name.
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Table name.
	Table *string `json:"Table,omitnil" name:"Table"`

	// Column information.
	Cols []*TableColumn `json:"Cols,omitnil" name:"Cols"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDatabasesRequest

type DescribeDatabasesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDatabasesRequest

func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest)

func (*DescribeDatabasesRequest) FromJsonString

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

FromJsonString 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 DescribeDatabasesRequestParams

type DescribeDatabasesRequestParams struct {
	// Instance ID in the format of dcdbt-ow7t8lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDatabasesResponse

type DescribeDatabasesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDatabasesResponseParams `json:"Response"`
}

func NewDescribeDatabasesResponse

func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse)

func (*DescribeDatabasesResponse) FromJsonString

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

FromJsonString 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 DescribeDatabasesResponseParams

type DescribeDatabasesResponseParams struct {
	// The database list of this instance.
	Databases []*Database `json:"Databases,omitnil" name:"Databases"`

	// Passed through from input parameters.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeDcnDetailRequest

type DescribeDcnDetailRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeDcnDetailRequest

func NewDescribeDcnDetailRequest() (request *DescribeDcnDetailRequest)

func (*DescribeDcnDetailRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDcnDetailRequest) ToJsonString

func (r *DescribeDcnDetailRequest) ToJsonString() string

type DescribeDcnDetailRequestParams

type DescribeDcnDetailRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeDcnDetailResponse

type DescribeDcnDetailResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDcnDetailResponseParams `json:"Response"`
}

func NewDescribeDcnDetailResponse

func NewDescribeDcnDetailResponse() (response *DescribeDcnDetailResponse)

func (*DescribeDcnDetailResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDcnDetailResponse) ToJsonString

func (r *DescribeDcnDetailResponse) ToJsonString() string

type DescribeDcnDetailResponseParams

type DescribeDcnDetailResponseParams struct {
	// DCN synchronization details
	DcnDetails []*DcnDetailItem `json:"DcnDetails,omitnil" name:"DcnDetails"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeFileDownloadUrlRequest

type DescribeFileDownloadUrlRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Unsigned file path
	FilePath *string `json:"FilePath,omitnil" name:"FilePath"`
}

func NewDescribeFileDownloadUrlRequest

func NewDescribeFileDownloadUrlRequest() (request *DescribeFileDownloadUrlRequest)

func (*DescribeFileDownloadUrlRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeFileDownloadUrlRequest) ToJsonString

func (r *DescribeFileDownloadUrlRequest) ToJsonString() string

type DescribeFileDownloadUrlRequestParams

type DescribeFileDownloadUrlRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Shard ID
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Unsigned file path
	FilePath *string `json:"FilePath,omitnil" name:"FilePath"`
}

Predefined struct for user

type DescribeFileDownloadUrlResponse

type DescribeFileDownloadUrlResponse struct {
	*tchttp.BaseResponse
	Response *DescribeFileDownloadUrlResponseParams `json:"Response"`
}

func NewDescribeFileDownloadUrlResponse

func NewDescribeFileDownloadUrlResponse() (response *DescribeFileDownloadUrlResponse)

func (*DescribeFileDownloadUrlResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeFileDownloadUrlResponse) ToJsonString

func (r *DescribeFileDownloadUrlResponse) ToJsonString() string

type DescribeFileDownloadUrlResponseParams

type DescribeFileDownloadUrlResponseParams struct {
	// Signed download URL
	PreSignedUrl *string `json:"PreSignedUrl,omitnil" name:"PreSignedUrl"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeFlowRequest

type DescribeFlowRequest struct {
	*tchttp.BaseRequest

	// Task ID returned by an async request API.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`
}

func NewDescribeFlowRequest

func NewDescribeFlowRequest() (request *DescribeFlowRequest)

func (*DescribeFlowRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeFlowRequest) ToJsonString

func (r *DescribeFlowRequest) ToJsonString() string

type DescribeFlowRequestParams

type DescribeFlowRequestParams struct {
	// Task ID returned by an async request API.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`
}

Predefined struct for user

type DescribeFlowResponse

type DescribeFlowResponse struct {
	*tchttp.BaseResponse
	Response *DescribeFlowResponseParams `json:"Response"`
}

func NewDescribeFlowResponse

func NewDescribeFlowResponse() (response *DescribeFlowResponse)

func (*DescribeFlowResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeFlowResponse) ToJsonString

func (r *DescribeFlowResponse) ToJsonString() string

type DescribeFlowResponseParams

type DescribeFlowResponseParams struct {
	// Task status. Valid values: `0` (succeeded), `1` (failed), `2` (running)
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeLogFileRetentionPeriodRequest

type DescribeLogFileRetentionPeriodRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of `tdsql-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDescribeLogFileRetentionPeriodRequest

func NewDescribeLogFileRetentionPeriodRequest() (request *DescribeLogFileRetentionPeriodRequest)

func (*DescribeLogFileRetentionPeriodRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeLogFileRetentionPeriodRequest) ToJsonString

type DescribeLogFileRetentionPeriodRequestParams

type DescribeLogFileRetentionPeriodRequestParams struct {
	// Instance ID in the format of `tdsql-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DescribeLogFileRetentionPeriodResponse

type DescribeLogFileRetentionPeriodResponse struct {
	*tchttp.BaseResponse
	Response *DescribeLogFileRetentionPeriodResponseParams `json:"Response"`
}

func NewDescribeLogFileRetentionPeriodResponse

func NewDescribeLogFileRetentionPeriodResponse() (response *DescribeLogFileRetentionPeriodResponse)

func (*DescribeLogFileRetentionPeriodResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeLogFileRetentionPeriodResponse) ToJsonString

type DescribeLogFileRetentionPeriodResponseParams

type DescribeLogFileRetentionPeriodResponseParams struct {
	// Instance ID in the format of `tdsql-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Backup log retention days
	Days *uint64 `json:"Days,omitnil" name:"Days"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeOrdersRequest

type DescribeOrdersRequest struct {
	*tchttp.BaseRequest

	// List of long order IDs to be queried, which are returned by the APIs for creating, renewing, or scaling instances.
	DealNames []*string `json:"DealNames,omitnil" name:"DealNames"`
}

func NewDescribeOrdersRequest

func NewDescribeOrdersRequest() (request *DescribeOrdersRequest)

func (*DescribeOrdersRequest) FromJsonString

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

FromJsonString 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 DescribeOrdersRequestParams

type DescribeOrdersRequestParams struct {
	// List of long order IDs to be queried, which are returned by the APIs for creating, renewing, or scaling instances.
	DealNames []*string `json:"DealNames,omitnil" name:"DealNames"`
}

Predefined struct for user

type DescribeOrdersResponse

type DescribeOrdersResponse struct {
	*tchttp.BaseResponse
	Response *DescribeOrdersResponseParams `json:"Response"`
}

func NewDescribeOrdersResponse

func NewDescribeOrdersResponse() (response *DescribeOrdersResponse)

func (*DescribeOrdersResponse) FromJsonString

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

FromJsonString 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 DescribeOrdersResponseParams

type DescribeOrdersResponseParams struct {
	// Returned number of orders
	TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"`

	// Order information list
	Deals []*Deal `json:"Deals,omitnil" name:"Deals"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DescribeProjectSecurityGroupsRequest

type DescribeProjectSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`
}

func NewDescribeProjectSecurityGroupsRequest

func NewDescribeProjectSecurityGroupsRequest() (request *DescribeProjectSecurityGroupsRequest)

func (*DescribeProjectSecurityGroupsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProjectSecurityGroupsRequest) ToJsonString

func (r *DescribeProjectSecurityGroupsRequest) ToJsonString() string

type DescribeProjectSecurityGroupsRequestParams

type DescribeProjectSecurityGroupsRequestParams struct {
	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`
}

Predefined struct for user

type DescribeProjectSecurityGroupsResponse

type DescribeProjectSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeProjectSecurityGroupsResponseParams `json:"Response"`
}

func NewDescribeProjectSecurityGroupsResponse

func NewDescribeProjectSecurityGroupsResponse() (response *DescribeProjectSecurityGroupsResponse)

func (*DescribeProjectSecurityGroupsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeProjectSecurityGroupsResponse) ToJsonString

type DescribeProjectSecurityGroupsResponseParams

type DescribeProjectSecurityGroupsResponseParams struct {
	// Security group details
	Groups []*SecurityGroup `json:"Groups,omitnil" name:"Groups"`

	// Number of security groups.
	Total *uint64 `json:"Total,omitnil" name:"Total"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DestroyDCDBInstanceRequest

type DestroyDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDestroyDCDBInstanceRequest

func NewDestroyDCDBInstanceRequest() (request *DestroyDCDBInstanceRequest)

func (*DestroyDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DestroyDCDBInstanceRequest) ToJsonString

func (r *DestroyDCDBInstanceRequest) ToJsonString() string

type DestroyDCDBInstanceRequestParams

type DestroyDCDBInstanceRequestParams struct {
	// Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DestroyDCDBInstanceResponse

type DestroyDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *DestroyDCDBInstanceResponseParams `json:"Response"`
}

func NewDestroyDCDBInstanceResponse

func NewDestroyDCDBInstanceResponse() (response *DestroyDCDBInstanceResponse)

func (*DestroyDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DestroyDCDBInstanceResponse) ToJsonString

func (r *DestroyDCDBInstanceResponse) ToJsonString() string

type DestroyDCDBInstanceResponseParams

type DestroyDCDBInstanceResponseParams struct {
	// Instance ID, which is the same as the request parameter `InstanceId`.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Async task ID, which can be used in the [DescribeFlow](https://intl.cloud.tencent.com/document/product/557/56485?from_cn_redirect=1) API to query the async task result.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DestroyHourDCDBInstanceRequest

type DestroyHourDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewDestroyHourDCDBInstanceRequest

func NewDestroyHourDCDBInstanceRequest() (request *DestroyHourDCDBInstanceRequest)

func (*DestroyHourDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DestroyHourDCDBInstanceRequest) ToJsonString

func (r *DestroyHourDCDBInstanceRequest) ToJsonString() string

type DestroyHourDCDBInstanceRequestParams

type DestroyHourDCDBInstanceRequestParams struct {
	// Instance ID in the format of tdsqlshard-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type DestroyHourDCDBInstanceResponse

type DestroyHourDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *DestroyHourDCDBInstanceResponseParams `json:"Response"`
}

func NewDestroyHourDCDBInstanceResponse

func NewDestroyHourDCDBInstanceResponse() (response *DestroyHourDCDBInstanceResponse)

func (*DestroyHourDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DestroyHourDCDBInstanceResponse) ToJsonString

func (r *DestroyHourDCDBInstanceResponse) ToJsonString() string

type DestroyHourDCDBInstanceResponseParams

type DestroyHourDCDBInstanceResponseParams struct {
	// Async task ID, which can be used in the [DescribeFlow](https://intl.cloud.tencent.com/document/product/557/56485?from_cn_redirect=1) API to query the async task result.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// Instance ID, which is the same as the request parameter `InstanceId`.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type DisassociateSecurityGroupsRequest

type DisassociateSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Instance ID list, which is an array of one or more instance IDs.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

func NewDisassociateSecurityGroupsRequest

func NewDisassociateSecurityGroupsRequest() (request *DisassociateSecurityGroupsRequest)

func (*DisassociateSecurityGroupsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateSecurityGroupsRequest) ToJsonString

func (r *DisassociateSecurityGroupsRequest) ToJsonString() string

type DisassociateSecurityGroupsRequestParams

type DisassociateSecurityGroupsRequestParams struct {
	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Instance ID list, which is an array of one or more instance IDs.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

Predefined struct for user

type DisassociateSecurityGroupsResponse

type DisassociateSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *DisassociateSecurityGroupsResponseParams `json:"Response"`
}

func NewDisassociateSecurityGroupsResponse

func NewDisassociateSecurityGroupsResponse() (response *DisassociateSecurityGroupsResponse)

func (*DisassociateSecurityGroupsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DisassociateSecurityGroupsResponse) ToJsonString

func (r *DisassociateSecurityGroupsResponse) ToJsonString() string

type DisassociateSecurityGroupsResponseParams

type DisassociateSecurityGroupsResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ExpandShardConfig

type ExpandShardConfig struct {
	// Shard IDs in array
	ShardInstanceIds []*string `json:"ShardInstanceIds,omitnil" name:"ShardInstanceIds"`

	// Shard memory capacity in GB
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage capacity in GB
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`

	// Number of shard nodes
	ShardNodeCount *int64 `json:"ShardNodeCount,omitnil" name:"ShardNodeCount"`
}

type GrantAccountPrivilegesRequest

type GrantAccountPrivilegesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Global permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`, `SHOW DATABASES`, `REPLICATION CLIENT`, `REPLICATION SLAVE`.
	// Database permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`.
	// Table permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Field permission. Valid values: `INSERT`, `REFERENCES`, `SELECT`, `UPDATE`.
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`

	// Type. Valid values: `table`, `\*`. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be set (i.e., `db.\*`), in which case the `Object` parameter will be ignored
	Type *string `json:"Type,omitnil" name:"Type"`

	// Type name. For example, if `Type` is table, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty
	Object *string `json:"Object,omitnil" name:"Object"`

	// If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the field
	ColName *string `json:"ColName,omitnil" name:"ColName"`
}

func NewGrantAccountPrivilegesRequest

func NewGrantAccountPrivilegesRequest() (request *GrantAccountPrivilegesRequest)

func (*GrantAccountPrivilegesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GrantAccountPrivilegesRequest) ToJsonString

func (r *GrantAccountPrivilegesRequest) ToJsonString() string

type GrantAccountPrivilegesRequestParams

type GrantAccountPrivilegesRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored
	DbName *string `json:"DbName,omitnil" name:"DbName"`

	// Global permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`, `SHOW DATABASES`, `REPLICATION CLIENT`, `REPLICATION SLAVE`.
	// Database permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE TEMPORARY TABLES`, `LOCK TABLES`, `EXECUTE`, `CREATE VIEW`, `SHOW VIEW`, `CREATE ROUTINE`, `ALTER ROUTINE`, `EVENT`, `TRIGGER`.
	// Table permission. Valid values: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Field permission. Valid values: `INSERT`, `REFERENCES`, `SELECT`, `UPDATE`.
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`

	// Type. Valid values: `table`, `\*`. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be set (i.e., `db.\*`), in which case the `Object` parameter will be ignored
	Type *string `json:"Type,omitnil" name:"Type"`

	// Type name. For example, if `Type` is table, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or empty
	Object *string `json:"Object,omitnil" name:"Object"`

	// If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the field
	ColName *string `json:"ColName,omitnil" name:"ColName"`
}

Predefined struct for user

type GrantAccountPrivilegesResponse

type GrantAccountPrivilegesResponse struct {
	*tchttp.BaseResponse
	Response *GrantAccountPrivilegesResponseParams `json:"Response"`
}

func NewGrantAccountPrivilegesResponse

func NewGrantAccountPrivilegesResponse() (response *GrantAccountPrivilegesResponse)

func (*GrantAccountPrivilegesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GrantAccountPrivilegesResponse) ToJsonString

func (r *GrantAccountPrivilegesResponse) ToJsonString() string

type GrantAccountPrivilegesResponseParams

type GrantAccountPrivilegesResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type InitDCDBInstancesRequest

type InitDCDBInstancesRequest struct {
	*tchttp.BaseRequest

	// List of IDs of instances to be initialized. The ID is in the format of `dcdbt-ow728lmc` and can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Parameter list. Valid values: character_set_server (character set; required); lower_case_table_names (table name case sensitivity; required; 0: case-sensitive, 1: case-insensitive); innodb_page_size (InnoDB data page; default size: 16 KB); sync_mode (sync mode; 0: async; 1: strong sync; 2: downgradable strong sync; default value: strong sync).
	Params []*DBParamValue `json:"Params,omitnil" name:"Params"`
}

func NewInitDCDBInstancesRequest

func NewInitDCDBInstancesRequest() (request *InitDCDBInstancesRequest)

func (*InitDCDBInstancesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InitDCDBInstancesRequest) ToJsonString

func (r *InitDCDBInstancesRequest) ToJsonString() string

type InitDCDBInstancesRequestParams

type InitDCDBInstancesRequestParams struct {
	// List of IDs of instances to be initialized. The ID is in the format of `dcdbt-ow728lmc` and can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// Parameter list. Valid values: character_set_server (character set; required); lower_case_table_names (table name case sensitivity; required; 0: case-sensitive, 1: case-insensitive); innodb_page_size (InnoDB data page; default size: 16 KB); sync_mode (sync mode; 0: async; 1: strong sync; 2: downgradable strong sync; default value: strong sync).
	Params []*DBParamValue `json:"Params,omitnil" name:"Params"`
}

Predefined struct for user

type InitDCDBInstancesResponse

type InitDCDBInstancesResponse struct {
	*tchttp.BaseResponse
	Response *InitDCDBInstancesResponseParams `json:"Response"`
}

func NewInitDCDBInstancesResponse

func NewInitDCDBInstancesResponse() (response *InitDCDBInstancesResponse)

func (*InitDCDBInstancesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InitDCDBInstancesResponse) ToJsonString

func (r *InitDCDBInstancesResponse) ToJsonString() string

type InitDCDBInstancesResponseParams

type InitDCDBInstancesResponseParams struct {
	// Async task ID. The task status can be queried through the `DescribeFlow` API.
	FlowIds []*uint64 `json:"FlowIds,omitnil" name:"FlowIds"`

	// Passed through from input parameters.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type InstanceBackupFileItem

type InstanceBackupFileItem struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`

	// Instance status
	InstanceStatus *int64 `json:"InstanceStatus,omitnil" name:"InstanceStatus"`

	// Shard ID
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// File path
	FilePath *string `json:"FilePath,omitnil" name:"FilePath"`

	// File name
	FileName *string `json:"FileName,omitnil" name:"FileName"`

	// File size
	FileSize *int64 `json:"FileSize,omitnil" name:"FileSize"`

	// Backup type. Valid values: `Data` (data backup), `Binlog` (Binlog backup), `Errlog` (error log), `Slowlog` (slow log).
	BackupType *string `json:"BackupType,omitnil" name:"BackupType"`

	// Manual backup. Valid values: `0` (no), `1` (yes).
	ManualBackup *int64 `json:"ManualBackup,omitnil" name:"ManualBackup"`

	// Backup start time
	StartTime *string `json:"StartTime,omitnil" name:"StartTime"`

	// Backup end time
	EndTime *string `json:"EndTime,omitnil" name:"EndTime"`
}

type IsolateDCDBInstanceRequest

type IsolateDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of `tdsqlshard-avw0207d`,  which is the same as the instance ID displayed on the TencentDB console and can be queried through the `DescribeDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

func NewIsolateDCDBInstanceRequest

func NewIsolateDCDBInstanceRequest() (request *IsolateDCDBInstanceRequest)

func (*IsolateDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateDCDBInstanceRequest) ToJsonString

func (r *IsolateDCDBInstanceRequest) ToJsonString() string

type IsolateDCDBInstanceRequestParams

type IsolateDCDBInstanceRequestParams struct {
	// Instance ID in the format of `tdsqlshard-avw0207d`,  which is the same as the instance ID displayed on the TencentDB console and can be queried through the `DescribeDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

Predefined struct for user

type IsolateDCDBInstanceResponse

type IsolateDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *IsolateDCDBInstanceResponseParams `json:"Response"`
}

func NewIsolateDCDBInstanceResponse

func NewIsolateDCDBInstanceResponse() (response *IsolateDCDBInstanceResponse)

func (*IsolateDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateDCDBInstanceResponse) ToJsonString

func (r *IsolateDCDBInstanceResponse) ToJsonString() string

type IsolateDCDBInstanceResponseParams

type IsolateDCDBInstanceResponseParams struct {
	// IDs of isolated instances
	SuccessInstanceIds []*string `json:"SuccessInstanceIds,omitnil" name:"SuccessInstanceIds"`

	// IDs of instances failed to be isolated
	FailedInstanceIds []*string `json:"FailedInstanceIds,omitnil" name:"FailedInstanceIds"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type IsolateDedicatedDBInstanceRequest

type IsolateDedicatedDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of `dcdbt-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewIsolateDedicatedDBInstanceRequest

func NewIsolateDedicatedDBInstanceRequest() (request *IsolateDedicatedDBInstanceRequest)

func (*IsolateDedicatedDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateDedicatedDBInstanceRequest) ToJsonString

func (r *IsolateDedicatedDBInstanceRequest) ToJsonString() string

type IsolateDedicatedDBInstanceRequestParams

type IsolateDedicatedDBInstanceRequestParams struct {
	// Instance ID in the format of `dcdbt-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type IsolateDedicatedDBInstanceResponse

type IsolateDedicatedDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *IsolateDedicatedDBInstanceResponseParams `json:"Response"`
}

func NewIsolateDedicatedDBInstanceResponse

func NewIsolateDedicatedDBInstanceResponse() (response *IsolateDedicatedDBInstanceResponse)

func (*IsolateDedicatedDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateDedicatedDBInstanceResponse) ToJsonString

func (r *IsolateDedicatedDBInstanceResponse) ToJsonString() string

type IsolateDedicatedDBInstanceResponseParams

type IsolateDedicatedDBInstanceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type IsolateHourDCDBInstanceRequest

type IsolateHourDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// ID list of the instances to be upgraded  in the format of  `dcdbt-ow728lmc`, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

func NewIsolateHourDCDBInstanceRequest

func NewIsolateHourDCDBInstanceRequest() (request *IsolateHourDCDBInstanceRequest)

func (*IsolateHourDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateHourDCDBInstanceRequest) ToJsonString

func (r *IsolateHourDCDBInstanceRequest) ToJsonString() string

type IsolateHourDCDBInstanceRequestParams

type IsolateHourDCDBInstanceRequestParams struct {
	// ID list of the instances to be upgraded  in the format of  `dcdbt-ow728lmc`, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`
}

Predefined struct for user

type IsolateHourDCDBInstanceResponse

type IsolateHourDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *IsolateHourDCDBInstanceResponseParams `json:"Response"`
}

func NewIsolateHourDCDBInstanceResponse

func NewIsolateHourDCDBInstanceResponse() (response *IsolateHourDCDBInstanceResponse)

func (*IsolateHourDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IsolateHourDCDBInstanceResponse) ToJsonString

func (r *IsolateHourDCDBInstanceResponse) ToJsonString() string

type IsolateHourDCDBInstanceResponseParams

type IsolateHourDCDBInstanceResponseParams struct {
	// IDs of isolated instances
	SuccessInstanceIds []*string `json:"SuccessInstanceIds,omitnil" name:"SuccessInstanceIds"`

	// IDs of instances failed to be isolated
	FailedInstanceIds []*string `json:"FailedInstanceIds,omitnil" name:"FailedInstanceIds"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type KillSessionRequest

type KillSessionRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// List of session IDs
	SessionId []*int64 `json:"SessionId,omitnil" name:"SessionId"`

	// Shard ID. Either `ShardId` or `ShardSerialId` is required.
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Shard sequence ID. Either `ShardId` or `ShardSerialId` is required.
	ShardSerialId *string `json:"ShardSerialId,omitnil" name:"ShardSerialId"`
}

func NewKillSessionRequest

func NewKillSessionRequest() (request *KillSessionRequest)

func (*KillSessionRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*KillSessionRequest) ToJsonString

func (r *KillSessionRequest) ToJsonString() string

type KillSessionRequestParams

type KillSessionRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// List of session IDs
	SessionId []*int64 `json:"SessionId,omitnil" name:"SessionId"`

	// Shard ID. Either `ShardId` or `ShardSerialId` is required.
	ShardId *string `json:"ShardId,omitnil" name:"ShardId"`

	// Shard sequence ID. Either `ShardId` or `ShardSerialId` is required.
	ShardSerialId *string `json:"ShardSerialId,omitnil" name:"ShardSerialId"`
}

Predefined struct for user

type KillSessionResponse

type KillSessionResponse struct {
	*tchttp.BaseResponse
	Response *KillSessionResponseParams `json:"Response"`
}

func NewKillSessionResponse

func NewKillSessionResponse() (response *KillSessionResponse)

func (*KillSessionResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*KillSessionResponse) ToJsonString

func (r *KillSessionResponse) ToJsonString() string

type KillSessionResponseParams

type KillSessionResponseParams struct {
	// Task ID
	TaskId *int64 `json:"TaskId,omitnil" name:"TaskId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type LogFileInfo

type LogFileInfo struct {
	// Last modified time of a log
	Mtime *uint64 `json:"Mtime,omitnil" name:"Mtime"`

	// File length
	Length *uint64 `json:"Length,omitnil" name:"Length"`

	// Uniform resource identifier (URI) used during log download
	Uri *string `json:"Uri,omitnil" name:"Uri"`

	// Filename
	FileName *string `json:"FileName,omitnil" name:"FileName"`
}

type ModifyAccountConfigRequest

type ModifyAccountConfigRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of  `tdsqlshard-kpkvq5oj`, which is the same as the one displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Account name
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Account domain name
	Host *string `json:"Host,omitnil" name:"Host"`

	// Configuration list. Each element in the list is a pair of `Config` and `Value`.
	Configs []*ConfigValue `json:"Configs,omitnil" name:"Configs"`
}

func NewModifyAccountConfigRequest

func NewModifyAccountConfigRequest() (request *ModifyAccountConfigRequest)

func (*ModifyAccountConfigRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountConfigRequest) ToJsonString

func (r *ModifyAccountConfigRequest) ToJsonString() string

type ModifyAccountConfigRequestParams

type ModifyAccountConfigRequestParams struct {
	// Instance ID in the format of  `tdsqlshard-kpkvq5oj`, which is the same as the one displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Account name
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Account domain name
	Host *string `json:"Host,omitnil" name:"Host"`

	// Configuration list. Each element in the list is a pair of `Config` and `Value`.
	Configs []*ConfigValue `json:"Configs,omitnil" name:"Configs"`
}

Predefined struct for user

type ModifyAccountConfigResponse

type ModifyAccountConfigResponse struct {
	*tchttp.BaseResponse
	Response *ModifyAccountConfigResponseParams `json:"Response"`
}

func NewModifyAccountConfigResponse

func NewModifyAccountConfigResponse() (response *ModifyAccountConfigResponse)

func (*ModifyAccountConfigResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountConfigResponse) ToJsonString

func (r *ModifyAccountConfigResponse) ToJsonString() string

type ModifyAccountConfigResponseParams

type ModifyAccountConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyAccountDescriptionRequest

type ModifyAccountDescriptionRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// New account remarks, which can contain 0-256 characters.
	Description *string `json:"Description,omitnil" name:"Description"`
}

func NewModifyAccountDescriptionRequest

func NewModifyAccountDescriptionRequest() (request *ModifyAccountDescriptionRequest)

func (*ModifyAccountDescriptionRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountDescriptionRequest) ToJsonString

func (r *ModifyAccountDescriptionRequest) ToJsonString() string

type ModifyAccountDescriptionRequestParams

type ModifyAccountDescriptionRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// New account remarks, which can contain 0-256 characters.
	Description *string `json:"Description,omitnil" name:"Description"`
}

Predefined struct for user

type ModifyAccountDescriptionResponse

type ModifyAccountDescriptionResponse struct {
	*tchttp.BaseResponse
	Response *ModifyAccountDescriptionResponseParams `json:"Response"`
}

func NewModifyAccountDescriptionResponse

func NewModifyAccountDescriptionResponse() (response *ModifyAccountDescriptionResponse)

func (*ModifyAccountDescriptionResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountDescriptionResponse) ToJsonString

func (r *ModifyAccountDescriptionResponse) ToJsonString() string

type ModifyAccountDescriptionResponseParams

type ModifyAccountDescriptionResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyAccountPrivilegesRequest

type ModifyAccountPrivilegesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of tdsql-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database account, including username and host address.
	Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"`

	// Global permission. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES", "INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER".
	// Note: If the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
	GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil" name:"GlobalPrivileges"`

	// Database permission. Value range: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER".
	// Note: If the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted database permissions, set `Privileges` to an empty array.
	DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitnil" name:"DatabasePrivileges"`

	// Database table permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Note: If the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted table permissions, set `Privileges` to an empty array.
	TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitnil" name:"TablePrivileges"`

	// Column permission in the table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES".
	// Note: If the parameter is not passed in, no change will be made to the granted column permissions. To clear the granted column permissions, set `Privileges` to an empty array.
	ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitnil" name:"ColumnPrivileges"`

	// Database view permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Note: If the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted view permissions, set `Privileges` to an empty array.
	ViewPrivileges []*ViewPrivileges `json:"ViewPrivileges,omitnil" name:"ViewPrivileges"`
}

func NewModifyAccountPrivilegesRequest

func NewModifyAccountPrivilegesRequest() (request *ModifyAccountPrivilegesRequest)

func (*ModifyAccountPrivilegesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountPrivilegesRequest) ToJsonString

func (r *ModifyAccountPrivilegesRequest) ToJsonString() string

type ModifyAccountPrivilegesRequestParams

type ModifyAccountPrivilegesRequestParams struct {
	// Instance ID in the format of tdsql-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Database account, including username and host address.
	Accounts []*Account `json:"Accounts,omitnil" name:"Accounts"`

	// Global permission. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES", "INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER".
	// Note: If the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.
	GlobalPrivileges []*string `json:"GlobalPrivileges,omitnil" name:"GlobalPrivileges"`

	// Database permission. Value range: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER".
	// Note: If the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted database permissions, set `Privileges` to an empty array.
	DatabasePrivileges []*DatabasePrivilege `json:"DatabasePrivileges,omitnil" name:"DatabasePrivileges"`

	// Database table permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Note: If the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted table permissions, set `Privileges` to an empty array.
	TablePrivileges []*TablePrivilege `json:"TablePrivileges,omitnil" name:"TablePrivileges"`

	// Column permission in the table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES".
	// Note: If the parameter is not passed in, no change will be made to the granted column permissions. To clear the granted column permissions, set `Privileges` to an empty array.
	ColumnPrivileges []*ColumnPrivilege `json:"ColumnPrivileges,omitnil" name:"ColumnPrivileges"`

	// Database view permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
	// Note: If the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted view permissions, set `Privileges` to an empty array.
	ViewPrivileges []*ViewPrivileges `json:"ViewPrivileges,omitnil" name:"ViewPrivileges"`
}

Predefined struct for user

type ModifyAccountPrivilegesResponse

type ModifyAccountPrivilegesResponse struct {
	*tchttp.BaseResponse
	Response *ModifyAccountPrivilegesResponseParams `json:"Response"`
}

func NewModifyAccountPrivilegesResponse

func NewModifyAccountPrivilegesResponse() (response *ModifyAccountPrivilegesResponse)

func (*ModifyAccountPrivilegesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyAccountPrivilegesResponse) ToJsonString

func (r *ModifyAccountPrivilegesResponse) ToJsonString() string

type ModifyAccountPrivilegesResponseParams

type ModifyAccountPrivilegesResponseParams struct {
	// Async task ID, which can be used in the [DescribeFlow](https://www.tencentcloud.com/document/product/237/16177) API to query the async task result.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBEncryptAttributesRequest

type ModifyDBEncryptAttributesRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of `tdsqlshard-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Whether to enable the data encryption (Once enabled, it can’t be disabled). Valid values: `1` (Yes), `0` (No. Default).
	EncryptEnabled *int64 `json:"EncryptEnabled,omitnil" name:"EncryptEnabled"`
}

func NewModifyDBEncryptAttributesRequest

func NewModifyDBEncryptAttributesRequest() (request *ModifyDBEncryptAttributesRequest)

func (*ModifyDBEncryptAttributesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBEncryptAttributesRequest) ToJsonString

func (r *ModifyDBEncryptAttributesRequest) ToJsonString() string

type ModifyDBEncryptAttributesRequestParams

type ModifyDBEncryptAttributesRequestParams struct {
	// Instance ID in the format of `tdsqlshard-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Whether to enable the data encryption (Once enabled, it can’t be disabled). Valid values: `1` (Yes), `0` (No. Default).
	EncryptEnabled *int64 `json:"EncryptEnabled,omitnil" name:"EncryptEnabled"`
}

Predefined struct for user

type ModifyDBEncryptAttributesResponse

type ModifyDBEncryptAttributesResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBEncryptAttributesResponseParams `json:"Response"`
}

func NewModifyDBEncryptAttributesResponse

func NewModifyDBEncryptAttributesResponse() (response *ModifyDBEncryptAttributesResponse)

func (*ModifyDBEncryptAttributesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBEncryptAttributesResponse) ToJsonString

func (r *ModifyDBEncryptAttributesResponse) ToJsonString() string

type ModifyDBEncryptAttributesResponseParams

type ModifyDBEncryptAttributesResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBInstanceNameRequest

type ModifyDBInstanceNameRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of tdsql-hdaprz0v
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`
}

func NewModifyDBInstanceNameRequest

func NewModifyDBInstanceNameRequest() (request *ModifyDBInstanceNameRequest)

func (*ModifyDBInstanceNameRequest) FromJsonString

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

FromJsonString 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 ModifyDBInstanceNameRequestParams

type ModifyDBInstanceNameRequestParams struct {
	// Instance ID in the format of tdsql-hdaprz0v
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance name
	InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"`
}

Predefined struct for user

type ModifyDBInstanceNameResponse

type ModifyDBInstanceNameResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBInstanceNameResponseParams `json:"Response"`
}

func NewModifyDBInstanceNameResponse

func NewModifyDBInstanceNameResponse() (response *ModifyDBInstanceNameResponse)

func (*ModifyDBInstanceNameResponse) FromJsonString

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

FromJsonString 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 ModifyDBInstanceNameResponseParams

type ModifyDBInstanceNameResponseParams struct {
	// Instance ID.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBInstanceSecurityGroupsRequest

type ModifyDBInstanceSecurityGroupsRequest struct {
	*tchttp.BaseRequest

	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// List of IDs of security groups to be modified, which is an array of one or more security group IDs.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

func NewModifyDBInstanceSecurityGroupsRequest

func NewModifyDBInstanceSecurityGroupsRequest() (request *ModifyDBInstanceSecurityGroupsRequest)

func (*ModifyDBInstanceSecurityGroupsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBInstanceSecurityGroupsRequest) ToJsonString

type ModifyDBInstanceSecurityGroupsRequestParams

type ModifyDBInstanceSecurityGroupsRequestParams struct {
	// Database engine name. Valid value: `dcdb`.
	Product *string `json:"Product,omitnil" name:"Product"`

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// List of IDs of security groups to be modified, which is an array of one or more security group IDs.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"`
}

Predefined struct for user

type ModifyDBInstanceSecurityGroupsResponse

type ModifyDBInstanceSecurityGroupsResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBInstanceSecurityGroupsResponseParams `json:"Response"`
}

func NewModifyDBInstanceSecurityGroupsResponse

func NewModifyDBInstanceSecurityGroupsResponse() (response *ModifyDBInstanceSecurityGroupsResponse)

func (*ModifyDBInstanceSecurityGroupsResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBInstanceSecurityGroupsResponse) ToJsonString

type ModifyDBInstanceSecurityGroupsResponseParams

type ModifyDBInstanceSecurityGroupsResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBInstancesProjectRequest

type ModifyDBInstancesProjectRequest struct {
	*tchttp.BaseRequest

	// List of IDs of instances to be modified. Instance ID is in the format of dcdbt-ow728lmc.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// ID of the project to be assigned, which can be obtained through the `DescribeProjects` API.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`
}

func NewModifyDBInstancesProjectRequest

func NewModifyDBInstancesProjectRequest() (request *ModifyDBInstancesProjectRequest)

func (*ModifyDBInstancesProjectRequest) FromJsonString

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

FromJsonString 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 ModifyDBInstancesProjectRequestParams

type ModifyDBInstancesProjectRequestParams struct {
	// List of IDs of instances to be modified. Instance ID is in the format of dcdbt-ow728lmc.
	InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"`

	// ID of the project to be assigned, which can be obtained through the `DescribeProjects` API.
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`
}

Predefined struct for user

type ModifyDBInstancesProjectResponse

type ModifyDBInstancesProjectResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBInstancesProjectResponseParams `json:"Response"`
}

func NewModifyDBInstancesProjectResponse

func NewModifyDBInstancesProjectResponse() (response *ModifyDBInstancesProjectResponse)

func (*ModifyDBInstancesProjectResponse) FromJsonString

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

FromJsonString 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 ModifyDBInstancesProjectResponseParams

type ModifyDBInstancesProjectResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBParametersRequest

type ModifyDBParametersRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Parameter list. Each element is a combination of `Param` and `Value`.
	Params []*DBParamValue `json:"Params,omitnil" name:"Params"`
}

func NewModifyDBParametersRequest

func NewModifyDBParametersRequest() (request *ModifyDBParametersRequest)

func (*ModifyDBParametersRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBParametersRequest) ToJsonString

func (r *ModifyDBParametersRequest) ToJsonString() string

type ModifyDBParametersRequestParams

type ModifyDBParametersRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Parameter list. Each element is a combination of `Param` and `Value`.
	Params []*DBParamValue `json:"Params,omitnil" name:"Params"`
}

Predefined struct for user

type ModifyDBParametersResponse

type ModifyDBParametersResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBParametersResponseParams `json:"Response"`
}

func NewModifyDBParametersResponse

func NewModifyDBParametersResponse() (response *ModifyDBParametersResponse)

func (*ModifyDBParametersResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBParametersResponse) ToJsonString

func (r *ModifyDBParametersResponse) ToJsonString() string

type ModifyDBParametersResponseParams

type ModifyDBParametersResponseParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Parameter modification result
	Result []*ParamModifyResult `json:"Result,omitnil" name:"Result"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyDBSyncModeRequest

type ModifyDBSyncModeRequest struct {
	*tchttp.BaseRequest

	// ID of the instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Sync mode. Valid values: `0` (async), `1` (strong sync), `2` (downgradable strong sync).
	SyncMode *int64 `json:"SyncMode,omitnil" name:"SyncMode"`
}

func NewModifyDBSyncModeRequest

func NewModifyDBSyncModeRequest() (request *ModifyDBSyncModeRequest)

func (*ModifyDBSyncModeRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBSyncModeRequest) ToJsonString

func (r *ModifyDBSyncModeRequest) ToJsonString() string

type ModifyDBSyncModeRequestParams

type ModifyDBSyncModeRequestParams struct {
	// ID of the instance for which to modify the sync mode. The ID is in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Sync mode. Valid values: `0` (async), `1` (strong sync), `2` (downgradable strong sync).
	SyncMode *int64 `json:"SyncMode,omitnil" name:"SyncMode"`
}

Predefined struct for user

type ModifyDBSyncModeResponse

type ModifyDBSyncModeResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDBSyncModeResponseParams `json:"Response"`
}

func NewModifyDBSyncModeResponse

func NewModifyDBSyncModeResponse() (response *ModifyDBSyncModeResponse)

func (*ModifyDBSyncModeResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDBSyncModeResponse) ToJsonString

func (r *ModifyDBSyncModeResponse) ToJsonString() string

type ModifyDBSyncModeResponseParams

type ModifyDBSyncModeResponseParams struct {
	// Async task ID. The task status can be queried through the `DescribeFlow` API.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyInstanceNetworkRequest

type ModifyInstanceNetworkRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The ID of the desired VPC network
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// The subnet ID of the desired VPC network
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// The field is required to specify VIP.
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// The field is required to specify VIPv6.
	Vipv6 *string `json:"Vipv6,omitnil" name:"Vipv6"`

	// VIP retention period in hours. Value range: 0-168. Default value: `24`. `0` indicates that the VIP will be released immediately, but there will be 1-minute delay.
	VipReleaseDelay *uint64 `json:"VipReleaseDelay,omitnil" name:"VipReleaseDelay"`
}

func NewModifyInstanceNetworkRequest

func NewModifyInstanceNetworkRequest() (request *ModifyInstanceNetworkRequest)

func (*ModifyInstanceNetworkRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceNetworkRequest) ToJsonString

func (r *ModifyInstanceNetworkRequest) ToJsonString() string

type ModifyInstanceNetworkRequestParams

type ModifyInstanceNetworkRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// The ID of the desired VPC network
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// The subnet ID of the desired VPC network
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// The field is required to specify VIP.
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// The field is required to specify VIPv6.
	Vipv6 *string `json:"Vipv6,omitnil" name:"Vipv6"`

	// VIP retention period in hours. Value range: 0-168. Default value: `24`. `0` indicates that the VIP will be released immediately, but there will be 1-minute delay.
	VipReleaseDelay *uint64 `json:"VipReleaseDelay,omitnil" name:"VipReleaseDelay"`
}

Predefined struct for user

type ModifyInstanceNetworkResponse

type ModifyInstanceNetworkResponse struct {
	*tchttp.BaseResponse
	Response *ModifyInstanceNetworkResponseParams `json:"Response"`
}

func NewModifyInstanceNetworkResponse

func NewModifyInstanceNetworkResponse() (response *ModifyInstanceNetworkResponse)

func (*ModifyInstanceNetworkResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceNetworkResponse) ToJsonString

func (r *ModifyInstanceNetworkResponse) ToJsonString() string

type ModifyInstanceNetworkResponseParams

type ModifyInstanceNetworkResponseParams struct {
	// Async task ID, which can be used to query the task status through `DescribeFlow` API.
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyInstanceVipRequest

type ModifyInstanceVipRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance VIP
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// IPv6 flag
	Ipv6Flag *uint64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// VIP retention period in hours. Value range: 0-168. Default value: `24`. `0` indicates that the VIP will be released immediately, but there will be 1-minute delay.
	VipReleaseDelay *uint64 `json:"VipReleaseDelay,omitnil" name:"VipReleaseDelay"`
}

func NewModifyInstanceVipRequest

func NewModifyInstanceVipRequest() (request *ModifyInstanceVipRequest)

func (*ModifyInstanceVipRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceVipRequest) ToJsonString

func (r *ModifyInstanceVipRequest) ToJsonString() string

type ModifyInstanceVipRequestParams

type ModifyInstanceVipRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance VIP
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// IPv6 flag
	Ipv6Flag *uint64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`

	// VIP retention period in hours. Value range: 0-168. Default value: `24`. `0` indicates that the VIP will be released immediately, but there will be 1-minute delay.
	VipReleaseDelay *uint64 `json:"VipReleaseDelay,omitnil" name:"VipReleaseDelay"`
}

Predefined struct for user

type ModifyInstanceVipResponse

type ModifyInstanceVipResponse struct {
	*tchttp.BaseResponse
	Response *ModifyInstanceVipResponseParams `json:"Response"`
}

func NewModifyInstanceVipResponse

func NewModifyInstanceVipResponse() (response *ModifyInstanceVipResponse)

func (*ModifyInstanceVipResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceVipResponse) ToJsonString

func (r *ModifyInstanceVipResponse) ToJsonString() string

type ModifyInstanceVipResponseParams

type ModifyInstanceVipResponseParams struct {
	// Async task flow ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ModifyInstanceVportRequest

type ModifyInstanceVportRequest struct {
	*tchttp.BaseRequest

	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance Vport
	Vport *uint64 `json:"Vport,omitnil" name:"Vport"`
}

func NewModifyInstanceVportRequest

func NewModifyInstanceVportRequest() (request *ModifyInstanceVportRequest)

func (*ModifyInstanceVportRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceVportRequest) ToJsonString

func (r *ModifyInstanceVportRequest) ToJsonString() string

type ModifyInstanceVportRequestParams

type ModifyInstanceVportRequestParams struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Instance Vport
	Vport *uint64 `json:"Vport,omitnil" name:"Vport"`
}

Predefined struct for user

type ModifyInstanceVportResponse

type ModifyInstanceVportResponse struct {
	*tchttp.BaseResponse
	Response *ModifyInstanceVportResponseParams `json:"Response"`
}

func NewModifyInstanceVportResponse

func NewModifyInstanceVportResponse() (response *ModifyInstanceVportResponse)

func (*ModifyInstanceVportResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyInstanceVportResponse) ToJsonString

func (r *ModifyInstanceVportResponse) ToJsonString() string

type ModifyInstanceVportResponseParams

type ModifyInstanceVportResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type NodeInfo

type NodeInfo struct {
	// Node ID
	NodeId *string `json:"NodeId,omitnil" name:"NodeId"`

	// Node role. Valid values: `master`, `slave`.
	Role *string `json:"Role,omitnil" name:"Role"`
}

type ParamConstraint

type ParamConstraint struct {
	// Constraint type, such as `enum` and `section`
	Type *string `json:"Type,omitnil" name:"Type"`

	// List of valid values when constraint type is `enum`
	Enum *string `json:"Enum,omitnil" name:"Enum"`

	// Range when constraint type is `section`
	// Note: This field may return null, indicating that no valid values can be obtained.
	Range *ConstraintRange `json:"Range,omitnil" name:"Range"`

	// List of valid values when constraint type is `string`
	String *string `json:"String,omitnil" name:"String"`
}

type ParamDesc

type ParamDesc struct {
	// Parameter name
	Param *string `json:"Param,omitnil" name:"Param"`

	// Current parameter value
	Value *string `json:"Value,omitnil" name:"Value"`

	// Previously set value, which is the same as `value` after the parameter takes effect. If no value has been set, this field will not be returned.
	// Note: This field may return null, indicating that no valid values can be obtained.
	SetValue *string `json:"SetValue,omitnil" name:"SetValue"`

	// Default value
	Default *string `json:"Default,omitnil" name:"Default"`

	// Parameter constraint
	Constraint *ParamConstraint `json:"Constraint,omitnil" name:"Constraint"`

	// Whether a value has been set. false: no, true: yes.
	HaveSetValue *bool `json:"HaveSetValue,omitnil" name:"HaveSetValue"`

	// Whether restart is required. false: no;
	// true: yes.
	NeedRestart *bool `json:"NeedRestart,omitnil" name:"NeedRestart"`
}

type ParamModifyResult

type ParamModifyResult struct {
	// Renames parameter
	Param *string `json:"Param,omitnil" name:"Param"`

	// Result of parameter modification. 0: success; -1: failure; -2: invalid parameter value
	Code *int64 `json:"Code,omitnil" name:"Code"`
}

type ReservedNetResource

type ReservedNetResource struct {
	// VPC
	VpcId *string `json:"VpcId,omitnil" name:"VpcId"`

	// Subnet
	SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"`

	// Reserved private network IP under `VpcId` and `SubnetId`
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// Port under `Vip`
	Vports []*int64 `json:"Vports,omitnil" name:"Vports"`

	// Valid hours of VIP
	RecycleTime *string `json:"RecycleTime,omitnil" name:"RecycleTime"`
}

type ResetAccountPasswordRequest

type ResetAccountPasswordRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// New password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
	Password *string `json:"Password,omitnil" name:"Password"`
}

func NewResetAccountPasswordRequest

func NewResetAccountPasswordRequest() (request *ResetAccountPasswordRequest)

func (*ResetAccountPasswordRequest) FromJsonString

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

FromJsonString 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 ResetAccountPasswordRequestParams

type ResetAccountPasswordRequestParams struct {
	// Instance ID in the format of dcdbt-ow728lmc.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Login username.
	UserName *string `json:"UserName,omitnil" name:"UserName"`

	// Access host allowed for a user. An account is uniquely identified by username and host.
	Host *string `json:"Host,omitnil" name:"Host"`

	// New password, which can contain 6-32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
	Password *string `json:"Password,omitnil" name:"Password"`
}

Predefined struct for user

type ResetAccountPasswordResponse

type ResetAccountPasswordResponse struct {
	*tchttp.BaseResponse
	Response *ResetAccountPasswordResponseParams `json:"Response"`
}

func NewResetAccountPasswordResponse

func NewResetAccountPasswordResponse() (response *ResetAccountPasswordResponse)

func (*ResetAccountPasswordResponse) FromJsonString

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

FromJsonString 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 ResetAccountPasswordResponseParams

type ResetAccountPasswordResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ResourceTag

type ResourceTag struct {
	// Tag key
	TagKey *string `json:"TagKey,omitnil" name:"TagKey"`

	// Tag value
	TagValue *string `json:"TagValue,omitnil" name:"TagValue"`
}

type SecurityGroup

type SecurityGroup struct {
	// Project ID
	ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"`

	// Creation time in the format of yyyy-mm-dd hh:mm:ss
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Security group ID
	SecurityGroupId *string `json:"SecurityGroupId,omitnil" name:"SecurityGroupId"`

	// Security group name
	SecurityGroupName *string `json:"SecurityGroupName,omitnil" name:"SecurityGroupName"`

	// Security group remarks
	SecurityGroupRemark *string `json:"SecurityGroupRemark,omitnil" name:"SecurityGroupRemark"`

	// Inbound rule
	Inbound []*SecurityGroupBound `json:"Inbound,omitnil" name:"Inbound"`

	// Outbound rule
	Outbound []*SecurityGroupBound `json:"Outbound,omitnil" name:"Outbound"`
}

type SecurityGroupBound

type SecurityGroupBound struct {
	// Policy, which can be `ACCEPT` or `DROP`
	Action *string `json:"Action,omitnil" name:"Action"`

	// Source IP or source IP range, such as 192.168.0.0/16
	CidrIp *string `json:"CidrIp,omitnil" name:"CidrIp"`

	// Port
	PortRange *string `json:"PortRange,omitnil" name:"PortRange"`

	// Network protocol. UDP and TCP are supported.
	IpProtocol *string `json:"IpProtocol,omitnil" name:"IpProtocol"`
}

type ShardBriefInfo

type ShardBriefInfo struct {
	// Shard serial ID
	ShardSerialId *string `json:"ShardSerialId,omitnil" name:"ShardSerialId"`

	// Shard ID, such as shard-7vg1o339.
	ShardInstanceId *string `json:"ShardInstanceId,omitnil" name:"ShardInstanceId"`

	// Shard running status
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Description of shard running status
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// Shard creation time
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Shard memory size in GB
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Shard disk size in GB
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Log disk space size of a shard in GB
	LogDisk *int64 `json:"LogDisk,omitnil" name:"LogDisk"`

	// Number of shard nodes
	NodeCount *int64 `json:"NodeCount,omitnil" name:"NodeCount"`

	// Disk space utilization of a shard
	StorageUsage *float64 `json:"StorageUsage,omitnil" name:"StorageUsage"`

	// Version information of the shard proxy
	ProxyVersion *string `json:"ProxyVersion,omitnil" name:"ProxyVersion"`

	// Source AZ of a shard
	ShardMasterZone *string `json:"ShardMasterZone,omitnil" name:"ShardMasterZone"`

	// Replica AZ of a shard
	ShardSlaveZones []*string `json:"ShardSlaveZones,omitnil" name:"ShardSlaveZones"`

	// Number of CPU cores
	Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"`

	// Node information
	// Note: This field may return null, indicating that no valid values can be obtained.
	NodesInfo []*NodeInfo `json:"NodesInfo,omitnil" name:"NodesInfo"`
}

type ShardInfo

type ShardInfo struct {
	// Shard ID
	ShardInstanceId *string `json:"ShardInstanceId,omitnil" name:"ShardInstanceId"`

	// Shard set ID
	ShardSerialId *string `json:"ShardSerialId,omitnil" name:"ShardSerialId"`

	// Status. 0: creating; 1: processing; 2: running; 3: shard not initialized; -2: shard deleted
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Creation time
	Createtime *string `json:"Createtime,omitnil" name:"Createtime"`

	// Memory size in GB
	Memory *int64 `json:"Memory,omitnil" name:"Memory"`

	// Storage capacity in GB
	Storage *int64 `json:"Storage,omitnil" name:"Storage"`

	// Numeric ID of a shard
	ShardId *int64 `json:"ShardId,omitnil" name:"ShardId"`

	// Number of nodes. 2: one primary and one secondary; 3: one primary and two secondaries
	NodeCount *int64 `json:"NodeCount,omitnil" name:"NodeCount"`

	// Product type ID (this field is obsolete and should not be depended on)
	Pid *int64 `json:"Pid,omitnil" name:"Pid"`

	// Number of CPU cores
	Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"`
}

type SlowLogData

type SlowLogData struct {
	// Statement checksum for querying details
	CheckSum *string `json:"CheckSum,omitnil" name:"CheckSum"`

	// Database name
	Db *string `json:"Db,omitnil" name:"Db"`

	// Abstracted SQL statement
	FingerPrint *string `json:"FingerPrint,omitnil" name:"FingerPrint"`

	// Average lock duration
	LockTimeAvg *string `json:"LockTimeAvg,omitnil" name:"LockTimeAvg"`

	// Maximum lock duration
	LockTimeMax *string `json:"LockTimeMax,omitnil" name:"LockTimeMax"`

	// Minimum lock duration
	LockTimeMin *string `json:"LockTimeMin,omitnil" name:"LockTimeMin"`

	// Sum of lock durations
	LockTimeSum *string `json:"LockTimeSum,omitnil" name:"LockTimeSum"`

	// Number of queries
	QueryCount *string `json:"QueryCount,omitnil" name:"QueryCount"`

	// Average query duration
	QueryTimeAvg *string `json:"QueryTimeAvg,omitnil" name:"QueryTimeAvg"`

	// Maximum query duration
	QueryTimeMax *string `json:"QueryTimeMax,omitnil" name:"QueryTimeMax"`

	// Minimum query duration
	QueryTimeMin *string `json:"QueryTimeMin,omitnil" name:"QueryTimeMin"`

	// Sum of query durations
	QueryTimeSum *string `json:"QueryTimeSum,omitnil" name:"QueryTimeSum"`

	// Number of scanned rows
	RowsExaminedSum *string `json:"RowsExaminedSum,omitnil" name:"RowsExaminedSum"`

	// Number of sent rows
	RowsSentSum *string `json:"RowsSentSum,omitnil" name:"RowsSentSum"`

	// Last execution time
	TsMax *string `json:"TsMax,omitnil" name:"TsMax"`

	// First execution time
	TsMin *string `json:"TsMin,omitnil" name:"TsMin"`

	// Account
	User *string `json:"User,omitnil" name:"User"`

	// Sample SQL
	// Note: This field may return null, indicating that no valid values can be obtained.
	ExampleSql *string `json:"ExampleSql,omitnil" name:"ExampleSql"`

	// Host address of account
	// Note: This field may return null, indicating that no valid values can be obtained.
	Host *string `json:"Host,omitnil" name:"Host"`
}

type SplitShardConfig

type SplitShardConfig struct {
	// Shard IDs in array
	ShardInstanceIds []*string `json:"ShardInstanceIds,omitnil" name:"ShardInstanceIds"`

	// Data split ratio at 50% (fixed)
	SplitRate *int64 `json:"SplitRate,omitnil" name:"SplitRate"`

	// Shard memory capacity in GB
	ShardMemory *int64 `json:"ShardMemory,omitnil" name:"ShardMemory"`

	// Shard storage capacity in GB
	ShardStorage *int64 `json:"ShardStorage,omitnil" name:"ShardStorage"`
}

type SwitchDBInstanceHARequest

type SwitchDBInstanceHARequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of tdsql-ow728lmc
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Target AZ. The node with the lowest delay in the target AZ will be automatically promoted to source node.
	Zone *string `json:"Zone,omitnil" name:"Zone"`
}

func NewSwitchDBInstanceHARequest

func NewSwitchDBInstanceHARequest() (request *SwitchDBInstanceHARequest)

func (*SwitchDBInstanceHARequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SwitchDBInstanceHARequest) ToJsonString

func (r *SwitchDBInstanceHARequest) ToJsonString() string

type SwitchDBInstanceHARequestParams

type SwitchDBInstanceHARequestParams struct {
	// Instance ID in the format of tdsql-ow728lmc
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Target AZ. The node with the lowest delay in the target AZ will be automatically promoted to source node.
	Zone *string `json:"Zone,omitnil" name:"Zone"`
}

Predefined struct for user

type SwitchDBInstanceHAResponse

type SwitchDBInstanceHAResponse struct {
	*tchttp.BaseResponse
	Response *SwitchDBInstanceHAResponseParams `json:"Response"`
}

func NewSwitchDBInstanceHAResponse

func NewSwitchDBInstanceHAResponse() (response *SwitchDBInstanceHAResponse)

func (*SwitchDBInstanceHAResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SwitchDBInstanceHAResponse) ToJsonString

func (r *SwitchDBInstanceHAResponse) ToJsonString() string

type SwitchDBInstanceHAResponseParams

type SwitchDBInstanceHAResponseParams struct {
	// Async task ID
	FlowId *uint64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type TableColumn

type TableColumn struct {
	// Column name
	Col *string `json:"Col,omitnil" name:"Col"`

	// Column type
	Type *string `json:"Type,omitnil" name:"Type"`
}

type TablePrivilege

type TablePrivilege struct {
	// Database name
	Database *string `json:"Database,omitnil" name:"Database"`

	// Table name
	Table *string `json:"Table,omitnil" name:"Table"`

	// Permission information
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`
}

type TerminateDedicatedDBInstanceRequest

type TerminateDedicatedDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID in the format of `dcdbt-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

func NewTerminateDedicatedDBInstanceRequest

func NewTerminateDedicatedDBInstanceRequest() (request *TerminateDedicatedDBInstanceRequest)

func (*TerminateDedicatedDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateDedicatedDBInstanceRequest) ToJsonString

func (r *TerminateDedicatedDBInstanceRequest) ToJsonString() string

type TerminateDedicatedDBInstanceRequestParams

type TerminateDedicatedDBInstanceRequestParams struct {
	// Instance ID in the format of `dcdbt-ow728lmc`
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`
}

Predefined struct for user

type TerminateDedicatedDBInstanceResponse

type TerminateDedicatedDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *TerminateDedicatedDBInstanceResponseParams `json:"Response"`
}

func NewTerminateDedicatedDBInstanceResponse

func NewTerminateDedicatedDBInstanceResponse() (response *TerminateDedicatedDBInstanceResponse)

func (*TerminateDedicatedDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateDedicatedDBInstanceResponse) ToJsonString

func (r *TerminateDedicatedDBInstanceResponse) ToJsonString() string

type TerminateDedicatedDBInstanceResponseParams

type TerminateDedicatedDBInstanceResponseParams struct {
	// Async task ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type TmpInstance

type TmpInstance struct {
	// Application ID
	// Note: This field may return null, indicating that no valid values can be obtained.
	AppId *int64 `json:"AppId,omitnil" name:"AppId"`

	// Creation time
	// Note: This field may return null, indicating that no valid values can be obtained.
	CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"`

	// Instance remarks
	// Note: This field may return null, indicating that no valid values can be obtained.
	InstanceRemark *string `json:"InstanceRemark,omitnil" name:"InstanceRemark"`

	// Type of temp instance. Valid values: `0` (non-temp instance), `1` (invalid temp instance), `2` (valid rollback temp instance).
	// Note: This field may return null, indicating that no valid values can be obtained.
	TempType *int64 `json:"TempType,omitnil" name:"TempType"`

	// Instance status. Valid values: `0` (to be initialized), `1` (in process), `2` (running), `-1` (isolated), `-2` (eliminated).
	// Note: This field may return null, indicating that no valid values can be obtained.
	Status *int64 `json:"Status,omitnil" name:"Status"`

	// Instance ID in the format of `tdsql-ow728lmc`
	// Note: This field may return null, indicating that no valid values can be obtained.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Virtual instance IP
	// Note: This field may return null, indicating that no valid values can be obtained.
	Vip *string `json:"Vip,omitnil" name:"Vip"`

	// Virtual instance port
	// Note: This field may return null, indicating that no valid values can be obtained.
	Vport *int64 `json:"Vport,omitnil" name:"Vport"`

	// Validity end time
	// Note: This field may return null, indicating that no valid values can be obtained.
	PeriodEndTime *string `json:"PeriodEndTime,omitnil" name:"PeriodEndTime"`

	// Source instance ID in the format of `tdsql-ow728lmc`
	// Note: This field may return null, indicating that no valid values can be obtained.
	SrcInstanceId *string `json:"SrcInstanceId,omitnil" name:"SrcInstanceId"`

	// Instance status description
	// Note: This field may return null, indicating that no valid values can be obtained.
	StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"`

	// Instance region
	// Note: This field may return null, indicating that no valid values can be obtained.
	Region *string `json:"Region,omitnil" name:"Region"`

	// AZ of the instance
	// Note: This field may return null, indicating that no valid values can be obtained.
	Zone *string `json:"Zone,omitnil" name:"Zone"`

	// Virtual IPv6 of the instance
	// Note: This field may return null, indicating that no valid values can be obtained.
	Vipv6 *string `json:"Vipv6,omitnil" name:"Vipv6"`

	// Instance IPv6 flag
	// Note: This field may return null, indicating that no valid values can be obtained.
	Ipv6Flag *uint64 `json:"Ipv6Flag,omitnil" name:"Ipv6Flag"`
}

type UpgradeDedicatedDCDBInstanceRequest

type UpgradeDedicatedDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Upgrade type. Valid values: `ADD` (add a shard), `SPLIT` (split a shard), and `EXPAND` (Vertically expand a shard).
	UpgradeType *string `json:"UpgradeType,omitnil" name:"UpgradeType"`

	// Instance ID, such as dcdbt-mlfjm74h.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// A parameter for adding shards when `UpgradeType` is `ADD`.
	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitnil" name:"AddShardConfig"`

	// A parameter for vertically expand a shard when `UpgradeType` is `EXPAND`.
	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitnil" name:"ExpandShardConfig"`

	// A parameter for splitting a shard when `UpgradeType` is `SPLIT`.
	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitnil" name:"SplitShardConfig"`

	// Whether to automatically retry u200donce when missing the switch time window. Valid values: `0` (No), `1` (Yes).
	SwitchAutoRetry *int64 `json:"SwitchAutoRetry,omitnil" name:"SwitchAutoRetry"`

	// Switch u200dstart u200dtime
	SwitchStartTime *string `json:"SwitchStartTime,omitnil" name:"SwitchStartTime"`

	// Switch end time
	SwitchEndTime *string `json:"SwitchEndTime,omitnil" name:"SwitchEndTime"`
}

func NewUpgradeDedicatedDCDBInstanceRequest

func NewUpgradeDedicatedDCDBInstanceRequest() (request *UpgradeDedicatedDCDBInstanceRequest)

func (*UpgradeDedicatedDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpgradeDedicatedDCDBInstanceRequest) ToJsonString

func (r *UpgradeDedicatedDCDBInstanceRequest) ToJsonString() string

type UpgradeDedicatedDCDBInstanceRequestParams

type UpgradeDedicatedDCDBInstanceRequestParams struct {
	// Upgrade type. Valid values: `ADD` (add a shard), `SPLIT` (split a shard), and `EXPAND` (Vertically expand a shard).
	UpgradeType *string `json:"UpgradeType,omitnil" name:"UpgradeType"`

	// Instance ID, such as dcdbt-mlfjm74h.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// A parameter for adding shards when `UpgradeType` is `ADD`.
	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitnil" name:"AddShardConfig"`

	// A parameter for vertically expand a shard when `UpgradeType` is `EXPAND`.
	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitnil" name:"ExpandShardConfig"`

	// A parameter for splitting a shard when `UpgradeType` is `SPLIT`.
	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitnil" name:"SplitShardConfig"`

	// Whether to automatically retry u200donce when missing the switch time window. Valid values: `0` (No), `1` (Yes).
	SwitchAutoRetry *int64 `json:"SwitchAutoRetry,omitnil" name:"SwitchAutoRetry"`

	// Switch u200dstart u200dtime
	SwitchStartTime *string `json:"SwitchStartTime,omitnil" name:"SwitchStartTime"`

	// Switch end time
	SwitchEndTime *string `json:"SwitchEndTime,omitnil" name:"SwitchEndTime"`
}

Predefined struct for user

type UpgradeDedicatedDCDBInstanceResponse

type UpgradeDedicatedDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *UpgradeDedicatedDCDBInstanceResponseParams `json:"Response"`
}

func NewUpgradeDedicatedDCDBInstanceResponse

func NewUpgradeDedicatedDCDBInstanceResponse() (response *UpgradeDedicatedDCDBInstanceResponse)

func (*UpgradeDedicatedDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpgradeDedicatedDCDBInstanceResponse) ToJsonString

func (r *UpgradeDedicatedDCDBInstanceResponse) ToJsonString() string

type UpgradeDedicatedDCDBInstanceResponseParams

type UpgradeDedicatedDCDBInstanceResponseParams struct {
	// Async task flow ID
	FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type UpgradeHourDCDBInstanceRequest

type UpgradeHourDCDBInstanceRequest struct {
	*tchttp.BaseRequest

	// Instance ID to be upgraded in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Upgrade type. Valid values:
	// <li> `ADD`: Add a new shard </li>
	//  <li> `EXPAND`: Upgrade the existing shads</li>
	//  <li> `SPLIT`: Split data of the existing shads to the new ones</li>
	UpgradeType *string `json:"UpgradeType,omitnil" name:"UpgradeType"`

	// Add shards when `UpgradeType` is `ADD`.
	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitnil" name:"AddShardConfig"`

	// Expand shard when `UpgradeType` is `EXPAND`.
	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitnil" name:"ExpandShardConfig"`

	// Split shard when `UpgradeType` is `SPLIT`.
	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitnil" name:"SplitShardConfig"`

	// Switch start time in the format of "2019-12-12 07:00:00", which is no less than one hour and within 3 days from the current time.
	SwitchStartTime *string `json:"SwitchStartTime,omitnil" name:"SwitchStartTime"`

	// Switch end time in the format of "2019-12-12 07:15:00", which must be later than the start time.
	SwitchEndTime *string `json:"SwitchEndTime,omitnil" name:"SwitchEndTime"`

	// Whether to retry automatically. Valid values: `0` (no), `1` (yes).
	SwitchAutoRetry *int64 `json:"SwitchAutoRetry,omitnil" name:"SwitchAutoRetry"`

	// The list of new AZs specified in deployment modification. The first one is the source AZ, and the rest are replica AZs.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`
}

func NewUpgradeHourDCDBInstanceRequest

func NewUpgradeHourDCDBInstanceRequest() (request *UpgradeHourDCDBInstanceRequest)

func (*UpgradeHourDCDBInstanceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpgradeHourDCDBInstanceRequest) ToJsonString

func (r *UpgradeHourDCDBInstanceRequest) ToJsonString() string

type UpgradeHourDCDBInstanceRequestParams

type UpgradeHourDCDBInstanceRequestParams struct {
	// Instance ID to be upgraded in the format of dcdbt-ow728lmc, which can be obtained through the `DescribeDCDBInstances` API.
	InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"`

	// Upgrade type. Valid values:
	// <li> `ADD`: Add a new shard </li>
	//  <li> `EXPAND`: Upgrade the existing shads</li>
	//  <li> `SPLIT`: Split data of the existing shads to the new ones</li>
	UpgradeType *string `json:"UpgradeType,omitnil" name:"UpgradeType"`

	// Add shards when `UpgradeType` is `ADD`.
	AddShardConfig *AddShardConfig `json:"AddShardConfig,omitnil" name:"AddShardConfig"`

	// Expand shard when `UpgradeType` is `EXPAND`.
	ExpandShardConfig *ExpandShardConfig `json:"ExpandShardConfig,omitnil" name:"ExpandShardConfig"`

	// Split shard when `UpgradeType` is `SPLIT`.
	SplitShardConfig *SplitShardConfig `json:"SplitShardConfig,omitnil" name:"SplitShardConfig"`

	// Switch start time in the format of "2019-12-12 07:00:00", which is no less than one hour and within 3 days from the current time.
	SwitchStartTime *string `json:"SwitchStartTime,omitnil" name:"SwitchStartTime"`

	// Switch end time in the format of "2019-12-12 07:15:00", which must be later than the start time.
	SwitchEndTime *string `json:"SwitchEndTime,omitnil" name:"SwitchEndTime"`

	// Whether to retry automatically. Valid values: `0` (no), `1` (yes).
	SwitchAutoRetry *int64 `json:"SwitchAutoRetry,omitnil" name:"SwitchAutoRetry"`

	// The list of new AZs specified in deployment modification. The first one is the source AZ, and the rest are replica AZs.
	Zones []*string `json:"Zones,omitnil" name:"Zones"`
}

Predefined struct for user

type UpgradeHourDCDBInstanceResponse

type UpgradeHourDCDBInstanceResponse struct {
	*tchttp.BaseResponse
	Response *UpgradeHourDCDBInstanceResponseParams `json:"Response"`
}

func NewUpgradeHourDCDBInstanceResponse

func NewUpgradeHourDCDBInstanceResponse() (response *UpgradeHourDCDBInstanceResponse)

func (*UpgradeHourDCDBInstanceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpgradeHourDCDBInstanceResponse) ToJsonString

func (r *UpgradeHourDCDBInstanceResponse) ToJsonString() string

type UpgradeHourDCDBInstanceResponseParams

type UpgradeHourDCDBInstanceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil" name:"RequestId"`
}

Predefined struct for user

type ViewPrivileges

type ViewPrivileges struct {
	// Database name
	Database *string `json:"Database,omitnil" name:"Database"`

	// View name
	View *string `json:"View,omitnil" name:"View"`

	// Permission information
	Privileges []*string `json:"Privileges,omitnil" name:"Privileges"`
}

Jump to

Keyboard shortcuts

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