model

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiVersionResponse

type ApiVersionResponse struct {
	Id string `json:"id"`

	Links []Links `json:"links"`

	Status string `json:"status"`

	Version string `json:"version"`

	MinVersion string `json:"min_version"`

	Updated string `json:"updated"`
}

API版本详细信息列表。

func (ApiVersionResponse) String

func (o ApiVersionResponse) String() string

type ApplyConfigurationRequest

type ApplyConfigurationRequest struct {
	ConfigId string `json:"config_id"`

	Body *ApplyConfigurationRequestBody `json:"body,omitempty"`
}

Request Object

func (ApplyConfigurationRequest) String

func (o ApplyConfigurationRequest) String() string

type ApplyConfigurationRequestBody

type ApplyConfigurationRequestBody struct {
	InstanceIds []string `json:"instance_ids"`
}

func (ApplyConfigurationRequestBody) String

type ApplyConfigurationResponse

type ApplyConfigurationResponse struct {
	JobId *string `json:"job_id,omitempty"`

	Success        *bool `json:"success,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ApplyConfigurationResponse) String

type BackupPolicy

type BackupPolicy struct {
	KeepDays int32 `json:"keep_days"`

	StartTime *string `json:"start_time,omitempty"`

	Period *string `json:"period,omitempty"`
}

备份策略对象,包括备份保留的天数和备份开始时间。

func (BackupPolicy) String

func (o BackupPolicy) String() string

type BackupStrategyOption

type BackupStrategyOption struct {
	StartTime string `json:"start_time"`

	KeepDays *string `json:"keep_days,omitempty"`
}

高级备份策略。

func (BackupStrategyOption) String

func (o BackupStrategyOption) String() string

type BackupStrategyResult

type BackupStrategyResult struct {
	StartTime *string `json:"start_time,omitempty"`

	KeepDays *string `json:"keep_days,omitempty"`
}

高级备份策略,与请求参数相同。

func (BackupStrategyResult) String

func (o BackupStrategyResult) String() string

type BatchTagActionRequest

type BatchTagActionRequest struct {
	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 {
	Action BatchTagActionRequestBodyAction `json:"action"`

	Tags []BatchTagActionTagOption `json:"tags"`
}

func (BatchTagActionRequestBody) String

func (o BatchTagActionRequestBody) String() string

type BatchTagActionRequestBodyAction

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

func (BatchTagActionRequestBodyAction) MarshalJSON

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

func (*BatchTagActionRequestBodyAction) UnmarshalJSON

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

type BatchTagActionRequestBodyActionEnum

type BatchTagActionRequestBodyActionEnum struct {
	CREATE BatchTagActionRequestBodyAction
	DELETE BatchTagActionRequestBodyAction
}

func GetBatchTagActionRequestBodyActionEnum

func GetBatchTagActionRequestBodyActionEnum() BatchTagActionRequestBodyActionEnum

type BatchTagActionResponse

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

Response Object

func (BatchTagActionResponse) String

func (o BatchTagActionResponse) String() string

type BatchTagActionTagOption

type BatchTagActionTagOption struct {
	Key string `json:"key"`

	Value *string `json:"value,omitempty"`
}

func (BatchTagActionTagOption) String

func (o BatchTagActionTagOption) String() string

type ChargeInfoOption

type ChargeInfoOption struct {
	ChargeMode string `json:"charge_mode"`

	PeriodType *string `json:"period_type,omitempty"`

	PeriodNum *string `json:"period_num,omitempty"`

	IsAutoRenew *string `json:"is_auto_renew,omitempty"`

	IsAutoPay *string `json:"is_auto_pay,omitempty"`
}

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

func (ChargeInfoOption) String

func (o ChargeInfoOption) String() string

type ChargeInfoResult

type ChargeInfoResult struct {
	ChargeMode *string `json:"charge_mode,omitempty"`

	PeriodType *string `json:"period_type,omitempty"`

	PeriodNum *string `json:"period_num,omitempty"`

	IsAutoRenew *string `json:"is_auto_renew,omitempty"`

	IsAutoPay *string `json:"is_auto_pay,omitempty"`
}

付费方式信息,与请求参数相同。

func (ChargeInfoResult) String

func (o ChargeInfoResult) String() string

type ConfigurationParameterResult

type ConfigurationParameterResult struct {
	Name string `json:"name"`

	Value string `json:"value"`

	RestartRequired bool `json:"restart_required"`

	Readonly bool `json:"readonly"`

	ValueRange string `json:"value_range"`

	Type string `json:"type"`

	Description string `json:"description"`
}

func (ConfigurationParameterResult) String

type CreateConfigurationDatastoreOption

type CreateConfigurationDatastoreOption struct {
	Type string `json:"type"`

	Version string `json:"version"`

	Mode *string `json:"mode,omitempty"`
}

数据库对象。

func (CreateConfigurationDatastoreOption) String

type CreateConfigurationRequest

type CreateConfigurationRequest struct {
	Body *CreateConfigurationRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateConfigurationRequest) String

type CreateConfigurationRequestBody

type CreateConfigurationRequestBody struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	Datastore *CreateConfigurationDatastoreOption `json:"datastore"`

	Values map[string]string `json:"values,omitempty"`
}

func (CreateConfigurationRequestBody) String

type CreateConfigurationResponse

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

Response Object

func (CreateConfigurationResponse) String

type CreateConfigurationResult

type CreateConfigurationResult struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	DatastoreVersionName string `json:"datastore_version_name"`

	DatastoreName string `json:"datastore_name"`

	Created string `json:"created"`

	Updated string `json:"updated"`
}

参数模板信息。

func (CreateConfigurationResult) String

func (o CreateConfigurationResult) String() string

type CreateInstanceFlavorOption

type CreateInstanceFlavorOption struct {
	Num int32 `json:"num"`

	Storage string `json:"storage"`

	Size int32 `json:"size"`

	SpecCode string `json:"spec_code"`
}

实例规格详情。

func (CreateInstanceFlavorOption) String

type CreateInstanceFlavorResult

type CreateInstanceFlavorResult struct {
	Num *int32 `json:"num,omitempty"`

	Storage *string `json:"storage,omitempty"`

	Size *int32 `json:"size,omitempty"`

	SpecCode *string `json:"spec_code,omitempty"`
}

实例规格详情,与请求参数相同。

func (CreateInstanceFlavorResult) String

type CreateInstanceRequest

type CreateInstanceRequest struct {
	Body *CreateInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceRequestBody

type CreateInstanceRequestBody struct {
	Name string `json:"name"`

	Datastore *DatastoreOption `json:"datastore"`

	Region string `json:"region"`

	AvailabilityZone string `json:"availability_zone"`

	VpcId string `json:"vpc_id"`

	SubnetId string `json:"subnet_id"`

	SecurityGroupId string `json:"security_group_id"`

	Password string `json:"password"`

	Mode string `json:"mode"`

	Flavor []CreateInstanceFlavorOption `json:"flavor"`

	ConfigurationId *string `json:"configuration_id,omitempty"`

	BackupStrategy *BackupStrategyOption `json:"backup_strategy,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	DedicatedResourceId *string `json:"dedicated_resource_id,omitempty"`

	SslOption *string `json:"ssl_option,omitempty"`

	ChargeInfo *ChargeInfoOption `json:"charge_info,omitempty"`
}

