model

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 {
	Creating *string `json:"CREATING,omitempty"`

	Growing *string `json:"GROWING,omitempty"`

	Restoring *string `json:"RESTORING,omitempty"`

	Snapshotting *string `json:"SNAPSHOTTING,omitempty"`

	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 {
	AuthMode *string `json:"auth_mode,omitempty"`

	EnableLemon *bool `json:"enable_lemon,omitempty"`

	EnableOpenTSDB *bool `json:"enable_openTSDB,omitempty"`

	Instance *Instance `json:"instance"`

	Name string `json:"name"`

	StorageSize *int32 `json:"storage_size,omitempty"`

	StorageType string `json:"storage_type"`

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

	AuthMode *string `json:"auth_mode,omitempty"`

	AzCode *string `json:"az_code,omitempty"`

	ClusterId *string `json:"cluster_id,omitempty"`

	ClusterName *string `json:"cluster_name,omitempty"`

	Created *string `json:"created,omitempty"`

	EnableDfv *string `json:"enable_dfv,omitempty"`

	EnableFree *string `json:"enable_free,omitempty"`

	EnableLemon *string `json:"enable_lemon,omitempty"`

	EnableOpenTSDB *string `json:"enable_openTSDB,omitempty"`

	Status *string `json:"status,omitempty"`

	Tags *string `json:"tags,omitempty"`

	Version *string `json:"version,omitempty"`

	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 {
	ClusterId      *string `json:"cluster_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateClusterResponse) String

func (o CreateClusterResponse) String() string

type Datastore

type Datastore struct {
	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"`

	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 {
	AvailabilityZone string `json:"availability_zone"`

	CuNum int32 `json:"cu_num"`

	LemonNum *int32 `json:"lemon_num,omitempty"`

	Nics []Nics `json:"nics"`

	TsdNum int32 `json:"tsd_num"`
}

集群的实例对象。

func (Instance) String

func (o Instance) String() string

type ListClustersRequest

type ListClustersRequest struct {
	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListClustersRequest) String

func (o ListClustersRequest) String() string

type ListClustersResponse

type ListClustersResponse struct {
	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 {
	NetId string `json:"net_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"`

	ClusterId string `json:"cluster_id"`
}

Request Object

func (ShowClusterDetailRequest) String

func (o ShowClusterDetailRequest) String() string

type ShowClusterDetailResponse

type ShowClusterDetailResponse struct {
	Actions *[]string `json:"actions,omitempty"`

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

	EnableOpenTSDB *bool `json:"enable_openTSDB,omitempty"`

	EnableLemon *bool `json:"enable_lemon,omitempty"`

	ClusterName *string `json:"cluster_name,omitempty"`

	CuNum *string `json:"cu_num,omitempty"`

	TsdNum *string `json:"tsd_num,omitempty"`

	LemonNum *string `json:"lemon_num,omitempty"`

	StorageType *string `json:"storage_type,omitempty"`

	StorageQuota *string `json:"storage_quota,omitempty"`

	UsedStorageSize *string `json:"used_storage_size,omitempty"`

	AuthMode *bool `json:"auth_mode,omitempty"`

	EnableDfv *bool `json:"enable_dfv,omitempty"`

	Updated *string `json:"updated,omitempty"`

	Created *string `json:"created,omitempty"`

	ClusterId *string `json:"cluster_id,omitempty"`

	Status *string `json:"status,omitempty"`

	OpenTSDBLink *string `json:"openTSDB_link,omitempty"`

	TsdPublicEndpoint *string `json:"tsd_public_endpoint,omitempty"`

	LemonLink *string `json:"lemon_link,omitempty"`

	ZookeeperLink *string `json:"zookeeper_link,omitempty"`

	HbasePublicEndpoint *string `json:"hbase_public_endpoint,omitempty"`

	IsFrozen *string `json:"is_frozen,omitempty"`

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

	SubNetId *string `json:"sub_net_id,omitempty"`

	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