v20211118

package
v1.0.940 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// CAM签名/鉴权错误。
	AUTHFAILURE = "AuthFailure"

	// 操作失败。
	FAILEDOPERATION = "FailedOperation"

	// 元数据库访问失败,请稍后重试。如果持续不成功,请联系客服进行处理。
	FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"

	// 创建流程失败,请稍后重试。如果持续不成功,请联系客服进行处理。
	FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"

	// 获取VPC信息异常,请稍后重试。如果持续不成功,请联系客服进行处理。
	FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed"

	// 内部服务访问失败,请稍后重试。如果持续不成功,请联系客服。
	FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"

	// 当前的付费模式不支持此操作。
	FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"

	// 规格没有变化,CPU/Memory至少升级一项。
	FAILEDOPERATION_SPECNOTCHANGE = "FailedOperation.SpecNotChange"

	// 对应规格的存储上限不够,无法满足当前集群的数据存储。
	FAILEDOPERATION_SPECSTORAGELACK = "FailedOperation.SpecStorageLack"

	// 状态异常,不允许操作。
	FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"

	// 当前存储的付费模式不支持此操作。
	FAILEDOPERATION_STORAGEPAYMODEINVALID = "FailedOperation.StoragePayModeInvalid"

	// 任务冲突,请稍后重试。如果持续不成功,请联系客服。
	FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"

	// 请求计费服务异常,请稍后重试。如果持续不成功,请联系客服进行处理。
	FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 账号不存在。
	INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"

	// 未找到可回档的时间,请确认指定时间点是否在(创建集群时间点,当前时间点)之间。
	INVALIDPARAMETERVALUE_BACKUPDATAPOINTINVALID = "InvalidParameterValue.BackupDataPointInvalid"

	// 集群不存在。
	INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"

	// 数据库版本号相关参数数量错误。
	INVALIDPARAMETERVALUE_DATABASEVERSIONPARAMCOUNTERROR = "InvalidParameterValue.DatabaseVersionParamCountError"

	// 订单未找到。
	INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound"

	// 接入点不存在。
	INVALIDPARAMETERVALUE_ENDPOINTNOTFOUND = "InvalidParameterValue.EndpointNotFound"

	// 集群/实例名字非法,需要满足:长度在1-60个字符,只能由中文、字母、数字、'-'或'.'或'_'组成,区分大小写。
	INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"

	// 密码设置无效,需要满足: 8-64个字符,至少包含 大写字母、小写字母、数字和符号~!@#$%^&*_-+=`|(){}[]:;'<>,.?/中的任意三种
	INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"

	// 实例不存在。
	INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"

	// 数据库版本信息无法被识别。
	INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"

	// 数据库版本号相关参数不合法。
	INVALIDPARAMETERVALUE_INVALIDDATABASEVERSION = "InvalidParameterValue.InvalidDatabaseVersion"

	// 传入的参数非法。
	INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"

	// 规格信息(CPU/Memory)信息无法被识别。
	INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"

	// 参数不合法。
	INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = "InvalidParameterValue.ParameterOutRangeError"

	// 不支持当前地域/可用区的售卖。
	INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"

	// 使用的备份数据来源集群ID非法。
	INVALIDPARAMETERVALUE_SOURCEBACKUPCLUSTERIDINVALID = "InvalidParameterValue.SourceBackupClusterIdInvalid"

	// 集群对应的存储已经被删除。
	INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"

	// 您没有权限操作该VPC网络。
	INVALIDPARAMETERVALUE_VPCDENIEDERROR = "InvalidParameterValue.VpcDeniedError"

	// 未获取到VPC信息,请检查输入的VPC相关参数。
	INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"

	// VPC子网中IP数量不够。
	INVALIDPARAMETERVALUE_VPCSUBNETIPLACK = "InvalidParameterValue.VpcSubnetIpLack"

	// 超过配额限制。
	LIMITEXCEEDED = "LimitExceeded"

	// 当前集群下实例数量超过限制。
	LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"

	// 用户集群数量超过限制。
	LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"

	// 缺少参数错误。
	MISSINGPARAMETER = "MissingParameter"

	// 操作被拒绝。
	OPERATIONDENIED = "OperationDenied"

	// 资源不足。
	RESOURCEINSUFFICIENT = "ResourceInsufficient"

	// 当前集群/实例状态不允许操作。
	RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

	// 未授权操作。
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// 未经授权的操作。
	UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

	// 未知参数错误。
	UNKNOWNPARAMETER = "UnknownParameter"

	// 操作不支持。
	UNSUPPORTEDOPERATION = "UnsupportedOperation"
)
View Source
const APIVersion = "2021-11-18"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// 数据库账号名
	AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 数据库账号描述
	AccountDescription *string `json:"AccountDescription,omitnil,omitempty" name:"AccountDescription"`

	// 数据库账号创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 数据库账号信息更新时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
}

type AvailableRecoveryTimeRange

type AvailableRecoveryTimeRange struct {
	// 可回档起始时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	AvailableBeginTime *string `json:"AvailableBeginTime,omitnil,omitempty" name:"AvailableBeginTime"`

	// 可回档结束时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	AvailableEndTime *string `json:"AvailableEndTime,omitnil,omitempty" name:"AvailableEndTime"`
}

type Backup

type Backup struct {
	// 备份集ID,集群内唯一
	BackupId *int64 `json:"BackupId,omitnil,omitempty" name:"BackupId"`

	// 备份集类型,目前只支持 SNAPSHOT:快照
	BackupType *string `json:"BackupType,omitnil,omitempty" name:"BackupType"`

	// 备份集产生的方案,目前只支持 AUTO:自动
	BackupMethod *string `json:"BackupMethod,omitnil,omitempty" name:"BackupMethod"`

	// 备份集对应的数据时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	BackupDataTime *string `json:"BackupDataTime,omitnil,omitempty" name:"BackupDataTime"`

	// 备份集数据大小,单位GiB
	BackupDataSize *int64 `json:"BackupDataSize,omitnil,omitempty" name:"BackupDataSize"`

	// 备份集对应的任务开始时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	BackupTaskStartTime *string `json:"BackupTaskStartTime,omitnil,omitempty" name:"BackupTaskStartTime"`

	// 备份集对应的任务结束时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	BackupTaskEndTime *string `json:"BackupTaskEndTime,omitnil,omitempty" name:"BackupTaskEndTime"`

	// 备份集对应的任务状态  SUCCESS:成功
	BackupTaskStatus *string `json:"BackupTaskStatus,omitnil,omitempty" name:"BackupTaskStatus"`
}

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) CloneClusterToPointInTime

func (c *Client) CloneClusterToPointInTime(request *CloneClusterToPointInTimeRequest) (response *CloneClusterToPointInTimeResponse, err error)

CloneClusterToPointInTime 使用指定时间点的备份克隆一个新的集群

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_SPECSTORAGELACK = "FailedOperation.SpecStorageLack"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BACKUPDATAPOINTINVALID = "InvalidParameterValue.BackupDataPointInvalid"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
INVALIDPARAMETERVALUE_SOURCEBACKUPCLUSTERIDINVALID = "InvalidParameterValue.SourceBackupClusterIdInvalid"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
INVALIDPARAMETERVALUE_VPCDENIEDERROR = "InvalidParameterValue.VpcDeniedError"
INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
INVALIDPARAMETERVALUE_VPCSUBNETIPLACK = "InvalidParameterValue.VpcSubnetIpLack"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
MISSINGPARAMETER = "MissingParameter"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) CloneClusterToPointInTimeWithContext

func (c *Client) CloneClusterToPointInTimeWithContext(ctx context.Context, request *CloneClusterToPointInTimeRequest) (response *CloneClusterToPointInTimeResponse, err error)

CloneClusterToPointInTime 使用指定时间点的备份克隆一个新的集群

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_SPECSTORAGELACK = "FailedOperation.SpecStorageLack"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BACKUPDATAPOINTINVALID = "InvalidParameterValue.BackupDataPointInvalid"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
INVALIDPARAMETERVALUE_SOURCEBACKUPCLUSTERIDINVALID = "InvalidParameterValue.SourceBackupClusterIdInvalid"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
INVALIDPARAMETERVALUE_VPCDENIEDERROR = "InvalidParameterValue.VpcDeniedError"
INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
INVALIDPARAMETERVALUE_VPCSUBNETIPLACK = "InvalidParameterValue.VpcSubnetIpLack"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
MISSINGPARAMETER = "MissingParameter"
RESOURCEINSUFFICIENT = "ResourceInsufficient"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) CreateCluster

func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)

CreateCluster 创建集群

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_STORAGEPAYMODEINVALID = "FailedOperation.StoragePayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATABASEVERSIONPARAMCOUNTERROR = "InvalidParameterValue.DatabaseVersionParamCountError"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
INVALIDPARAMETERVALUE_INVALIDDATABASEVERSION = "InvalidParameterValue.InvalidDatabaseVersion"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
INVALIDPARAMETERVALUE_VPCDENIEDERROR = "InvalidParameterValue.VpcDeniedError"
INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
INVALIDPARAMETERVALUE_VPCSUBNETIPLACK = "InvalidParameterValue.VpcSubnetIpLack"
LIMITEXCEEDED = "LimitExceeded"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) CreateClusterInstances

