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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNode

type AddNode struct {

	// 服务器ID,获取方式请参见ECS/BMS相关资料。
	ServerID string `json:"serverID"`

	Spec *ReinstallNodeSpec `json:"spec"`
}

AddNode 纳管节点参数。集群内已有节点支持通过重置进行重新安装并接入集群。

func (AddNode) String

func (o AddNode) String() string

type AddNodeList

type AddNodeList struct {

	// API版本,固定值“v3”。
	ApiVersion string `json:"apiVersion"`

	// API类型,固定值“List”。
	Kind string `json:"kind"`

	// 纳管节点列表
	NodeList []AddNode `json:"nodeList"`
}

AddNodeList 重置节点参数。集群内已有节点,支持通过重置节点方式进行重新安装并接入集群,纳管过程将清理节点上系统盘、数据盘数据,并作为新节点接入Kuberntes集群,请提前备份迁移关键数据。

func (AddNodeList) String

func (o AddNodeList) String() string

type AddNodeRequest

type AddNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

AddNodeRequest Request Object

func (AddNodeRequest) String

func (o AddNodeRequest) String() string

type AddNodeResponse

type AddNodeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	Jobid          *string `json:"jobid,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddNodeResponse Response Object

func (AddNodeResponse) String

func (o AddNodeResponse) String() string

type AddonInstance

type AddonInstance struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind string `json:"kind"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion string `json:"apiVersion"`

	Metadata *AddonMetadata `json:"metadata,omitempty"`

	Spec *InstanceSpec `json:"spec"`

	Status *AddonInstanceStatus `json:"status"`
}

AddonInstance 插件实例详细信息-response结构体

func (AddonInstance) String

func (o AddonInstance) String() string

type AddonInstanceStatus

type AddonInstanceStatus struct {

	// 插件实例状态
	Status AddonInstanceStatusStatus `json:"status"`

	// 插件安装失败原因
	Reason string `json:"Reason"`

	// 安装错误详情
	Message string `json:"message"`

	// 此插件版本,支持升级的集群版本
	TargetVersions *[]string `json:"targetVersions,omitempty"`

	CurrentVersion *Versions `json:"currentVersion"`
}

AddonInstanceStatus 插件状态信息

func (AddonInstanceStatus) String

func (o AddonInstanceStatus) String() string

type AddonInstanceStatusStatus

type AddonInstanceStatusStatus struct {
	// contains filtered or unexported fields
}

func (AddonInstanceStatusStatus) MarshalJSON

func (c AddonInstanceStatusStatus) MarshalJSON() ([]byte, error)

func (*AddonInstanceStatusStatus) UnmarshalJSON

func (c *AddonInstanceStatusStatus) UnmarshalJSON(b []byte) error

func (AddonInstanceStatusStatus) Value

type AddonMetadata

type AddonMetadata struct {

	// 唯一id标识
	Uid *string `json:"uid,omitempty"`

	// 插件名称
	Name *string `json:"name,omitempty"`

	// 插件别名
	Alias *string `json:"alias,omitempty"`

	// 插件标签,key/value对格式,接口保留字段,填写不会生效
	Labels map[string]string `json:"labels,omitempty"`

	// 插件注解,由key/value组成 - 安装:固定值为{\"addon.install/type\":\"install\"} - 升级:固定值为{\"addon.upgrade/type\":\"upgrade\"}
	Annotations map[string]string `json:"annotations,omitempty"`

	// 更新时间
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`

	// 创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`
}

AddonMetadata 插件基本信息,集合类的元素类型,包含一组由不同名称定义的属性。

func (AddonMetadata) String

func (o AddonMetadata) String() string

type AddonTemplate

type AddonTemplate struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind string `json:"kind"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion string `json:"apiVersion"`

	Metadata *AddonMetadata `json:"metadata"`

	Spec *Templatespec `json:"spec"`
}

AddonTemplate 插件模板详情-response结构体

func (AddonTemplate) String

func (o AddonTemplate) String() string

type ApiVersionDetail

type ApiVersionDetail struct {

	// API版本ID。例如v3。
	Id string `json:"id"`

	// API版本的URL链接信息。
	Links []ApiVersionLink `json:"links"`

	// 如果API的这个版本支持微版本,则支持最小的微版本。如果不支持微版本,这将是空字符串。
	MinVersion string `json:"min_version"`

	// API版本的状态。 可以是: - CURRENT这是使用的API的首选版本; - SUPPORTED:这是一个较老的,但仍然支持的API版本; - DEPRECATED:一个被废弃的API版本,该版本将被删除
	Status ApiVersionDetailStatus `json:"status"`

	// API发布时间(UTC格式)。例如API版本为v3时,值为'2018-09-15 00:00:00Z'。
	Updated string `json:"updated"`

	// 如果API的这个版本支持微版本,则支持最大的微版本。如果不支持微版本,这将是空字符串。
	Version string `json:"version"`
}

ApiVersionDetail API版本的详细信息

func (ApiVersionDetail) String

func (o ApiVersionDetail) String() string

type ApiVersionDetailStatus

type ApiVersionDetailStatus struct {
	// contains filtered or unexported fields
}

func (ApiVersionDetailStatus) MarshalJSON

func (c ApiVersionDetailStatus) MarshalJSON() ([]byte, error)

func (*ApiVersionDetailStatus) UnmarshalJSON

func (c *ApiVersionDetailStatus) UnmarshalJSON(b []byte) error

func (ApiVersionDetailStatus) Value

func (c ApiVersionDetailStatus) Value() string

type ApiVersionDetailStatusEnum

type ApiVersionDetailStatusEnum struct {
	CURRENT    ApiVersionDetailStatus
	SUPPORTED  ApiVersionDetailStatus
	DEPRECATED ApiVersionDetailStatus
}

func GetApiVersionDetailStatusEnum

func GetApiVersionDetailStatusEnum() ApiVersionDetailStatusEnum
type ApiVersionLink struct {

	// API版本信息的链接。
	Href string `json:"href"`

	// 链接属性。self:自助链接包含版本链接的资源。立即链接后使用这些链接。
	Rel ApiVersionLinkRel `json:"rel"`
}

ApiVersionLink API版本的URL链接信息。

func (ApiVersionLink) String

func (o ApiVersionLink) String() string

type ApiVersionLinkRel

type ApiVersionLinkRel struct {
	// contains filtered or unexported fields
}

func (ApiVersionLinkRel) MarshalJSON

func (c ApiVersionLinkRel) MarshalJSON() ([]byte, error)

func (*ApiVersionLinkRel) UnmarshalJSON

func (c *ApiVersionLinkRel) UnmarshalJSON(b []byte) error

func (ApiVersionLinkRel) Value

func (c ApiVersionLinkRel) Value() string

type ApiVersionLinkRelEnum

type ApiVersionLinkRelEnum struct {
	SELF ApiVersionLinkRel
}

func GetApiVersionLinkRelEnum

func GetApiVersionLinkRelEnum() ApiVersionLinkRelEnum

type AuthenticatingProxy

type AuthenticatingProxy struct {

	// authenticating_proxy模式配置的x509格式CA证书(base64编码)。当集群认证模式为authenticating_proxy时,此项必须填写。   最大长度:1M
	Ca *string `json:"ca,omitempty"`

	// authenticating_proxy模式配置的x509格式CA证书签发的客户端证书,用于kube-apiserver到扩展apiserver的认证。(base64编码)。当集群认证模式为authenticating_proxy时,此项必须填写。
	Cert *string `json:"cert,omitempty"`

	// authenticating_proxy模式配置的x509格式CA证书签发的客户端证书时对应的私钥,用于kube-apiserver到扩展apiserver的认证。Kubernetes集群使用的私钥尚不支持密码加密,请使用未加密的私钥。(base64编码)。当集群认证模式为authenticating_proxy时,此项必须填写。
	PrivateKey *string `json:"privateKey,omitempty"`
}

AuthenticatingProxy authenticatingProxy模式相关配置。认证模式为authenticating_proxy时必选

func (AuthenticatingProxy) String

func (o AuthenticatingProxy) String() string

type Authentication

type Authentication struct {

	// 集群认证模式。 - kubernetes 1.11及之前版本的集群支持“x509”、“rbac”和“authenticating_proxy”,默认取值为“x509”。 - kubernetes 1.13及以上版本的集群支持“rbac”和“authenticating_proxy”,默认取值为“rbac”。
	Mode *string `json:"mode,omitempty"`

	AuthenticatingProxy *AuthenticatingProxy `json:"authenticatingProxy,omitempty"`
}

Authentication

func (Authentication) String

func (o Authentication) String() string

type AwakeClusterRequest

type AwakeClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

AwakeClusterRequest Request Object

func (AwakeClusterRequest) String

func (o AwakeClusterRequest) String() string

type AwakeClusterResponse

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

AwakeClusterResponse Response Object

func (AwakeClusterResponse) String

func (o AwakeClusterResponse) String() string

type CertDuration

type CertDuration struct {

	// 集群证书有效时间,单位为天,最小值为1,最大值为10950(30*365,1年固定计365天,忽略闰年影响);若填-1则为最大值30年。
	Duration int32 `json:"duration"`
}

CertDuration 集群证书有效期

func (CertDuration) String

func (o CertDuration) String() string

type Cluster

type Cluster struct {

	// API类型,固定值“Cluster”或“cluster”,该值不可修改。
	Kind string `json:"kind"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion string `json:"apiVersion"`

	Metadata *ClusterMetadata `json:"metadata"`

	Spec *ClusterSpec `json:"spec"`

	Status *ClusterStatus `json:"status,omitempty"`
}

Cluster

func (Cluster) String

func (o Cluster) String() string

type ClusterCert

type ClusterCert struct {

	// 服务器地址。
	Server *string `json:"server,omitempty"`

	// 证书授权数据。
	CertificateAuthorityData *string `json:"certificate-authority-data,omitempty"`

	// 不校验服务端证书,在 cluster 类型为 externalCluster 时,该值为 true。
	InsecureSkipTlsVerify *bool `json:"insecure-skip-tls-verify,omitempty"`
}

func (ClusterCert) String

func (o ClusterCert) String() string

type ClusterEndpoints

type ClusterEndpoints struct {

	// 集群中 kube-apiserver 的访问地址
	Url *string `json:"url,omitempty"`

	// 集群访问地址的类型 - Internal:用户子网内访问的地址 - External:公网访问的地址
	Type *string `json:"type,omitempty"`
}

func (ClusterEndpoints) String

func (o ClusterEndpoints) String() string

type ClusterExtendParam

type ClusterExtendParam struct {

	// 集群控制节点可用区配置。  [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?CCE)](tag:hws) [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/intl/zh-cn/endpoint?CCE)](tag:hws_hk)  - multi_az:多可用区,可选。仅使用高可用集群时才可以配置多可用区。 - 专属云计算池可用区:用于指定专属云可用区部署集群控制节点。如果需配置专属CCE集群,该字段为必选。
	ClusterAZ *string `json:"clusterAZ,omitempty"`

	// 用于指定控制节点的系统盘和数据盘使用专属分布式存储,未指定或者值为空时,默认使用EVS云硬盘。  如果配置专属CCE集群,该字段为必选,请按照如下格式设置:  “` <rootVol.dssPoolID>.<rootVol.volType>;<dataVol.dssPoolID>.<dataVol.volType> “`  字段说明: - rootVol为系统盘;dataVol为数据盘; - dssPoolID为专属分布式存储池ID; - volType为专属分布式存储池的存储类型,如SAS、SSD。  样例:c950ee97-587c-4f24-8a74-3367e3da570f.sas;6edbc2f4-1507-44f8-ac0d-eed1d2608d38.ssd  > 非专属CCE集群不支持配置该字段。
	DssMasterVolumes *string `json:"dssMasterVolumes,omitempty"`

	// 集群所属的企业项目ID。 >   - 需要开通企业项目功能后才可配置企业项目。 >   - 集群所属的企业项目与集群下所关联的其他云服务资源所属的企业项目必须保持一致。
	EnterpriseProjectId *string `json:"enterpriseProjectId,omitempty"`

	// 服务转发模式,支持以下两种实现:  - iptables:社区传统的kube-proxy模式,完全以iptables规则的方式来实现service负载均衡。该方式最主要的问题是在服务多的时候产生太多的iptables规则,非增量式更新会引入一定的时延,大规模情况下有明显的性能问题 - ipvs:主导开发并在社区获得广泛支持的kube-proxy模式,采用增量式更新,吞吐更高,速度更快,并可以保证service更新期间连接保持不断开,适用于大规模场景。  > 此参数已废弃,若同时指定此参数和ClusterSpec下的kubeProxyMode,以ClusterSpec下的为准。
	KubeProxyMode *string `json:"kubeProxyMode,omitempty"`

	// master 弹性公网IP
	ClusterExternalIP *string `json:"clusterExternalIP,omitempty"`

	// 容器网络固定IP池掩码位数,仅vpc-router网络支持。  该参数决定节点可分配容器IP数量,与创建节点时设置的maxPods参数共同决定节点最多可以创建多少个Pod, 具体请参见[节点最多可以创建多少Pod](maxPods.xml)。   整数字符传取值范围: 24 ~ 28
	AlphaCceFixPoolMask *string `json:"alpha.cce/fixPoolMask,omitempty"`

	// 专属CCE集群指定可控制节点的规格。
	DecMasterFlavor *string `json:"decMasterFlavor,omitempty"`

	// 集群默认Docker的UmaskMode配置,可取值为secure或normal,不指定时默认为normal。
	DockerUmaskMode *string `json:"dockerUmaskMode,omitempty"`

	// 集群CPU管理策略。取值为none或static,默认为none。 - none:关闭工作负载实例独占CPU核的功能,优点是CPU共享池的可分配核数较多 - static:支持给节点上的工作负载实例配置CPU独占,适用于对CPU缓存和调度延迟敏感的工作负载[,Turbo集群下仅对普通容器节点有效,安全容器节点无效](tag:hws,hws_hk,dt)。
	KubernetesIoCpuManagerPolicy *string `json:"kubernetes.io/cpuManagerPolicy,omitempty"`

	// 订单ID,集群付费类型为自动付费包周期类型时,响应中会返回此字段。
	OrderID *string `json:"orderID,omitempty"`

	// - month:月 - year:年 > billingMode为1(包周期)时生效,且为必选。
	PeriodType *string `json:"periodType,omitempty"`

	// 订购周期数,取值范围: - periodType=month(周期类型为月)时,取值为[1-9]。 - periodType=year(周期类型为年)时,取值为1-3。 > billingMode为1时生效,且为必选。
	PeriodNum *int32 `json:"periodNum,omitempty"`

	// 是否自动续订 - “true”:自动续订 - “false”:不自动续订 > billingMode为1时生效,不填写此参数时默认不会自动续费。
	IsAutoRenew *string `json:"isAutoRenew,omitempty"`

	// 是否自动扣款 - “true”:自动扣款 - “false”:不自动扣款 > billingMode为1时生效,不填写此参数时默认不会自动扣款。
	IsAutoPay *string `json:"isAutoPay,omitempty"`

	// 记录集群通过何种升级方式升级到当前版本。
	Upgradefrom *string `json:"upgradefrom,omitempty"`
}

func (ClusterExtendParam) String

func (o ClusterExtendParam) String() string

type ClusterInformation

type ClusterInformation struct {
	Spec *ClusterInformationSpec `json:"spec"`

	Metadata *ClusterMetadataForUpdate `json:"metadata,omitempty"`
}

ClusterInformation

func (ClusterInformation) String

func (o ClusterInformation) String() string

type ClusterInformationSpec

type ClusterInformationSpec struct {

	// 集群的描述信息。  1. 字符取值范围[0,200]。不包含~$%^&*<>[]{}()'\"#\\等特殊字符。 2. 仅运行和扩容状态(Available、ScalingUp、ScalingDown)的集群允许修改。
	Description *string `json:"description,omitempty"`

	// 集群的API Server服务端证书中的自定义SAN(Subject Alternative Name)字段,遵从SSL标准X509定义的格式规范。  1. 不允许出现同名重复。 2. 格式符合IP和域名格式。  示例: “` SAN 1: DNS Name=example.com SAN 2: DNS Name=www.example.com SAN 3: DNS Name=example.net SAN 4: IP Address=93.184.216.34 “`
	CustomSan *[]string `json:"customSan,omitempty"`

	ContainerNetwork *ContainerNetworkUpdate `json:"containerNetwork,omitempty"`

	EniNetwork *EniNetworkUpdate `json:"eniNetwork,omitempty"`

	HostNetwork *ClusterInformationSpecHostNetwork `json:"hostNetwork,omitempty"`
}

ClusterInformationSpec

func (ClusterInformationSpec) String

func (o ClusterInformationSpec) String() string

type ClusterInformationSpecHostNetwork

type ClusterInformationSpecHostNetwork struct {

	// 集群默认Node节点安全组需要放通部分端口来保证正常通信,[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/cce_faq/cce_faq_00265.html)。](tag:hws)[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/intl/zh-cn/cce_faq/cce_faq_00265.html)。](tag:hws_hk) 修改后的安全组只作用于新创建的节点和新纳管的节点,存量节点的安全组需手动修改。
	SecurityGroup *string `json:"SecurityGroup,omitempty"`
}

ClusterInformationSpecHostNetwork 节点网络参数,包含了Node节点默认安群组设置

func (ClusterInformationSpecHostNetwork) String

type ClusterMetadata

