model

package
v0.1.96 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddNode added in v0.0.59

type AddNode struct {

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

	Spec *ReinstallNodeSpec `json:"spec"`
}

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

func (AddNode) String added in v0.0.59

func (o AddNode) String() string

type AddNodeList added in v0.0.59

type AddNodeList struct {

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

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

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

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

func (AddNodeList) String added in v0.0.59

func (o AddNodeList) String() string

type AddNodeRequest added in v0.0.59

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 added in v0.0.59

func (o AddNodeRequest) String() string

type AddNodeResponse added in v0.0.59

type AddNodeResponse struct {

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

AddNodeResponse Response Object

func (AddNodeResponse) String added in v0.0.59

func (o AddNodeResponse) String() string

type AddonCheckStatus added in v0.1.76

type AddonCheckStatus struct {

	// 状态,取值如下 - Init: 初始化 - Running 运行中 - Success 成功 - Failed 失败
	Phase *string `json:"phase,omitempty"`

	// 检查项状态集合
	ItemsStatus *[]PreCheckItemStatus `json:"itemsStatus,omitempty"`
}

AddonCheckStatus 插件限制检查状态

func (AddonCheckStatus) String added in v0.1.76

func (o AddonCheckStatus) 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 AddonInstanceRollbackRequest added in v0.1.57

type AddonInstanceRollbackRequest struct {

	// 集群ID
	ClusterID string `json:"clusterID"`
}

func (AddonInstanceRollbackRequest) String added in v0.1.57

type AddonInstanceStatus

type AddonInstanceStatus struct {

	// 插件实例状态, 取值如下 - running:运行中,表示插件全部实例状态都在运行中,插件正常使用。 - abnormal:不可用,表示插件状态异常,插件不可使用。可点击插件名称查看实例异常事件。 - installing:安装中,表示插件正在安装中。 - installFailed:安装失败,表示插件安装失败,需要卸载后重新安装。 - upgrading:升级中,表示插件正在更新中。 - upgradeFailed:升级失败,表示插件升级失败,可重试升级或卸载后重新安装。 - deleting:删除中,表示插件正在删除中。 - deleteFailed:删除失败,表示插件删除失败,可重试卸载。 - deleteSuccess:删除成功,表示插件删除成功。 - available:部分就绪,表示插件下只有部分实例状态为运行中,插件部分功能可用。 - rollbacking:回滚中,表示插件正在回滚中。 - rollbackFailed:回滚失败,表示插件回滚失败,可重试回滚或卸载后重新安装。 - unknown:未知状态,表示插件模板实例不存在。
	Status AddonInstanceStatusStatus `json:"status"`

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

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

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

	CurrentVersion *Versions `json:"currentVersion"`

	// 是否支持回滚到插件升级前的插件版本
	IsRollbackable *bool `json:"isRollbackable,omitempty"`

	// 插件升级或回滚前的版本
	PreviousVersion *string `json:"previousVersion,omitempty"`
}

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 added in v0.0.90

type AddonMetadata added in v0.1.42

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 added in v0.1.42

func (o AddonMetadata) String() string

type AddonRisks added in v0.1.76

type AddonRisks struct {

	// 插件模板名称
	AddonTemplateName *string `json:"addonTemplateName,omitempty"`

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

AddonRisks 节点风险来源

func (AddonRisks) String added in v0.1.76

func (o AddonRisks) 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 added in v0.0.97

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 added in v0.0.97

func (o ApiVersionDetail) String() string

type ApiVersionDetailStatus added in v0.0.97

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

func (ApiVersionDetailStatus) MarshalJSON added in v0.0.97

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

func (*ApiVersionDetailStatus) UnmarshalJSON added in v0.0.97

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

func (ApiVersionDetailStatus) Value added in v0.0.97

func (c ApiVersionDetailStatus) Value() string

type ApiVersionDetailStatusEnum added in v0.0.97

type ApiVersionDetailStatusEnum struct {
	CURRENT    ApiVersionDetailStatus
	SUPPORTED  ApiVersionDetailStatus
	DEPRECATED ApiVersionDetailStatus
}

func GetApiVersionDetailStatusEnum added in v0.0.97

func GetApiVersionDetailStatusEnum() ApiVersionDetailStatusEnum
type ApiVersionLink struct {

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

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

ApiVersionLink API版本的URL链接信息。

func (ApiVersionLink) String added in v0.0.97

func (o ApiVersionLink) String() string

type ApiVersionLinkRel added in v0.0.97

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

func (ApiVersionLinkRel) MarshalJSON added in v0.0.97

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

func (*ApiVersionLinkRel) UnmarshalJSON added in v0.0.97

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

func (ApiVersionLinkRel) Value added in v0.0.97

func (c ApiVersionLinkRel) Value() string

type ApiVersionLinkRelEnum added in v0.0.97

type ApiVersionLinkRelEnum struct {
	SELF ApiVersionLinkRel
}

func GetApiVersionLinkRelEnum added in v0.0.97

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 BatchCreateClusterTagsRequest added in v0.1.57

type BatchCreateClusterTagsRequest struct {

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

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

BatchCreateClusterTagsRequest Request Object

func (BatchCreateClusterTagsRequest) String added in v0.1.57

type BatchCreateClusterTagsRequestBody added in v0.1.57

type BatchCreateClusterTagsRequestBody struct {

	// 待创建的集群资源标签列表。单集群资源标签总数上限为20。
	Tags []ResourceTag `json:"tags"`
}

BatchCreateClusterTagsRequestBody 批量添加指定集群资源标签的请求体

func (BatchCreateClusterTagsRequestBody) String added in v0.1.57

type BatchCreateClusterTagsResponse added in v0.1.57

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

BatchCreateClusterTagsResponse Response Object

func (BatchCreateClusterTagsResponse) String added in v0.1.57

type BatchDeleteClusterTagsRequest added in v0.1.57

type BatchDeleteClusterTagsRequest struct {

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

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

BatchDeleteClusterTagsRequest Request Object

func (BatchDeleteClusterTagsRequest) String added in v0.1.57

type BatchDeleteClusterTagsRequestBody added in v0.1.57

type BatchDeleteClusterTagsRequestBody struct {

	// 待删除的集群资源标签列表。
	Tags []ResourceDeleteTag `json:"tags"`
}

BatchDeleteClusterTagsRequestBody 批量删除指定集群资源标签的请求体

func (BatchDeleteClusterTagsRequestBody) String added in v0.1.57

type BatchDeleteClusterTagsResponse added in v0.1.57

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

BatchDeleteClusterTagsResponse Response Object

func (BatchDeleteClusterTagsResponse) String added in v0.1.57

type CertDuration

type CertDuration struct {

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

CertDuration 集群证书有效期

func (CertDuration) String

func (o CertDuration) String() string

type ChartResp added in v0.1.70

type ChartResp struct {

	// 模板ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 模板值
	Values *string `json:"values,omitempty"`

	// 模板翻译资源
	Translate *string `json:"translate,omitempty"`

	// 模板介绍
	Instruction *string `json:"instruction,omitempty"`

	// 模板版本
	Version *string `json:"version,omitempty"`

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

	// 模板的来源
	Source *string `json:"source,omitempty"`

	// 模板的图标链接
	IconUrl *string `json:"icon_url,omitempty"`

	// 是否公开模板
	Public *bool `json:"public,omitempty"`

	// 模板的链接
	ChartUrl *string `json:"chart_url,omitempty"`

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间
	UpdateAt *string `json:"update_at,omitempty"`
}

ChartResp 模板返回体

func (ChartResp) String added in v0.1.70

func (o ChartResp) String() string

type ChartValueValues added in v0.1.70

type ChartValueValues struct {
	Basic *interface{} `json:"basic,omitempty"`
}

ChartValueValues values.yaml中的数据,数据结构以具体的模板为准

func (ChartValueValues) String added in v0.1.70

func (o ChartValueValues) String() string

type Cluster added in v0.0.51

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 added in v0.0.51

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 ClusterCheckStatus added in v0.1.76

type ClusterCheckStatus struct {

	// 状态,取值如下 - Init: 初始化 - Running 运行中 - Success 成功 - Failed 失败
	Phase *string `json:"phase,omitempty"`

	// 检查项状态集合
	ItemsStatus *[]PreCheckItemStatus `json:"itemsStatus,omitempty"`
}

ClusterCheckStatus 集群限制检查状态

func (ClusterCheckStatus) String added in v0.1.76

func (o ClusterCheckStatus) String() string

type ClusterConfigurationsSpec added in v0.1.70

type ClusterConfigurationsSpec struct {

	// 组件配置项列表
	Packages []ClusterConfigurationsSpecPackages `json:"packages"`
}

ClusterConfigurationsSpec Configuration的规格信息

func (ClusterConfigurationsSpec) String added in v0.1.70

func (o ClusterConfigurationsSpec) String() string

type ClusterConfigurationsSpecPackages added in v0.1.70

type ClusterConfigurationsSpecPackages struct {

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

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

func (ClusterConfigurationsSpecPackages) String added in v0.1.70

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 added in v0.0.46

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,g42,sbc)。
	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 added in v0.0.46

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 added in v0.1.12

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 added in v0.1.12

type ClusterLogConfig added in v0.1.70

type ClusterLogConfig struct {

	// 存储时长
	TtlInDays *int32 `json:"ttl_in_days,omitempty"`

	// 日志配置项
	LogConfigs *[]ClusterLogConfigLogConfigs `json:"log_configs,omitempty"`
}

func (ClusterLogConfig) String added in v0.1.70

func (o ClusterLogConfig) String() string

type ClusterLogConfigLogConfigs added in v0.1.70

type ClusterLogConfigLogConfigs struct {

	// 日志类型
	Name *string `json:"name,omitempty"`

	// 是否采集
	Enable *bool `json:"enable,omitempty"`
}

func (ClusterLogConfigLogConfigs) String added in v0.1.70

type ClusterMetadata

type ClusterMetadata struct {

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

	// 集群ID,资源唯一标识,创建成功后自动生成,填写无效。在创建包周期集群时,响应体不返回集群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 added in v0.1.41

type ClusterMetadataForUpdate struct {

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

func (ClusterMetadataForUpdate) String added in v0.1.41

func (o ClusterMetadataForUpdate) String() string

type ClusterNodeInformation added in v0.0.51

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

ClusterNodeInformation

func (ClusterNodeInformation) String added in v0.0.51

func (o ClusterNodeInformation) String() string

type ClusterNodeInformationMetadata added in v0.0.51

type ClusterNodeInformationMetadata struct {

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

ClusterNodeInformationMetadata

func (ClusterNodeInformationMetadata) String added in v0.0.51

type ClusterSpec added in v0.0.51

type ClusterSpec struct {

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

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

	// 集群规格,当集群为v1.15及以上版本时支持创建后变更,详情请参见[变更集群规格](ResizeCluster.xml)。请按实际业务需求进行选择: - 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:单控制节点的集群,控制节点数为1。单控制节点故障后,集群将不可用,但已运行工作负载不受影响。 >    - s2:多控制节点的集群,即高可用集群,控制节点数为3。当某个控制节点故障时,集群仍然可用。 >    [- dec:表示专属云的CCE集群规格。例如cce.dec.s1.small表示小规模单控制节点的专属云CCE集群(最大50节点)。](tag:hws,hws_hk) >    - small:表示集群支持管理的最大节点规模为50节点。 >    - medium:表示集群支持管理的最大节点规模为200节点。 >    - large:表示集群支持管理的最大节点规模为1000节点。 >    - xlarge:表示集群支持管理的最大节点规模为2000节点。
	Flavor string `json:"flavor"`

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

	ServiceNetwork *ServiceNetwork `json:"serviceNetwork,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版本及以上支持。创建集群时如若未传参,默认为\"10.247.0.0/16\"。该参数废弃中,推荐使用新字段serviceNetwork,包含IPv4服务网段。
	KubernetesSvcIpRange *string `json:"kubernetesSvcIpRange,omitempty"`

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

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

	// 集群控制节点系统盘、数据盘加密。默认使用AES_256加密算法。CCE、Turbo集群1.25及以上版本开始支持。集群创建后不支持修改。开启后存在一定的磁盘读写性能损耗。
	EnableMasterVolumeEncryption *bool `json:"enableMasterVolumeEncryption,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 added in v0.0.51

func (o ClusterSpec) String() string

type ClusterSpecCategory added in v0.0.51

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

func (ClusterSpecCategory) MarshalJSON added in v0.0.51

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

func (*ClusterSpecCategory) UnmarshalJSON added in v0.0.51

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

func (ClusterSpecCategory) Value added in v0.0.90

func (c ClusterSpecCategory) Value() string

type ClusterSpecCategoryEnum added in v0.0.51

type ClusterSpecCategoryEnum struct {
	CCE   ClusterSpecCategory
	TURBO ClusterSpecCategory
}

func GetClusterSpecCategoryEnum added in v0.0.51

func GetClusterSpecCategoryEnum() ClusterSpecCategoryEnum

type ClusterSpecKubeProxyMode added in v0.0.51

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

func (ClusterSpecKubeProxyMode) MarshalJSON added in v0.0.51

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

func (*ClusterSpecKubeProxyMode) UnmarshalJSON added in v0.0.51

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

func (ClusterSpecKubeProxyMode) Value added in v0.0.90

func (c ClusterSpecKubeProxyMode) Value() string

type ClusterSpecKubeProxyModeEnum added in v0.0.51

type ClusterSpecKubeProxyModeEnum struct {
	IPTABLES ClusterSpecKubeProxyMode
	IPVS     ClusterSpecKubeProxyMode
}

func GetClusterSpecKubeProxyModeEnum added in v0.0.51

func GetClusterSpecKubeProxyModeEnum() ClusterSpecKubeProxyModeEnum

type ClusterSpecType added in v0.0.51

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

func (ClusterSpecType) MarshalJSON added in v0.0.51

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

func (*ClusterSpecType) UnmarshalJSON added in v0.0.51

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

func (ClusterSpecType) Value added in v0.0.90

func (c ClusterSpecType) Value() string

type ClusterSpecTypeEnum added in v0.0.51

type ClusterSpecTypeEnum struct {
	VIRTUAL_MACHINE ClusterSpecType
	ARM64           ClusterSpecType
}

func GetClusterSpecTypeEnum added in v0.0.51

func GetClusterSpecTypeEnum() ClusterSpecTypeEnum

type ClusterStatus

type ClusterStatus struct {

	// 集群状态,取值如下 - Available:可用,表示集群处于正常状态。 - Unavailable:不可用,表示集群异常,需手动删除。 - ScalingUp:扩容中,表示集群正处于扩容过程中。 - ScalingDown:缩容中,表示集群正处于缩容过程中。 - Creating:创建中,表示集群正处于创建过程中。 - Deleting:删除中,表示集群正处于删除过程中。 - Upgrading:升级中,表示集群正处于升级过程中。 - Resizing:规格变更中,表示集群正处于变更规格中。 - RollingBack:回滚中,表示集群正处于回滚过程中。 - RollbackFailed:回滚异常,表示集群回滚异常。 - Hibernating:休眠中,表示集群正处于休眠过程中。 - Hibernation:已休眠,表示集群正处于休眠状态。 - Awaking:唤醒中,表示集群正处于从休眠状态唤醒的过程中。 - Empty:集群无任何资源(已废弃) - Error:错误,表示集群资源异常,可尝试手动删除。
	Phase *string `json:"phase,omitempty"`

	// 任务ID,集群当前状态关联的任务ID。当前支持: - 创建集群时返回关联的任务ID,可通过任务ID查询创建集群的附属任务信息; - 删除集群或者删除集群失败时返回关联的任务ID,此字段非空时,可通过任务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 added in v0.1.17

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 added in v0.1.17

func (o ClusterUpgradeAction) String() string

type ClusterUpgradeResponseAction added in v0.1.47

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 added in v0.1.47

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 added in v0.1.12

type ConfigurationItem struct {

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

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

func (ConfigurationItem) String added in v0.1.12

func (o ConfigurationItem) String() string

type ConfigurationMetadata added in v0.1.70

type ConfigurationMetadata struct {

	// Configuration名称
	Name string `json:"name"`

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

ConfigurationMetadata metadata字段数据结构说明

func (ConfigurationMetadata) String added in v0.1.70

func (o ConfigurationMetadata) String() string

type ConfigurationRisks added in v0.1.76

type ConfigurationRisks struct {

	// 组件名称
	Package *string `json:"package,omitempty"`

	// 涉及文件路径
	SourceFile *string `json:"sourceFile,omitempty"`

	// 节点信息
	NodeMsg *string `json:"nodeMsg,omitempty"`

	// 参数值
	Field *string `json:"field,omitempty"`

	// 修改操作类型
	Operation *string `json:"operation,omitempty"`

	// 原始值
	OriginalValue *string `json:"originalValue,omitempty"`

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

ConfigurationRisks 配置风险项来源

func (ConfigurationRisks) String added in v0.1.76

func (o ConfigurationRisks) String() string

type ContainerCidr added in v0.0.74

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 added in v0.0.74

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,hcs,g42,sbc)
	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类型时,支持多个容器网段,最多配置20个;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 added in v0.0.90

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 added in v0.0.74

type ContainerNetworkUpdate struct {

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

func (ContainerNetworkUpdate) String added in v0.0.74

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 added in v0.1.17

type ContinueUpgradeClusterTaskRequest struct {

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

ContinueUpgradeClusterTaskRequest Request Object

func (ContinueUpgradeClusterTaskRequest) String added in v0.1.17

type ContinueUpgradeClusterTaskResponse added in v0.1.17

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

ContinueUpgradeClusterTaskResponse Response Object

func (ContinueUpgradeClusterTaskResponse) String added in v0.1.17

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 CreateClusterMasterSnapshotRequest added in v0.1.76

type CreateClusterMasterSnapshotRequest struct {

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

CreateClusterMasterSnapshotRequest Request Object

func (CreateClusterMasterSnapshotRequest) String added in v0.1.76

type CreateClusterMasterSnapshotResponse added in v0.1.76

type CreateClusterMasterSnapshotResponse struct {

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

	Metadata       *SnapshotCluserResponseMetadata `json:"metadata,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

CreateClusterMasterSnapshotResponse Response Object

func (CreateClusterMasterSnapshotResponse) String added in v0.1.76

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         *CreateNodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

CreateNodePoolResponse Response Object

func (CreateNodePoolResponse) String

func (o CreateNodePoolResponse) String() string

type CreateNodePoolStatus added in v0.1.77

type CreateNodePoolStatus 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 *CreateNodePoolStatusPhase `json:"phase,omitempty"`

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

CreateNodePoolStatus

func (CreateNodePoolStatus) String added in v0.1.77

func (o CreateNodePoolStatus) String() string

type CreateNodePoolStatusPhase added in v0.1.77

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

func (CreateNodePoolStatusPhase) MarshalJSON added in v0.1.77

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

func (*CreateNodePoolStatusPhase) UnmarshalJSON added in v0.1.77

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

func (CreateNodePoolStatusPhase) Value added in v0.1.77

type CreateNodePoolStatusPhaseEnum added in v0.1.77

type CreateNodePoolStatusPhaseEnum struct {
	SYNCHRONIZING CreateNodePoolStatusPhase
	SYNCHRONIZED  CreateNodePoolStatusPhase
	SOLD_OUT      CreateNodePoolStatusPhase
	DELETING      CreateNodePoolStatusPhase
	ERROR         CreateNodePoolStatusPhase
}

func GetCreateNodePoolStatusPhaseEnum added in v0.1.77

func GetCreateNodePoolStatusPhaseEnum() CreateNodePoolStatusPhaseEnum

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 added in v0.0.90

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 CreatePartitionRequest added in v0.1.70

type CreatePartitionRequest struct {

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

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

CreatePartitionRequest Request Object

func (CreatePartitionRequest) String added in v0.1.70

func (o CreatePartitionRequest) String() string

type CreatePartitionResponse added in v0.1.70

type CreatePartitionResponse struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

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

CreatePartitionResponse Response Object

func (CreatePartitionResponse) String added in v0.1.70

func (o CreatePartitionResponse) String() string

type CreatePostCheckRequest added in v0.1.76

type CreatePostCheckRequest struct {

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

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

CreatePostCheckRequest Request Object

func (CreatePostCheckRequest) String added in v0.1.76

func (o CreatePostCheckRequest) String() string

type CreatePostCheckResponse added in v0.1.76

type CreatePostCheckResponse struct {

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

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

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

CreatePostCheckResponse Response Object

func (CreatePostCheckResponse) String added in v0.1.76

func (o CreatePostCheckResponse) String() string

type CreatePreCheckRequest added in v0.1.76

type CreatePreCheckRequest struct {

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

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

CreatePreCheckRequest Request Object

func (CreatePreCheckRequest) String added in v0.1.76

func (o CreatePreCheckRequest) String() string

type CreatePreCheckResponse added in v0.1.76

type CreatePreCheckResponse struct {

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

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

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

CreatePreCheckResponse Response Object

func (CreatePreCheckResponse) String added in v0.1.76

func (o CreatePreCheckResponse) String() string

type CreateReleaseReqBody added in v0.1.70

type CreateReleaseReqBody struct {

	// 模板ID
	ChartId string `json:"chart_id"`

	// 模板实例描述
	Description *string `json:"description,omitempty"`

	// 模板实例名称
	Name string `json:"name"`

	// 模板实例所在的命名空间
	Namespace string `json:"namespace"`

	// 模板实例版本号
	Version string `json:"version"`

	Parameters *ReleaseReqBodyParams `json:"parameters,omitempty"`

	Values *CreateReleaseReqBodyValues `json:"values"`
}

CreateReleaseReqBody 创建模板实例的请求体

func (CreateReleaseReqBody) String added in v0.1.70

func (o CreateReleaseReqBody) String() string

type CreateReleaseReqBodyValues added in v0.1.70

type CreateReleaseReqBodyValues struct {

	// 镜像拉取策略
	ImagePullPolicy *string `json:"imagePullPolicy,omitempty"`

	// 镜像标签
	ImageTag *string `json:"imageTag,omitempty"`
}

CreateReleaseReqBodyValues 模板实例的值

func (CreateReleaseReqBodyValues) String added in v0.1.70

type CreateReleaseRequest added in v0.1.70

type CreateReleaseRequest struct {

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

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

CreateReleaseRequest Request Object

func (CreateReleaseRequest) String added in v0.1.70

func (o CreateReleaseRequest) String() string

type CreateReleaseResponse added in v0.1.70

type CreateReleaseResponse struct {

	// 模板名称
	ChartName *string `json:"chart_name,omitempty"`

	// 是否公开模板
	ChartPublic *bool `json:"chart_public,omitempty"`

	// 模板版本
	ChartVersion *string `json:"chart_version,omitempty"`

	// 集群ID
	ClusterId *string `json:"cluster_id,omitempty"`

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

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 模板实例描述
	Description *string `json:"description,omitempty"`

	// 模板实例名称
	Name *string `json:"name,omitempty"`

	// 模板实例所在的命名空间
	Namespace *string `json:"namespace,omitempty"`

	// 模板实例参数
	Parameters *string `json:"parameters,omitempty"`

	// 模板实例需要的资源
	Resources *string `json:"resources,omitempty"`

	// 模板实例状态
	Status *string `json:"status,omitempty"`

	// 模板实例状态描述
	StatusDescription *string `json:"status_description,omitempty"`

	// 更新时间
	UpdateAt *string `json:"update_at,omitempty"`

	// 模板实例的值
	Values *string `json:"values,omitempty"`

	// 模板实例版本
	Version        *int32 `json:"version,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateReleaseResponse Response Object

func (CreateReleaseResponse) String added in v0.1.70

func (o CreateReleaseResponse) String() string

type CreateUpgradeWorkFlowRequest added in v0.1.76

type CreateUpgradeWorkFlowRequest struct {

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

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

CreateUpgradeWorkFlowRequest Request Object

func (CreateUpgradeWorkFlowRequest) String added in v0.1.76

type CreateUpgradeWorkFlowRequestBody added in v0.1.76

type CreateUpgradeWorkFlowRequestBody struct {

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

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

	Spec *WorkFlowSpec `json:"spec"`
}

func (CreateUpgradeWorkFlowRequestBody) String added in v0.1.76

type CreateUpgradeWorkFlowResponse added in v0.1.76

type CreateUpgradeWorkFlowResponse struct {

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

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

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

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

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

CreateUpgradeWorkFlowResponse Response Object

func (CreateUpgradeWorkFlowResponse) String added in v0.1.76

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 DeleteChartRequest added in v0.1.70

type DeleteChartRequest struct {

	// 模板的ID
	ChartId string `json:"chart_id"`
}

DeleteChartRequest Request Object

func (DeleteChartRequest) String added in v0.1.70

func (o DeleteChartRequest) String() string

type DeleteChartResponse added in v0.1.70

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

DeleteChartResponse Response Object

func (DeleteChartResponse) String added in v0.1.70

func (o DeleteChartResponse) String() 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"`

	// 是否删除LTS LogStream(日志流), 枚举取值: - true或block (执行删除流程,失败则阻塞后续流程) - try (执行删除流程,失败则忽略,并继续执行后续流程) - false或skip (跳过删除流程,默认选项)
	LtsReclaimPolicy *DeleteClusterRequestLtsReclaimPolicy `json:"lts_reclaim_policy,omitempty"`

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

	// 集群下所有按需节点处理策略, 枚举取值: - delete (删除服务器) - reset (保留服务器并重置服务器,数据不保留) - retain (保留服务器不重置服务器,数据保留)
	OndemandNodePolicy *DeleteClusterRequestOndemandNodePolicy `json:"ondemand_node_policy,omitempty"`

	// 集群下所有包周期节点处理策略, 枚举取值: - reset (保留服务器并重置服务器,数据不保留) - retain (保留服务器不重置服务器,数据保留)
	PeriodicNodePolicy *DeleteClusterRequestPeriodicNodePolicy `json:"periodic_node_policy,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 added in v0.0.90

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 added in v0.0.90

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 added in v0.0.90

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 added in v0.0.90

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 added in v0.0.90

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 added in v0.0.90

type DeleteClusterRequestDeleteSfs30 added in v0.1.12

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

func (DeleteClusterRequestDeleteSfs30) MarshalJSON added in v0.1.12

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

func (*DeleteClusterRequestDeleteSfs30) UnmarshalJSON added in v0.1.12

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

func (DeleteClusterRequestDeleteSfs30) Value added in v0.1.12

type DeleteClusterRequestDeleteSfs30Enum added in v0.1.12

func GetDeleteClusterRequestDeleteSfs30Enum added in v0.1.12

func GetDeleteClusterRequestDeleteSfs30Enum() DeleteClusterRequestDeleteSfs30Enum

type DeleteClusterRequestLtsReclaimPolicy added in v0.1.88

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

func (DeleteClusterRequestLtsReclaimPolicy) MarshalJSON added in v0.1.88

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

func (*DeleteClusterRequestLtsReclaimPolicy) UnmarshalJSON added in v0.1.88

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

func (DeleteClusterRequestLtsReclaimPolicy) Value added in v0.1.88

type DeleteClusterRequestOndemandNodePolicy added in v0.1.70

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

func (DeleteClusterRequestOndemandNodePolicy) MarshalJSON added in v0.1.70

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

func (*DeleteClusterRequestOndemandNodePolicy) UnmarshalJSON added in v0.1.70

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

func (DeleteClusterRequestOndemandNodePolicy) Value added in v0.1.70

type DeleteClusterRequestOndemandNodePolicyEnum added in v0.1.70

type DeleteClusterRequestOndemandNodePolicyEnum struct {
	DELETE DeleteClusterRequestOndemandNodePolicy
	RESET  DeleteClusterRequestOndemandNodePolicy
	RETAIN DeleteClusterRequestOndemandNodePolicy
}

func GetDeleteClusterRequestOndemandNodePolicyEnum added in v0.1.70

func GetDeleteClusterRequestOndemandNodePolicyEnum() DeleteClusterRequestOndemandNodePolicyEnum

type DeleteClusterRequestPeriodicNodePolicy added in v0.1.70

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

func (DeleteClusterRequestPeriodicNodePolicy) MarshalJSON added in v0.1.70

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

func (*DeleteClusterRequestPeriodicNodePolicy) UnmarshalJSON added in v0.1.70

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

func (DeleteClusterRequestPeriodicNodePolicy) Value added in v0.1.70

type DeleteClusterRequestPeriodicNodePolicyEnum added in v0.1.70

type DeleteClusterRequestPeriodicNodePolicyEnum struct {
	RESET  DeleteClusterRequestPeriodicNodePolicy
	RETAIN DeleteClusterRequestPeriodicNodePolicy
}

func GetDeleteClusterRequestPeriodicNodePolicyEnum added in v0.1.70

func GetDeleteClusterRequestPeriodicNodePolicyEnum() DeleteClusterRequestPeriodicNodePolicyEnum

type DeleteClusterRequestTobedeleted added in v0.0.51

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

func (DeleteClusterRequestTobedeleted) MarshalJSON added in v0.0.51

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

func (*DeleteClusterRequestTobedeleted) UnmarshalJSON added in v0.0.51

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

func (DeleteClusterRequestTobedeleted) Value added in v0.0.90

type DeleteClusterRequestTobedeletedEnum added in v0.0.51

type DeleteClusterRequestTobedeletedEnum struct {
	TRUE DeleteClusterRequestTobedeleted
}

func GetDeleteClusterRequestTobedeletedEnum added in v0.0.51

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         *DeleteNodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

DeleteNodePoolResponse Response Object

func (DeleteNodePoolResponse) String

func (o DeleteNodePoolResponse) String() string

type DeleteNodePoolStatus added in v0.1.77

type DeleteNodePoolStatus 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 *DeleteNodePoolStatusPhase `json:"phase,omitempty"`

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

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

DeleteNodePoolStatus

func (DeleteNodePoolStatus) String added in v0.1.77

func (o DeleteNodePoolStatus) String() string

type DeleteNodePoolStatusPhase added in v0.1.77

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

func (DeleteNodePoolStatusPhase) MarshalJSON added in v0.1.77

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

func (*DeleteNodePoolStatusPhase) UnmarshalJSON added in v0.1.77

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

func (DeleteNodePoolStatusPhase) Value added in v0.1.77

type DeleteNodePoolStatusPhaseEnum added in v0.1.77

type DeleteNodePoolStatusPhaseEnum struct {
	SYNCHRONIZING DeleteNodePoolStatusPhase
	SYNCHRONIZED  DeleteNodePoolStatusPhase
	SOLD_OUT      DeleteNodePoolStatusPhase
	DELETING      DeleteNodePoolStatusPhase
	ERROR         DeleteNodePoolStatusPhase
}

func GetDeleteNodePoolStatusPhaseEnum added in v0.1.77

func GetDeleteNodePoolStatusPhaseEnum() DeleteNodePoolStatusPhaseEnum

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 added in v0.0.90

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 DeleteReleaseRequest added in v0.1.70

type DeleteReleaseRequest struct {

	// 模板实例名称
	Name string `json:"name"`

	// 模板实例所在的命名空间
	Namespace string `json:"namespace"`

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

DeleteReleaseRequest Request Object

func (DeleteReleaseRequest) String added in v0.1.70

func (o DeleteReleaseRequest) String() string

type DeleteReleaseResponse added in v0.1.70

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

DeleteReleaseResponse Response Object

func (DeleteReleaseResponse) String added in v0.1.70

func (o DeleteReleaseResponse) 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 DeprecatedApiRisks added in v0.1.76

type DeprecatedApiRisks struct {

	// 请求路径,如/apis/policy/v1beta1/podsecuritypolicies
	Url *string `json:"url,omitempty"`

	// 客户端信息
	UserAgent *string `json:"userAgent,omitempty"`
}

DeprecatedApiRisks 废弃API风险来源

func (DeprecatedApiRisks) String added in v0.1.76

func (o DeprecatedApiRisks) String() string

type DownloadChartRequest added in v0.1.70

type DownloadChartRequest struct {

	// 模板的ID
	ChartId string `json:"chart_id"`
}

DownloadChartRequest Request Object

func (DownloadChartRequest) String added in v0.1.70

func (o DownloadChartRequest) String() string

type DownloadChartResponse added in v0.1.70

type DownloadChartResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

DownloadChartResponse Response Object

func (DownloadChartResponse) Consume added in v0.1.70

func (o DownloadChartResponse) Consume(writer io.Writer) (int64, error)

func (DownloadChartResponse) String added in v0.1.70

func (o DownloadChartResponse) String() string

type EipSpec added in v0.0.97

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

func (EipSpec) String added in v0.0.97

func (o EipSpec) String() string

type EipSpecBandwidth added in v0.0.97

type EipSpecBandwidth struct {

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

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

EipSpecBandwidth 带宽信息

func (EipSpecBandwidth) String added in v0.0.97

func (o EipSpecBandwidth) String() string

type EipSpecBandwidthSharetype added in v0.0.97

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

func (EipSpecBandwidthSharetype) MarshalJSON added in v0.0.97

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

func (*EipSpecBandwidthSharetype) UnmarshalJSON added in v0.0.97

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

func (EipSpecBandwidthSharetype) Value added in v0.0.97

type EipSpecBandwidthSharetypeEnum added in v0.0.97

type EipSpecBandwidthSharetypeEnum struct {
	PER   EipSpecBandwidthSharetype
	WHOLE EipSpecBandwidthSharetype
}

func GetEipSpecBandwidthSharetypeEnum added in v0.0.97

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

	// 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 added in v0.1.12

type EniNetworkUpdate struct {

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

func (EniNetworkUpdate) String added in v0.1.12

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 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 HostnameConfig added in v0.1.70

type HostnameConfig struct {

	// K8S节点名称配置类型, 默认为“privateIp”。  -  privateIp: 将节点私有IP作为K8S节点名称 -  cceNodeName: 将CCE节点名称作为K8S节点名称  > - 配置为cceNodeName的节点, 其节点名称、K8S节点名称以及虚机名称相同。节点名称不支持修改, 并且在ECS侧修改了虚机名称,同步云服务器时,不会将修改后的虚机名称同步到节点。 > - 配置为cceNodeName的节点,为了避免K8S节点名称冲突,系统会自动在节点名称后添加后缀,后缀的格式为中划线(-)+五位随机字符,随机字符的取值为[a-z0-9]。
	Type HostnameConfigType `json:"type"`
}

func (HostnameConfig) String added in v0.1.70

func (o HostnameConfig) String() string

type HostnameConfigType added in v0.1.70

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

func (HostnameConfigType) MarshalJSON added in v0.1.70

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

func (*HostnameConfigType) UnmarshalJSON added in v0.1.70

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

func (HostnameConfigType) Value added in v0.1.70

func (c HostnameConfigType) Value() string

type HostnameConfigTypeEnum added in v0.1.70

type HostnameConfigTypeEnum struct {
	PRIVATE_IP    HostnameConfigType
	CCE_NODE_NAME HostnameConfigType
}

func GetHostnameConfigTypeEnum added in v0.1.70

func GetHostnameConfigTypeEnum() HostnameConfigTypeEnum

type InPlaceRollingUpdate added in v0.1.17

type InPlaceRollingUpdate struct {

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

InPlaceRollingUpdate 原地升级配置

func (InPlaceRollingUpdate) String added in v0.1.17

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 added in v0.0.51

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 added in v0.0.51

func (o Job) String() string

type JobMetadata added in v0.0.51

type JobMetadata struct {

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

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

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

JobMetadata

func (JobMetadata) String added in v0.0.51

func (o JobMetadata) String() string

type JobSpec added in v0.0.51

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 added in v0.0.51

func (o JobSpec) String() string

type JobStatus added in v0.0.51

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 added in v0.0.51

func (o JobStatus) String() string

type LineStatus added in v0.1.76

type LineStatus struct {
	StartPoint *Point `json:"startPoint,omitempty"`

	EndPoint *Point `json:"endPoint,omitempty"`

	// 表示是否为关键线路(关键线路未执行无法取消升级流程)
	Critical *string `json:"critical,omitempty"`
}

func (LineStatus) String added in v0.1.76

func (o LineStatus) 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 ListChartsRequest added in v0.1.70

type ListChartsRequest struct {
}

ListChartsRequest Request Object

func (ListChartsRequest) String added in v0.1.70

func (o ListChartsRequest) String() string

type ListChartsResponse added in v0.1.70

type ListChartsResponse struct {

	// 模板列表
	Body           *[]ChartResp `json:"body,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListChartsResponse Response Object

func (ListChartsResponse) String added in v0.1.70

func (o ListChartsResponse) String() string

type ListClusterMasterSnapshotTasksRequest added in v0.1.76

type ListClusterMasterSnapshotTasksRequest struct {

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

ListClusterMasterSnapshotTasksRequest Request Object

func (ListClusterMasterSnapshotTasksRequest) String added in v0.1.76

type ListClusterMasterSnapshotTasksResponse added in v0.1.76

type ListClusterMasterSnapshotTasksResponse struct {

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

	// 任务类型
	Kind *string `json:"kind,omitempty"`

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

	// 备份任务列表
	Items *[]SnapshotTask `json:"items,omitempty"`

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

ListClusterMasterSnapshotTasksResponse Response Object

func (ListClusterMasterSnapshotTasksResponse) String added in v0.1.76

type ListClusterUpgradeFeatureGatesRequest added in v0.1.76

type ListClusterUpgradeFeatureGatesRequest struct {
}

ListClusterUpgradeFeatureGatesRequest Request Object

func (ListClusterUpgradeFeatureGatesRequest) String added in v0.1.76

type ListClusterUpgradeFeatureGatesResponse added in v0.1.76

type ListClusterUpgradeFeatureGatesResponse struct {

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

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

	// 特性开关信息,格式为key/value键值对。 - Key: 目前有下列值:DisplayPreCheckDetail(展示所有集群升级前检查项详情),EvsSnapshot(使用EVS快照备份集群), LabelForSkippedNode(支持为集群升级过程中跳过的节点打标签), UpgradeStrategy(集群升级策略) - Value: Support 支持,Disable 关闭,Default 使用CCE服务默认规则判断
	UpgradeFeatureGates map[string]string `json:"upgradeFeatureGates,omitempty"`
	HttpStatusCode      int               `json:"-"`
}

ListClusterUpgradeFeatureGatesResponse Response Object

func (ListClusterUpgradeFeatureGatesResponse) String added in v0.1.76

type ListClusterUpgradePathsRequest added in v0.1.76

type ListClusterUpgradePathsRequest struct {
}

ListClusterUpgradePathsRequest Request Object

func (ListClusterUpgradePathsRequest) String added in v0.1.76

type ListClusterUpgradePathsResponse added in v0.1.76

type ListClusterUpgradePathsResponse struct {

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

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

	// 升级路径集合
	UpgradePaths   *[]UpgradePath `json:"upgradePaths,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListClusterUpgradePathsResponse Response Object

func (ListClusterUpgradePathsResponse) String added in v0.1.76

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:回滚异常,表示集群回滚异常。 - Hibernating:休眠中,表示集群正处于休眠过程中。 - Hibernation:已休眠,表示集群正处于休眠状态。 - Awaking:唤醒中,表示集群正处于从休眠状态唤醒的过程中。 - 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 added in v0.0.90

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 added in v0.0.90

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          *[]NodePoolResp `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 ListPartitionsRequest added in v0.1.70

type ListPartitionsRequest struct {

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

ListPartitionsRequest Request Object

func (ListPartitionsRequest) String added in v0.1.70

func (o ListPartitionsRequest) String() string

type ListPartitionsResponse added in v0.1.70

type ListPartitionsResponse struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

ListPartitionsResponse Response Object

func (ListPartitionsResponse) String added in v0.1.70

func (o ListPartitionsResponse) String() string

type ListPreCheckTasksRequest added in v0.1.76

type ListPreCheckTasksRequest struct {

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

ListPreCheckTasksRequest Request Object

func (ListPreCheckTasksRequest) String added in v0.1.76

func (o ListPreCheckTasksRequest) String() string

type ListPreCheckTasksResponse added in v0.1.76

type ListPreCheckTasksResponse struct {

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

	// 类型
	Kind *string `json:"kind,omitempty"`

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

	// 集群检查任务列表
	Items          *[]PrecheckClusterTask `json:"items,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListPreCheckTasksResponse Response Object

func (ListPreCheckTasksResponse) String added in v0.1.76

func (o ListPreCheckTasksResponse) String() string

type ListReleasesRequest added in v0.1.70

type ListReleasesRequest struct {

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

	// 模板ID
	ChartId *string `json:"chart_id,omitempty"`

	// 模板对应的命名空间
	Namespace *string `json:"namespace,omitempty"`
}

ListReleasesRequest Request Object

func (ListReleasesRequest) String added in v0.1.70

func (o ListReleasesRequest) String() string

type ListReleasesResponse added in v0.1.70

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

ListReleasesResponse Response Object

func (ListReleasesResponse) String added in v0.1.70

func (o ListReleasesResponse) String() string

type ListUpgradeClusterTasksRequest added in v0.1.76

type ListUpgradeClusterTasksRequest struct {

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

ListUpgradeClusterTasksRequest Request Object

func (ListUpgradeClusterTasksRequest) String added in v0.1.76

type ListUpgradeClusterTasksResponse added in v0.1.76

type ListUpgradeClusterTasksResponse struct {

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

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

	// 集群升级任务列表
	Items          *[]UpgradeTaskResponseBody `json:"items,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

ListUpgradeClusterTasksResponse Response Object

func (ListUpgradeClusterTasksResponse) String added in v0.1.76

type ListUpgradeWorkFlowsRequest added in v0.1.76

type ListUpgradeWorkFlowsRequest struct {

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

ListUpgradeWorkFlowsRequest Request Object

func (ListUpgradeWorkFlowsRequest) String added in v0.1.76

type ListUpgradeWorkFlowsResponse added in v0.1.76

type ListUpgradeWorkFlowsResponse struct {

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

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

	Items          *UpgradeWorkFlow `json:"items,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListUpgradeWorkFlowsResponse Response Object

func (ListUpgradeWorkFlowsResponse) String added in v0.1.76

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 added in v0.0.51

type LvmConfig struct {

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

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

func (LvmConfig) String added in v0.0.51

func (o LvmConfig) String() string

type MasterEipRequest added in v0.0.97

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

func (MasterEipRequest) String added in v0.0.97

func (o MasterEipRequest) String() string

type MasterEipRequestSpec added in v0.0.97

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 added in v0.0.97

func (o MasterEipRequestSpec) String() string

type MasterEipRequestSpecAction added in v0.0.97

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

func (MasterEipRequestSpecAction) MarshalJSON added in v0.0.97

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

func (*MasterEipRequestSpecAction) UnmarshalJSON added in v0.0.97

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

func (MasterEipRequestSpecAction) Value added in v0.0.97

type MasterEipRequestSpecActionEnum added in v0.0.97

type MasterEipRequestSpecActionEnum struct {
	BIND   MasterEipRequestSpecAction
	UNBIND MasterEipRequestSpecAction
}

func GetMasterEipRequestSpecActionEnum added in v0.0.97

func GetMasterEipRequestSpecActionEnum() MasterEipRequestSpecActionEnum

type MasterEipRequestSpecSpec added in v0.0.97

type MasterEipRequestSpecSpec struct {

	// 弹性网卡ID,绑定时必选,解绑时该字段无效
	Id *string `json:"id,omitempty"`
}

MasterEipRequestSpecSpec 待绑定的弹性IP配置属性

func (MasterEipRequestSpecSpec) String added in v0.0.97

func (o MasterEipRequestSpecSpec) String() string

type MasterEipResponseSpec added in v0.0.97

type MasterEipResponseSpec struct {

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

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

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

func (MasterEipResponseSpec) String added in v0.0.97

func (o MasterEipResponseSpec) String() string

type MasterEipResponseSpecAction added in v0.0.97

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

func (MasterEipResponseSpecAction) MarshalJSON added in v0.0.97

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

func (*MasterEipResponseSpecAction) UnmarshalJSON added in v0.0.97

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

func (MasterEipResponseSpecAction) Value added in v0.0.97

type MasterEipResponseSpecActionEnum added in v0.0.97

type MasterEipResponseSpecActionEnum struct {
	BIND MasterEipResponseSpecAction
}

func GetMasterEipResponseSpecActionEnum added in v0.0.97

func GetMasterEipResponseSpecActionEnum() MasterEipResponseSpecActionEnum

type MasterEipResponseSpecSpec added in v0.0.97

type MasterEipResponseSpecSpec struct {

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

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

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

MasterEipResponseSpecSpec 待绑定的弹性IP配置属性

func (MasterEipResponseSpecSpec) String added in v0.0.97

func (o MasterEipResponseSpecSpec) String() string

type MasterEipResponseStatus added in v0.0.97

type MasterEipResponseStatus struct {

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

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

MasterEipResponseStatus 状态信息

func (MasterEipResponseStatus) String added in v0.0.97

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 added in v0.0.51

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 added in v0.0.51

func (o MigrateNodeExtendParam) String() string

type MigrateNodeRequest added in v0.0.51

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 added in v0.0.51

func (o MigrateNodeRequest) String() string

type MigrateNodeResponse added in v0.0.51

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 added in v0.0.51

func (o MigrateNodeResponse) String() string

type MigrateNodesSpec added in v0.0.51

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 added in v0.0.51

func (o MigrateNodesSpec) String() string

type MigrateNodesTask added in v0.0.51

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 added in v0.0.51

func (o MigrateNodesTask) String() string

type NetworkSubnet added in v0.0.51

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 added in v0.0.51

func (o NetworkSubnet) String() string

type NicSpec

type NicSpec struct {

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

	// 主网卡的IP将通过fixedIps指定,数量不得大于创建的节点数。fixedIps或ipBlock同时只能指定一个。扩展网卡不支持指定fiexdIps。
	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 added in v0.0.51

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 added in v0.0.51

func (o Node) String() string

type NodeBandwidth added in v0.0.51

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,表示独享,目前仅支持独享。
	Sharetype *string `json:"sharetype,omitempty"`
}

NodeBandwidth

func (NodeBandwidth) String added in v0.0.51

func (o NodeBandwidth) String() string

type NodeCheckStatus added in v0.1.76

type NodeCheckStatus struct {

	// 状态,取值如下 - Init: 初始化 - Running 运行中 - Success 成功 - Failed 失败
	Phase *string `json:"phase,omitempty"`

	// 节点检查状态
	NodeStageStatus *[]NodeStageStatus `json:"nodeStageStatus,omitempty"`
}

NodeCheckStatus 节点限制检查状态

func (NodeCheckStatus) String added in v0.1.76

func (o NodeCheckStatus) String() string

type NodeCreateRequest added in v0.0.51

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 added in v0.0.51

func (o NodeCreateRequest) String() string

type NodeEipSpec added in v0.0.51

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 added in v0.0.51

func (o NodeEipSpec) String() string

type NodeExtendParam added in v0.0.46

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相关组件预留值。[随节点规格变动,具体请参见[节点预留资源策略说明](https://support.huaweicloud.com/usermanual-cce/cce_10_0178.html)。](tag:hws)
	KubeReservedMem *int32 `json:"kubeReservedMem,omitempty"`

	// 节点内存预留,系统组件预留值。[随节点规格变动,具体请参见[节点预留资源策略说明](https://support.huaweicloud.com/usermanual-cce/cce_10_0178.html)。](tag:hws)
	SystemReservedMem *int32 `json:"systemReservedMem,omitempty"`

	// 节点密码,作为响应参数时,固定展示星号。
	InitNodePassword *string `json:"init-node-password,omitempty"`
}

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

func (NodeExtendParam) String added in v0.0.46

func (o NodeExtendParam) String() string

type NodeInfo added in v0.1.76

type NodeInfo struct {

	// 节点UID
	Uid *string `json:"uid,omitempty"`

	// 节点名称
	Name *string `json:"name,omitempty"`

	// 状态
	Status *string `json:"status,omitempty"`

	// 节点类型
	NodeType *string `json:"nodeType,omitempty"`
}

NodeInfo 节点检查状态

func (NodeInfo) String added in v0.1.76

func (o NodeInfo) String() string

type NodeItem added in v0.0.51

type NodeItem struct {

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

func (NodeItem) String added in v0.0.51

func (o NodeItem) String() string

type NodeLifecycleConfig added in v0.0.59

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 added in v0.0.59

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 added in v0.0.56

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 added in v0.0.56

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 added in v0.0.83

type NodePoolMetadataUpdate struct {

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

NodePoolMetadataUpdate

func (NodePoolMetadataUpdate) String added in v0.0.83

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 NodePoolResp added in v0.1.77

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

NodePoolResp

func (NodePoolResp) String added in v0.1.77

func (o NodePoolResp) 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 added in v0.0.90

func (c NodePoolSpecType) Value() string

type NodePoolSpecTypeEnum

type NodePoolSpecTypeEnum struct {
	VM          NodePoolSpecType
	ELASTIC_BMS NodePoolSpecType
	PM          NodePoolSpecType
}

func GetNodePoolSpecTypeEnum

func GetNodePoolSpecTypeEnum() NodePoolSpecTypeEnum

type NodePoolSpecUpdate added in v0.0.83

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

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

	Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling"`
}

NodePoolSpecUpdate

func (NodePoolSpecUpdate) String added in v0.0.83

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 added in v0.0.90

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 added in v0.0.83

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

	Spec *NodePoolSpecUpdate `json:"spec"`
}

NodePoolUpdate

func (NodePoolUpdate) String added in v0.0.83

func (o NodePoolUpdate) String() string

type NodePriority added in v0.1.17

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

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

NodePriority 节点优先级批量配置

func (NodePriority) String added in v0.1.17

func (o NodePriority) String() string

type NodePublicIp added in v0.0.51

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 added in v0.0.51

func (o NodePublicIp) String() string

type NodeRisks added in v0.1.76

type NodeRisks struct {

	// 用户节点ID
	NodeID *string `json:"NodeID,omitempty"`
}

NodeRisks 节点风险来源

func (NodeRisks) String added in v0.1.76

func (o NodeRisks) String() string

type NodeSelector added in v0.1.17

type NodeSelector struct {

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

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

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

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

func (NodeSelector) String added in v0.1.17

func (o NodeSelector) String() string

type NodeSpec added in v0.0.51

type NodeSpec struct {

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

	// 待创建节点所在的可用区,需要指定可用区(AZ)的名称,不填或者填random选择随机可用区。 [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,若指定,将节点创建在该云服务器组下 > 创建节点池时该配置不会生效,若要保持节点池中的节点都在同一个云服务器组内,请在节点池 nodeManagement 字段中配置
	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个。 字段使用场景:在节点创建场景下,支持指定初始值,查询时不返回该字段;在节点池场景下,其中节点模板中支持指定初始值,查询时支持返回该字段;在其余场景下,查询时都不会返回该字段。 > 标签键只能包含大写字母.小写字母、数字和特殊字符(-_)以及Unicode字符,长度不超过36个字符。
	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"`

	HostnameConfig *HostnameConfig `json:"hostnameConfig,omitempty"`
}

func (NodeSpec) String added in v0.0.51

func (o NodeSpec) String() string

type NodeSpecUpdate added in v0.0.83

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
	Taints []Taint `json:"taints"`

	// 格式为key/value键值对。键值对个数不超过20条。默认值为空。 - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。 - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。  示例: “` \"k8sTags\": {   \"key\": \"value\" } “` > 参数未指定或者为空对象时将删除节点池的自定义K8s标签
	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"`

	Login *Login `json:"login,omitempty"`
}

func (NodeSpecUpdate) String added in v0.0.83

func (o NodeSpecUpdate) String() string

type NodeStageStatus added in v0.1.76

type NodeStageStatus struct {
	NodeInfo *NodeInfo `json:"nodeInfo,omitempty"`

	// 检查项状态集合
	ItemsStatus *[]PreCheckItemStatus `json:"itemsStatus,omitempty"`
}

NodeStageStatus 节点检查状态

func (NodeStageStatus) String added in v0.1.76

func (o NodeStageStatus) String() string

type NodeStatus added in v0.0.51

type NodeStatus struct {

	// 节点状态:节点资源生命周期管理(如安装卸载等)状态和集群内k8s node状态的综合体现,取值如下 - Build:创建中,表示节点正处于创建过程中。 - Installing:纳管中,表示节点正处于纳管过程中。 - Upgrading:升级中,表示节点正处于升级过程中。 - Active:正常,表示节点处于正常状态。 - Abnormal:异常,表示节点处于异常状态。 - Deleting: 删除中,表示节点正处于删除过程中。 - Error:故障,表示节点处于故障状态。
	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 added in v0.0.51

func (o NodeStatus) String() string

type NodeStatusPhase added in v0.0.51

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

func (NodeStatusPhase) MarshalJSON added in v0.0.51

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

func (*NodeStatusPhase) UnmarshalJSON added in v0.0.51

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

func (NodeStatusPhase) Value added in v0.0.90

func (c NodeStatusPhase) Value() string

type NodeStatusPhaseEnum added in v0.0.51

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

func GetNodeStatusPhaseEnum added in v0.0.51

func GetNodeStatusPhaseEnum() NodeStatusPhaseEnum

type OpenApiSpec added in v0.1.70

type OpenApiSpec struct {
	Spec *OpenApiSpecSpec `json:"spec,omitempty"`
}

func (OpenApiSpec) String added in v0.1.70

func (o OpenApiSpec) String() string

type OpenApiSpecSpec added in v0.1.70

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

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

OpenApiSpecSpec 集群访问的地址

func (OpenApiSpecSpec) String added in v0.1.70

func (o OpenApiSpecSpec) String() string

type PackageConfiguration added in v0.1.12

type PackageConfiguration struct {

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

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

func (PackageConfiguration) String added in v0.1.12

func (o PackageConfiguration) String() string

type PackageOptions added in v0.1.70

type PackageOptions struct {

	// 参数名称
	Name string `json:"name"`

	// 参数默认值,不指定时按默认值生效, 参数类型以实际返回为准,可能为integer,string或者boolean
	Default *interface{} `json:"default"`

	// 参数生效方式  - static:节点创建时生效,后续不可修改 - immediately:节点运行中时可以修改,修改后生效
	ValidAt PackageOptionsValidAt `json:"validAt"`

	// 配置项是否可以为空  - true:配置项为空时,不使用默认值,为空值 - false:配置项为空时,使用默认值
	Empty bool `json:"empty"`

	// 参数分类
	Schema string `json:"schema"`

	// 参数类型
	Type string `json:"type"`
}

PackageOptions 配置参数结构

func (PackageOptions) String added in v0.1.70

func (o PackageOptions) String() string

type PackageOptionsValidAt added in v0.1.70

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

func (PackageOptionsValidAt) MarshalJSON added in v0.1.70

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

func (*PackageOptionsValidAt) UnmarshalJSON added in v0.1.70

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

func (PackageOptionsValidAt) Value added in v0.1.70

func (c PackageOptionsValidAt) Value() string

type PackageOptionsValidAtEnum added in v0.1.70

type PackageOptionsValidAtEnum struct {
	STATIC      PackageOptionsValidAt
	IMMEDIATELY PackageOptionsValidAt
}

func GetPackageOptionsValidAtEnum added in v0.1.70

func GetPackageOptionsValidAtEnum() PackageOptionsValidAtEnum

type Partition added in v0.1.70

type Partition struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

	Spec *PartitionSpec `json:"spec,omitempty"`
}

Partition 集群分区信息

func (Partition) String added in v0.1.70

func (o Partition) String() string

type PartitionMetadata added in v0.1.70

type PartitionMetadata struct {

	// 分区名称
	Name *string `json:"name,omitempty"`

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

PartitionMetadata 分区的元数据信息

func (PartitionMetadata) String added in v0.1.70

func (o PartitionMetadata) String() string

type PartitionReqBody added in v0.1.70

type PartitionReqBody struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

	Spec *PartitionSpec `json:"spec,omitempty"`
}

PartitionReqBody 集群分区信息

func (PartitionReqBody) String added in v0.1.70

func (o PartitionReqBody) String() string

type PartitionReqBodyMetadata added in v0.1.70

type PartitionReqBodyMetadata struct {

	// 分区名称
	Name *string `json:"name,omitempty"`
}

PartitionReqBodyMetadata 分区的元数据信息

func (PartitionReqBodyMetadata) String added in v0.1.70

func (o PartitionReqBodyMetadata) String() string

type PartitionSpec added in v0.1.70

type PartitionSpec struct {
	HostNetwork *PartitionSpecHostNetwork `json:"hostNetwork,omitempty"`

	// 分区容器子网
	ContainerNetwork *[]PartitionSpecContainerNetwork `json:"containerNetwork,omitempty"`

	// 群组
	PublicBorderGroup *string `json:"publicBorderGroup,omitempty"`

	// 类别
	Category *string `json:"category,omitempty"`
}

PartitionSpec 分区的配置信息

func (PartitionSpec) String added in v0.1.70

func (o PartitionSpec) String() string

type PartitionSpecContainerNetwork added in v0.1.70

type PartitionSpecContainerNetwork struct {

	// 子网ID
	SubnetID *string `json:"subnetID,omitempty"`
}

func (PartitionSpecContainerNetwork) String added in v0.1.70

type PartitionSpecHostNetwork added in v0.1.70

type PartitionSpecHostNetwork struct {

	// 子网ID
	SubnetID *string `json:"subnetID,omitempty"`
}

PartitionSpecHostNetwork 分区子网

func (PartitionSpecHostNetwork) String added in v0.1.70

func (o PartitionSpecHostNetwork) String() string

type PauseUpgradeClusterTaskRequest added in v0.1.17

type PauseUpgradeClusterTaskRequest struct {

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

PauseUpgradeClusterTaskRequest Request Object

func (PauseUpgradeClusterTaskRequest) String added in v0.1.17

type PauseUpgradeClusterTaskResponse added in v0.1.17

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

PauseUpgradeClusterTaskResponse Response Object

func (PauseUpgradeClusterTaskResponse) String added in v0.1.17

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 added in v0.0.90

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 Point added in v0.1.76

type Point struct {
	TaskType *TaskType `json:"taskType,omitempty"`
}

func (Point) String added in v0.1.76

func (o Point) String() string

type PointStatus added in v0.1.76

type PointStatus struct {
	TaskType *TaskType `json:"taskType,omitempty"`

	// 升级任务项ID
	TaskID *string `json:"taskID,omitempty"`

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

	// 升级任务开始时间
	StartTimeStamp *string `json:"startTimeStamp,omitempty"`

	// 升级任务结束时间
	EndTimeStamp *string `json:"endTimeStamp,omitempty"`

	// 升级任务过期时间(当前仅升级前检查任务适用)
	ExpireTimeStamp *string `json:"expireTimeStamp,omitempty"`
}

func (PointStatus) String added in v0.1.76

func (o PointStatus) String() string

type PostcheckCluserResponseMetadata added in v0.1.76

type PostcheckCluserResponseMetadata struct {

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

PostcheckCluserResponseMetadata 升级后确认元数据

func (PostcheckCluserResponseMetadata) String added in v0.1.76

type PostcheckClusterRequestBody added in v0.1.76

type PostcheckClusterRequestBody struct {

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

	// 资源类型
	Kind string `json:"kind"`

	Spec *PostcheckSpec `json:"spec"`
}

func (PostcheckClusterRequestBody) String added in v0.1.76

type PostcheckClusterResponseBodyStatus added in v0.1.76

type PostcheckClusterResponseBodyStatus struct {

	// 状态,取值如下 - Success 成功 - Failed 失败 - Error 错误
	Phase *string `json:"phase,omitempty"`
}

PostcheckClusterResponseBodyStatus 集群升级后确认的状态信息

func (PostcheckClusterResponseBodyStatus) String added in v0.1.76

type PostcheckSpec added in v0.1.76

type PostcheckSpec struct {

	// 集群ID
	ClusterID *string `json:"clusterID,omitempty"`

	// 集群升级源版本
	ClusterVersion *string `json:"clusterVersion,omitempty"`

	// 集群升级目标版本
	TargetVersion *string `json:"targetVersion,omitempty"`
}

func (PostcheckSpec) String added in v0.1.76

func (o PostcheckSpec) String() string

type PreCheckItemStatus added in v0.1.76

type PreCheckItemStatus struct {

	// 检查项名称
	Name *string `json:"name,omitempty"`

	// 检查项类型,取值如下 - Exception: 异常类,需要用户解决 - Risk:风险类,用户确认后可选择跳过
	Kind *string `json:"kind,omitempty"`

	// 检查项分组,取值如下 - LimitCheck: 集群限制检查 - MasterCheck:控制节点检查 - NodeCheck:用户节点检查 - AddonCheck:插件检查 - ExecuteException:检查流程错误
	Group *string `json:"group,omitempty"`

	// 检查项风险级别,取值如下 - Info: 提示级别 - Warning:风险级别 - Fatal:严重级别
	Level *string `json:"level,omitempty"`

	// 状态,取值如下 - Init: 初始化 - Running 运行中 - Success 成功 - Failed 失败
	Phase *string `json:"phase,omitempty"`

	// 提示信息
	Message *string `json:"message,omitempty"`

	RiskSource *RiskSource `json:"riskSource,omitempty"`

	// 错误码集合
	ErrorCodes *[]string `json:"errorCodes,omitempty"`
}

PreCheckItemStatus 检查项状态信息

func (PreCheckItemStatus) String added in v0.1.76

func (o PreCheckItemStatus) String() string

type PrecheckCluserResponseMetadata added in v0.1.76

type PrecheckCluserResponseMetadata struct {

	// 检查任务ID
	Uid *string `json:"uid,omitempty"`
}

PrecheckCluserResponseMetadata 升级前检查元数据

func (PrecheckCluserResponseMetadata) String added in v0.1.76

type PrecheckClusterRequestBody added in v0.1.76

type PrecheckClusterRequestBody struct {

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

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

	Spec *PrecheckSpec `json:"spec"`
}

func (PrecheckClusterRequestBody) String added in v0.1.76

type PrecheckClusterTask added in v0.1.76

type PrecheckClusterTask struct {

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

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

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

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

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

func (PrecheckClusterTask) String added in v0.1.76

func (o PrecheckClusterTask) String() string

type PrecheckSpec added in v0.1.76

type PrecheckSpec struct {

	// 集群ID
	ClusterID *string `json:"clusterID,omitempty"`

	// 集群版本
	ClusterVersion *string `json:"clusterVersion,omitempty"`

	// 升级目标版本
	TargetVersion *string `json:"targetVersion,omitempty"`

	// 跳过检查的项目列表
	SkippedCheckItemList *[]SkippedCheckItemList `json:"skippedCheckItemList,omitempty"`
}

func (PrecheckSpec) String added in v0.1.76

func (o PrecheckSpec) String() string

type PrecheckStatus added in v0.1.76

type PrecheckStatus struct {

	// 状态,取值如下 - Init: 初始化 - Running 运行中 - Success 成功 - Failed 失败 - Error 错误
	Phase *string `json:"phase,omitempty"`

	// 检查结果过期时间
	ExpireTimeStamp *string `json:"expireTimeStamp,omitempty"`

	// 信息,一般是执行错误的日志信息
	Message *string `json:"message,omitempty"`

	ClusterCheckStatus *ClusterCheckStatus `json:"clusterCheckStatus,omitempty"`

	AddonCheckStatus *AddonCheckStatus `json:"addonCheckStatus,omitempty"`

	NodeCheckStatus *NodeCheckStatus `json:"nodeCheckStatus,omitempty"`
}

PrecheckStatus 升级前检查状态

func (PrecheckStatus) String added in v0.1.76

func (o PrecheckStatus) String() string

type PrecheckTaskMetadata added in v0.1.76

type PrecheckTaskMetadata struct {

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

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

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

PrecheckTaskMetadata 升级前检查任务元数据

func (PrecheckTaskMetadata) String added in v0.1.76

func (o PrecheckTaskMetadata) String() string

type QuotaResource added in v0.0.74

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 added in v0.0.74

func (o QuotaResource) String() string

type QuotaRespQuotas added in v0.1.70

type QuotaRespQuotas struct {

	// 资源
	Resources *[]QuotaRespQuotasResources `json:"resources,omitempty"`
}

QuotaRespQuotas 模板配额

func (QuotaRespQuotas) String added in v0.1.70

func (o QuotaRespQuotas) String() string

type QuotaRespQuotasResources added in v0.1.70

type QuotaRespQuotasResources struct {

	// 类型
	Type *string `json:"type,omitempty"`

	// 配额
	Quota *int32 `json:"quota,omitempty"`

	// 已使用量
	Used *int32 `json:"used,omitempty"`
}

func (QuotaRespQuotasResources) String added in v0.1.70

func (o QuotaRespQuotasResources) String() string

type ReinstallExtendParam added in v0.0.59

type ReinstallExtendParam struct {

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

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

func (ReinstallExtendParam) String added in v0.0.59

func (o ReinstallExtendParam) String() string

type ReinstallK8sOptionsConfig added in v0.0.59

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 added in v0.0.59

func (o ReinstallK8sOptionsConfig) String() string

type ReinstallNodeSpec added in v0.0.59

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

	HostnameConfig *HostnameConfig `json:"hostnameConfig,omitempty"`
}

ReinstallNodeSpec 节点重装配置参数

func (ReinstallNodeSpec) String added in v0.0.59

func (o ReinstallNodeSpec) String() string

type ReinstallRuntimeConfig added in v0.0.59

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 added in v0.0.59

func (o ReinstallRuntimeConfig) String() string

type ReinstallServerConfig added in v0.0.59

type ReinstallServerConfig struct {

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

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

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

func (ReinstallServerConfig) String added in v0.0.59

func (o ReinstallServerConfig) String() string

type ReinstallVolumeConfig added in v0.0.59

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 added in v0.0.59

func (o ReinstallVolumeConfig) String() string

type ReinstallVolumeSpec added in v0.0.59

type ReinstallVolumeSpec struct {

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

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

ReinstallVolumeSpec 服务器重装云硬盘配置

func (ReinstallVolumeSpec) String added in v0.0.59

func (o ReinstallVolumeSpec) String() string

type ReleaseReqBodyParams added in v0.1.70

type ReleaseReqBodyParams struct {

	// 开启后,仅验证模板参数,不进行安装
	DryRun *bool `json:"dry_run,omitempty"`

	// 实例名称模板
	NameTemplate *string `json:"name_template,omitempty"`

	// 安装时是否禁用hooks
	NoHooks *bool `json:"no_hooks,omitempty"`

	// 是否替换同名实例
	Replace *bool `json:"replace,omitempty"`

	// 是否重建实例
	Recreate *bool `json:"recreate,omitempty"`

	// 更新时是否重置values
	ResetValues *bool `json:"reset_values,omitempty"`

	// 回滚实例的版本
	ReleaseVersion *int32 `json:"release_version,omitempty"`

	// 更新或者删除时启用hooks
	IncludeHooks *bool `json:"include_hooks,omitempty"`
}

ReleaseReqBodyParams 模板实例参数

func (ReleaseReqBodyParams) String added in v0.1.70

func (o ReleaseReqBodyParams) String() string

type ReleaseResp added in v0.1.70

type ReleaseResp struct {

	// 模板名称
	ChartName *string `json:"chart_name,omitempty"`

	// 是否公开模板
	ChartPublic *bool `json:"chart_public,omitempty"`

	// 模板版本
	ChartVersion *string `json:"chart_version,omitempty"`

	// 集群ID
	ClusterId *string `json:"cluster_id,omitempty"`

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

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 模板实例描述
	Description *string `json:"description,omitempty"`

	// 模板实例名称
	Name *string `json:"name,omitempty"`

	// 模板实例所在的命名空间
	Namespace *string `json:"namespace,omitempty"`

	// 模板实例参数
	Parameters *string `json:"parameters,omitempty"`

	// 模板实例需要的资源
	Resources *string `json:"resources,omitempty"`

	// 模板实例状态
	Status *string `json:"status,omitempty"`

	// 模板实例状态描述
	StatusDescription *string `json:"status_description,omitempty"`

	// 更新时间
	UpdateAt *string `json:"update_at,omitempty"`

	// 模板实例的值
	Values *string `json:"values,omitempty"`

	// 模板实例版本
	Version *int32 `json:"version,omitempty"`
}

func (ReleaseResp) String added in v0.1.70

func (o ReleaseResp) String() string

type RemoveNodeRequest added in v0.0.51

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 added in v0.0.51

func (o RemoveNodeRequest) String() string

type RemoveNodeResponse added in v0.0.51

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 added in v0.0.51

func (o RemoveNodeResponse) String() string

type RemoveNodesSpec added in v0.0.51

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

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

func (RemoveNodesSpec) String added in v0.0.51

func (o RemoveNodesSpec) String() string

type RemoveNodesTask added in v0.0.51

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 added in v0.0.51

func (o RemoveNodesTask) String() string

type ResetNode added in v0.0.59

type ResetNode struct {

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

	Spec *ReinstallNodeSpec `json:"spec"`
}

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

func (ResetNode) String added in v0.0.59

func (o ResetNode) String() string

type ResetNodeList added in v0.0.59

type ResetNodeList struct {

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

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

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

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

func (ResetNodeList) String added in v0.0.59

func (o ResetNodeList) String() string

type ResetNodeRequest added in v0.0.59

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 added in v0.0.59

func (o ResetNodeRequest) String() string

type ResetNodeResponse added in v0.0.59

type ResetNodeResponse struct {

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

ResetNodeResponse Response Object

func (ResetNodeResponse) String added in v0.0.59

func (o ResetNodeResponse) String() string

type ResizeClusterRequest added in v0.1.57

type ResizeClusterRequest struct {

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

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

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

ResizeClusterRequest Request Object

func (ResizeClusterRequest) String added in v0.1.57

func (o ResizeClusterRequest) String() string

type ResizeClusterRequestBody added in v0.1.57

type ResizeClusterRequestBody struct {

	// 要变更的目标规格。仅支持变更集群最大节点规模,不支持变更控制节点数,且不支持降低集群规格。例如原集群规格为cce.s2.medium,仅支持变更至cce.s2.large及以上规格,不支持变更至cce.s2.small或cce.s1.medium。  - 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:单控制节点的集群,控制节点数为1。单控制节点故障后,集群将不可用,但已运行工作负载不受影响。 >    - s2:多控制节点的集群,即高可用集群,控制节点数为3。当某个控制节点故障时,集群仍然可用。 >    [- dec:表示专属云的CCE集群规格。例如cce.dec.s1.small表示小规模单控制节点的专属云CCE集群(最大50节点)。](tag:hws,hws_hk) >    - small:表示集群支持管理的最大节点规模为50节点。 >    - medium:表示集群支持管理的最大节点规模为200节点。 >    - large:表示集群支持管理的最大节点规模为1000节点。 >    - xlarge:表示集群支持管理的最大节点规模为2000节点。。
	FlavorResize string `json:"flavorResize"`

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

ResizeClusterRequestBody 变更集群规格的请求体

func (ResizeClusterRequestBody) String added in v0.1.57

func (o ResizeClusterRequestBody) String() string

type ResizeClusterRequestBodyExtendParam added in v0.1.70

type ResizeClusterRequestBodyExtendParam struct {

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

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

func (ResizeClusterRequestBodyExtendParam) String added in v0.1.70

type ResizeClusterResponse added in v0.1.57

type ResizeClusterResponse struct {

	// 任务ID
	JobID *string `json:"jobID,omitempty"`

	// 包周期集群变更规格订单ID
	OrderID        *string `json:"orderID,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeClusterResponse Response Object

func (ResizeClusterResponse) String added in v0.1.57

func (o ResizeClusterResponse) String() string

type ResourceDeleteTag added in v0.1.57

type ResourceDeleteTag struct {

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

ResourceDeleteTag CCE资源标签,用于唯一标识待删除的资源标签

func (ResourceDeleteTag) String added in v0.1.57

func (o ResourceDeleteTag) 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 ResourceSelector added in v0.1.76

type ResourceSelector struct {

	// 标签键值,取值如下 - node.uid:节点UID。
	Key ResourceSelectorKey `json:"key"`

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

	// 标签逻辑运算符,当前支持如下取值 - In
	Operator ResourceSelectorOperator `json:"operator"`
}

ResourceSelector 资源标签选择器,匹配Kubernetes中node资源

func (ResourceSelector) String added in v0.1.76

func (o ResourceSelector) String() string

type ResourceSelectorKey added in v0.1.76

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

func (ResourceSelectorKey) MarshalJSON added in v0.1.76

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

func (*ResourceSelectorKey) UnmarshalJSON added in v0.1.76

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

func (ResourceSelectorKey) Value added in v0.1.76

func (c ResourceSelectorKey) Value() string

type ResourceSelectorKeyEnum added in v0.1.76

type ResourceSelectorKeyEnum struct {
	NODE_UID ResourceSelectorKey
}

func GetResourceSelectorKeyEnum added in v0.1.76

func GetResourceSelectorKeyEnum() ResourceSelectorKeyEnum

type ResourceSelectorOperator added in v0.1.76

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

func (ResourceSelectorOperator) MarshalJSON added in v0.1.76

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

func (*ResourceSelectorOperator) UnmarshalJSON added in v0.1.76

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

func (ResourceSelectorOperator) Value added in v0.1.76

func (c ResourceSelectorOperator) Value() string

type ResourceSelectorOperatorEnum added in v0.1.76

type ResourceSelectorOperatorEnum struct {
	IN ResourceSelectorOperator
}

func GetResourceSelectorOperatorEnum added in v0.1.76

func GetResourceSelectorOperatorEnum() ResourceSelectorOperatorEnum

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 added in v0.1.17

type RetryUpgradeClusterTaskRequest struct {

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

RetryUpgradeClusterTaskRequest Request Object

func (RetryUpgradeClusterTaskRequest) String added in v0.1.17

type RetryUpgradeClusterTaskResponse added in v0.1.17

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

RetryUpgradeClusterTaskResponse Response Object

func (RetryUpgradeClusterTaskResponse) String added in v0.1.17

type RiskSource added in v0.1.76

type RiskSource struct {

	// 配置风险项
	ConfigurationRisks *[]ConfigurationRisks `json:"configurationRisks,omitempty"`

	// 废弃API风险
	DeprecatedAPIRisks *[]DeprecatedApiRisks `json:"deprecatedAPIRisks,omitempty"`

	// 节点风险
	NodeRisks *[]NodeRisks `json:"nodeRisks,omitempty"`

	// 插件风险
	AddonRisks *[]AddonRisks `json:"addonRisks,omitempty"`
}

RiskSource 风险项来源

func (RiskSource) String added in v0.1.76

func (o RiskSource) String() string

type RollbackAddonInstanceRequest added in v0.1.57

type RollbackAddonInstanceRequest struct {

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

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

RollbackAddonInstanceRequest Request Object

func (RollbackAddonInstanceRequest) String added in v0.1.57

type RollbackAddonInstanceResponse added in v0.1.57

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

RollbackAddonInstanceResponse Response Object

func (RollbackAddonInstanceResponse) String added in v0.1.57

type Runtime

type Runtime struct {

	// 容器运行时,默认场景: - v1.25以下集群:默认为\"docker\" - v1.25及以上集群,随操作系统变化,默认的容器运行时不同:操作系统为EulerOS 2.5[、EulerOS 2.8](tag:hws,hws_hk)的节点默认为\"docker\",其余操作系统的节点默认为\"containerd\"
	Name *RuntimeName `json:"name,omitempty"`
}

func (Runtime) String

func (o Runtime) String() string

type RuntimeConfig added in v0.0.51

type RuntimeConfig struct {

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

func (RuntimeConfig) String added in v0.0.51

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 added in v0.0.90

func (c RuntimeName) Value() string

type RuntimeNameEnum

type RuntimeNameEnum struct {
	DOCKER     RuntimeName
	CONTAINERD RuntimeName
}

func GetRuntimeNameEnum

func GetRuntimeNameEnum() RuntimeNameEnum

type SecurityId added in v0.0.75

type SecurityId struct {

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

func (SecurityId) String added in v0.0.75

func (o SecurityId) String() string

type ServiceNetwork added in v0.1.65

type ServiceNetwork struct {

	// kubernetes clusterIP IPv4 CIDR取值范围。创建集群时若未传参,默认为\"10.247.0.0/16\"。
	IPv4CIDR *string `json:"IPv4CIDR,omitempty"`
}

func (ServiceNetwork) String added in v0.1.65

func (o ServiceNetwork) 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 ShowChartRequest added in v0.1.70

type ShowChartRequest struct {

	// 模板的ID
	ChartId string `json:"chart_id"`
}

ShowChartRequest Request Object

func (ShowChartRequest) String added in v0.1.70

func (o ShowChartRequest) String() string

type ShowChartResponse added in v0.1.70

type ShowChartResponse struct {

	// 模板ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 模板值
	Values *string `json:"values,omitempty"`

	// 模板翻译资源
	Translate *string `json:"translate,omitempty"`

	// 模板介绍
	Instruction *string `json:"instruction,omitempty"`

	// 模板版本
	Version *string `json:"version,omitempty"`

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

	// 模板的来源
	Source *string `json:"source,omitempty"`

	// 模板的图标链接
	IconUrl *string `json:"icon_url,omitempty"`

	// 是否公开模板
	Public *bool `json:"public,omitempty"`

	// 模板的链接
	ChartUrl *string `json:"chart_url,omitempty"`

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间
	UpdateAt       *string `json:"update_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowChartResponse Response Object

func (ShowChartResponse) String added in v0.1.70

func (o ShowChartResponse) String() string

type ShowChartValuesRequest added in v0.1.70

type ShowChartValuesRequest struct {

	// 模板的ID
	ChartId string `json:"chart_id"`
}

ShowChartValuesRequest Request Object

func (ShowChartValuesRequest) String added in v0.1.70

func (o ShowChartValuesRequest) String() string

type ShowChartValuesResponse added in v0.1.70

type ShowChartValuesResponse struct {
	Values         *ChartValueValues `json:"values,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowChartValuesResponse Response Object

func (ShowChartValuesResponse) String added in v0.1.70

func (o ShowChartValuesResponse) String() string

type ShowClusterConfigRequest added in v0.1.70

type ShowClusterConfigRequest struct {

	// 组件类型 , 合法取值为control,audit,system-addon。不填写则查询全部类型。 - control 控制面组件日志。 - audit 控制面审计日志。 - system-addon 系统插件日志。
	Type *ShowClusterConfigRequestType `json:"type,omitempty"`

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

ShowClusterConfigRequest Request Object

func (ShowClusterConfigRequest) String added in v0.1.70

func (o ShowClusterConfigRequest) String() string

type ShowClusterConfigRequestType added in v0.1.70

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

func (ShowClusterConfigRequestType) MarshalJSON added in v0.1.70

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

func (*ShowClusterConfigRequestType) UnmarshalJSON added in v0.1.70

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

func (ShowClusterConfigRequestType) Value added in v0.1.70

type ShowClusterConfigRequestTypeEnum added in v0.1.70

type ShowClusterConfigRequestTypeEnum struct {
	CONTROL      ShowClusterConfigRequestType
	AUDIT        ShowClusterConfigRequestType
	SYSTEM_ADDON ShowClusterConfigRequestType
}

func GetShowClusterConfigRequestTypeEnum added in v0.1.70

func GetShowClusterConfigRequestTypeEnum() ShowClusterConfigRequestTypeEnum

type ShowClusterConfigResponse added in v0.1.70

type ShowClusterConfigResponse struct {

	// 存储时长
	TtlInDays *int32 `json:"ttl_in_days,omitempty"`

	// 日志配置项
	LogConfigs     *[]ClusterLogConfigLogConfigs `json:"log_configs,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ShowClusterConfigResponse Response Object

func (ShowClusterConfigResponse) String added in v0.1.70

func (o ShowClusterConfigResponse) String() string

type ShowClusterConfigurationDetailsRequest added in v0.1.70

type ShowClusterConfigurationDetailsRequest struct {

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

ShowClusterConfigurationDetailsRequest Request Object

func (ShowClusterConfigurationDetailsRequest) String added in v0.1.70

type ShowClusterConfigurationDetailsResponse added in v0.1.70

type ShowClusterConfigurationDetailsResponse struct {

	// 获取指定集群配置项列表返回体
	Body           map[string][]PackageOptions `json:"body,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

ShowClusterConfigurationDetailsResponse Response Object

func (ShowClusterConfigurationDetailsResponse) String added in v0.1.70

type ShowClusterEndpointsRequest added in v0.0.97

type ShowClusterEndpointsRequest struct {

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

ShowClusterEndpointsRequest Request Object

func (ShowClusterEndpointsRequest) String added in v0.0.97

type ShowClusterEndpointsResponse added in v0.0.97

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

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

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

ShowClusterEndpointsResponse Response Object

func (ShowClusterEndpointsResponse) String added in v0.0.97

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 ShowClusterUpgradeInfoRequest added in v0.1.76

type ShowClusterUpgradeInfoRequest struct {

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

ShowClusterUpgradeInfoRequest Request Object

func (ShowClusterUpgradeInfoRequest) String added in v0.1.76

type ShowClusterUpgradeInfoResponse added in v0.1.76

type ShowClusterUpgradeInfoResponse struct {

	// 类型
	Kind *string `json:"kind,omitempty"`

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

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

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

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

ShowClusterUpgradeInfoResponse Response Object

func (ShowClusterUpgradeInfoResponse) String added in v0.1.76

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 ShowNodePoolConfigurationDetailsRequest added in v0.1.87

type ShowNodePoolConfigurationDetailsRequest struct {

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

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

ShowNodePoolConfigurationDetailsRequest Request Object

func (ShowNodePoolConfigurationDetailsRequest) String added in v0.1.87

type ShowNodePoolConfigurationDetailsResponse added in v0.1.87

type ShowNodePoolConfigurationDetailsResponse struct {

	// 获取指定节点池配置参数列表返回体
	Body           map[string][]PackageOptions `json:"body,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

ShowNodePoolConfigurationDetailsResponse Response Object

func (ShowNodePoolConfigurationDetailsResponse) String added in v0.1.87

type ShowNodePoolConfigurationsRequest added in v0.1.70

type ShowNodePoolConfigurationsRequest struct {

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

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

ShowNodePoolConfigurationsRequest Request Object

func (ShowNodePoolConfigurationsRequest) String added in v0.1.70

type ShowNodePoolConfigurationsResponse added in v0.1.70

type ShowNodePoolConfigurationsResponse struct {

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

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

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

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

	// Configuration的状态信息
	Status         *interface{} `json:"status,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowNodePoolConfigurationsResponse Response Object

func (ShowNodePoolConfigurationsResponse) String added in v0.1.70

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 ShowPartitionRequest added in v0.1.70

type ShowPartitionRequest struct {

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

	// 分区名称
	PartitionName string `json:"partition_name"`
}

ShowPartitionRequest Request Object

func (ShowPartitionRequest) String added in v0.1.70

func (o ShowPartitionRequest) String() string

type ShowPartitionResponse added in v0.1.70

type ShowPartitionResponse struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

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

ShowPartitionResponse Response Object

func (ShowPartitionResponse) String added in v0.1.70

func (o ShowPartitionResponse) String() string

type ShowPreCheckRequest added in v0.1.76

type ShowPreCheckRequest struct {

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

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

ShowPreCheckRequest Request Object

func (ShowPreCheckRequest) String added in v0.1.76

func (o ShowPreCheckRequest) String() string

type ShowPreCheckResponse added in v0.1.76

type ShowPreCheckResponse struct {

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

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

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

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

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

ShowPreCheckResponse Response Object

func (ShowPreCheckResponse) String added in v0.1.76

func (o ShowPreCheckResponse) String() string

type ShowQuotasRequest added in v0.0.74

type ShowQuotasRequest struct {
}

ShowQuotasRequest Request Object

func (ShowQuotasRequest) String added in v0.0.74

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse added in v0.0.74

type ShowQuotasResponse struct {

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

ShowQuotasResponse Response Object

func (ShowQuotasResponse) String added in v0.0.74

func (o ShowQuotasResponse) String() string

type ShowReleaseHistoryRequest added in v0.1.70

type ShowReleaseHistoryRequest struct {

	// 模板实例名称
	Name string `json:"name"`

	// 模板实例所在的命名空间
	Namespace string `json:"namespace"`

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

ShowReleaseHistoryRequest Request Object

func (ShowReleaseHistoryRequest) String added in v0.1.70

func (o ShowReleaseHistoryRequest) String() string

type ShowReleaseHistoryResponse added in v0.1.70

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

ShowReleaseHistoryResponse Response Object

func (ShowReleaseHistoryResponse) String added in v0.1.70

type ShowReleaseRequest added in v0.1.70

type ShowReleaseRequest struct {

	// 模板实例名称
	Name string `json:"name"`

	// 模板实例所在的命名空间
	Namespace string `json:"namespace"`

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

ShowReleaseRequest Request Object

func (ShowReleaseRequest) String added in v0.1.70

func (o ShowReleaseRequest) String() string

type ShowReleaseResponse added in v0.1.70

type ShowReleaseResponse struct {

	// 模板名称
	ChartName *string `json:"chart_name,omitempty"`

	// 是否公开模板
	ChartPublic *bool `json:"chart_public,omitempty"`

	// 模板版本
	ChartVersion *string `json:"chart_version,omitempty"`

	// 集群ID
	ClusterId *string `json:"cluster_id,omitempty"`

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

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 模板实例描述
	Description *string `json:"description,omitempty"`

	// 模板实例名称
	Name *string `json:"name,omitempty"`

	// 模板实例所在的命名空间
	Namespace *string `json:"namespace,omitempty"`

	// 模板实例参数
	Parameters *string `json:"parameters,omitempty"`

	// 模板实例需要的资源
	Resources *string `json:"resources,omitempty"`

	// 模板实例状态
	Status *string `json:"status,omitempty"`

	// 模板实例状态描述
	StatusDescription *string `json:"status_description,omitempty"`

	// 更新时间
	UpdateAt *string `json:"update_at,omitempty"`

	// 模板实例的值
	Values *string `json:"values,omitempty"`

	// 模板实例版本
	Version        *int32 `json:"version,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowReleaseResponse Response Object

func (ShowReleaseResponse) String added in v0.1.70

func (o ShowReleaseResponse) String() string

type ShowUpgradeClusterTaskRequest added in v0.1.17

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 added in v0.1.17

type ShowUpgradeClusterTaskResponse added in v0.1.17

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 added in v0.1.17

type ShowUpgradeWorkFlowRequest added in v0.1.76

type ShowUpgradeWorkFlowRequest struct {

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

	// 集群升级任务引导流程ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	UpgradeWorkflowId string `json:"upgrade_workflow_id"`
}

ShowUpgradeWorkFlowRequest Request Object

func (ShowUpgradeWorkFlowRequest) String added in v0.1.76

type ShowUpgradeWorkFlowResponse added in v0.1.76

type ShowUpgradeWorkFlowResponse struct {

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

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

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

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

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

ShowUpgradeWorkFlowResponse Response Object

func (ShowUpgradeWorkFlowResponse) String added in v0.1.76

type ShowUserChartsQuotasRequest added in v0.1.70

type ShowUserChartsQuotasRequest struct {
}

ShowUserChartsQuotasRequest Request Object

func (ShowUserChartsQuotasRequest) String added in v0.1.70

type ShowUserChartsQuotasResponse added in v0.1.70

type ShowUserChartsQuotasResponse struct {
	Quotas         *QuotaRespQuotas `json:"quotas,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowUserChartsQuotasResponse Response Object

func (ShowUserChartsQuotasResponse) String added in v0.1.70

type ShowVersionRequest added in v0.0.97

type ShowVersionRequest struct {
}

ShowVersionRequest Request Object

func (ShowVersionRequest) String added in v0.0.97

func (o ShowVersionRequest) String() string

type ShowVersionResponse added in v0.0.97

type ShowVersionResponse struct {

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

ShowVersionResponse Response Object

func (ShowVersionResponse) String added in v0.0.97

func (o ShowVersionResponse) String() string

type SkippedCheckItemList added in v0.1.76

type SkippedCheckItemList struct {

	// 跳过的检查项名称
	Name *string `json:"name,omitempty"`

	ResourceSelector *ResourceSelector `json:"resourceSelector,omitempty"`
}

func (SkippedCheckItemList) String added in v0.1.76

func (o SkippedCheckItemList) String() string

type SnapshotCluserResponseMetadata added in v0.1.76

type SnapshotCluserResponseMetadata struct {

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

	// 任务类型
	Kind *string `json:"kind,omitempty"`
}

SnapshotCluserResponseMetadata 备份任务数据

func (SnapshotCluserResponseMetadata) String added in v0.1.76

type SnapshotSpec added in v0.1.76

type SnapshotSpec struct {

	// 备份任务详情
	Items *[]SnapshotSpecItems `json:"items,omitempty"`
}

func (SnapshotSpec) String added in v0.1.76

func (o SnapshotSpec) String() string

type SnapshotSpecItems added in v0.1.76

type SnapshotSpecItems struct {

	// 子任务ID
	Id *string `json:"id,omitempty"`

	// 子任务类型
	Type *string `json:"type,omitempty"`

	// 状态
	Status *string `json:"status,omitempty"`

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

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

	// 信息
	Message *string `json:"message,omitempty"`
}

func (SnapshotSpecItems) String added in v0.1.76

func (o SnapshotSpecItems) String() string

type SnapshotStatus added in v0.1.76

type SnapshotStatus struct {

	// 任务状态
	Phase *string `json:"phase,omitempty"`

	// 任务进度
	Progress *string `json:"progress,omitempty"`

	// 完成时间
	CompletionTime *string `json:"completionTime,omitempty"`
}

func (SnapshotStatus) String added in v0.1.76

func (o SnapshotStatus) String() string

type SnapshotTask added in v0.1.76

type SnapshotTask struct {

	// 任务类型
	Kind *string `json:"kind,omitempty"`

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

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

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

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

func (SnapshotTask) String added in v0.1.76

func (o SnapshotTask) String() string

type SnapshotTaskMetadata added in v0.1.76

type SnapshotTaskMetadata struct {

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

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

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

func (SnapshotTaskMetadata) String added in v0.1.76

func (o SnapshotTaskMetadata) String() string

type SnapshotTaskStatus added in v0.1.76

type SnapshotTaskStatus struct {

	// 最近一次备份的时间
	LatestBackupTime *string `json:"latestBackupTime,omitempty"`
}

func (SnapshotTaskStatus) String added in v0.1.76

func (o SnapshotTaskStatus) String() string

type Storage added in v0.0.51

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 added in v0.0.51

func (o Storage) String() string

type StorageGroups added in v0.0.51

type StorageGroups struct {

	// storageGroups的名字,作为虚拟存储组的名字,因此各个group名字不能重复。 > - 当cceManaged=ture时,name必须为:vgpass。 > - 当数据盘作为临时存储卷时:name必须为:vg-everest-localvolume-ephemeral。 > - 当数据盘作为持久存储卷时:name必须为:vg-everest-localvolume-persistent。
	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 added in v0.0.51

func (o StorageGroups) String() string

type StorageSelectors added in v0.0.51

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 added in v0.0.51

func (o StorageSelectors) String() string

type StorageSelectorsMatchLabels added in v0.0.51

type StorageSelectorsMatchLabels struct {

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

	// 云硬盘类型,目前支持SSD\\GPSSD\\SAS\\ESSD\\SATA等。
	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 added in v0.0.51

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 added in v0.0.90

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 added in v0.0.51

type TaskStatus struct {

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

func (TaskStatus) String added in v0.0.51

func (o TaskStatus) String() string

type TaskType added in v0.1.76

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

TaskType 集群升级任务类型: Cluster: 集群升级任务 PreCheck: 集群升级预检查任务 Rollback: 集群升级回归任务 Snapshot: 集群升级快照任务 PostCheck: 集群升级后检查任务

func (TaskType) MarshalJSON added in v0.1.76

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

func (*TaskType) UnmarshalJSON added in v0.1.76

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

func (TaskType) Value added in v0.1.76

func (c TaskType) Value() string

type TaskTypeEnum added in v0.1.76

type TaskTypeEnum struct {
	CLUSTER    TaskType
	PRE_CHECK  TaskType
	ROLLBACK   TaskType
	SNAPSHOT   TaskType
	POST_CHECK TaskType
}

func GetTaskTypeEnum added in v0.1.76

func GetTaskTypeEnum() TaskTypeEnum

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 UpdateChartRequest added in v0.1.70

type UpdateChartRequest struct {

	// 模板的ID
	ChartId string `json:"chart_id"`

	Body *UpdateChartRequestBody `json:"body,omitempty" type:"multipart"`
}

UpdateChartRequest Request Object

func (UpdateChartRequest) String added in v0.1.70

func (o UpdateChartRequest) String() string

type UpdateChartRequestBody added in v0.1.70

type UpdateChartRequestBody struct {

	// 上传模板的配置参数,示例如下:\"{\\\"override\\\":true,\\\"skip_lint\\\":true,\\\"source\\\":\\\"package\\\"}\" - skip_lint: whether lint uploaded chart - override: whether override existed chart - visible: update chart visible
	Parameters *def.MultiPart `json:"parameters,omitempty"`

	// 模板包文件
	Content *def.FilePart `json:"content"`
}

func (UpdateChartRequestBody) String added in v0.1.70

func (o UpdateChartRequestBody) String() string

func (*UpdateChartRequestBody) UnmarshalJSON added in v0.1.70

func (o *UpdateChartRequestBody) UnmarshalJSON(b []byte) error

type UpdateChartResponse added in v0.1.70

type UpdateChartResponse struct {

	// 模板ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 模板值
	Values *string `json:"values,omitempty"`

	// 模板翻译资源
	Translate *string `json:"translate,omitempty"`

	// 模板介绍
	Instruction *string `json:"instruction,omitempty"`

	// 模板版本
	Version *string `json:"version,omitempty"`

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

	// 模板的来源
	Source *string `json:"source,omitempty"`

	// 模板的图标链接
	IconUrl *string `json:"icon_url,omitempty"`

	// 是否公开模板
	Public *bool `json:"public,omitempty"`

	// 模板的链接
	ChartUrl *string `json:"chart_url,omitempty"`

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间
	UpdateAt       *string `json:"update_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateChartResponse Response Object

func (UpdateChartResponse) String added in v0.1.70

func (o UpdateChartResponse) String() string

type UpdateClusterConfigurationsBody added in v0.1.70

type UpdateClusterConfigurationsBody struct {

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

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

	Metadata *ConfigurationMetadata `json:"metadata"`

	Spec *ClusterConfigurationsSpec `json:"spec"`
}

UpdateClusterConfigurationsBody 更新指定集群配置参数内容请求体

func (UpdateClusterConfigurationsBody) String added in v0.1.70

type UpdateClusterEipRequest added in v0.0.97

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 added in v0.0.97

func (o UpdateClusterEipRequest) String() string

type UpdateClusterEipResponse added in v0.0.97

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 added in v0.0.97

func (o UpdateClusterEipResponse) String() string

type UpdateClusterLogConfigRequest added in v0.1.70

type UpdateClusterLogConfigRequest struct {

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

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

UpdateClusterLogConfigRequest Request Object

func (UpdateClusterLogConfigRequest) String added in v0.1.70

type UpdateClusterLogConfigResponse added in v0.1.70

type UpdateClusterLogConfigResponse struct {

	// 存储时长
	TtlInDays *int32 `json:"ttl_in_days,omitempty"`

	// 日志配置项
	LogConfigs     *[]ClusterLogConfigLogConfigs `json:"log_configs,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

UpdateClusterLogConfigResponse Response Object

func (UpdateClusterLogConfigResponse) String added in v0.1.70

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 UpdateNodePoolConfigurationRequest added in v0.1.70

type UpdateNodePoolConfigurationRequest struct {

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

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

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

UpdateNodePoolConfigurationRequest Request Object

func (UpdateNodePoolConfigurationRequest) String added in v0.1.70

type UpdateNodePoolConfigurationResponse added in v0.1.70

type UpdateNodePoolConfigurationResponse struct {

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

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

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

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

	// Configuration的状态信息
	Status         *interface{} `json:"status,omitempty"`
	HttpStatusCode int          `json:"-"`
}

UpdateNodePoolConfigurationResponse Response Object

func (UpdateNodePoolConfigurationResponse) String added in v0.1.70

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         *UpdateNodePoolStatus `json:"status,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

UpdateNodePoolResponse Response Object

func (UpdateNodePoolResponse) String

func (o UpdateNodePoolResponse) String() string

type UpdateNodePoolStatus added in v0.1.77

type UpdateNodePoolStatus 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 *UpdateNodePoolStatusPhase `json:"phase,omitempty"`

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

UpdateNodePoolStatus

func (UpdateNodePoolStatus) String added in v0.1.77

func (o UpdateNodePoolStatus) String() string

type UpdateNodePoolStatusPhase added in v0.1.77

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

func (UpdateNodePoolStatusPhase) MarshalJSON added in v0.1.77

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

func (*UpdateNodePoolStatusPhase) UnmarshalJSON added in v0.1.77

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

func (UpdateNodePoolStatusPhase) Value added in v0.1.77

type UpdateNodePoolStatusPhaseEnum added in v0.1.77

type UpdateNodePoolStatusPhaseEnum struct {
	SYNCHRONIZING UpdateNodePoolStatusPhase
	SYNCHRONIZED  UpdateNodePoolStatusPhase
	SOLD_OUT      UpdateNodePoolStatusPhase
	DELETING      UpdateNodePoolStatusPhase
	ERROR         UpdateNodePoolStatusPhase
}

func GetUpdateNodePoolStatusPhaseEnum added in v0.1.77

func GetUpdateNodePoolStatusPhaseEnum() UpdateNodePoolStatusPhaseEnum

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 UpdatePartitionRequest added in v0.1.70

type UpdatePartitionRequest struct {

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

	// 分区名称
	PartitionName string `json:"partition_name"`

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

UpdatePartitionRequest Request Object

func (UpdatePartitionRequest) String added in v0.1.70

func (o UpdatePartitionRequest) String() string

type UpdatePartitionResponse added in v0.1.70

type UpdatePartitionResponse struct {

	// 资源类型
	Kind *string `json:"kind,omitempty"`

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

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

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

UpdatePartitionResponse Response Object

func (UpdatePartitionResponse) String added in v0.1.70

func (o UpdatePartitionResponse) String() string

type UpdateReleaseReqBody added in v0.1.70

type UpdateReleaseReqBody struct {

	// 模板ID
	ChartId string `json:"chart_id"`

	// 更新操作,升级为upgrade,回退为rollback
	Action UpdateReleaseReqBodyAction `json:"action"`

	Parameters *ReleaseReqBodyParams `json:"parameters"`

	Values *CreateReleaseReqBodyValues `json:"values"`
}

UpdateReleaseReqBody 更新模板实例的请求体

func (UpdateReleaseReqBody) String added in v0.1.70

func (o UpdateReleaseReqBody) String() string

type UpdateReleaseReqBodyAction added in v0.1.70

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

func (UpdateReleaseReqBodyAction) MarshalJSON added in v0.1.70

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

func (*UpdateReleaseReqBodyAction) UnmarshalJSON added in v0.1.70

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

func (UpdateReleaseReqBodyAction) Value added in v0.1.70

type UpdateReleaseReqBodyActionEnum added in v0.1.70

type UpdateReleaseReqBodyActionEnum struct {
	UPGRADE  UpdateReleaseReqBodyAction
	ROLLBACK UpdateReleaseReqBodyAction
}

func GetUpdateReleaseReqBodyActionEnum added in v0.1.70

func GetUpdateReleaseReqBodyActionEnum() UpdateReleaseReqBodyActionEnum

type UpdateReleaseRequest added in v0.1.70

type UpdateReleaseRequest struct {

	// 模板实例名称
	Name string `json:"name"`

	// 模板实例所在的命名空间
	Namespace string `json:"namespace"`

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

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

UpdateReleaseRequest Request Object

func (UpdateReleaseRequest) String added in v0.1.70

func (o UpdateReleaseRequest) String() string

type UpdateReleaseResponse added in v0.1.70

type UpdateReleaseResponse struct {

	// 模板名称
	ChartName *string `json:"chart_name,omitempty"`

	// 是否公开模板
	ChartPublic *bool `json:"chart_public,omitempty"`

	// 模板版本
	ChartVersion *string `json:"chart_version,omitempty"`

	// 集群ID
	ClusterId *string `json:"cluster_id,omitempty"`

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

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 模板实例描述
	Description *string `json:"description,omitempty"`

	// 模板实例名称
	Name *string `json:"name,omitempty"`

	// 模板实例所在的命名空间
	Namespace *string `json:"namespace,omitempty"`

	// 模板实例参数
	Parameters *string `json:"parameters,omitempty"`

	// 模板实例需要的资源
	Resources *string `json:"resources,omitempty"`

	// 模板实例状态
	Status *string `json:"status,omitempty"`

	// 模板实例状态描述
	StatusDescription *string `json:"status_description,omitempty"`

	// 更新时间
	UpdateAt *string `json:"update_at,omitempty"`

	// 模板实例的值
	Values *string `json:"values,omitempty"`

	// 模板实例版本
	Version        *int32 `json:"version,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateReleaseResponse Response Object

func (UpdateReleaseResponse) String added in v0.1.70

func (o UpdateReleaseResponse) String() string

type UpgradeAddonConfig added in v0.1.17

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 added in v0.1.17

func (o UpgradeAddonConfig) String() string

type UpgradeCluserResponseMetadata added in v0.1.47

type UpgradeCluserResponseMetadata struct {

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

UpgradeCluserResponseMetadata 升级任务元数据

func (UpgradeCluserResponseMetadata) String added in v0.1.47

type UpgradeClusterRequest added in v0.1.17

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 added in v0.1.17

func (o UpgradeClusterRequest) String() string

type UpgradeClusterRequestBody added in v0.1.17

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

	Spec *UpgradeSpec `json:"spec"`
}

func (UpgradeClusterRequestBody) String added in v0.1.17

func (o UpgradeClusterRequestBody) String() string

type UpgradeClusterRequestMetadata added in v0.1.17

type UpgradeClusterRequestMetadata struct {

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

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

func (UpgradeClusterRequestMetadata) String added in v0.1.17

type UpgradeClusterResponse added in v0.1.17

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

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

UpgradeClusterResponse Response Object

func (UpgradeClusterResponse) String added in v0.1.17

func (o UpgradeClusterResponse) String() string

type UpgradeFeatureGates added in v0.1.76

type UpgradeFeatureGates struct {

	// 集群升级Console界面是否支持V4版本,该字段一般由CCE Console使用。
	SupportUpgradePageV4 *bool `json:"supportUpgradePageV4,omitempty"`
}

UpgradeFeatureGates 集群升级特性开关

func (UpgradeFeatureGates) String added in v0.1.76

func (o UpgradeFeatureGates) String() string

type UpgradeInfoSpec added in v0.1.76

type UpgradeInfoSpec struct {
	LastUpgradeInfo *UpgradeInfoStatus `json:"lastUpgradeInfo,omitempty"`

	VersionInfo *UpgradeVersionInfo `json:"versionInfo,omitempty"`

	UpgradeFeatureGates *UpgradeFeatureGates `json:"upgradeFeatureGates,omitempty"`
}

UpgradeInfoSpec 升级配置相关信息

func (UpgradeInfoSpec) String added in v0.1.76

func (o UpgradeInfoSpec) String() string

type UpgradeInfoStatus added in v0.1.76

type UpgradeInfoStatus struct {

	// 升级任务状态. > Init:初始化 > Running:运行中 > Pause:暂停 > Success:成功 > Failed:失败
	Phase *string `json:"phase,omitempty"`

	// 升级任务进度
	Progress *string `json:"progress,omitempty"`

	// 升级任务结束时间
	CompletionTime *string `json:"completionTime,omitempty"`
}

UpgradeInfoStatus 升级状态信息

func (UpgradeInfoStatus) String added in v0.1.76

func (o UpgradeInfoStatus) String() string

type UpgradePath added in v0.1.76

type UpgradePath struct {

	// 集群版本,v1.19及以下集群形如v1.19.16-r20,v1.21及以上形如v1.21,v1.23,详细请参考CCE集群版本号说明。
	Version *string `json:"version,omitempty"`

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

	// 可升级的目标版本集合
	TargetVersions *[]string `json:"targetVersions,omitempty"`
}

UpgradePath 升级路径

func (UpgradePath) String added in v0.1.76

func (o UpgradePath) String() string

type UpgradeResponseSpec added in v0.1.47

type UpgradeResponseSpec struct {
	ClusterUpgradeAction *ClusterUpgradeResponseAction `json:"clusterUpgradeAction,omitempty"`
}

UpgradeResponseSpec 升级任务元数据

func (UpgradeResponseSpec) String added in v0.1.47

func (o UpgradeResponseSpec) String() string

type UpgradeSpec added in v0.1.17

type UpgradeSpec struct {
	ClusterUpgradeAction *ClusterUpgradeAction `json:"clusterUpgradeAction,omitempty"`
}

func (UpgradeSpec) String added in v0.1.17

func (o UpgradeSpec) String() string

type UpgradeStrategy added in v0.1.17

type UpgradeStrategy struct {

	// 升级策略类型,当前仅支持原地升级类型\"inPlaceRollingUpdate\"
	Type string `json:"type"`

	InPlaceRollingUpdate *InPlaceRollingUpdate `json:"inPlaceRollingUpdate,omitempty"`
}

UpgradeStrategy 升级配置

func (UpgradeStrategy) String added in v0.1.17

func (o UpgradeStrategy) String() string

type UpgradeTaskMetadata added in v0.1.17

type UpgradeTaskMetadata struct {

	// 升级任务ID
	Uid *string `json:"uid,omitempty"`

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

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

UpgradeTaskMetadata 升级任务元数据

func (UpgradeTaskMetadata) String added in v0.1.17

func (o UpgradeTaskMetadata) String() string

type UpgradeTaskResponseBody added in v0.1.76

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

func (UpgradeTaskResponseBody) String added in v0.1.76

func (o UpgradeTaskResponseBody) String() string

type UpgradeTaskSpec added in v0.1.17

type UpgradeTaskSpec struct {

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

	// 升级的目标集群版本
	TargetVersion *string `json:"targetVersion,omitempty"`

	// 升级任务附属信息
	Items *interface{} `json:"items,omitempty"`
}

UpgradeTaskSpec 升级任务属性

func (UpgradeTaskSpec) String added in v0.1.17

func (o UpgradeTaskSpec) String() string

type UpgradeTaskStatus added in v0.1.17

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 added in v0.1.17

func (o UpgradeTaskStatus) String() string

type UpgradeVersionInfo added in v0.1.76

type UpgradeVersionInfo struct {

	// 正式版本号,如:v1.19.10
	Release *string `json:"release,omitempty"`

	// 补丁版本号,如r0
	Patch *string `json:"patch,omitempty"`

	// 推荐升级的目标补丁版本号,如r0
	SuggestPatch *string `json:"suggestPatch,omitempty"`

	// 升级目标版本集合
	TargetVersions *[]string `json:"targetVersions,omitempty"`
}

UpgradeVersionInfo 版本信息

func (UpgradeVersionInfo) String added in v0.1.76

func (o UpgradeVersionInfo) String() string

type UpgradeWorkFlow added in v0.1.76

type UpgradeWorkFlow struct {

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

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

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

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

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

func (UpgradeWorkFlow) String added in v0.1.76

func (o UpgradeWorkFlow) String() string

type UpgradeWorkFlowUpdateRequest added in v0.1.76

type UpgradeWorkFlowUpdateRequest struct {

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

	// 集群升级任务引导流程ID,获取方式请参见[如何获取接口URI中参数](cce_02_0271.xml)。
	UpgradeWorkflowId string `json:"upgrade_workflow_id"`

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

UpgradeWorkFlowUpdateRequest Request Object

func (UpgradeWorkFlowUpdateRequest) String added in v0.1.76

type UpgradeWorkFlowUpdateRequestBody added in v0.1.76

type UpgradeWorkFlowUpdateRequestBody struct {
	Status *UpgradeWorkFlowUpdateRequestBodyStatus `json:"status,omitempty"`
}

func (UpgradeWorkFlowUpdateRequestBody) String added in v0.1.76

type UpgradeWorkFlowUpdateRequestBodyStatus added in v0.1.76

type UpgradeWorkFlowUpdateRequestBodyStatus struct {
	Phase *WorkFlowPhase `json:"phase,omitempty"`
}

UpgradeWorkFlowUpdateRequestBodyStatus 更新后workflow的状态(当前仅支持Cancel)

func (UpgradeWorkFlowUpdateRequestBodyStatus) String added in v0.1.76

type UpgradeWorkFlowUpdateResponse added in v0.1.76

type UpgradeWorkFlowUpdateResponse struct {

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

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

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

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

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

UpgradeWorkFlowUpdateResponse Response Object

func (UpgradeWorkFlowUpdateResponse) String added in v0.1.76

type UpgradeWorkflowTaskStatus added in v0.1.76

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

UpgradeWorkflowTaskStatus 集群升级状态: Init: 任务初始状态 Queuing: 任务已进入执行队列 Running: 任务开始执行 Success: 任务执行成功 Failed: 任务执行失败

func (UpgradeWorkflowTaskStatus) MarshalJSON added in v0.1.76

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

func (*UpgradeWorkflowTaskStatus) UnmarshalJSON added in v0.1.76

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

func (UpgradeWorkflowTaskStatus) Value added in v0.1.76

type UpgradeWorkflowTaskStatusEnum added in v0.1.76

type UpgradeWorkflowTaskStatusEnum struct {
	INIT    UpgradeWorkflowTaskStatus
	QUEUING UpgradeWorkflowTaskStatus
	RUNNING UpgradeWorkflowTaskStatus
	SUCCESS UpgradeWorkflowTaskStatus
	FAILED  UpgradeWorkflowTaskStatus
}

func GetUpgradeWorkflowTaskStatusEnum added in v0.1.76

func GetUpgradeWorkflowTaskStatusEnum() UpgradeWorkflowTaskStatusEnum

type UploadChartRequest added in v0.1.70

type UploadChartRequest struct {
	Body *UploadChartRequestBody `json:"body,omitempty" type:"multipart"`
}

UploadChartRequest Request Object

func (UploadChartRequest) String added in v0.1.70

func (o UploadChartRequest) String() string

type UploadChartRequestBody added in v0.1.70

type UploadChartRequestBody struct {

	// 上传模板的配置参数,示例如下:\"{\\\"override\\\":true,\\\"skip_lint\\\":true,\\\"source\\\":\\\"package\\\"}\"  - skip_lint: 是否验证上传的模板 - override: 是否覆盖已存在的模板 - visible: 模板是否可见
	Parameters *def.MultiPart `json:"parameters,omitempty"`

	// 模板包文件
	Content *def.FilePart `json:"content"`
}

func (UploadChartRequestBody) String added in v0.1.70

func (o UploadChartRequestBody) String() string

func (*UploadChartRequestBody) UnmarshalJSON added in v0.1.70

func (o *UploadChartRequestBody) UnmarshalJSON(b []byte) error

type UploadChartResponse added in v0.1.70

type UploadChartResponse struct {

	// 模板ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 模板值
	Values *string `json:"values,omitempty"`

	// 模板翻译资源
	Translate *string `json:"translate,omitempty"`

	// 模板介绍
	Instruction *string `json:"instruction,omitempty"`

	// 模板版本
	Version *string `json:"version,omitempty"`

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

	// 模板的来源
	Source *string `json:"source,omitempty"`

	// 模板的图标链接
	IconUrl *string `json:"icon_url,omitempty"`

	// 是否公开模板
	Public *bool `json:"public,omitempty"`

	// 模板的链接
	ChartUrl *string `json:"chart_url,omitempty"`

	// 创建时间
	CreateAt *string `json:"create_at,omitempty"`

	// 更新时间
	UpdateAt       *string `json:"update_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UploadChartResponse Response Object

func (UploadChartResponse) String added in v0.1.70

func (o UploadChartResponse) 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 added in v0.0.51

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 added in v0.0.51

func (o VirtualSpace) String() string

type Volume added in v0.0.46

type Volume struct {

	// 磁盘大小,单位为GB  - 系统盘取值范围:40~1024 [- 数据盘取值范围:100~32768](tag:hws,hws_hk,sbc,hk_sbc,ctc,cmcc,g42,tm,hk_tm,hk_g42,hcso) [- 第一块数据盘取值范围:100~32768](tag:hcs) [- 其他数据盘取值范围:10~32768](tag:hcs)
	Size int32 `json:"size"`

	// 磁盘类型,取值请参见创建云服务器 中“root_volume字段数据结构说明”。  - SAS:高IO,是指由SAS存储提供资源的磁盘类型。 - SSD:超高IO,是指由SSD存储提供资源的磁盘类型。 - SATA:普通IO,是指由SATA存储提供资源的磁盘类型。EVS已下线SATA磁盘,仅存量节点有此类型的磁盘。 [- ESSD:通用型SSD云硬盘,是指由SSD存储提供资源的磁盘类型。](tag:hws) [- GPSDD:通用型SSD云硬盘,是指由SSD存储提供资源的磁盘类型。](tag:hws) [> 了解不同磁盘类型的详细信息,链接请参见[创建云服务器](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。](tag:hws)
	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 added in v0.0.46

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

type WorkFlowPhase added in v0.1.76

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

WorkFlowPhase 集群升级流程的执行状态: Init: 表示该升级流程中还未有任何任务开始运行 Running: 表示该升级流程中已有任务开始执行 Pending: 表示该升级流程中有任务执行失败 Success: 表示该升级流程中所有任务都已执行成功 Cancel: 表示该升级流程已被取消

func (WorkFlowPhase) MarshalJSON added in v0.1.76

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

func (*WorkFlowPhase) UnmarshalJSON added in v0.1.76

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

func (WorkFlowPhase) Value added in v0.1.76

func (c WorkFlowPhase) Value() string

type WorkFlowPhaseEnum added in v0.1.76

type WorkFlowPhaseEnum struct {
	INIT    WorkFlowPhase
	RUNNING WorkFlowPhase
	PENDING WorkFlowPhase
	SUCCESS WorkFlowPhase
	CANCEL  WorkFlowPhase
}

func GetWorkFlowPhaseEnum added in v0.1.76

func GetWorkFlowPhaseEnum() WorkFlowPhaseEnum

type WorkFlowSpec added in v0.1.76

type WorkFlowSpec struct {

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

	// 本次集群升级的当前版本
	ClusterVersion *string `json:"clusterVersion,omitempty"`

	// 本次集群升级的目标版本
	TargetVersion string `json:"targetVersion"`
}

func (WorkFlowSpec) String added in v0.1.76

func (o WorkFlowSpec) String() string

type WorkFlowStatus added in v0.1.76

type WorkFlowStatus struct {
	Phase *WorkFlowPhase `json:"phase,omitempty"`

	// 升级流程中的各个任务项的执行状态
	PointStatuses *[]PointStatus `json:"pointStatuses,omitempty"`

	// 表示该升级流程的任务执行线路
	LineStatuses *[]LineStatus `json:"lineStatuses,omitempty"`
}

func (WorkFlowStatus) String added in v0.1.76

func (o WorkFlowStatus) String() string

Source Files

Jump to

Keyboard shortcuts

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