func (c *Client) CreateClusterInstances(request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error)

CreateClusterInstances 在集群中新建实例

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateClusterInstancesWithContext

func (c *Client) CreateClusterInstancesWithContext(ctx context.Context, request *CreateClusterInstancesRequest) (response *CreateClusterInstancesResponse, err error)

CreateClusterInstances 在集群中新建实例

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateClusterWithContext

func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error)

CreateCluster 创建集群

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_GETVPCFAILED = "FailedOperation.GetVpcFailed"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_STORAGEPAYMODEINVALID = "FailedOperation.StoragePayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATABASEVERSIONPARAMCOUNTERROR = "InvalidParameterValue.DatabaseVersionParamCountError"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INVALIDDBVERSION = "InvalidParameterValue.InvalidDBVersion"
INVALIDPARAMETERVALUE_INVALIDDATABASEVERSION = "InvalidParameterValue.InvalidDatabaseVersion"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
INVALIDPARAMETERVALUE_VPCDENIEDERROR = "InvalidParameterValue.VpcDeniedError"
INVALIDPARAMETERVALUE_VPCNOTFOUND = "InvalidParameterValue.VpcNotFound"
INVALIDPARAMETERVALUE_VPCSUBNETIPLACK = "InvalidParameterValue.VpcSubnetIpLack"
LIMITEXCEEDED = "LimitExceeded"
LIMITEXCEEDED_CLUSTERINSTANCELIMIT = "LimitExceeded.ClusterInstanceLimit"
LIMITEXCEEDED_USERCLUSTERLIMIT = "LimitExceeded.UserClusterLimit"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)

DeleteCluster 删除集群,集群中的实例和数据都将被删除,且无法恢复。只有当集群状态处于isolated(已隔离)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DeleteClusterInstances

func (c *Client) DeleteClusterInstances(request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error)

DeleteClusterInstances 删除实例。只有当实例状态处于isolated(已隔离)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DeleteClusterInstancesWithContext

func (c *Client) DeleteClusterInstancesWithContext(ctx context.Context, request *DeleteClusterInstancesRequest) (response *DeleteClusterInstancesResponse, err error)

DeleteClusterInstances 删除实例。只有当实例状态处于isolated(已隔离)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DeleteClusterWithContext

func (c *Client) DeleteClusterWithContext(ctx context.Context, request *DeleteClusterRequest) (response *DeleteClusterResponse, err error)

DeleteCluster 删除集群,集群中的实例和数据都将被删除,且无法恢复。只有当集群状态处于isolated(已隔离)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccounts

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

DescribeAccounts 查询数据库账号信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeAccountsWithContext

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

DescribeAccounts 查询数据库账号信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterBackups

func (c *Client) DescribeClusterBackups(request *DescribeClusterBackupsRequest) (response *DescribeClusterBackupsResponse, err error)

DescribeClusterBackups 查询集群的备份集

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterBackupsWithContext

func (c *Client) DescribeClusterBackupsWithContext(ctx context.Context, request *DescribeClusterBackupsRequest) (response *DescribeClusterBackupsResponse, err error)

DescribeClusterBackups 查询集群的备份集

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterEndpoints

func (c *Client) DescribeClusterEndpoints(request *DescribeClusterEndpointsRequest) (response *DescribeClusterEndpointsResponse, err error)

DescribeClusterEndpoints 查询集群接入点信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterEndpointsWithContext

func (c *Client) DescribeClusterEndpointsWithContext(ctx context.Context, request *DescribeClusterEndpointsRequest) (response *DescribeClusterEndpointsResponse, err error)

DescribeClusterEndpoints 查询集群接入点信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterInstances

func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)

DescribeClusterInstances 查询实例

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterInstancesWithContext

func (c *Client) DescribeClusterInstancesWithContext(ctx context.Context, request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)

DescribeClusterInstances 查询实例

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClusterRecoveryTimeRange

func (c *Client) DescribeClusterRecoveryTimeRange(request *DescribeClusterRecoveryTimeRangeRequest) (response *DescribeClusterRecoveryTimeRangeResponse, err error)

DescribeClusterRecoveryTimeRange 查询集群可回档时间范围

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BACKUPDATAPOINTINVALID = "InvalidParameterValue.BackupDataPointInvalid"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeClusterRecoveryTimeRangeWithContext

func (c *Client) DescribeClusterRecoveryTimeRangeWithContext(ctx context.Context, request *DescribeClusterRecoveryTimeRangeRequest) (response *DescribeClusterRecoveryTimeRangeResponse, err error)

DescribeClusterRecoveryTimeRange 查询集群可回档时间范围

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_BACKUPDATAPOINTINVALID = "InvalidParameterValue.BackupDataPointInvalid"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_STORAGEPOOLNOTFOUND = "InvalidParameterValue.StoragePoolNotFound"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"

func (*Client) DescribeClusters

func (c *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)

DescribeClusters 查询集群

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeClustersWithContext

func (c *Client) DescribeClustersWithContext(ctx context.Context, request *DescribeClustersRequest) (response *DescribeClustersResponse, err error)

DescribeClusters 查询集群

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeResourcesByDealName

func (c *Client) DescribeResourcesByDealName(request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)

DescribeResourcesByDealName 根据订单号获取资源信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DescribeResourcesByDealNameWithContext

func (c *Client) DescribeResourcesByDealNameWithContext(ctx context.Context, request *DescribeResourcesByDealNameRequest) (response *DescribeResourcesByDealNameResponse, err error)

DescribeResourcesByDealName 根据订单号获取资源信息

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEALNAMENOTFOUND = "InvalidParameterValue.DealNameNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) IsolateCluster

func (c *Client) IsolateCluster(request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)

IsolateCluster 隔离集群,集群的接入点网络将会断掉无法连接使用数据库。只有当集群状态处于running(运行中)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) IsolateClusterInstances

func (c *Client) IsolateClusterInstances(request *IsolateClusterInstancesRequest) (response *IsolateClusterInstancesResponse, err error)

IsolateClusterInstances 隔离实例。此接口只针对状态为running的实例生效,使用场景包括:

  • 批量隔离集群内所有的实例

  • 在读写实例为running(运行中)时,单个/批量隔离只读实例

  • 集群内所有只读实例为isolated(已隔离)时,单独隔离读写实例

可能返回的错误码:

FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) IsolateClusterInstancesWithContext

func (c *Client) IsolateClusterInstancesWithContext(ctx context.Context, request *IsolateClusterInstancesRequest) (response *IsolateClusterInstancesResponse, err error)

IsolateClusterInstances 隔离实例。此接口只针对状态为running的实例生效,使用场景包括:

  • 批量隔离集群内所有的实例

  • 在读写实例为running(运行中)时,单个/批量隔离只读实例

  • 集群内所有只读实例为isolated(已隔离)时,单独隔离读写实例

可能返回的错误码:

FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) IsolateClusterWithContext

func (c *Client) IsolateClusterWithContext(ctx context.Context, request *IsolateClusterRequest) (response *IsolateClusterResponse, err error)

IsolateCluster 隔离集群,集群的接入点网络将会断掉无法连接使用数据库。只有当集群状态处于running(运行中)时才生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"
UNKNOWNPARAMETER = "UnknownParameter"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) ModifyAccountDescription

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

ModifyAccountDescription 修改数据库账号描述

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyAccountDescriptionWithContext

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

ModifyAccountDescription 修改数据库账号描述

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterEndpointWanStatus

func (c *Client) ModifyClusterEndpointWanStatus(request *ModifyClusterEndpointWanStatusRequest) (response *ModifyClusterEndpointWanStatusResponse, err error)

ModifyClusterEndpointWanStatus 开启或者关闭接入点外网

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ENDPOINTNOTFOUND = "InvalidParameterValue.EndpointNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterEndpointWanStatusWithContext

func (c *Client) ModifyClusterEndpointWanStatusWithContext(ctx context.Context, request *ModifyClusterEndpointWanStatusRequest) (response *ModifyClusterEndpointWanStatusResponse, err error)

ModifyClusterEndpointWanStatus 开启或者关闭接入点外网

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ENDPOINTNOTFOUND = "InvalidParameterValue.EndpointNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterInstancesSpec

func (c *Client) ModifyClusterInstancesSpec(request *ModifyClusterInstancesSpecRequest) (response *ModifyClusterInstancesSpecResponse, err error)

ModifyClusterInstancesSpec 修改实例规格,此接口只针对状态为running(运行中)的实例生效

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_SPECNOTCHANGE = "FailedOperation.SpecNotChange"
FAILEDOPERATION_SPECSTORAGELACK = "FailedOperation.SpecStorageLack"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = "InvalidParameterValue.ParameterOutRangeError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterInstancesSpecWithContext

func (c *Client) ModifyClusterInstancesSpecWithContext(ctx context.Context, request *ModifyClusterInstancesSpecRequest) (response *ModifyClusterInstancesSpecResponse, err error)

