model

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Id string `json:"id"`
}

func (Cluster) String

func (o Cluster) String() string

type ClusterDetail

type ClusterDetail struct {
	ActionProgress map[string]string `json:"action_progress"`

	PublicIp *PublicIp `json:"public_ip"`

	NumberOfNode int32 `json:"number_of_node"`

	RecentEvent int32 `json:"recent_event"`

	VpcId string `json:"vpc_id"`

	UserName string `json:"user_name"`

	SecurityGroupId string `json:"security_group_id"`

	PrivateIp []string `json:"private_ip"`

	ParameterGroup *ParameterGroup `json:"parameter_group,omitempty"`

	NodeType string `json:"node_type"`

	PublicEndpoints []PublicEndpoints `json:"public_endpoints"`

	Id string `json:"id"`

	FailedReasons *FailedReason `json:"failed_reasons,omitempty"`

	AvailabilityZone string `json:"availability_zone"`

	Endpoints []Endpoints `json:"endpoints"`

	TaskStatus string `json:"task_status"`

	SubStatus string `json:"sub_status"`

	Created string `json:"created"`

	NodeTypeId string `json:"node_type_id"`

	Version string `json:"version"`

	MaintainWindow *MaintainWindow `json:"maintain_window"`

	Tags []Tags `json:"tags"`

	ResizeInfo *ResizeInfo `json:"resize_info,omitempty"`

	EnterpriseProjectId string `json:"enterprise_project_id"`

	Port int32 `json:"port"`

	Name string `json:"name"`

	SubnetId string `json:"subnet_id"`

	Updated string `json:"updated"`

	Status string `json:"status"`
}

集群详情对象

func (ClusterDetail) String

func (o ClusterDetail) String() string

type ClusterInfo

type ClusterInfo struct {
	ActionProgress map[string]string `json:"action_progress"`

	FailedReasons *FailedReason `json:"failed_reasons,omitempty"`

	AvailabilityZone string `json:"availability_zone"`

	Endpoints []Endpoints `json:"endpoints"`

	TaskStatus string `json:"task_status"`

	PublicIp *PublicIp `json:"public_ip"`

	SubStatus string `json:"sub_status"`

	NumberOfNode int32 `json:"number_of_node"`

	RecentEvent int32 `json:"recent_event"`

	VpcId string `json:"vpc_id"`

	Created string `json:"created"`

	UserName string `json:"user_name"`

	SecurityGroupId string `json:"security_group_id"`

	Version string `json:"version"`

	EnterpriseProjectId string `json:"enterprise_project_id"`

	NodeType string `json:"node_type"`

	Port int32 `json:"port"`

	Name string `json:"name"`

	SubnetId string `json:"subnet_id"`

	PublicEndpoints []PublicEndpoints `json:"public_endpoints"`

	Id string `json:"id"`

	Updated string `json:"updated"`

	Status string `json:"status"`
}

集群列表对象

func (ClusterInfo) String

func (o ClusterInfo) String() string

type CreateClusterInfo

type CreateClusterInfo struct {
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	PublicIp *PublicIp `json:"public_ip,omitempty"`

	NumberOfNode int32 `json:"number_of_node"`

	VpcId string `json:"vpc_id"`

	UserName string `json:"user_name"`

	SecurityGroupId string `json:"security_group_id"`

	NumberOfCn *int32 `json:"number_of_cn,omitempty"`

	UserPwd string `json:"user_pwd"`

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

	NodeType string `json:"node_type"`

	Port *int32 `json:"port,omitempty"`

	Name string `json:"name"`

	SubnetId string `json:"subnet_id"`
}

集群对象

func (CreateClusterInfo) String

func (o CreateClusterInfo) String() string

type CreateClusterRequest

type CreateClusterRequest struct {
	Body *CreateClusterRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateClusterRequest) String

func (o CreateClusterRequest) String() string

type CreateClusterRequestBody

type CreateClusterRequestBody struct {
	Cluster *CreateClusterInfo `json:"cluster"`
}

This is a auto create Body Object

func (CreateClusterRequestBody) String

func (o CreateClusterRequestBody) String() string

type CreateClusterResponse

