models

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster added in v1.0.9

type Cluster struct {

	/* 集群ID (Optional) */
	Id string `json:"id"`

	/* 集群名称 (Optional) */
	Name string `json:"name"`

	/* 集群所属地域 (Optional) */
	DataCenter string `json:"dataCenter"`

	/* 集群ID (Optional) */
	ClusterPrimaryId string `json:"clusterPrimaryId"`

	/* 监控ID (Optional) */
	MonitorResourceId string `json:"monitorResourceId"`

	/* 集群状态 (Optional) */
	Status string `json:"status"`

	/* 软件信息 (Optional) */
	SoftwareStack SoftwareStack `json:"softwareStack"`

	/* 集群创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 集群是否高可用 (Optional) */
	HaFlag bool `json:"haFlag"`

	/* 集群是否使用OSS (Optional) */
	JssFlag bool `json:"jssFlag"`

	/* 集群费用 (Optional) */
	PayPrice float64 `json:"payPrice"`

	/* 集群收费类型 (Optional) */
	PayType string `json:"payType"`

	/* 集群运行时间 (Optional) */
	Duration string `json:"duration"`

	/* 集群节点个数 (Optional) */
	NodeCount int `json:"nodeCount"`

	/* 集群节点信息 (Optional) */
	Hardware []ClusterNode `json:"hardware"`
}

type ClusterExpansion added in v1.0.9

type ClusterExpansion struct {

	/* 集群ID  */
	ClusterId string `json:"clusterId"`

	/* 扩容节点个数  */
	ExpansionNum string `json:"expansionNum"`

	/* 扩容节点类型。 Task:计算节点,Core:存储和计算节点 (Optional) */
	NodeType *string `json:"nodeType"`
}

type ClusterListNode added in v1.47.0

type ClusterListNode struct {

	/* 集群ID (Optional) */
	Id string `json:"id"`

	/* 集群名称 (Optional) */
	Name string `json:"name"`

	/* 集群所属地域 (Optional) */
	DataCenter string `json:"dataCenter"`

	/* 集群ID (Optional) */
	RecordId int `json:"recordId"`

	/* 监控ID (Optional) */
	MonitorResourceId string `json:"monitorResourceId"`

	/* 集群状态 (Optional) */
	Status string `json:"status"`

	/* 错误信息 (Optional) */
	ErrorMessage string `json:"errorMessage"`

	/* 集群创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 集群收费类型 (Optional) */
	PayType string `json:"payType"`

	/* 集群运行时间 (Optional) */
	Duration string `json:"duration"`

	/* 公网Ip (Optional) */
	OuterIp string `json:"outerIp"`
}

type ClusterNode added in v1.44.0

type ClusterNode struct {

	/* 节点ID (Optional) */
	ServerId string `json:"serverId"`

	/* 节点实例信息 (Optional) */
	InstanceInfo string `json:"instanceInfo"`

	/* 节点主机名称 (Optional) */
	NodeName string `json:"nodeName"`

	/* 节点系统盘类型 (Optional) */
	NodeSystemDiskType string `json:"nodeSystemDiskType"`

	/* 节点实例类型 (Optional) */
	InstanceType string `json:"instanceType"`

	/* 节点运行状态 (Optional) */
	NodeStatus string `json:"nodeStatus"`

	/* 节点数据盘类型 (Optional) */
	NodeDiskType string `json:"nodeDiskType"`

	/* 节点类型,MASTER或者SLAVE (Optional) */
	NodeType string `json:"nodeType"`

	/* 节点外网IP (Optional) */
	OuterIp string `json:"outerIp"`

	/* 节点内网IP (Optional) */
	InnerIp string `json:"innerIp"`

	/* 节点系统盘大小(GB) (Optional) */
	NodeSystemDiskVolume int `json:"nodeSystemDiskVolume"`

	/* 节点数据盘大小(GB) (Optional) */
	NodeDiskVolume int `json:"nodeDiskVolume"`

	/* 信息 (Optional) */
	Msg string `json:"msg"`

	/* 节点系统信息 (Optional) */
	NodeSystemInfo string `json:"nodeSystemInfo"`

	/* 节点硬盘类型 (Optional) */
	NodeDiskCategory string `json:"nodeDiskCategory"`

	/* 节点系统盘类型 (Optional) */
	NodeSystemDiskCategory string `json:"nodeSystemDiskCategory"`

	/* 节点数量 (Optional) */
	NodeCoreNum int `json:"nodeCoreNum"`

	/* 节点内存数量 (Optional) */
	NodeMemoryNum int `json:"nodeMemoryNum"`
}

type ClusterNodeDisk added in v1.44.0

type ClusterNodeDisk struct {

	/* 云硬盘ID,暂不提供 (Optional) */
	ClusterNodeDiskId string `json:"clusterNodeDiskId"`

	/* 云硬盘类型 (Optional) */
	ClusterNodeDiskType string `json:"clusterNodeDiskType"`

	/* 云硬盘大小,单位为 GiB (Optional) */
	ClusterNodeDiskSize int `json:"clusterNodeDiskSize"`
}