ModifyClusterInstancesSpec 修改实例规格,此接口只针对状态为running(运行中)的实例生效

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
FAILEDOPERATION_SPECNOTCHANGE = "FailedOperation.SpecNotChange"
FAILEDOPERATION_SPECSTORAGELACK = "FailedOperation.SpecStorageLack"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_INVALIDSPEC = "InvalidParameterValue.InvalidSpec"
INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = "InvalidParameterValue.ParameterOutRangeError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterName

func (c *Client) ModifyClusterName(request *ModifyClusterNameRequest) (response *ModifyClusterNameResponse, err error)

ModifyClusterName 修改集群名字

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClusterNameWithContext

func (c *Client) ModifyClusterNameWithContext(ctx context.Context, request *ModifyClusterNameRequest) (response *ModifyClusterNameResponse, err error)

ModifyClusterName 修改集群名字

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALINSTANCENAME = "InvalidParameterValue.IllegalInstanceName"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClustersAutoRenewFlag

func (c *Client) ModifyClustersAutoRenewFlag(request *ModifyClustersAutoRenewFlagRequest) (response *ModifyClustersAutoRenewFlagResponse, err error)

ModifyClustersAutoRenewFlag 修改集群自动续费,只对预付费集群生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ModifyClustersAutoRenewFlagWithContext

func (c *Client) ModifyClustersAutoRenewFlagWithContext(ctx context.Context, request *ModifyClustersAutoRenewFlagRequest) (response *ModifyClustersAutoRenewFlagResponse, err error)

ModifyClustersAutoRenewFlag 修改集群自动续费,只对预付费集群生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RecoverCluster

func (c *Client) RecoverCluster(request *RecoverClusterRequest) (response *RecoverClusterResponse, err error)

RecoverCluster 恢复集群,恢复集群的接入点网络,恢复后继续连接使用数据库。只有当集群状态处于isolated(已隔离)时才生效。

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RecoverClusterInstances

func (c *Client) RecoverClusterInstances(request *RecoverClusterInstancesRequest) (response *RecoverClusterInstancesResponse, err error)

RecoverClusterInstances 恢复实例。此接口的使用场景包括:

  • 读写实例状态为running(运行中)时,批量恢复状态为isolated(已隔离)的只读实例

  • 读写实例状态为isolated(已隔离)时,恢复读写实例

  • 读写实例状态为isolated(已隔离)时,批量恢复读写实例以及状态为isolated(已隔离)的只读实例

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RecoverClusterInstancesWithContext

func (c *Client) RecoverClusterInstancesWithContext(ctx context.Context, request *RecoverClusterInstancesRequest) (response *RecoverClusterInstancesResponse, err error)

RecoverClusterInstances 恢复实例。此接口的使用场景包括:

  • 读写实例状态为running(运行中)时,批量恢复状态为isolated(已隔离)的只读实例

  • 读写实例状态为isolated(已隔离)时,恢复读写实例

  • 读写实例状态为isolated(已隔离)时,批量恢复读写实例以及状态为isolated(已隔离)的只读实例

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_STATUSERROR = "FailedOperation.StatusError"
FAILEDOPERATION_TASKCONFLICT = "FailedOperation.TaskConflict"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RecoverClusterWithContext

func (c *Client) RecoverClusterWithContext(ctx context.Context, request *RecoverClusterRequest) (response *RecoverClusterResponse, err error)

RecoverCluster 恢复集群,恢复集群的接入点网络,恢复后继续连接使用数据库。只有当集群状态处于isolated(已隔离)时才生效。

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RenewCluster

func (c *Client) RenewCluster(request *RenewClusterRequest) (response *RenewClusterResponse, err error)

RenewCluster 续费集群

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) RenewClusterWithContext

func (c *Client) RenewClusterWithContext(ctx context.Context, request *RenewClusterRequest) (response *RenewClusterResponse, err error)

RenewCluster 续费集群

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"

func (*Client) ResetAccountPassword

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

ResetAccountPassword 重置数据库账号密码

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
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 重置数据库账号密码

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_ACCOUNTNOTFOUND = "InvalidParameterValue.AccountNotFound"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_ILLEGALPASSWORD = "InvalidParameterValue.IllegalPassword"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RestartClusterInstances

func (c *Client) RestartClusterInstances(request *RestartClusterInstancesRequest) (response *RestartClusterInstancesResponse, err error)

RestartClusterInstances 重启实例,此接口只针对状态为running(运行中)的实例生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = "InvalidParameterValue.ParameterOutRangeError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) RestartClusterInstancesWithContext

func (c *Client) RestartClusterInstancesWithContext(ctx context.Context, request *RestartClusterInstancesRequest) (response *RestartClusterInstancesResponse, err error)

RestartClusterInstances 重启实例,此接口只针对状态为running(运行中)的实例生效。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_FLOWERROR = "FailedOperation.FlowError"
FAILEDOPERATION_INTERNALSERVICEACCESSERROR = "FailedOperation.InternalServiceAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_PARAMETEROUTRANGEERROR = "InvalidParameterValue.ParameterOutRangeError"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) TransformClusterPayMode

func (c *Client) TransformClusterPayMode(request *TransformClusterPayModeRequest) (response *TransformClusterPayModeResponse, err error)

TransformClusterPayMode 转换集群付费模式,目前只支持从 后付费 转换成 与预付费。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) TransformClusterPayModeWithContext

func (c *Client) TransformClusterPayModeWithContext(ctx context.Context, request *TransformClusterPayModeRequest) (response *TransformClusterPayModeResponse, err error)

TransformClusterPayMode 转换集群付费模式,目前只支持从 后付费 转换成 与预付费。

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DATABASEACCESSERROR = "FailedOperation.DatabaseAccessError"
FAILEDOPERATION_PAYMODEINVALID = "FailedOperation.PayModeInvalid"
FAILEDOPERATION_TRADEACCESSERROR = "FailedOperation.TradeAccessError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLUSTERNOTFOUND = "InvalidParameterValue.ClusterNotFound"
INVALIDPARAMETERVALUE_INSTANCENOTFOUND = "InvalidParameterValue.InstanceNotFound"
INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUEERROR = "InvalidParameterValue.InvalidParameterValueError"
INVALIDPARAMETERVALUE_REGIONZONEUNAVAILABLE = "InvalidParameterValue.RegionZoneUnavailable"
RESOURCEUNAVAILABLE_INSTANCESTATUSABNORMAL = "ResourceUnavailable.InstanceStatusAbnormal"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

type CloneClusterToPointInTimeRequest

type CloneClusterToPointInTimeRequest struct {
	*tchttp.BaseRequest

	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 数据库版本,目前仅支持 10.17
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

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

	// 已配置的私有网络中的子网ID
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// 集群付费模式
	// - PREPAID:预付费,即包年包月
	// - POSTPAID_BY_HOUR:按小时后付费
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 对应的备份数据来源集群ID
	SourceClusterId *string `json:"SourceClusterId,omitnil,omitempty" name:"SourceClusterId"`

	// 对应的备份数据时间点。按照RFC3339标准表示,并且使用东八区时区时间。格式为:YYYY-MM-DDThh:mm:ss+08:00。
	SourceDataPoint *string `json:"SourceDataPoint,omitnil,omitempty" name:"SourceDataPoint"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与ClusterId保持一致。
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`

	// 项目Id,默认为0表示默认项目
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 连接数据库时,Endpoint使用的端口。取值范围为[1,65534],默认值为5432
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// 集群下实例数量。取值范围为[1,4],默认值为1
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`

	// 是否自动续费,0-不 1-是。默认为0,只有当PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// 存储付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	// 默认为POSTPAID_BY_HOUR,实例付费模式为按小时付费时,存储付费模式不支持包年包月
	StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`

	// 存储最大使用量,单位GB。取值参考文档【购买指南】。存储使用预付费模式时必须设置,存储使用按小时后付费时不可设置
	Storage *uint64 `json:"Storage,omitnil,omitempty" name:"Storage"`
}

func NewCloneClusterToPointInTimeRequest

func NewCloneClusterToPointInTimeRequest() (request *CloneClusterToPointInTimeRequest)

func (*CloneClusterToPointInTimeRequest) FromJsonString

func (r *CloneClusterToPointInTimeRequest) 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 (*CloneClusterToPointInTimeRequest) ToJsonString

func (r *CloneClusterToPointInTimeRequest) ToJsonString() string

type CloneClusterToPointInTimeRequestParams added in v1.0.426

type CloneClusterToPointInTimeRequestParams struct {
	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 数据库版本,目前仅支持 10.17
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

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

	// 已配置的私有网络中的子网ID
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// 集群付费模式
	// - PREPAID:预付费,即包年包月
	// - POSTPAID_BY_HOUR:按小时后付费
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 对应的备份数据来源集群ID
	SourceClusterId *string `json:"SourceClusterId,omitnil,omitempty" name:"SourceClusterId"`

	// 对应的备份数据时间点。按照RFC3339标准表示,并且使用东八区时区时间。格式为:YYYY-MM-DDThh:mm:ss+08:00。
	SourceDataPoint *string `json:"SourceDataPoint,omitnil,omitempty" name:"SourceDataPoint"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与ClusterId保持一致。
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`

	// 项目Id,默认为0表示默认项目
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 连接数据库时,Endpoint使用的端口。取值范围为[1,65534],默认值为5432
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// 集群下实例数量。取值范围为[1,4],默认值为1
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`

	// 是否自动续费,0-不 1-是。默认为0,只有当PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// 存储付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	// 默认为POSTPAID_BY_HOUR,实例付费模式为按小时付费时,存储付费模式不支持包年包月
	StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`

	// 存储最大使用量,单位GB。取值参考文档【购买指南】。存储使用预付费模式时必须设置,存储使用按小时后付费时不可设置
	Storage *uint64 `json:"Storage,omitnil,omitempty" name:"Storage"`
}