type CreateClusterResponse struct {
	Cluster        *Cluster `json:"cluster,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (CreateClusterResponse) String

func (o CreateClusterResponse) String() string

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	Body *CreateSnapshotRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSnapshotRequest) String

func (o CreateSnapshotRequest) String() string

type CreateSnapshotRequestBody

type CreateSnapshotRequestBody struct {
	Snapshot *Snapshot `json:"snapshot"`
}

This is a auto create Body Object

func (CreateSnapshotRequestBody) String

func (o CreateSnapshotRequestBody) String() string

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	Snapshot       *SnapshotResp `json:"snapshot,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateSnapshotResponse) String

func (o CreateSnapshotResponse) String() string

type DeleteClusterRequest

type DeleteClusterRequest struct {
	ClusterId string `json:"cluster_id"`

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

Request Object

func (DeleteClusterRequest) String

func (o DeleteClusterRequest) String() string

type DeleteClusterRequestBody

type DeleteClusterRequestBody struct {
	KeepLastManualSnapshot int32 `json:"keep_last_manual_snapshot"`
}

This is a auto create Body Object

func (DeleteClusterRequestBody) String

func (o DeleteClusterRequestBody) String() string

type DeleteClusterResponse

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

Response Object

func (DeleteClusterResponse) String

func (o DeleteClusterResponse) String() string

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {
	SnapshotId string `json:"snapshot_id"`
}

Request Object

func (DeleteSnapshotRequest) String

func (o DeleteSnapshotRequest) String() string

type DeleteSnapshotResponse

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

Response Object

func (DeleteSnapshotResponse) String

func (o DeleteSnapshotResponse) String() string

type Detail

type Detail struct {
	Unit string `json:"unit"`

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

	Value string `json:"value"`
}

节点类型详细

func (Detail) String

func (o Detail) String() string

type Endpoints

type Endpoints struct {
	ConnectInfo *string `json:"connect_info,omitempty"`

	JdbcUrl *string `json:"jdbc_url,omitempty"`
}

func (Endpoints) String

func (o Endpoints) String() string

type FailedReason

type FailedReason struct {
	ErrorCode *string `json:"error_code,omitempty"`

	ErrorMsg *string `json:"error_msg,omitempty"`
}

func (FailedReason) String

func (o FailedReason) String() string

type ListClusterDetailsRequest

type ListClusterDetailsRequest struct {
	ClusterId string `json:"cluster_id"`
}

Request Object

func (ListClusterDetailsRequest) String

func (o ListClusterDetailsRequest) String() string

type ListClusterDetailsResponse

type ListClusterDetailsResponse struct {
	Cluster        *ClusterDetail `json:"cluster,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListClusterDetailsResponse) String

type ListClustersRequest

type ListClustersRequest struct {
}

Request Object

func (ListClustersRequest) String

func (o ListClustersRequest) String() string

type ListClustersResponse

type ListClustersResponse struct {
	Clusters *[]ClusterInfo `json:"clusters,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListClustersResponse) String

func (o ListClustersResponse) String() string

type ListNodeTypesRequest

type ListNodeTypesRequest struct {
}

Request Object

func (ListNodeTypesRequest) String

func (o ListNodeTypesRequest) String() string

type ListNodeTypesResponse

type ListNodeTypesResponse struct {
	NodeTypes      *[]NodeTypes `json:"node_types,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListNodeTypesResponse) String

func (o ListNodeTypesResponse) String() string

type ListSnapshotDetailsRequest

type ListSnapshotDetailsRequest struct {
	SnapshotId string `json:"snapshot_id"`
}

Request Object

func (ListSnapshotDetailsRequest) String

type ListSnapshotDetailsResponse

type ListSnapshotDetailsResponse struct {
	Snapshot       *SnapshoDetail `json:"snapshot,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListSnapshotDetailsResponse) String

type ListSnapshotsRequest

type ListSnapshotsRequest struct {
}

Request Object

func (ListSnapshotsRequest) String

func (o ListSnapshotsRequest) String() string

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	Snapshots *[]Snapshots `json:"snapshots,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListSnapshotsResponse) String

func (o ListSnapshotsResponse) String() string

type MaintainWindow

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

	EndTime *string `json:"end_time,omitempty"`

	Day *string `json:"day,omitempty"`
}

集群维护时间窗信息

func (MaintainWindow) String

func (o MaintainWindow) String() string

type NodeTypes

type NodeTypes struct {
	Detail []Detail `json:"detail"`

	Id string `json:"id"`

	SpecName string `json:"spec_name"`
}

节点类型对象

func (NodeTypes) String

func (o NodeTypes) String() string

type ParameterGroup

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

	Id string `json:"id"`

	Status string `json:"status"`
}

集群所关联的参数组信息

func (ParameterGroup) String

func (o ParameterGroup) String() string

type PublicEndpoints

type PublicEndpoints struct {
	PublicConnectInfo *string `json:"public_connect_info,omitempty"`

	JdbcUrl *string `json:"jdbc_url,omitempty"`
}

func (PublicEndpoints) String

func (o PublicEndpoints) String() string

type PublicIp

type PublicIp struct {
	PublicBindType string `json:"public_bind_type"`

	EipId *string `json:"eip_id,omitempty"`
}

func (PublicIp) String

func (o PublicIp) String() string

type ResetPasswordRequest

type ResetPasswordRequest struct {
	ClusterId string `json:"cluster_id"`

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

Request Object

func (ResetPasswordRequest) String

func (o ResetPasswordRequest) String() string

type ResetPasswordRequestBody

type ResetPasswordRequestBody struct {
	NewPassword string `json:"new_password"`
}

This is a auto create Body Object

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 ResizeClusterRequest

type ResizeClusterRequest struct {
	ClusterId string `json:"cluster_id"`

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

Request Object

func (ResizeClusterRequest) String

func (o ResizeClusterRequest) String() string

type ResizeClusterRequestBody

type ResizeClusterRequestBody struct {
	ScaleOut *ScaleOut `json:"scale_out,omitempty"`
}

This is a auto create Body Object

func (ResizeClusterRequestBody) String

func (o ResizeClusterRequestBody) String() string

type ResizeClusterResponse

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

Response Object

func (ResizeClusterResponse) String

func (o ResizeClusterResponse) String() string

type ResizeInfo

type ResizeInfo struct {
	ResizeStatus *string `json:"resize_status,omitempty"`

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

	TargetNodeNum *int32 `json:"target_node_num,omitempty"`

	OriginNodeNum *int32 `json:"origin_node_num,omitempty"`
}

集群扩容状态详情

func (ResizeInfo) String

func (o ResizeInfo) String() string

type RestartClusterRequest

type RestartClusterRequest struct {
	ClusterId string `json:"cluster_id"`

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

Request Object

func (RestartClusterRequest) String

func (o RestartClusterRequest) String() string

type RestartClusterRequestBody

type RestartClusterRequestBody struct {
	Restart *interface{} `json:"restart"`
}

This is a auto create Body Object

func (RestartClusterRequestBody) String

func (o RestartClusterRequestBody) String() string

type RestartClusterResponse

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

Response Object

func (RestartClusterResponse) String

func (o RestartClusterResponse) String() string

type Restore

type Restore struct {
	AvailabilityZone *string `json:"availability_zone,omitempty"`

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

	PublicIp *PublicIp `json:"public_ip,omitempty"`

	Port *int32 `json:"port,omitempty"`

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

	Name string `json:"name"`

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

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

恢复对象

func (Restore) String

func (o Restore) String() string

type RestoreClusterRequest

type RestoreClusterRequest struct {
	SnapshotId string `json:"snapshot_id"`

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

Request Object

func (RestoreClusterRequest) String

func (o RestoreClusterRequest) String() string

type RestoreClusterRequestBody

type RestoreClusterRequestBody struct {
	Restore *Restore `json:"restore"`
}

This is a auto create Body Object

func (RestoreClusterRequestBody) String

func (o RestoreClusterRequestBody) String() string

type RestoreClusterResponse

type RestoreClusterResponse struct {
	Cluster        *Cluster `json:"cluster,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (RestoreClusterResponse) String

func (o RestoreClusterResponse) String() string

type ScaleOut

type ScaleOut struct {
	Count int32 `json:"count"`
}

扩容集群详情

func (ScaleOut) String

func (o ScaleOut) String() string

type SnapshoDetail

type SnapshoDetail struct {
	ClusterId string `json:"cluster_id"`

	Size float64 `json:"size"`

	Name string `json:"name"`

	Description string `json:"description"`

	Finished string `json:"finished"`

	Started string `json:"started"`

	Id string `json:"id"`

	Type string `json:"type"`

	Status string `json:"status"`
}

快照对象

func (SnapshoDetail) String

func (o SnapshoDetail) String() string

type Snapshot

type Snapshot struct {
	ClusterId string `json:"cluster_id"`

	Name string `json:"name"`

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

快照对象

func (Snapshot) String

func (o Snapshot) String() string

type SnapshotResp

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

func (SnapshotResp) String

func (o SnapshotResp) String() string

type Snapshots

type Snapshots struct {
	ClusterId string `json:"cluster_id"`

	Size float64 `json:"size"`

	Name string `json:"name"`

	Description string `json:"description"`

	Finished string `json:"finished"`

	Started string `json:"started"`

	Id string `json:"id"`

	Type string `json:"type"`

	Status string `json:"status"`
}

快照对象列表

func (Snapshots) String

func (o Snapshots) String() string

type Tags

type Tags struct {
	Value string `json:"value"`

	Key string `json:"key"`
}

标签列表

func (Tags) String

func (o Tags) String() string

Source Files

Jump to

Keyboard shortcuts

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