type ClusterMetadata struct {

	// 集群名称。  命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围4-128位,且不能以中划线(-)结尾。
	Name string `json:"name"`

	// 集群ID,资源唯一标识,创建成功后自动生成,填写无效
	Uid *string `json:"uid,omitempty"`

	// 集群显示名,用于在 CCE 界面显示,该名称创建后可修改。  命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围4-128位,且不能以中划线(-)结尾。  显示名和其他集群的名称、显示名不可以重复。  在创建集群、更新集群请求体中,集群显示名alias未指定或取值为空,表示与集群名称name一致。在查询集群等响应体中,集群显示名alias将必然返回,未配置时将返回集群名称name。
	Alias *string `json:"alias,omitempty"`

	// 集群注解,由key/value组成:  “` \"annotations\": {    \"key1\" : \"value1\",    \"key2\" : \"value2\" } “`  >    - Annotations不用于标识和选择对象。Annotations中的元数据可以是small或large,structured或unstructured,并且可以包括标签不允许使用的字符。 >    - 该字段不会被数据库保存,当前仅用于指定集群待安装插件。 >    - 可通过加入\"cluster.install.addons.external/install\":\"[{\"addonTemplateName\":\"icagent\"}]\"的键值对在创建集群时安装ICAgent。
	Annotations map[string]string `json:"annotations,omitempty"`

	// 集群标签,key/value对格式。  >  该字段值由系统自动生成,用于升级时前端识别集群支持的特性开关,用户指定无效。
	Labels map[string]string `json:"labels,omitempty"`

	// 集群创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	// 集群更新时间
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`
}

ClusterMetadata 可以通过 annotations[\"cluster.install.addons/install\"] 来指定创建集群时需要安装的插件,格式形如 ``` [ { \"addonTemplateName\": \"autoscaler\", \"version\": \"1.15.3\", \"values\": { \"flavor\": { \"description\": \"Has only one instance\", \"name\": \"Single\", \"replicas\": 1, \"resources\": [ { \"limitsCpu\": \"100m\", \"limitsMem\": \"300Mi\", \"name\": \"autoscaler\", \"requestsCpu\": \"100m\", \"requestsMem\": \"300Mi\" } ] }, \"custom\": { \"coresTotal\": 32000, \"maxEmptyBulkDeleteFlag\": 10, \"maxNodesTotal\": 1000, \"memoryTotal\": 128000, \"scaleDownDelayAfterAdd\": 10, \"scaleDownDelayAfterDelete\": 10, \"scaleDownDelayAfterFailure\": 3, \"scaleDownEnabled\": false, \"scaleDownUnneededTime\": 10, \"scaleDownUtilizationThreshold\": 0.5, \"scaleUpCpuUtilizationThreshold\": 1, \"scaleUpMemUtilizationThreshold\": 1, \"scaleUpUnscheduledPodEnabled\": true, \"scaleUpUtilizationEnabled\": true, \"tenant_id\": \"47eb1d64cbeb45cfa01ae20af4f4b563\", \"unremovableNodeRecheckTimeout\": 5 } } } ] ```

func (ClusterMetadata) String

func (o ClusterMetadata) String() string

type ClusterMetadataForUpdate

type ClusterMetadataForUpdate struct {

	// 集群显示名。  命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围4-128位,且不能以中划线(-)结尾。  显示名和其他集群的名称、显示名不可以重复。  为空时表示不进行修改。
	Alias *string `json:"alias,omitempty"`
}

func (ClusterMetadataForUpdate) String

func (o ClusterMetadataForUpdate) String() string

type ClusterNodeInformation

type ClusterNodeInformation struct {
	Metadata *ClusterNodeInformationMetadata `json:"metadata"`
}

ClusterNodeInformation

func (ClusterNodeInformation) String

func (o ClusterNodeInformation) String() string

type ClusterNodeInformationMetadata

type ClusterNodeInformationMetadata struct {

	// 节点名称  > 修改节点名称后,弹性云服务器名称(虚拟机名称)会同步修改。 > 命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围1-56位,且不能以中划线(-)结尾。
	Name string `json:"name"`
}

ClusterNodeInformationMetadata

func (ClusterNodeInformationMetadata) String

type ClusterSpec

type ClusterSpec struct {

	// 集群类别: - CCE:CCE集群   CCE集群支持虚拟机与裸金属服务器混合、GPU、NPU等异构节点的混合部署,基于高性能网络模型提供全方位、多场景、安全稳定的容器运行环境。 [- Turbo: CCE Turbo集群。   全面基于云原生基础设施构建的云原生2.0的容器引擎服务,具备软硬协同、网络无损、安全可靠、调度智能的优势,为用户提供一站式、高性价比的全新容器服务体验。](tag:hws,hws_hk,dt)
	Category *ClusterSpecCategory `json:"category,omitempty"`

	// 集群Master节点架构:  - VirtualMachine:Master节点为x86架构服务器 [- ARM64: Master节点为鲲鹏(ARM架构)服务器](tag:hws,hws_hk)
	Type *ClusterSpecType `json:"type,omitempty"`

	// 字段默认值:创建CCE集群[或鲲鹏集群](tag:hws,hws_hk)时,如果是非专属云为cce.s1.small,专属云则为cce.dec.s1.small;  集群规格,集群创建完成后规格不可再变更,请按实际业务需求进行选择: - cce.s1.small: 小规模单控制节点CCE集群(最大50节点) - cce.s1.medium: 中等规模单控制节点CCE集群(最大200节点) - cce.s2.small: 小规模多控制节点CCE集群(最大50节点) - cce.s2.medium: 中等规模多控制节点CCE集群(最大200节点) - cce.s2.large: 大规模多控制节点CCE集群(最大1000节点) - cce.s2.xlarge: 超大规模多控制节点CCE集群(最大2000节点)  >    - s1:单控制节点CCE集群。 >    - s2:多控制节点CCE集群。 >    - dec:专属CCE集群规格。如cce.dec.s1.small为小规模单控制节点专属CCE集群(最大50节点)。 >    - 最大节点数:当前集群支持管理的最大节点规模,请根据业务需求选择。 >    - 单控制节点集群:普通集群是单控制节点,控制节点故障后,集群将不可用,但已运行工作负载不受影响。 >    - 多控制节点集群:即高可用集群,当某个控制节点故障时,集群仍然可用。
	Flavor string `json:"flavor"`

	// 集群版本,与Kubernetes社区基线版本保持一致,建议选择最新版本。  在CCE控制台支持创建两种最新版本的集群。可登录CCE控制台创建集群,在“版本”处获取到集群版本。 其它集群版本,当前仍可通过api创建,但后续会逐渐下线,具体下线策略请关注CCE官方公告。  >    - 若不配置,默认创建最新版本的集群。 >    - 若指定集群基线版本但是不指定具体r版本,则系统默认选择对应集群版本的最新r版本。建议不指定具体r版本由系统选择最新版本。 >    - Turbo集群支持1.19及以上版本商用。
	Version *string `json:"version,omitempty"`

	// CCE集群平台版本号,表示集群版本(version)下的内部版本。用于跟踪某一集群版本内的迭代,集群版本内唯一,跨集群版本重新计数。不支持用户指定,集群创建时自动选择对应集群版本的最新平台版本。  platformVersion格式为:cce.X.Y - X: 表示内部特性版本。集群版本中特性或者补丁修复,或者OS支持等变更场景。其值从1开始单调递增。 - Y: 表示内部特性版本的补丁版本。仅用于特性版本上线后的软件包更新,不涉及其他修改。其值从0开始单调递增。
	PlatformVersion *string `json:"platformVersion,omitempty"`

	// 集群描述,对于集群使用目的的描述,可根据实际情况自定义,默认为空。集群创建成功后可通过接口[更新指定的集群](cce_02_0240.xml)来做出修改,也可在CCE控制台中对应集群的“集群详情”下的“描述”处进行修改。仅支持utf-8编码。
	Description *string `json:"description,omitempty"`

	// 集群的API Server服务端证书中的自定义SAN(Subject Alternative Name)字段,遵从SSL标准X509定义的格式规范。  1. 不允许出现同名重复。 2. 格式符合IP和域名格式。  示例: “` SAN 1: DNS Name=example.com SAN 2: DNS Name=www.example.com SAN 3: DNS Name=example.net SAN 4: IP Address=93.184.216.34 “`
	CustomSan *[]string `json:"customSan,omitempty"`

	// 集群是否使用IPv6模式,1.15版本及以上支持。
	Ipv6enable *bool `json:"ipv6enable,omitempty"`

	// CCE Turbo集群
	OffloadCluster *bool `json:"offloadCluster,omitempty"`

	HostNetwork *HostNetwork `json:"hostNetwork"`

	ContainerNetwork *ContainerNetwork `json:"containerNetwork"`

	EniNetwork *EniNetwork `json:"eniNetwork,omitempty"`

	Authentication *Authentication `json:"authentication,omitempty"`

	// 集群的计费方式。 - 0: 按需计费 [- 1: 包周期](tag:hws,hws_hk)  默认为“按需计费”。
	BillingMode *int32 `json:"billingMode,omitempty"`

	// 控制节点的高级配置
	Masters *[]MasterSpec `json:"masters,omitempty"`

	// 服务网段参数,kubernetes clusterIp取值范围,1.11.7版本及以上支持。
	KubernetesSvcIpRange *string `json:"kubernetesSvcIpRange,omitempty"`

	// 集群资源标签
	ClusterTags *[]ResourceTag `json:"clusterTags,omitempty"`

	// 服务转发模式,支持以下两种实现:  - iptables:社区传统的kube-proxy模式,完全以iptables规则的方式来实现service负载均衡。该方式最主要的问题是在服务多的时候产生太多的iptables规则,非增量式更新会引入一定的时延,大规模情况下有明显的性能问题。 - ipvs:主导开发并在社区获得广泛支持的kube-proxy模式,采用增量式更新,吞吐更高,速度更快,并可以保证service更新期间连接保持不断开,适用于大规模场景。
	KubeProxyMode *ClusterSpecKubeProxyMode `json:"kubeProxyMode,omitempty"`

	// 可用区(仅查询返回字段)。  [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?CCE)](tag:hws)  [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/intl/zh-cn/endpoint?CCE)](tag:hws_hk)
	Az *string `json:"az,omitempty"`

	ExtendParam *ClusterExtendParam `json:"extendParam,omitempty"`

	// 支持Istio
	SupportIstio *bool `json:"supportIstio,omitempty"`

	// 覆盖集群默认组件配置  若指定了不支持的组件或组件不支持的参数,该配置项将被忽略。  当前支持的可配置组件及其参数详见 [[配置管理](https://support.huaweicloud.com/usermanual-cce/cce_10_0213.html)](tag:hws) [[配置管理](https://support.huaweicloud.com/intl/zh-cn/usermanual-cce/cce_10_0213.html)](tag:hws_hk)
	ConfigurationsOverride *[]PackageConfiguration `json:"configurationsOverride,omitempty"`
}

ClusterSpec 集群参数定义。

func (ClusterSpec) String

func (o ClusterSpec) String() string

type ClusterSpecCategory

type ClusterSpecCategory struct {
	// contains filtered or unexported fields
}

func (ClusterSpecCategory) MarshalJSON

func (c ClusterSpecCategory) MarshalJSON() ([]byte, error)

func (*ClusterSpecCategory) UnmarshalJSON

func (c *ClusterSpecCategory) UnmarshalJSON(b []byte) error

func (ClusterSpecCategory) Value

func (c ClusterSpecCategory) Value() string

type ClusterSpecCategoryEnum

type ClusterSpecCategoryEnum struct {
	CCE   ClusterSpecCategory
	TURBO ClusterSpecCategory
}

func GetClusterSpecCategoryEnum

func GetClusterSpecCategoryEnum() ClusterSpecCategoryEnum

type ClusterSpecKubeProxyMode

type ClusterSpecKubeProxyMode struct {
	// contains filtered or unexported fields
}

func (ClusterSpecKubeProxyMode) MarshalJSON

func (c ClusterSpecKubeProxyMode) MarshalJSON() ([]byte, error)

func (*ClusterSpecKubeProxyMode) UnmarshalJSON

func (c *ClusterSpecKubeProxyMode) UnmarshalJSON(b []byte) error

func (ClusterSpecKubeProxyMode) Value

func (c ClusterSpecKubeProxyMode) Value() string

type ClusterSpecKubeProxyModeEnum

type ClusterSpecKubeProxyModeEnum struct {
	IPTABLES ClusterSpecKubeProxyMode
	IPVS     ClusterSpecKubeProxyMode
}

func GetClusterSpecKubeProxyModeEnum

func GetClusterSpecKubeProxyModeEnum() ClusterSpecKubeProxyModeEnum

type ClusterSpecType

type ClusterSpecType struct {
	// contains filtered or unexported fields
}

func (ClusterSpecType) MarshalJSON

func (c ClusterSpecType) MarshalJSON() ([]byte, error)

func (*ClusterSpecType) UnmarshalJSON

func (c *ClusterSpecType) UnmarshalJSON(b []byte) error

func (ClusterSpecType) Value

func (c ClusterSpecType) Value() string

type ClusterSpecTypeEnum

type ClusterSpecTypeEnum struct {
	VIRTUAL_MACHINE ClusterSpecType
	ARM64           ClusterSpecType
}

func GetClusterSpecTypeEnum

func GetClusterSpecTypeEnum() ClusterSpecTypeEnum

type ClusterStatus

type ClusterStatus struct {

	// 集群状态,取值如下 - Available:可用,表示集群处于正常状态。 - Unavailable:不可用,表示集群异常,需手动删除。 - ScalingUp:扩容中,表示集群正处于扩容过程中。 - ScalingDown:缩容中,表示集群正处于缩容过程中。 - Creating:创建中,表示集群正处于创建过程中。 - Deleting:删除中,表示集群正处于删除过程中。 - Upgrading:升级中,表示集群正处于升级过程中。 - Resizing:规格变更中,表示集群正处于变更规格中。 - RollingBack:回滚中,表示集群正处于回滚过程中。 - RollbackFailed:回滚异常,表示集群回滚异常。 - Empty:集群无任何资源
	Phase *string `json:"phase,omitempty"`

	// 作业ID
	JobID *string `json:"jobID,omitempty"`

	// 集群变为当前状态的原因,在集群在非“Available”状态下时,会返回此参数。
	Reason *string `json:"reason,omitempty"`

	// 集群变为当前状态的原因的详细信息,在集群在非“Available”状态下时,会返回此参数。
	Message *string `json:"message,omitempty"`

	// 集群中 kube-apiserver 的访问地址。
	Endpoints *[]ClusterEndpoints `json:"endpoints,omitempty"`

	// CBC资源锁定
	IsLocked *bool `json:"isLocked,omitempty"`

	// CBC资源锁定场景
	LockScene *string `json:"lockScene,omitempty"`

	// 锁定资源
	LockSource *string `json:"lockSource,omitempty"`

	// 锁定的资源ID
	LockSourceId *string `json:"lockSourceId,omitempty"`

	// 删除配置状态(仅删除请求响应包含)
	DeleteOption *interface{} `json:"deleteOption,omitempty"`

	// 删除状态信息(仅删除请求响应包含)
	DeleteStatus *interface{} `json:"deleteStatus,omitempty"`
}

ClusterStatus

func (ClusterStatus) String

func (o ClusterStatus) String() string

type ClusterUpgradeAction

type ClusterUpgradeAction struct {

	// 插件配置列表
	Addons *[]UpgradeAddonConfig `json:"addons,omitempty"`

	// 节点池内节点升级顺序配置。 > key表示节点池ID,默认节点池取值为\"DefaultPool\"
	NodeOrder map[string][]NodePriority `json:"nodeOrder,omitempty"`

	// 节点池升级顺序配置,key/value对格式。 > key表示节点池ID,默认节点池取值为\"DefaultPool\" > value表示对应节点池的优先级,默认值为0,优先级最低,数值越大优先级越高
	NodePoolOrder map[string]int32 `json:"nodePoolOrder,omitempty"`

	Strategy *UpgradeStrategy `json:"strategy"`

	// 目标集群版本,例如\"v1.23\"
	TargetVersion string `json:"targetVersion"`
}

func (ClusterUpgradeAction) String

func (o ClusterUpgradeAction) String() string

type ClusterUpgradeResponseAction

type ClusterUpgradeResponseAction struct {

	// 当前集群版本
	Version *string `json:"version,omitempty"`

	// 目标集群版本,例如\"v1.23\"
	TargetVersion *string `json:"targetVersion,omitempty"`

	// 目标集群的平台版本号,表示集群版本(version)下的内部版本,不支持用户指定。
	TargetPlatformVersion *string `json:"targetPlatformVersion,omitempty"`

	Strategy *UpgradeStrategy `json:"strategy,omitempty"`

	// 升级过程中指定的集群配置
	Config *interface{} `json:"config,omitempty"`
}

func (ClusterUpgradeResponseAction) String

type Clusters

type Clusters struct {

	// 集群名字。 - 若不存在publicIp(虚拟机弹性IP),则集群列表的集群数量为1,该字段值为“internalCluster”。 - 若存在publicIp,则集群列表的集群数量大于1,所有扩展的cluster的name的值为“externalCluster”。
	Name *string `json:"name,omitempty"`

	Cluster *ClusterCert `json:"cluster,omitempty"`
}

func (Clusters) String

func (o Clusters) String() string

type ConfigurationItem

type ConfigurationItem struct {

	// 组件配置项名称
	Name *string `json:"name,omitempty"`

	// 组件配置项值
	Value *interface{} `json:"value,omitempty"`
}

func (ConfigurationItem) String

func (o ConfigurationItem) String() string

type ContainerCidr

type ContainerCidr struct {

	// 容器网络网段,建议使用网段10.0.0.0/12~19,172.16.0.0/16~19,192.168.0.0/16~19。
	Cidr string `json:"cidr"`
}

ContainerCidr 容器网络网段,指定cidrs字段使用时必填。

func (ContainerCidr) String

func (o ContainerCidr) String() string

type ContainerNetwork

type ContainerNetwork struct {

	// 容器网络类型(只可选择其一) - overlay_l2:容器隧道网络,通过OVS(OpenVSwitch)为容器构建的overlay_l2网络。 - vpc-router:VPC网络,使用ipvlan和自定义VPC路由为容器构建的Underlay的l2网络。 [- eni:云原生网络2.0,深度整合VPC原生ENI弹性网卡能力,采用VPC网段分配容器地址,支持ELB直通容器,享有高性能,创建CCE Turbo集群时指定。](tag:hws,hws_hk,dt)
	Mode ContainerNetworkMode `json:"mode"`

	// 容器网络网段,建议使用网段10.0.0.0/12~19,172.16.0.0/16~19,192.168.0.0/16~19,如存在网段冲突,将会报错。  此参数在集群创建后不可更改,请谨慎选择。(已废弃,如填写cidrs将忽略该cidr)
	Cidr *string `json:"cidr,omitempty"`

	// 容器网络网段列表。1.21及新版本集群使用cidrs字段,当集群网络类型为vpc-router类型时,支持多个容器网段;1.21之前版本若使用cidrs字段,则取值cidrs数组中的第一个cidr元素作为容器网络网段地址。  此参数在集群创建后不可更改,请谨慎选择。
	Cidrs *[]ContainerCidr `json:"cidrs,omitempty"`
}

ContainerNetwork Container network parameters.

func (ContainerNetwork) String

func (o ContainerNetwork) String() string

type ContainerNetworkMode

type ContainerNetworkMode struct {
	// contains filtered or unexported fields
}

func (ContainerNetworkMode) MarshalJSON

func (c ContainerNetworkMode) MarshalJSON() ([]byte, error)

func (*ContainerNetworkMode) UnmarshalJSON

func (c *ContainerNetworkMode) UnmarshalJSON(b []byte) error

func (ContainerNetworkMode) Value

func (c ContainerNetworkMode) Value() string

type ContainerNetworkModeEnum

type ContainerNetworkModeEnum struct {
	OVERLAY_L2 ContainerNetworkMode
	VPC_ROUTER ContainerNetworkMode
	ENI        ContainerNetworkMode
}

func GetContainerNetworkModeEnum

func GetContainerNetworkModeEnum() ContainerNetworkModeEnum

type ContainerNetworkUpdate

type ContainerNetworkUpdate struct {

	// 容器网络网段列表。1.21及新版本集群,当集群网络类型为vpc-router时,支持增量添加容器网段。  此参数在集群更新后不可更改,请谨慎选择。
	Cidrs *[]ContainerCidr `json:"cidrs,omitempty"`
}

func (ContainerNetworkUpdate) String

func (o ContainerNetworkUpdate) String() string

type Context

type Context struct {

	// 上下文cluster信息。
	Cluster *string `json:"cluster,omitempty"`

	// 上下文user信息。
	User *string `json:"user,omitempty"`
}

func (Context) String

func (o Context) String() string

type Contexts

type Contexts struct {

	// 上下文的名称。 - 若不存在publicIp(虚拟机弹性IP),则集群列表的集群数量为1,该字段值为“internal”。 - 若存在publicIp,则集群列表的集群数量大于1,所有扩展的context的name的值为“external”。
	Name *string `json:"name,omitempty"`

	Context *Context `json:"context,omitempty"`
}

func (Contexts) String

func (o Contexts) String() string

type ContinueUpgradeClusterTaskRequest

type ContinueUpgradeClusterTaskRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

ContinueUpgradeClusterTaskRequest Request Object

func (ContinueUpgradeClusterTaskRequest) String

type ContinueUpgradeClusterTaskResponse

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

ContinueUpgradeClusterTaskResponse Response Object

func (ContinueUpgradeClusterTaskResponse) String

type CreateAddonInstanceRequest

type CreateAddonInstanceRequest struct {
	Body *InstanceRequest `json:"body,omitempty"`
}

CreateAddonInstanceRequest Request Object

func (CreateAddonInstanceRequest) String

type CreateAddonInstanceResponse

type CreateAddonInstanceResponse struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *AddonMetadata `json:"metadata,omitempty"`

	Spec *InstanceSpec `json:"spec,omitempty"`

	Status         *AddonInstanceStatus `json:"status,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

CreateAddonInstanceResponse Response Object

func (CreateAddonInstanceResponse) String

type CreateCloudPersistentVolumeClaimsRequest

type CreateCloudPersistentVolumeClaimsRequest struct {

	// 指定PersistentVolumeClaim所在的命名空间。  使用namespace有如下约束:  - 用户自定义的namespace,使用前必须先在集群中创建namespace  - 系统自带的namespace:default  - 不能使用kube-system与kube-public
	Namespace string `json:"namespace"`

	// 集群ID,使用**https://Endpoint/uri**这种URL格式时必须指定此参数。获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	XClusterID *string `json:"X-Cluster-ID,omitempty"`

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

CreateCloudPersistentVolumeClaimsRequest Request Object

func (CreateCloudPersistentVolumeClaimsRequest) String

type CreateCloudPersistentVolumeClaimsResponse

type CreateCloudPersistentVolumeClaimsResponse struct {

	// API版本,固定值**v1**
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值**PersistentVolumeClaim**
	Kind *string `json:"kind,omitempty"`

	Metadata *PersistentVolumeClaimMetadata `json:"metadata,omitempty"`

	Spec *PersistentVolumeClaimSpec `json:"spec,omitempty"`

	Status         *PersistentVolumeClaimStatus `json:"status,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

CreateCloudPersistentVolumeClaimsResponse Response Object

func (CreateCloudPersistentVolumeClaimsResponse) String

type CreateClusterRequest

type CreateClusterRequest struct {
	Body *Cluster `json:"body,omitempty"`
}

CreateClusterRequest Request Object

func (CreateClusterRequest) String

func (o CreateClusterRequest) String() string

type CreateClusterResponse

type CreateClusterResponse struct {

	// API类型,固定值“Cluster”或“cluster”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *ClusterMetadata `json:"metadata,omitempty"`

	Spec *ClusterSpec `json:"spec,omitempty"`

	Status         *ClusterStatus `json:"status,omitempty"`
	HttpStatusCode int            `json:"-"`
}

CreateClusterResponse Response Object

func (CreateClusterResponse) String

func (o CreateClusterResponse) String() string

type CreateKubernetesClusterCertRequest

type CreateKubernetesClusterCertRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

CreateKubernetesClusterCertRequest Request Object

func (CreateKubernetesClusterCertRequest) String

type CreateKubernetesClusterCertResponse

type CreateKubernetesClusterCertResponse struct {

	// API类型,固定值“Config”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v1”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 当前未使用该字段,当前默认为空。
	Preferences *interface{} `json:"preferences,omitempty"`

	// 集群列表。
	Clusters *[]Clusters `json:"clusters,omitempty"`

	// 存放了指定用户的一些证书信息和ClientKey信息。
	Users *[]Users `json:"users,omitempty"`

	// 上下文列表。
	Contexts *[]Contexts `json:"contexts,omitempty"`

	// 当前上下文,若存在publicIp(虚拟机弹性IP)时为 external; 若不存在publicIp为 internal。
	CurrentContext *string `json:"current-context,omitempty"`

	PortID         *string `json:"Port-ID,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateKubernetesClusterCertResponse Response Object

func (CreateKubernetesClusterCertResponse) String

type CreateNodePoolRequest

type CreateNodePoolRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

CreateNodePoolRequest Request Object

func (CreateNodePoolRequest) String

func (o CreateNodePoolRequest) String() string

type CreateNodePoolResponse

type CreateNodePoolResponse struct {

	// API类型,固定值“NodePool”。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodePoolMetadata `json:"metadata,omitempty"`

	Spec *NodePoolSpec `json:"spec,omitempty"`

	Status         *NodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int             `json:"-"`
}

CreateNodePoolResponse Response Object

func (CreateNodePoolResponse) String

func (o CreateNodePoolResponse) String() string

type CreateNodeRequest

type CreateNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 标明是否为nodepool下发的请求。若不为“NodepoolScaleUp”将自动更新对应节点池的实例数
	NodepoolScaleUp *CreateNodeRequestNodepoolScaleUp `json:"nodepoolScaleUp,omitempty"`

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

CreateNodeRequest Request Object

func (CreateNodeRequest) String

func (o CreateNodeRequest) String() string

type CreateNodeRequestNodepoolScaleUp

type CreateNodeRequestNodepoolScaleUp struct {
	// contains filtered or unexported fields
}

func (CreateNodeRequestNodepoolScaleUp) MarshalJSON

func (c CreateNodeRequestNodepoolScaleUp) MarshalJSON() ([]byte, error)

func (*CreateNodeRequestNodepoolScaleUp) UnmarshalJSON

func (c *CreateNodeRequestNodepoolScaleUp) UnmarshalJSON(b []byte) error

func (CreateNodeRequestNodepoolScaleUp) Value

type CreateNodeRequestNodepoolScaleUpEnum

type CreateNodeRequestNodepoolScaleUpEnum struct {
	NODEPOOL_SCALE_UP CreateNodeRequestNodepoolScaleUp
}

func GetCreateNodeRequestNodepoolScaleUpEnum

func GetCreateNodeRequestNodepoolScaleUpEnum() CreateNodeRequestNodepoolScaleUpEnum

type CreateNodeResponse

type CreateNodeResponse struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec,omitempty"`

	Status         *NodeStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

CreateNodeResponse Response Object

func (CreateNodeResponse) String

func (o CreateNodeResponse) String() string

type DeleteAddonInstanceRequest

type DeleteAddonInstanceRequest struct {

	// 插件实例id
	Id string `json:"id"`

	// 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)
	ClusterId *string `json:"cluster_id,omitempty"`
}

DeleteAddonInstanceRequest Request Object

func (DeleteAddonInstanceRequest) String

type DeleteAddonInstanceResponse

type DeleteAddonInstanceResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteAddonInstanceResponse Response Object

func (DeleteAddonInstanceResponse) String

type DeleteCloudPersistentVolumeClaimsRequest

type DeleteCloudPersistentVolumeClaimsRequest struct {

	// 需要删除的PersistentVolumClaim的名称。
	Name string `json:"name"`

	// 指定PersistentVolumeClaim所在的命名空间。
	Namespace string `json:"namespace"`

	// 删除PersistentVolumeClaim后是否保留后端关联的云存储。false表示不删除,true表示删除,默认为false。
	DeleteVolume *string `json:"deleteVolume,omitempty"`

	// 云存储的类型,和deleteVolume搭配使用。即deleteVolume和storageType必须同时配置。 - bs:EVS云硬盘存储 - nfs:SFS弹性文件存储 - obs:OBS对象存储 - efs:SFS Turbo极速文件存储
	StorageType *string `json:"storageType,omitempty"`

	// 集群ID,使用**https://Endpoint/uri**这种URL格式时必须指定此参数。获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	XClusterID *string `json:"X-Cluster-ID,omitempty"`
}

DeleteCloudPersistentVolumeClaimsRequest Request Object

func (DeleteCloudPersistentVolumeClaimsRequest) String

type DeleteCloudPersistentVolumeClaimsResponse

type DeleteCloudPersistentVolumeClaimsResponse struct {

	// API版本,固定值**v1**
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值**PersistentVolumeClaim**
	Kind *string `json:"kind,omitempty"`

	Metadata *PersistentVolumeClaimMetadata `json:"metadata,omitempty"`

	Spec *PersistentVolumeClaimSpec `json:"spec,omitempty"`

	Status         *PersistentVolumeClaimStatus `json:"status,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

DeleteCloudPersistentVolumeClaimsResponse Response Object

func (DeleteCloudPersistentVolumeClaimsResponse) String

type DeleteClusterRequest

type DeleteClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

	// 是否删除SFS Turbo(极速文件存储卷), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	DeleteEfs *DeleteClusterRequestDeleteEfs `json:"delete_efs,omitempty"`

	// 是否删除eni ports(原生弹性网卡), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程,默认选项) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程)
	DeleteEni *DeleteClusterRequestDeleteEni `json:"delete_eni,omitempty"`

	// 是否删除evs(云硬盘), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	DeleteEvs *DeleteClusterRequestDeleteEvs `json:"delete_evs,omitempty"`

	// 是否删除elb(弹性负载均衡)等集群Service/Ingress相关资源。 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程,默认选项) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程)
	DeleteNet *DeleteClusterRequestDeleteNet `json:"delete_net,omitempty"`

	// 是否删除obs(对象存储卷), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	DeleteObs *DeleteClusterRequestDeleteObs `json:"delete_obs,omitempty"`

	// 是否删除sfs(文件存储卷), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	DeleteSfs *DeleteClusterRequestDeleteSfs `json:"delete_sfs,omitempty"`

	// 是否删除sfs3.0(文件存储卷3.0), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	DeleteSfs30 *DeleteClusterRequestDeleteSfs30 `json:"delete_sfs30,omitempty"`

	// 是否使用包周期集群删除参数预置模式(仅对包周期集群生效)。  需要和其他删除选项参数一起使用,未指定的参数,则使用默认值。  使用该参数,集群不执行真正的删除,仅将本次请求的全部query参数都预置到集群数据库中,用于包周期集群退订时识别用户要删除的资源。  允许重复执行,覆盖预置的删除参数。  枚举取值: - true  (预置模式,仅预置query参数,不执行删除)
	Tobedeleted *DeleteClusterRequestTobedeleted `json:"tobedeleted,omitempty"`
}

DeleteClusterRequest Request Object

func (DeleteClusterRequest) String

func (o DeleteClusterRequest) String() string

type DeleteClusterRequestDeleteEfs

type DeleteClusterRequestDeleteEfs struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteEfs) MarshalJSON

func (c DeleteClusterRequestDeleteEfs) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteEfs) UnmarshalJSON

func (c *DeleteClusterRequestDeleteEfs) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteEfs) Value

type DeleteClusterRequestDeleteEni

type DeleteClusterRequestDeleteEni struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteEni) MarshalJSON

func (c DeleteClusterRequestDeleteEni) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteEni) UnmarshalJSON

func (c *DeleteClusterRequestDeleteEni) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteEni) Value

type DeleteClusterRequestDeleteEvs

type DeleteClusterRequestDeleteEvs struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteEvs) MarshalJSON

func (c DeleteClusterRequestDeleteEvs) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteEvs) UnmarshalJSON

func (c *DeleteClusterRequestDeleteEvs) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteEvs) Value

type DeleteClusterRequestDeleteNet

type DeleteClusterRequestDeleteNet struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteNet) MarshalJSON

func (c DeleteClusterRequestDeleteNet) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteNet) UnmarshalJSON

func (c *DeleteClusterRequestDeleteNet) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteNet) Value

type DeleteClusterRequestDeleteObs

type DeleteClusterRequestDeleteObs struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteObs) MarshalJSON

func (c DeleteClusterRequestDeleteObs) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteObs) UnmarshalJSON

func (c *DeleteClusterRequestDeleteObs) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteObs) Value

type DeleteClusterRequestDeleteSfs

type DeleteClusterRequestDeleteSfs struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteSfs) MarshalJSON

func (c DeleteClusterRequestDeleteSfs) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteSfs) UnmarshalJSON

func (c *DeleteClusterRequestDeleteSfs) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteSfs) Value

type DeleteClusterRequestDeleteSfs30

type DeleteClusterRequestDeleteSfs30 struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestDeleteSfs30) MarshalJSON

func (c DeleteClusterRequestDeleteSfs30) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestDeleteSfs30) UnmarshalJSON

func (c *DeleteClusterRequestDeleteSfs30) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestDeleteSfs30) Value

type DeleteClusterRequestTobedeleted

type DeleteClusterRequestTobedeleted struct {
	// contains filtered or unexported fields
}

func (DeleteClusterRequestTobedeleted) MarshalJSON

func (c DeleteClusterRequestTobedeleted) MarshalJSON() ([]byte, error)

func (*DeleteClusterRequestTobedeleted) UnmarshalJSON

func (c *DeleteClusterRequestTobedeleted) UnmarshalJSON(b []byte) error

func (DeleteClusterRequestTobedeleted) Value

type DeleteClusterRequestTobedeletedEnum

type DeleteClusterRequestTobedeletedEnum struct {
	TRUE DeleteClusterRequestTobedeleted
}

func GetDeleteClusterRequestTobedeletedEnum

func GetDeleteClusterRequestTobedeletedEnum() DeleteClusterRequestTobedeletedEnum

type DeleteClusterResponse

type DeleteClusterResponse struct {

	// API类型,固定值“Cluster”或“cluster”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *ClusterMetadata `json:"metadata,omitempty"`

	Spec *ClusterSpec `json:"spec,omitempty"`

	Status         *ClusterStatus `json:"status,omitempty"`
	HttpStatusCode int            `json:"-"`
}

DeleteClusterResponse Response Object

func (DeleteClusterResponse) String

func (o DeleteClusterResponse) String() string

type DeleteNodePoolRequest

type DeleteNodePoolRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点池ID
	NodepoolId string `json:"nodepool_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`
}

DeleteNodePoolRequest Request Object

func (DeleteNodePoolRequest) String

func (o DeleteNodePoolRequest) String() string

type DeleteNodePoolResponse

type DeleteNodePoolResponse struct {

	// API类型,固定值“NodePool”。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodePoolMetadata `json:"metadata,omitempty"`

	Spec *NodePoolSpec `json:"spec,omitempty"`

	Status         *NodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int             `json:"-"`
}

DeleteNodePoolResponse Response Object

func (DeleteNodePoolResponse) String

func (o DeleteNodePoolResponse) String() string

type DeleteNodeRequest

type DeleteNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	NodeId string `json:"node_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

	// 标明是否为nodepool下发的请求。若不为“NoScaleDown”将自动更新对应节点池的实例数
	NodepoolScaleDown *DeleteNodeRequestNodepoolScaleDown `json:"nodepoolScaleDown,omitempty"`
}

DeleteNodeRequest Request Object

func (DeleteNodeRequest) String

func (o DeleteNodeRequest) String() string

type DeleteNodeRequestNodepoolScaleDown

type DeleteNodeRequestNodepoolScaleDown struct {
	// contains filtered or unexported fields
}

func (DeleteNodeRequestNodepoolScaleDown) MarshalJSON

func (c DeleteNodeRequestNodepoolScaleDown) MarshalJSON() ([]byte, error)

func (*DeleteNodeRequestNodepoolScaleDown) UnmarshalJSON

func (c *DeleteNodeRequestNodepoolScaleDown) UnmarshalJSON(b []byte) error

func (DeleteNodeRequestNodepoolScaleDown) Value

type DeleteNodeRequestNodepoolScaleDownEnum

type DeleteNodeRequestNodepoolScaleDownEnum struct {
	NO_SCALE_DOWN DeleteNodeRequestNodepoolScaleDown
}

func GetDeleteNodeRequestNodepoolScaleDownEnum

func GetDeleteNodeRequestNodepoolScaleDownEnum() DeleteNodeRequestNodepoolScaleDownEnum

type DeleteNodeResponse

type DeleteNodeResponse struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec,omitempty"`

	Status         *NodeStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

DeleteNodeResponse Response Object

func (DeleteNodeResponse) String

func (o DeleteNodeResponse) String() string

type DeleteStatus

type DeleteStatus struct {

	// 集群删除时已经存在的集群资源记录总数
	PreviousTotal *int32 `json:"previous_total,omitempty"`

	// 基于当前集群资源记录信息,生成实际最新资源记录总数
	CurrentTotal *int32 `json:"current_total,omitempty"`

	// 集群删除时更新的资源记录总数
	Updated *int32 `json:"updated,omitempty"`

	// 集群删除时更新的资源记录总数
	Added *int32 `json:"added,omitempty"`

	// 集群删除时删除的资源记录总数
	Deleted *int32 `json:"deleted,omitempty"`
}

DeleteStatus

func (DeleteStatus) String

func (o DeleteStatus) String() string

type EipSpec

type EipSpec struct {
	Bandwidth *EipSpecBandwidth `json:"bandwidth,omitempty"`
}

func (EipSpec) String

func (o EipSpec) String() string

type EipSpecBandwidth

type EipSpecBandwidth struct {

	// 带宽大小
	Size *int32 `json:"size,omitempty"`

	// 带宽类型
	Sharetype *EipSpecBandwidthSharetype `json:"sharetype,omitempty"`
}

func (EipSpecBandwidth) String

func (o EipSpecBandwidth) String() string

type EipSpecBandwidthSharetype

type EipSpecBandwidthSharetype struct {
	// contains filtered or unexported fields
}

func (EipSpecBandwidthSharetype) MarshalJSON

func (c EipSpecBandwidthSharetype) MarshalJSON() ([]byte, error)

func (*EipSpecBandwidthSharetype) UnmarshalJSON

func (c *EipSpecBandwidthSharetype) UnmarshalJSON(b []byte) error

func (EipSpecBandwidthSharetype) Value

type EipSpecBandwidthSharetypeEnum

type EipSpecBandwidthSharetypeEnum struct {
	PER   EipSpecBandwidthSharetype
	WHOLE EipSpecBandwidthSharetype
}

func GetEipSpecBandwidthSharetypeEnum

func GetEipSpecBandwidthSharetypeEnum() EipSpecBandwidthSharetypeEnum

type EniNetwork

type EniNetwork struct {

	// ENI所在子网的IPv4子网ID(暂不支持IPv6,废弃中)。获取方法如下:  - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找IPv4子网ID。 - 方法2:通过虚拟私有云服务的查询子网列表接口查询。   [链接请参见[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)](tag:hws)   [链接请参见[查询子网列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_subnet01_0003.html)](tag:hws_hk)
	EniSubnetId string `json:"eniSubnetId"`

	// ENI子网CIDR(废弃中)
	EniSubnetCIDR string `json:"eniSubnetCIDR"`

	// IPv4子网ID列表
	Subnets []NetworkSubnet `json:"subnets"`
}

EniNetwork ENI网络配置,创建集群指定使用云原生网络2.0网络模式时必填subnets和eniSubnetId其中一个字段(eniSubnetCIDR可选,若填写了会校验是否合法),1.19.10及新版本集群使用subnets字段,1.19.8及老版本若使用subnets字段,则取值subnets数组中的第一个子网ID作为容器地址使用的子网ID。

func (EniNetwork) String

func (o EniNetwork) String() string

type EniNetworkUpdate

type EniNetworkUpdate struct {

	// IPv4子网ID列表。1.19.10及以上版本的CCE Turbo集群支持多容器子网,同时支持增量更新容器子网列表。 只允许新增子网,不可删除已有子网,请谨慎选择。  请求体中需包含所有已经存在的subnet。
	Subnets *[]NetworkSubnet `json:"subnets,omitempty"`
}

func (EniNetworkUpdate) String

func (o EniNetworkUpdate) String() string

type HibernateClusterRequest

type HibernateClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

HibernateClusterRequest Request Object

func (HibernateClusterRequest) String

func (o HibernateClusterRequest) String() string

type HibernateClusterResponse

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

HibernateClusterResponse Response Object

func (HibernateClusterResponse) String

func (o HibernateClusterResponse) String() string

type HostNetwork

type HostNetwork struct {

	// 用于创建控制节点的VPC的ID。  获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。   [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws)   [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk)  > - 当前vpc-router容器网络模型不支持对接含拓展网段的VPC。 > - 若您的用户类型为企业用户,则需要保证vpc所属的企业项目ID和集群创建时选择的企业项目ID一致。集群所属的企业项目ID通过extendParam字段下的enterpriseProjectId体现,该值默认为\"0\",表示默认的企业项目。
	Vpc string `json:"vpc"`

	// 用于创建控制节点的subnet的网络ID。获取方法如下:  - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的查询子网列表接口查询。   [链接请参见[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)](tag:hws)   [链接请参见[查询子网列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_subnet01_0003.html)](tag:hws_hk)
	Subnet string `json:"subnet"`

	// 集群默认的Node节点安全组ID,不指定该字段系统将自动为用户创建默认Node节点安全组,指定该字段时集群将绑定指定的安全组。Node节点安全组需要放通部分端口来保证正常通信。[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/cce_faq/cce_faq_00265.html)。](tag:hws)[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/intl/zh-cn/cce_faq/cce_faq_00265.html)。](tag:hws_hk)
	SecurityGroup *string `json:"SecurityGroup,omitempty"`
}

HostNetwork Node network parameters.

func (HostNetwork) String

func (o HostNetwork) String() string

type InPlaceRollingUpdate

type InPlaceRollingUpdate struct {

	// 节点升级步长,取值范围为[1, 40],建议取值20
	UserDefinedStep *int32 `json:"userDefinedStep,omitempty"`
}

InPlaceRollingUpdate 原地升级配置

func (InPlaceRollingUpdate) String

func (o InPlaceRollingUpdate) String() string

type InstanceRequest

type InstanceRequest struct {

	// API类型,固定值“Addon”,该值不可修改,该字段传入无效。
	Kind string `json:"kind"`

	// API版本,固定值“v3”,该值不可修改,该字段传入无效。
	ApiVersion string `json:"apiVersion"`

	Metadata *AddonMetadata `json:"metadata"`

	Spec *InstanceRequestSpec `json:"spec"`
}

InstanceRequest 插件安装/升级-request结构体

func (InstanceRequest) String

func (o InstanceRequest) String() string

type InstanceRequestSpec

type InstanceRequestSpec struct {

	// 待安装、升级插件的版本号,例如1.0.0 - 安装:该参数非必传,如果不传,匹配集群支持的最新版本 - 升级:该参数必传,需指定版本号
	Version *string `json:"version,omitempty"`

	// 集群id
	ClusterID string `json:"clusterID"`

	// 插件模板安装参数(各插件不同),升级插件时需要填写全量安装参数,未填写参数将使用插件模板中的默认值,当前插件安装参数可通过查询插件实例接口获取。
	Values map[string]interface{} `json:"values"`

	// 待安装插件模板名称,如coredns
	AddonTemplateName string `json:"addonTemplateName"`
}

InstanceRequestSpec spec是集合类的元素类型,内容为插件实例安装/升级的具体请求信息

func (InstanceRequestSpec) String

func (o InstanceRequestSpec) String() string

type InstanceSpec

type InstanceSpec struct {

	// 集群id
	ClusterID string `json:"clusterID"`

	// 插件模板版本号,如1.0.0
	Version string `json:"version"`

	// 插件模板名称,如coredns
	AddonTemplateName string `json:"addonTemplateName"`

	// 插件模板类型
	AddonTemplateType string `json:"addonTemplateType"`

	AddonTemplateLogo *string `json:"addonTemplateLogo,omitempty"`

	// 插件模板所属类型
	AddonTemplateLabels *[]string `json:"addonTemplateLabels,omitempty"`

	// 插件模板描述
	Description string `json:"description"`

	// 插件模板安装参数(各插件不同),请根据具体插件模板信息填写安装参数。
	Values map[string]interface{} `json:"values"`
}

InstanceSpec spec是集合类的元素类型,内容为插件实例具体信息

func (InstanceSpec) String

func (o InstanceSpec) String() string

type Job

type Job struct {

	// API类型,固定值“Job”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *JobMetadata `json:"metadata,omitempty"`

	Spec *JobSpec `json:"spec,omitempty"`

	Status *JobStatus `json:"status,omitempty"`
}

Job

func (Job) String

func (o Job) String() string

type JobMetadata

type JobMetadata struct {

	// 任务的ID。
	Uid *string `json:"uid,omitempty"`

	// 任务的创建时间。
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	// 任务的更新时间。
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`
}

JobMetadata

func (JobMetadata) String

func (o JobMetadata) String() string

type JobSpec

type JobSpec struct {

	// 任务的类型,例:“CreateCluster”- 创建集群。
	Type *string `json:"type,omitempty"`

	// 任务所在的集群的ID。
	ClusterUID *string `json:"clusterUID,omitempty"`

	// 任务操作的资源ID。
	ResourceID *string `json:"resourceID,omitempty"`

	// 任务操作的资源名称。
	ResourceName *string `json:"resourceName,omitempty"`

	// 扩展参数。
	ExtendParam map[string]string `json:"extendParam,omitempty"`

	// 子任务的列表。  - 包含了所有子任务的详细信息 - 在创建集群、节点等场景下,通常会由多个子任务共同组成创建任务,在子任务都完成后,任务才会完成
	SubJobs *[]Job `json:"subJobs,omitempty"`
}

JobSpec

func (JobSpec) String

func (o JobSpec) String() string

type JobStatus

type JobStatus struct {

	// 任务的状态,有如下四种状态:  - JobPhaseInitializing JobPhase = \"Initializing\" - JobPhaseRunning JobPhase = \"Running\" - JobPhaseFailed JobPhase = \"Failed\" - JobPhaseSuccess JobPhase = \"Success\"
	Phase *string `json:"phase,omitempty"`

	// 任务变为当前状态的原因
	Reason *string `json:"reason,omitempty"`
}

JobStatus

func (JobStatus) String

func (o JobStatus) String() string

type ListAddonInstancesRequest

type ListAddonInstancesRequest struct {

	// 含义:想要筛选的插件名称或插件别名  属性:隐藏参数
	AddonTemplateName *string `json:"addon_template_name,omitempty"`

	// 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)
	ClusterId string `json:"cluster_id"`
}

ListAddonInstancesRequest Request Object

func (ListAddonInstancesRequest) String

func (o ListAddonInstancesRequest) String() string

type ListAddonInstancesResponse

type ListAddonInstancesResponse struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 插件实例列表
	Items          *[]AddonInstance `json:"items,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListAddonInstancesResponse Response Object

func (ListAddonInstancesResponse) String

type ListAddonTemplatesRequest

type ListAddonTemplatesRequest struct {

	// 指定的插件名称或插件别名,不填写则查询列表。
	AddonTemplateName *string `json:"addon_template_name,omitempty"`

	// 含义:可接受的最低升级版本  属性:隐藏参数
	BaseUpdateAddonVersion *string `json:"base_update_addon_version,omitempty"`

	// 含义:查询的集群  属性:隐藏参数
	ClusterId *string `json:"cluster_id,omitempty"`

	// 含义:是否获取最新插件  属性:隐藏参数
	Newest *string `json:"newest,omitempty"`

	// 含义:筛选的插件版本  属性:隐藏参数
	Version *string `json:"version,omitempty"`
}

ListAddonTemplatesRequest Request Object

func (ListAddonTemplatesRequest) String

func (o ListAddonTemplatesRequest) String() string

type ListAddonTemplatesResponse

type ListAddonTemplatesResponse struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 插件模板列表
	Items          *[]AddonTemplate `json:"items,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListAddonTemplatesResponse Response Object

func (ListAddonTemplatesResponse) String

type ListClustersRequest

type ListClustersRequest struct {

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

	// 查询集群详细信息。  若设置为true,获取集群下节点总数(totalNodesNumber)、正常节点数(activeNodesNumber)、CPU总量(totalNodesCPU)、内存总量(totalNodesMemory)、已安装插件列表(installedAddonInstances),已安装插件列表中包含名称(addonTemplateName)、版本号(version)、插件的状态信息(status),放入到annotation中。
	Detail *string `json:"detail,omitempty"`

	// 集群状态,取值如下 - Available:可用,表示集群处于正常状态。 - Unavailable:不可用,表示集群异常,需手动删除。 - ScalingUp:扩容中,表示集群正处于扩容过程中。 - ScalingDown:缩容中,表示集群正处于缩容过程中。 - Creating:创建中,表示集群正处于创建过程中。 - Deleting:删除中,表示集群正处于删除过程中。 - Upgrading:升级中,表示集群正处于升级过程中。 - Resizing:规格变更中,表示集群正处于变更规格中。 - RollingBack:回滚中,表示集群正处于回滚过程中。 - RollbackFailed:回滚异常,表示集群回滚异常。 - Empty:集群无任何资源
	Status *ListClustersRequestStatus `json:"status,omitempty"`

	// 集群类型: - VirtualMachine:CCE集群 - ARM64:鲲鹏集群
	Type *ListClustersRequestType `json:"type,omitempty"`

	// 集群版本过滤
	Version *string `json:"version,omitempty"`
}

ListClustersRequest Request Object

func (ListClustersRequest) String

func (o ListClustersRequest) String() string

type ListClustersRequestStatus

type ListClustersRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListClustersRequestStatus) MarshalJSON

func (c ListClustersRequestStatus) MarshalJSON() ([]byte, error)

func (*ListClustersRequestStatus) UnmarshalJSON

func (c *ListClustersRequestStatus) UnmarshalJSON(b []byte) error

func (ListClustersRequestStatus) Value

type ListClustersRequestType

type ListClustersRequestType struct {
	// contains filtered or unexported fields
}

func (ListClustersRequestType) MarshalJSON

func (c ListClustersRequestType) MarshalJSON() ([]byte, error)

func (*ListClustersRequestType) UnmarshalJSON

func (c *ListClustersRequestType) UnmarshalJSON(b []byte) error

func (ListClustersRequestType) Value

func (c ListClustersRequestType) Value() string

type ListClustersRequestTypeEnum

type ListClustersRequestTypeEnum struct {
	VIRTUAL_MACHINE ListClustersRequestType
	ARM64           ListClustersRequestType
}

func GetListClustersRequestTypeEnum

func GetListClustersRequestTypeEnum() ListClustersRequestTypeEnum

type ListClustersResponse

type ListClustersResponse struct {

	// Api type
	Kind *string `json:"kind,omitempty"`

	// API version
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 集群对象列表,包含了当前项目下所有集群的详细信息。您可通过items.metadata.name下的值来找到对应的集群。
	Items          *[]Cluster `json:"items,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListClustersResponse Response Object

func (ListClustersResponse) String

func (o ListClustersResponse) String() string

type ListNodePoolsRequest

type ListNodePoolsRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

	// 是否展示默认节点池。默认不展示,指定为“true”时展示默认节点池。
	ShowDefaultNodePool *string `json:"showDefaultNodePool,omitempty"`
}

ListNodePoolsRequest Request Object

func (ListNodePoolsRequest) String

func (o ListNodePoolsRequest) String() string

type ListNodePoolsResponse

type ListNodePoolsResponse struct {

	// API type. The value is fixed to List.
	Kind *string `json:"kind,omitempty"`

	// API version. The value is fixed to v3.
	ApiVersion *string `json:"apiVersion,omitempty"`

	// /
	Items          *[]NodePool `json:"items,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ListNodePoolsResponse Response Object

func (ListNodePoolsResponse) String

func (o ListNodePoolsResponse) String() string

type ListNodesRequest

type ListNodesRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`
}

ListNodesRequest Request Object

func (ListNodesRequest) String

func (o ListNodesRequest) String() string

type ListNodesResponse

type ListNodesResponse struct {

	// API类型,固定值“List”
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 节点对象列表,包含了当前集群下所有节点的详细信息。可通过items.metadata.name下的值来找到对应的节点。
	Items          *[]Node `json:"items,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListNodesResponse Response Object

func (ListNodesResponse) String

func (o ListNodesResponse) String() string

type Login

type Login struct {

	// 选择密钥对方式登录时的密钥对名称。
	SshKey *string `json:"sshKey,omitempty"`

	UserPassword *UserPassword `json:"userPassword,omitempty"`
}

func (Login) String

func (o Login) String() string

type LvmConfig

type LvmConfig struct {

	// LVM写入模式:linear、striped。linear:线性模式;striped:条带模式,使用多块磁盘组成条带模式,能够提升磁盘性能。
	LvType string `json:"lvType"`

	// 磁盘挂载路径。仅在用户配置中生效。支持包含:数字、大小写字母、点、中划线、下划线的绝对路径。
	Path *string `json:"path,omitempty"`
}

func (LvmConfig) String

func (o LvmConfig) String() string

type MasterEipRequest

type MasterEipRequest struct {
	Spec *MasterEipRequestSpec `json:"spec"`
}

func (MasterEipRequest) String

func (o MasterEipRequest) String() string

type MasterEipRequestSpec

type MasterEipRequestSpec struct {

	// 绑定或解绑动作,必选参数。 - 绑定:固定值为{\"action\":\"bind\"} - 解绑:固定值为{\"action\":\"unbind\"}
	Action *MasterEipRequestSpecAction `json:"action,omitempty"`

	Spec *MasterEipRequestSpecSpec `json:"spec,omitempty"`

	// 带宽(字段已失效,暂不推荐使用)
	Bandwidth *string `json:"bandwidth,omitempty"`

	// 弹性网卡IP(字段已失效,暂不推荐使用)
	ElasticIp *string `json:"elasticIp,omitempty"`
}

func (MasterEipRequestSpec) String

func (o MasterEipRequestSpec) String() string

type MasterEipRequestSpecAction

type MasterEipRequestSpecAction struct {
	// contains filtered or unexported fields
}

func (MasterEipRequestSpecAction) MarshalJSON

func (c MasterEipRequestSpecAction) MarshalJSON() ([]byte, error)

func (*MasterEipRequestSpecAction) UnmarshalJSON

func (c *MasterEipRequestSpecAction) UnmarshalJSON(b []byte) error

func (MasterEipRequestSpecAction) Value

type MasterEipRequestSpecActionEnum

type MasterEipRequestSpecActionEnum struct {
	BIND   MasterEipRequestSpecAction
	UNBIND MasterEipRequestSpecAction
}

func GetMasterEipRequestSpecActionEnum

func GetMasterEipRequestSpecActionEnum() MasterEipRequestSpecActionEnum

type MasterEipRequestSpecSpec

type MasterEipRequestSpecSpec struct {

	// 弹性网卡ID,必选参数
	Id *string `json:"id,omitempty"`
}

func (MasterEipRequestSpecSpec) String

func (o MasterEipRequestSpecSpec) String() string

type MasterEipResponseSpec

type MasterEipResponseSpec struct {

	// 绑定动作
	Action *MasterEipResponseSpecAction `json:"action,omitempty"`

	Spec *MasterEipResponseSpecSpec `json:"spec,omitempty"`

	// 弹性公网IP
	ElasticIp *string `json:"elasticIp,omitempty"`
}

func (MasterEipResponseSpec) String

func (o MasterEipResponseSpec) String() string

type MasterEipResponseSpecAction

type MasterEipResponseSpecAction struct {
	// contains filtered or unexported fields
}

func (MasterEipResponseSpecAction) MarshalJSON

func (c MasterEipResponseSpecAction) MarshalJSON() ([]byte, error)

func (*MasterEipResponseSpecAction) UnmarshalJSON

func (c *MasterEipResponseSpecAction) UnmarshalJSON(b []byte) error

func (MasterEipResponseSpecAction) Value

type MasterEipResponseSpecActionEnum

type MasterEipResponseSpecActionEnum struct {
	BIND MasterEipResponseSpecAction
}

func GetMasterEipResponseSpecActionEnum

func GetMasterEipResponseSpecActionEnum() MasterEipResponseSpecActionEnum

type MasterEipResponseSpecSpec

type MasterEipResponseSpecSpec struct {

	// 弹性网卡ID
	Id *string `json:"id,omitempty"`

	Eip *EipSpec `json:"eip,omitempty"`

	// 是否动态创建
	IsDynamic *bool `json:"IsDynamic,omitempty"`
}

func (MasterEipResponseSpecSpec) String

func (o MasterEipResponseSpecSpec) String() string

type MasterEipResponseStatus

type MasterEipResponseStatus struct {

	// 集群访问的PrivateIP(HA集群返回VIP)
	PrivateEndpoint *string `json:"privateEndpoint,omitempty"`

	// 集群访问的PublicIP
	PublicEndpoint *string `json:"publicEndpoint,omitempty"`
}

func (MasterEipResponseStatus) String

func (o MasterEipResponseStatus) String() string

type MasterSpec

type MasterSpec struct {

	// 可用区
	AvailabilityZone *string `json:"availabilityZone,omitempty"`

	// 规格
	Flavor *string `json:"flavor,omitempty"`

	// 故障域。 1. 指定该字段需要当前系统已开启故障域特性,否则校验失败。 2. 仅单az场景支持且必须显式指定az。
	FaultDomain *string `json:"faultDomain,omitempty"`
}

MasterSpec master的配置,支持指定可用区、规格和故障域。若指定故障域,则必须所有master节点都需要指定故障字段。

func (MasterSpec) String

func (o MasterSpec) String() string

type Metadata

type Metadata struct {

	// 唯一id标识
	Uid *string `json:"uid,omitempty"`

	// 资源名称
	Name *string `json:"name,omitempty"`

	// 资源标签,key/value对格式,接口保留字段,填写不会生效
	Labels map[string]string `json:"labels,omitempty"`

	// 资源注解,由key/value组成
	Annotations map[string]string `json:"annotations,omitempty"`

	// 更新时间
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`

	// 创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`
}

Metadata 资源描述基本信息,集合类的元素类型,包含一组由不同名称定义的属性。

func (Metadata) String

func (o Metadata) String() string

type MigrateNodeExtendParam

type MigrateNodeExtendParam struct {

	// 节点最大允许创建的实例数(Pod),该数量包含系统默认实例,取值范围为16~256。 该设置的目的为防止节点因管理过多实例而负载过重,请根据您的业务需要进行设置。
	MaxPods *int32 `json:"maxPods,omitempty"`

	// Docker数据盘配置项(已废弃,请使用storage字段)。  待迁移节点的磁盘类型须和创建时一致(即“DockerLVMConfigOverride”参数中“diskType”字段的值须和创建时一致),请确保单次接口调用时批量选择的节点磁盘类型一致。  默认配置示例如下:  “` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" “`  包含如下字段:   - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG   - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test   - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式   - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped   - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG   - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG
	DockerLVMConfigOverride *string `json:"DockerLVMConfigOverride,omitempty"`

	// 安装前执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64。
	AlphaCcePreInstall *string `json:"alpha.cce/preInstall,omitempty"`

	// 安装后执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64。
	AlphaCcePostInstall *string `json:"alpha.cce/postInstall,omitempty"`

	// 指定待切换目标操作系统所使用的用户镜像ID。 当指定“alpha.cce/NodeImageID”参数时,“os”参数必须和用户自定义镜像的操作系统一致。
	AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"`
}

func (MigrateNodeExtendParam) String

func (o MigrateNodeExtendParam) String() string

type MigrateNodeRequest

type MigrateNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	TargetClusterId string `json:"target_cluster_id"`

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

MigrateNodeRequest Request Object

func (MigrateNodeRequest) String

func (o MigrateNodeRequest) String() string

type MigrateNodeResponse

type MigrateNodeResponse struct {

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“MigrateNodesTask”。
	Kind *string `json:"kind,omitempty"`

	Spec *MigrateNodesSpec `json:"spec,omitempty"`

	Status         *TaskStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

MigrateNodeResponse Response Object

func (MigrateNodeResponse) String

func (o MigrateNodeResponse) String() string

type MigrateNodesSpec

type MigrateNodesSpec struct {

	// 操作系统类型,须精确到版本号。 当指定“alpha.cce/NodeImageID”参数时,“os”参数必须和用户自定义镜像的操作系统一致。
	Os string `json:"os"`

	ExtendParam *MigrateNodeExtendParam `json:"extendParam,omitempty"`

	Login *Login `json:"login"`

	Runtime *Runtime `json:"runtime,omitempty"`

	// 待操作节点列表
	Nodes []NodeItem `json:"nodes"`
}

func (MigrateNodesSpec) String

func (o MigrateNodesSpec) String() string

type MigrateNodesTask

type MigrateNodesTask struct {

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“MigrateNodesTask”。
	Kind *string `json:"kind,omitempty"`

	Spec *MigrateNodesSpec `json:"spec"`

	Status *TaskStatus `json:"status,omitempty"`
}

func (MigrateNodesTask) String

func (o MigrateNodesTask) String() string

type NetworkSubnet

type NetworkSubnet struct {

	// 用于创建控制节点的subnet的IPv4子网ID(暂不支持IPv6)。获取方法如下:  - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找IPv4子网ID。 - 方法2:通过虚拟私有云服务的查询子网列表接口查询。   [链接请参见[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)](tag:hws)   [链接请参见[查询子网列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_subnet01_0003.html)](tag:hws_hk)
	SubnetID string `json:"subnetID"`
}

NetworkSubnet ENI网络配置,创建集群指定subnets字段使用时必填。

func (NetworkSubnet) String

func (o NetworkSubnet) String() string

type NicSpec

type NicSpec struct {

	// 网卡所在子网的网络ID。主网卡创建时若未指定subnetId,将使用集群子网。拓展网卡创建时必须指定subnetId。
	SubnetId *string `json:"subnetId,omitempty"`

	// 主网卡的IP将通过fixedIps指定,数量不得大于创建的节点数。fixedIps或ipBlock同时只能指定一个。
	FixedIps *[]string `json:"fixedIps,omitempty"`

	// 主网卡的IP段的CIDR格式,创建的节点IP将属于该IP段内。fixedIps或ipBlock同时只能指定一个。
	IpBlock *string `json:"ipBlock,omitempty"`
}

NicSpec 主网卡的描述信息。

func (NicSpec) String

func (o NicSpec) String() string

type Node

type Node struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec,omitempty"`

	Status *NodeStatus `json:"status,omitempty"`
}

Node

func (Node) String

func (o Node) String() string

type NodeBandwidth

type NodeBandwidth struct {

	// 带宽的计费类型: - 未传该字段,表示按带宽计费。 - 字段值为空,表示按带宽计费。 - 字段值为“traffic”,表示按流量计费。 - 字段为其它值,会导致创建云服务器失败。 > - 按带宽计费:按公网传输速率(单位为Mbps)计费。当您的带宽利用率高于10%时,建议优先选择按带宽计费。 > - 按流量计费:只允许在创建按需节点时指定,按公网传输的数据总量(单位为GB)计费。当您的带宽利用率低于10%时,建议优先选择按流量计费。
	Chargemode *string `json:"chargemode,omitempty"`

	// 带宽大小,取值请参见取值请参见申请EIP接口中bandwidth.size说明。 [链接请参见[申请EIP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)](tag:hws) [链接请参见[申请EIP](https://support.huaweicloud.com/intl/zh-cn/api-eip/eip_api_0001.html)](tag:hws_hk)
	Size *int32 `json:"size,omitempty"`

	// 带宽的共享类型,共享类型枚举:PER,表示独享。WHOLE,表示共享。
	Sharetype *string `json:"sharetype,omitempty"`
}

NodeBandwidth

func (NodeBandwidth) String

func (o NodeBandwidth) String() string

type NodeCreateRequest

type NodeCreateRequest struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind string `json:"kind"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion string `json:"apiVersion"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec"`
}

NodeCreateRequest

func (NodeCreateRequest) String

func (o NodeCreateRequest) String() string

type NodeEipSpec

type NodeEipSpec struct {

	// 弹性IP类型,取值请参见申请EIP接口中publicip.type说明。 [链接请参见[申请EIP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)](tag:hws) [链接请参见[申请EIP](https://support.huaweicloud.com/intl/zh-cn/api-eip/eip_api_0001.html)](tag:hws_hk)
	Iptype string `json:"iptype"`

	Bandwidth *NodeBandwidth `json:"bandwidth,omitempty"`
}

NodeEipSpec

func (NodeEipSpec) String

func (o NodeEipSpec) String() string

type NodeExtendParam

type NodeExtendParam struct {

	// 云服务器规格的分类。响应中会返回此字段。
	Ecsperformancetype *string `json:"ecs:performancetype,omitempty"`

	// 订单ID,节点付费类型为自动付费包周期类型时,响应中会返回此字段。
	OrderID *string `json:"orderID,omitempty"`

	// 产品ID,节点付费类型为自动付费包周期类型时,响应中会返回此字段。
	ProductID *string `json:"productID,omitempty"`

	// 节点最大允许创建的实例数(Pod),该数量包含系统默认实例,取值范围为16~256。  该设置的目的为防止节点因管理过多实例而负载过重,请根据您的业务需要进行设置。  节点可以创建多少个Pod,受多个参数影响,具体请参见[节点最多可以创建多少Pod](maxPods.xml)。
	MaxPods *int32 `json:"maxPods,omitempty"`

	// - month:月 - year:年 > billingMode为1(包周期)或2(已废弃:自动付费包周期)时生效,且为必选。
	PeriodType *string `json:"periodType,omitempty"`

	// 订购周期数,取值范围: - periodType=month(周期类型为月)时,取值为[1-9]。 - periodType=year(周期类型为年)时,取值为1。 > billingMode为1或2(已废弃)时生效,且为必选。
	PeriodNum *int32 `json:"periodNum,omitempty"`

	// 是否自动续订 - “true”:自动续订 - “false”:不自动续订 > billingMode为1或2(已废弃)时生效,不填写此参数时默认不会自动续费。
	IsAutoRenew *string `json:"isAutoRenew,omitempty"`

	// 是否自动扣款  - “true”:自动扣款 - “false”:不自动扣款  > billingMode为1或2(已废弃)时生效,billingMode为1时不填写此参数时默认不会自动扣款。(已废弃:billingMode为2时不填写此参数时默认会自动扣款)
	IsAutoPay *string `json:"isAutoPay,omitempty"`

	// Docker数据盘配置项(已废弃,请使用storage字段)。默认配置示例如下:  “` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" “`  默认配置在无VD类型磁盘时,会由于数据盘查找失败而出错,请根据真实盘符类型填写diskType。 包含如下字段:   - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG   - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test   - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式   - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped   - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG   - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG
	DockerLVMConfigOverride *string `json:"DockerLVMConfigOverride,omitempty"`

	// 节点上单容器的可用磁盘空间大小,单位G。  不配置该值或值为0时将使用默认值,Devicemapper模式下默认值为10;OverlayFS模式默认不限制单容器可用空间大小,且dockerBaseSize设置仅在新版本集群的EulerOS节点上生效。  CCE节点容器运行时空间配置请参考[数据盘空间分配说明](cce_01_0341.xml)。  Devicemapper模式下建议dockerBaseSize配置不超过80G,设置过大时可能会导致容器运行时初始化时间过长而启动失败,若对容器磁盘大小有特殊要求,可考虑使用挂载外部或本地存储方式代替。
	DockerBaseSize *int32 `json:"dockerBaseSize,omitempty"`

	// 是否为CCE Turbo集群节点。
	OffloadNode *string `json:"offloadNode,omitempty"`

	// 节点的公钥。
	PublicKey *string `json:"publicKey,omitempty"`

	// 安装前执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64
	AlphaCcePreInstall *string `json:"alpha.cce/preInstall,omitempty"`

	// 安装后执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64。
	AlphaCcePostInstall *string `json:"alpha.cce/postInstall,omitempty"`

	// 如果创建裸金属节点,需要使用自定义镜像时用此参数。
	AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"`

	// - 弹性网卡队列数配置,默认配置示例如下:  “` \"[{\\\"queue\\\":4}]\" “`  包含如下字段: - queue: 弹性网卡队列数。 - 仅在turbo集群的BMS节点时,该字段才可配置。 - 当前支持可配置队列数以及弹性网卡数:{\"1\":128, \"2\":92, \"4\":92, \"8\":32, \"16\":16,\"28\":9}, 既1弹性网卡队列可绑定128张弹性网卡,2队列弹性网卡可绑定92张,以此类推。 - 弹性网卡队列数越多,性能越强,但可绑定弹性网卡数越少,请根据您的需求进行配置(创建后不可修改)。
	NicMultiqueue *string `json:"nicMultiqueue,omitempty"`

	// - 弹性网卡预绑定比例配置,默认配置示例如下: “` \"0.3:0.6\" “`   - 第一位小数:预绑定低水位,弹性网卡预绑定的最低比例(最小预绑定弹性网卡数 = ⌊节点的总弹性网卡数 * 预绑定低水位⌋)   - 第二位小数:预绑定高水位,弹性网卡预绑定的最高比例(最大预绑定弹性网卡数 = ⌊节点的总弹性网卡数 * 预绑定高水位⌋)   - BMS节点上绑定的弹性网卡数:Pod正在使用的弹性网卡数 + 最小预绑定弹性网卡数 < BMS节点上绑定的弹性网卡数 < Pod正在使用的弹性网卡数 + 最大预绑定弹性网卡数   - BMS节点上当预绑定弹性网卡数 < 最小预绑定弹性网卡数时:会绑定弹性网卡,使得预绑定弹性网卡数 = 最小预绑定弹性网卡数   - BMS节点上当预绑定弹性网卡数 > 最大预绑定弹性网卡数时:会定时解绑弹性网卡(约2分钟一次),直到预绑定弹性网卡数 = 最大预绑定弹性网卡数   - 取值范围:[0.0, 1.0]; 一位小数; 低水位 <= 高水位 - 仅在turbo集群的BMS节点时,该字段才可配置。 - 弹性网卡预绑定能加快工作负载的创建,但会占用IP,请根据您的需求进行配置。
	NicThreshold *string `json:"nicThreshold,omitempty"`

	// 节点的计费模式。已废弃,请使用NodeSpec中的billingMode字段。
	ChargingMode *int32 `json:"chargingMode,omitempty"`

	// 委托的名称。  委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为CCE节点提供访问云服务器的临时凭证。
	AgencyName *string `json:"agency_name,omitempty"`

	// 节点内存预留,Kubernetes相关组件预留值。
	KubeReservedMem *int32 `json:"kube-reserved-mem,omitempty"`

	// 节点内存预留,系统组件预留值。
	SystemReservedMem *int32 `json:"system-reserved-mem,omitempty"`
}

NodeExtendParam 创建节点时的扩展参数。

func (NodeExtendParam) String

func (o NodeExtendParam) String() string

type NodeItem

type NodeItem struct {

	// 节点ID
	Uid string `json:"uid"`
}

func (NodeItem) String

func (o NodeItem) String() string

type NodeLifecycleConfig

type NodeLifecycleConfig struct {

	// 安装前执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64。
	PreInstall *string `json:"preInstall,omitempty"`

	// 安装后执行脚本 > 输入的值需要经过Base64编码,方法为echo -n \"待编码内容\" | base64。
	PostInstall *string `json:"postInstall,omitempty"`
}

NodeLifecycleConfig 节点自定义生命周期配置

func (NodeLifecycleConfig) String

func (o NodeLifecycleConfig) String() string

type NodeManagement

type NodeManagement struct {

	// 云服务器组ID,若指定,节点池中所有节点将创建在该云服务器组下,节点池的云服务器组只能在创建时指定,无法修改。指定云服务器组时节点池中的节点数量不允许超出云服务器组的配额限制。
	ServerGroupReference *string `json:"serverGroupReference,omitempty"`
}

func (NodeManagement) String

func (o NodeManagement) String() string

type NodeMetadata

type NodeMetadata struct {

	// 节点名称 > 命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围1-56位,且不能以中划线(-)结尾。 > 若name未指定或指定为空字符串,则按照默认规则生成节点名称。默认规则为:“集群名称-随机字符串”,若集群名称过长,则只取前36个字符。 > 若节点数量(count)大于1时,则按照默认规则会在用户输入的节点名称末尾添加随机字符串。默认规则为:“用户输入名称-随机字符串”,若用户输入的节点名称长度范围超过50位时,系统截取前50位,并在末尾添加随机字符串。
	Name *string `json:"name,omitempty"`

	// 节点ID,资源唯一标识,创建成功后自动生成,填写无效
	Uid *string `json:"uid,omitempty"`

	// CCE自有节点标签,非Kubernetes原生labels。  标签可用于选择对象并查找满足某些条件的对象集合,格式为key/value键值对。  示例:  “` \"labels\": {   \"key\" : \"value\" } “`
	Labels map[string]string `json:"labels,omitempty"`

	// CCE自有节点注解,非Kubernetes原生annotations,格式为key/value键值对。 示例: “` \"annotations\": {   \"key1\" : \"value1\",   \"key2\" : \"value2\" } “` > Annotations不用于标识和选择对象。Annotations中的元数据可以是small或large,structured或unstructured,并且可以包括标签不允许使用的字符。
	Annotations map[string]string `json:"annotations,omitempty"`

	// 创建时间,创建成功后自动生成,填写无效
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	// 更新时间,创建成功后自动生成,填写无效
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`
}

NodeMetadata

func (NodeMetadata) String

func (o NodeMetadata) String() string

type NodeNicSpec

type NodeNicSpec struct {
	PrimaryNic *NicSpec `json:"primaryNic,omitempty"`

	// 扩展网卡 >创建节点池添加节点时不支持该参数。
	ExtNics *[]NicSpec `json:"extNics,omitempty"`
}

NodeNicSpec 节点网卡的描述信息。

func (NodeNicSpec) String

func (o NodeNicSpec) String() string

type NodePool

type NodePool struct {

	// API类型,固定值“NodePool”。
	Kind string `json:"kind"`

	// API版本,固定值“v3”。
	ApiVersion string `json:"apiVersion"`

	Metadata *NodePoolMetadata `json:"metadata"`

	Spec *NodePoolSpec `json:"spec"`

	Status *NodePoolStatus `json:"status,omitempty"`
}

NodePool

func (NodePool) String

func (o NodePool) String() string

type NodePoolCondition

type NodePoolCondition struct {

	// Condition类型,当前支持类型如下 - \"Scalable\":节点池实际的可扩容状态,如果状态为\"False\"时则不会再次触发节点池扩容行为。 - \"QuotaInsufficient\":节点池扩容依赖的配额不足,影响节点池可扩容状态。 - \"ResourceInsufficient\":节点池扩容依赖的资源不足,影响节点池可扩容状态。 - \"UnexpectedError\":节点池非预期扩容失败,影响节点池可扩容状态。 [- \"LockedByOrder\":包周期节点池被订单锁定,此时Reason为待支付订单ID。](tag:hws,hws_hk) - \"Error\":节点池错误,通常由于删除失败触发。
	Type *string `json:"type,omitempty"`

	// Condition当前状态,取值如下 - \"True\" - \"False\"
	Status *string `json:"status,omitempty"`

	// 上次状态检查时间。
	LastProbeTime *string `json:"lastProbeTime,omitempty"`

	// 上次状态变更时间。
	LastTransitTime *string `json:"lastTransitTime,omitempty"`

	// 上次状态变更原因。
	Reason *string `json:"reason,omitempty"`

	// Condition详细描述。
	Message *string `json:"message,omitempty"`
}

NodePoolCondition 节点池详细状态。

func (NodePoolCondition) String

func (o NodePoolCondition) String() string

type NodePoolMetadata

type NodePoolMetadata struct {

	// 节点名池名称。  > 命名规则: > >  - 以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围1-50位,且不能以中划线(-)结尾。 > >  - 不允许创建名为 DefaultPool 的节点池。
	Name string `json:"name"`

	// 节点池的uid。创建成功后自动生成,填写无效
	Uid *string `json:"uid,omitempty"`

	// 节点池的注解,以key value对表示。
	Annotations map[string]string `json:"annotations,omitempty"`

	// 更新时间
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`

	// 创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`
}

NodePoolMetadata

func (NodePoolMetadata) String

func (o NodePoolMetadata) String() string

type NodePoolMetadataUpdate

type NodePoolMetadataUpdate struct {

	// 节点池名称。  > 命名规则: > >  - 以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围1-50位,且不能以中划线(-)结尾。 > >  - 不允许创建名为 DefaultPool 的节点池。
	Name string `json:"name"`
}

NodePoolMetadataUpdate

func (NodePoolMetadataUpdate) String

func (o NodePoolMetadataUpdate) String() string

type NodePoolNodeAutoscaling

type NodePoolNodeAutoscaling struct {

	// 是否开启自动扩缩容
	Enable *bool `json:"enable,omitempty"`

	// 若开启自动扩缩容,最小能缩容的节点个数。不可大于集群规格所允许的节点上限
	MinNodeCount *int32 `json:"minNodeCount,omitempty"`

	// 若开启自动扩缩容,最大能扩容的节点个数,应大于等于 minNodeCount,且不超过集群规格对应的节点数量上限。
	MaxNodeCount *int32 `json:"maxNodeCount,omitempty"`

	// 节点保留时间,单位为分钟,扩容出来的节点在这个时间内不会被缩掉
	ScaleDownCooldownTime *int32 `json:"scaleDownCooldownTime,omitempty"`

	// 节点池权重,更高的权重在扩容时拥有更高的优先级
	Priority *int32 `json:"priority,omitempty"`
}

NodePoolNodeAutoscaling 节点池自动伸缩相关配置

func (NodePoolNodeAutoscaling) String

func (o NodePoolNodeAutoscaling) String() string

type NodePoolSpec

type NodePoolSpec struct {

	// 节点池类型。不填写时默认为vm。  - vm:弹性云服务器 - ElasticBMS:C6型弹性裸金属通用计算增强型云服务器,规格示例:c6.22xlarge.2.physical - pm: 裸金属服务器
	Type *NodePoolSpecType `json:"type,omitempty"`

	NodeTemplate *NodeSpec `json:"nodeTemplate"`

	// 节点池初始化节点个数。查询时为节点池目标节点数量。
	InitialNodeCount *int32 `json:"initialNodeCount,omitempty"`

	Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling,omitempty"`

	NodeManagement *NodeManagement `json:"nodeManagement,omitempty"`

	// 1.21版本集群节点池支持绑定安全组,最多五个。
	PodSecurityGroups *[]SecurityId `json:"podSecurityGroups,omitempty"`

	// 节点池自定义安全组相关配置。支持节点池新扩容节点绑定指定的安全组。  - 未指定安全组ID,新建节点将添加Node节点默认安全组。  - 指定有效安全组ID,新建节点将使用指定安全组。  - 指定安全组,应避免对CCE运行依赖的端口规则进行修改。[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/cce_faq/cce_faq_00265.html)。](tag:hws)[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/intl/zh-cn/cce_faq/cce_faq_00265.html)。](tag:hws_hk)
	CustomSecurityGroups *[]string `json:"customSecurityGroups,omitempty"`
}

NodePoolSpec

func (NodePoolSpec) String

func (o NodePoolSpec) String() string

type NodePoolSpecType

type NodePoolSpecType struct {
	// contains filtered or unexported fields
}

func (NodePoolSpecType) MarshalJSON

func (c NodePoolSpecType) MarshalJSON() ([]byte, error)

func (*NodePoolSpecType) UnmarshalJSON

func (c *NodePoolSpecType) UnmarshalJSON(b []byte) error

func (NodePoolSpecType) Value

func (c NodePoolSpecType) Value() string

type NodePoolSpecTypeEnum

type NodePoolSpecTypeEnum struct {
	VM          NodePoolSpecType
	ELASTIC_BMS NodePoolSpecType
	PM          NodePoolSpecType
}

func GetNodePoolSpecTypeEnum

func GetNodePoolSpecTypeEnum() NodePoolSpecTypeEnum

type NodePoolSpecUpdate

type NodePoolSpecUpdate struct {
	NodeTemplate *NodeSpecUpdate `json:"nodeTemplate"`

	// 节点池初始化节点个数。查询时为节点池目标节点数量。默认值为0。
	InitialNodeCount int32 `json:"initialNodeCount"`

	Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling"`
}

NodePoolSpecUpdate

func (NodePoolSpecUpdate) String

func (o NodePoolSpecUpdate) String() string

type NodePoolStatus

type NodePoolStatus struct {

	// 当前节点池中所有节点数量(不含删除中的节点)。
	CurrentNode *int32 `json:"currentNode,omitempty"`

	// 当前节点池中处于创建流程中的节点数量。
	CreatingNode *int32 `json:"creatingNode,omitempty"`

	// 当前节点池中删除中的节点数量。
	DeletingNode *int32 `json:"deletingNode,omitempty"`

	// 节点池状态。 - 空值:可用(节点池当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(节点池当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(节点池当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:节点池当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述节点池状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 节点池扩缩状态:可通过currentNode/creatingNode/deletingNode节点状态统计信息,精确感知当前节点池扩缩状态。 > - 节点池可扩容状态:可通过conditions感知节点池详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误
	Phase *NodePoolStatusPhase `json:"phase,omitempty"`

	// 对节点池执行操作时的 JobID。
	JobId *string `json:"jobId,omitempty"`

	// 节点池当前详细状态列表,详情参见Condition类型定义。
	Conditions *[]NodePoolCondition `json:"conditions,omitempty"`
}

NodePoolStatus

func (NodePoolStatus) String

func (o NodePoolStatus) String() string

type NodePoolStatusPhase

type NodePoolStatusPhase struct {
	// contains filtered or unexported fields
}

func (NodePoolStatusPhase) MarshalJSON

func (c NodePoolStatusPhase) MarshalJSON() ([]byte, error)

func (*NodePoolStatusPhase) UnmarshalJSON

func (c *NodePoolStatusPhase) UnmarshalJSON(b []byte) error

func (NodePoolStatusPhase) Value

func (c NodePoolStatusPhase) Value() string

type NodePoolStatusPhaseEnum

type NodePoolStatusPhaseEnum struct {
	SYNCHRONIZING NodePoolStatusPhase
	SYNCHRONIZED  NodePoolStatusPhase
	SOLD_OUT      NodePoolStatusPhase
	DELETING      NodePoolStatusPhase
	ERROR         NodePoolStatusPhase
}

func GetNodePoolStatusPhaseEnum

func GetNodePoolStatusPhaseEnum() NodePoolStatusPhaseEnum

type NodePoolUpdate

type NodePoolUpdate struct {
	Metadata *NodePoolMetadataUpdate `json:"metadata"`

	Spec *NodePoolSpecUpdate `json:"spec"`
}

NodePoolUpdate

func (NodePoolUpdate) String

func (o NodePoolUpdate) String() string

type NodePriority

type NodePriority struct {
	NodeSelector *NodeSelector `json:"nodeSelector"`

	// 该批次节点的优先级,默认值为0,优先级最低,数值越大优先级越高
	Priority int32 `json:"priority"`
}

NodePriority 节点优先级批量配置

func (NodePriority) String

func (o NodePriority) String() string

type NodePublicIp

type NodePublicIp struct {

	// 已有的弹性IP的ID列表。数量不得大于待创建节点数 > 若已配置ids参数,则无需配置count和eip参数
	Ids *[]string `json:"ids,omitempty"`

	// 要动态创建的弹性IP个数。 > count参数与eip参数必须同时配置。
	Count *int32 `json:"count,omitempty"`

	Eip *NodeEipSpec `json:"eip,omitempty"`
}

NodePublicIp

func (NodePublicIp) String

func (o NodePublicIp) String() string

type NodeSelector

type NodeSelector struct {

	// 标签键
	Key string `json:"key"`

	// 标签值列表
	Value *[]string `json:"value,omitempty"`

	// 标签逻辑运算符
	Operator string `json:"operator"`
}

NodeSelector 节点标签选择器,匹配Kubernetes中nodeSelector相关约束

func (NodeSelector) String

func (o NodeSelector) String() string

type NodeSpec

type NodeSpec struct {

	// 节点的规格,CCE支持的节点规格请参考[节点规格说明](cce_02_0368.xml)获取。
	Flavor string `json:"flavor"`

	// 待创建节点所在的可用区,需要指定可用区(AZ)的名称。 [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?CCE)](tag:hws) [CCE支持的可用区请参考[地区和终端节点](https://developer.huaweicloud.com/intl/zh-cn/endpoint?CCE)](tag:hws_hk)
	Az string `json:"az"`

	// 节点的操作系统类型。具体支持的操作系统请参见[节点操作系统说明](node-os.xml)。 > - 系统会根据集群版本自动选择支持的系统版本。当前集群版本不支持该系统类型,则会报错。 > - 若在创建节点时指定了extendParam中的alpha.cce/NodeImageID参数,可以不填写此参数。
	Os *string `json:"os,omitempty"`

	Login *Login `json:"login"`

	RootVolume *Volume `json:"rootVolume"`

	// 节点的数据盘参数(目前已支持通过控制台为CCE节点添加第二块数据盘)。 如果数据盘正供容器运行时和Kubelet组件使用,则不可被卸载,否则将导致节点不可用。 针对专属云节点,参数解释与rootVolume一致
	DataVolumes []Volume `json:"dataVolumes"`

	Storage *Storage `json:"storage,omitempty"`

	PublicIP *NodePublicIp `json:"publicIP,omitempty"`

	NodeNicSpec *NodeNicSpec `json:"nodeNicSpec,omitempty"`

	// 批量创建时节点的个数,必须为大于等于1,小于等于最大限额的正整数。作用于节点池时该项可以不填写。
	Count *int32 `json:"count,omitempty"`

	// 节点的计费模式: -  0: 按需付费 [- 1: 包周期](tag:hws,hws_hk) [- 2: 已废弃:自动付费包周期](tag:hws,hws_hk)
	BillingMode *int32 `json:"billingMode,omitempty"`

	// 支持给创建出来的节点加Taints来设置反亲和性,taints配置不超过20条。每条Taints包含以下3个参数:  - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀。 - Value:必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。 - Effect:只可选NoSchedule,PreferNoSchedule或NoExecute。 字段使用场景:在节点创建场景下,支持指定初始值,查询时不返回该字段;在节点池场景下,其中节点模板中支持指定初始值,查询时支持返回该字段;在其余场景下,查询时都不会返回该字段。  示例:  “` \"taints\": [{   \"key\": \"status\",   \"value\": \"unavailable\",   \"effect\": \"NoSchedule\" }, {   \"key\": \"looks\",   \"value\": \"bad\",   \"effect\": \"NoSchedule\" }] “`
	Taints *[]Taint `json:"taints,omitempty"`

	// 格式为key/value键值对。键值对个数不超过20条。 - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。 - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。 字段使用场景:在节点创建场景下,支持指定初始值,查询时不返回该字段;在节点池场景下,其中节点模板中支持指定初始值,查询时支持返回该字段;在其余场景下,查询时都不会返回该字段。   示例: “` \"k8sTags\": {   \"key\": \"value\" } “`
	K8sTags map[string]string `json:"k8sTags,omitempty"`

	// 云服务器组ID,若指定,将节点创建在该云服务器组下
	EcsGroupId *string `json:"ecsGroupId,omitempty"`

	// 云服务器故障域,将节点创建在指定故障域下。  >必须同时指定故障域策略的云服务器ID,且需要开启故障域特性开关
	FaultDomain *string `json:"faultDomain,omitempty"`

	// 指定DeH主机的ID,将节点调度到自己的DeH上。 >创建节点池添加节点时不支持该参数。
	DedicatedHostId *string `json:"dedicatedHostId,omitempty"`

	// 是否CCE Turbo集群节点 >创建节点池添加节点时不支持该参数。
	OffloadNode *bool `json:"offloadNode,omitempty"`

	// 节点来源是否为纳管节点
	IsStatic *bool `json:"isStatic,omitempty"`

	// 云服务器标签,键必须唯一,CCE支持的最大用户自定义标签数量依region而定,自定义标签数上限为8个。 字段使用场景:在节点创建场景下,支持指定初始值,查询时不返回该字段;在节点池场景下,其中节点模板中支持指定初始值,查询时支持返回该字段;在其余场景下,查询时都不会返回该字段。
	UserTags *[]UserTag `json:"userTags,omitempty"`

	Runtime *Runtime `json:"runtime,omitempty"`

	// 自定义初始化标记。  CCE节点在初始化完成之前,会打上初始化未完成污点(node.cloudprovider.kubernetes.io/uninitialized)防止pod调度到节点上。  cce支持自定义初始化标记,在接收到initializedConditions参数后,会将参数值转换成节点标签,随节点下发,例如:cloudprovider.openvessel.io/inject-initialized-conditions=CCEInitial_CustomedInitial。  当节点上设置了此标签,会轮询节点的status.Conditions,查看conditions的type是否存在标记名,如CCEInitial、CustomedInitial标记,如果存在所有传入的标记,且状态为True,认为节点初始化完成,则移除初始化污点。  - 必须以字母、数字组成,长度范围1-20位。 - 标记数量不超过2个
	InitializedConditions *[]string `json:"initializedConditions,omitempty"`

	ExtendParam *NodeExtendParam `json:"extendParam,omitempty"`
}

func (NodeSpec) String

func (o NodeSpec) String() string

type NodeSpecUpdate

type NodeSpecUpdate struct {

	// 支持给创建出来的节点加Taints来设置反亲和性,taints配置不超过20条。默认值为空。每条Taints包含以下3个参数:  - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀。 - Value:必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。 - Effect:只可选NoSchedule,PreferNoSchedule或NoExecute。  示例:  “` \"taints\": [{   \"key\": \"status\",   \"value\": \"unavailable\",   \"effect\": \"NoSchedule\" }, {   \"key\": \"looks\",   \"value\": \"bad\",   \"effect\": \"NoSchedule\" }] “`
	Taints []Taint `json:"taints"`

	// 格式为key/value键值对。键值对个数不超过20条。默认值为空。 - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。 - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。  示例: “` \"k8sTags\": {   \"key\": \"value\" } “`
	K8sTags map[string]string `json:"k8sTags"`

	// 云服务器标签,键必须唯一,CCE支持的最大用户自定义标签数量依region而定,自定义标签数上限为8个。默认值为空。
	UserTags []UserTag `json:"userTags"`

	// 自定义初始化标记。  CCE节点在初始化完成之前,会打上初始化未完成污点(node.cloudprovider.kubernetes.io/uninitialized)防止pod调度到节点上。  cce支持自定义初始化标记,在接收到initializedConditions参数后,会将参数值转换成节点标签,随节点下发,例如:cloudprovider.openvessel.io/inject-initialized-conditions=CCEInitial_CustomedInitial。  当节点上设置了此标签,会轮询节点的status.Conditions,查看conditions的type是否存在标记名,如CCEInitial、CustomedInitial标记,如果存在所有传入的标记,且状态为True,认为节点初始化完成,则移除初始化污点。  默认值为空。  - 必须以字母、数字组成,长度范围1-20位。 - 标记数量不超过2个
	InitializedConditions *[]string `json:"initializedConditions,omitempty"`
}

func (NodeSpecUpdate) String

func (o NodeSpecUpdate) String() string

type NodeStatus

type NodeStatus struct {

	// 节点状态:节点资源生命周期管理(如安装卸载等)状态和集群内k8s node状态的综合体现。
	Phase *NodeStatusPhase `json:"phase,omitempty"`

	// 节点最近一次状态检查时间。集群处于异常、冻结或者中间态(例如创建中)时,节点的状态检查动作可能受影响。检查时间超过5分的节点状态不具有参考意义。
	LastProbeTime *string `json:"lastProbeTime,omitempty"`

	// 创建或删除时的任务ID。
	JobID *string `json:"jobID,omitempty"`

	// 底层云服务器或裸金属节点ID。
	ServerId *string `json:"serverId,omitempty"`

	// 节点主网卡私有网段IP地址。
	PrivateIP *string `json:"privateIP,omitempty"`

	// 节点主网卡私有网段IPv6地址。
	PrivateIPv6IP *string `json:"privateIPv6IP,omitempty"`

	// 节点弹性公网IP地址。如果ECS的数据没有实时同步,可在界面上通过“同步节点信息”手动进行更新。
	PublicIP *string `json:"publicIP,omitempty"`

	DeleteStatus *DeleteStatus `json:"deleteStatus,omitempty"`
}

NodeStatus

func (NodeStatus) String

func (o NodeStatus) String() string

type NodeStatusPhase

type NodeStatusPhase struct {
	// contains filtered or unexported fields
}

func (NodeStatusPhase) MarshalJSON

func (c NodeStatusPhase) MarshalJSON() ([]byte, error)

func (*NodeStatusPhase) UnmarshalJSON

func (c *NodeStatusPhase) UnmarshalJSON(b []byte) error

func (NodeStatusPhase) Value

func (c NodeStatusPhase) Value() string

type NodeStatusPhaseEnum

type NodeStatusPhaseEnum struct {
	BUILD      NodeStatusPhase
	INSTALLING NodeStatusPhase
	INSTALLED  NodeStatusPhase
	SHUT_DOWN  NodeStatusPhase
	UPGRADING  NodeStatusPhase
	ACTIVE     NodeStatusPhase
	ABNORMAL   NodeStatusPhase
	DELETING   NodeStatusPhase
	ERROR      NodeStatusPhase
}

func GetNodeStatusPhaseEnum

func GetNodeStatusPhaseEnum() NodeStatusPhaseEnum

type OpenApiResponseSpec

type OpenApiResponseSpec struct {
	Spec *OpenApiResponseSpecSpec `json:"spec,omitempty"`
}

func (OpenApiResponseSpec) String

func (o OpenApiResponseSpec) String() string

type OpenApiResponseSpecSpec

type OpenApiResponseSpecSpec struct {
	Eip *EipSpec `json:"eip,omitempty"`

	// 是否动态创建
	IsDynamic *bool `json:"IsDynamic,omitempty"`
}

func (OpenApiResponseSpecSpec) String

func (o OpenApiResponseSpecSpec) String() string

type PackageConfiguration

type PackageConfiguration struct {

	// 组件名称
	Name *string `json:"name,omitempty"`

	// 组件配置项
	Configurations *[]ConfigurationItem `json:"configurations,omitempty"`
}

func (PackageConfiguration) String

func (o PackageConfiguration) String() string

type PauseUpgradeClusterTaskRequest

type PauseUpgradeClusterTaskRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

PauseUpgradeClusterTaskRequest Request Object

func (PauseUpgradeClusterTaskRequest) String

type PauseUpgradeClusterTaskResponse

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

PauseUpgradeClusterTaskResponse Response Object

func (PauseUpgradeClusterTaskResponse) String

type PersistentVolumeClaim

type PersistentVolumeClaim struct {

	// API版本,固定值**v1**
	ApiVersion string `json:"apiVersion"`

	// API类型,固定值**PersistentVolumeClaim**
	Kind string `json:"kind"`

	Metadata *PersistentVolumeClaimMetadata `json:"metadata"`

	Spec *PersistentVolumeClaimSpec `json:"spec"`

	Status *PersistentVolumeClaimStatus `json:"status,omitempty"`
}

PersistentVolumeClaim

func (PersistentVolumeClaim) String

func (o PersistentVolumeClaim) String() string

type PersistentVolumeClaimMetadata

type PersistentVolumeClaimMetadata struct {

	// PersistentVolumeClaim名称,可以包含小写字母、数字、连字符和点,开头和结尾必须是字母或数字,最长253个字符,同一namespace下name不能重复。
	Name string `json:"name"`

	// PersistentVolumeClaim标签,key/value对格式。   - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。  - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。
	Labels *string `json:"labels,omitempty"`
}

PersistentVolumeClaimMetadata metadata是集群对象的元数据定义,是集合类的元素类型,包含一组由不同名称定义的属性。

func (PersistentVolumeClaimMetadata) String

type PersistentVolumeClaimSpec

type PersistentVolumeClaimSpec struct {

	// 资源需为已经存在的存储资源 - 如果存储资源类型是SFS、EVS、SFS-Turbo,本参数需要填入对应资源的ID - 如果资源类型为OBS,本参数填入OBS名称
	VolumeID string `json:"volumeID"`

	// 云存储的类型,和volumeID搭配使用。即volumeID和storageType必须同时被配置。  - bs:EVS云存储 - nfs:SFS弹性文件存储 - obs:OBS对象存储 - efs:SFS Turbo极速文件存储
	StorageType string `json:"storageType"`

	// 指定volume应该具有的访问模式,列表中仅第一个配置参数有效。 - ReadWriteOnce:该卷可以被单个节点以读/写模式挂载   >集群版本为v1.13.10且storage-driver版本为1.0.19时,才支持此功能。 - ReadOnlyMany:该卷可以被多个节点以只读模式挂载(默认) - ReadWriteMany:该卷可以被多个节点以读/写模式挂载
	AccessModes []PersistentVolumeClaimSpecAccessModes `json:"accessModes"`

	// PVC的StorageClass名称
	StorageClassName *string `json:"storageClassName,omitempty"`

	// PVC绑定的PV名称
	VolumeName *string `json:"volumeName,omitempty"`

	Resources *ResourceRequirements `json:"resources,omitempty"`

	// PVC指定的PV类型
	VolumeMode *string `json:"volumeMode,omitempty"`
}

PersistentVolumeClaimSpec

func (PersistentVolumeClaimSpec) String

func (o PersistentVolumeClaimSpec) String() string

type PersistentVolumeClaimSpecAccessModes

type PersistentVolumeClaimSpecAccessModes struct {
	// contains filtered or unexported fields
}

func (PersistentVolumeClaimSpecAccessModes) MarshalJSON

func (c PersistentVolumeClaimSpecAccessModes) MarshalJSON() ([]byte, error)

func (*PersistentVolumeClaimSpecAccessModes) UnmarshalJSON

func (c *PersistentVolumeClaimSpecAccessModes) UnmarshalJSON(b []byte) error

func (PersistentVolumeClaimSpecAccessModes) Value

type PersistentVolumeClaimSpecAccessModesEnum

type PersistentVolumeClaimSpecAccessModesEnum struct {
	READ_ONLY_MANY  PersistentVolumeClaimSpecAccessModes
	READ_WRITE_MANY PersistentVolumeClaimSpecAccessModes
}

func GetPersistentVolumeClaimSpecAccessModesEnum

func GetPersistentVolumeClaimSpecAccessModesEnum() PersistentVolumeClaimSpecAccessModesEnum

type PersistentVolumeClaimStatus

type PersistentVolumeClaimStatus struct {

	// 显示volume实际具有的访问模式。
	AccessModes *[]string `json:"accessModes,omitempty"`

	// 底层卷的实际资源
	Capacity *string `json:"capacity,omitempty"`

	// PersistentVolumeClaim当前所处的状态
	Phase *string `json:"phase,omitempty"`
}

PersistentVolumeClaimStatus

func (PersistentVolumeClaimStatus) String

type QuotaResource

type QuotaResource struct {

	// 资源类型
	QuotaKey *string `json:"quotaKey,omitempty"`

	// 配额值
	QuotaLimit *int32 `json:"quotaLimit,omitempty"`

	// 已创建的资源个数
	Used *int32 `json:"used,omitempty"`

	// 单位
	Unit *string `json:"unit,omitempty"`

	// 局点ID。若资源不涉及此参数,则不返回该参数。
	RegionId *string `json:"regionId,omitempty"`

	// 可用区ID。若资源不涉及此参数,则不返回该参数。
	AvailabilityZoneId *string `json:"availabilityZoneId,omitempty"`
}

func (QuotaResource) String

func (o QuotaResource) String() string

type ReinstallExtendParam

type ReinstallExtendParam struct {

	// 指定待切换目标操作系统所使用的用户镜像ID,已废弃。 指定此参数等价于指定ReinstallVolumeSpec中imageID,原取值将被覆盖。
	AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"`
}

ReinstallExtendParam 重装拓展参数,已废弃。

func (ReinstallExtendParam) String

func (o ReinstallExtendParam) String() string

type ReinstallK8sOptionsConfig

type ReinstallK8sOptionsConfig struct {

	// 格式为key/value键值对。键值对个数不超过20条。 - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。 - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。  示例: “` \"k8sTags\": {   \"key\": \"value\" } “`
	Labels map[string]string `json:"labels,omitempty"`

	// 支持给创建出来的节点加Taints来设置反亲和性,taints配置不超过20条。每条Taints包含以下3个参数:  - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀。 - Value:必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。 - Effect:只可选NoSchedule,PreferNoSchedule或NoExecute。  示例:  “` \"taints\": [{   \"key\": \"status\",   \"value\": \"unavailable\",   \"effect\": \"NoSchedule\" }, {   \"key\": \"looks\",   \"value\": \"bad\",   \"effect\": \"NoSchedule\" }] “`
	Taints *[]Taint `json:"taints,omitempty"`

	// 节点最大允许创建的实例数(Pod),该数量包含系统默认实例,取值范围为16~256。 该设置的目的为防止节点因管理过多实例而负载过重,请根据您的业务需要进行设置。
	MaxPods *int32 `json:"maxPods,omitempty"`

	// - 弹性网卡队列数配置,默认配置示例如下: “` \"[{\\\"queue\\\":4}]\" “` 包含如下字段: - queue: 弹性网卡队列数。 - 仅在turbo集群的BMS节点时,该字段才可配置。 - 当前支持可配置队列数以及弹性网卡数:{\"1\":128, \"2\":92, \"4\":92, \"8\":32, \"16\":16,\"28\":9}, 既1弹性网卡队列可绑定128张弹性网卡,2队列弹性网卡可绑定92张,以此类推。 - 弹性网卡队列数越多,性能越强,但可绑定弹性网卡数越少,请根据您的需求进行配置(创建后不可修改)。
	NicMultiqueue *string `json:"nicMultiqueue,omitempty"`

	// - 弹性网卡预绑定比例配置,默认配置示例如下: “` \"0.3:0.6\" “`   - 第一位小数:预绑定低水位,弹性网卡预绑定的最低比例(最小预绑定弹性网卡数 = ⌊节点的总弹性网卡数 * 预绑定低水位⌋)   - 第二位小数:预绑定高水位,弹性网卡预绑定的最高比例(最大预绑定弹性网卡数 = ⌊节点的总弹性网卡数 * 预绑定高水位⌋)   - BMS节点上绑定的弹性网卡数:Pod正在使用的弹性网卡数 + 最小预绑定弹性网卡数 < BMS节点上绑定的弹性网卡数 < Pod正在使用的弹性网卡数 + 最大预绑定弹性网卡数   - BMS节点上当预绑定弹性网卡数 < 最小预绑定弹性网卡数时:会绑定弹性网卡,使得预绑定弹性网卡数 = 最小预绑定弹性网卡数   - BMS节点上当预绑定弹性网卡数 > 最大预绑定弹性网卡数时:会定时解绑弹性网卡(约2分钟一次),直到预绑定弹性网卡数 = 最大预绑定弹性网卡数   - 取值范围:[0.0, 1.0]; 一位小数; 低水位 <= 高水位 - 仅在turbo集群的BMS节点时,该字段才可配置。 - 弹性网卡预绑定能加快工作负载的创建,但会占用IP,请根据您的需求进行配置。
	NicThreshold *string `json:"nicThreshold,omitempty"`
}

ReinstallK8sOptionsConfig 节点重装场景Kubernetes节点配置

func (ReinstallK8sOptionsConfig) String

func (o ReinstallK8sOptionsConfig) String() string

type ReinstallNodeSpec

type ReinstallNodeSpec struct {

	// 操作系统。指定自定义镜像场景将以IMS镜像的实际操作系统版本为准。请选择当前集群支持的操作系统版本,例如EulerOS 2.5、CentOS 7.6、EulerOS 2.8。
	Os string `json:"os"`

	Login *Login `json:"login"`

	// 节点名称 > 重装时指定将修改节点名称,且服务器名称会同步修改。默认以服务器当前名称作为节点名称。 > 命名规则:以小写字母开头,由小写字母、数字、中划线(-)组成,长度范围1-56位,且不能以中划线(-)结尾。
	Name *string `json:"name,omitempty"`

	ServerConfig *ReinstallServerConfig `json:"serverConfig,omitempty"`

	VolumeConfig *ReinstallVolumeConfig `json:"volumeConfig,omitempty"`

	RuntimeConfig *ReinstallRuntimeConfig `json:"runtimeConfig,omitempty"`

	K8sOptions *ReinstallK8sOptionsConfig `json:"k8sOptions,omitempty"`

	Lifecycle *NodeLifecycleConfig `json:"lifecycle,omitempty"`

	// 自定义初始化标记。  CCE节点在初始化完成之前,会打上初始化未完成污点(node.cloudprovider.kubernetes.io/uninitialized)防止pod调度到节点上。  cce支持自定义初始化标记,在接收到initializedConditions参数后,会将参数值转换成节点标签,随节点下发,例如:cloudprovider.openvessel.io/inject-initialized-conditions=CCEInitial_CustomedInitial。  当节点上设置了此标签,会轮询节点的status.Conditions,查看conditions的type是否存在标记名,如CCEInitial、CustomedInitial标记,如果存在所有传入的标记,且状态为True,认为节点初始化完成,则移除初始化污点。  - 必须以字母、数字组成,长度范围1-20位。 - 标记数量不超过2个
	InitializedConditions *[]string `json:"initializedConditions,omitempty"`

	ExtendParam *ReinstallExtendParam `json:"extendParam,omitempty"`
}

ReinstallNodeSpec 节点重装配置参数

func (ReinstallNodeSpec) String

func (o ReinstallNodeSpec) String() string

type ReinstallRuntimeConfig

type ReinstallRuntimeConfig struct {

	// 节点上单容器的可用磁盘空间大小,单位G。  不配置该值或值为0时将使用默认值,Devicemapper模式下默认值为10;OverlayFS模式默认不限制单容器可用空间大小,且dockerBaseSize设置仅在新版本集群的EulerOS节点上生效。  CCE节点容器运行时空间配置请参考[数据盘空间分配说明](cce_01_0341.xml)。  Devicemapper模式下建议dockerBaseSize配置不超过80G,设置过大时可能会导致容器运行时初始化时间过长而启动失败,若对容器磁盘大小有特殊要求,可考虑使用挂载外部或本地存储方式代替。
	DockerBaseSize *int32 `json:"dockerBaseSize,omitempty"`

	Runtime *Runtime `json:"runtime,omitempty"`
}

ReinstallRuntimeConfig 节点重装场景容器运行时配置

func (ReinstallRuntimeConfig) String

func (o ReinstallRuntimeConfig) String() string

type ReinstallServerConfig

type ReinstallServerConfig struct {

	// 云服务器标签,键必须唯一,CCE支持的最大用户自定义标签数量依region而定,自定义标签数上限为5个。
	UserTags *[]UserTag `json:"userTags,omitempty"`

	RootVolume *ReinstallVolumeSpec `json:"rootVolume,omitempty"`
}

ReinstallServerConfig 节点重装场景服务器配置

func (ReinstallServerConfig) String

func (o ReinstallServerConfig) String() string

type ReinstallVolumeConfig

type ReinstallVolumeConfig struct {

	// Docker数据盘配置项。  默认配置示例如下: “` \"lvmConfig\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" “`  包含如下字段:   - userLV:用户空间的大小,示例格式:vgpaas/20%VG   - userPath:用户空间挂载路径,示例格式:/home/wqt-test   - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式   - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped   - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG   - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG
	LvmConfig *string `json:"lvmConfig,omitempty"`

	Storage *Storage `json:"storage,omitempty"`
}

ReinstallVolumeConfig 节点重装场景服务器相关配置

func (ReinstallVolumeConfig) String

func (o ReinstallVolumeConfig) String() string

type ReinstallVolumeSpec

type ReinstallVolumeSpec struct {

	// 用户自定义镜像ID
	ImageID *string `json:"imageID,omitempty"`

	// 用户主密钥ID。默认为空时,表示云硬盘不加密。
	CmkID *string `json:"cmkID,omitempty"`
}

ReinstallVolumeSpec 服务器重装云硬盘配置

func (ReinstallVolumeSpec) String

func (o ReinstallVolumeSpec) String() string

type RemoveNodeRequest

type RemoveNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

RemoveNodeRequest Request Object

func (RemoveNodeRequest) String

func (o RemoveNodeRequest) String() string

type RemoveNodeResponse

type RemoveNodeResponse struct {

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“RemoveNodesTask”。
	Kind *string `json:"kind,omitempty"`

	Spec *RemoveNodesSpec `json:"spec,omitempty"`

	Status         *TaskStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

RemoveNodeResponse Response Object

func (RemoveNodeResponse) String

func (o RemoveNodeResponse) String() string

type RemoveNodesSpec

type RemoveNodesSpec struct {
	Login *Login `json:"login"`

	// 待操作节点列表
	Nodes []NodeItem `json:"nodes"`
}

func (RemoveNodesSpec) String

func (o RemoveNodesSpec) String() string

type RemoveNodesTask

type RemoveNodesTask struct {

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	// API类型,固定值“RemoveNodesTask”。
	Kind *string `json:"kind,omitempty"`

	Spec *RemoveNodesSpec `json:"spec"`

	Status *TaskStatus `json:"status,omitempty"`
}

func (RemoveNodesTask) String

func (o RemoveNodesTask) String() string

type ResetNode

type ResetNode struct {

	// 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	NodeID string `json:"nodeID"`

	Spec *ReinstallNodeSpec `json:"spec"`
}

ResetNode 重置节点参数。集群内已有节点通过重置进行重新安装并接入集群。

func (ResetNode) String

func (o ResetNode) String() string

type ResetNodeList

type ResetNodeList struct {

	// API版本,固定值“v3”。
	ApiVersion string `json:"apiVersion"`

	// API类型,固定值“List”。
	Kind string `json:"kind"`

	// 重置节点列表
	NodeList []ResetNode `json:"nodeList"`
}

ResetNodeList 纳管节点参数。满足条件的已有服务器,支持通过纳管节点方式安装并接入集群,重置过程将清理节点上系统盘、数据盘数据,并作为新节点接入Kuberntes集群,请提前备份迁移关键数据。其中节点池内节点重置时不支持外部指定配置,将以节点池配置进行校验并重装,以保证同节点池节点一致性。

func (ResetNodeList) String

func (o ResetNodeList) String() string

type ResetNodeRequest

type ResetNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

ResetNodeRequest Request Object

func (ResetNodeRequest) String

func (o ResetNodeRequest) String() string

type ResetNodeResponse

type ResetNodeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	Jobid          *string `json:"jobid,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResetNodeResponse Response Object

func (ResetNodeResponse) String

func (o ResetNodeResponse) String() string

type ResourceRequirements

type ResourceRequirements struct {

	// 资源限制,创建时指定无效
	Limits map[string]string `json:"limits,omitempty"`

	// 资源需求,创建时指定无效
	Requests map[string]string `json:"requests,omitempty"`
}

func (ResourceRequirements) String

func (o ResourceRequirements) String() string

type ResourceTag

type ResourceTag struct {

	// Key值。 - 不能为空,最多支持128个字符 - 可用UTF-8格式表示的汉字、字母、数字和空格 - 支持部分特殊字符:_.:/=+-@ - 不能以\"\\_sys\\_\"开头
	Key *string `json:"key,omitempty"`

	// Value值。 - 可以为空但不能缺省,最多支持255个字符 - 可用UTF-8格式表示的汉字、字母、数字和空格 - 支持部分特殊字符:_.:/=+-@
	Value *string `json:"value,omitempty"`
}

ResourceTag CCE资源标签

func (ResourceTag) String

func (o ResourceTag) String() string

type RetryUpgradeClusterTaskRequest

type RetryUpgradeClusterTaskRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

RetryUpgradeClusterTaskRequest Request Object

func (RetryUpgradeClusterTaskRequest) String

type RetryUpgradeClusterTaskResponse

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

RetryUpgradeClusterTaskResponse Response Object

func (RetryUpgradeClusterTaskResponse) String

type Runtime

type Runtime struct {

	// 容器运行时, 默认场景: - 1.25以下集群:默认为\"docker\" - 1.25及以上集群,随操作系统变化,默认的容器运行时不同:操作系统为欧拉2.5、欧拉2.8的节点默认为\"docker\",其余操作系统的节点默认为\"containerd\"
	Name *RuntimeName `json:"name,omitempty"`
}

func (Runtime) String

func (o Runtime) String() string

type RuntimeConfig

type RuntimeConfig struct {

	// LVM写入模式:linear、striped。linear:线性模式;striped:条带模式,使用多块磁盘组成条带模式,能够提升磁盘性能。
	LvType string `json:"lvType"`
}

func (RuntimeConfig) String

func (o RuntimeConfig) String() string

type RuntimeName

type RuntimeName struct {
	// contains filtered or unexported fields
}

func (RuntimeName) MarshalJSON

func (c RuntimeName) MarshalJSON() ([]byte, error)

func (*RuntimeName) UnmarshalJSON

func (c *RuntimeName) UnmarshalJSON(b []byte) error

func (RuntimeName) Value

func (c RuntimeName) Value() string

type RuntimeNameEnum

type RuntimeNameEnum struct {
	DOCKER     RuntimeName
	CONTAINERD RuntimeName
}

func GetRuntimeNameEnum

func GetRuntimeNameEnum() RuntimeNameEnum

type SecurityId

type SecurityId struct {

	// 安全组ID。
	Id *string `json:"id,omitempty"`
}

func (SecurityId) String

func (o SecurityId) String() string

type ShowAddonInstanceRequest

type ShowAddonInstanceRequest struct {

	// 插件实例id
	Id string `json:"id"`

	// 集群 ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)
	ClusterId *string `json:"cluster_id,omitempty"`
}

ShowAddonInstanceRequest Request Object

func (ShowAddonInstanceRequest) String

func (o ShowAddonInstanceRequest) String() string

type ShowAddonInstanceResponse

type ShowAddonInstanceResponse struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *AddonMetadata `json:"metadata,omitempty"`

	Spec *InstanceSpec `json:"spec,omitempty"`

	Status         *AddonInstanceStatus `json:"status,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ShowAddonInstanceResponse Response Object

func (ShowAddonInstanceResponse) String

func (o ShowAddonInstanceResponse) String() string

type ShowClusterEndpointsRequest

type ShowClusterEndpointsRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`
}

ShowClusterEndpointsRequest Request Object

func (ShowClusterEndpointsRequest) String

type ShowClusterEndpointsResponse

type ShowClusterEndpointsResponse struct {
	Metadata *Metadata `json:"metadata,omitempty"`

	Spec *OpenApiResponseSpec `json:"spec,omitempty"`

	Status         *MasterEipResponseStatus `json:"status,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

ShowClusterEndpointsResponse Response Object

func (ShowClusterEndpointsResponse) String

type ShowClusterRequest

type ShowClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

	// 查询集群详细信息。  若设置为true,获取集群下节点总数(totalNodesNumber)、正常节点数(activeNodesNumber)、CPU总量(totalNodesCPU)、内存总量(totalNodesMemory)和已安装插件列表(installedAddonInstances),已安装插件列表中包含名称(addonTemplateName)、版本号(version)、插件的状态信息(status),放入到annotation中。
	Detail *string `json:"detail,omitempty"`
}

ShowClusterRequest Request Object

func (ShowClusterRequest) String

func (o ShowClusterRequest) String() string

type ShowClusterResponse

type ShowClusterResponse struct {

	// API类型,固定值“Cluster”或“cluster”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *ClusterMetadata `json:"metadata,omitempty"`

	Spec *ClusterSpec `json:"spec,omitempty"`

	Status         *ClusterStatus `json:"status,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowClusterResponse Response Object

func (ShowClusterResponse) String

func (o ShowClusterResponse) String() string

type ShowJobRequest

type ShowJobRequest struct {

	// 任务ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	JobId string `json:"job_id"`
}

ShowJobRequest Request Object

func (ShowJobRequest) String

func (o ShowJobRequest) String() string

type ShowJobResponse

type ShowJobResponse struct {

	// API类型,固定值“Job”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *JobMetadata `json:"metadata,omitempty"`

	Spec *JobSpec `json:"spec,omitempty"`

	Status         *JobStatus `json:"status,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowJobResponse Response Object

func (ShowJobResponse) String

func (o ShowJobResponse) String() string

type ShowNodePoolRequest

type ShowNodePoolRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点池ID
	NodepoolId string `json:"nodepool_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`
}

ShowNodePoolRequest Request Object

func (ShowNodePoolRequest) String

func (o ShowNodePoolRequest) String() string

type ShowNodePoolResponse

type ShowNodePoolResponse struct {

	// API类型,固定值“NodePool”。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodePoolMetadata `json:"metadata,omitempty"`

	Spec *NodePoolSpec `json:"spec,omitempty"`

	Status         *NodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowNodePoolResponse Response Object

func (ShowNodePoolResponse) String

func (o ShowNodePoolResponse) String() string

type ShowNodeRequest

type ShowNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	NodeId string `json:"node_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`
}

ShowNodeRequest Request Object

func (ShowNodeRequest) String

func (o ShowNodeRequest) String() string

type ShowNodeResponse

type ShowNodeResponse struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec,omitempty"`

	Status         *NodeStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowNodeResponse Response Object

func (ShowNodeResponse) String

func (o ShowNodeResponse) String() string

type ShowQuotasRequest

type ShowQuotasRequest struct {
}

ShowQuotasRequest Request Object

func (ShowQuotasRequest) String

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse

type ShowQuotasResponse struct {

	// 资源
	Quotas         *[]QuotaResource `json:"quotas,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowQuotasResponse Response Object

func (ShowQuotasResponse) String

func (o ShowQuotasResponse) String() string

type ShowUpgradeClusterTaskRequest

type ShowUpgradeClusterTaskRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 升级任务ID,调用集群升级API后从响应体中uid字段获取。
	TaskId string `json:"task_id"`
}

ShowUpgradeClusterTaskRequest Request Object

func (ShowUpgradeClusterTaskRequest) String

type ShowUpgradeClusterTaskResponse

type ShowUpgradeClusterTaskResponse struct {

	// api版本,默认为v3
	ApiVersion *string `json:"apiVersion,omitempty"`

	// 资源类型,默认为UpgradeTask
	Kind *string `json:"kind,omitempty"`

	Metadata *UpgradeTaskMetadata `json:"metadata,omitempty"`

	Spec *UpgradeTaskSpec `json:"spec,omitempty"`

	Status         *UpgradeTaskStatus `json:"status,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ShowUpgradeClusterTaskResponse Response Object

func (ShowUpgradeClusterTaskResponse) String

type ShowVersionRequest

type ShowVersionRequest struct {
}

ShowVersionRequest Request Object

func (ShowVersionRequest) String

func (o ShowVersionRequest) String() string

type ShowVersionResponse

type ShowVersionResponse struct {

	// API版本信息列表
	Versions       *[]ApiVersionDetail `json:"versions,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ShowVersionResponse Response Object

func (ShowVersionResponse) String

func (o ShowVersionResponse) String() string

type Storage

type Storage struct {

	// 磁盘选择,根据matchLabels和storageType对匹配的磁盘进行管理。磁盘匹配存在先后顺序,靠前的匹配规则优先匹配。
	StorageSelectors []StorageSelectors `json:"storageSelectors"`

	// 由多个存储设备组成的存储组,用于各个存储空间的划分。
	StorageGroups []StorageGroups `json:"storageGroups"`
}

Storage 磁盘初始化配置管理参数。 该参数配置逻辑较为复杂,详细说明请参见[节点磁盘挂载](node_storage_example.xml)。 该参数缺省时,按照extendParam中的DockerLVMConfigOverride(已废弃)参数进行磁盘管理。此参数对1.15.11及以上集群版本支持。 > 如存在节点规格涉及本地盘并同时使用云硬盘场景时,请勿缺省此参数,避免出现将用户未期望的磁盘分区。

func (Storage) String

func (o Storage) String() string

type StorageGroups

type StorageGroups struct {

	// storageGroups的名字,作为虚拟存储组的名字,因此各个group名字不能重复。
	Name string `json:"name"`

	// k8s及runtime所属存储空间。有且仅有一个group被设置为true,不填默认false。
	CceManaged *bool `json:"cceManaged,omitempty"`

	// 对应storageSelectors中的name,一个group可选择多个selector;但一个selector只能被一个group选择。
	SelectorNames []string `json:"selectorNames"`

	// group中空间配置的详细管理。
	VirtualSpaces []VirtualSpace `json:"virtualSpaces"`
}

func (StorageGroups) String

func (o StorageGroups) String() string

type StorageSelectors

type StorageSelectors struct {

	// selector的名字,作为storageGroup中selectorNames的索引,因此各个selector间的名字不能重复。
	Name string `json:"name"`

	// 存储类型,当前仅支持evs(云硬盘)或local(本地盘);local存储类型不支持磁盘选择,所有本地盘将被组成一个VG,因此也仅允许只有一个local类型的storageSelector。
	StorageType string `json:"storageType"`

	MatchLabels *StorageSelectorsMatchLabels `json:"matchLabels,omitempty"`
}

func (StorageSelectors) String

func (o StorageSelectors) String() string

type StorageSelectorsMatchLabels

type StorageSelectorsMatchLabels struct {

	// 匹配的磁盘大小,不填则无磁盘大小限制。例如:100.
	Size *string `json:"size,omitempty"`

	// 云硬盘类型,目前支持SSD\\GPSSD\\SAS三种。
	VolumeType *string `json:"volumeType,omitempty"`

	// 磁盘加密标识符,0代表不加密,1代表加密。
	MetadataEncrypted *string `json:"metadataEncrypted,omitempty"`

	// 加密磁盘的用户主密钥ID,长度为36字节的字符串。
	MetadataCmkid *string `json:"metadataCmkid,omitempty"`

	// 磁盘选择个数,不填则选择所有此类磁盘。
	Count *string `json:"count,omitempty"`
}

StorageSelectorsMatchLabels evs盘的匹配字段,支持DataVolume中的size、volumeType、metadataEncrypted、metadataCmkid、count五个字段。

func (StorageSelectorsMatchLabels) String

type SupportVersions

type SupportVersions struct {

	// 支持的集群类型
	ClusterType string `json:"clusterType"`

	// 支持的集群版本(正则表达式)
	ClusterVersion []string `json:"clusterVersion"`
}

SupportVersions 插件支持升级的集群版本

func (SupportVersions) String

func (o SupportVersions) String() string

type Taint

type Taint struct {

	// 键
	Key string `json:"key"`

	// 值
	Value *string `json:"value,omitempty"`

	// 作用效果
	Effect TaintEffect `json:"effect"`
}

Taint 如下字段不可使用: - node.kubernetes.io/memory-pressure - node.kubernetes.io/disk-pressure - node.kubernetes.io/out-of-disk - node.kubernetes.io/unschedulable - node.kubernetes.io/network-unavailable

func (Taint) String

func (o Taint) String() string

type TaintEffect

type TaintEffect struct {
	// contains filtered or unexported fields
}

func (TaintEffect) MarshalJSON

func (c TaintEffect) MarshalJSON() ([]byte, error)

func (*TaintEffect) UnmarshalJSON

func (c *TaintEffect) UnmarshalJSON(b []byte) error

func (TaintEffect) Value

func (c TaintEffect) Value() string

type TaintEffectEnum

type TaintEffectEnum struct {
	NO_SCHEDULE        TaintEffect
	PREFER_NO_SCHEDULE TaintEffect
	NO_EXECUTE         TaintEffect
}

func GetTaintEffectEnum

func GetTaintEffectEnum() TaintEffectEnum

type TaskStatus

type TaskStatus struct {

	// 任务ID,供调用者查询任务进度。
	JobID *string `json:"jobID,omitempty"`
}

func (TaskStatus) String

func (o TaskStatus) String() string

type Templatespec

type Templatespec struct {

	// 模板类型(helm,static)
	Type string `json:"type"`

	// 是否为必安装插件
	Require *bool `json:"require,omitempty"`

	// 模板所属分组
	Labels []string `json:"labels"`

	// Logo图片地址
	LogoURL string `json:"logoURL"`

	// 插件详情描述及使用说明
	ReadmeURL string `json:"readmeURL"`

	// 模板描述
	Description string `json:"description"`

	// 模板具体版本详情
	Versions []Versions `json:"versions"`
}

Templatespec 插件模板详细信息

func (Templatespec) String

func (o Templatespec) String() string

type UpdateAddonInstanceRequest

type UpdateAddonInstanceRequest struct {

	// 插件实例id
	Id string `json:"id"`

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

UpdateAddonInstanceRequest Request Object

func (UpdateAddonInstanceRequest) String

type UpdateAddonInstanceResponse

type UpdateAddonInstanceResponse struct {

	// API类型,固定值“Addon”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *AddonMetadata `json:"metadata,omitempty"`

	Spec *InstanceSpec `json:"spec,omitempty"`

	Status         *AddonInstanceStatus `json:"status,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

UpdateAddonInstanceResponse Response Object

func (UpdateAddonInstanceResponse) String

type UpdateClusterEipRequest

type UpdateClusterEipRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

UpdateClusterEipRequest Request Object

func (UpdateClusterEipRequest) String

func (o UpdateClusterEipRequest) String() string

type UpdateClusterEipResponse

type UpdateClusterEipResponse struct {
	Metadata *Metadata `json:"metadata,omitempty"`

	Spec *MasterEipResponseSpec `json:"spec,omitempty"`

	Status         *MasterEipResponseStatus `json:"status,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

UpdateClusterEipResponse Response Object

func (UpdateClusterEipResponse) String

func (o UpdateClusterEipResponse) String() string

type UpdateClusterRequest

type UpdateClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

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

UpdateClusterRequest Request Object

func (UpdateClusterRequest) String

func (o UpdateClusterRequest) String() string

type UpdateClusterResponse

type UpdateClusterResponse struct {

	// API类型,固定值“Cluster”或“cluster”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *ClusterMetadata `json:"metadata,omitempty"`

	Spec *ClusterSpec `json:"spec,omitempty"`

	Status         *ClusterStatus `json:"status,omitempty"`
	HttpStatusCode int            `json:"-"`
}

UpdateClusterResponse Response Object

func (UpdateClusterResponse) String

func (o UpdateClusterResponse) String() string

type UpdateNodePoolRequest

type UpdateNodePoolRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点池ID
	NodepoolId string `json:"nodepool_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

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

UpdateNodePoolRequest Request Object

func (UpdateNodePoolRequest) String

func (o UpdateNodePoolRequest) String() string

type UpdateNodePoolResponse

type UpdateNodePoolResponse struct {

	// API类型,固定值“NodePool”。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodePoolMetadata `json:"metadata,omitempty"`

	Spec *NodePoolSpec `json:"spec,omitempty"`

	Status         *NodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int             `json:"-"`
}

UpdateNodePoolResponse Response Object

func (UpdateNodePoolResponse) String

func (o UpdateNodePoolResponse) String() string

type UpdateNodeRequest

type UpdateNodeRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

	// 节点ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	NodeId string `json:"node_id"`

	// 集群状态兼容Error参数,用于API平滑切换。 兼容场景下,errorStatus为空则屏蔽Error状态为Deleting状态。
	ErrorStatus *string `json:"errorStatus,omitempty"`

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

UpdateNodeRequest Request Object

func (UpdateNodeRequest) String

func (o UpdateNodeRequest) String() string

type UpdateNodeResponse

type UpdateNodeResponse struct {

	// API类型,固定值“Node”,该值不可修改。
	Kind *string `json:"kind,omitempty"`

	// API版本,固定值“v3”,该值不可修改。
	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *NodeSpec `json:"spec,omitempty"`

	Status         *NodeStatus `json:"status,omitempty"`
	HttpStatusCode int         `json:"-"`
}

UpdateNodeResponse Response Object

func (UpdateNodeResponse) String

func (o UpdateNodeResponse) String() string

type UpgradeAddonConfig

type UpgradeAddonConfig struct {

	// 插件名称
	AddonTemplateName string `json:"addonTemplateName"`

	// 执行动作,当前升级场景支持操作为\"patch\"
	Operation string `json:"operation"`

	// 目标插件版本号
	Version string `json:"version"`

	// 插件参数列表,Key:Value格式
	Values *interface{} `json:"values,omitempty"`
}

func (UpgradeAddonConfig) String

func (o UpgradeAddonConfig) String() string

type UpgradeCluserResponseMetadata

type UpgradeCluserResponseMetadata struct {

	// 升级任务ID,可通过调用获取集群升级任务详情API查询进展
	Uid *string `json:"uid,omitempty"`
}

UpgradeCluserResponseMetadata 升级任务元数据

func (UpgradeCluserResponseMetadata) String

type UpgradeClusterRequest

type UpgradeClusterRequest struct {

	// 集群ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	ClusterId string `json:"cluster_id"`

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

UpgradeClusterRequest Request Object

func (UpgradeClusterRequest) String

func (o UpgradeClusterRequest) String() string

type UpgradeClusterRequestBody

type UpgradeClusterRequestBody struct {
	Metadata *UpgradeClusterRequestMetadata `json:"metadata"`

	Spec *UpgradeSpec `json:"spec"`
}

func (UpgradeClusterRequestBody) String

func (o UpgradeClusterRequestBody) String() string

type UpgradeClusterRequestMetadata

type UpgradeClusterRequestMetadata struct {

	// api版本,默认为v3
	ApiVersion string `json:"apiVersion"`

	// 资源类型,默认为UpgradeTask
	Kind string `json:"kind"`
}

func (UpgradeClusterRequestMetadata) String

type UpgradeClusterResponse

type UpgradeClusterResponse struct {
	Metadata *UpgradeCluserResponseMetadata `json:"metadata,omitempty"`

	Spec           *UpgradeResponseSpec `json:"spec,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

UpgradeClusterResponse Response Object

func (UpgradeClusterResponse) String

func (o UpgradeClusterResponse) String() string

type UpgradeResponseSpec

type UpgradeResponseSpec struct {
	ClusterUpgradeAction *ClusterUpgradeResponseAction `json:"clusterUpgradeAction,omitempty"`
}

UpgradeResponseSpec 升级任务元数据

func (UpgradeResponseSpec) String

func (o UpgradeResponseSpec) String() string

type UpgradeSpec

type UpgradeSpec struct {
	ClusterUpgradeAction *ClusterUpgradeAction `json:"clusterUpgradeAction,omitempty"`
}

func (UpgradeSpec) String

func (o UpgradeSpec) String() string

type UpgradeStrategy

type UpgradeStrategy struct {

	// 升级策略类型,当前仅支持原地升级类型\"inPlaceRollingUpdate\"
	Type string `json:"type"`

	InPlaceRollingUpdate *InPlaceRollingUpdate `json:"inPlaceRollingUpdate,omitempty"`
}

UpgradeStrategy 升级配置

func (UpgradeStrategy) String

func (o UpgradeStrategy) String() string

type UpgradeTaskMetadata

type UpgradeTaskMetadata struct {

	// 升级任务ID
	Uid *string `json:"uid,omitempty"`

	// 任务创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	// 任务更新时间
	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`
}

UpgradeTaskMetadata 升级任务元数据

func (UpgradeTaskMetadata) String

func (o UpgradeTaskMetadata) String() string

type UpgradeTaskSpec

type UpgradeTaskSpec struct {

	// 升级前集群版本
	Version *string `json:"version,omitempty"`

	// 升级的目标集群版本
	TargetVersion *string `json:"targetVersion,omitempty"`

	// 升级任务附属信息
	Items *interface{} `json:"items,omitempty"`
}

UpgradeTaskSpec 升级任务属性

func (UpgradeTaskSpec) String

func (o UpgradeTaskSpec) String() string

type UpgradeTaskStatus

type UpgradeTaskStatus struct {

	// 升级任务状态. > Init:初始化 > Queuing:等待 > Running:运行中 > Pause:暂停 > Success:成功 > Failed:失败
	Phase *string `json:"phase,omitempty"`

	// 升级任务进度
	Progress *string `json:"progress,omitempty"`

	// 升级任务结束时间
	CompletionTime *string `json:"completionTime,omitempty"`
}

UpgradeTaskStatus 升级任务状态信息

func (UpgradeTaskStatus) String

func (o UpgradeTaskStatus) String() string

type User

type User struct {

	// 客户端证书。
	ClientCertificateData *string `json:"client-certificate-data,omitempty"`

	// 包含来自TLS客户端密钥文件的PEM编码数据。
	ClientKeyData *string `json:"client-key-data,omitempty"`
}

func (User) String

func (o User) String() string

type UserPassword

type UserPassword struct {

	// 登录帐号,默认为“root”
	Username *string `json:"username,omitempty"`

	// 登录密码,若创建节点通过用户名密码方式,即使用该字段,则响应体中该字段作屏蔽展示。 密码复杂度要求: - 长度为8-26位。 - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?~#*)中的三种。 - 密码不能包含用户名或用户名的逆序。 创建节点时password字段需要加盐加密,具体方法请参见[创建节点时password字段加盐加密](add-salt.xml)。
	Password string `json:"password"`
}

func (UserPassword) String

func (o UserPassword) String() string

type UserTag

type UserTag struct {

	// 云服务器标签的键。不得以\"CCE-\"或\"__type_baremetal\"开头
	Key *string `json:"key,omitempty"`

	// 云服务器标签的值
	Value *string `json:"value,omitempty"`
}

UserTag

func (UserTag) String

func (o UserTag) String() string

type Users

type Users struct {

	// 当前为固定值“user“。
	Name *string `json:"name,omitempty"`

	User *User `json:"user,omitempty"`
}

func (Users) String

func (o Users) String() string

type Versions

type Versions struct {

	// 插件版本号
	Version string `json:"version"`

	// 插件安装参数
	Input *interface{} `json:"input"`

	// 是否为稳定版本
	Stable bool `json:"stable"`

	// 供界面使用的翻译信息
	Translate *interface{} `json:"translate"`

	// 支持集群版本号
	SupportVersions []SupportVersions `json:"supportVersions"`

	// 创建时间
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	// 更新时间
	UpdateTimestamp string `json:"updateTimestamp"`
}

Versions 具体插件版本信息

func (Versions) String

func (o Versions) String() string

type VirtualSpace

type VirtualSpace struct {

	// virtualSpace的名称,当前仅支持三种类型:kubernetes、runtime、user。 - kubernetes:k8s空间配置,需配置lvmConfig; - runtime:运行时空间配置,需配置runtimeConfig; - user:用户空间配置,需配置lvmConfig
	Name string `json:"name"`

	// virtualSpace的大小,仅支持整数百分比。例如:90%。 >一个group中所有virtualSpace的百分比之和不得超过100%
	Size string `json:"size"`

	LvmConfig *LvmConfig `json:"lvmConfig,omitempty"`

	RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"`
}

func (VirtualSpace) String

func (o VirtualSpace) String() string

type Volume

type Volume struct {

	// 磁盘大小,单位为GB  - 系统盘取值范围:40~1024 - 数据盘取值范围:100~32768
	Size int32 `json:"size"`

	// 磁盘类型,取值请参见创建云服务器 中“root_volume字段数据结构说明”。  - SAS:高IO,是指由SAS存储提供资源的磁盘类型。 - SSD:超高IO,是指由SSD存储提供资源的磁盘类型。 - SATA:普通IO,是指由SATA存储提供资源的磁盘类型。EVS已下线SATA磁盘,仅存量节点有此类型的磁盘。
	Volumetype string `json:"volumetype"`

	// 磁盘扩展参数,取值请参见创建云服务器中“extendparam”参数的描述。 [链接请参见[创建云服务器](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212668.html)](tag:hws) [链接请参见[创建云服务器](https://support.huaweicloud.com/intl/zh-cn/api-ecs/zh-cn_topic_0020212668.html)](tag:hws_hk)
	ExtendParam map[string]interface{} `json:"extendParam,omitempty"`

	// 云服务器系统盘对应的存储池的ID。仅用作专属云集群,专属分布式存储DSS的存储池ID,即dssPoolID。  [获取方法请参见[获取单个专属分布式存储池详情](https://support.huaweicloud.com/api-dss/dss_02_1001.html)中“表3 响应参数”的ID字段。](tag:hws) [获取方法请参见[获取单个专属分布式存储池详情](https://support.huaweicloud.com/intl/zh-cn/api-dss/dss_02_1001.html)中“表3 响应参数”的ID字段。](tag:hws_hk)
	ClusterId *string `json:"cluster_id,omitempty"`

	// 云服务器系统盘对应的磁盘存储类型。仅用作专属云集群,固定取值为dss。
	ClusterType *string `json:"cluster_type,omitempty"`

	// - 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为SCSI类型的卷 - 节点池类型为ElasticBMS时,此参数必须填写为true - 如存在节点规格涉及本地盘并同时使用云硬盘场景时,请设置磁盘初始化配置管理参数,参见[节点磁盘挂载](node_storage_example.xml)。
	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Metadata *VolumeMetadata `json:"metadata,omitempty"`
}

Volume

func (Volume) String

func (o Volume) String() string

type VolumeMetadata

type VolumeMetadata struct {

	// 表示云硬盘加密功能的字段,'0'代表不加密,'1'代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// 用户主密钥ID,是metadata中的表示加密功能的字段,与__system__encrypted配合使用。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

VolumeMetadata 云硬盘加密信息,仅在创建节点系统盘或数据盘需加密时须填写。

func (VolumeMetadata) String

func (o VolumeMetadata) String() string

Source Files

Jump to

Keyboard shortcuts

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