Predefined struct for user

type CloneClusterToPointInTimeResponse

type CloneClusterToPointInTimeResponse struct {
	*tchttp.BaseResponse
	Response *CloneClusterToPointInTimeResponseParams `json:"Response"`
}

func NewCloneClusterToPointInTimeResponse

func NewCloneClusterToPointInTimeResponse() (response *CloneClusterToPointInTimeResponse)

func (*CloneClusterToPointInTimeResponse) FromJsonString

func (r *CloneClusterToPointInTimeResponse) 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 (*CloneClusterToPointInTimeResponse) ToJsonString

func (r *CloneClusterToPointInTimeResponse) ToJsonString() string

type CloneClusterToPointInTimeResponseParams added in v1.0.426

type CloneClusterToPointInTimeResponseParams struct {
	// 订单号
	DealNameSet []*string `json:"DealNameSet,omitnil,omitempty" name:"DealNameSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Cluster

type Cluster struct {
	// 集群ID,集群的唯一标识
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 集群名字,不修改时默认和集群ID相同
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`

	// 地域
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`

	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// TDSQL-C PostgreSQL 合入的社区版本号
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

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

	// 集群状态。目前包括
	//  - creating :创建中
	//  - running : 运行中
	//  - isolating : 隔离中
	//  - isolated : 已隔离
	//  - recovering : 恢复中
	//  - deleting : 删除中
	//  - deleted : 已删除
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// 集群状态中文含义
	StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`

	// 集群创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 存储当前使用量,单位GiB
	StorageUsed *float64 `json:"StorageUsed,omitnil,omitempty" name:"StorageUsed"`

	// 存储最大使用量,单位GiB
	StorageLimit *uint64 `json:"StorageLimit,omitnil,omitempty" name:"StorageLimit"`

	// 付费模式:
	//  - PREPAID : 预付费,即包年包月
	//  - POSTPAID_BY_HOUR : 按小时结算后付费
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 预付费集群到期时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	PayPeriodEndTime *string `json:"PayPeriodEndTime,omitnil,omitempty" name:"PayPeriodEndTime"`

	// 预付费集群自动续费标签
	//  - 0 : 到期不自动续费
	//  - 1 : 到期自动续费
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// 数据库字符集
	DBCharset *string `json:"DBCharset,omitnil,omitempty" name:"DBCharset"`

	// 集群内实例的数量
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`

	// 集群内访问点信息
	EndpointSet []*Endpoint `json:"EndpointSet,omitnil,omitempty" name:"EndpointSet"`

	// TDSQL-C PostgreSQL 合入的社区主要版本号
	DBMajorVersion *string `json:"DBMajorVersion,omitnil,omitempty" name:"DBMajorVersion"`

	// TDSQL-C PostgreSQL 内核版本号
	DBKernelVersion *string `json:"DBKernelVersion,omitnil,omitempty" name:"DBKernelVersion"`

	// 存储付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	// 注意:此字段可能返回 null,表示取不到有效值。
	StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`
}

type CreateClusterInstancesRequest

type CreateClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// 实例名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与InstanceId一致。
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// 新建实例的数量,默认为1。单集群下实例数量目前不能超过4个。
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
}

func NewCreateClusterInstancesRequest

func NewCreateClusterInstancesRequest() (request *CreateClusterInstancesRequest)

func (*CreateClusterInstancesRequest) FromJsonString

func (r *CreateClusterInstancesRequest) 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 (*CreateClusterInstancesRequest) ToJsonString

func (r *CreateClusterInstancesRequest) ToJsonString() string

type CreateClusterInstancesRequestParams added in v1.0.426

type CreateClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// 实例名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与InstanceId一致。
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// 新建实例的数量,默认为1。单集群下实例数量目前不能超过4个。
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`
}

Predefined struct for user

type CreateClusterInstancesResponse

type CreateClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *CreateClusterInstancesResponseParams `json:"Response"`
}

func NewCreateClusterInstancesResponse

func NewCreateClusterInstancesResponse() (response *CreateClusterInstancesResponse)

func (*CreateClusterInstancesResponse) FromJsonString

func (r *CreateClusterInstancesResponse) 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 (*CreateClusterInstancesResponse) ToJsonString

func (r *CreateClusterInstancesResponse) ToJsonString() string

type CreateClusterInstancesResponseParams added in v1.0.426

type CreateClusterInstancesResponseParams struct {
	// 订单号
	DealNameSet []*string `json:"DealNameSet,omitnil,omitempty" name:"DealNameSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateClusterRequest

type CreateClusterRequest struct {
	*tchttp.BaseRequest

	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 数据库用户密码,必须满足 8-64个字符,至少包含 大写字母、小写字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种
	MasterUserPassword *string `json:"MasterUserPassword,omitnil,omitempty" name:"MasterUserPassword"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

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

	// 已配置的私有网络中的子网ID
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// 实例付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与ClusterId保持一致
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`

	// TDSQL-C PostgreSQL 合入的社区版本号。
	// 支持入参值为:10.17。当输入该参数时,会基于此版本号创建对应的最新DBKernelVersion数据库内核。
	// 注:该参数与DBMajorVersion、DBKernelVersion只能传递一个,且需要传递一个。
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

	// 项目Id,默认为0表示默认项目
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 连接数据库时,Endpoint使用的端口。取值范围为[1,65534],默认值为5432
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// 集群下实例数量。取值范围为[1,4],默认值为1
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`

	// 是否自动续费,0-不 1-是。默认值为0,只有当PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// TDSQL-C PostgreSQL 合入的社区主要版本号。
	// 支持入参值为:10。当输入该参数时,会基于此版本号创建对应的最新DBKernelVersion数据库内核。
	// 注:该参数和DBVersion、DBKernelVersion只能传递一个,且需要传递一个。
	DBMajorVersion *string `json:"DBMajorVersion,omitnil,omitempty" name:"DBMajorVersion"`

	// TDSQL-C PostgreSQL 内核版本号。
	// 支持入参值为:v10.17_r1.4。当输入该参数时,会创建此版本号对应的数据库内核。
	// 注:该参数和DBVersion、DBMajorVersion只能传递一个,且需要传递一个。
	DBKernelVersion *string `json:"DBKernelVersion,omitnil,omitempty" name:"DBKernelVersion"`

	// 存储付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	// 默认为POSTPAID_BY_HOUR,实例付费模式为按小时付费时,存储付费模式不支持包年包月
	StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`

	// 存储最大使用量,单位GB。取值参考文档【购买指南】。存储使用预付费模式时必须设置,存储使用按小时后付费时不可设置
	Storage *uint64 `json:"Storage,omitnil,omitempty" name:"Storage"`
}

func NewCreateClusterRequest

func NewCreateClusterRequest() (request *CreateClusterRequest)

func (*CreateClusterRequest) FromJsonString

func (r *CreateClusterRequest) 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 (*CreateClusterRequest) ToJsonString

func (r *CreateClusterRequest) ToJsonString() string

type CreateClusterRequestParams added in v1.0.426