实例信息。

func (CreateInstanceRequestBody) String

func (o CreateInstanceRequestBody) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Id *string `json:"id,omitempty"`

	Datastore *DatastoreResult `json:"datastore,omitempty"`

	Name *string `json:"name,omitempty"`

	Created *string `json:"created,omitempty"`

	Status *string `json:"status,omitempty"`

	Region *string `json:"region,omitempty"`

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	VpcId *string `json:"vpc_id,omitempty"`

	SubnetId *string `json:"subnet_id,omitempty"`

	SecurityGroupId *string `json:"security_group_id,omitempty"`

	Mode *string `json:"mode,omitempty"`

	Flavor *[]CreateInstanceFlavorResult `json:"flavor,omitempty"`

	BackupStrategy *BackupStrategyResult `json:"backup_strategy,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	DedicatedResourceId *string `json:"dedicated_resource_id,omitempty"`

	SslOption *string `json:"ssl_option,omitempty"`

	JobId *string `json:"job_id,omitempty"`

	OrderId *string `json:"order_id,omitempty"`

	ChargeInfo     *ChargeInfoResult `json:"charge_info,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type DatastoreOption

type DatastoreOption struct {
	Type string `json:"type"`

	Version string `json:"version"`

	StorageEngine string `json:"storage_engine"`
}

