model

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 ActionProgress

type ActionProgress struct {

	// 创建集群进度,例如:29%
	Creating *string `json:"CREATING,omitempty"`

	// 扩容集群进度,例如:29%
	Growing *string `json:"GROWING,omitempty"`

	// 恢复集群进度,例如:29%
	Restoring *string `json:"RESTORING,omitempty"`

	// 集群快照进度,例如:29%
	Snapshotting *string `json:"SNAPSHOTTING,omitempty"`

	// 修复集群进度,例如:29%
	Repairing *string `json:"REPAIRING,omitempty"`
}

集群操作进度,任务信息,由key、value组成。key值为正在进行的任务,value值为正在进行任务的进度。示例如 \"action_progress\":{\"SNAPSHOTTING\":\"16%\"}

func (ActionProgress) String

func (o ActionProgress) String() string

type Cluster

type Cluster struct {

	// 是否开启IAM权限认证。 - false:不开启 - true:开启
	AuthMode *string `json:"auth_mode,omitempty"`

	// 是否开启Lemon(目前已关闭该参数,填false即可) - false:不开启 - true:开启
	EnableLemon *bool `json:"enable_lemon,omitempty"`

	// 是否开启OpenTSDB。 - false:不开启 - true:开启
	EnableOpenTSDB *bool `json:"enable_openTSDB,omitempty"`

	Instance *Instance `json:"instance"`

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

	// 存储值的大小。  取值范围: 1-[10240-1024*1024*1024]
	StorageSize *int32 `json:"storage_size,omitempty"`

	// 存储类型: - ULTRAHIGH:超高IO - COMMON:普通IO
	StorageType string `json:"storage_type"`

	// 集群所在的(虚拟网络私有云)VPC。
	VpcId string `json:"vpc_id"`

	Datastore *Datastore `json:"datastore"`
}

创建集群参数对象实体。

func (Cluster) String

func (o Cluster) String() string

type ClusterDetail

type ClusterDetail struct {
	ActionProgress *ActionProgress `json:"action_progress,omitempty"`

	// 集群操作记录
	Actions *[]string `json:"actions,omitempty"`

	// 是否开启IAM权限认证。 - false:不开启 - true:开启
	AuthMode *string `json:"auth_mode,omitempty"`

	// 集群所在的可用区(AZ)。
	AzCode *string `json:"az_code,omitempty"`

	// 集群ID,集群唯一标识。
	ClusterId *string `json:"cluster_id,omitempty"`

	// CloudTable集群名称。
	ClusterName *string `json:"cluster_name,omitempty"`

	// 集群创建时间。
	Created *string `json:"created,omitempty"`

	// 是否开启DFV。 - false:不开启 - true:开启
	EnableDfv *string `json:"enable_dfv,omitempty"`

	// 集群是否免费。 - false:不免费 - true:免费
	EnableFree *string `json:"enable_free,omitempty"`

	// 是否开启Lemon。 - false:不开启 - true:开启
	EnableLemon *string `json:"enable_lemon,omitempty"`

	// 是否开启OpenTSDB。 - false:不开启 - true:开启
	EnableOpenTSDB *string `json:"enable_openTSDB,omitempty"`

	// 集群状态: - 200:集群正常 - 300:集群异常 - 303:集群创建失败 - 400:集群已删除
	Status *string `json:"status,omitempty"`

	// 集群标识符。
	Tags *string `json:"tags,omitempty"`

	// 集群版本号。
	Version *string `json:"version,omitempty"`

	// CloudTable集群ZooKeeper的链接地址。例如:cloudtable-3058-zk3-Dqcwuh6R.mycloudtable.com:2181,cloudtable-3058-zk2-TCwkZEie.mycloudtable.com:2181,cloudtable-3058-zk1-TBELUFOK.mycloudtable.com:2181
	ZookeeperLink *string `json:"zookeeper_link,omitempty"`
}

集群详情信息对象。

func (ClusterDetail) String

func (o ClusterDetail) String() string

type CreateClusterRequest