type CreateClusterRequestParams struct {
	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 数据库用户密码,必须满足 8-64个字符,至少包含 大写字母、小写字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种
	MasterUserPassword *string `json:"MasterUserPassword,omitnil,omitempty" name:"MasterUserPassword"`

	// CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

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

	// 已配置的私有网络中的子网ID
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// 实例付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."。不输入此参数时默认与ClusterId保持一致
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`

	// TDSQL-C PostgreSQL 合入的社区版本号。
	// 支持入参值为:10.17。当输入该参数时,会基于此版本号创建对应的最新DBKernelVersion数据库内核。
	// 注:该参数与DBMajorVersion、DBKernelVersion只能传递一个,且需要传递一个。
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

	// 项目Id,默认为0表示默认项目
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 连接数据库时,Endpoint使用的端口。取值范围为[1,65534],默认值为5432
	Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"`

	// 集群下实例数量。取值范围为[1,4],默认值为1
	InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`

	// 是否自动续费,0-不 1-是。默认值为0,只有当PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// TDSQL-C PostgreSQL 合入的社区主要版本号。
	// 支持入参值为:10。当输入该参数时,会基于此版本号创建对应的最新DBKernelVersion数据库内核。
	// 注:该参数和DBVersion、DBKernelVersion只能传递一个,且需要传递一个。
	DBMajorVersion *string `json:"DBMajorVersion,omitnil,omitempty" name:"DBMajorVersion"`

	// TDSQL-C PostgreSQL 内核版本号。
	// 支持入参值为:v10.17_r1.4。当输入该参数时,会创建此版本号对应的数据库内核。
	// 注:该参数和DBVersion、DBMajorVersion只能传递一个,且需要传递一个。
	DBKernelVersion *string `json:"DBKernelVersion,omitnil,omitempty" name:"DBKernelVersion"`

	// 存储付费模式
	//  - PREPAID:预付费,即包年包月
	//  - POSTPAID_BY_HOUR:按小时后付费
	// 默认为POSTPAID_BY_HOUR,实例付费模式为按小时付费时,存储付费模式不支持包年包月
	StoragePayMode *string `json:"StoragePayMode,omitnil,omitempty" name:"StoragePayMode"`

	// 存储最大使用量,单位GB。取值参考文档【购买指南】。存储使用预付费模式时必须设置,存储使用按小时后付费时不可设置
	Storage *uint64 `json:"Storage,omitnil,omitempty" name:"Storage"`
}

Predefined struct for user

type CreateClusterResponse

type CreateClusterResponse struct {
	*tchttp.BaseResponse
	Response *CreateClusterResponseParams `json:"Response"`
}

func NewCreateClusterResponse

func NewCreateClusterResponse() (response *CreateClusterResponse)

func (*CreateClusterResponse) FromJsonString

func (r *CreateClusterResponse) 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 (*CreateClusterResponse) ToJsonString

func (r *CreateClusterResponse) ToJsonString() string

type CreateClusterResponseParams added in v1.0.426

type CreateClusterResponseParams struct {
	// 订单号
	DealNameSet []*string `json:"DealNameSet,omitnil,omitempty" name:"DealNameSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteClusterInstancesRequest

type DeleteClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

func NewDeleteClusterInstancesRequest

func NewDeleteClusterInstancesRequest() (request *DeleteClusterInstancesRequest)

func (*DeleteClusterInstancesRequest) FromJsonString

func (r *DeleteClusterInstancesRequest) 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 (*DeleteClusterInstancesRequest) ToJsonString

func (r *DeleteClusterInstancesRequest) ToJsonString() string

type DeleteClusterInstancesRequestParams added in v1.0.426

type DeleteClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

Predefined struct for user

type DeleteClusterInstancesResponse

type DeleteClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DeleteClusterInstancesResponseParams `json:"Response"`
}

func NewDeleteClusterInstancesResponse

func NewDeleteClusterInstancesResponse() (response *DeleteClusterInstancesResponse)

func (*DeleteClusterInstancesResponse) FromJsonString

func (r *DeleteClusterInstancesResponse) 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 (*DeleteClusterInstancesResponse) ToJsonString

func (r *DeleteClusterInstancesResponse) ToJsonString() string

type DeleteClusterInstancesResponseParams added in v1.0.426

type DeleteClusterInstancesResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteClusterRequest

type DeleteClusterRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

func NewDeleteClusterRequest

func NewDeleteClusterRequest() (request *DeleteClusterRequest)

func (*DeleteClusterRequest) FromJsonString

func (r *DeleteClusterRequest) 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 (*DeleteClusterRequest) ToJsonString

func (r *DeleteClusterRequest) ToJsonString() string

type DeleteClusterRequestParams added in v1.0.426

type DeleteClusterRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

Predefined struct for user

type DeleteClusterResponse

type DeleteClusterResponse struct {
	*tchttp.BaseResponse
	Response *DeleteClusterResponseParams `json:"Response"`
}

func NewDeleteClusterResponse

func NewDeleteClusterResponse() (response *DeleteClusterResponse)

func (*DeleteClusterResponse) FromJsonString

func (r *DeleteClusterResponse) 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 (*DeleteClusterResponse) ToJsonString

func (r *DeleteClusterResponse) ToJsonString() string

type DeleteClusterResponseParams added in v1.0.426

type DeleteClusterResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeAccountsRequest

type DescribeAccountsRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

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 added in v1.0.426

type DescribeAccountsRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

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 added in v1.0.426

type DescribeAccountsResponseParams struct {
	// 总条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 账号信息列表
	AccountSet []*Account `json:"AccountSet,omitnil,omitempty" name:"AccountSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClusterBackupsRequest

type DescribeClusterBackupsRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数,取值范围为默认为[1,100],默认值为20
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

func NewDescribeClusterBackupsRequest

func NewDescribeClusterBackupsRequest() (request *DescribeClusterBackupsRequest)

func (*DescribeClusterBackupsRequest) FromJsonString

func (r *DescribeClusterBackupsRequest) 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 (*DescribeClusterBackupsRequest) ToJsonString

func (r *DescribeClusterBackupsRequest) ToJsonString() string

type DescribeClusterBackupsRequestParams added in v1.0.426

type DescribeClusterBackupsRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数,取值范围为默认为[1,100],默认值为20
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`
}

Predefined struct for user

type DescribeClusterBackupsResponse

type DescribeClusterBackupsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClusterBackupsResponseParams `json:"Response"`
}

func NewDescribeClusterBackupsResponse

func NewDescribeClusterBackupsResponse() (response *DescribeClusterBackupsResponse)

func (*DescribeClusterBackupsResponse) FromJsonString

func (r *DescribeClusterBackupsResponse) 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 (*DescribeClusterBackupsResponse) ToJsonString

func (r *DescribeClusterBackupsResponse) ToJsonString() string

type DescribeClusterBackupsResponseParams added in v1.0.426

type DescribeClusterBackupsResponseParams struct {
	// 总条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 备份列表信息
	BackupSet []*Backup `json:"BackupSet,omitnil,omitempty" name:"BackupSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClusterEndpointsRequest

type DescribeClusterEndpointsRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

func NewDescribeClusterEndpointsRequest

func NewDescribeClusterEndpointsRequest() (request *DescribeClusterEndpointsRequest)

func (*DescribeClusterEndpointsRequest) FromJsonString

func (r *DescribeClusterEndpointsRequest) 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 (*DescribeClusterEndpointsRequest) ToJsonString

func (r *DescribeClusterEndpointsRequest) ToJsonString() string

type DescribeClusterEndpointsRequestParams added in v1.0.426

type DescribeClusterEndpointsRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

Predefined struct for user

type DescribeClusterEndpointsResponse

type DescribeClusterEndpointsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClusterEndpointsResponseParams `json:"Response"`
}

func NewDescribeClusterEndpointsResponse

func NewDescribeClusterEndpointsResponse() (response *DescribeClusterEndpointsResponse)

func (*DescribeClusterEndpointsResponse) FromJsonString

func (r *DescribeClusterEndpointsResponse) 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 (*DescribeClusterEndpointsResponse) ToJsonString

func (r *DescribeClusterEndpointsResponse) ToJsonString() string

type DescribeClusterEndpointsResponseParams added in v1.0.426

type DescribeClusterEndpointsResponseParams struct {
	// 总条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 接入点列表
	EndpointSet []*Endpoint `json:"EndpointSet,omitnil,omitempty" name:"EndpointSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClusterInstancesRequest

type DescribeClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数,取值范围为默认为[1,100],默认值为20
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 目前支持查询条件包括:
	//  - InstanceId : 实例ID
	//  - InstanceName : 实例名
	//  - EndpointId : 接入点ID
	//  - Status : 实例状态
	//  - InstanceType : 实例类型
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// 排序字段,可选字段:
	// - CreateTime : 实例创建时间(默认值)
	// - PayPeriodEndTime : 实例过期时间
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// 排序方式,可选字段:
	// - DESC : 降序(默认值)
	// - ASC : 升序
	OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}

func NewDescribeClusterInstancesRequest

func NewDescribeClusterInstancesRequest() (request *DescribeClusterInstancesRequest)

func (*DescribeClusterInstancesRequest) FromJsonString

func (r *DescribeClusterInstancesRequest) 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 (*DescribeClusterInstancesRequest) ToJsonString

func (r *DescribeClusterInstancesRequest) ToJsonString() string

type DescribeClusterInstancesRequestParams added in v1.0.426

type DescribeClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数,取值范围为默认为[1,100],默认值为20
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 目前支持查询条件包括:
	//  - InstanceId : 实例ID
	//  - InstanceName : 实例名
	//  - EndpointId : 接入点ID
	//  - Status : 实例状态
	//  - InstanceType : 实例类型
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// 排序字段,可选字段:
	// - CreateTime : 实例创建时间(默认值)
	// - PayPeriodEndTime : 实例过期时间
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// 排序方式,可选字段:
	// - DESC : 降序(默认值)
	// - ASC : 升序
	OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}

Predefined struct for user

type DescribeClusterInstancesResponse

type DescribeClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClusterInstancesResponseParams `json:"Response"`
}

func NewDescribeClusterInstancesResponse

func NewDescribeClusterInstancesResponse() (response *DescribeClusterInstancesResponse)

func (*DescribeClusterInstancesResponse) FromJsonString

func (r *DescribeClusterInstancesResponse) 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 (*DescribeClusterInstancesResponse) ToJsonString

func (r *DescribeClusterInstancesResponse) ToJsonString() string

type DescribeClusterInstancesResponseParams added in v1.0.426