type ClusterReduction added in v1.47.0

type ClusterReduction struct {

	/* 集群ID  */
	ClusterId string `json:"clusterId"`

	/* 保留的节点个数 (Optional) */
	ReserveNum *string `json:"reserveNum"`

	/* 缩容节点类型。 仅支持 Task ,即计算节点 (Optional) */
	NodeType *string `json:"nodeType"`
}

type ClusterSpec added in v1.44.0

type ClusterSpec struct {

	/* 集群名称(不能少于6字符不能超过20字符,除下划线外不能包含特殊符号)  */
	Name string `json:"name"`

	/* 集群root用户密码(须包含大小写字母、数字及特殊字符其中三类,且不能少于8字符不能超过30字符)  */
	Password string `json:"password"`

	/* 集群版本,默认版本为JMR2.0.0  */
	Version string `json:"version"`

	/* 集群计费类型,支持按配置和包年包月计费 (Optional) */
	PayType *string `json:"payType"`

	/* 主节点数量  */
	MasterNodeCount int `json:"masterNodeCount"`

	/* Master系统硬盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	MasterSystemDiskType string `json:"masterSystemDiskType"`

	/* Master系统硬盘大小,单位GB  */
	MasterSystemDiskVolume int `json:"masterSystemDiskVolume"`

	/* Master系统硬盘iops,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10 (Optional) */
	MasterSystemDiskIops *int `json:"masterSystemDiskIops"`

	/* Master数据盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	MasterDiskType string `json:"masterDiskType"`

	/* Master数据盘大小,单位GB  */
	MasterDiskVolume int `json:"masterDiskVolume"`

	/* Master数据盘ipos,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10 (Optional) */
	MasterDiskIops *int `json:"masterDiskIops"`

	/* master节点规格  */
	MasterInstanceType string `json:"masterInstanceType"`

	/* Slave节点数量  */
	SlaveNodeCount int `json:"slaveNodeCount"`

	/* Slave系统硬盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	SlaveSystemDiskType string `json:"slaveSystemDiskType"`

	/* Slave系统硬盘大小,单位GB  */
	SlaveSystemDiskVolume int `json:"slaveSystemDiskVolume"`

	/* Slave系统硬盘iops,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10 (Optional) */
	SlaveSystemDiskIops *int `json:"slaveSystemDiskIops"`

	/* Slave数据盘类型:ssd.gp1,ssd.io1和hdd.std1  */
	SlaveDiskType string `json:"slaveDiskType"`

	/* Slave数据盘大小,单位GB  */
	SlaveDiskVolume int `json:"slaveDiskVolume"`

	/* Slave数据盘ipos,只有在硬盘类型是ssd.gp1,ssd.io1时,才需要有iops,200起步,步长为10 (Optional) */
	SlaveDiskIops *int `json:"slaveDiskIops"`

	/* slave节点规格  */
	CoreInstanceType string `json:"coreInstanceType"`

	/* 关联JSS  */
	JssFlag bool `json:"jssFlag"`

	/* 数据中心,即regionId  */
	DataCenter string `json:"dataCenter"`

	/* 软件列表  */
	SoftwareList string `json:"softwareList"`

	/* 集群是否为高可用,默认为高可用集群  */
	HaFlag bool `json:"haFlag"`

	/* Vpc网络ID  */
	VpcId string `json:"vpcId"`

	/* Vpc子网ID  */
	VpcSubnetId string `json:"vpcSubnetId"`

	/* 数据中心的可用区  */
	Az string `json:"az"`

	/* 是否创建公网IP (Optional) */
	CreateOuterIpFlag *bool `json:"createOuterIpFlag"`

	/* 是否创建安全组 (Optional) */
	CreateSecurityGroupFlag *bool `json:"createSecurityGroupFlag"`

	/* 安全组ID (Optional) */
	SecurityGroupId *string `json:"securityGroupId"`
}

type MonitorLabelDetail added in v1.47.0

type MonitorLabelDetail struct {

	/* 监控显示名称 (Optional) */
	Label string `json:"label"`

	/* 监控项目代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项目资源代码 (Optional) */
	ResourceId string `json:"resourceId"`

	/* 过滤条件的值 (Optional) */
	Filters []string `json:"filters"`

	/* 监控项目子节点信息 (Optional) */
	Nodes []MonitorLabelNodeDetail `json:"nodes"`
}

type MonitorLabelNodeDetail added in v1.47.0

type MonitorLabelNodeDetail struct {

	/* 监控显示名称 (Optional) */
	Label string `json:"label"`

	/* 监控项目代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项目资源代码 (Optional) */
	ResourceId string `json:"resourceId"`

	/* 过滤条件的值 (Optional) */
	Filters []string `json:"filters"`
}

type SoftwareStack added in v1.47.0

type SoftwareStack struct {

	/* 软件列表 (Optional) */
	Software string `json:"software"`

	/* 版本 (Optional) */
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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