model

package
v0.0.26-beta Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowDbUserPrivilegeRequest

type AllowDbUserPrivilegeRequest struct {
	XLanguage  *string       `json:"X-Language,omitempty"`
	InstanceId string        `json:"instance_id"`
	Body       *GrantRequest `json:"body,omitempty"`
}

Request Object

func (AllowDbUserPrivilegeRequest) String

type AllowDbUserPrivilegeResponse

type AllowDbUserPrivilegeResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AllowDbUserPrivilegeResponse) String

type ApplyConfigurationRequest

type ApplyConfigurationRequest struct {
	// 实例ID列表。
	InstanceIds []string `json:"instance_ids"`
}

func (ApplyConfigurationRequest) String

func (o ApplyConfigurationRequest) String() string

type ApplyConfigurationResponseApplyResults

type ApplyConfigurationResponseApplyResults struct {
	// 实例ID。
	InstanceId string `json:"instance_id"`
	// 实例名称。
	InstanceName string `json:"instance_name"`
	// 实例是否需要重启。  - “true”需要重启。 - “false”不需要重启。
	RestartRequired bool `json:"restart_required"`
	// 参数模板是否应用成功。  - “true”表示参数模板应用成功。 - “false”表示参数模板应用失败。
	Success bool `json:"success"`
}

func (ApplyConfigurationResponseApplyResults) String

type AttachEipRequest

type AttachEipRequest struct {
	XLanguage  *AttachEipRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                     `json:"instance_id"`
	Body       *BindEipRequest            `json:"body,omitempty"`
}

Request Object

func (AttachEipRequest) String

func (o AttachEipRequest) String() string

type AttachEipRequestXLanguage

type AttachEipRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (AttachEipRequestXLanguage) MarshalJSON

func (c AttachEipRequestXLanguage) MarshalJSON() ([]byte, error)

func (*AttachEipRequestXLanguage) UnmarshalJSON

func (c *AttachEipRequestXLanguage) UnmarshalJSON(b []byte) error

type AttachEipRequestXLanguageEnum

type AttachEipRequestXLanguageEnum struct {
	ZH_CN AttachEipRequestXLanguage
	EN_US AttachEipRequestXLanguage
}

func GetAttachEipRequestXLanguageEnum

func GetAttachEipRequestXLanguageEnum() AttachEipRequestXLanguageEnum

type AttachEipResponse

type AttachEipResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (AttachEipResponse) String

func (o AttachEipResponse) String() string

type Auditlog

type Auditlog struct {
	// 审计日志ID。
	Id *string `json:"id,omitempty"`
	// 审计日志文件名。
	Name *string `json:"name,omitempty"`
	// 审计日志大小,单位:KB。
	Size *int64 `json:"size,omitempty"`
	// 审计日志开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。
	BeginTime *string `json:"begin_time,omitempty"`
	// 审计日志结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。
	EndTime *string `json:"end_time,omitempty"`
}

审计日志信息。

func (Auditlog) String

func (o Auditlog) String() string

type BackupDatabase

type BackupDatabase struct {
	// SqlServer引擎指定备份的数据库。
	Name string `json:"name"`
}

func (BackupDatabase) String

func (o BackupDatabase) String() string

type BackupForList

type BackupForList struct {
	// 备份ID。
	Id string `json:"id"`
	// 实例ID。
	InstanceId string `json:"instance_id"`
	// 备份名称。
	Name string `json:"name"`
	// 备份的数据库。
	Databases *[]BackupDatabase `json:"databases,omitempty"`
	// 备份开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	BeginTime string `json:"begin_time"`
	// 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	EndTime string `json:"end_time"`
	// 备份状态,取值:  - BUILDING: 备份中。 - COMPLETED: 备份完成。 - FAILED:备份失败。 - DELETING:备份删除中。
	Status BackupForListStatus `json:"status"`
	// 备份类型,取值:  - “auto”: 自动全量备份 - “manual”: 手动全量备份 - “fragment”: 差异全量备份 - “incremental”: 自动增量备份
	Type BackupForListType `json:"type"`
	// 备份大小,单位为KB。
	Size      int64      `json:"size"`
	Datastore *Datastore `json:"datastore"`
}

备份信息。

func (BackupForList) String

func (o BackupForList) String() string

type BackupForListStatus

type BackupForListStatus struct {
	// contains filtered or unexported fields
}

func (BackupForListStatus) MarshalJSON

func (c BackupForListStatus) MarshalJSON() ([]byte, error)

func (*BackupForListStatus) UnmarshalJSON

func (c *BackupForListStatus) UnmarshalJSON(b []byte) error

type BackupForListStatusEnum

type BackupForListStatusEnum struct {
	BUILDING  BackupForListStatus
	COMPLETED BackupForListStatus
	FAILED    BackupForListStatus
	DELETING  BackupForListStatus
}

func GetBackupForListStatusEnum

func GetBackupForListStatusEnum() BackupForListStatusEnum

type BackupForListType

type BackupForListType struct {
	// contains filtered or unexported fields
}

func (BackupForListType) MarshalJSON

func (c BackupForListType) MarshalJSON() ([]byte, error)

func (*BackupForListType) UnmarshalJSON

func (c *BackupForListType) UnmarshalJSON(b []byte) error

type BackupForListTypeEnum

type BackupForListTypeEnum struct {
	AUTO        BackupForListType
	MANUAL      BackupForListType
	FRAGMENT    BackupForListType
	INCREMENTAL BackupForListType
}

func GetBackupForListTypeEnum

func GetBackupForListTypeEnum() BackupForListTypeEnum

type BackupInfo

type BackupInfo struct {
	// 备份ID。
	Id string `json:"id"`
	// 实例ID。
	InstanceId string `json:"instance_id"`
	// 备份名称。
	Name string `json:"name"`
	// 备份描述。
	Description *string `json:"description,omitempty"`
	// 只支持Microsoft SQL Server,局部备份的用户自建数据库名列表,当有此参数时以局部备份为准。
	Databases *[]BackupDatabase `json:"databases,omitempty"`
	// 备份开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	BeginTime string `json:"begin_time"`
	// 备份状态,取值:  - BUILDING: 备份中。 - COMPLETED: 备份完成。 - FAILED:备份失败。 - DELETING:备份删除中。
	Status BackupInfoStatus `json:"status"`
	// 备份类型,取值:  - “auto”: 自动全量备份 - “manual”: 手动全量备份 - “fragment”: 差异全量备份 - “incremental”: 自动增量备份
	Type BackupInfoType `json:"type"`
}

备份信息。

func (BackupInfo) String

func (o BackupInfo) String() string

type BackupInfoStatus

type BackupInfoStatus struct {
	// contains filtered or unexported fields
}

func (BackupInfoStatus) MarshalJSON

func (c BackupInfoStatus) MarshalJSON() ([]byte, error)

func (*BackupInfoStatus) UnmarshalJSON

func (c *BackupInfoStatus) UnmarshalJSON(b []byte) error

type BackupInfoStatusEnum

type BackupInfoStatusEnum struct {
	BUILDING  BackupInfoStatus
	COMPLETED BackupInfoStatus
	FAILED    BackupInfoStatus
	DELETING  BackupInfoStatus
}

func GetBackupInfoStatusEnum

func GetBackupInfoStatusEnum() BackupInfoStatusEnum

type BackupInfoType

type BackupInfoType struct {
	// contains filtered or unexported fields
}

func (BackupInfoType) MarshalJSON

func (c BackupInfoType) MarshalJSON() ([]byte, error)

func (*BackupInfoType) UnmarshalJSON

func (c *BackupInfoType) UnmarshalJSON(b []byte) error

type BackupInfoTypeEnum

type BackupInfoTypeEnum struct {
	AUTO        BackupInfoType
	MANUAL      BackupInfoType
	FRAGMENT    BackupInfoType
	INCREMENTAL BackupInfoType
}

func GetBackupInfoTypeEnum

func GetBackupInfoTypeEnum() BackupInfoTypeEnum

type BackupPolicy

type BackupPolicy struct {
	// 指定已生成的备份文件可以保存的天数。  取值范围:0~732。取0值,表示关闭自动备份策略。如果需要延长保留时间请联系客服人员申请,自动备份最长可以保留2562天。  注意: 关闭备份策略后,备份任务将立即停止,所有增量备份任务将立即删除,使用增量备份的相关操作可能失败,相关操作不限于下载、复制、恢复、重建等,请谨慎操作。
	KeepDays int32 `json:"keep_days"`
	// 备份时间段。自动备份将在该时间段内触发。除关闭自动备份策略外,必选。  取值范围:格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。  - HH取值必须比hh大1。 - mm和MM取值必须相同,且取值必须为00、15、30或45。
	StartTime *string `json:"start_time,omitempty"`
	// 备份周期配置。自动备份将在每星期指定的天进行。除关闭自动备份策略外,必选。  取值范围:格式为逗号隔开的数字,数字代表星期。
	Period *string `json:"period,omitempty"`
}

备份策略信息。

func (BackupPolicy) String

func (o BackupPolicy) String() string

type BackupStrategy

type BackupStrategy struct {
	// 备份时间段。自动备份将在该时间段内触发。  取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。  HH取值必须比hh大1。 mm和MM取值必须相同,且取值必须为00、15、30或45。
	StartTime string `json:"start_time"`
	// 指定备份文件的可保存天数。  取值范围:0~732。该参数缺省,或取值为0,表示关闭自动备份策略。如果需要延长保留时间请联系客服人员申请,自动备份最长可以保留2562天。  说明:SQL Server的HA实例不支持关闭自动备份策略。
	KeepDays *int32 `json:"keep_days,omitempty"`
}

自动备份策略。

func (BackupStrategy) String

func (o BackupStrategy) String() string

type BackupStrategyForResponse

type BackupStrategyForResponse struct {
	// 备份时间段。自动备份将在该时间段内触发。  取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。  HH取值必须比hh大1。 mm和MM取值必须相同,且取值必须为00、15、30或45。
	StartTime string `json:"start_time"`
	// 指定备份文件的可保存天数。  取值范围:0~732。该参数缺省,或取值为0,表示关闭自动备份策略。如果需要延长保留时间请联系客服人员申请,自动备份最长可以保留2562天。  说明:SQL Server的HA实例不支持关闭自动备份策略。
	KeepDays int32 `json:"keep_days"`
}

自动备份策略。

func (BackupStrategyForResponse) String

func (o BackupStrategyForResponse) String() string

type BatchTagActionRequest

type BatchTagActionRequest struct {
	XLanguage  *string                    `json:"X-Language,omitempty"`
	InstanceId string                     `json:"instance_id"`
	Body       *BatchTagActionRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchTagActionRequest) String

func (o BatchTagActionRequest) String() string

type BatchTagActionRequestBody

type BatchTagActionRequestBody struct {
	// 操作标识(区分大小写):create(创建)、delete(删除)。
	Action string `json:"action"`
	// 标签列表。单个实例总标签数上限10个。
	Tags []InstanceRequestTags `json:"tags"`
}

func (BatchTagActionRequestBody) String

func (o BatchTagActionRequestBody) String() string

type BatchTagActionResponse

type BatchTagActionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchTagActionResponse) String

func (o BatchTagActionResponse) String() string

type BindEipRequest

type BindEipRequest struct {
	// 待绑定的弹性公网IP地址,仅允许使用标准的IP地址格式。is_bind为true时必选
	PublicIp *string `json:"public_ip,omitempty"`
	// 弹性公网IP对应的ID,仅允许使用标准的UUID格式。is_bind为true时必选
	PublicIpId *string `json:"public_ip_id,omitempty"`
	// - true,绑定弹性公网IP。 - false,解绑弹性公网IP。
	IsBind bool `json:"is_bind"`
}

func (BindEipRequest) String

func (o BindEipRequest) String() string

type ChangeFailoverModeRequest

type ChangeFailoverModeRequest struct {
	XLanguage  *ChangeFailoverModeRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                              `json:"instance_id"`
	Body       *FailoverModeRequest                `json:"body,omitempty"`
}

Request Object

func (ChangeFailoverModeRequest) String

func (o ChangeFailoverModeRequest) String() string

type ChangeFailoverModeRequestXLanguage

type ChangeFailoverModeRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeFailoverModeRequestXLanguage) MarshalJSON

func (c ChangeFailoverModeRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ChangeFailoverModeRequestXLanguage) UnmarshalJSON

func (c *ChangeFailoverModeRequestXLanguage) UnmarshalJSON(b []byte) error

type ChangeFailoverModeRequestXLanguageEnum

type ChangeFailoverModeRequestXLanguageEnum struct {
	ZH_CN ChangeFailoverModeRequestXLanguage
	EN_US ChangeFailoverModeRequestXLanguage
}

func GetChangeFailoverModeRequestXLanguageEnum

func GetChangeFailoverModeRequestXLanguageEnum() ChangeFailoverModeRequestXLanguageEnum

type ChangeFailoverModeResponse

type ChangeFailoverModeResponse struct {
	// 实例Id
	InstanceId *string `json:"instanceId,omitempty"`
	// 同步模式
	ReplicationMode *string `json:"replicationMode,omitempty"`
	// 任务id
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangeFailoverModeResponse) String

type ChangeFailoverStrategyRequest

type ChangeFailoverStrategyRequest struct {
	XLanguage  *ChangeFailoverStrategyRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                                  `json:"instance_id"`
	Body       *FailoverStrategyRequest                `json:"body,omitempty"`
}

Request Object

func (ChangeFailoverStrategyRequest) String

type ChangeFailoverStrategyRequestXLanguage

type ChangeFailoverStrategyRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeFailoverStrategyRequestXLanguage) MarshalJSON

func (c ChangeFailoverStrategyRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ChangeFailoverStrategyRequestXLanguage) UnmarshalJSON

func (c *ChangeFailoverStrategyRequestXLanguage) UnmarshalJSON(b []byte) error

type ChangeFailoverStrategyRequestXLanguageEnum

type ChangeFailoverStrategyRequestXLanguageEnum struct {
	ZH_CN ChangeFailoverStrategyRequestXLanguage
	EN_US ChangeFailoverStrategyRequestXLanguage
}

func GetChangeFailoverStrategyRequestXLanguageEnum

func GetChangeFailoverStrategyRequestXLanguageEnum() ChangeFailoverStrategyRequestXLanguageEnum

type ChangeFailoverStrategyResponse

type ChangeFailoverStrategyResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ChangeFailoverStrategyResponse) String

type ChangeOpsWindowRequest

