model

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 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
	Id string `json:"id"`
}

func (Cluster) String

func (o Cluster) String() string

type ClusterDetail

type ClusterDetail struct {

	// 集群ID
	Id string `json:"id"`

	// 集群名称
	Name string `json:"name"`

	// 集群状态,有效值包括:  - CREATING:创建中 - AVAILABLE:可用 - UNAVAILABLE:不可用 - CREATION FAILED:创建失败 - FROZEN:已冻结
	Status string `json:"status"`

	// 数据仓库版本
	Version string `json:"version"`

	// 集群上次修改时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ
	Updated string `json:"updated"`

	// 集群创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ
	Created string `json:"created"`

	// 集群服务端口(8000~30000),默认值:8000
	Port int32 `json:"port"`

	// 集群的内网连接信息。
	Endpoints []Endpoints `json:"endpoints"`

	// 集群实例
	Nodes []Nodes `json:"nodes"`

	// 集群标签
	Tags []Tags `json:"tags"`

	// 管理员用户名
	UserName string `json:"user_name"`

	// 节点数量
	NumberOfNode int32 `json:"number_of_node"`

	// 事件数
	RecentEvent int32 `json:"recent_event"`

	// 可用区
	AvailabilityZone string `json:"availability_zone"`

	// 企业项目ID。值为0表示默认企业项目“default”。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 节点类型
	NodeType string `json:"node_type"`

	// 虚拟私有云ID
	VpcId string `json:"vpc_id"`

	// 子网ID
	SubnetId string `json:"subnet_id"`

	PublicIp *PublicIp `json:"public_ip"`

	// 集群的公网连接信息,如果未指定,则默认不使用公网连接信息。
	PublicEndpoints []PublicEndpoints `json:"public_endpoints"`

	// Key值为正在进行的任务,有效值包括:  - GROWING:扩容中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - REPAIRING: 修复中 - CREATING: 创建中\\nvalue值为正在进行任务的进度。
	ActionProgress map[string]string `json:"action_progress"`

	// “可用”集群状态的子状态,有效值包括:  - NORMAL:正常 - READONLY:只读 - REDISTRIBUTING:重分布中 - REDISTRIBUTION-FAILURE:重分布失败 - UNBALANCED:非均衡 - UNBALANCED | READONLY:非均衡,只读 - DEGRADED:节点故障 - DEGRADED | READONLY:节点故障,只读 - DEGRADED | UNBALANCED:节点故障,非均衡 - UNBALANCED | REDISTRIBUTING:非均衡,重分布中 - UNBALANCED | REDISTRIBUTION-FAILURE:非均衡,重分布失败 - READONLY | REDISTRIBUTION-FAILURE:只读,重分布失败 - UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:非均衡,只读,重分布失败 - DEGRADED | REDISTRIBUTION-FAILURE:节点故障,重分布失败 - DEGRADED | UNBALANCED | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY:节点故障,非均衡,只读
	SubStatus string `json:"sub_status"`

	// 集群管理任务,有效值包括:  - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败
	TaskStatus string `json:"task_status"`

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

	// 节点类型ID
	NodeTypeId string `json:"node_type_id"`

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 内网IP地址列表
	PrivateIp []string `json:"private_ip"`

	MaintainWindow *MaintainWindow `json:"maintain_window"`

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

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

集群详情对象

func (ClusterDetail) String

func (o ClusterDetail) String() string

type ClusterInfo

type ClusterInfo struct {

	// 集群ID。
	Id string `json:"id"`

	// 集群名称
	Name string `json:"name"`

	// 集群状态,有效值包括:  - CREATING:创建中 - AVAILABLE:可用 - UNAVAILABLE:不可用 - CREATION FAILED:创建失败 - FROZEN:已冻结
	Status string `json:"status"`

	// 数据仓库版本
	Version string `json:"version"`

	// 集群上次修改时间,格式为 ISO8601:YYYY-MM-DDThh:mm:ssZ
	Updated string `json:"updated"`

	// 集群创建时间,格式为 ISO8601:YYYY-MM-DDThh:mm:ssZ。
	Created string `json:"created"`

	// 集群服务端口,取值范围8000~30000,默认值:8000
	Port int32 `json:"port"`

	// 集群的内网连接信息
	Endpoints []Endpoints `json:"endpoints"`

	// 集群实例
	Nodes []Nodes `json:"nodes"`

	// 集群标签
	Tags []Tags `json:"tags"`

	// 管理员用户名
	UserName string `json:"user_name"`

	// 节点数量
	NumberOfNode int32 `json:"number_of_node"`

	// 事件数
	RecentEvent int32 `json:"recent_event"`

	// 可用区
	AvailabilityZone string `json:"availability_zone"`

	// 企业项目ID。值为0表示默认企业项目“default”
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 节点类型
	NodeType string `json:"node_type"`

	// 虚拟私有云ID
	VpcId string `json:"vpc_id"`

	// 子网ID
	SubnetId string `json:"subnet_id"`

	PublicIp *PublicIp `json:"public_ip"`

	// 集群的公网连接信息,如果未指定,则默认不使用公网连接信息。
	PublicEndpoints []PublicEndpoints `json:"public_endpoints"`

	// 任务信息,由key、value组成。key值为正在进行的任务,value值为正在进行任务的进度。key值的有效值包括:  - GROWING:扩容中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - REPAIRING: 修复中 - CREATING: 创建中
	ActionProgress map[string]string `json:"action_progress"`

	// “可用”集群状态的子状态,有效值包括:  - NORMAL:正常 - READONLY:只读 - REDISTRIBUTING:重分布中 - REDISTRIBUTION-FAILURE:重分布失败 - UNBALANCED:非均衡 - UNBALANCED | READONLY:非均衡,只读 - DEGRADED:节点故障 - DEGRADED | READONLY:节点故障,只读 - DEGRADED | UNBALANCED:节点故障,非均衡 - UNBALANCED | REDISTRIBUTING:非均衡,重分布中 - UNBALANCED | REDISTRIBUTION-FAILURE:非均衡,重分布失败 - READONLY | REDISTRIBUTION-FAILURE:只读,重分布失败 - UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:非均衡,只读,重分布失败 - DEGRADED | REDISTRIBUTION-FAILURE:节点故障,重分布失败 - DEGRADED | UNBALANCED | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY:节点故障,非均衡,只读
	SubStatus string `json:"sub_status"`

	// 集群管理任务,有效值包括:  - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败
	TaskStatus string `json:"task_status"`

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

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

集群列表对象。

func (ClusterInfo) String

func (o ClusterInfo) String() string

type CreateClusterInfo

type CreateClusterInfo struct {

	// 节点类型
	NodeType string `json:"node_type"`

	// 集群节点数量,集群模式取值范围为3~256,实时数仓(单机模式)取值为1。
	NumberOfNode int32 `json:"number_of_node"`

	// 指定子网ID,用于集群网络配置。
	SubnetId string `json:"subnet_id"`

	// 指定安全组ID,用于集群网络配置。
	SecurityGroupId string `json:"security_group_id"`

	// 指定虚拟私有云ID,用于集群网络配置。
	VpcId string `json:"vpc_id"`

	// 配置集群可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 集群服务端口,取值范围为8000~30000,默认值:8000。
	Port *int32 `json:"port,omitempty"`

	// 集群名称,要求唯一性,必须以字母开头并只包含字母、数字、中划线或下划线,长度为4~64个字符。
	Name string `json:"name"`

	// DWS集群管理员用户名。用户命名要求如下:  - 只能由小写字母、数字或下划线组成。 - 必须由小写字母或下划线开头。 - 长度为1~63个字符。 - 用户名不能为DWS数据库的关键字。
	UserName string `json:"user_name"`

	// DWS集群管理员密码。
	UserPwd string `json:"user_pwd"`

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

	// CN部署量,取值范围为2~集群节点数,最大值为20,默认值为3。
	NumberOfCn *int32 `json:"number_of_cn,omitempty"`

	// 企业项目ID,对集群指定企业项目,如果未指定,则使用默认企业项目“default”的ID,即0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

集群对象

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 {

	// 指定待删除集群的ID
	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 {

	// 快照ID。
	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 {

	// 属性类型。
	Type *string `json:"type,omitempty"`

	// 属性值。
	Value string `json:"value"`

	// 属性单位。
	Unit string `json:"unit"`
}

节点类型详细

func (Detail) String

func (o Detail) String() string

type Endpoints

type Endpoints struct {

	// 内网连接信息。
	ConnectInfo *string `json:"connect_info,omitempty"`

	// 内网JDBC URL,默认格式如下: jdbc:postgresql://<connect_info>/<YOUR_DATABASE_NAME>
	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 {

	// 集群ID
	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 {

	// 快照ID。
	SnapshotId string `json:"snapshot_id"`
}

Request Object

func (ListSnapshotDetailsRequest) String

type ListSnapshotDetailsResponse

type ListSnapshotDetailsResponse struct {
	Snapshot       *SnapshotDetail `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 {

	// 每周的维护时间,以天为粒度,取值如下:  - Mon:星期一 - Tue:星期二 - Wed:星期三 - Thu:星期四 - Fri:星期五 - Sat:星期六 - Sun:星期日
	Day *string `json:"day,omitempty"`

	// 维护开始时间,显示格式为 HH:mm,时区为GMT+0。
	StartTime *string `json:"start_time,omitempty"`

	// 维护结束时间,显示格式为 HH:mm, 时区为GMT+0。
	EndTime *string `json:"end_time,omitempty"`
}

集群维护时间窗信息

func (MaintainWindow) String

func (o MaintainWindow) String() string

type NodeTypes

type NodeTypes struct {

	// 节点类型名称。
	SpecName string `json:"spec_name"`

	// 节点类型详细。
	Detail []Detail `json:"detail"`

	// 节点类型ID。
	Id string `json:"id"`
}

节点类型对象

func (NodeTypes) String

func (o NodeTypes) String() string

type Nodes added in v0.0.88

type Nodes struct {

	// 集群实例ID
	Id string `json:"id"`

	// 集群实例状态
	Status string `json:"status"`
}

集群实例对象

func (Nodes) String added in v0.0.88

func (o Nodes) String() string

type ParameterGroup

type ParameterGroup struct {

	// 参数组ID
	Id string `json:"id"`

	// 参数组名称
	Name string `json:"name"`

	// 集群参数状态,有效值包括:  - In-Sync:已同步 - Applying:应用中 - Pending-Reboot:需重启生效 - Sync-Failure:应用失败
	Status string `json:"status"`
}

集群所关联的参数组信息

func (ParameterGroup) String

func (o ParameterGroup) String() string

type PublicEndpoints

type PublicEndpoints struct {

	// 公网连接信息
	PublicConnectInfo *string `json:"public_connect_info,omitempty"`

	// 公网JDBC URL,默认格式如下: jdbc:postgresql://<public_connect_info>/<YOUR_DATABASE_name>
	JdbcUrl *string `json:"jdbc_url,omitempty"`
}

func (PublicEndpoints) String

func (o PublicEndpoints) String() string

type PublicIp

type PublicIp struct {

	// 弹性IP绑定类型,取值如下:  - auto_assign:自动绑定 - not_use:暂未使用 - bind_existing :使用已有
	PublicBindType string `json:"public_bind_type"`

	// 弹性IP的id
	EipId *string `json:"eip_id,omitempty"`
}

func (PublicIp) String

func (o PublicIp) String() string

type ResetPasswordRequest

type ResetPasswordRequest struct {

	// 指定待重置密码集群的ID
	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 {

	// GaussDB(DWS) 集群管理员新密码。 新密码复杂度要求如下:  - 密码字符长度为8~32位。 - 不能与用户名或倒序的用户名相同。 - 至少包含以下4种类型的3种:    - 小写字母   - 大写字母   - 数字   - 特殊字符(~!?,.:;-_'\"(){}[]/<>@#%^&*+|\\=)。 - 不能与历史密码相同。 - 不能为弱密码。
	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 {

	// 待调整大小的集群ID
	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 {

	// 扩容后的节点数量
	TargetNodeNum *int32 `json:"target_node_num,omitempty"`

	// 扩容前的节点数量
	OriginNodeNum *int32 `json:"origin_node_num,omitempty"`

	// 扩容状态,取值如下:  - GROWING:扩容中 - RESIZE_FAILURE:扩容失败
	ResizeStatus *string `json:"resize_status,omitempty"`

	// 扩容开始时间,格式为ISO8601:YYYY-MM-DDThh:mm:ss
	StartTime *string `json:"start_time,omitempty"`
}

集群扩容状态详情

func (ResizeInfo) String

func (o ResizeInfo) String() string

type RestartClusterRequest

type RestartClusterRequest struct {

	// 指定待重启集群的ID
	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 {

	// 集群名称,要求唯一性,必须以字母开头并只包含字母、数字、中划线,下划线,长度为4~64个字符。
	Name string `json:"name"`

	// 指定子网ID,用于集群网络配置。默认值与原集群相同。
	SubnetId *string `json:"subnet_id,omitempty"`

	// 指定安全组ID,用于集群网络配置。默认值与原集群相同。
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 指定虚拟私有云ID,用于集群网络配置。默认值与原集群相同。
	VpcId *string `json:"vpc_id,omitempty"`

	// 指定集群可用区。默认值与原集群相同。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 指定集群服务端口
	Port *int32 `json:"port,omitempty"`

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

	// 企业项目ID,对集群指定企业项目,如果未指定,则使用默认企业项目“default”的ID,即0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

恢复对象

func (Restore) String

func (o Restore) String() string

type RestoreClusterRequest

type RestoreClusterRequest struct {

	// 待恢复的快照ID。
	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 Snapshot

type Snapshot struct {

	// 快照名称,要求唯一性且必须以字母开头,不区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符,长度为4~64个字符。
	Name string `json:"name"`

	// 指定创建快照的集群ID
	ClusterId string `json:"cluster_id"`

	// 快照描述,若不指定,描述为空。快照描述的字符长度不能超过256个字符,且不支持特殊字符!<>'=&\"。
	Description *string `json:"description,omitempty"`
}

快照对象

func (Snapshot) String

func (o Snapshot) String() string

type SnapshotDetail added in v0.0.85

type SnapshotDetail struct {

	// 快照ID。
	Id string `json:"id"`

	// 快照名称。
	Name string `json:"name"`

	// 快照描述。
	Description string `json:"description"`

	// 快照创建的日期时间,格式为 ISO8601: YYYY-MM-DDThh:mm:ssZ。
	Started string `json:"started"`

	// 快照完成的日期时间,格式为 ISO8601: YYYY-MM-DDThh:mm:ssZ。
	Finished string `json:"finished"`

	// 快照大小,单位GB。
	Size float64 `json:"size"`

	// 快照状态:  - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。
	Status string `json:"status"`

	// 快照创建类型。
	Type string `json:"type"`

	// 快照对应的集群ID
	ClusterId string `json:"cluster_id"`
}

快照详情对象

func (SnapshotDetail) String added in v0.0.85

func (o SnapshotDetail) String() string

type SnapshotResp

type SnapshotResp struct {

	// Snapshot ID
	Id *string `json:"id,omitempty"`
}

func (SnapshotResp) String

func (o SnapshotResp) String() string

type Snapshots

type Snapshots struct {

	// 快照ID。
	Id string `json:"id"`

	// 快照名称。
	Name string `json:"name"`

	// 快照描述。
	Description string `json:"description"`

	// 快照创建的日期时间,格式为 ISO8601: YYYY-MM-DDThh:mm:ssZ。
	Started string `json:"started"`

	// 快照完成的日期时间,格式为 ISO8601: YYYY-MM-DDThh:mm:ssZ。
	Finished string `json:"finished"`

	// 快照大小,单位 GB。
	Size float64 `json:"size"`

	// 快照状态:  - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。
	Status string `json:"status"`

	// 快照创建类型
	Type string `json:"type"`

	// 快照对应的集群ID
	ClusterId string `json:"cluster_id"`
}

快照对象列表

func (Snapshots) String

func (o Snapshots) String() string

type Tags

type Tags struct {

	// 键。输入标签键的最大长度为36个unicode字符,不能为空字符串,且首尾字符不能为空格。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
	Key string `json:"key"`

	// 值。输入标签值的最大长度为43个字符,首尾字符不能为空格,可以为空字符串。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
	Value string `json:"value"`
}

标签列表

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