func (DatastoreOption) String

func (o DatastoreOption) String() string

type DatastoreResult

type DatastoreResult struct {
	Type *string `json:"type,omitempty"`

	Version *string `json:"version,omitempty"`

	StorageEngine *string `json:"storage_engine,omitempty"`
}

数据库信息,与请求参数相同。

func (DatastoreResult) String

func (o DatastoreResult) String() string

type DedicatedResourceCapacity added in v0.0.57

type DedicatedResourceCapacity struct {
	Vcpus int32 `json:"vcpus"`

	Ram int32 `json:"ram"`

	Volume int32 `json:"volume"`
}

专属资源信息容量信息。

func (DedicatedResourceCapacity) String added in v0.0.57

func (o DedicatedResourceCapacity) String() string

type DeleteConfigurationRequest

type DeleteConfigurationRequest struct {
	ConfigId string `json:"config_id"`
}

Request Object

func (DeleteConfigurationRequest) String

type DeleteConfigurationResponse

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

Response Object

func (DeleteConfigurationResponse) String

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type ErrorResponseBody

type ErrorResponseBody struct {
	ErrorCode string `json:"error_code"`

	ErrorMsg string `json:"error_msg"`
}

func (ErrorResponseBody) String

func (o ErrorResponseBody) String() string

type ExpandInstanceNodeRequest

type ExpandInstanceNodeRequest struct {
	InstanceId string `json:"instance_id"`

	Body *ExpandInstanceNodeRequestBody `json:"body,omitempty"`
}

Request Object

func (ExpandInstanceNodeRequest) String

func (o ExpandInstanceNodeRequest) String() string

type ExpandInstanceNodeRequestBody

type ExpandInstanceNodeRequestBody struct {
	Num int32 `json:"num"`

	IsAutoPay *string `json:"is_auto_pay,omitempty"`
}

func (ExpandInstanceNodeRequestBody) String

type ExpandInstanceNodeResponse

type ExpandInstanceNodeResponse struct {
	JobId *string `json:"job_id,omitempty"`

	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ExpandInstanceNodeResponse) String

type InstanceResult

type InstanceResult struct {
	InstanceId string `json:"instance_id"`

	InstanceName string `json:"instance_name"`

	Tags []InstanceTagResult `json:"tags"`
}

func (InstanceResult) String

func (o InstanceResult) String() string

type InstanceTagResult

type InstanceTagResult struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

标签列表。

func (InstanceTagResult) String

func (o InstanceTagResult) String() string
type Links struct {
	Href *string `json:"href,omitempty"`

	Rel *string `json:"rel,omitempty"`
}

对应API的链接信息,v3版本该字段为[]。

func (Links) String

func (o Links) String() string

type ListApiVersionRequest

type ListApiVersionRequest struct {
}

Request Object

func (ListApiVersionRequest) String

func (o ListApiVersionRequest) String() string

type ListApiVersionResponse