type ChangeOpsWindowRequest struct {
	XLanguage  *ChangeOpsWindowRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                           `json:"instance_id"`
	Body       *OpsWindowRequest                `json:"body,omitempty"`
}

Request Object

func (ChangeOpsWindowRequest) String

func (o ChangeOpsWindowRequest) String() string

type ChangeOpsWindowRequestXLanguage

type ChangeOpsWindowRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ChangeOpsWindowRequestXLanguage) MarshalJSON

func (c ChangeOpsWindowRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ChangeOpsWindowRequestXLanguage) UnmarshalJSON

func (c *ChangeOpsWindowRequestXLanguage) UnmarshalJSON(b []byte) error

type ChangeOpsWindowRequestXLanguageEnum

type ChangeOpsWindowRequestXLanguageEnum struct {
	ZH_CN ChangeOpsWindowRequestXLanguage
	EN_US ChangeOpsWindowRequestXLanguage
}

func GetChangeOpsWindowRequestXLanguageEnum

func GetChangeOpsWindowRequestXLanguageEnum() ChangeOpsWindowRequestXLanguageEnum

type ChangeOpsWindowResponse

type ChangeOpsWindowResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ChangeOpsWindowResponse) String

func (o ChangeOpsWindowResponse) String() string

type ChargeInfo

