Documentation ¶
Index ¶
- type ApiVersionResponse
- type ApplyConfigurationRequest
- type ApplyConfigurationRequestBody
- type ApplyConfigurationResponse
- type BackupPolicy
- type BackupStrategyOption
- type BackupStrategyResult
- type BatchTagActionRequest
- type BatchTagActionRequestBody
- type BatchTagActionRequestBodyAction
- type BatchTagActionRequestBodyActionEnum
- type BatchTagActionResponse
- type BatchTagActionTagOption
- type ChargeInfoOption
- type ChargeInfoResult
- type ConfigurationParameterResult
- type CreateConfigurationDatastoreOption
- type CreateConfigurationRequest
- type CreateConfigurationRequestBody
- type CreateConfigurationResponse
- type CreateConfigurationResult
- type CreateInstanceFlavorOption
- type CreateInstanceFlavorResult
- type CreateInstanceRequest
- type CreateInstanceRequestBody
- type CreateInstanceResponse
- type DatastoreOption
- type DatastoreResult
- type DedicatedResourceCapacity
- type DeleteConfigurationRequest
- type DeleteConfigurationResponse
- type DeleteInstanceRequest
- type DeleteInstanceResponse
- type ErrorResponseBody
- type ExpandInstanceNodeRequest
- type ExpandInstanceNodeRequestBody
- type ExpandInstanceNodeResponse
- type InstanceResult
- type InstanceTagResult
- type Links
- type ListApiVersionRequest
- type ListApiVersionResponse
- type ListConfigurationTemplatesRequest
- type ListConfigurationTemplatesResponse
- type ListConfigurationsRequest
- type ListConfigurationsResponse
- type ListConfigurationsResult
- type ListDatastoresRequest
- type ListDatastoresResponse
- type ListDedicatedResourceResult
- type ListDedicatedResourcesRequest
- type ListDedicatedResourcesResponse
- type ListFlavorInfosRequest
- type ListFlavorInfosResponse
- type ListFlavorsRequest
- type ListFlavorsResponse
- type ListFlavorsResult
- type ListInstanceTagsRequest
- type ListInstanceTagsResponse
- type ListInstanceTagsResult
- type ListInstancesBackupStrategyResult
- type ListInstancesByResourceTagsRequest
- type ListInstancesByResourceTagsResponse
- type ListInstancesByTagsRequest
- type ListInstancesByTagsRequestBody
- type ListInstancesByTagsRequestBodyAction
- type ListInstancesByTagsRequestBodyActionEnum
- type ListInstancesByTagsResponse
- type ListInstancesDatastoreResult
- type ListInstancesGroupResult
- type ListInstancesNodeResult
- type ListInstancesRequest
- type ListInstancesResponse
- type ListInstancesResult
- type ListSlowLogsRequest
- type ListSlowLogsResponse
- type MatchOption
- type MatchOptionKey
- type MatchOptionKeyEnum
- type ResetPasswordRequest
- type ResetPasswordRequestBody
- type ResetPasswordResponse
- type ResizeInstanceOption
- type ResizeInstanceRequest
- type ResizeInstanceRequestBody
- type ResizeInstanceResponse
- type ResizeInstanceVolumeRequest
- type ResizeInstanceVolumeRequestBody
- type ResizeInstanceVolumeResponse
- type SetBackupPolicyRequest
- type SetBackupPolicyRequestBody
- type SetBackupPolicyResponse
- type ShowApiVersionRequest
- type ShowApiVersionResponse
- type ShowBackupPolicyRequest
- type ShowBackupPolicyResponse
- type ShowBackupPolicyResult
- type ShowConfigurationDetailRequest
- type ShowConfigurationDetailResponse
- type ShowInstanceConfigurationRequest
- type ShowInstanceConfigurationResponse
- type ShowQuotasRequest
- type ShowQuotasResponse
- type ShowResourcesDetailResponseBody
- type ShowResourcesListResponseBody
- type ShrinkInstanceNodeRequest
- type ShrinkInstanceNodeRequestBody
- type ShrinkInstanceNodeResponse
- type SlowlogResult
- type TagOption
- type UpdateConfigurationRequest
- type UpdateConfigurationRequestBody
- type UpdateConfigurationResponse
- type UpdateInstanceConfigurationRequest
- type UpdateInstanceConfigurationRequestBody
- type UpdateInstanceConfigurationResponse
- type UpdateInstanceNameRequest
- type UpdateInstanceNameRequestBody
- type UpdateInstanceNameResponse
- type UpdateSecurityGroupRequest
- type UpdateSecurityGroupRequestBody
- type UpdateSecurityGroupResponse
- type Volume
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 ¶
func (o ApplyConfigurationRequestBody) String() 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 ¶
func (o ApplyConfigurationResponse) String() 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 ¶
func (o ConfigurationParameterResult) String() string
type CreateConfigurationDatastoreOption ¶
type CreateConfigurationDatastoreOption struct { Type string `json:"type"` Version string `json:"version"` Mode *string `json:"mode,omitempty"` }
数据库对象。
func (CreateConfigurationDatastoreOption) String ¶
func (o CreateConfigurationDatastoreOption) String() string
type CreateConfigurationRequest ¶
type CreateConfigurationRequest struct {
Body *CreateConfigurationRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateConfigurationRequest) String ¶
func (o CreateConfigurationRequest) String() 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 ¶
func (o CreateConfigurationRequestBody) String() string
type CreateConfigurationResponse ¶
type CreateConfigurationResponse struct { Configuration *CreateConfigurationResult `json:"configuration,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateConfigurationResponse) String ¶
func (o CreateConfigurationResponse) String() 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 string `json:"num"` Storage string `json:"storage"` Size string `json:"size"` SpecCode string `json:"spec_code"` }
实例规格详情。
func (CreateInstanceFlavorOption) String ¶
func (o CreateInstanceFlavorOption) String() string
type CreateInstanceFlavorResult ¶
type CreateInstanceFlavorResult struct { Num *string `json:"num,omitempty"` Storage *string `json:"storage,omitempty"` Size *string `json:"size,omitempty"` SpecCode *string `json:"spec_code,omitempty"` }
实例规格详情,与请求参数相同。
func (CreateInstanceFlavorResult) String ¶
func (o CreateInstanceFlavorResult) String() 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 ¶
func (o DeleteConfigurationRequest) String() string
type DeleteConfigurationResponse ¶
type DeleteConfigurationResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteConfigurationResponse) String ¶
func (o DeleteConfigurationResponse) String() 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 ¶
func (o ExpandInstanceNodeRequestBody) String() 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 ¶
func (o ExpandInstanceNodeResponse) String() 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 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
func (o ListConfigurationTemplatesRequest) String() string
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
func (o ListConfigurationTemplatesResponse) String() string
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 ¶
func (o ListConfigurationsResponse) String() 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
func (o ListDedicatedResourceResult) String() string
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
func (o ListDedicatedResourcesRequest) String() string
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
func (o ListDedicatedResourcesResponse) String() string
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"` 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 ¶
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 ¶
func (o ListInstancesBackupStrategyResult) String() 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
func (o ListInstancesByResourceTagsRequest) String() string
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
func (o ListInstancesByResourceTagsResponse) String() string
type ListInstancesByTagsRequest ¶
type ListInstancesByTagsRequest struct {
Body *ListInstancesByTagsRequestBody `json:"body,omitempty"`
}
Request Object
func (ListInstancesByTagsRequest) String ¶
func (o ListInstancesByTagsRequest) String() 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 ¶
func (o ListInstancesByTagsRequestBody) String() 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 ¶
func (o ListInstancesByTagsResponse) String() string
type ListInstancesDatastoreResult ¶
type ListInstancesDatastoreResult struct { Type string `json:"type"` Version string `json:"version"` }
数据库信息。
func (ListInstancesDatastoreResult) String ¶
func (o ListInstancesDatastoreResult) String() 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"` LbIpAddress *string `json:"lb_ip_address,omitempty"` }
实例信息。
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 ¶
func (o ResizeInstanceVolumeRequest) String() string
type ResizeInstanceVolumeRequestBody ¶
type ResizeInstanceVolumeRequestBody struct { Size int32 `json:"size"` IsAutoPay *string `json:"is_auto_pay,omitempty"` }
func (ResizeInstanceVolumeRequestBody) String ¶
func (o ResizeInstanceVolumeRequestBody) String() 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 ¶
func (o ResizeInstanceVolumeResponse) String() 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 ¶
func (o SetBackupPolicyRequestBody) String() 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 ¶
func (o ShowConfigurationDetailRequest) String() 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 ¶
func (o ShowConfigurationDetailResponse) String() string
type ShowInstanceConfigurationRequest ¶
type ShowInstanceConfigurationRequest struct {
InstanceId string `json:"instance_id"`
}
Request Object
func (ShowInstanceConfigurationRequest) String ¶
func (o ShowInstanceConfigurationRequest) String() 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 ¶
func (o ShowInstanceConfigurationResponse) String() 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 ¶
func (o ShowResourcesDetailResponseBody) String() string
type ShowResourcesListResponseBody ¶
type ShowResourcesListResponseBody struct {
Resources []ShowResourcesDetailResponseBody `json:"resources"`
}
func (ShowResourcesListResponseBody) String ¶
func (o ShowResourcesListResponseBody) String() 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 ¶
func (o ShrinkInstanceNodeRequestBody) String() string
type ShrinkInstanceNodeResponse ¶
type ShrinkInstanceNodeResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShrinkInstanceNodeResponse) String ¶
func (o ShrinkInstanceNodeResponse) String() 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 UpdateConfigurationRequest ¶
type UpdateConfigurationRequest struct { ConfigId string `json:"config_id"` Body *UpdateConfigurationRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateConfigurationRequest) String ¶
func (o UpdateConfigurationRequest) String() 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 ¶
func (o UpdateConfigurationRequestBody) String() string
type UpdateConfigurationResponse ¶
type UpdateConfigurationResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateConfigurationResponse) String ¶
func (o UpdateConfigurationResponse) String() string
type UpdateInstanceConfigurationRequest ¶
type UpdateInstanceConfigurationRequest struct { InstanceId string `json:"instance_id"` Body *UpdateInstanceConfigurationRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateInstanceConfigurationRequest) String ¶
func (o UpdateInstanceConfigurationRequest) String() string
type UpdateInstanceConfigurationRequestBody ¶
func (UpdateInstanceConfigurationRequestBody) String ¶
func (o UpdateInstanceConfigurationRequestBody) String() 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 ¶
func (o UpdateInstanceConfigurationResponse) String() 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 ¶
func (o UpdateInstanceNameRequestBody) String() string
type UpdateInstanceNameResponse ¶
type UpdateInstanceNameResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateInstanceNameResponse) String ¶
func (o UpdateInstanceNameResponse) String() string
type UpdateSecurityGroupRequest ¶
type UpdateSecurityGroupRequest struct { InstanceId string `json:"instance_id"` Body *UpdateSecurityGroupRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateSecurityGroupRequest) String ¶
func (o UpdateSecurityGroupRequest) String() string
type UpdateSecurityGroupRequestBody ¶
type UpdateSecurityGroupRequestBody struct {
SecurityGroupId string `json:"security_group_id"`
}
func (UpdateSecurityGroupRequestBody) String ¶
func (o UpdateSecurityGroupRequestBody) String() string
type UpdateSecurityGroupResponse ¶
type UpdateSecurityGroupResponse struct { JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateSecurityGroupResponse) String ¶
func (o UpdateSecurityGroupResponse) String() string
Source Files ¶
- model_api_version_response.go
- model_apply_configuration_request.go
- model_apply_configuration_request_body.go
- model_apply_configuration_response.go
- model_backup_policy.go
- model_backup_strategy_option.go
- model_backup_strategy_result.go
- model_batch_tag_action_request.go
- model_batch_tag_action_request_body.go
- model_batch_tag_action_response.go
- model_batch_tag_action_tag_option.go
- model_charge_info_option.go
- model_charge_info_result.go
- model_configuration_parameter_result.go
- model_create_configuration_datastore_option.go
- model_create_configuration_request.go
- model_create_configuration_request_body.go
- model_create_configuration_response.go
- model_create_configuration_result.go
- model_create_instance_flavor_option.go
- model_create_instance_flavor_result.go
- model_create_instance_request.go
- model_create_instance_request_body.go
- model_create_instance_response.go
- model_datastore_option.go
- model_datastore_result.go
- model_dedicated_resource_capacity.go
- model_delete_configuration_request.go
- model_delete_configuration_response.go
- model_delete_instance_request.go
- model_delete_instance_response.go
- model_error_response_body.go
- model_expand_instance_node_request.go
- model_expand_instance_node_request_body.go
- model_expand_instance_node_response.go
- model_instance_result.go
- model_instance_tag_result.go
- model_links.go
- model_list_api_version_request.go
- model_list_api_version_response.go
- model_list_configuration_templates_request.go
- model_list_configuration_templates_response.go
- model_list_configurations_request.go
- model_list_configurations_response.go
- model_list_configurations_result.go
- model_list_datastores_request.go
- model_list_datastores_response.go
- model_list_dedicated_resource_result.go
- model_list_dedicated_resources_request.go
- model_list_dedicated_resources_response.go
- model_list_flavor_infos_request.go
- model_list_flavor_infos_response.go
- model_list_flavors_request.go
- model_list_flavors_response.go
- model_list_flavors_result.go
- model_list_instance_tags_request.go
- model_list_instance_tags_response.go
- model_list_instance_tags_result.go
- model_list_instances_backup_strategy_result.go
- model_list_instances_by_resource_tags_request.go
- model_list_instances_by_resource_tags_response.go
- model_list_instances_by_tags_request.go
- model_list_instances_by_tags_request_body.go
- model_list_instances_by_tags_response.go
- model_list_instances_datastore_result.go
- model_list_instances_group_result.go
- model_list_instances_node_result.go
- model_list_instances_request.go
- model_list_instances_response.go
- model_list_instances_result.go
- model_list_slow_logs_request.go
- model_list_slow_logs_response.go
- model_match_option.go
- model_reset_password_request.go
- model_reset_password_request_body.go
- model_reset_password_response.go
- model_resize_instance_option.go
- model_resize_instance_request.go
- model_resize_instance_request_body.go
- model_resize_instance_response.go
- model_resize_instance_volume_request.go
- model_resize_instance_volume_request_body.go
- model_resize_instance_volume_response.go
- model_set_backup_policy_request.go
- model_set_backup_policy_request_body.go
- model_set_backup_policy_response.go
- model_show_api_version_request.go
- model_show_api_version_response.go
- model_show_backup_policy_request.go
- model_show_backup_policy_response.go
- model_show_backup_policy_result.go
- model_show_configuration_detail_request.go
- model_show_configuration_detail_response.go
- model_show_instance_configuration_request.go
- model_show_instance_configuration_response.go
- model_show_quotas_request.go
- model_show_quotas_response.go
- model_show_resources_detail_response_body.go
- model_show_resources_list_response_body.go
- model_shrink_instance_node_request.go
- model_shrink_instance_node_request_body.go
- model_shrink_instance_node_response.go
- model_slowlog_result.go
- model_tag_option.go
- model_update_configuration_request.go
- model_update_configuration_request_body.go
- model_update_configuration_response.go
- model_update_instance_configuration_request.go
- model_update_instance_configuration_request_body.go
- model_update_instance_configuration_response.go
- model_update_instance_name_request.go
- model_update_instance_name_request_body.go
- model_update_instance_name_response.go
- model_update_security_group_request.go
- model_update_security_group_request_body.go
- model_update_security_group_response.go
- model_volume.go