type CreateClusterRequest struct {

	// 语言类型
	XLanguage string `json:"X-Language"`

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

Request Object

func (CreateClusterRequest) String

func (o CreateClusterRequest) String() string

type CreateClusterRequestBody

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

创建集群发起的请求的请求体对象。

func (CreateClusterRequestBody) String

func (o CreateClusterRequestBody) String() string

type CreateClusterResponse

type CreateClusterResponse struct {

	// 集群唯一标识,新建集群的ID。
	ClusterId      *string `json:"cluster_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateClusterResponse) String

func (o CreateClusterResponse) String() string

type Datastore

type Datastore struct {

	// controller版本号,默认1.0.6
	Version string `json:"version"`

	// 集群数据库类型
	Type string `json:"type"`
}

创建集群数据库参数。

func (Datastore) String

func (o Datastore) String() string

type DeleteClusterRequest

type DeleteClusterRequest struct {

	// 语言类型
	XLanguage string `json:"X-Language"`

	// 集群ID。  获取方法:在ClooudTable控制台,单击要查询的集群名称进入集群详情页,获取“集群ID\"。
	ClusterId string `json:"cluster_id"`
}

Request Object

func (DeleteClusterRequest) String

func (o DeleteClusterRequest) String() string

type DeleteClusterResponse

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

Response Object

func (DeleteClusterResponse) String

func (o DeleteClusterResponse) String() string

type Instance

type Instance struct {

	// 集群所在可用区的ID。
	AvailabilityZone string `json:"availability_zone"`

	// CloudTable集群计算单元节点数目,至少为2。
	CuNum int32 `json:"cu_num"`

	// CloudTable集群Lemon节点数目。
	LemonNum *int32 `json:"lemon_num,omitempty"`

	// 集群所在网络信息。
	Nics []Nics `json:"nics"`

	// CloudTable集群TSD节点数目,至少为2。
	TsdNum int32 `json:"tsd_num"`
}

集群的实例对象。

func (Instance) String

func (o Instance) String() string

type ListClustersRequest

type ListClustersRequest struct {

	// 分页参数,列表的偏移量,默认值为0
	Offset *int32 `json:"offset,omitempty"`

	// 分页参数,列表当前分页的数量限制,默认为10。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListClustersRequest) String

func (o ListClustersRequest) String() string

type ListClustersResponse

type ListClustersResponse struct {

	// 查询到的集群详细列表,每个json体表示一个集群的详情。
	Clusters *[]ClusterDetail `json:"clusters,omitempty"`

	// 查询到的集群数量。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListClustersResponse) String

func (o ListClustersResponse) String() string

type Nics

type Nics struct {

	// CloudTable集群所在网络ID。
	NetId string `json:"net_id"`

	// CloudTable所在安全组对应的ID。
	SecurityGroupId string `json:"security_group_id"`
}

集群所在的网络信息以及安全组信息。

func (Nics) String

func (o Nics) String() string

type ShowClusterDetailRequest

type ShowClusterDetailRequest struct {

	// 语言类型
	XLanguage string `json:"X-Language"`

	// 集群ID。  获取方法:在ClooudTable控制台,单击要查询的集群名称进入集群详情页,获取“集群ID\"。
	ClusterId string `json:"cluster_id"`
}

Request Object

func (ShowClusterDetailRequest) String

func (o ShowClusterDetailRequest) String() string

type ShowClusterDetailResponse

type ShowClusterDetailResponse struct {

	// 集群当前状态列表: - 创建中 - 扩容中 - 重启中 - 开启opentsdb - 扩容失败 - 重启失败 - 开启opentsdb失败
	Actions *[]string `json:"actions,omitempty"`

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

	// 是否打开openTSDB特性。 - false:不开启 - true:开启
	EnableOpenTSDB *bool `json:"enable_openTSDB,omitempty"`

	// 是否打开SQL查询特性。 - false:不开启 - true:开启
	EnableLemon *bool `json:"enable_lemon,omitempty"`

	// 集群名称。
	ClusterName *string `json:"cluster_name,omitempty"`

	// RegionServer个数。
	CuNum *string `json:"cu_num,omitempty"`

	// TSD节点个数。
	TsdNum *string `json:"tsd_num,omitempty"`

	// Lemon节点个数。
	LemonNum *string `json:"lemon_num,omitempty"`

	// 集群底层存储类型: - OBS - HDFS
	StorageType *string `json:"storage_type,omitempty"`

	// 集群存储配额。
	StorageQuota *string `json:"storage_quota,omitempty"`

	// 当前使用存储空间。
	UsedStorageSize *string `json:"used_storage_size,omitempty"`

	// 是否打开IAM认证。 - false:不开启 - true:开启
	AuthMode *bool `json:"auth_mode,omitempty"`

	// 是否打开dfv
	EnableDfv *bool `json:"enable_dfv,omitempty"`

	// 集群更新时间。
	Updated *string `json:"updated,omitempty"`

	// 集群创建时间。
	Created *string `json:"created,omitempty"`

	// 集群唯一标识,集群ID。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 集群当前状态: - 200:集群正常 - 300:集群异常 - 400:集群已删除 - 303:集群创建失败
	Status *string `json:"status,omitempty"`

	// 内网OpenTSDB连接访问地址。
	OpenTSDBLink *string `json:"openTSDB_link,omitempty"`

	// OpenTSDB公网endpoint地址
	TsdPublicEndpoint *string `json:"tsd_public_endpoint,omitempty"`

	// 内网Lemon连接访问地址。
	LemonLink *string `json:"lemon_link,omitempty"`

	// 内网ZooKeeper连接访问地址。
	ZookeeperLink *string `json:"zookeeper_link,omitempty"`

	// 公网HBase连接访问地址。
	HbasePublicEndpoint *string `json:"hbase_public_endpoint,omitempty"`

	// 集群是否被冻结。 - false:不冻结 - true:冻结
	IsFrozen *string `json:"is_frozen,omitempty"`

	// VPC ID,创建集群节点所在的虚拟私有ID。
	VpcId *string `json:"vpc_id,omitempty"`

	// 子网ID,创建集群所在子网段。
	SubNetId *string `json:"sub_net_id,omitempty"`

	// 安全组对应的ID。
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 集群所属的可用区。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
	HttpStatusCode   int     `json:"-"`
}

Response Object

func (ShowClusterDetailResponse) String

func (o ShowClusterDetailResponse) String() string

Jump to

Keyboard shortcuts

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