type ChargeInfo struct {
	// 计费模式。  取值范围:  - prePaid:预付费,即包年/包月。 - postPaid:后付费,即按需付费。
	ChargeMode ChargeInfoChargeMode `json:"charge_mode"`
	// 订购周期类型。  取值范围:  - month:包月。 - year:包年。
	PeriodType *ChargeInfoPeriodType `json:"period_type,omitempty"`
	// “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。  取值范围:  当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。
	PeriodNum *int32 `json:"period_num,omitempty"`
	// 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。  - true,为自动续订。 - false,为不自动续订,默认该方式。
	IsAutoRenew *bool `json:"is_auto_renew,omitempty"`
	// 创建包周期时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。  - true,为自动支付。 - false,为手动支付,默认该方式。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

计费类型信息,支持包年包月和按需,默认为按需。

func (ChargeInfo) String

func (o ChargeInfo) String() string

type ChargeInfoChargeMode

type ChargeInfoChargeMode struct {
	// contains filtered or unexported fields
}

func (ChargeInfoChargeMode) MarshalJSON

func (c ChargeInfoChargeMode) MarshalJSON() ([]byte, error)

func (*ChargeInfoChargeMode) UnmarshalJSON

func (c *ChargeInfoChargeMode) UnmarshalJSON(b []byte) error

type ChargeInfoChargeModeEnum

type ChargeInfoChargeModeEnum struct {
	PRE_PAID  ChargeInfoChargeMode
	POST_PAID ChargeInfoChargeMode
}

func GetChargeInfoChargeModeEnum

func GetChargeInfoChargeModeEnum() ChargeInfoChargeModeEnum

type ChargeInfoPeriodType

type ChargeInfoPeriodType struct {
	// contains filtered or unexported fields
}

func (ChargeInfoPeriodType) MarshalJSON

func (c ChargeInfoPeriodType) MarshalJSON() ([]byte, error)

func (*ChargeInfoPeriodType) UnmarshalJSON

func (c *ChargeInfoPeriodType) UnmarshalJSON(b []byte) error

type ChargeInfoPeriodTypeEnum

type ChargeInfoPeriodTypeEnum struct {
	MONTH ChargeInfoPeriodType
	YEAR  ChargeInfoPeriodType
}

func GetChargeInfoPeriodTypeEnum

func GetChargeInfoPeriodTypeEnum() ChargeInfoPeriodTypeEnum

type ChargeInfoResponse

type ChargeInfoResponse struct {
	// 计费模式。  取值范围:  - prePaid:预付费,即包年/包月。 - postPaid:后付费,即按需付费。
	ChargeMode ChargeInfoResponseChargeMode `json:"charge_mode"`
}

计费类型信息,支持包年包月和按需,默认为按需。

func (ChargeInfoResponse) String

func (o ChargeInfoResponse) String() string

type ChargeInfoResponseChargeMode

type ChargeInfoResponseChargeMode struct {
	// contains filtered or unexported fields
}

func (ChargeInfoResponseChargeMode) MarshalJSON

func (c ChargeInfoResponseChargeMode) MarshalJSON() ([]byte, error)

func (*ChargeInfoResponseChargeMode) UnmarshalJSON

func (c *ChargeInfoResponseChargeMode) UnmarshalJSON(b []byte) error

type ChargeInfoResponseChargeModeEnum

type ChargeInfoResponseChargeModeEnum struct {
	PRE_PAID  ChargeInfoResponseChargeMode
	POST_PAID ChargeInfoResponseChargeMode
}

func GetChargeInfoResponseChargeModeEnum

func GetChargeInfoResponseChargeModeEnum() ChargeInfoResponseChargeModeEnum

type ConfigurationForCreation

type ConfigurationForCreation struct {
	// 参数模板名称。最长64个字符,只允许大写字母、小写字母、数字、和“-_.”特殊字符。
	Name string `json:"name"`
	// 参数模板描述。最长256个字符,不支持>!<\"&'=特殊字符。默认为空。
	Description *string    `json:"description,omitempty"`
	Datastore   *Datastore `json:"datastore"`
	// 参数值对象,用户基于默认参数模板自定义的参数值。默认不修改参数值。
	Values map[string]string `json:"values,omitempty"`
}

func (ConfigurationForCreation) String

func (o ConfigurationForCreation) String() string

type ConfigurationForUpdate

type ConfigurationForUpdate struct {
	// 参数模板名称。最长64个字符,只允许大写字母、小写字母、数字、和“-_.”特殊字符。
	Name *string `json:"name,omitempty"`
	// 参数模板描述。最长256个字符,不支持>!<\"&'=特殊字符。默认为空。
	Description *string `json:"description,omitempty"`
	// 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。
	Values map[string]string `json:"values,omitempty"`
}

func (ConfigurationForUpdate) String

func (o ConfigurationForUpdate) String() string

type ConfigurationParameter

type ConfigurationParameter struct {
	// 参数名称。
	Name string `json:"name"`
	// 参数值。
	Value string `json:"value"`
	// 修改该参数是否需要重启实例。
	RestartRequired bool `json:"restart_required"`
	// 该参数是否只读。
	Readonly bool `json:"readonly"`
	// 参数取值范围。
	ValueRange string `json:"value_range"`
	// 参数类型,取值为“string”、“integer”、“boolean”、“list”或“float”之一。
	Type ConfigurationParameterType `json:"type"`
	// 参数描述。
	Description string `json:"description"`
}

func (ConfigurationParameter) String

func (o ConfigurationParameter) String() string

type ConfigurationParameterType

type ConfigurationParameterType struct {
	// contains filtered or unexported fields
}

func (ConfigurationParameterType) MarshalJSON

func (c ConfigurationParameterType) MarshalJSON() ([]byte, error)

func (*ConfigurationParameterType) UnmarshalJSON

func (c *ConfigurationParameterType) UnmarshalJSON(b []byte) error

type ConfigurationSummary

type ConfigurationSummary struct {
	// 参数组ID。
	Id string `json:"id"`
	// 参数组名称。
	Name string `json:"name"`
	// 参数组描述。
	Description *string `json:"description,omitempty"`
	// 引擎版本。
	DatastoreVersionName string `json:"datastore_version_name"`
	// 引擎名。
	DatastoreName ConfigurationSummaryDatastoreName `json:"datastore_name"`
	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`
	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated string `json:"updated"`
	// 是否是用户自定义参数模板:  - false,表示为系统默认参数模板。 - true,表示为用户自定义参数模板。
	UserDefined bool `json:"user_defined"`
}

参数模板信息。

func (ConfigurationSummary) String

func (o ConfigurationSummary) String() string

type ConfigurationSummaryDatastoreName

type ConfigurationSummaryDatastoreName struct {
	// contains filtered or unexported fields
}

func (ConfigurationSummaryDatastoreName) MarshalJSON

func (c ConfigurationSummaryDatastoreName) MarshalJSON() ([]byte, error)

func (*ConfigurationSummaryDatastoreName) UnmarshalJSON

func (c *ConfigurationSummaryDatastoreName) UnmarshalJSON(b []byte) error

type ConfigurationSummaryDatastoreNameEnum

type ConfigurationSummaryDatastoreNameEnum struct {
	MYSQL      ConfigurationSummaryDatastoreName
	POSTGRESQL ConfigurationSummaryDatastoreName
	SQLSERVER  ConfigurationSummaryDatastoreName
}

func GetConfigurationSummaryDatastoreNameEnum

func GetConfigurationSummaryDatastoreNameEnum() ConfigurationSummaryDatastoreNameEnum

type ConfigurationSummaryForCreate

type ConfigurationSummaryForCreate struct {
	// 参数组ID。
	Id string `json:"id"`
	// 参数组名称。
	Name string `json:"name"`
	// 参数组描述。
	Description *string `json:"description,omitempty"`
	// 引擎版本。
	DatastoreVersionName string `json:"datastore_version_name"`
	// 引擎名。
	DatastoreName ConfigurationSummaryForCreateDatastoreName `json:"datastore_name"`
	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`
	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated string `json:"updated"`
}

参数模板信息。

func (ConfigurationSummaryForCreate) String

type ConfigurationSummaryForCreateDatastoreName

type ConfigurationSummaryForCreateDatastoreName struct {
	// contains filtered or unexported fields
}

func (ConfigurationSummaryForCreateDatastoreName) MarshalJSON

func (*ConfigurationSummaryForCreateDatastoreName) UnmarshalJSON

type CreateConfigurationRequest

type CreateConfigurationRequest struct {
	XLanguage *CreateConfigurationRequestXLanguage `json:"X-Language,omitempty"`
	Body      *ConfigurationForCreation            `json:"body,omitempty"`
}

Request Object

func (CreateConfigurationRequest) String

type CreateConfigurationRequestXLanguage

type CreateConfigurationRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (CreateConfigurationRequestXLanguage) MarshalJSON

func (c CreateConfigurationRequestXLanguage) MarshalJSON() ([]byte, error)

func (*CreateConfigurationRequestXLanguage) UnmarshalJSON

func (c *CreateConfigurationRequestXLanguage) UnmarshalJSON(b []byte) error

type CreateConfigurationRequestXLanguageEnum

type CreateConfigurationRequestXLanguageEnum struct {
	ZH_CN CreateConfigurationRequestXLanguage
	EN_US CreateConfigurationRequestXLanguage
}

func GetCreateConfigurationRequestXLanguageEnum

func GetCreateConfigurationRequestXLanguageEnum() CreateConfigurationRequestXLanguageEnum

type CreateConfigurationResponse

type CreateConfigurationResponse struct {
	Configuration  *ConfigurationSummaryForCreate `json:"configuration,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

Response Object

func (CreateConfigurationResponse) String

type CreateDatabaseRequest

type CreateDatabaseRequest struct {
	XLanguage  *string              `json:"X-Language,omitempty"`
	InstanceId string               `json:"instance_id"`
	Body       *DatabaseForCreation `json:"body,omitempty"`
}

Request Object

func (CreateDatabaseRequest) String

func (o CreateDatabaseRequest) String() string

type CreateDatabaseResponse

type CreateDatabaseResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDatabaseResponse) String

func (o CreateDatabaseResponse) String() string

type CreateDbUserRequest

type CreateDbUserRequest struct {
	XLanguage  *string          `json:"X-Language,omitempty"`
	InstanceId string           `json:"instance_id"`
	Body       *UserForCreation `json:"body,omitempty"`
}

Request Object

func (CreateDbUserRequest) String

func (o CreateDbUserRequest) String() string

type CreateDbUserResponse

type CreateDbUserResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDbUserResponse) String

func (o CreateDbUserResponse) String() string

type CreateInstanceRequest

type CreateInstanceRequest struct {
	XLanguage *CreateInstanceRequestXLanguage `json:"X-Language,omitempty"`
	Body      *InstanceRequest                `json:"body,omitempty"`
}

Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceRequestXLanguage

type CreateInstanceRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (CreateInstanceRequestXLanguage) MarshalJSON

func (c CreateInstanceRequestXLanguage) MarshalJSON() ([]byte, error)

func (*CreateInstanceRequestXLanguage) UnmarshalJSON

func (c *CreateInstanceRequestXLanguage) UnmarshalJSON(b []byte) error

type CreateInstanceRequestXLanguageEnum

type CreateInstanceRequestXLanguageEnum struct {
	ZH_CN CreateInstanceRequestXLanguage
	EN_US CreateInstanceRequestXLanguage
}

func GetCreateInstanceRequestXLanguageEnum

func GetCreateInstanceRequestXLanguageEnum() CreateInstanceRequestXLanguageEnum

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Instance *InstanceRequest `json:"instance,omitempty"`
	// 实例创建的任务id。  仅创建按需实例时会返回该参数。
	JobId *string `json:"job_id,omitempty"`
	// 订单号,创建包年包月时返回该参数。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type DataIpRequest

type DataIpRequest struct {
	// 内网ip
	NewIp string `json:"new_ip"`
}

func (DataIpRequest) String

func (o DataIpRequest) String() string

type DatabaseForCreation

type DatabaseForCreation struct {
	// 数据库名称。 数据库名称长度可在1~64个字符之间,由字母、数字、中划线、下划线或$组成,$累计总长度小于等于10个字符,(MySQL 8.0不可包含$)。
	Name string `json:"name"`
	// 数据库使用的字符集。
	CharacterSet string `json:"character_set"`
}

数据库信息。

func (DatabaseForCreation) String

func (o DatabaseForCreation) String() string

type DatabaseForList

type DatabaseForList struct {
	// 数据库名称。 数据库名称长度可在1~64个字符之间,由字母、数字、中划线、下划线或$组成,$累计总长度小于等于10个字符,(MySQL 8.0不可包含$)。
	Name string `json:"name"`
	// 数据库使用的字符集,例如utf8、gbk、ascii等MySQL支持的字符集。
	CharacterSet string `json:"character_set"`
}

数据库信息。

func (DatabaseForList) String

func (o DatabaseForList) String() string

type DatabaseWithPrivilege

type DatabaseWithPrivilege struct {
	// 数据库名称。
	Name string `json:"name"`
	// 是否为只读权限。
	Readonly bool `json:"readonly"`
}

数据库及其权限。

func (DatabaseWithPrivilege) String

func (o DatabaseWithPrivilege) String() string

type Datastore

type Datastore struct {
	// 数据库引擎,不区分大小写: - MySQL - PostgreSQL - SQLServer
	Type DatastoreType `json:"type"`
	// 数据库版本。  - MySQL引擎支持5.6、5.7、8.0版本。取值示例:5.7。具有相应权限的用户才可使用8.0,您可联系华为云客服人员申请。 - PostgreSQL引擎支持9.5、9.6、10、11版本。取值示例:9.6。 - Microsoft SQL Server:仅支持2017 企业版、2017 标准版、2017 web版、2014 标准版、2014 企业版、2016 标准版、2016 企业版、2012 企业版、2012 标准版、2012 web版、2008 R2 企业版、2008 R2 web版、2014 web版、2016 web版。取值示例2014_SE。
	Version string `json:"version"`
}

func (Datastore) String

func (o Datastore) String() string

type DatastoreType

type DatastoreType struct {
	// contains filtered or unexported fields
}

func (DatastoreType) MarshalJSON

func (c DatastoreType) MarshalJSON() ([]byte, error)

func (*DatastoreType) UnmarshalJSON

func (c *DatastoreType) UnmarshalJSON(b []byte) error

type DatastoreTypeEnum

type DatastoreTypeEnum struct {
	MY_SQL      DatastoreType
	POSTGRE_SQL DatastoreType
	SQL_SERVER  DatastoreType
}

func GetDatastoreTypeEnum

func GetDatastoreTypeEnum() DatastoreTypeEnum

type DbUserPwdRequest

type DbUserPwdRequest struct {
	// - 数据库帐号名称。
	Name string `json:"name"`
	// - 数据库帐号密码。取值范围:非空,至少包含以下字符中的三种:大写字母、小写字母、数字和特殊符号~!@#%^*-_=+?组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	Password string `json:"password"`
}

func (DbUserPwdRequest) String

func (o DbUserPwdRequest) String() string

type DeleteConfigurationRequest

type DeleteConfigurationRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
	ConfigId  string  `json:"config_id"`
}

Request Object

func (DeleteConfigurationRequest) String

type DeleteConfigurationResponse

type DeleteConfigurationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteConfigurationResponse) String

type DeleteDatabaseRequest

type DeleteDatabaseRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	DbName     string  `json:"db_name"`
}

Request Object

func (DeleteDatabaseRequest) String

func (o DeleteDatabaseRequest) String() string

type DeleteDatabaseResponse

type DeleteDatabaseResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDatabaseResponse) String

func (o DeleteDatabaseResponse) String() string

type DeleteDbUserRequest

type DeleteDbUserRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	UserName   string  `json:"user_name"`
}

Request Object

func (DeleteDbUserRequest) String

func (o DeleteDbUserRequest) String() string

type DeleteDbUserResponse

type DeleteDbUserResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDbUserResponse) String

func (o DeleteDbUserResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	XLanguage  *DeleteInstanceRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                          `json:"instance_id"`
}

Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceRequestXLanguage

type DeleteInstanceRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (DeleteInstanceRequestXLanguage) MarshalJSON

func (c DeleteInstanceRequestXLanguage) MarshalJSON() ([]byte, error)

func (*DeleteInstanceRequestXLanguage) UnmarshalJSON

func (c *DeleteInstanceRequestXLanguage) UnmarshalJSON(b []byte) error

type DeleteInstanceRequestXLanguageEnum

type DeleteInstanceRequestXLanguageEnum struct {
	ZH_CN DeleteInstanceRequestXLanguage
	EN_US DeleteInstanceRequestXLanguage
}

func GetDeleteInstanceRequestXLanguageEnum

func GetDeleteInstanceRequestXLanguageEnum() DeleteInstanceRequestXLanguageEnum

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type DeleteManualBackupRequest

type DeleteManualBackupRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
	BackupId  string  `json:"backup_id"`
}

Request Object

func (DeleteManualBackupRequest) String

func (o DeleteManualBackupRequest) String() string

type DeleteManualBackupResponse

type DeleteManualBackupResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteManualBackupResponse) String

type DoManualBackupRequest

type DoManualBackupRequest struct {
	XLanguage *string                    `json:"X-Language,omitempty"`
	Body      *DoManualBackupRequestBody `json:"body,omitempty"`
}

Request Object

func (DoManualBackupRequest) String

func (o DoManualBackupRequest) String() string

type DoManualBackupRequestBody

type DoManualBackupRequestBody struct {
	// 实例ID。
	InstanceId string `json:"instance_id"`
	// 备份名称,4~64个字符,必须以英文字母开头,区分大小写,可以包含英文字母、数字、中划线或者下划线,不能包含其他特殊字符。
	Name string `json:"name"`
	// 备份描述,不能包含>!<\"&'=特殊字符,不大于256个字符。
	Description *string `json:"description,omitempty"`
	// 只支持Microsoft SQL Server,局部备份的用户自建数据库名列表,当有此参数时以局部备份为准。
	Databases *[]BackupDatabase `json:"databases,omitempty"`
}

func (DoManualBackupRequestBody) String

func (o DoManualBackupRequestBody) String() string

type DoManualBackupResponse

type DoManualBackupResponse struct {
	Backup         *BackupInfo `json:"backup,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (DoManualBackupResponse) String

func (o DoManualBackupResponse) String() string

type DownloadSlowlogRequest

type DownloadSlowlogRequest struct {
	XLanguage  *DownloadSlowlogRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                           `json:"instance_id"`
	Body       *SlowlogDownloadRequest          `json:"body,omitempty"`
}

Request Object

func (DownloadSlowlogRequest) String

func (o DownloadSlowlogRequest) String() string

type DownloadSlowlogRequestXLanguage

type DownloadSlowlogRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (DownloadSlowlogRequestXLanguage) MarshalJSON

func (c DownloadSlowlogRequestXLanguage) MarshalJSON() ([]byte, error)

func (*DownloadSlowlogRequestXLanguage) UnmarshalJSON

func (c *DownloadSlowlogRequestXLanguage) UnmarshalJSON(b []byte) error

type DownloadSlowlogRequestXLanguageEnum

type DownloadSlowlogRequestXLanguageEnum struct {
	ZH_CN DownloadSlowlogRequestXLanguage
	EN_US DownloadSlowlogRequestXLanguage
}

func GetDownloadSlowlogRequestXLanguageEnum

func GetDownloadSlowlogRequestXLanguageEnum() DownloadSlowlogRequestXLanguageEnum

type DownloadSlowlogResponse

type DownloadSlowlogResponse struct {
	// 慢日志下载链接列表
	List *[]SlowlogDownloadInfo `json:"list,omitempty"`
	// - 慢日志下载链接生成状态。FINISH,表示下载链接已经生成完成。CREATING,表示正在生成文件,准备下载链接。FAILED,表示存在日志文件准备失败。
	Status *string `json:"status,omitempty"`
	// - 慢日志链接数量。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (DownloadSlowlogResponse) String

func (o DownloadSlowlogResponse) String() string

type DssPoolInfo

type DssPoolInfo struct {
	// 专属存储池所在az
	AzName string `json:"az_name"`
	// 专属存储池免费空间大小,单位GB
	FreeCapacityGb string `json:"free_capacity_gb"`
	// 专属存储池磁盘类型名称,可能取值如下:  - ULTRAHIGH,表示SSD。  - ULTRAHIGHPRO,表示SSD尊享版,仅支持超高性能型尊享版实例。  - NVMESSD,表示直通SSD,仅支持i3规格实例。
	DsspoolVolumeType string `json:"dsspool_volume_type"`
	// 专属存储池ID
	DsspoolId string `json:"dsspool_id"`
	// 专属存储池当前状态,可能取值如下: - available,表示可用。 - deploying,表示正在部署。 - enlarging,表示正在扩容。 - frozen,表示冻结。 - sellout,表示售罄。
	DsspoolStatus string `json:"dsspool_status"`
}

实例专属存储信息。

func (DssPoolInfo) String

func (o DssPoolInfo) String() string

type EnableConfigurationRequest

type EnableConfigurationRequest struct {
	XLanguage *string                    `json:"X-Language,omitempty"`
	ConfigId  string                     `json:"config_id"`
	Body      *ApplyConfigurationRequest `json:"body,omitempty"`
}

Request Object

func (EnableConfigurationRequest) String

type EnableConfigurationResponse

type EnableConfigurationResponse struct {
	// 参数组ID。
	ConfigurationId *string `json:"configuration_id,omitempty"`
	// 参数组名称。
	ConfigurationName *string `json:"configuration_name,omitempty"`
	// 参数模板是否都应用成功。  - “true”表示参数模板都应用成功。 - “false”表示存在应用失败的参数模板。
	Success *bool `json:"success,omitempty"`
	// 对每个实例的应用结果。
	ApplyResults   *[]ApplyConfigurationResponseApplyResults `json:"apply_results,omitempty"`
	HttpStatusCode int                                       `json:"-"`
}

Response Object

func (EnableConfigurationResponse) String

type EnlargeVolume

type EnlargeVolume struct {
	// 扩容到该参数指定的大小,单位为GB。
	Size int32 `json:"size"`
	// 变更包周期实例的规格时可指定,表示是否自动从客户的账户中支付。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

扩容实例磁盘时必填。

func (EnlargeVolume) String

func (o EnlargeVolume) String() string

type ErrorLog

type ErrorLog struct {
	// 日期时间UTC时间。
	Time string `json:"time"`
	// 日志级别。
	Level string `json:"level"`
	// 错误日志内容。
	Content string `json:"content"`
}

错误日志信息。

func (ErrorLog) String

func (o ErrorLog) String() string

type ErrorResponse

type ErrorResponse struct {
	// 错误码。
	ErrorCode string `json:"error_code"`
	// 错误消息。
	ErrorMsg string `json:"error_msg"`
}

func (ErrorResponse) String

func (o ErrorResponse) String() string

type FailoverModeRequest

type FailoverModeRequest struct {
	// 数据库主备同步模式
	Mode string `json:"mode"`
}

func (FailoverModeRequest) String

func (o FailoverModeRequest) String() string

type FailoverStrategyRequest

type FailoverStrategyRequest struct {
	// 可用性策略
	RepairStrategy string `json:"repairStrategy"`
}

func (FailoverStrategyRequest) String

func (o FailoverStrategyRequest) String() string

type Flavor

type Flavor struct {
	// 规格id
	Id string `json:"id"`
	// CPU个数。
	Vcpus string `json:"vcpus"`
	// 内存大小,单位为GB。
	Ram int32 `json:"ram"`
	// 资源规格编码。例如:rds.mysql.m1.xlarge.rr。  其中形如“xxx.xxx.mcs.i3.xxx.xxx.xxx”是超高性能型(尊享版),需要申请一定权限才可使用,更多规格说明请参考数据库实例规格。 - “rds”代表RDS产品。 - “mysql”代表数据库引擎。 - “m1.xlarge”代表性能规格,为高内存类型。 - “rr”表示只读实例(“.ha”表示主备实例,“gr”表示MySQL金融版)。
	SpecCode string `json:"spec_code"`
	// 实例模型,包括如下类型: - ha,主备实例。 - replica,只读实例。 - single,单实例。 - gr,MySQL金融版。
	InstanceMode string `json:"instance_mode"`
	// 其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
	AzStatus map[string]string `json:"az_status"`
	// 数组形式版本号
	VersionName []string `json:"version_name"`
}

规格信息。

func (Flavor) String

func (o Flavor) String() string

type FollowerMigrateRequest

type FollowerMigrateRequest struct {
	// 备机节点Id
	NodeId string `json:"nodeId"`
	// 要迁入的可用区code
	AzCode string `json:"azCode"`
}

func (FollowerMigrateRequest) String

func (o FollowerMigrateRequest) String() string

type GenerateAuditlogDownloadLinkRequest

type GenerateAuditlogDownloadLinkRequest struct {
	// 审计日志ID列表,限制50条以内。
	Ids []string `json:"ids"`
}

func (GenerateAuditlogDownloadLinkRequest) String

type GetBackupDownloadLinkFiles

type GetBackupDownloadLinkFiles struct {
	// 文件名。
	Name string `json:"name"`
	// 文件大小,单位为KB。
	Size int64 `json:"size"`
	// 文件下载链接。
	DownloadLink string `json:"download_link"`
	// 下载链接过期时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。
	LinkExpiredTime string `json:"link_expired_time"`
}

func (GetBackupDownloadLinkFiles) String

type GetJobInfoResponseBodyJob

type GetJobInfoResponseBodyJob struct {
	// 任务ID。
	Id string `json:"id"`
	// 任务名称。
	Name string `json:"name"`
	// 任务执行状态。  取值: - 值为“Running”,表示任务正在执行。 - 值为“Completed”,表示任务执行成功。 - 值为“Failed”,表示任务执行失败。
	Status GetJobInfoResponseBodyJobStatus `json:"status"`
	// 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`
	// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Ended *string `json:"ended,omitempty"`
	// 任务执行进度。执行中状态才返回执行进度,例如60%,否则返回“”。
	Process  *string                       `json:"process,omitempty"`
	Instance *GetTaskDetailListRspInstance `json:"instance"`
	// 根据不同的任务,显示不同的内容。
	Entities *interface{} `json:"entities,omitempty"`
	// 任务执行失败时的错误信息。
	FailReason *string `json:"fail_reason,omitempty"`
}

任务信息。

func (GetJobInfoResponseBodyJob) String

func (o GetJobInfoResponseBodyJob) String() string

type GetJobInfoResponseBodyJobStatus

type GetJobInfoResponseBodyJobStatus struct {
	// contains filtered or unexported fields
}

func (GetJobInfoResponseBodyJobStatus) MarshalJSON

func (c GetJobInfoResponseBodyJobStatus) MarshalJSON() ([]byte, error)

func (*GetJobInfoResponseBodyJobStatus) UnmarshalJSON

func (c *GetJobInfoResponseBodyJobStatus) UnmarshalJSON(b []byte) error

type GetJobInfoResponseBodyJobStatusEnum

type GetJobInfoResponseBodyJobStatusEnum struct {
	RUNNING   GetJobInfoResponseBodyJobStatus
	COMPLETED GetJobInfoResponseBodyJobStatus
	FAILED    GetJobInfoResponseBodyJobStatus
}

func GetGetJobInfoResponseBodyJobStatusEnum

func GetGetJobInfoResponseBodyJobStatusEnum() GetJobInfoResponseBodyJobStatusEnum

type GetRestoreTimeResponseRestoreTime

type GetRestoreTimeResponseRestoreTime struct {
	// 可恢复时间段的起始时间点,UNIX时间戳格式,单位是毫秒,时区是UTC。
	StartTime int32 `json:"start_time"`
	// 可恢复时间段的结束时间点,UNIX时间戳格式,单位是毫秒,时区是UTC。
	EndTime int32 `json:"end_time"`
}

func (GetRestoreTimeResponseRestoreTime) String

type GetTaskDetailListRspInstance

type GetTaskDetailListRspInstance struct {
	// 实例ID。
	Id string `json:"id"`
	// 实例名称。
	Name string `json:"name"`
}

执行任务的实例信息。

func (GetTaskDetailListRspInstance) String

type GetTaskDetailListRspJobs

type GetTaskDetailListRspJobs struct {
	// 任务ID。
	Id string `json:"id"`
	// 任务名称。
	Name string `json:"name"`
	// 任务执行状态。  取值: - 值为“Running”,表示任务正在执行。 - 值为“Completed”,表示任务执行成功。 - 值为“Failed”,表示任务执行失败。
	Status GetTaskDetailListRspJobsStatus `json:"status"`
	// 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created string `json:"created"`
	// 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Ended *string `json:"ended,omitempty"`
	// 任务执行进度。执行中状态才返回执行进度,例如60%,否则返回“”。
	Process *string `json:"process,omitempty"`
}

任务信息。

func (GetTaskDetailListRspJobs) String

func (o GetTaskDetailListRspJobs) String() string

type GetTaskDetailListRspJobsStatus

type GetTaskDetailListRspJobsStatus struct {
	// contains filtered or unexported fields
}

func (GetTaskDetailListRspJobsStatus) MarshalJSON

func (c GetTaskDetailListRspJobsStatus) MarshalJSON() ([]byte, error)

func (*GetTaskDetailListRspJobsStatus) UnmarshalJSON

func (c *GetTaskDetailListRspJobsStatus) UnmarshalJSON(b []byte) error

type GetTaskDetailListRspJobsStatusEnum

type GetTaskDetailListRspJobsStatusEnum struct {
	RUNNING   GetTaskDetailListRspJobsStatus
	COMPLETED GetTaskDetailListRspJobsStatus
	FAILED    GetTaskDetailListRspJobsStatus
}

func GetGetTaskDetailListRspJobsStatusEnum

func GetGetTaskDetailListRspJobsStatusEnum() GetTaskDetailListRspJobsStatusEnum

type GrantRequest

type GrantRequest struct {
	// 数据库名称。
	DbName string `json:"db_name"`
	// 每个元素都是与数据库相关联的帐号。单次请求最多支持50个元素。
	Users []UserWithPrivilege `json:"users"`
}

func (GrantRequest) String

func (o GrantRequest) String() string

type Ha

type Ha struct {
	// 实例主备模式,取值:Ha(主备),不区分大小写。
	Mode HaMode `json:"mode"`
	// 备机同步参数。实例主备模式为Ha时有效。 取值: - MySQL为“async”或“semisync”。 - PostgreSQL为“async”或“sync”。 - Microsoft SQL Server为“sync”。
	ReplicationMode HaReplicationMode `json:"replication_mode"`
}

HA配置参数,创建HA实例时使用。

func (Ha) String

func (o Ha) String() string

type HaMode

type HaMode struct {
	// contains filtered or unexported fields
}

func (HaMode) MarshalJSON

func (c HaMode) MarshalJSON() ([]byte, error)

func (*HaMode) UnmarshalJSON

func (c *HaMode) UnmarshalJSON(b []byte) error

type HaModeEnum

type HaModeEnum struct {
	HA     HaMode
	SINGLE HaMode
}

func GetHaModeEnum

func GetHaModeEnum() HaModeEnum

type HaReplicationMode

type HaReplicationMode struct {
	// contains filtered or unexported fields
}

func (HaReplicationMode) MarshalJSON

func (c HaReplicationMode) MarshalJSON() ([]byte, error)

func (*HaReplicationMode) UnmarshalJSON

func (c *HaReplicationMode) UnmarshalJSON(b []byte) error

type HaReplicationModeEnum

type HaReplicationModeEnum struct {
	ASYNC    HaReplicationMode
	SEMISYNC HaReplicationMode
	SYNC     HaReplicationMode
}

func GetHaReplicationModeEnum

func GetHaReplicationModeEnum() HaReplicationModeEnum

type HaResponse

type HaResponse struct {
	// 备机同步参数。实例主备模式为Ha时有效。 取值: - MySQL为“async”或“semisync”。 - PostgreSQL为“async”或“sync”。 - Microsoft SQL Server为“sync”。
	ReplicationMode HaResponseReplicationMode `json:"replication_mode"`
}

HA配置参数,创建HA实例时使用。

func (HaResponse) String

func (o HaResponse) String() string

type HaResponseReplicationMode

type HaResponseReplicationMode struct {
	// contains filtered or unexported fields
}

func (HaResponseReplicationMode) MarshalJSON

func (c HaResponseReplicationMode) MarshalJSON() ([]byte, error)

func (*HaResponseReplicationMode) UnmarshalJSON

func (c *HaResponseReplicationMode) UnmarshalJSON(b []byte) error

type HaResponseReplicationModeEnum

type HaResponseReplicationModeEnum struct {
	ASYNC    HaResponseReplicationMode
	SEMISYNC HaResponseReplicationMode
	SYNC     HaResponseReplicationMode
}

func GetHaResponseReplicationModeEnum

func GetHaResponseReplicationModeEnum() HaResponseReplicationModeEnum

type InstanceActionRequest

type InstanceActionRequest struct {
	ResizeFlavor  *ResizeFlavorRequest          `json:"resize_flavor,omitempty"`
	EnlargeVolume *EnlargeVolume                `json:"enlarge_volume,omitempty"`
	Restart       *InstanceActionRequestRestart `json:"restart,omitempty"`
	SingleToHa    *Single2Ha                    `json:"single_to_ha,omitempty"`
}

func (InstanceActionRequest) String

func (o InstanceActionRequest) String() string

type InstanceActionRequestRestart

type InstanceActionRequestRestart struct {
	// 在线调试时必填。
	Restart *InstanceActionRequestRestartRestart `json:"restart,omitempty"`
}

重启实例时必填。

func (InstanceActionRequestRestart) String

type InstanceActionRequestRestartRestart

type InstanceActionRequestRestartRestart struct {
	// contains filtered or unexported fields
}

func (InstanceActionRequestRestartRestart) MarshalJSON

func (c InstanceActionRequestRestartRestart) MarshalJSON() ([]byte, error)

func (*InstanceActionRequestRestartRestart) UnmarshalJSON

func (c *InstanceActionRequestRestartRestart) UnmarshalJSON(b []byte) error

type InstanceActionRequestRestartRestartEnum

type InstanceActionRequestRestartRestartEnum struct {
	TRUE InstanceActionRequestRestartRestart
}

func GetInstanceActionRequestRestartRestartEnum

func GetInstanceActionRequestRestartRestartEnum() InstanceActionRequestRestartRestartEnum

type InstanceRequest

type InstanceRequest struct {
	// 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名,其中,SQL Server实例名唯一。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。
	Name      string     `json:"name"`
	Datastore *Datastore `json:"datastore"`
	Ha        *Ha        `json:"ha,omitempty"`
	// 参数组ID。
	ConfigurationId *string `json:"configuration_id,omitempty"`
	// 数据库端口信息。  - MySQL数据库端口设置范围为1024~65535(其中12017和33071被RDS系统占用不可设置)。 - PostgreSQL数据库端口修改范围为2100~9500。 - Microsoft SQL Server实例的端口设置范围为1433和2100~9500(其中5355和5985不可设置。对于2017 EE、2017 SE、2017 Web版,5050、5353和5986不可设置。  当不传该参数时,默认端口如下:  - MySQL默认3306。 - PostgreSQL默认5432。 - Microsoft SQL Server默认1433。
	Port *string `json:"port,omitempty"`
	// 数据库密码。创建只读实例时不可选,其它场景必选。  取值范围:  非空,由大小写字母、数字和特殊符号~!@#%^*-_=+?组成,长度8~32个字符。  建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	Password       *string         `json:"password,omitempty"`
	BackupStrategy *BackupStrategy `json:"backup_strategy,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 用于磁盘加密的密钥ID。
	DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`
	// 规格码。
	FlavorRef string  `json:"flavor_ref"`
	Volume    *Volume `json:"volume"`
	// 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
	Region string `json:"region"`
	// 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
	AvailabilityZone string `json:"availability_zone"`
	// 虚拟私有云ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。
	VpcId string `json:"vpc_id"`
	// 子网ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。
	SubnetId string `json:"subnet_id"`
	// 指定实例的内网IP
	DataVip *string `json:"data_vip,omitempty"`
	// 安全组ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。
	SecurityGroupId string      `json:"security_group_id"`
	ChargeInfo      *ChargeInfo `json:"charge_info,omitempty"`
	// 时区。  - 不选择时,各个引擎时区如下:   - MySQL国内站、国际站默认为UTC时间。   - PostgreSQL国内站、国际站默认为UTC时间。   - Microsoft SQL Server国内站默认为UTC+08:00,国际站默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。
	TimeZone *string `json:"time_zone,omitempty"`
	// 专属存储池ID。
	DsspoolId *string `json:"dsspool_id,omitempty"`
	// 只读实例的主实例ID。创建只读实例时必选,其它场景不可选。
	ReplicaOfId  *string       `json:"replica_of_id,omitempty"`
	RestorePoint *RestorePoint `json:"restore_point,omitempty"`
	// 标签列表。单个实例总标签数上限10个。
	Tags *[]InstanceRequestTags `json:"tags,omitempty"`
}

实例信息。

func (InstanceRequest) String

func (o InstanceRequest) String() string

type InstanceRequestTags

type InstanceRequestTags struct {
	// 标签键。创建时,最大长度36个unicode字符,key不能为空,不能为空字符串,不能重复。字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF);删除时,最大长度127个unicode字符,key不能为空,不能为空字符串。
	Key string `json:"key"`
	// 标签值。创建时,每个值最大长度43个unicode字符,可以为空字符串。 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF);删除时,每个值最大长度255个unicode字符,如果value有值按照key/value删除,如果value没值则按照key删除。
	Value string `json:"value"`
}

func (InstanceRequestTags) String

func (o InstanceRequestTags) String() string

type InstanceResponse

type InstanceResponse struct {
	// 实例ID。
	Id string `json:"id"`
	// 实例状态。 - 值为“BUILD”,表示实例正在创建。 - 值为“ACTIVE”,表示实例正常。 - 值为“FAILED”,表示实例异常。 - 值为“FROZEN”,表示实例冻结。 - 值为“MODIFYING”,表示实例正在扩容。 - 值为“REBOOTING”,表示实例正在重启。 - 值为“RESTORING”,表示实例正在恢复。 - 值为“MODIFYING INSTANCE TYPE”,表示实例正在转主备。 - 值为“SWITCHOVER”,表示实例正在主备切换。 - 值为“MIGRATING”,表示实例正在迁移。 - 值为“BACKING UP”,表示实例正在进行备份。 - 值为“MODIFYING DATABASE PORT”,表示实例正在修改数据库端口。 - 值为“STORAGE FULL”,表示实例磁盘空间满。
	Status string `json:"status"`
	// 实例内网IP地址列表。弹性云服务器创建成功后该值存在,其他情况下为空字符串。
	PrivateIps      []string  `json:"private_ips"`
	PrivateDnsNames *[]string `json:"private_dns_names,omitempty"`
	// 实例外网IP地址列表。
	PublicIps []string `json:"public_ips"`
	// 实例类型,取值为“Single”,“Ha”或“Replica”,分别对应于单机实例、主备实例、只读实例。
	Type string `json:"type"`
	// 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。  说明:创建时返回值为空,数据库实例创建成功后该值不为空。
	Created string `json:"created"`
	// 更新时间,格式与“created”字段对应格式完全相同。  说明:创建时返回值为空,数据库实例创建成功后该值不为空。
	Updated string `json:"updated"`
	// 默认用户名。
	DbUserName string `json:"db_user_name"`
	// 数据库切换策略。取值为“reliability”或“availability”,分别对应于可靠性优先和可用性优先。
	SwitchStrategy string `json:"switch_strategy"`
	// 可维护时间窗,为UTC时间。
	MaintenanceWindow string            `json:"maintenance_window"`
	Nodes             []NodeResponse    `json:"nodes"`
	RelatedInstance   []RelatedInstance `json:"related_instance"`
	// 实例名称。
	Name      string      `json:"name"`
	Datastore *Datastore  `json:"datastore"`
	Ha        *HaResponse `json:"ha,omitempty"`
	// 数据库端口信息。  - MySQL数据库端口设置范围为1024~65535(其中12017和33071被RDS系统占用不可设置)。 - PostgreSQL数据库端口修改范围为2100~9500。 - Microsoft SQL Server实例的端口设置范围为1433和2100~9500(其中5355和5985不可设置。对于2017 EE版,5050、5353和5986不可设置)。  当不传该参数时,默认端口如下:  - MySQL默认3306。 - PostgreSQL默认5432。 - Microsoft SQL Server默认1433。
	Port           int32                      `json:"port"`
	BackupStrategy *BackupStrategyForResponse `json:"backup_strategy"`
	// 企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
	// 用于磁盘加密的密钥ID。
	DiskEncryptionId string `json:"disk_encryption_id"`
	// 规格码。
	FlavorRef string  `json:"flavor_ref"`
	Volume    *Volume `json:"volume"`
	// 区域ID。
	Region string `json:"region"`
	// 虚拟私有云ID。
	VpcId string `json:"vpc_id"`
	// 子网ID。
	SubnetId string `json:"subnet_id"`
	// 安全组ID。
	SecurityGroupId string              `json:"security_group_id"`
	ChargeInfo      *ChargeInfoResponse `json:"charge_info"`
	// 时区。
	TimeZone string        `json:"time_zone"`
	Tags     []TagResponse `json:"tags"`
	// 备份空间使用量,单位GB。  该字段仅用于查询指定SQL Server实例信息时返回。
	BackupUsedSpace *float64 `json:"backup_used_space,omitempty"`
	// 磁盘空间使用量,单位GB。  该字段仅用于查询指定SQL Server实例信息时返回。
	StorageUsedSpace *float64 `json:"storage_used_space,omitempty"`
	// 订单ID,仅包周期场景返回。
	OrderId *string `json:"order_id,omitempty"`
	// 是否已被DDM实例关联。
	AssociatedWithDdm *bool `json:"associated_with_ddm,omitempty"`
}

实例信息。

func (InstanceResponse) String

func (o InstanceResponse) String() string

type LDatastore

type LDatastore struct {
	// 数据库版本ID。
	Id string `json:"id"`
	// 数据库版本号,只返回两位数的大版本号,例如MySQL 5.6.X版本,仅返回5.6。
	Name string `json:"name"`
}

数据库版本信息。

func (LDatastore) String

func (o LDatastore) String() string

type ListAuditlogsRequest

type ListAuditlogsRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	StartTime  string  `json:"start_time"`
	EndTime    string  `json:"end_time"`
	Offset     int32   `json:"offset"`
	Limit      int32   `json:"limit"`
}

Request Object

func (ListAuditlogsRequest) String

func (o ListAuditlogsRequest) String() string

type ListAuditlogsResponse

type ListAuditlogsResponse struct {
	Auditlogs *[]Auditlog `json:"auditlogs,omitempty"`
	// 总记录数。
	TotalRecord    *int32 `json:"total_record,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAuditlogsResponse) String

func (o ListAuditlogsResponse) String() string

type ListAuthorizedDatabasesRequest

type ListAuthorizedDatabasesRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	UserName   string  `json:"user-name"`
	Page       int32   `json:"page"`
	Limit      int32   `json:"limit"`
}

Request Object

func (ListAuthorizedDatabasesRequest) String

type ListAuthorizedDatabasesResponse

type ListAuthorizedDatabasesResponse struct {
	// 数据库及相关权限。
	Databases *[]DatabaseWithPrivilege `json:"databases,omitempty"`
	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAuthorizedDatabasesResponse) String

type ListAuthorizedDbUsersRequest

type ListAuthorizedDbUsersRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	DbName     string  `json:"db-name"`
	Page       int32   `json:"page"`
	Limit      int32   `json:"limit"`
}

Request Object

func (ListAuthorizedDbUsersRequest) String

type ListAuthorizedDbUsersResponse

type ListAuthorizedDbUsersResponse struct {
	// 用户及相关权限。
	Users *[]UserWithPrivilege `json:"users,omitempty"`
	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListAuthorizedDbUsersResponse) String

type ListBackupsRequest

type ListBackupsRequest struct {
	XLanguage  *string                       `json:"X-Language,omitempty"`
	InstanceId string                        `json:"instance_id"`
	BackupId   *string                       `json:"backup_id,omitempty"`
	BackupType *ListBackupsRequestBackupType `json:"backup_type,omitempty"`
	Offset     *int32                        `json:"offset,omitempty"`
	Limit      *int32                        `json:"limit,omitempty"`
	BeginTime  *string                       `json:"begin_time,omitempty"`
	EndTime    *string                       `json:"end_time,omitempty"`
}

Request Object

func (ListBackupsRequest) String

func (o ListBackupsRequest) String() string

type ListBackupsRequestBackupType

type ListBackupsRequestBackupType struct {
	// contains filtered or unexported fields
}

func (ListBackupsRequestBackupType) MarshalJSON

func (c ListBackupsRequestBackupType) MarshalJSON() ([]byte, error)

func (*ListBackupsRequestBackupType) UnmarshalJSON

func (c *ListBackupsRequestBackupType) UnmarshalJSON(b []byte) error

type ListBackupsRequestBackupTypeEnum

type ListBackupsRequestBackupTypeEnum struct {
	AUTO        ListBackupsRequestBackupType
	MANUAL      ListBackupsRequestBackupType
	FRAGMENT    ListBackupsRequestBackupType
	INCREMENTAL ListBackupsRequestBackupType
}

func GetListBackupsRequestBackupTypeEnum

func GetListBackupsRequestBackupTypeEnum() ListBackupsRequestBackupTypeEnum

type ListBackupsResponse

type ListBackupsResponse struct {
	// 备份信息。
	Backups *[]BackupForList `json:"backups,omitempty"`
	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListBackupsResponse) String

func (o ListBackupsResponse) String() string

type ListCollationsRequest

type ListCollationsRequest struct {
	XLanguage *ListCollationsRequestXLanguage `json:"X-Language,omitempty"`
}

Request Object

func (ListCollationsRequest) String

func (o ListCollationsRequest) String() string

type ListCollationsRequestXLanguage

type ListCollationsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListCollationsRequestXLanguage) MarshalJSON

func (c ListCollationsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListCollationsRequestXLanguage) UnmarshalJSON

func (c *ListCollationsRequestXLanguage) UnmarshalJSON(b []byte) error

type ListCollationsRequestXLanguageEnum

type ListCollationsRequestXLanguageEnum struct {
	ZH_CN ListCollationsRequestXLanguage
	EN_US ListCollationsRequestXLanguage
}

func GetListCollationsRequestXLanguageEnum

func GetListCollationsRequestXLanguageEnum() ListCollationsRequestXLanguageEnum

type ListCollationsResponse

type ListCollationsResponse struct {
	// 字符集信息列表
	CharSets       *[]string `json:"charSets,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListCollationsResponse) String

func (o ListCollationsResponse) String() string

type ListConfigurationsRequest

type ListConfigurationsRequest struct {
	XLanguage *ListConfigurationsRequestXLanguage `json:"X-Language,omitempty"`
}

Request Object

func (ListConfigurationsRequest) String

func (o ListConfigurationsRequest) String() string

type ListConfigurationsRequestXLanguage

type ListConfigurationsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListConfigurationsRequestXLanguage) MarshalJSON

func (c ListConfigurationsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListConfigurationsRequestXLanguage) UnmarshalJSON

func (c *ListConfigurationsRequestXLanguage) UnmarshalJSON(b []byte) error

type ListConfigurationsRequestXLanguageEnum

type ListConfigurationsRequestXLanguageEnum struct {
	ZH_CN ListConfigurationsRequestXLanguage
	EN_US ListConfigurationsRequestXLanguage
}

func GetListConfigurationsRequestXLanguageEnum

func GetListConfigurationsRequestXLanguageEnum() ListConfigurationsRequestXLanguageEnum

type ListConfigurationsResponse

type ListConfigurationsResponse struct {
	Configurations *[]ConfigurationSummary `json:"configurations,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ListConfigurationsResponse) String

type ListDatabasesRequest

type ListDatabasesRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	Page       int32   `json:"page"`
	Limit      int32   `json:"limit"`
}

Request Object

func (ListDatabasesRequest) String

func (o ListDatabasesRequest) String() string

type ListDatabasesResponse

type ListDatabasesResponse struct {
	// 数据库信息。
	Databases *[]DatabaseForList `json:"databases,omitempty"`
	// 总数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDatabasesResponse) String

func (o ListDatabasesResponse) String() string

type ListDatastoresRequest

type ListDatastoresRequest struct {
	XLanguage    *string                           `json:"X-Language,omitempty"`
	DatabaseName ListDatastoresRequestDatabaseName `json:"database_name"`
}

Request Object

func (ListDatastoresRequest) String

func (o ListDatastoresRequest) String() string

type ListDatastoresRequestDatabaseName

type ListDatastoresRequestDatabaseName struct {
	// contains filtered or unexported fields
}

func (ListDatastoresRequestDatabaseName) MarshalJSON

func (c ListDatastoresRequestDatabaseName) MarshalJSON() ([]byte, error)

func (*ListDatastoresRequestDatabaseName) UnmarshalJSON

func (c *ListDatastoresRequestDatabaseName) UnmarshalJSON(b []byte) error

type ListDatastoresRequestDatabaseNameEnum

type ListDatastoresRequestDatabaseNameEnum struct {
	MY_SQL      ListDatastoresRequestDatabaseName
	POSTGRE_SQL ListDatastoresRequestDatabaseName
	SQL_SERVER  ListDatastoresRequestDatabaseName
}

func GetListDatastoresRequestDatabaseNameEnum

func GetListDatastoresRequestDatabaseNameEnum() ListDatastoresRequestDatabaseNameEnum

type ListDatastoresResponse

type ListDatastoresResponse struct {
	// 数据库引擎信息。
	DataStores     *[]LDatastore `json:"dataStores,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListDatastoresResponse) String

func (o ListDatastoresResponse) String() string

type ListDbUsersRequest

type ListDbUsersRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	Page       int32   `json:"page"`
	Limit      int32   `json:"limit"`
}

Request Object

func (ListDbUsersRequest) String

func (o ListDbUsersRequest) String() string

type ListDbUsersResponse

type ListDbUsersResponse struct {
	// 用户信息。
	Users *[]UserForList `json:"users,omitempty"`
	// 总条数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDbUsersResponse) String

func (o ListDbUsersResponse) String() string

type ListErrorLogsRequest

type ListErrorLogsRequest struct {
	XLanguage  *string                    `json:"X-Language,omitempty"`
	InstanceId string                     `json:"instance_id"`
	StartDate  string                     `json:"start_date"`
	EndDate    string                     `json:"end_date"`
	Offset     *int32                     `json:"offset,omitempty"`
	Limit      *int32                     `json:"limit,omitempty"`
	Level      *ListErrorLogsRequestLevel `json:"level,omitempty"`
}

Request Object

func (ListErrorLogsRequest) String

func (o ListErrorLogsRequest) String() string

type ListErrorLogsRequestLevel

type ListErrorLogsRequestLevel struct {
	// contains filtered or unexported fields
}

func (ListErrorLogsRequestLevel) MarshalJSON

func (c ListErrorLogsRequestLevel) MarshalJSON() ([]byte, error)

func (*ListErrorLogsRequestLevel) UnmarshalJSON

func (c *ListErrorLogsRequestLevel) UnmarshalJSON(b []byte) error

type ListErrorLogsResponse

type ListErrorLogsResponse struct {
	ErrorLogList *[]ErrorLog `json:"error_log_list,omitempty"`
	// 总记录数。
	TotalRecord    *int32 `json:"total_record,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListErrorLogsResponse) String

func (o ListErrorLogsResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {
	XLanguage    *string                        `json:"X-Language,omitempty"`
	DatabaseName ListFlavorsRequestDatabaseName `json:"database_name"`
	VersionName  *string                        `json:"version_name,omitempty"`
	SpecCode     *string                        `json:"spec_code,omitempty"`
}

Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsRequestDatabaseName

type ListFlavorsRequestDatabaseName struct {
	// contains filtered or unexported fields
}

func (ListFlavorsRequestDatabaseName) MarshalJSON

func (c ListFlavorsRequestDatabaseName) MarshalJSON() ([]byte, error)

func (*ListFlavorsRequestDatabaseName) UnmarshalJSON

func (c *ListFlavorsRequestDatabaseName) UnmarshalJSON(b []byte) error

type ListFlavorsRequestDatabaseNameEnum

type ListFlavorsRequestDatabaseNameEnum struct {
	MY_SQL      ListFlavorsRequestDatabaseName
	POSTGRE_SQL ListFlavorsRequestDatabaseName
	SQL_SERVER  ListFlavorsRequestDatabaseName
}

func GetListFlavorsRequestDatabaseNameEnum

func GetListFlavorsRequestDatabaseNameEnum() ListFlavorsRequestDatabaseNameEnum

type ListFlavorsResponse

type ListFlavorsResponse struct {
	// 实例规格信息。
	Flavors        *[]Flavor `json:"flavors,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListInstancesRequest

type ListInstancesRequest struct {
	ContentType   *string                            `json:"Content-Type,omitempty"`
	XLanguage     *ListInstancesRequestXLanguage     `json:"X-Language,omitempty"`
	Id            *string                            `json:"id,omitempty"`
	Name          *string                            `json:"name,omitempty"`
	Type          *ListInstancesRequestType          `json:"type,omitempty"`
	DatastoreType *ListInstancesRequestDatastoreType `json:"datastore_type,omitempty"`
	VpcId         *string                            `json:"vpc_id,omitempty"`
	SubnetId      *string                            `json:"subnet_id,omitempty"`
	Offset        *int32                             `json:"offset,omitempty"`
	Limit         *int32                             `json:"limit,omitempty"`
	Tags          *string                            `json:"tags,omitempty"`
}

Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesRequestDatastoreType

type ListInstancesRequestDatastoreType struct {
	// contains filtered or unexported fields
}

func (ListInstancesRequestDatastoreType) MarshalJSON

func (c ListInstancesRequestDatastoreType) MarshalJSON() ([]byte, error)

func (*ListInstancesRequestDatastoreType) UnmarshalJSON

func (c *ListInstancesRequestDatastoreType) UnmarshalJSON(b []byte) error

type ListInstancesRequestDatastoreTypeEnum

type ListInstancesRequestDatastoreTypeEnum struct {
	MY_SQL      ListInstancesRequestDatastoreType
	POSTGRE_SQL ListInstancesRequestDatastoreType
	SQL_SERVER  ListInstancesRequestDatastoreType
}

func GetListInstancesRequestDatastoreTypeEnum

func GetListInstancesRequestDatastoreTypeEnum() ListInstancesRequestDatastoreTypeEnum

type ListInstancesRequestType

type ListInstancesRequestType struct {
	// contains filtered or unexported fields
}

func (ListInstancesRequestType) MarshalJSON

func (c ListInstancesRequestType) MarshalJSON() ([]byte, error)

func (*ListInstancesRequestType) UnmarshalJSON

func (c *ListInstancesRequestType) UnmarshalJSON(b []byte) error

type ListInstancesRequestTypeEnum

type ListInstancesRequestTypeEnum struct {
	SINGLE  ListInstancesRequestType
	HA      ListInstancesRequestType
	REPLICA ListInstancesRequestType
}

func GetListInstancesRequestTypeEnum

func GetListInstancesRequestTypeEnum() ListInstancesRequestTypeEnum

type ListInstancesRequestXLanguage

type ListInstancesRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListInstancesRequestXLanguage) MarshalJSON

func (c ListInstancesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListInstancesRequestXLanguage) UnmarshalJSON

func (c *ListInstancesRequestXLanguage) UnmarshalJSON(b []byte) error

type ListInstancesRequestXLanguageEnum

type ListInstancesRequestXLanguageEnum struct {
	ZH_CN ListInstancesRequestXLanguage
	EN_US ListInstancesRequestXLanguage
}

func GetListInstancesRequestXLanguageEnum

func GetListInstancesRequestXLanguageEnum() ListInstancesRequestXLanguageEnum

type ListInstancesResponse

type ListInstancesResponse struct {
	Instances *[]InstanceResponse `json:"instances,omitempty"`
	// 总实例数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListJobInfoDetailRequest

type ListJobInfoDetailRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	StartTime  string  `json:"start_time"`
	EndTime    *string `json:"end_time,omitempty"`
}

Request Object

func (ListJobInfoDetailRequest) String

func (o ListJobInfoDetailRequest) String() string

type ListJobInfoDetailResponse

type ListJobInfoDetailResponse struct {
	Jobs *GetTaskDetailListRspJobs `json:"jobs,omitempty"`
	// 任务执行的具体的参数信息,为空则不返回该字段。
	TaskDetail *string                       `json:"task_detail,omitempty"`
	Instance   *GetTaskDetailListRspInstance `json:"instance,omitempty"`
	// 根据不同的任务,显示不同的内容。
	Entities *interface{} `json:"entities,omitempty"`
	// 任务执行失败时的错误信息。
	FailReason     *string `json:"fail_reason,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListJobInfoDetailResponse) String

func (o ListJobInfoDetailResponse) String() string

type ListJobInfoRequest

type ListJobInfoRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
	Id        string  `json:"id"`
}

Request Object

func (ListJobInfoRequest) String

func (o ListJobInfoRequest) String() string

type ListJobInfoResponse

type ListJobInfoResponse struct {
	Job            *GetJobInfoResponseBodyJob `json:"job,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (ListJobInfoResponse) String

func (o ListJobInfoResponse) String() string

type ListProjectTagsRequest

type ListProjectTagsRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
}

Request Object

func (ListProjectTagsRequest) String

func (o ListProjectTagsRequest) String() string

type ListProjectTagsResponse

type ListProjectTagsResponse struct {
	// 标签列表,没有标签默认为空数组。
	Tags           *[]ProjectTagInfoResponse `json:"tags,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListProjectTagsResponse) String

func (o ListProjectTagsResponse) String() string

type ListRestoreTimesRequest

type ListRestoreTimesRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
	Date       *string `json:"date,omitempty"`
}

Request Object

func (ListRestoreTimesRequest) String

func (o ListRestoreTimesRequest) String() string

type ListRestoreTimesResponse

type ListRestoreTimesResponse struct {
	// 可恢复时间段列表。
	RestoreTime    *[]GetRestoreTimeResponseRestoreTime `json:"restore_time,omitempty"`
	HttpStatusCode int                                  `json:"-"`
}

Response Object

func (ListRestoreTimesResponse) String

func (o ListRestoreTimesResponse) String() string

type ListSlowLogsRequest

type ListSlowLogsRequest struct {
	XLanguage  *string                  `json:"X-Language,omitempty"`
	InstanceId string                   `json:"instance_id"`
	StartDate  string                   `json:"start_date"`
	EndDate    string                   `json:"end_date"`
	Offset     *int32                   `json:"offset,omitempty"`
	Limit      *int32                   `json:"limit,omitempty"`
	Type       *ListSlowLogsRequestType `json:"type,omitempty"`
}

Request Object

func (ListSlowLogsRequest) String

func (o ListSlowLogsRequest) String() string

type ListSlowLogsRequestType

type ListSlowLogsRequestType struct {
	// contains filtered or unexported fields
}

func (ListSlowLogsRequestType) MarshalJSON

func (c ListSlowLogsRequestType) MarshalJSON() ([]byte, error)

func (*ListSlowLogsRequestType) UnmarshalJSON

func (c *ListSlowLogsRequestType) UnmarshalJSON(b []byte) error

type ListSlowLogsRequestTypeEnum

type ListSlowLogsRequestTypeEnum struct {
	INSERT ListSlowLogsRequestType
	UPDATE ListSlowLogsRequestType
	SELECT ListSlowLogsRequestType
	DELETE ListSlowLogsRequestType
	CREATE ListSlowLogsRequestType
}

func GetListSlowLogsRequestTypeEnum

func GetListSlowLogsRequestTypeEnum() ListSlowLogsRequestTypeEnum

type ListSlowLogsResponse

type ListSlowLogsResponse struct {
	SlowLogList *[]SlowLog `json:"slow_log_list,omitempty"`
	// 总记录数。
	TotalRecord    *int32 `json:"total_record,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSlowLogsResponse) String

func (o ListSlowLogsResponse) String() string

type ListSlowlogStatisticsRequest

type ListSlowlogStatisticsRequest struct {
	XLanguage  *ListSlowlogStatisticsRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                                 `json:"instance_id"`
	CurPage    int32                                  `json:"cur_page"`
	PerPage    int32                                  `json:"per_page"`
	StartDate  string                                 `json:"start_date"`
	EndDate    string                                 `json:"end_date"`
	Type       ListSlowlogStatisticsRequestType       `json:"type"`
}

Request Object

func (ListSlowlogStatisticsRequest) String

type ListSlowlogStatisticsRequestType

type ListSlowlogStatisticsRequestType struct {
	// contains filtered or unexported fields
}

func (ListSlowlogStatisticsRequestType) MarshalJSON

func (c ListSlowlogStatisticsRequestType) MarshalJSON() ([]byte, error)

func (*ListSlowlogStatisticsRequestType) UnmarshalJSON

func (c *ListSlowlogStatisticsRequestType) UnmarshalJSON(b []byte) error

type ListSlowlogStatisticsRequestXLanguage

type ListSlowlogStatisticsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListSlowlogStatisticsRequestXLanguage) MarshalJSON

func (c ListSlowlogStatisticsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListSlowlogStatisticsRequestXLanguage) UnmarshalJSON

func (c *ListSlowlogStatisticsRequestXLanguage) UnmarshalJSON(b []byte) error

type ListSlowlogStatisticsRequestXLanguageEnum

type ListSlowlogStatisticsRequestXLanguageEnum struct {
	ZH_CN ListSlowlogStatisticsRequestXLanguage
	EN_US ListSlowlogStatisticsRequestXLanguage
}

func GetListSlowlogStatisticsRequestXLanguageEnum

func GetListSlowlogStatisticsRequestXLanguageEnum() ListSlowlogStatisticsRequestXLanguageEnum

type ListSlowlogStatisticsResponse

type ListSlowlogStatisticsResponse struct {
	// 当前页码
	PageNumber *int32 `json:"pageNumber,omitempty"`
	// 每页条数
	PageRecord *int32 `json:"pageRecord,omitempty"`
	// 慢日志列表
	SlowLogList *[]SlowLog `json:"slowLogList,omitempty"`
	// 总条数
	TotalRecord *int32 `json:"totalRecord,omitempty"`
	// 开始时间
	StartTime *int64 `json:"startTime,omitempty"`
	// 结束时间
	EndTime        *int64 `json:"endTime,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSlowlogStatisticsResponse) String

type ListStorageTypesRequest

type ListStorageTypesRequest struct {
	XLanguage    *string                             `json:"X-Language,omitempty"`
	DatabaseName ListStorageTypesRequestDatabaseName `json:"database_name"`
	VersionName  string                              `json:"version_name"`
	HaMode       *ListStorageTypesRequestHaMode      `json:"ha_mode,omitempty"`
}

Request Object

func (ListStorageTypesRequest) String

func (o ListStorageTypesRequest) String() string

type ListStorageTypesRequestDatabaseName

type ListStorageTypesRequestDatabaseName struct {
	// contains filtered or unexported fields
}

func (ListStorageTypesRequestDatabaseName) MarshalJSON

func (c ListStorageTypesRequestDatabaseName) MarshalJSON() ([]byte, error)

func (*ListStorageTypesRequestDatabaseName) UnmarshalJSON

func (c *ListStorageTypesRequestDatabaseName) UnmarshalJSON(b []byte) error

type ListStorageTypesRequestDatabaseNameEnum

type ListStorageTypesRequestDatabaseNameEnum struct {
	MY_SQL      ListStorageTypesRequestDatabaseName
	POSTGRE_SQL ListStorageTypesRequestDatabaseName
	SQL_SERVER  ListStorageTypesRequestDatabaseName
}

func GetListStorageTypesRequestDatabaseNameEnum

func GetListStorageTypesRequestDatabaseNameEnum() ListStorageTypesRequestDatabaseNameEnum

type ListStorageTypesRequestHaMode

type ListStorageTypesRequestHaMode struct {
	// contains filtered or unexported fields
}

func (ListStorageTypesRequestHaMode) MarshalJSON

func (c ListStorageTypesRequestHaMode) MarshalJSON() ([]byte, error)

func (*ListStorageTypesRequestHaMode) UnmarshalJSON

func (c *ListStorageTypesRequestHaMode) UnmarshalJSON(b []byte) error

type ListStorageTypesRequestHaModeEnum

type ListStorageTypesRequestHaModeEnum struct {
	HA      ListStorageTypesRequestHaMode
	SINGLE  ListStorageTypesRequestHaMode
	REPLICA ListStorageTypesRequestHaMode
}

func GetListStorageTypesRequestHaModeEnum

func GetListStorageTypesRequestHaModeEnum() ListStorageTypesRequestHaModeEnum

type ListStorageTypesResponse

type ListStorageTypesResponse struct {
	// 实例磁盘类型信息。
	StorageType *[]Storage `json:"storage_type,omitempty"`
	// 实例专属存储信息。
	DsspoolInfo    *[]DssPoolInfo `json:"dsspool_info,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListStorageTypesResponse) String

func (o ListStorageTypesResponse) String() string

type MigrateFollowerRequest

type MigrateFollowerRequest struct {
	XLanguage  *MigrateFollowerRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                           `json:"instance_id"`
	Body       *FollowerMigrateRequest          `json:"body,omitempty"`
}

Request Object

func (MigrateFollowerRequest) String

func (o MigrateFollowerRequest) String() string

type MigrateFollowerRequestXLanguage

type MigrateFollowerRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (MigrateFollowerRequestXLanguage) MarshalJSON

func (c MigrateFollowerRequestXLanguage) MarshalJSON() ([]byte, error)

func (*MigrateFollowerRequestXLanguage) UnmarshalJSON

func (c *MigrateFollowerRequestXLanguage) UnmarshalJSON(b []byte) error

type MigrateFollowerRequestXLanguageEnum

type MigrateFollowerRequestXLanguageEnum struct {
	ZH_CN MigrateFollowerRequestXLanguage
	EN_US MigrateFollowerRequestXLanguage
}

func GetMigrateFollowerRequestXLanguageEnum

func GetMigrateFollowerRequestXLanguageEnum() MigrateFollowerRequestXLanguageEnum

type MigrateFollowerResponse

type MigrateFollowerResponse struct {
	// 任务ID
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (MigrateFollowerResponse) String

func (o MigrateFollowerResponse) String() string

type ModifyConfigurationRequest

type ModifyConfigurationRequest struct {
	XLanguage *string                 `json:"X-Language,omitempty"`
	ConfigId  string                  `json:"config_id"`
	Body      *ConfigurationForUpdate `json:"body,omitempty"`
}

Request Object

func (ModifyConfigurationRequest) String

type ModifyConfigurationResponse

type ModifyConfigurationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ModifyConfigurationResponse) String

type ModifyInstanceConfigurationRequest

type ModifyInstanceConfigurationRequest struct {
	XLanguage  *string                             `json:"X-Language,omitempty"`
	InstanceId string                              `json:"instance_id"`
	Body       *ModifyInstanceConfigurationRequest `json:"body,omitempty"`
}

Request Object

func (ModifyInstanceConfigurationRequest) String

type ModifyInstanceConfigurationResponse

type ModifyInstanceConfigurationResponse struct {
	// 实例是否需要重启。  - “true”需要重启。 - “false”不需要重启。
	RestartRequired *bool `json:"restart_required,omitempty"`
	HttpStatusCode  int   `json:"-"`
}

Response Object

func (ModifyInstanceConfigurationResponse) String

type NodeResponse

type NodeResponse struct {
	// 节点ID。
	Id string `json:"id"`
	// 节点名称。
	Name string `json:"name"`
	// 节点类型,取值为“master”、“slave”或“readreplica”,分别对应于主节点、备节点和只读节点。
	Role string `json:"role"`
	// 节点状态。
	Status string `json:"status"`
	// 可用区。
	AvailabilityZone string `json:"availability_zone"`
}

实例节点信息。

func (NodeResponse) String

func (o NodeResponse) String() string

type OpsWindowRequest

type OpsWindowRequest struct {
	// - 开始时间, UTC时间
	StartTime string `json:"start_time"`
	// - 结束时间,UTC时间
	EndTime string `json:"end_time"`
}

func (OpsWindowRequest) String

func (o OpsWindowRequest) String() string

type ProjectTagInfoResponse

type ProjectTagInfoResponse struct {
	// 标签键。
	Key string `json:"key"`
	// 标签值列表。
	Values []string `json:"values"`
}

项目标签信息。

func (ProjectTagInfoResponse) String

func (o ProjectTagInfoResponse) String() string

type PwdResetRequest

type PwdResetRequest struct {
	// 数据库密码
	DbUserPwd string `json:"db_user_pwd"`
}

func (PwdResetRequest) String

func (o PwdResetRequest) String() string

type RelatedInstance

type RelatedInstance struct {
	// 关联实例id。
	Id string `json:"id"`
	// 关联实例类型。  - “replica_of”对应于“主实例”。 - “replica”对应于“只读实例”。
	Type string `json:"type"`
}

实例节点信息。

func (RelatedInstance) String

func (o RelatedInstance) String() string

type ResetPwdRequest

type ResetPwdRequest struct {
	XLanguage  *ResetPwdRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                    `json:"instance_id"`
	Body       *PwdResetRequest          `json:"body,omitempty"`
}

Request Object

func (ResetPwdRequest) String

func (o ResetPwdRequest) String() string

type ResetPwdRequestXLanguage

type ResetPwdRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ResetPwdRequestXLanguage) MarshalJSON

func (c ResetPwdRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ResetPwdRequestXLanguage) UnmarshalJSON

func (c *ResetPwdRequestXLanguage) UnmarshalJSON(b []byte) error

type ResetPwdRequestXLanguageEnum

type ResetPwdRequestXLanguageEnum struct {
	ZH_CN ResetPwdRequestXLanguage
	EN_US ResetPwdRequestXLanguage
}

func GetResetPwdRequestXLanguageEnum

func GetResetPwdRequestXLanguageEnum() ResetPwdRequestXLanguageEnum

type ResetPwdResponse

type ResetPwdResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ResetPwdResponse) String

func (o ResetPwdResponse) String() string

type ResizeFlavorRequest

type ResizeFlavorRequest struct {
	// 资源规格编码。
	SpecCode string `json:"spec_code"`
	// 变更包周期实例的规格时可指定,表示是否自动从客户的账户中支付。
	IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}

变更实例规格时必填。

func (ResizeFlavorRequest) String

func (o ResizeFlavorRequest) String() string

type RestoreDatabasesInfo

type RestoreDatabasesInfo struct {
	// 库名
	Database string `json:"database"`
	// 表信息
	Tables []RestoreTableInfo `json:"tables"`
}

func (RestoreDatabasesInfo) String

func (o RestoreDatabasesInfo) String() string

type RestorePoint

type RestorePoint struct {
	// 源实例ID。
	InstanceId string `json:"instance_id"`
	// 表示恢复方式,枚举值:  - “backup”,表示使用备份文件恢复,按照此方式恢复时,“type”字段为非必选,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,“type”字段必选,“restore_time”必选。
	Type string `json:"type"`
	// 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。
	BackupId *string `json:"backup_id,omitempty"`
	// 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。
	RestoreTime *int32 `json:"restore_time,omitempty"`
	// 仅适用于SQL Server引擎,当有此参数时表示支持局部恢复和重命名恢复,恢复数据以局部恢复为主。  - 新数据库名称不可与源实例数据库名称重名,新数据库名称为空,默认按照原数据库名进行恢复。   注意:   不填写该字段时,默认恢复全部数据库。    示例:”database_name”:{“原库名”:”新库名”}  - 新数据库名不能包含rdsadmin、master、msdb、tempdb、model或resource字段(不区分大小写)。 - 数据库名称长度在1~64个字符之间,包含字母、数字、下划线或中划线,不能包含其他特殊字符。
	DatabaseName map[string]string `json:"database_name,omitempty"`
}

func (RestorePoint) String

func (o RestorePoint) String() string

type RestoreTableInfo

type RestoreTableInfo struct {
	// 旧表名
	OldName string `json:"oldName"`
	// 新表名
	NewName string `json:"newName"`
}

func (RestoreTableInfo) String

func (o RestoreTableInfo) String() string

type RestoreTablesRequest

type RestoreTablesRequest struct {
	XLanguage  *string                   `json:"X-Language,omitempty"`
	InstanceId string                    `json:"instance_id"`
	Body       *RestoreTablesRequestBody `json:"body,omitempty"`
}

Request Object

func (RestoreTablesRequest) String

func (o RestoreTablesRequest) String() string

type RestoreTablesRequestBody

type RestoreTablesRequestBody struct {
	// 恢复时间戳
	RestoreTime int64 `json:"restoreTime"`
	// 表信息
	RestoreTables []RestoreDatabasesInfo `json:"restoreTables"`
}

func (RestoreTablesRequestBody) String

func (o RestoreTablesRequestBody) String() string

type RestoreTablesResponse

type RestoreTablesResponse struct {
	// 任务ID。
	JobId          *string `json:"jobId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RestoreTablesResponse) String

func (o RestoreTablesResponse) String() string

type RestoreToExistingInstanceRequest

type RestoreToExistingInstanceRequest struct {
	XLanguage *string                               `json:"X-Language,omitempty"`
	Body      *RestoreToExistingInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (RestoreToExistingInstanceRequest) String

type RestoreToExistingInstanceRequestBody

type RestoreToExistingInstanceRequestBody struct {
	Source *RestoreToExistingInstanceRequestBodySource `json:"source"`
	Target *RestoreToExistingInstanceRequestBodyTarget `json:"target"`
}

func (RestoreToExistingInstanceRequestBody) String

type RestoreToExistingInstanceRequestBodySource

type RestoreToExistingInstanceRequestBodySource struct {
	// 实例ID。
	InstanceId string `json:"instance_id"`
	// 表示恢复方式,枚举值:  - “backup”,表示使用备份文件恢复,按照此方式恢复时,“type”字段为非必选,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,“type”字段必选,“restore_time”必选。
	Type *RestoreToExistingInstanceRequestBodySourceType `json:"type,omitempty"`
	// 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。
	BackupId *string `json:"backup_id,omitempty"`
	// 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。
	RestoreTime *int32 `json:"restore_time,omitempty"`
	// 仅适用于SQL Server引擎,当有此参数时表示支持局部恢复和重命名恢复,恢复数据以局部恢复为主。不填写该字段时,默认恢复全部数据库。 - 新数据库名称不可与源实例或目标实例数据库名称重名,新数据库名称为空,默认按照原数据库名进行恢复。 - 新数据库名不能包含rdsadmin、master、msdb、tempdb、model或resource字段(不区分大小写)。 - 数据库名称长度在1~64个字符之间,包含字母、数字、下划线或中划线,不能包含其他特殊字符。
	DatabaseName map[string]string `json:"database_name,omitempty"`
}

恢复数据源对象。

func (RestoreToExistingInstanceRequestBodySource) String

type RestoreToExistingInstanceRequestBodySourceType

type RestoreToExistingInstanceRequestBodySourceType struct {
	// contains filtered or unexported fields
}

func (RestoreToExistingInstanceRequestBodySourceType) MarshalJSON

func (*RestoreToExistingInstanceRequestBodySourceType) UnmarshalJSON

type RestoreToExistingInstanceRequestBodyTarget

type RestoreToExistingInstanceRequestBodyTarget struct {
	// 恢复目标实例ID。
	InstanceId string `json:"instance_id"`
}

恢复目标对象。

func (RestoreToExistingInstanceRequestBodyTarget) String

type RestoreToExistingInstanceResponse

type RestoreToExistingInstanceResponse struct {
	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RestoreToExistingInstanceResponse) String

type RevokeRequest

type RevokeRequest struct {
	XLanguage  *string            `json:"X-Language,omitempty"`
	InstanceId string             `json:"instance_id"`
	Body       *RevokeRequestBody `json:"body,omitempty"`
}

Request Object

func (RevokeRequest) String

func (o RevokeRequest) String() string

type RevokeRequestBody

type RevokeRequestBody struct {
	// 数据库名称。
	DbName string `json:"db_name"`
	// 解除授权的用户列表。
	Users []RevokeRequestBodyUsers `json:"users"`
}

func (RevokeRequestBody) String

func (o RevokeRequestBody) String() string

type RevokeRequestBodyUsers

type RevokeRequestBodyUsers struct {
	// 数据库用户名称。
	Name string `json:"name"`
}

func (RevokeRequestBodyUsers) String

func (o RevokeRequestBodyUsers) String() string

type RevokeResponse

type RevokeResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RevokeResponse) String

func (o RevokeResponse) String() string

type SecurityGroupRequest

type SecurityGroupRequest struct {
	// - 安全组ID。
	SecurityGroupId string `json:"security_group_id"`
}

func (SecurityGroupRequest) String

func (o SecurityGroupRequest) String() string

type SetAuditlogPolicyRequest

type SetAuditlogPolicyRequest struct {
	XLanguage  *string                       `json:"X-Language,omitempty"`
	InstanceId string                        `json:"instance_id"`
	Body       *SetAuditlogPolicyRequestBody `json:"body,omitempty"`
}

Request Object

func (SetAuditlogPolicyRequest) String

func (o SetAuditlogPolicyRequest) String() string

type SetAuditlogPolicyRequestBody

type SetAuditlogPolicyRequestBody struct {
	// 审计日志保存天数,取值范围0~732。0表示关闭审计日志策略。
	KeepDays int32 `json:"keep_days"`
	// 仅关闭审计日志策略时有效。  - true(默认),表示关闭审计日志策略的同时,保留历史审计日志。 - false,表示关闭审计日志策略的同时,删除已有的历史审计日志。
	ReserveAuditlogs *bool `json:"reserve_auditlogs,omitempty"`
}

func (SetAuditlogPolicyRequestBody) String

type SetAuditlogPolicyResponse

type SetAuditlogPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (SetAuditlogPolicyResponse) String

func (o SetAuditlogPolicyResponse) String() string

type SetBackupPolicyRequest

type SetBackupPolicyRequest struct {
	XLanguage  *string                     `json:"X-Language,omitempty"`
	InstanceId string                      `json:"instance_id"`
	Body       *SetBackupPolicyRequestBody `json:"body,omitempty"`
}

Request Object

func (SetBackupPolicyRequest) String

func (o SetBackupPolicyRequest) String() string

type SetBackupPolicyRequestBody

type SetBackupPolicyRequestBody struct {
	BackupPolicy *BackupPolicy `json:"backup_policy"`
	// 仅关闭备份策略时有效。  - true(默认),表示保留自动备份和差异备份。 - false,表示关闭备份策略的同时,删除已有的自动备份和差异备份。
	ReserveBackups *bool `json:"reserve_backups,omitempty"`
}

func (SetBackupPolicyRequestBody) String

type SetBackupPolicyResponse

type SetBackupPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (SetBackupPolicyResponse) String

func (o SetBackupPolicyResponse) String() string

type SetDbUserPwdRequest

type SetDbUserPwdRequest struct {
	XLanguage  *SetDbUserPwdRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                        `json:"instance_id"`
	Body       *DbUserPwdRequest             `json:"body,omitempty"`
}

Request Object

func (SetDbUserPwdRequest) String

func (o SetDbUserPwdRequest) String() string

type SetDbUserPwdRequestXLanguage

type SetDbUserPwdRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (SetDbUserPwdRequestXLanguage) MarshalJSON

func (c SetDbUserPwdRequestXLanguage) MarshalJSON() ([]byte, error)

func (*SetDbUserPwdRequestXLanguage) UnmarshalJSON

func (c *SetDbUserPwdRequestXLanguage) UnmarshalJSON(b []byte) error

type SetDbUserPwdRequestXLanguageEnum

type SetDbUserPwdRequestXLanguageEnum struct {
	ZH_CN SetDbUserPwdRequestXLanguage
	EN_US SetDbUserPwdRequestXLanguage
}

func GetSetDbUserPwdRequestXLanguageEnum

func GetSetDbUserPwdRequestXLanguageEnum() SetDbUserPwdRequestXLanguageEnum

type SetDbUserPwdResponse

type SetDbUserPwdResponse struct {
	// 操作结果。
	Resp           *string `json:"resp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (SetDbUserPwdResponse) String

func (o SetDbUserPwdResponse) String() string

type SetSecurityGroupRequest

type SetSecurityGroupRequest struct {
	XLanguage  *SetSecurityGroupRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                            `json:"instance_id"`
	Body       *SecurityGroupRequest             `json:"body,omitempty"`
}

Request Object

func (SetSecurityGroupRequest) String

func (o SetSecurityGroupRequest) String() string

type SetSecurityGroupRequestXLanguage

type SetSecurityGroupRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (SetSecurityGroupRequestXLanguage) MarshalJSON

func (c SetSecurityGroupRequestXLanguage) MarshalJSON() ([]byte, error)

func (*SetSecurityGroupRequestXLanguage) UnmarshalJSON

func (c *SetSecurityGroupRequestXLanguage) UnmarshalJSON(b []byte) error

type SetSecurityGroupRequestXLanguageEnum

type SetSecurityGroupRequestXLanguageEnum struct {
	ZH_CN SetSecurityGroupRequestXLanguage
	EN_US SetSecurityGroupRequestXLanguage
}

func GetSetSecurityGroupRequestXLanguageEnum

func GetSetSecurityGroupRequestXLanguageEnum() SetSecurityGroupRequestXLanguageEnum

type SetSecurityGroupResponse

type SetSecurityGroupResponse struct {
	// 任务ID
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (SetSecurityGroupResponse) String

func (o SetSecurityGroupResponse) String() string

type ShowAuditlogDownloadLinkRequest

type ShowAuditlogDownloadLinkRequest struct {
	XLanguage  *string                              `json:"X-Language,omitempty"`
	InstanceId string                               `json:"instance_id"`
	Body       *GenerateAuditlogDownloadLinkRequest `json:"body,omitempty"`
}

Request Object

func (ShowAuditlogDownloadLinkRequest) String

type ShowAuditlogDownloadLinkResponse

type ShowAuditlogDownloadLinkResponse struct {
	// 审计日志下载链接列表。
	Links          *[]string `json:"links,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowAuditlogDownloadLinkResponse) String

type ShowAuditlogPolicyRequest

type ShowAuditlogPolicyRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
}

Request Object

func (ShowAuditlogPolicyRequest) String

func (o ShowAuditlogPolicyRequest) String() string

type ShowAuditlogPolicyResponse

type ShowAuditlogPolicyResponse struct {
	// 审计日志保存天数,取值范围0~732。0表示关闭审计日志策略。
	KeepDays       *int32 `json:"keep_days,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowAuditlogPolicyResponse) String

type ShowBackupDownloadLinkRequest

type ShowBackupDownloadLinkRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
	BackupId  string  `json:"backup_id"`
}

Request Object

func (ShowBackupDownloadLinkRequest) String

type ShowBackupDownloadLinkResponse

type ShowBackupDownloadLinkResponse struct {
	// 备份文件信息。
	Files *[]GetBackupDownloadLinkFiles `json:"files,omitempty"`
	// OBS桶名。
	Bucket         *string `json:"bucket,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowBackupDownloadLinkResponse) String

type ShowBackupPolicyRequest

type ShowBackupPolicyRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
}

Request Object

func (ShowBackupPolicyRequest) String

func (o ShowBackupPolicyRequest) String() string

type ShowBackupPolicyResponse

type ShowBackupPolicyResponse struct {
	BackupPolicy   *BackupPolicy `json:"backup_policy,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowBackupPolicyResponse) String

func (o ShowBackupPolicyResponse) String() string

type ShowConfigurationRequest

type ShowConfigurationRequest struct {
	XLanguage *string `json:"X-Language,omitempty"`
	ConfigId  string  `json:"config_id"`
}

Request Object

func (ShowConfigurationRequest) String

func (o ShowConfigurationRequest) String() string

type ShowConfigurationResponse

type ShowConfigurationResponse struct {
	// 参数组ID。
	Id *string `json:"id,omitempty"`
	// 参数组名称。
	Name *string `json:"name,omitempty"`
	// 参数组描述。
	Description *string `json:"description,omitempty"`
	// 引擎版本。
	DatastoreVersionName *string `json:"datastore_version_name,omitempty"`
	// 引擎名。
	DatastoreName *ShowConfigurationResponseDatastoreName `json:"datastore_name,omitempty"`
	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created *string `json:"created,omitempty"`
	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated *string `json:"updated,omitempty"`
	// 参数对象,用户基于默认参数模板自定义的参数配置。
	ConfigurationParameters *[]ConfigurationParameter `json:"configuration_parameters,omitempty"`
	HttpStatusCode          int                       `json:"-"`
}

Response Object

func (ShowConfigurationResponse) String

func (o ShowConfigurationResponse) String() string

type ShowConfigurationResponseDatastoreName

type ShowConfigurationResponseDatastoreName struct {
	// contains filtered or unexported fields
}

func (ShowConfigurationResponseDatastoreName) MarshalJSON

func (c ShowConfigurationResponseDatastoreName) MarshalJSON() ([]byte, error)

func (*ShowConfigurationResponseDatastoreName) UnmarshalJSON

func (c *ShowConfigurationResponseDatastoreName) UnmarshalJSON(b []byte) error

type ShowInstanceConfigurationRequest

type ShowInstanceConfigurationRequest struct {
	XLanguage  *string `json:"X-Language,omitempty"`
	InstanceId string  `json:"instance_id"`
}

Request Object

func (ShowInstanceConfigurationRequest) String

type ShowInstanceConfigurationResponse

type ShowInstanceConfigurationResponse struct {
	// 引擎版本。
	DatastoreVersionName *string `json:"datastore_version_name,omitempty"`
	// 引擎名。
	DatastoreName *ShowInstanceConfigurationResponseDatastoreName `json:"datastore_name,omitempty"`
	// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Created *string `json:"created,omitempty"`
	// 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。  其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
	Updated *string `json:"updated,omitempty"`
	// 参数对象,用户基于默认参数模板自定义的参数配置。
	ConfigurationParameters *[]ConfigurationParameter `json:"configuration_parameters,omitempty"`
	HttpStatusCode          int                       `json:"-"`
}

Response Object

func (ShowInstanceConfigurationResponse) String

type ShowInstanceConfigurationResponseDatastoreName

type ShowInstanceConfigurationResponseDatastoreName struct {
	// contains filtered or unexported fields
}

func (ShowInstanceConfigurationResponseDatastoreName) MarshalJSON

func (*ShowInstanceConfigurationResponseDatastoreName) UnmarshalJSON

type Single2Ha

type Single2Ha struct {
	// 实例节点可用区码(AZ)。
	AzCodeNewNode string `json:"az_code_new_node"`
	// 仅在支持SQL Server数据库实例进行单机转主备时必选,有效。
	Password *string `json:"password,omitempty"`
	// 创建新节点所在专属存储池ID,仅专属云创建实例时有效。
	DsspoolId *string `json:"dsspool_id,omitempty"`
}

单机转主备时必填。

func (Single2Ha) String

func (o Single2Ha) String() string

type SlowLog

type SlowLog struct {
	// 执行次数。
	Count string `json:"count"`
	// 平均执行时间。
	Time string `json:"time"`
	// 平均等待锁时间。
	LockTime string `json:"lock_time"`
	// 平均结果行数量。
	RowsSent string `json:"rows_sent"`
	// 平均扫描的行数量。
	RowsExamined string `json:"rows_examined"`
	// 所属数据库。
	Database string `json:"database"`
	// 帐号。
	Users string `json:"users"`
	// 执行语法。
	QuerySample string `json:"query_sample"`
	// 语句类型。
	Type string `json:"type"`
	// 发生时间,UTC时间。
	StartTime string `json:"start_time"`
	// IP地址。
	ClientIp string `json:"client_ip"`
}

慢日志信息。

func (SlowLog) String

func (o SlowLog) String() string

type SlowlogDownloadInfo

type SlowlogDownloadInfo struct {
	// 任务ID
	WorkflowId string `json:"workflow_id"`
	// 生成的下载文件名
	FileName string `json:"file_name"`
	// 生成链接的生成状态
	Status string `json:"status"`
	// 文件大小
	FileSize string `json:"file_size"`
	// 下载链接
	FileLink string `json:"file_link"`
	// 生成时间
	CreateAt int64 `json:"create_at"`
	// 更新时间
	UpdateAt int64 `json:"update_at"`
}

func (SlowlogDownloadInfo) String

func (o SlowlogDownloadInfo) String() string

type SlowlogDownloadRequest

type SlowlogDownloadRequest struct {
	// - 请求ID,uuid,代表此次获取慢日志的请求ID。
	RequestId string `json:"request_id"`
	// - 需要下载的文件的文件名, 当引擎为SQL Server时为必选。
	FileName *string `json:"file_name,omitempty"`
}

func (SlowlogDownloadRequest) String

func (o SlowlogDownloadRequest) String() string

type SslOptionRequestBody

type SslOptionRequestBody struct {
	// - true, 打开ssl开关。 - false, 关闭ssl开关。
	SslOption bool `json:"ssl_option"`
}

func (SslOptionRequestBody) String

func (o SslOptionRequestBody) String() string

type StartFailoverRequest

type StartFailoverRequest struct {
	XLanguage  *StartFailoverRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                         `json:"instance_id"`
}

Request Object

func (StartFailoverRequest) String

func (o StartFailoverRequest) String() string

type StartFailoverRequestXLanguage

type StartFailoverRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (StartFailoverRequestXLanguage) MarshalJSON

func (c StartFailoverRequestXLanguage) MarshalJSON() ([]byte, error)

func (*StartFailoverRequestXLanguage) UnmarshalJSON

func (c *StartFailoverRequestXLanguage) UnmarshalJSON(b []byte) error

type StartFailoverRequestXLanguageEnum

type StartFailoverRequestXLanguageEnum struct {
	ZH_CN StartFailoverRequestXLanguage
	EN_US StartFailoverRequestXLanguage
}

func GetStartFailoverRequestXLanguageEnum

func GetStartFailoverRequestXLanguageEnum() StartFailoverRequestXLanguageEnum

type StartFailoverResponse

type StartFailoverResponse struct {
	// 实例Id
	InstanceId *string `json:"instance_id,omitempty"`
	// 节点Id
	NodeId *string `json:"nodeId,omitempty"`
	// 任务Id
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartFailoverResponse) String

func (o StartFailoverResponse) String() string

type StartInstanceActionRequest

type StartInstanceActionRequest struct {
	XLanguage  *StartInstanceActionRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                               `json:"instance_id"`
	Body       *InstanceActionRequest               `json:"body,omitempty"`
}

Request Object

func (StartInstanceActionRequest) String

type StartInstanceActionRequestXLanguage

type StartInstanceActionRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (StartInstanceActionRequestXLanguage) MarshalJSON

func (c StartInstanceActionRequestXLanguage) MarshalJSON() ([]byte, error)

func (*StartInstanceActionRequestXLanguage) UnmarshalJSON

func (c *StartInstanceActionRequestXLanguage) UnmarshalJSON(b []byte) error

type StartInstanceActionRequestXLanguageEnum

type StartInstanceActionRequestXLanguageEnum struct {
	ZH_CN StartInstanceActionRequestXLanguage
	EN_US StartInstanceActionRequestXLanguage
}

func GetStartInstanceActionRequestXLanguageEnum

func GetStartInstanceActionRequestXLanguageEnum() StartInstanceActionRequestXLanguageEnum

type StartInstanceActionResponse

type StartInstanceActionResponse struct {
	// 任务ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartInstanceActionResponse) String

type Storage

type Storage struct {
	// 磁盘类型名称,可能取值如下: - ULTRAHIGH,表示SSD。 - ULTRAHIGHPRO,表示SSD尊享版,仅支持超高性能型尊享版实例。 - NVMESSD,表示直通SSD,仅支持i3规格实例。
	Name string `json:"name"`
	// 其中key是可用区编号,value是规格所在az的状态,包含以下状态: - normal,在售。 - unsupported,暂不支持该规格。 - sellout,售罄。
	AzStatus map[string]string `json:"az_status"`
}

实例磁盘类型信息。

func (Storage) String

func (o Storage) String() string

type SwitchSslRequest

type SwitchSslRequest struct {
	XLanguage  *SwitchSslRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                     `json:"instance_id"`
	Body       *SslOptionRequestBody      `json:"body,omitempty"`
}

Request Object

func (SwitchSslRequest) String

func (o SwitchSslRequest) String() string

type SwitchSslRequestXLanguage

type SwitchSslRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (SwitchSslRequestXLanguage) MarshalJSON

func (c SwitchSslRequestXLanguage) MarshalJSON() ([]byte, error)

func (*SwitchSslRequestXLanguage) UnmarshalJSON

func (c *SwitchSslRequestXLanguage) UnmarshalJSON(b []byte) error

type SwitchSslRequestXLanguageEnum

type SwitchSslRequestXLanguageEnum struct {
	ZH_CN SwitchSslRequestXLanguage
	EN_US SwitchSslRequestXLanguage
}

func GetSwitchSslRequestXLanguageEnum

func GetSwitchSslRequestXLanguageEnum() SwitchSslRequestXLanguageEnum

type SwitchSslResponse

type SwitchSslResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (SwitchSslResponse) String

func (o SwitchSslResponse) String() string

type TagResponse

type TagResponse struct {
	// 标签键。
	Key string `json:"key"`
	// 标签值。
	Value string `json:"value"`
}

标签信息。

func (TagResponse) String

func (o TagResponse) String() string

type UpdateDataIpRequest

type UpdateDataIpRequest struct {
	XLanguage  *UpdateDataIpRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                        `json:"instance_id"`
	Body       *DataIpRequest                `json:"body,omitempty"`
}

Request Object

func (UpdateDataIpRequest) String

func (o UpdateDataIpRequest) String() string

type UpdateDataIpRequestXLanguage

type UpdateDataIpRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (UpdateDataIpRequestXLanguage) MarshalJSON

func (c UpdateDataIpRequestXLanguage) MarshalJSON() ([]byte, error)

func (*UpdateDataIpRequestXLanguage) UnmarshalJSON

func (c *UpdateDataIpRequestXLanguage) UnmarshalJSON(b []byte) error

type UpdateDataIpRequestXLanguageEnum

type UpdateDataIpRequestXLanguageEnum struct {
	ZH_CN UpdateDataIpRequestXLanguage
	EN_US UpdateDataIpRequestXLanguage
}

func GetUpdateDataIpRequestXLanguageEnum

func GetUpdateDataIpRequestXLanguageEnum() UpdateDataIpRequestXLanguageEnum

type UpdateDataIpResponse

type UpdateDataIpResponse struct {
	// 任务ID
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDataIpResponse) String

func (o UpdateDataIpResponse) String() string

type UpdateDbPortRequest

type UpdateDbPortRequest struct {
	// MySQL端口号范围:大于等于1024,小于等于65535,不包含12017和33071。
	Port int32 `json:"port"`
}

func (UpdateDbPortRequest) String

func (o UpdateDbPortRequest) String() string

type UpdatePortRequest

type UpdatePortRequest struct {
	XLanguage  *UpdatePortRequestXLanguage `json:"X-Language,omitempty"`
	InstanceId string                      `json:"instance_id"`
	Body       *UpdateDbPortRequest        `json:"body,omitempty"`
}

Request Object

func (UpdatePortRequest) String

func (o UpdatePortRequest) String() string

type UpdatePortRequestXLanguage

type UpdatePortRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (UpdatePortRequestXLanguage) MarshalJSON

func (c UpdatePortRequestXLanguage) MarshalJSON() ([]byte, error)

func (*UpdatePortRequestXLanguage) UnmarshalJSON

func (c *UpdatePortRequestXLanguage) UnmarshalJSON(b []byte) error

type UpdatePortRequestXLanguageEnum

type UpdatePortRequestXLanguageEnum struct {
	ZH_CN UpdatePortRequestXLanguage
	EN_US UpdatePortRequestXLanguage
}

func GetUpdatePortRequestXLanguageEnum

func GetUpdatePortRequestXLanguageEnum() UpdatePortRequestXLanguageEnum

type UpdatePortResponse

type UpdatePortResponse struct {
	// 任务ID
	WorkflowId     *string `json:"workflowId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePortResponse) String

func (o UpdatePortResponse) String() string

type UserForCreation

type UserForCreation struct {
	// 数据库用户名称。 数据库帐号名称在1到32个字符之间,由小写字母、数字、中划线、或下划线组成,不能包含其他特殊字符。 - 若数据库版本为MySQL5.6和8.0,帐号长度为1~16个字符。 - 若数据库版本为MySQL5.7,帐号长度为1~32个字符。
	Name string `json:"name"`
	// 数据库帐号密码。  取值范围:  非空,由大小写字母、数字和特殊符号~!@#%^*-_=+?组成,长度8~32个字符,不能和数据库帐号“name”或“name”的逆序相同。  建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
	Password string `json:"password"`
}

func (UserForCreation) String

func (o UserForCreation) String() string

type UserForList

type UserForList struct {
	// 数据库用户名称。
	Name string `json:"name"`
}

数据库用户信息。

func (UserForList) String

func (o UserForList) String() string

type UserWithPrivilege

type UserWithPrivilege struct {
	// 用户名。
	Name string `json:"name"`
	// 是否为只读权限。
	Readonly bool `json:"readonly"`
}

用户及其权限。

func (UserWithPrivilege) String

func (o UserWithPrivilege) String() string

type Volume

type Volume struct {
	// 磁盘类型。 取值范围如下,区分大小写: - COMMON,表示SATA。 - HIGH,表示SAS。 - ULTRAHIGH,表示SSD。 - ULTRAHIGHPRO,表示SSD尊享版,仅支持超高性能型尊享版(需申请权限)。
	Type VolumeType `json:"type"`
	// 磁盘大小,单位为GB。 取值范围:40GB~4000GB,必须为10的整数倍。  部分用户支持40GB~6000GB,如果您想创建存储空间最大为6000GB的数据库实例,或提高扩容上限到10000GB,请联系客服开通。  说明:对于只读实例,该参数无效,磁盘大小,默认和主实例相同。
	Size int32 `json:"size"`
}

func (Volume) String

func (o Volume) String() string

type VolumeType

type VolumeType struct {
	// contains filtered or unexported fields
}

func (VolumeType) MarshalJSON

func (c VolumeType) MarshalJSON() ([]byte, error)

func (*VolumeType) UnmarshalJSON

func (c *VolumeType) UnmarshalJSON(b []byte) error

type VolumeTypeEnum

type VolumeTypeEnum struct {
	ULTRAHIGH    VolumeType
	HIGH         VolumeType
	COMMON       VolumeType
	NVMESSD      VolumeType
	ULTRAHIGHPRO VolumeType
}

func GetVolumeTypeEnum

func GetVolumeTypeEnum() VolumeTypeEnum

Source Files

Jump to

Keyboard shortcuts

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