model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 0

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"`
}

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

func (ActionProgress) String

func (o ActionProgress) String() string

type AddComponentReq

type AddComponentReq struct {

	// 节点个数, 范围是[2,10]
	NodeNum int32 `json:"node_num"`
}

AddComponentReq 增加OpenTSDB节点的请求体,其中节点个数为指定增加TSD节点的个数,如请求体的node_num为2,那么会扩容两个tsd节点

func (AddComponentReq) String

func (o AddComponentReq) 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"`
}

Cluster 创建集群参数对象实体。

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"`
}

ClusterDetail 集群详情信息对象。

func (ClusterDetail) String

func (o ClusterDetail) String() string

type CreateClusterRequest

type CreateClusterRequest struct {

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

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

CreateClusterRequest Request Object

func (CreateClusterRequest) String

func (o CreateClusterRequest) String() string

type CreateClusterRequestBody

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

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

func (CreateClusterRequestBody) String

func (o CreateClusterRequestBody) String() string

type CreateClusterResponse

type CreateClusterResponse struct {

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

CreateClusterResponse 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"`
}

Datastore 创建集群数据库参数。

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"`
}

DeleteClusterRequest Request Object

func (DeleteClusterRequest) String

func (o DeleteClusterRequest) String() string

type DeleteClusterResponse

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

DeleteClusterResponse Response Object

func (DeleteClusterResponse) String

func (o DeleteClusterResponse) String() string

type EnableComponentRequest

type EnableComponentRequest struct {

	// 集群ID
	ClusterId string `json:"cluster_id"`

	// 组件类型,取值为tsdb
	ComponentName string `json:"component_name"`

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

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

EnableComponentRequest Request Object

func (EnableComponentRequest) String

func (o EnableComponentRequest) String() string

type EnableComponentResponse

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

EnableComponentResponse Response Object

func (EnableComponentResponse) String

func (o EnableComponentResponse) String() string

type ExpandClusterComponentRequest

type ExpandClusterComponentRequest struct {

	// 集群ID
	ClusterId string `json:"cluster_id"`

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

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

ExpandClusterComponentRequest Request Object

func (ExpandClusterComponentRequest) String

type ExpandClusterComponentResponse

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

ExpandClusterComponentResponse Response Object

func (ExpandClusterComponentResponse) String

type GrowNodeReq

type GrowNodeReq struct {

	// 扩容节点类型:rs,tsdb,lemon
	ComponentName string `json:"component_name"`

	// 扩容节点范围是 [2,10]
	NodeNum int32 `json:"node_num"`
}

func (GrowNodeReq) String

func (o GrowNodeReq) String() string

type HbaseClusterActionReq

type HbaseClusterActionReq struct {

	// 该请求参数内无其他内容,但是需要该参数作为重启集群入参,示例看下述所示
	Restart *interface{} `json:"restart"`
}

func (HbaseClusterActionReq) String

func (o HbaseClusterActionReq) String() string

type HbaseModifySettingV2

type HbaseModifySettingV2 struct {

	// 待修改的参数名
	ParmName string `json:"parm_name"`

	// 设置的参数值
	NewValue string `json:"new_value"`

	// 参数ID,可不传
	Id *string `json:"id,omitempty"`
}

func (HbaseModifySettingV2) String

func (o HbaseModifySettingV2) String() string

type HbaseModifySettingV2Req

type HbaseModifySettingV2Req struct {

	// 是否重启
	IsReboot string `json:"is_reboot"`

	// 参见HBaseModifySettingV2结构说明
	HbaseModifySettings []HbaseModifySettingV2 `json:"hbase_modify_settings"`
}

HbaseModifySettingV2Req 修改配置v2接口请求参数

func (HbaseModifySettingV2Req) String

func (o HbaseModifySettingV2Req) 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"`
}

Instance 集群的实例对象。

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"`
}

ListClustersRequest 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:"-"`
}

ListClustersResponse 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"`
}

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

func (Nics) String

func (o Nics) String() string

type ParameterInfo

type ParameterInfo struct {

	// 参数ID
	Id *string `json:"id,omitempty"`

	// 配置名称
	Name string `json:"name"`

	// 默认值
	DefaultValue string `json:"default_value"`

	// 配置值类型
	ValueType string `json:"value_type"`

	// 集群当前运行的配置值
	RunningValue string `json:"running_value"`

	// 单位
	Unit string `json:"unit"`

	// 是否需要重启生效
	Reboot bool `json:"reboot"`

	// 配置值取值范围
	ValueRange string `json:"value_range"`

	// 配置描述信息
	Description string `json:"description"`
}

ParameterInfo 集群配置信息详情

func (ParameterInfo) String

func (o ParameterInfo) String() string

type RebootCloudTableClusterRequest

type RebootCloudTableClusterRequest struct {

	// 集群ID
	ClusterId string `json:"cluster_id"`

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

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

RebootCloudTableClusterRequest Request Object

func (RebootCloudTableClusterRequest) String

type RebootCloudTableClusterResponse

type RebootCloudTableClusterResponse struct {
	Body           *[]RestartInstanceRsp `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

RebootCloudTableClusterResponse Response Object

func (RebootCloudTableClusterResponse) String

type RestartInstanceRsp

type RestartInstanceRsp struct {
	JobId *[]string `json:"jobId,omitempty"`
}

RestartInstanceRsp 重启集群返回值

func (RestartInstanceRsp) String

func (o RestartInstanceRsp) String() string

type ShowClusterDetailRequest

type ShowClusterDetailRequest struct {

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

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

ShowClusterDetailRequest 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:"-"`
}

ShowClusterDetailResponse Response Object

func (ShowClusterDetailResponse) String

func (o ShowClusterDetailResponse) String() string

type ShowClusterSettingRequest

type ShowClusterSettingRequest struct {

	// 项目ID
	ClusterId string `json:"cluster_id"`

	// 语言类型
	XLanguage *string `json:"X-Language,omitempty"`
}

ShowClusterSettingRequest Request Object

func (ShowClusterSettingRequest) String

func (o ShowClusterSettingRequest) String() string

type ShowClusterSettingResponse

type ShowClusterSettingResponse struct {

	// 集群参数生效状态:0、未更改 1、未应用 2、应用中 3、已应用 4、应用失败
	ParmStatus *int32 `json:"parm_status,omitempty"`

	// 参数列表
	ParameterInfo  *[]ParameterInfo `json:"parameter_info,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowClusterSettingResponse Response Object

func (ShowClusterSettingResponse) String

type UpdateClusterSettingRequest

type UpdateClusterSettingRequest struct {

	// 集群ID
	ClusterId string `json:"cluster_id"`

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

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

UpdateClusterSettingRequest Request Object

func (UpdateClusterSettingRequest) String

type UpdateClusterSettingResponse

type UpdateClusterSettingResponse struct {

	// 配置修改结果
	ModifyResult   *bool `json:"modify_result,omitempty"`
	HttpStatusCode int   `json:"-"`
}

UpdateClusterSettingResponse Response Object

func (UpdateClusterSettingResponse) String

Jump to

Keyboard shortcuts

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