type ListApiVersionResponse struct {
	Versions       *[]ApiVersionResponse `json:"versions,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ListApiVersionResponse) String

func (o ListApiVersionResponse) String() string

type ListConfigurationTemplatesRequest added in v0.0.57

type ListConfigurationTemplatesRequest struct {
	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListConfigurationTemplatesRequest) String added in v0.0.57

type ListConfigurationTemplatesResponse added in v0.0.57

type ListConfigurationTemplatesResponse struct {
	Count *int32 `json:"count,omitempty"`

	Configurations *[]ListConfigurationsResult `json:"configurations,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

Response Object

func (ListConfigurationTemplatesResponse) String added in v0.0.57

type ListConfigurationsRequest

type ListConfigurationsRequest struct {
}

Request Object

func (ListConfigurationsRequest) String

func (o ListConfigurationsRequest) String() string

type ListConfigurationsResponse

type ListConfigurationsResponse struct {
	Count *int32 `json:"count,omitempty"`

	Configurations *[]ListConfigurationsResult `json:"configurations,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

Response Object

func (ListConfigurationsResponse) String

type ListConfigurationsResult

type ListConfigurationsResult struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	DatastoreVersionName string `json:"datastore_version_name"`

	DatastoreName string `json:"datastore_name"`

	Created string `json:"created"`

	Updated string `json:"updated"`

	UserDefined bool `json:"user_defined"`
}

参数模板信息。

func (ListConfigurationsResult) String

func (o ListConfigurationsResult) String() string

type ListDatastoresRequest

type ListDatastoresRequest struct {
	DatastoreName string `json:"datastore_name"`
}

Request Object

func (ListDatastoresRequest) String

func (o ListDatastoresRequest) String() string

type ListDatastoresResponse

type ListDatastoresResponse struct {
	Versions       *[]string `json:"versions,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListDatastoresResponse) String

func (o ListDatastoresResponse) String() string

type ListDedicatedResourceResult added in v0.0.57

type ListDedicatedResourceResult struct {
	Id string `json:"id"`

	ResourceName string `json:"resource_name"`

	EngineName string `json:"engine_name"`

	AvailabilityZone string `json:"availability_zone"`

	Architecture string `json:"architecture"`

	Capacity *DedicatedResourceCapacity `json:"capacity"`

	Status string `json:"status"`
}

专属资源信息列表。

func (ListDedicatedResourceResult) String added in v0.0.57

type ListDedicatedResourcesRequest added in v0.0.57

type ListDedicatedResourcesRequest struct {
	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListDedicatedResourcesRequest) String added in v0.0.57

type ListDedicatedResourcesResponse added in v0.0.57

type ListDedicatedResourcesResponse struct {
	TotalCount *int32 `json:"total_count,omitempty"`

	Resources      *[]ListDedicatedResourceResult `json:"resources,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

Response Object

func (ListDedicatedResourcesResponse) String added in v0.0.57

type ListFlavorInfosRequest added in v0.0.57

type ListFlavorInfosRequest struct {
	EngineName *string `json:"engine_name,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListFlavorInfosRequest) String added in v0.0.57

func (o ListFlavorInfosRequest) String() string

type ListFlavorInfosResponse added in v0.0.57

type ListFlavorInfosResponse struct {
	TotalCount *int32 `json:"total_count,omitempty"`

	Flavors        *[]ListFlavorsResult `json:"flavors,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListFlavorInfosResponse) String added in v0.0.57

func (o ListFlavorInfosResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {
	Region *string `json:"region,omitempty"`

	EngineName *string `json:"engine_name,omitempty"`
}

Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

type ListFlavorsResponse struct {
	TotalCount *int32 `json:"total_count,omitempty"`

	Flavors        *[]ListFlavorsResult `json:"flavors,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListFlavorsResult

type ListFlavorsResult struct {
	EngineName string `json:"engine_name"`

	EngineVersion string `json:"engine_version"`

	Vcpus string `json:"vcpus"`

	Ram string `json:"ram"`

	SpecCode string `json:"spec_code"`

	AvailabilityZone []string `json:"availability_zone"`

	AzStatus *interface{} `json:"az_status"`
}

实例规格信息列表。

func (ListFlavorsResult) String

func (o ListFlavorsResult) String() string

type ListInstanceTagsRequest

type ListInstanceTagsRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (ListInstanceTagsRequest) String

func (o ListInstanceTagsRequest) String() string

type ListInstanceTagsResponse

type ListInstanceTagsResponse struct {
	Tags           *[]ListInstanceTagsResult `json:"tags,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListInstanceTagsResponse) String

func (o ListInstanceTagsResponse) String() string

type ListInstanceTagsResult

type ListInstanceTagsResult struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

func (ListInstanceTagsResult) String

func (o ListInstanceTagsResult) String() string

type ListInstancesBackupStrategyResult

type ListInstancesBackupStrategyResult struct {
	StartTime string `json:"start_time"`

	KeepDays int32 `json:"keep_days"`
}

自动备份策略。

func (ListInstancesBackupStrategyResult) String

type ListInstancesByResourceTagsRequest added in v0.0.57

type ListInstancesByResourceTagsRequest struct {
	Body *ListInstancesByTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (ListInstancesByResourceTagsRequest) String added in v0.0.57

type ListInstancesByResourceTagsResponse added in v0.0.57

type ListInstancesByResourceTagsResponse struct {
	Instances *[]InstanceResult `json:"instances,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListInstancesByResourceTagsResponse) String added in v0.0.57

type ListInstancesByTagsRequest

type ListInstancesByTagsRequest struct {
	Body *ListInstancesByTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (ListInstancesByTagsRequest) String

type ListInstancesByTagsRequestBody

type ListInstancesByTagsRequestBody struct {
	Offset *string `json:"offset,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Action ListInstancesByTagsRequestBodyAction `json:"action"`

	Matches *[]MatchOption `json:"matches,omitempty"`

	Tags *[]TagOption `json:"tags,omitempty"`
}

func (ListInstancesByTagsRequestBody) String

type ListInstancesByTagsRequestBodyAction

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

func (ListInstancesByTagsRequestBodyAction) MarshalJSON

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

func (*ListInstancesByTagsRequestBodyAction) UnmarshalJSON

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

type ListInstancesByTagsRequestBodyActionEnum

type ListInstancesByTagsRequestBodyActionEnum struct {
	FILTER ListInstancesByTagsRequestBodyAction
	COUNT  ListInstancesByTagsRequestBodyAction
}

func GetListInstancesByTagsRequestBodyActionEnum

func GetListInstancesByTagsRequestBodyActionEnum() ListInstancesByTagsRequestBodyActionEnum

type ListInstancesByTagsResponse

type ListInstancesByTagsResponse struct {
	Instances *[]InstanceResult `json:"instances,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListInstancesByTagsResponse) String

type ListInstancesDatastoreResult

type ListInstancesDatastoreResult struct {
	Type string `json:"type"`

	Version string `json:"version"`
}

数据库信息。

func (ListInstancesDatastoreResult) String

type ListInstancesGroupResult

type ListInstancesGroupResult struct {
	Id string `json:"id"`

	Status string `json:"status"`

	Volume *Volume `json:"volume"`

	Nodes []ListInstancesNodeResult `json:"nodes"`
}

实例组信息。

func (ListInstancesGroupResult) String

func (o ListInstancesGroupResult) String() string

type ListInstancesNodeResult

type ListInstancesNodeResult struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Status string `json:"status"`

	Role string `json:"role"`

	PrivateIp string `json:"private_ip"`

	PublicIp string `json:"public_ip"`

	SpecCode string `json:"spec_code"`

	AvailabilityZone string `json:"availability_zone"`

	SupportReduce bool `json:"support_reduce"`
}

实例节点信息。

func (ListInstancesNodeResult) String

func (o ListInstancesNodeResult) String() string

type ListInstancesRequest

type ListInstancesRequest struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Mode *string `json:"mode,omitempty"`

	DatastoreType *string `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"`
}

Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {
	Instances *[]ListInstancesResult `json:"instances,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListInstancesResult

type ListInstancesResult struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Status string `json:"status"`

	Port int32 `json:"port"`

	Mode string `json:"mode"`

	Region string `json:"region"`

	Datastore *ListInstancesDatastoreResult `json:"datastore"`

	Engine string `json:"engine"`

	Created string `json:"created"`

	Updated string `json:"updated"`

	DbUserName string `json:"db_user_name"`

	VpcId string `json:"vpc_id"`

	SubnetId string `json:"subnet_id"`

	SecurityGroupId string `json:"security_group_id"`

	BackupStrategy *ListInstancesBackupStrategyResult `json:"backup_strategy"`

	PayMode string `json:"pay_mode"`

	MaintenanceWindow string `json:"maintenance_window"`

	Groups []ListInstancesGroupResult `json:"groups"`

	EnterpriseProjectId string `json:"enterprise_project_id"`

	DedicatedResourceId *string `json:"dedicated_resource_id,omitempty"`

	TimeZone string `json:"time_zone"`

	Actions []string `json:"actions"`
}

实例信息。

func (ListInstancesResult) String

func (o ListInstancesResult) String() string

type ListSlowLogsRequest

type ListSlowLogsRequest struct {
	InstanceId string `json:"instance_id"`

	StartDate string `json:"start_date"`

	EndDate string `json:"end_date"`

	NodeId *string `json:"node_id,omitempty"`

	Type *string `json:"type,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListSlowLogsRequest) String

func (o ListSlowLogsRequest) String() string

type ListSlowLogsResponse

type ListSlowLogsResponse struct {
	SlowLogList *[]SlowlogResult `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 MatchOption

type MatchOption struct {
	Key MatchOptionKey `json:"key"`

	Value string `json:"value"`
}

func (MatchOption) String

func (o MatchOption) String() string

type MatchOptionKey

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

func (MatchOptionKey) MarshalJSON

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

func (*MatchOptionKey) UnmarshalJSON

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

type MatchOptionKeyEnum

type MatchOptionKeyEnum struct {
	INSTANCE_NAME MatchOptionKey
	INSTANCE_ID   MatchOptionKey
}

func GetMatchOptionKeyEnum

func GetMatchOptionKeyEnum() MatchOptionKeyEnum

type ResetPasswordRequest

type ResetPasswordRequest struct {
	InstanceId string `json:"instance_id"`

	Body *ResetPasswordRequestBody `json:"body,omitempty"`
}

Request Object

func (ResetPasswordRequest) String

func (o ResetPasswordRequest) String() string

type ResetPasswordRequestBody

type ResetPasswordRequestBody struct {
	Password string `json:"password"`
}

func (ResetPasswordRequestBody) String

func (o ResetPasswordRequestBody) String() string

type ResetPasswordResponse

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

Response Object

func (ResetPasswordResponse) String

func (o ResetPasswordResponse) String() string

type ResizeInstanceOption

type ResizeInstanceOption struct {
	TargetSpecCode string `json:"target_spec_code"`
}

func (ResizeInstanceOption) String

func (o ResizeInstanceOption) String() string

type ResizeInstanceRequest

type ResizeInstanceRequest struct {
	InstanceId string `json:"instance_id"`

	Body *ResizeInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (ResizeInstanceRequest) String

func (o ResizeInstanceRequest) String() string

type ResizeInstanceRequestBody

type ResizeInstanceRequestBody struct {
	Resize *ResizeInstanceOption `json:"resize"`

	IsAutoPay *string `json:"is_auto_pay,omitempty"`
}

func (ResizeInstanceRequestBody) String

func (o ResizeInstanceRequestBody) String() string

type ResizeInstanceResponse

type ResizeInstanceResponse struct {
	JobId *string `json:"job_id,omitempty"`

	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ResizeInstanceResponse) String

func (o ResizeInstanceResponse) String() string

type ResizeInstanceVolumeRequest

type ResizeInstanceVolumeRequest struct {
	InstanceId string `json:"instance_id"`

	Body *ResizeInstanceVolumeRequestBody `json:"body,omitempty"`
}

Request Object

func (ResizeInstanceVolumeRequest) String

type ResizeInstanceVolumeRequestBody

type ResizeInstanceVolumeRequestBody struct {
	Size int32 `json:"size"`

	IsAutoPay *string `json:"is_auto_pay,omitempty"`
}

func (ResizeInstanceVolumeRequestBody) String

type ResizeInstanceVolumeResponse

type ResizeInstanceVolumeResponse struct {
	JobId *string `json:"job_id,omitempty"`

	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ResizeInstanceVolumeResponse) String

type SetBackupPolicyRequest

type SetBackupPolicyRequest struct {
	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"`
}

func (SetBackupPolicyRequestBody) String

type SetBackupPolicyResponse

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

Response Object

func (SetBackupPolicyResponse) String

func (o SetBackupPolicyResponse) String() string

type ShowApiVersionRequest

type ShowApiVersionRequest struct {
	Version string `json:"version"`
}

Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *ApiVersionResponse `json:"version,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type ShowBackupPolicyRequest

type ShowBackupPolicyRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (ShowBackupPolicyRequest) String

func (o ShowBackupPolicyRequest) String() string

type ShowBackupPolicyResponse

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

Response Object

func (ShowBackupPolicyResponse) String

func (o ShowBackupPolicyResponse) String() string

type ShowBackupPolicyResult

type ShowBackupPolicyResult struct {
	KeepDays int32 `json:"keep_days"`

	StartTime *string `json:"start_time,omitempty"`

	Period *string `json:"period,omitempty"`
}

备份策略对象,包括备份保留的天数和备份开始时间。

func (ShowBackupPolicyResult) String

func (o ShowBackupPolicyResult) String() string

type ShowConfigurationDetailRequest

type ShowConfigurationDetailRequest struct {
	ConfigId string `json:"config_id"`
}

Request Object

func (ShowConfigurationDetailRequest) String

type ShowConfigurationDetailResponse

type ShowConfigurationDetailResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	DatastoreVersionName *string `json:"datastore_version_name,omitempty"`

	DatastoreName *string `json:"datastore_name,omitempty"`

	Created *string `json:"created,omitempty"`

	Updated *string `json:"updated,omitempty"`

	ConfigurationParameters *[]ConfigurationParameterResult `json:"configuration_parameters,omitempty"`
	HttpStatusCode          int                             `json:"-"`
}

Response Object

func (ShowConfigurationDetailResponse) String

type ShowInstanceConfigurationRequest

type ShowInstanceConfigurationRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (ShowInstanceConfigurationRequest) String

type ShowInstanceConfigurationResponse

type ShowInstanceConfigurationResponse struct {
	DatastoreVersionName *string `json:"datastore_version_name,omitempty"`

	DatastoreName *string `json:"datastore_name,omitempty"`

	Created *string `json:"created,omitempty"`

	Updated *string `json:"updated,omitempty"`

	ConfigurationParameters *[]ConfigurationParameterResult `json:"configuration_parameters,omitempty"`
	HttpStatusCode          int                             `json:"-"`
}

Response Object

func (ShowInstanceConfigurationResponse) String

type ShowQuotasRequest

type ShowQuotasRequest struct {
}

Request Object

func (ShowQuotasRequest) String

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse

type ShowQuotasResponse struct {
	Quotas         *ShowResourcesListResponseBody `json:"quotas,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

Response Object

func (ShowQuotasResponse) String

func (o ShowQuotasResponse) String() string

type ShowResourcesDetailResponseBody

type ShowResourcesDetailResponseBody struct {
	Type string `json:"type"`

	Quota int32 `json:"quota"`

	Used int32 `json:"used"`
}

func (ShowResourcesDetailResponseBody) String

type ShowResourcesListResponseBody

type ShowResourcesListResponseBody struct {
	Resources []ShowResourcesDetailResponseBody `json:"resources"`
}

func (ShowResourcesListResponseBody) String

type ShrinkInstanceNodeRequest

type ShrinkInstanceNodeRequest struct {
	InstanceId string `json:"instance_id"`

	Body *ShrinkInstanceNodeRequestBody `json:"body,omitempty"`
}

Request Object

func (ShrinkInstanceNodeRequest) String

func (o ShrinkInstanceNodeRequest) String() string

type ShrinkInstanceNodeRequestBody

type ShrinkInstanceNodeRequestBody struct {
	Num *int32 `json:"num,omitempty"`

	NodeList *[]string `json:"node_list,omitempty"`
}

func (ShrinkInstanceNodeRequestBody) String

type ShrinkInstanceNodeResponse

type ShrinkInstanceNodeResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShrinkInstanceNodeResponse) String

type SlowlogResult

type SlowlogResult struct {
	Time string `json:"time"`

	Database string `json:"database"`

	QuerySample string `json:"query_sample"`

	Type string `json:"type"`

	StartTime string `json:"start_time"`
}

func (SlowlogResult) String

func (o SlowlogResult) String() string

type TagOption

type TagOption struct {
	Key string `json:"key"`

	Values []string `json:"values"`
}

func (TagOption) String

func (o TagOption) String() string

type UpdateConfigurationRequest

type UpdateConfigurationRequest struct {
	ConfigId string `json:"config_id"`

	Body *UpdateConfigurationRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateConfigurationRequest) String

type UpdateConfigurationRequestBody

type UpdateConfigurationRequestBody struct {
	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	Values map[string]string `json:"values,omitempty"`
}

func (UpdateConfigurationRequestBody) String

type UpdateConfigurationResponse

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

Response Object

func (UpdateConfigurationResponse) String

type UpdateInstanceConfigurationRequest

type UpdateInstanceConfigurationRequest struct {
	InstanceId string `json:"instance_id"`

	Body *UpdateInstanceConfigurationRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateInstanceConfigurationRequest) String

type UpdateInstanceConfigurationRequestBody

type UpdateInstanceConfigurationRequestBody struct {
	Values map[string]string `json:"values"`
}

func (UpdateInstanceConfigurationRequestBody) String

type UpdateInstanceConfigurationResponse

type UpdateInstanceConfigurationResponse struct {
	JobId *string `json:"job_id,omitempty"`

	RestartRequired *bool `json:"restart_required,omitempty"`
	HttpStatusCode  int   `json:"-"`
}

Response Object

func (UpdateInstanceConfigurationResponse) String

type UpdateInstanceNameRequest

type UpdateInstanceNameRequest struct {
	InstanceId string `json:"instance_id"`

	Body *UpdateInstanceNameRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateInstanceNameRequest) String

func (o UpdateInstanceNameRequest) String() string

type UpdateInstanceNameRequestBody

type UpdateInstanceNameRequestBody struct {
	Name string `json:"name"`
}

func (UpdateInstanceNameRequestBody) String

type UpdateInstanceNameResponse

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

Response Object

func (UpdateInstanceNameResponse) String

type UpdateSecurityGroupRequest

type UpdateSecurityGroupRequest struct {
	InstanceId string `json:"instance_id"`

	Body *UpdateSecurityGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateSecurityGroupRequest) String

type UpdateSecurityGroupRequestBody

type UpdateSecurityGroupRequestBody struct {
	SecurityGroupId string `json:"security_group_id"`
}

func (UpdateSecurityGroupRequestBody) String

type UpdateSecurityGroupResponse

type UpdateSecurityGroupResponse struct {
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSecurityGroupResponse) String

type Volume

type Volume struct {
	Size string `json:"size"`

	Used string `json:"used"`
}

volume信息。

func (Volume) String

func (o Volume) String() string

Source Files

Jump to

Keyboard shortcuts

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