type DescribeClusterInstancesResponseParams struct {
	// 总条数
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 实例列表信息
	InstanceSet []*Instance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClusterRecoveryTimeRangeRequest

type DescribeClusterRecoveryTimeRangeRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 期望的回档时间点,传入从集群创建时间到当前时间之间的时间点。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	DataPoint *string `json:"DataPoint,omitnil,omitempty" name:"DataPoint"`
}

func NewDescribeClusterRecoveryTimeRangeRequest

func NewDescribeClusterRecoveryTimeRangeRequest() (request *DescribeClusterRecoveryTimeRangeRequest)

func (*DescribeClusterRecoveryTimeRangeRequest) FromJsonString

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

func (*DescribeClusterRecoveryTimeRangeRequest) ToJsonString

type DescribeClusterRecoveryTimeRangeRequestParams added in v1.0.426

type DescribeClusterRecoveryTimeRangeRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 期望的回档时间点,传入从集群创建时间到当前时间之间的时间点。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	DataPoint *string `json:"DataPoint,omitnil,omitempty" name:"DataPoint"`
}

Predefined struct for user

type DescribeClusterRecoveryTimeRangeResponse

type DescribeClusterRecoveryTimeRangeResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClusterRecoveryTimeRangeResponseParams `json:"Response"`
}

func NewDescribeClusterRecoveryTimeRangeResponse

func NewDescribeClusterRecoveryTimeRangeResponse() (response *DescribeClusterRecoveryTimeRangeResponse)

func (*DescribeClusterRecoveryTimeRangeResponse) FromJsonString

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

func (*DescribeClusterRecoveryTimeRangeResponse) ToJsonString

type DescribeClusterRecoveryTimeRangeResponseParams added in v1.0.426

type DescribeClusterRecoveryTimeRangeResponseParams struct {
	// 可回档时间范围列表
	AvailableRecoveryTimeRangeSet []*AvailableRecoveryTimeRange `json:"AvailableRecoveryTimeRangeSet,omitnil,omitempty" name:"AvailableRecoveryTimeRangeSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClustersRequest

type DescribeClustersRequest struct {
	*tchttp.BaseRequest

	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页条数,取值范围为默认为[1,100],默认值为20
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 目前支持查询条件包括:
	//  - ClusterId : 集群ID
	//  - ClusterName : 集群名
	//  - ProjectId : 项目ID
	//  - Status : 集群状态
	//  - PayMode : 付费模式
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// 排序字段,可选字段:
	//  - CreateTime : 集群创建时间(默认值)
	//  - PayPeriodEndTime : 集群过期时间
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// 排序方式,可选字段:
	//  - DESC : 降序(默认值)
	//  - ASC : 升序
	OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}

func NewDescribeClustersRequest

func NewDescribeClustersRequest() (request *DescribeClustersRequest)

func (*DescribeClustersRequest) FromJsonString

func (r *DescribeClustersRequest) 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 (*DescribeClustersRequest) ToJsonString

func (r *DescribeClustersRequest) ToJsonString() string

type DescribeClustersRequestParams added in v1.0.426

type DescribeClustersRequestParams struct {
	// 页码,取值范围为[1,INF),默认值为1
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页条数,取值范围为默认为[1,100],默认值为20
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 目前支持查询条件包括:
	//  - ClusterId : 集群ID
	//  - ClusterName : 集群名
	//  - ProjectId : 项目ID
	//  - Status : 集群状态
	//  - PayMode : 付费模式
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// 排序字段,可选字段:
	//  - CreateTime : 集群创建时间(默认值)
	//  - PayPeriodEndTime : 集群过期时间
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// 排序方式,可选字段:
	//  - DESC : 降序(默认值)
	//  - ASC : 升序
	OrderByType *string `json:"OrderByType,omitnil,omitempty" name:"OrderByType"`
}

Predefined struct for user

type DescribeClustersResponse

type DescribeClustersResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClustersResponseParams `json:"Response"`
}

func NewDescribeClustersResponse

func NewDescribeClustersResponse() (response *DescribeClustersResponse)

func (*DescribeClustersResponse) FromJsonString

func (r *DescribeClustersResponse) 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 (*DescribeClustersResponse) ToJsonString

func (r *DescribeClustersResponse) ToJsonString() string

type DescribeClustersResponseParams added in v1.0.426

type DescribeClustersResponseParams struct {
	// 总条数
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 集群列表信息
	ClusterSet []*Cluster `json:"ClusterSet,omitnil,omitempty" name:"ClusterSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeResourcesByDealNameRequest

type DescribeResourcesByDealNameRequest struct {
	*tchttp.BaseRequest

	// 计费订单id(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
	DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
}

func NewDescribeResourcesByDealNameRequest

func NewDescribeResourcesByDealNameRequest() (request *DescribeResourcesByDealNameRequest)

func (*DescribeResourcesByDealNameRequest) FromJsonString

func (r *DescribeResourcesByDealNameRequest) 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 (*DescribeResourcesByDealNameRequest) ToJsonString

func (r *DescribeResourcesByDealNameRequest) ToJsonString() string

type DescribeResourcesByDealNameRequestParams added in v1.0.426

type DescribeResourcesByDealNameRequestParams struct {
	// 计费订单id(如果计费还没回调业务发货,可能出现错误码InvalidParameterValue.DealNameNotFound,这种情况需要业务重试DescribeResourcesByDealName接口直到成功)
	DealName *string `json:"DealName,omitnil,omitempty" name:"DealName"`
}

Predefined struct for user

type DescribeResourcesByDealNameResponse

type DescribeResourcesByDealNameResponse struct {
	*tchttp.BaseResponse
	Response *DescribeResourcesByDealNameResponseParams `json:"Response"`
}

func NewDescribeResourcesByDealNameResponse

func NewDescribeResourcesByDealNameResponse() (response *DescribeResourcesByDealNameResponse)

func (*DescribeResourcesByDealNameResponse) FromJsonString

func (r *DescribeResourcesByDealNameResponse) 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 (*DescribeResourcesByDealNameResponse) ToJsonString

func (r *DescribeResourcesByDealNameResponse) ToJsonString() string

type DescribeResourcesByDealNameResponseParams added in v1.0.426

type DescribeResourcesByDealNameResponseParams struct {
	// 资源ID信息列表
	ResourceIdInfoSet []*ResourceIdInfo `json:"ResourceIdInfoSet,omitnil,omitempty" name:"ResourceIdInfoSet"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Endpoint

type Endpoint struct {
	// 连接点ID,集群内唯一
	EndpointId *string `json:"EndpointId,omitnil,omitempty" name:"EndpointId"`

	// 连接点所属的集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 连接点名字,默认和连接点ID一致
	EndpointName *string `json:"EndpointName,omitnil,omitempty" name:"EndpointName"`

	// 连接点类型
	//  - RW : 读写
	//  - RO : 只读
	EndpointType *string `json:"EndpointType,omitnil,omitempty" name:"EndpointType"`

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

	// 私有网络VPC下子网实例ID
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// 私有网络VPC下用于访问数据库的IP
	PrivateIp *string `json:"PrivateIp,omitnil,omitempty" name:"PrivateIp"`

	// 私有网络VPC下用于访问数据库的端口
	PrivatePort *uint64 `json:"PrivatePort,omitnil,omitempty" name:"PrivatePort"`

	// 公共网络用户访问数据库的IP
	WanIp *string `json:"WanIp,omitnil,omitempty" name:"WanIp"`

	// 公共网络用户访问数据库的端口
	WanPort *uint64 `json:"WanPort,omitnil,omitempty" name:"WanPort"`

	// 公共网络用户访问数据库的域名
	WanDomain *string `json:"WanDomain,omitnil,omitempty" name:"WanDomain"`
}

type Filter

type Filter struct {
	// 过滤条件名
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 过滤条件值数组
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`

	// true:精确匹配(默认值) false:(模糊匹配)
	ExactMatch *bool `json:"ExactMatch,omitnil,omitempty" name:"ExactMatch"`
}

type Instance

type Instance struct {
	// 实例ID,集群下唯一
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// 实例名字,默认和实例ID一致
	InstanceName *string `json:"InstanceName,omitnil,omitempty" name:"InstanceName"`

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例所在的访问点ID
	EndpointId *string `json:"EndpointId,omitnil,omitempty" name:"EndpointId"`

	// 地域
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`

	// 可用区
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 数据库版本
	DBVersion *string `json:"DBVersion,omitnil,omitempty" name:"DBVersion"`

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

	// 实例状态中文含义
	StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`

	// 实例创建时间。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 付费模式:
	// - PREPAID : 预付费
	// - POSTPAID_BY_HOUR : 按小时结算后付费
	//
	// 同一集群下付费模式需要保持一致。
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 实例到期时间。同一集群下到期时间需要保持一致。按照RFC3339标准表示,并且使用东八区时区时间,格式为:YYYY-MM-DDThh:mm:ss+08:00。
	PayPeriodEndTime *string `json:"PayPeriodEndTime,omitnil,omitempty" name:"PayPeriodEndTime"`

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

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

	// 实例类型
	//  - RW:读写实例
	//  - RO:只读实例
	InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`

	// TDSQL-C PostgreSQL 合入的社区主要版本号
	DBMajorVersion *string `json:"DBMajorVersion,omitnil,omitempty" name:"DBMajorVersion"`

	// TDSQL-C PostgreSQL 内核版本号
	DBKernelVersion *string `json:"DBKernelVersion,omitnil,omitempty" name:"DBKernelVersion"`
}

type IsolateClusterInstancesRequest

type IsolateClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

func NewIsolateClusterInstancesRequest

func NewIsolateClusterInstancesRequest() (request *IsolateClusterInstancesRequest)

func (*IsolateClusterInstancesRequest) FromJsonString

func (r *IsolateClusterInstancesRequest) 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 (*IsolateClusterInstancesRequest) ToJsonString

func (r *IsolateClusterInstancesRequest) ToJsonString() string

type IsolateClusterInstancesRequestParams added in v1.0.426

type IsolateClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

Predefined struct for user

type IsolateClusterInstancesResponse

type IsolateClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *IsolateClusterInstancesResponseParams `json:"Response"`
}

func NewIsolateClusterInstancesResponse

func NewIsolateClusterInstancesResponse() (response *IsolateClusterInstancesResponse)

func (*IsolateClusterInstancesResponse) FromJsonString

func (r *IsolateClusterInstancesResponse) 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 (*IsolateClusterInstancesResponse) ToJsonString

func (r *IsolateClusterInstancesResponse) ToJsonString() string

type IsolateClusterInstancesResponseParams added in v1.0.426

type IsolateClusterInstancesResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type IsolateClusterRequest

type IsolateClusterRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

func NewIsolateClusterRequest

func NewIsolateClusterRequest() (request *IsolateClusterRequest)

func (*IsolateClusterRequest) FromJsonString

func (r *IsolateClusterRequest) 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 (*IsolateClusterRequest) ToJsonString

func (r *IsolateClusterRequest) ToJsonString() string

type IsolateClusterRequestParams added in v1.0.426

type IsolateClusterRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`
}

Predefined struct for user

type IsolateClusterResponse

type IsolateClusterResponse struct {
	*tchttp.BaseResponse
	Response *IsolateClusterResponseParams `json:"Response"`
}

func NewIsolateClusterResponse

func NewIsolateClusterResponse() (response *IsolateClusterResponse)

func (*IsolateClusterResponse) FromJsonString

func (r *IsolateClusterResponse) 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 (*IsolateClusterResponse) ToJsonString

func (r *IsolateClusterResponse) ToJsonString() string

type IsolateClusterResponseParams added in v1.0.426

type IsolateClusterResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyAccountDescriptionRequest

type ModifyAccountDescriptionRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 账号名字
	AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`

	// 账号描述,0-256个字符
	AccountDescription *string `json:"AccountDescription,omitnil,omitempty" name:"AccountDescription"`
}

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 added in v1.0.426

type ModifyAccountDescriptionRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 账号名字
	AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`

	// 账号描述,0-256个字符
	AccountDescription *string `json:"AccountDescription,omitnil,omitempty" name:"AccountDescription"`
}

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 added in v1.0.426

type ModifyAccountDescriptionResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyClusterEndpointWanStatusRequest

type ModifyClusterEndpointWanStatusRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 接入点ID
	EndpointId *string `json:"EndpointId,omitnil,omitempty" name:"EndpointId"`

	// 取值为:
	//  - OPEN:开启外网
	//  - CLOSE:关闭外网
	WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
}

func NewModifyClusterEndpointWanStatusRequest

func NewModifyClusterEndpointWanStatusRequest() (request *ModifyClusterEndpointWanStatusRequest)

func (*ModifyClusterEndpointWanStatusRequest) FromJsonString

func (r *ModifyClusterEndpointWanStatusRequest) 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 (*ModifyClusterEndpointWanStatusRequest) ToJsonString

type ModifyClusterEndpointWanStatusRequestParams added in v1.0.426

type ModifyClusterEndpointWanStatusRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 接入点ID
	EndpointId *string `json:"EndpointId,omitnil,omitempty" name:"EndpointId"`

	// 取值为:
	//  - OPEN:开启外网
	//  - CLOSE:关闭外网
	WanStatus *string `json:"WanStatus,omitnil,omitempty" name:"WanStatus"`
}

Predefined struct for user

type ModifyClusterEndpointWanStatusResponse

type ModifyClusterEndpointWanStatusResponse struct {
	*tchttp.BaseResponse
	Response *ModifyClusterEndpointWanStatusResponseParams `json:"Response"`
}

func NewModifyClusterEndpointWanStatusResponse

func NewModifyClusterEndpointWanStatusResponse() (response *ModifyClusterEndpointWanStatusResponse)

func (*ModifyClusterEndpointWanStatusResponse) FromJsonString

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

func (*ModifyClusterEndpointWanStatusResponse) ToJsonString

type ModifyClusterEndpointWanStatusResponseParams added in v1.0.426

type ModifyClusterEndpointWanStatusResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyClusterInstancesSpecRequest

type ModifyClusterInstancesSpecRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表,目前只支持单个实例修改
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`

	// 修改后的CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 修改后的内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// 操作时机
	//  - IMMEDIATE:立即执行
	//  - MAINTAIN_PERIOD:维护窗口期执行
	OperationTiming *string `json:"OperationTiming,omitnil,omitempty" name:"OperationTiming"`
}

func NewModifyClusterInstancesSpecRequest

func NewModifyClusterInstancesSpecRequest() (request *ModifyClusterInstancesSpecRequest)

func (*ModifyClusterInstancesSpecRequest) FromJsonString

func (r *ModifyClusterInstancesSpecRequest) 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 (*ModifyClusterInstancesSpecRequest) ToJsonString

func (r *ModifyClusterInstancesSpecRequest) ToJsonString() string

type ModifyClusterInstancesSpecRequestParams added in v1.0.426

type ModifyClusterInstancesSpecRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表,目前只支持单个实例修改
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`

	// 修改后的CPU核数。取值参考文档【购买指南】
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// 修改后的内存大小,单位GiB。取值参考文档【购买指南】
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// 操作时机
	//  - IMMEDIATE:立即执行
	//  - MAINTAIN_PERIOD:维护窗口期执行
	OperationTiming *string `json:"OperationTiming,omitnil,omitempty" name:"OperationTiming"`
}

Predefined struct for user

type ModifyClusterInstancesSpecResponse

type ModifyClusterInstancesSpecResponse struct {
	*tchttp.BaseResponse
	Response *ModifyClusterInstancesSpecResponseParams `json:"Response"`
}

func NewModifyClusterInstancesSpecResponse

func NewModifyClusterInstancesSpecResponse() (response *ModifyClusterInstancesSpecResponse)

func (*ModifyClusterInstancesSpecResponse) FromJsonString

func (r *ModifyClusterInstancesSpecResponse) 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 (*ModifyClusterInstancesSpecResponse) ToJsonString

func (r *ModifyClusterInstancesSpecResponse) ToJsonString() string

type ModifyClusterInstancesSpecResponseParams added in v1.0.426

type ModifyClusterInstancesSpecResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyClusterNameRequest

type ModifyClusterNameRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
}

func NewModifyClusterNameRequest

func NewModifyClusterNameRequest() (request *ModifyClusterNameRequest)

func (*ModifyClusterNameRequest) FromJsonString

func (r *ModifyClusterNameRequest) 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 (*ModifyClusterNameRequest) ToJsonString

func (r *ModifyClusterNameRequest) ToJsonString() string

type ModifyClusterNameRequestParams added in v1.0.426

type ModifyClusterNameRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 集群名,1-60个字符,可以包含中文、英文、数字和符号"-"、"_"、"."
	ClusterName *string `json:"ClusterName,omitnil,omitempty" name:"ClusterName"`
}

Predefined struct for user

type ModifyClusterNameResponse

type ModifyClusterNameResponse struct {
	*tchttp.BaseResponse
	Response *ModifyClusterNameResponseParams `json:"Response"`
}

func NewModifyClusterNameResponse

func NewModifyClusterNameResponse() (response *ModifyClusterNameResponse)

func (*ModifyClusterNameResponse) FromJsonString

func (r *ModifyClusterNameResponse) 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 (*ModifyClusterNameResponse) ToJsonString

func (r *ModifyClusterNameResponse) ToJsonString() string

type ModifyClusterNameResponseParams added in v1.0.426

type ModifyClusterNameResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyClustersAutoRenewFlagRequest

type ModifyClustersAutoRenewFlagRequest struct {
	*tchttp.BaseRequest

	// 集群ID列表
	ClusterIdSet []*string `json:"ClusterIdSet,omitnil,omitempty" name:"ClusterIdSet"`

	// 是否自动续费,0-不 1-是。默认为0,只有当集群的PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
}

func NewModifyClustersAutoRenewFlagRequest

func NewModifyClustersAutoRenewFlagRequest() (request *ModifyClustersAutoRenewFlagRequest)

func (*ModifyClustersAutoRenewFlagRequest) FromJsonString

func (r *ModifyClustersAutoRenewFlagRequest) 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 (*ModifyClustersAutoRenewFlagRequest) ToJsonString

func (r *ModifyClustersAutoRenewFlagRequest) ToJsonString() string

type ModifyClustersAutoRenewFlagRequestParams added in v1.0.426

type ModifyClustersAutoRenewFlagRequestParams struct {
	// 集群ID列表
	ClusterIdSet []*string `json:"ClusterIdSet,omitnil,omitempty" name:"ClusterIdSet"`

	// 是否自动续费,0-不 1-是。默认为0,只有当集群的PayMode为PREPAID时生效。
	AutoRenewFlag *uint64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`
}

Predefined struct for user

type ModifyClustersAutoRenewFlagResponse

type ModifyClustersAutoRenewFlagResponse struct {
	*tchttp.BaseResponse
	Response *ModifyClustersAutoRenewFlagResponseParams `json:"Response"`
}

func NewModifyClustersAutoRenewFlagResponse

func NewModifyClustersAutoRenewFlagResponse() (response *ModifyClustersAutoRenewFlagResponse)

func (*ModifyClustersAutoRenewFlagResponse) FromJsonString

func (r *ModifyClustersAutoRenewFlagResponse) 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 (*ModifyClustersAutoRenewFlagResponse) ToJsonString

func (r *ModifyClustersAutoRenewFlagResponse) ToJsonString() string

type ModifyClustersAutoRenewFlagResponseParams added in v1.0.426

type ModifyClustersAutoRenewFlagResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type RecoverClusterInstancesRequest

type RecoverClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

func NewRecoverClusterInstancesRequest

func NewRecoverClusterInstancesRequest() (request *RecoverClusterInstancesRequest)

func (*RecoverClusterInstancesRequest) FromJsonString

func (r *RecoverClusterInstancesRequest) 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 (*RecoverClusterInstancesRequest) ToJsonString

func (r *RecoverClusterInstancesRequest) ToJsonString() string

type RecoverClusterInstancesRequestParams added in v1.0.426

type RecoverClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

Predefined struct for user

type RecoverClusterInstancesResponse

type RecoverClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *RecoverClusterInstancesResponseParams `json:"Response"`
}

func NewRecoverClusterInstancesResponse

func NewRecoverClusterInstancesResponse() (response *RecoverClusterInstancesResponse)

func (*RecoverClusterInstancesResponse) FromJsonString

func (r *RecoverClusterInstancesResponse) 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 (*RecoverClusterInstancesResponse) ToJsonString

func (r *RecoverClusterInstancesResponse) ToJsonString() string

type RecoverClusterInstancesResponseParams added in v1.0.426

type RecoverClusterInstancesResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type RecoverClusterRequest

type RecoverClusterRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

func NewRecoverClusterRequest

func NewRecoverClusterRequest() (request *RecoverClusterRequest)

func (*RecoverClusterRequest) FromJsonString

func (r *RecoverClusterRequest) 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 (*RecoverClusterRequest) ToJsonString

func (r *RecoverClusterRequest) ToJsonString() string

type RecoverClusterRequestParams added in v1.0.426

type RecoverClusterRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	// 只有当PayMode为PREPAID时生效。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

Predefined struct for user

type RecoverClusterResponse

type RecoverClusterResponse struct {
	*tchttp.BaseResponse
	Response *RecoverClusterResponseParams `json:"Response"`
}

func NewRecoverClusterResponse

func NewRecoverClusterResponse() (response *RecoverClusterResponse)

func (*RecoverClusterResponse) FromJsonString

func (r *RecoverClusterResponse) 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 (*RecoverClusterResponse) ToJsonString

func (r *RecoverClusterResponse) ToJsonString() string

type RecoverClusterResponseParams added in v1.0.426

type RecoverClusterResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type RenewClusterRequest

type RenewClusterRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 续费时间,单位:月。取值范围为[1,60],默认值为1。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

func NewRenewClusterRequest

func NewRenewClusterRequest() (request *RenewClusterRequest)

func (*RenewClusterRequest) FromJsonString

func (r *RenewClusterRequest) 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 (*RenewClusterRequest) ToJsonString

func (r *RenewClusterRequest) ToJsonString() string

type RenewClusterRequestParams added in v1.0.426

type RenewClusterRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 续费时间,单位:月。取值范围为[1,60],默认值为1。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

Predefined struct for user

type RenewClusterResponse

type RenewClusterResponse struct {
	*tchttp.BaseResponse
	Response *RenewClusterResponseParams `json:"Response"`
}

func NewRenewClusterResponse

func NewRenewClusterResponse() (response *RenewClusterResponse)

func (*RenewClusterResponse) FromJsonString

func (r *RenewClusterResponse) 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 (*RenewClusterResponse) ToJsonString

func (r *RenewClusterResponse) ToJsonString() string

type RenewClusterResponseParams added in v1.0.426

type RenewClusterResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ResetAccountPasswordRequest

type ResetAccountPasswordRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 账号名字
	AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`

	// 数据库用户密码,必须满足 8-64个字符,至少包含 大写字母、小写字母、数字和符号~!@#$%^&*_-+=`|(){}[]:;'<>,.?/中的任意三种
	AccountPassword *string `json:"AccountPassword,omitnil,omitempty" name:"AccountPassword"`
}

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 added in v1.0.426

type ResetAccountPasswordRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 账号名字
	AccountName *string `json:"AccountName,omitnil,omitempty" name:"AccountName"`

	// 数据库用户密码,必须满足 8-64个字符,至少包含 大写字母、小写字母、数字和符号~!@#$%^&*_-+=`|(){}[]:;'<>,.?/中的任意三种
	AccountPassword *string `json:"AccountPassword,omitnil,omitempty" name:"AccountPassword"`
}

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 added in v1.0.426

type ResetAccountPasswordResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ResourceIdInfo

type ResourceIdInfo struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

type RestartClusterInstancesRequest

type RestartClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表,目前只支持单个实例重启
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

func NewRestartClusterInstancesRequest

func NewRestartClusterInstancesRequest() (request *RestartClusterInstancesRequest)

func (*RestartClusterInstancesRequest) FromJsonString

func (r *RestartClusterInstancesRequest) 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 (*RestartClusterInstancesRequest) ToJsonString

func (r *RestartClusterInstancesRequest) ToJsonString() string

type RestartClusterInstancesRequestParams added in v1.0.426

type RestartClusterInstancesRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 实例ID列表,目前只支持单个实例重启
	InstanceIdSet []*string `json:"InstanceIdSet,omitnil,omitempty" name:"InstanceIdSet"`
}

Predefined struct for user

type RestartClusterInstancesResponse

type RestartClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *RestartClusterInstancesResponseParams `json:"Response"`
}

func NewRestartClusterInstancesResponse

func NewRestartClusterInstancesResponse() (response *RestartClusterInstancesResponse)

func (*RestartClusterInstancesResponse) FromJsonString

func (r *RestartClusterInstancesResponse) 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 (*RestartClusterInstancesResponse) ToJsonString

func (r *RestartClusterInstancesResponse) ToJsonString() string

type RestartClusterInstancesResponseParams added in v1.0.426

type RestartClusterInstancesResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type TransformClusterPayModeRequest

type TransformClusterPayModeRequest struct {
	*tchttp.BaseRequest

	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 当前付费模式,目前只支持:POSTPAID_BY_HOUR(按小时后付费)
	CurrentPayMode *string `json:"CurrentPayMode,omitnil,omitempty" name:"CurrentPayMode"`

	// 目标付费模式,目前只支持:PREPAID(预付费)
	TargetPayMode *string `json:"TargetPayMode,omitnil,omitempty" name:"TargetPayMode"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

func NewTransformClusterPayModeRequest

func NewTransformClusterPayModeRequest() (request *TransformClusterPayModeRequest)

func (*TransformClusterPayModeRequest) FromJsonString

func (r *TransformClusterPayModeRequest) 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 (*TransformClusterPayModeRequest) ToJsonString

func (r *TransformClusterPayModeRequest) ToJsonString() string

type TransformClusterPayModeRequestParams added in v1.0.426

type TransformClusterPayModeRequestParams struct {
	// 集群ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// 当前付费模式,目前只支持:POSTPAID_BY_HOUR(按小时后付费)
	CurrentPayMode *string `json:"CurrentPayMode,omitnil,omitempty" name:"CurrentPayMode"`

	// 目标付费模式,目前只支持:PREPAID(预付费)
	TargetPayMode *string `json:"TargetPayMode,omitnil,omitempty" name:"TargetPayMode"`

	// 购买时长,单位:月。取值范围为[1,60],默认值为1。
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`
}

Predefined struct for user

type TransformClusterPayModeResponse

type TransformClusterPayModeResponse struct {
	*tchttp.BaseResponse
	Response *TransformClusterPayModeResponseParams `json:"Response"`
}

func NewTransformClusterPayModeResponse

func NewTransformClusterPayModeResponse() (response *TransformClusterPayModeResponse)

func (*TransformClusterPayModeResponse) FromJsonString

func (r *TransformClusterPayModeResponse) 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 (*TransformClusterPayModeResponse) ToJsonString

func (r *TransformClusterPayModeResponse) ToJsonString() string

type TransformClusterPayModeResponseParams added in v1.0.426

type TransformClusterPayModeResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

Jump to

Keyboard shortcuts

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