apis

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortUpgradeRequest added in v1.8.0

type AbortUpgradeRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

func NewAbortUpgradeRequest added in v1.8.0

func NewAbortUpgradeRequest(
	regionId string,
	clusterId string,
) *AbortUpgradeRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAbortUpgradeRequestWithAllParams added in v1.8.0

func NewAbortUpgradeRequestWithAllParams(
	regionId string,
	clusterId string,
) *AbortUpgradeRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required)

func NewAbortUpgradeRequestWithoutParam added in v1.8.0

func NewAbortUpgradeRequestWithoutParam() *AbortUpgradeRequest

This constructor has better compatible ability when API parameters changed

func (AbortUpgradeRequest) GetRegionId added in v1.8.0

func (r AbortUpgradeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AbortUpgradeRequest) SetClusterId added in v1.8.0

func (r *AbortUpgradeRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*AbortUpgradeRequest) SetRegionId added in v1.8.0

func (r *AbortUpgradeRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type AbortUpgradeResponse added in v1.8.0

type AbortUpgradeResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    AbortUpgradeResult `json:"result"`
}

type AbortUpgradeResult added in v1.8.0

type AbortUpgradeResult struct {
}

type CreateClusterRequest

type CreateClusterRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 名称(同一用户的 cluster 允许重名)  */
	Name string `json:"name"`

	/* 描述 (Optional) */
	Description *string `json:"description"`

	/* 默认开启 basicAuth与clientCertificate最少选择一个 (Optional) */
	BasicAuth *bool `json:"basicAuth"`

	/* 默认开启 clientCertificate (Optional) */
	ClientCertificate *bool `json:"clientCertificate"`

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

	/* 集群所在的az  */
	Azs []string `json:"azs"`

	/* 集群节点组  */
	NodeGroup *kubernetes.NodeGroupSpec `json:"nodeGroup"`

	/* k8s的master的cidr  */
	MasterCidr string `json:"masterCidr"`

	/* 用户的AccessKey,插件调用open-api时的认证凭证  */
	AccessKey string `json:"accessKey"`

	/* 用户的SecretKey,插件调用open-api时的认证凭证  */
	SecretKey string `json:"secretKey"`

	/* deprecated 在addonsConfig中同时指定,将被addonsConfig的设置覆盖 <br>是否启用用户自定义监控 (Optional) */
	UserMetrics *bool `json:"userMetrics"`

	/* 集群组件配置 (Optional) */
	AddonsConfig []kubernetes.AddonConfigSpec `json:"addonsConfig"`
}

func NewCreateClusterRequest

func NewCreateClusterRequest(
	regionId string,
	name string,
	azs []string,
	nodeGroup *kubernetes.NodeGroupSpec,
	masterCidr string,
	accessKey string,
	secretKey string,
) *CreateClusterRequest

* param regionId: 地域 ID (Required) * param name: 名称(同一用户的 cluster 允许重名) (Required) * param azs: 集群所在的az (Required) * param nodeGroup: 集群节点组 (Required) * param masterCidr: k8s的master的cidr (Required) * param accessKey: 用户的AccessKey,插件调用open-api时的认证凭证 (Required) * param secretKey: 用户的SecretKey,插件调用open-api时的认证凭证 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateClusterRequestWithAllParams

func NewCreateClusterRequestWithAllParams(
	regionId string,
	name string,
	description *string,
	basicAuth *bool,
	clientCertificate *bool,
	version *string,
	azs []string,
	nodeGroup *kubernetes.NodeGroupSpec,
	masterCidr string,
	accessKey string,
	secretKey string,
	userMetrics *bool,
	addonsConfig []kubernetes.AddonConfigSpec,
) *CreateClusterRequest

* param regionId: 地域 ID (Required) * param name: 名称(同一用户的 cluster 允许重名) (Required) * param description: 描述 (Optional) * param basicAuth: 默认开启 basicAuth与clientCertificate最少选择一个 (Optional) * param clientCertificate: 默认开启 clientCertificate (Optional) * param version: kubernetes的版本 (Optional) * param azs: 集群所在的az (Required) * param nodeGroup: 集群节点组 (Required) * param masterCidr: k8s的master的cidr (Required) * param accessKey: 用户的AccessKey,插件调用open-api时的认证凭证 (Required) * param secretKey: 用户的SecretKey,插件调用open-api时的认证凭证 (Required) * param userMetrics: deprecated 在addonsConfig中同时指定,将被addonsConfig的设置覆盖 <br>是否启用用户自定义监控 (Optional) * param addonsConfig: 集群组件配置 (Optional)

func NewCreateClusterRequestWithoutParam

func NewCreateClusterRequestWithoutParam() *CreateClusterRequest

This constructor has better compatible ability when API parameters changed

func (CreateClusterRequest) GetRegionId

func (r CreateClusterRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateClusterRequest) SetAccessKey

func (r *CreateClusterRequest) SetAccessKey(accessKey string)

param accessKey: 用户的AccessKey,插件调用open-api时的认证凭证(Required)

func (*CreateClusterRequest) SetAddonsConfig added in v1.12.0

func (r *CreateClusterRequest) SetAddonsConfig(addonsConfig []kubernetes.AddonConfigSpec)

param addonsConfig: 集群组件配置(Optional)

func (*CreateClusterRequest) SetAzs

func (r *CreateClusterRequest) SetAzs(azs []string)

param azs: 集群所在的az(Required)

func (*CreateClusterRequest) SetBasicAuth

func (r *CreateClusterRequest) SetBasicAuth(basicAuth bool)

param basicAuth: 默认开启 basicAuth与clientCertificate最少选择一个(Optional)

func (*CreateClusterRequest) SetClientCertificate

func (r *CreateClusterRequest) SetClientCertificate(clientCertificate bool)

param clientCertificate: 默认开启 clientCertificate(Optional)

func (*CreateClusterRequest) SetDescription

func (r *CreateClusterRequest) SetDescription(description string)

param description: 描述(Optional)

func (*CreateClusterRequest) SetMasterCidr

func (r *CreateClusterRequest) SetMasterCidr(masterCidr string)

param masterCidr: k8s的master的cidr(Required)

func (*CreateClusterRequest) SetName

func (r *CreateClusterRequest) SetName(name string)

param name: 名称(同一用户的 cluster 允许重名)(Required)

func (*CreateClusterRequest) SetNodeGroup

func (r *CreateClusterRequest) SetNodeGroup(nodeGroup *kubernetes.NodeGroupSpec)

param nodeGroup: 集群节点组(Required)

func (*CreateClusterRequest) SetRegionId

func (r *CreateClusterRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*CreateClusterRequest) SetSecretKey

func (r *CreateClusterRequest) SetSecretKey(secretKey string)

param secretKey: 用户的SecretKey,插件调用open-api时的认证凭证(Required)

func (*CreateClusterRequest) SetUserMetrics

func (r *CreateClusterRequest) SetUserMetrics(userMetrics bool)

param userMetrics: deprecated 在addonsConfig中同时指定,将被addonsConfig的设置覆盖 <br>是否启用用户自定义监控(Optional)

func (*CreateClusterRequest) SetVersion

func (r *CreateClusterRequest) SetVersion(version string)

param version: kubernetes的版本(Optional)

type CreateClusterResponse

type CreateClusterResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    CreateClusterResult `json:"result"`
}

type CreateClusterResult

type CreateClusterResult struct {
	ClusterId string `json:"clusterId"`
}

type CreateNodeGroupRequest

type CreateNodeGroupRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 名称(同一用户的 cluster 内部唯一)  */
	Name string `json:"name"`

	/* 描述 (Optional) */
	Description *string `json:"description"`

	/* 工作节点所属的集群  */
	ClusterId string `json:"clusterId"`

	/* 工作节点配置信息  */
	NodeConfig *kubernetes.NodeConfigSpec `json:"nodeConfig"`

	/* 工作节点组的 az,必须为集群az的子集,默认为集群az (Optional) */
	Azs []string `json:"azs"`

	/* 工作节点组初始化大小  */
	InitialNodeCount int `json:"initialNodeCount"`

	/* 工作节点组初始化大小运行的VPC  */
	VpcId string `json:"vpcId"`

	/* 工作节点组的cidr (Optional) */
	NodeCidr *string `json:"nodeCidr"`

	/* 是否开启工作节点组的自动修复,默认关闭 (Optional) */
	AutoRepair *bool `json:"autoRepair"`

	/* 自动伸缩配置 (Optional) */
	CaConfig *kubernetes.CAConfigSpec `json:"caConfig"`

	/* 节点组的网络配置,如果集群的类型customized类型,则必须指定该参数,如果是auto,则不是必须 (Optional) */
	NodeGroupNetwork *kubernetes.NodeGroupNetworkSpec `json:"nodeGroupNetwork"`
}

func NewCreateNodeGroupRequest

func NewCreateNodeGroupRequest(
	regionId string,
	name string,
	clusterId string,
	nodeConfig *kubernetes.NodeConfigSpec,
	initialNodeCount int,
	vpcId string,
) *CreateNodeGroupRequest

* param regionId: 地域 ID (Required) * param name: 名称(同一用户的 cluster 内部唯一) (Required) * param clusterId: 工作节点所属的集群 (Required) * param nodeConfig: 工作节点配置信息 (Required) * param initialNodeCount: 工作节点组初始化大小 (Required) * param vpcId: 工作节点组初始化大小运行的VPC (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateNodeGroupRequestWithAllParams

func NewCreateNodeGroupRequestWithAllParams(
	regionId string,
	name string,
	description *string,
	clusterId string,
	nodeConfig *kubernetes.NodeConfigSpec,
	azs []string,
	initialNodeCount int,
	vpcId string,
	nodeCidr *string,
	autoRepair *bool,
	caConfig *kubernetes.CAConfigSpec,
	nodeGroupNetwork *kubernetes.NodeGroupNetworkSpec,
) *CreateNodeGroupRequest

* param regionId: 地域 ID (Required) * param name: 名称(同一用户的 cluster 内部唯一) (Required) * param description: 描述 (Optional) * param clusterId: 工作节点所属的集群 (Required) * param nodeConfig: 工作节点配置信息 (Required) * param azs: 工作节点组的 az,必须为集群az的子集,默认为集群az (Optional) * param initialNodeCount: 工作节点组初始化大小 (Required) * param vpcId: 工作节点组初始化大小运行的VPC (Required) * param nodeCidr: 工作节点组的cidr (Optional) * param autoRepair: 是否开启工作节点组的自动修复,默认关闭 (Optional) * param caConfig: 自动伸缩配置 (Optional) * param nodeGroupNetwork: 节点组的网络配置,如果集群的类型customized类型,则必须指定该参数,如果是auto,则不是必须 (Optional)

func NewCreateNodeGroupRequestWithoutParam

func NewCreateNodeGroupRequestWithoutParam() *CreateNodeGroupRequest

This constructor has better compatible ability when API parameters changed

func (CreateNodeGroupRequest) GetRegionId

func (r CreateNodeGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateNodeGroupRequest) SetAutoRepair

func (r *CreateNodeGroupRequest) SetAutoRepair(autoRepair bool)

param autoRepair: 是否开启工作节点组的自动修复,默认关闭(Optional)

func (*CreateNodeGroupRequest) SetAzs added in v1.13.0

func (r *CreateNodeGroupRequest) SetAzs(azs []string)

param azs: 工作节点组的 az,必须为集群az的子集,默认为集群az(Optional)

func (*CreateNodeGroupRequest) SetCaConfig added in v1.15.0

func (r *CreateNodeGroupRequest) SetCaConfig(caConfig *kubernetes.CAConfigSpec)

param caConfig: 自动伸缩配置(Optional)

func (*CreateNodeGroupRequest) SetClusterId

func (r *CreateNodeGroupRequest) SetClusterId(clusterId string)

param clusterId: 工作节点所属的集群(Required)

func (*CreateNodeGroupRequest) SetDescription

func (r *CreateNodeGroupRequest) SetDescription(description string)

param description: 描述(Optional)

func (*CreateNodeGroupRequest) SetInitialNodeCount

func (r *CreateNodeGroupRequest) SetInitialNodeCount(initialNodeCount int)

param initialNodeCount: 工作节点组初始化大小(Required)

func (*CreateNodeGroupRequest) SetName

func (r *CreateNodeGroupRequest) SetName(name string)

param name: 名称(同一用户的 cluster 内部唯一)(Required)

func (*CreateNodeGroupRequest) SetNodeCidr

func (r *CreateNodeGroupRequest) SetNodeCidr(nodeCidr string)

param nodeCidr: 工作节点组的cidr(Optional)

func (*CreateNodeGroupRequest) SetNodeConfig

func (r *CreateNodeGroupRequest) SetNodeConfig(nodeConfig *kubernetes.NodeConfigSpec)

param nodeConfig: 工作节点配置信息(Required)

func (*CreateNodeGroupRequest) SetNodeGroupNetwork added in v1.21.0

func (r *CreateNodeGroupRequest) SetNodeGroupNetwork(nodeGroupNetwork *kubernetes.NodeGroupNetworkSpec)

param nodeGroupNetwork: 节点组的网络配置,如果集群的类型customized类型,则必须指定该参数,如果是auto,则不是必须(Optional)

func (*CreateNodeGroupRequest) SetRegionId

func (r *CreateNodeGroupRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*CreateNodeGroupRequest) SetVpcId

func (r *CreateNodeGroupRequest) SetVpcId(vpcId string)

param vpcId: 工作节点组初始化大小运行的VPC(Required)

type CreateNodeGroupResponse

type CreateNodeGroupResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    CreateNodeGroupResult `json:"result"`
}

type CreateNodeGroupResult

type CreateNodeGroupResult struct {
	NodeGroupId string `json:"nodeGroupId"`
}

type DeleteClusterRequest

type DeleteClusterRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

func NewDeleteClusterRequest

func NewDeleteClusterRequest(
	regionId string,
	clusterId string,
) *DeleteClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteClusterRequestWithAllParams

func NewDeleteClusterRequestWithAllParams(
	regionId string,
	clusterId string,
) *DeleteClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required)

func NewDeleteClusterRequestWithoutParam

func NewDeleteClusterRequestWithoutParam() *DeleteClusterRequest

This constructor has better compatible ability when API parameters changed

func (DeleteClusterRequest) GetRegionId

func (r DeleteClusterRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteClusterRequest) SetClusterId

func (r *DeleteClusterRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*DeleteClusterRequest) SetRegionId

func (r *DeleteClusterRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DeleteClusterResponse

type DeleteClusterResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    DeleteClusterResult `json:"result"`
}

type DeleteClusterResult

type DeleteClusterResult struct {
}

type DeleteNodeGroupRequest

type DeleteNodeGroupRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`
}

func NewDeleteNodeGroupRequest

func NewDeleteNodeGroupRequest(
	regionId string,
	nodeGroupId string,
) *DeleteNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteNodeGroupRequestWithAllParams

func NewDeleteNodeGroupRequestWithAllParams(
	regionId string,
	nodeGroupId string,
) *DeleteNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required)

func NewDeleteNodeGroupRequestWithoutParam

func NewDeleteNodeGroupRequestWithoutParam() *DeleteNodeGroupRequest

This constructor has better compatible ability when API parameters changed

func (DeleteNodeGroupRequest) GetRegionId

func (r DeleteNodeGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteNodeGroupRequest) SetNodeGroupId

func (r *DeleteNodeGroupRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*DeleteNodeGroupRequest) SetRegionId

func (r *DeleteNodeGroupRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DeleteNodeGroupResponse

type DeleteNodeGroupResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DeleteNodeGroupResult `json:"result"`
}

type DeleteNodeGroupResult

type DeleteNodeGroupResult struct {
}

type DeleteNodeInstancesRequest added in v1.15.0

type DeleteNodeInstancesRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`

	/* 需要从工作节点组中删除的实例
	- 不可将一个集群中的实例全部删除
	*/
	InstanceIds []string `json:"instanceIds"`
}

func NewDeleteNodeInstancesRequest added in v1.15.0

func NewDeleteNodeInstancesRequest(
	regionId string,
	nodeGroupId string,
	instanceIds []string,
) *DeleteNodeInstancesRequest
  • param regionId: 地域 ID (Required)
  • param nodeGroupId: 工作节点组 ID (Required)
  • param instanceIds: 需要从工作节点组中删除的实例
  • 不可将一个集群中的实例全部删除 (Required) *
  • @Deprecated, not compatible when mandatory parameters changed

func NewDeleteNodeInstancesRequestWithAllParams added in v1.15.0

func NewDeleteNodeInstancesRequestWithAllParams(
	regionId string,
	nodeGroupId string,
	instanceIds []string,
) *DeleteNodeInstancesRequest
  • param regionId: 地域 ID (Required)
  • param nodeGroupId: 工作节点组 ID (Required)
  • param instanceIds: 需要从工作节点组中删除的实例
  • 不可将一个集群中的实例全部删除 (Required)

func NewDeleteNodeInstancesRequestWithoutParam added in v1.15.0

func NewDeleteNodeInstancesRequestWithoutParam() *DeleteNodeInstancesRequest

This constructor has better compatible ability when API parameters changed

func (DeleteNodeInstancesRequest) GetRegionId added in v1.15.0

func (r DeleteNodeInstancesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteNodeInstancesRequest) SetInstanceIds added in v1.15.0

func (r *DeleteNodeInstancesRequest) SetInstanceIds(instanceIds []string)
param instanceIds: 需要从工作节点组中删除的实例

- 不可将一个集群中的实例全部删除 (Required)

func (*DeleteNodeInstancesRequest) SetNodeGroupId added in v1.15.0

func (r *DeleteNodeInstancesRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*DeleteNodeInstancesRequest) SetRegionId added in v1.15.0

func (r *DeleteNodeInstancesRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DeleteNodeInstancesResponse added in v1.15.0

type DeleteNodeInstancesResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DeleteNodeInstancesResult `json:"result"`
}

type DeleteNodeInstancesResult added in v1.15.0

type DeleteNodeInstancesResult struct {
}

type DescribeClusterRequest

type DescribeClusterRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

func NewDescribeClusterRequest

func NewDescribeClusterRequest(
	regionId string,
	clusterId string,
) *DescribeClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeClusterRequestWithAllParams

func NewDescribeClusterRequestWithAllParams(
	regionId string,
	clusterId string,
) *DescribeClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required)

func NewDescribeClusterRequestWithoutParam

func NewDescribeClusterRequestWithoutParam() *DescribeClusterRequest

This constructor has better compatible ability when API parameters changed

func (DescribeClusterRequest) GetRegionId

func (r DescribeClusterRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeClusterRequest) SetClusterId

func (r *DescribeClusterRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*DescribeClusterRequest) SetRegionId

func (r *DescribeClusterRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DescribeClusterResponse

type DescribeClusterResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeClusterResult `json:"result"`
}

type DescribeClusterResult

type DescribeClusterResult struct {
	Cluster kubernetes.Cluster `json:"cluster"`
}

type DescribeClustersRequest

type DescribeClustersRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* name - 集群名称,模糊匹配,仅支持单个
	id - id,支持多个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeClustersRequest

func NewDescribeClustersRequest(
	regionId string,
) *DescribeClustersRequest

* param regionId: 地域 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeClustersRequestWithAllParams

func NewDescribeClustersRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeClustersRequest
  • param regionId: 地域 ID (Required)
  • param pageNumber: 页码;默认为1 (Optional)
  • param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
  • param filters: name - 集群名称,模糊匹配,仅支持单个

id - id,支持多个

(Optional)

func NewDescribeClustersRequestWithoutParam

func NewDescribeClustersRequestWithoutParam() *DescribeClustersRequest

This constructor has better compatible ability when API parameters changed

func (DescribeClustersRequest) GetRegionId

func (r DescribeClustersRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeClustersRequest) SetFilters

func (r *DescribeClustersRequest) SetFilters(filters []common.Filter)
param filters: name - 集群名称,模糊匹配,仅支持单个

id - id,支持多个 (Optional)

func (*DescribeClustersRequest) SetPageNumber

func (r *DescribeClustersRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeClustersRequest) SetPageSize

func (r *DescribeClustersRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeClustersRequest) SetRegionId

func (r *DescribeClustersRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DescribeClustersResponse

type DescribeClustersResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeClustersResult `json:"result"`
}

type DescribeClustersResult

type DescribeClustersResult struct {
	Clusters   []kubernetes.Cluster `json:"clusters"`
	TotalCount int                  `json:"totalCount"`
}

type DescribeNodeGroupRequest

type DescribeNodeGroupRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`
}

func NewDescribeNodeGroupRequest

func NewDescribeNodeGroupRequest(
	regionId string,
	nodeGroupId string,
) *DescribeNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeNodeGroupRequestWithAllParams

func NewDescribeNodeGroupRequestWithAllParams(
	regionId string,
	nodeGroupId string,
) *DescribeNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required)

func NewDescribeNodeGroupRequestWithoutParam

func NewDescribeNodeGroupRequestWithoutParam() *DescribeNodeGroupRequest

This constructor has better compatible ability when API parameters changed

func (DescribeNodeGroupRequest) GetRegionId

func (r DescribeNodeGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeNodeGroupRequest) SetNodeGroupId

func (r *DescribeNodeGroupRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*DescribeNodeGroupRequest) SetRegionId

func (r *DescribeNodeGroupRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DescribeNodeGroupResponse

type DescribeNodeGroupResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeNodeGroupResult `json:"result"`
}

type DescribeNodeGroupResult

type DescribeNodeGroupResult struct {
	NodeGroup kubernetes.NodeGroup `json:"nodeGroup"`
}

type DescribeNodeGroupsRequest

type DescribeNodeGroupsRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* Tag筛选条件 (Optional) */
	Tags []kubernetes.TagFilter `json:"tags"`

	/* name - 节点组名称,模糊匹配,支持单个
	id - 节点组 id,支持多个
	clusterId - 根据 clusterId 查询
	clusterName - 根据 cluster 名称查询
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeNodeGroupsRequest

func NewDescribeNodeGroupsRequest(
	regionId string,
) *DescribeNodeGroupsRequest

* param regionId: 地域 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeNodeGroupsRequestWithAllParams

func NewDescribeNodeGroupsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	tags []kubernetes.TagFilter,
	filters []common.Filter,
) *DescribeNodeGroupsRequest
  • param regionId: 地域 ID (Required)
  • param pageNumber: 页码;默认为1 (Optional)
  • param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
  • param tags: Tag筛选条件 (Optional)
  • param filters: name - 节点组名称,模糊匹配,支持单个

id - 节点组 id,支持多个 clusterId - 根据 clusterId 查询 clusterName - 根据 cluster 名称查询

(Optional)

func NewDescribeNodeGroupsRequestWithoutParam

func NewDescribeNodeGroupsRequestWithoutParam() *DescribeNodeGroupsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeNodeGroupsRequest) GetRegionId

func (r DescribeNodeGroupsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeNodeGroupsRequest) SetFilters

func (r *DescribeNodeGroupsRequest) SetFilters(filters []common.Filter)
param filters: name - 节点组名称,模糊匹配,支持单个

id - 节点组 id,支持多个 clusterId - 根据 clusterId 查询 clusterName - 根据 cluster 名称查询 (Optional)

func (*DescribeNodeGroupsRequest) SetPageNumber

func (r *DescribeNodeGroupsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeNodeGroupsRequest) SetPageSize

func (r *DescribeNodeGroupsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeNodeGroupsRequest) SetRegionId

func (r *DescribeNodeGroupsRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*DescribeNodeGroupsRequest) SetTags added in v1.8.0

func (r *DescribeNodeGroupsRequest) SetTags(tags []kubernetes.TagFilter)

param tags: Tag筛选条件(Optional)

type DescribeNodeGroupsResponse

type DescribeNodeGroupsResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DescribeNodeGroupsResult `json:"result"`
}

type DescribeNodeGroupsResult

type DescribeNodeGroupsResult struct {
	NodeGroups []kubernetes.NodeGroup `json:"nodeGroups"`
	TotalCount int                    `json:"totalCount"`
}

type DescribeNodeVersionRequest added in v1.8.0

type DescribeNodeVersionRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 节点版本  */
	NodeVersion string `json:"nodeVersion"`
}

func NewDescribeNodeVersionRequest added in v1.8.0

func NewDescribeNodeVersionRequest(
	regionId string,
	nodeVersion string,
) *DescribeNodeVersionRequest

* param regionId: Region ID (Required) * param nodeVersion: 节点版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeNodeVersionRequestWithAllParams added in v1.8.0

func NewDescribeNodeVersionRequestWithAllParams(
	regionId string,
	nodeVersion string,
) *DescribeNodeVersionRequest

* param regionId: Region ID (Required) * param nodeVersion: 节点版本 (Required)

func NewDescribeNodeVersionRequestWithoutParam added in v1.8.0

func NewDescribeNodeVersionRequestWithoutParam() *DescribeNodeVersionRequest

This constructor has better compatible ability when API parameters changed

func (DescribeNodeVersionRequest) GetRegionId added in v1.8.0

func (r DescribeNodeVersionRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeNodeVersionRequest) SetNodeVersion added in v1.8.0

func (r *DescribeNodeVersionRequest) SetNodeVersion(nodeVersion string)

param nodeVersion: 节点版本(Required)

func (*DescribeNodeVersionRequest) SetRegionId added in v1.8.0

func (r *DescribeNodeVersionRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeNodeVersionResponse added in v1.8.0

type DescribeNodeVersionResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DescribeNodeVersionResult `json:"result"`
}

type DescribeNodeVersionResult added in v1.8.0

type DescribeNodeVersionResult struct {
	NodeVersion kubernetes.NodeVersion `json:"nodeVersion"`
}

type DescribeProgressRequest added in v1.8.0

type DescribeProgressRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

	/* 节点组 ID (Optional) */
	NodeGroupIds []string `json:"nodeGroupIds"`
}

func NewDescribeProgressRequest added in v1.8.0

func NewDescribeProgressRequest(
	regionId string,
	clusterId string,
) *DescribeProgressRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProgressRequestWithAllParams added in v1.8.0

func NewDescribeProgressRequestWithAllParams(
	regionId string,
	clusterId string,
	nodeGroupIds []string,
) *DescribeProgressRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param nodeGroupIds: 节点组 ID (Optional)

func NewDescribeProgressRequestWithoutParam added in v1.8.0

func NewDescribeProgressRequestWithoutParam() *DescribeProgressRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProgressRequest) GetRegionId added in v1.8.0

func (r DescribeProgressRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeProgressRequest) SetClusterId added in v1.8.0

func (r *DescribeProgressRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*DescribeProgressRequest) SetNodeGroupIds added in v1.8.0

func (r *DescribeProgressRequest) SetNodeGroupIds(nodeGroupIds []string)

param nodeGroupIds: 节点组 ID(Optional)

func (*DescribeProgressRequest) SetRegionId added in v1.8.0

func (r *DescribeProgressRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type DescribeProgressResponse added in v1.8.0

type DescribeProgressResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeProgressResult `json:"result"`
}

type DescribeProgressResult added in v1.8.0

type DescribeProgressResult struct {
	MasterProgress      kubernetes.MasterProgress      `json:"masterProgress"`
	NodeGroupProgresses []kubernetes.NodeGroupProgress `json:"nodeGroupProgresses"`
}

type DescribeQuotasRequest

type DescribeQuotasRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* resourceTypes - 资源类型,暂时只支持[kubernetes]
	(Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeQuotasRequest

func NewDescribeQuotasRequest(
	regionId string,
) *DescribeQuotasRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeQuotasRequestWithAllParams

func NewDescribeQuotasRequestWithAllParams(
	regionId string,
	filters []common.Filter,
) *DescribeQuotasRequest

* param regionId: Region ID (Required) * param filters: resourceTypes - 资源类型,暂时只支持[kubernetes] (Optional)

func NewDescribeQuotasRequestWithoutParam

func NewDescribeQuotasRequestWithoutParam() *DescribeQuotasRequest

This constructor has better compatible ability when API parameters changed

func (DescribeQuotasRequest) GetRegionId

func (r DescribeQuotasRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeQuotasRequest) SetFilters

func (r *DescribeQuotasRequest) SetFilters(filters []common.Filter)
param filters: resourceTypes - 资源类型,暂时只支持[kubernetes]

(Optional)

func (*DescribeQuotasRequest) SetRegionId

func (r *DescribeQuotasRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeQuotasResponse

type DescribeQuotasResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DescribeQuotasResult `json:"result"`
}

type DescribeQuotasResult

type DescribeQuotasResult struct {
	Quotas []kubernetes.Quota `json:"quotas"`
}

type DescribeServerConfigRequest

type DescribeServerConfigRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`
}

func NewDescribeServerConfigRequest

func NewDescribeServerConfigRequest(
	regionId string,
) *DescribeServerConfigRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeServerConfigRequestWithAllParams

func NewDescribeServerConfigRequestWithAllParams(
	regionId string,
) *DescribeServerConfigRequest

* param regionId: Region ID (Required)

func NewDescribeServerConfigRequestWithoutParam

func NewDescribeServerConfigRequestWithoutParam() *DescribeServerConfigRequest

This constructor has better compatible ability when API parameters changed

func (DescribeServerConfigRequest) GetRegionId

func (r DescribeServerConfigRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeServerConfigRequest) SetRegionId

func (r *DescribeServerConfigRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeServerConfigResponse

type DescribeServerConfigResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeServerConfigResult `json:"result"`
}

type DescribeServerConfigResult

type DescribeServerConfigResult struct {
	ServerConfig kubernetes.ServerConfig `json:"serverConfig"`
}

type DescribeUpgradableMasterVersionsRequest added in v1.8.0

type DescribeUpgradableMasterVersionsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

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

func NewDescribeUpgradableMasterVersionsRequest added in v1.8.0

func NewDescribeUpgradableMasterVersionsRequest(
	regionId string,
	clusterId string,
) *DescribeUpgradableMasterVersionsRequest

* param regionId: Region ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeUpgradableMasterVersionsRequestWithAllParams added in v1.8.0

func NewDescribeUpgradableMasterVersionsRequestWithAllParams(
	regionId string,
	clusterId string,
) *DescribeUpgradableMasterVersionsRequest

* param regionId: Region ID (Required) * param clusterId: 集群 ID (Required)

func NewDescribeUpgradableMasterVersionsRequestWithoutParam added in v1.8.0

func NewDescribeUpgradableMasterVersionsRequestWithoutParam() *DescribeUpgradableMasterVersionsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeUpgradableMasterVersionsRequest) GetRegionId added in v1.8.0

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeUpgradableMasterVersionsRequest) SetClusterId added in v1.8.0

func (r *DescribeUpgradableMasterVersionsRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*DescribeUpgradableMasterVersionsRequest) SetRegionId added in v1.8.0

func (r *DescribeUpgradableMasterVersionsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeUpgradableMasterVersionsResponse added in v1.8.0

type DescribeUpgradableMasterVersionsResponse struct {
	RequestID string                                 `json:"requestId"`
	Error     core.ErrorResponse                     `json:"error"`
	Result    DescribeUpgradableMasterVersionsResult `json:"result"`
}

type DescribeUpgradableMasterVersionsResult added in v1.8.0

type DescribeUpgradableMasterVersionsResult struct {
	MasterVersions []kubernetes.MasterVersion `json:"masterVersions"`
}

type DescribeUpgradableNodeVersionsRequest added in v1.8.0

type DescribeUpgradableNodeVersionsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

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

	/* 节点组 id (Optional) */
	NodeGroupIds []string `json:"nodeGroupIds"`
}

func NewDescribeUpgradableNodeVersionsRequest added in v1.8.0

func NewDescribeUpgradableNodeVersionsRequest(
	regionId string,
	clusterId string,
) *DescribeUpgradableNodeVersionsRequest

* param regionId: Region ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeUpgradableNodeVersionsRequestWithAllParams added in v1.8.0

func NewDescribeUpgradableNodeVersionsRequestWithAllParams(
	regionId string,
	clusterId string,
	nodeGroupIds []string,
) *DescribeUpgradableNodeVersionsRequest

* param regionId: Region ID (Required) * param clusterId: 集群 ID (Required) * param nodeGroupIds: 节点组 id (Optional)

func NewDescribeUpgradableNodeVersionsRequestWithoutParam added in v1.8.0

func NewDescribeUpgradableNodeVersionsRequestWithoutParam() *DescribeUpgradableNodeVersionsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeUpgradableNodeVersionsRequest) GetRegionId added in v1.8.0

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeUpgradableNodeVersionsRequest) SetClusterId added in v1.8.0

func (r *DescribeUpgradableNodeVersionsRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*DescribeUpgradableNodeVersionsRequest) SetNodeGroupIds added in v1.8.0

func (r *DescribeUpgradableNodeVersionsRequest) SetNodeGroupIds(nodeGroupIds []string)

param nodeGroupIds: 节点组 id(Optional)

func (*DescribeUpgradableNodeVersionsRequest) SetRegionId added in v1.8.0

func (r *DescribeUpgradableNodeVersionsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeUpgradableNodeVersionsResponse added in v1.8.0

type DescribeUpgradableNodeVersionsResponse struct {
	RequestID string                               `json:"requestId"`
	Error     core.ErrorResponse                   `json:"error"`
	Result    DescribeUpgradableNodeVersionsResult `json:"result"`
}

type DescribeUpgradableNodeVersionsResult added in v1.8.0

type DescribeUpgradableNodeVersionsResult struct {
	NdoeVersions []kubernetes.NodeVersion `json:"ndoeVersions"`
}

type DescribeVersionsRequest

type DescribeVersionsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 集群的大版本,如 1.12.4-jcs.1 (Optional) */
	MasterVersion *string `json:"masterVersion"`
}

func NewDescribeVersionsRequest

func NewDescribeVersionsRequest(
	regionId string,
) *DescribeVersionsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeVersionsRequestWithAllParams

func NewDescribeVersionsRequestWithAllParams(
	regionId string,
	masterVersion *string,
) *DescribeVersionsRequest

* param regionId: Region ID (Required) * param masterVersion: 集群的大版本,如 1.12.4-jcs.1 (Optional)

func NewDescribeVersionsRequestWithoutParam

func NewDescribeVersionsRequestWithoutParam() *DescribeVersionsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeVersionsRequest) GetRegionId

func (r DescribeVersionsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeVersionsRequest) SetMasterVersion

func (r *DescribeVersionsRequest) SetMasterVersion(masterVersion string)

param masterVersion: 集群的大版本,如 1.12.4-jcs.1(Optional)

func (*DescribeVersionsRequest) SetRegionId

func (r *DescribeVersionsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeVersionsResponse

type DescribeVersionsResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeVersionsResult `json:"result"`
}

type DescribeVersionsResult

type DescribeVersionsResult struct {
	MasterVersions []kubernetes.MasterVersion `json:"masterVersions"`
}

type ModifyClusterRequest

type ModifyClusterRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

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

	/* 集群描述 (Optional) */
	Description *string `json:"description"`
}

func NewModifyClusterRequest

func NewModifyClusterRequest(
	regionId string,
	clusterId string,
) *ModifyClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyClusterRequestWithAllParams

func NewModifyClusterRequestWithAllParams(
	regionId string,
	clusterId string,
	name *string,
	description *string,
) *ModifyClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param name: 集群名称 (Optional) * param description: 集群描述 (Optional)

func NewModifyClusterRequestWithoutParam

func NewModifyClusterRequestWithoutParam() *ModifyClusterRequest

This constructor has better compatible ability when API parameters changed

func (ModifyClusterRequest) GetRegionId

func (r ModifyClusterRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyClusterRequest) SetClusterId

func (r *ModifyClusterRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*ModifyClusterRequest) SetDescription

func (r *ModifyClusterRequest) SetDescription(description string)

param description: 集群描述(Optional)

func (*ModifyClusterRequest) SetName

func (r *ModifyClusterRequest) SetName(name string)

param name: 集群名称(Optional)

func (*ModifyClusterRequest) SetRegionId

func (r *ModifyClusterRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type ModifyClusterResponse

type ModifyClusterResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    ModifyClusterResult `json:"result"`
}

type ModifyClusterResult

type ModifyClusterResult struct {
}

type ModifyNodeGroupRequest

type ModifyNodeGroupRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`

	/* 工作节点组名称 (Optional) */
	Name *string `json:"name"`

	/* 工作节点组描述 (Optional) */
	Description *string `json:"description"`
}

func NewModifyNodeGroupRequest

func NewModifyNodeGroupRequest(
	regionId string,
	nodeGroupId string,
) *ModifyNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyNodeGroupRequestWithAllParams

func NewModifyNodeGroupRequestWithAllParams(
	regionId string,
	nodeGroupId string,
	name *string,
	description *string,
) *ModifyNodeGroupRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param name: 工作节点组名称 (Optional) * param description: 工作节点组描述 (Optional)

func NewModifyNodeGroupRequestWithoutParam

func NewModifyNodeGroupRequestWithoutParam() *ModifyNodeGroupRequest

This constructor has better compatible ability when API parameters changed

func (ModifyNodeGroupRequest) GetRegionId

func (r ModifyNodeGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyNodeGroupRequest) SetDescription

func (r *ModifyNodeGroupRequest) SetDescription(description string)

param description: 工作节点组描述(Optional)

func (*ModifyNodeGroupRequest) SetName

func (r *ModifyNodeGroupRequest) SetName(name string)

param name: 工作节点组名称(Optional)

func (*ModifyNodeGroupRequest) SetNodeGroupId

func (r *ModifyNodeGroupRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*ModifyNodeGroupRequest) SetRegionId

func (r *ModifyNodeGroupRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type ModifyNodeGroupResponse

type ModifyNodeGroupResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    ModifyNodeGroupResult `json:"result"`
}

type ModifyNodeGroupResult

type ModifyNodeGroupResult struct {
}

type RollbackNodeGroupUpgradeRequest added in v1.8.0

type RollbackNodeGroupUpgradeRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`
}

func NewRollbackNodeGroupUpgradeRequest added in v1.8.0

func NewRollbackNodeGroupUpgradeRequest(
	regionId string,
	nodeGroupId string,
) *RollbackNodeGroupUpgradeRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewRollbackNodeGroupUpgradeRequestWithAllParams added in v1.8.0

func NewRollbackNodeGroupUpgradeRequestWithAllParams(
	regionId string,
	nodeGroupId string,
) *RollbackNodeGroupUpgradeRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required)

func NewRollbackNodeGroupUpgradeRequestWithoutParam added in v1.8.0

func NewRollbackNodeGroupUpgradeRequestWithoutParam() *RollbackNodeGroupUpgradeRequest

This constructor has better compatible ability when API parameters changed

func (RollbackNodeGroupUpgradeRequest) GetRegionId added in v1.8.0

func (r RollbackNodeGroupUpgradeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*RollbackNodeGroupUpgradeRequest) SetNodeGroupId added in v1.8.0

func (r *RollbackNodeGroupUpgradeRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*RollbackNodeGroupUpgradeRequest) SetRegionId added in v1.8.0

func (r *RollbackNodeGroupUpgradeRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type RollbackNodeGroupUpgradeResponse added in v1.8.0

type RollbackNodeGroupUpgradeResponse struct {
	RequestID string                         `json:"requestId"`
	Error     core.ErrorResponse             `json:"error"`
	Result    RollbackNodeGroupUpgradeResult `json:"result"`
}

type RollbackNodeGroupUpgradeResult added in v1.8.0

type RollbackNodeGroupUpgradeResult struct {
}

type SetAddonsRequest added in v1.12.0

type SetAddonsRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

	/* 需要设置的集群组件配置  */
	AddonsConfig []kubernetes.AddonConfigSpec `json:"addonsConfig"`
}

func NewSetAddonsRequest added in v1.12.0

func NewSetAddonsRequest(
	regionId string,
	clusterId string,
	addonsConfig []kubernetes.AddonConfigSpec,
) *SetAddonsRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param addonsConfig: 需要设置的集群组件配置 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetAddonsRequestWithAllParams added in v1.12.0

func NewSetAddonsRequestWithAllParams(
	regionId string,
	clusterId string,
	addonsConfig []kubernetes.AddonConfigSpec,
) *SetAddonsRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param addonsConfig: 需要设置的集群组件配置 (Required)

func NewSetAddonsRequestWithoutParam added in v1.12.0

func NewSetAddonsRequestWithoutParam() *SetAddonsRequest

This constructor has better compatible ability when API parameters changed

func (SetAddonsRequest) GetRegionId added in v1.12.0

func (r SetAddonsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetAddonsRequest) SetAddonsConfig added in v1.12.0

func (r *SetAddonsRequest) SetAddonsConfig(addonsConfig []kubernetes.AddonConfigSpec)

param addonsConfig: 需要设置的集群组件配置(Required)

func (*SetAddonsRequest) SetClusterId added in v1.12.0

func (r *SetAddonsRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*SetAddonsRequest) SetRegionId added in v1.12.0

func (r *SetAddonsRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetAddonsResponse added in v1.12.0

type SetAddonsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    SetAddonsResult    `json:"result"`
}

type SetAddonsResult added in v1.12.0

type SetAddonsResult struct {
}

type SetAutoRepairRequest

type SetAutoRepairRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`

	/* 是否开启自动修复  */
	Enabled bool `json:"enabled"`
}

func NewSetAutoRepairRequest

func NewSetAutoRepairRequest(
	regionId string,
	nodeGroupId string,
	enabled bool,
) *SetAutoRepairRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param enabled: 是否开启自动修复 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetAutoRepairRequestWithAllParams

func NewSetAutoRepairRequestWithAllParams(
	regionId string,
	nodeGroupId string,
	enabled bool,
) *SetAutoRepairRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param enabled: 是否开启自动修复 (Required)

func NewSetAutoRepairRequestWithoutParam

func NewSetAutoRepairRequestWithoutParam() *SetAutoRepairRequest

This constructor has better compatible ability when API parameters changed

func (SetAutoRepairRequest) GetRegionId

func (r SetAutoRepairRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetAutoRepairRequest) SetEnabled

func (r *SetAutoRepairRequest) SetEnabled(enabled bool)

param enabled: 是否开启自动修复(Required)

func (*SetAutoRepairRequest) SetNodeGroupId

func (r *SetAutoRepairRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*SetAutoRepairRequest) SetRegionId

func (r *SetAutoRepairRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetAutoRepairResponse

type SetAutoRepairResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    SetAutoRepairResult `json:"result"`
}

type SetAutoRepairResult

type SetAutoRepairResult struct {
}

type SetAutoUpgradeRequest added in v1.8.0

type SetAutoUpgradeRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

	/* 开启或者关闭集群自动升级,开启时必须指定 maintenancePolicy  */
	AutoUpgrade bool `json:"autoUpgrade"`

	/* 开启集群自动升级, 必须配置集群维护策略 (Optional) */
	MaintenanceWindow *kubernetes.MaintenanceWindowSpec `json:"maintenanceWindow"`
}

func NewSetAutoUpgradeRequest added in v1.8.0

func NewSetAutoUpgradeRequest(
	regionId string,
	clusterId string,
	autoUpgrade bool,
) *SetAutoUpgradeRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param autoUpgrade: 开启或者关闭集群自动升级,开启时必须指定 maintenancePolicy (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetAutoUpgradeRequestWithAllParams added in v1.8.0

func NewSetAutoUpgradeRequestWithAllParams(
	regionId string,
	clusterId string,
	autoUpgrade bool,
	maintenanceWindow *kubernetes.MaintenanceWindowSpec,
) *SetAutoUpgradeRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param autoUpgrade: 开启或者关闭集群自动升级,开启时必须指定 maintenancePolicy (Required) * param maintenanceWindow: 开启集群自动升级, 必须配置集群维护策略 (Optional)

func NewSetAutoUpgradeRequestWithoutParam added in v1.8.0

func NewSetAutoUpgradeRequestWithoutParam() *SetAutoUpgradeRequest

This constructor has better compatible ability when API parameters changed

func (SetAutoUpgradeRequest) GetRegionId added in v1.8.0

func (r SetAutoUpgradeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetAutoUpgradeRequest) SetAutoUpgrade added in v1.8.0

func (r *SetAutoUpgradeRequest) SetAutoUpgrade(autoUpgrade bool)

param autoUpgrade: 开启或者关闭集群自动升级,开启时必须指定 maintenancePolicy(Required)

func (*SetAutoUpgradeRequest) SetClusterId added in v1.8.0

func (r *SetAutoUpgradeRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*SetAutoUpgradeRequest) SetMaintenanceWindow added in v1.8.0

func (r *SetAutoUpgradeRequest) SetMaintenanceWindow(maintenanceWindow *kubernetes.MaintenanceWindowSpec)

param maintenanceWindow: 开启集群自动升级, 必须配置集群维护策略(Optional)

func (*SetAutoUpgradeRequest) SetRegionId added in v1.8.0

func (r *SetAutoUpgradeRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetAutoUpgradeResponse added in v1.8.0

type SetAutoUpgradeResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    SetAutoUpgradeResult `json:"result"`
}

type SetAutoUpgradeResult added in v1.8.0

type SetAutoUpgradeResult struct {
}

type SetNodeGroupCARequest added in v1.15.0

type SetNodeGroupCARequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`

	/* 自动伸缩配置,其中 enable 必须指定  */
	CaConfig *kubernetes.CAConfigSpec `json:"caConfig"`
}

func NewSetNodeGroupCARequest added in v1.15.0

func NewSetNodeGroupCARequest(
	regionId string,
	nodeGroupId string,
	caConfig *kubernetes.CAConfigSpec,
) *SetNodeGroupCARequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param caConfig: 自动伸缩配置,其中 enable 必须指定 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetNodeGroupCARequestWithAllParams added in v1.15.0

func NewSetNodeGroupCARequestWithAllParams(
	regionId string,
	nodeGroupId string,
	caConfig *kubernetes.CAConfigSpec,
) *SetNodeGroupCARequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param caConfig: 自动伸缩配置,其中 enable 必须指定 (Required)

func NewSetNodeGroupCARequestWithoutParam added in v1.15.0

func NewSetNodeGroupCARequestWithoutParam() *SetNodeGroupCARequest

This constructor has better compatible ability when API parameters changed

func (SetNodeGroupCARequest) GetRegionId added in v1.15.0

func (r SetNodeGroupCARequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetNodeGroupCARequest) SetCaConfig added in v1.15.0

func (r *SetNodeGroupCARequest) SetCaConfig(caConfig *kubernetes.CAConfigSpec)

param caConfig: 自动伸缩配置,其中 enable 必须指定(Required)

func (*SetNodeGroupCARequest) SetNodeGroupId added in v1.15.0

func (r *SetNodeGroupCARequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*SetNodeGroupCARequest) SetRegionId added in v1.15.0

func (r *SetNodeGroupCARequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetNodeGroupCAResponse added in v1.15.0

type SetNodeGroupCAResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    SetNodeGroupCAResult `json:"result"`
}

type SetNodeGroupCAResult added in v1.15.0

type SetNodeGroupCAResult struct {
}

type SetNodeGroupSizeRequest

type SetNodeGroupSizeRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

	/* 工作节点组 ID  */
	NodeGroupId string `json:"nodeGroupId"`

	/* 预期目标节点数量  */
	ExpectCount int `json:"expectCount"`
}

func NewSetNodeGroupSizeRequest

func NewSetNodeGroupSizeRequest(
	regionId string,
	nodeGroupId string,
	expectCount int,
) *SetNodeGroupSizeRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param expectCount: 预期目标节点数量 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetNodeGroupSizeRequestWithAllParams

func NewSetNodeGroupSizeRequestWithAllParams(
	regionId string,
	nodeGroupId string,
	expectCount int,
) *SetNodeGroupSizeRequest

* param regionId: 地域 ID (Required) * param nodeGroupId: 工作节点组 ID (Required) * param expectCount: 预期目标节点数量 (Required)

func NewSetNodeGroupSizeRequestWithoutParam

func NewSetNodeGroupSizeRequestWithoutParam() *SetNodeGroupSizeRequest

This constructor has better compatible ability when API parameters changed

func (SetNodeGroupSizeRequest) GetRegionId

func (r SetNodeGroupSizeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetNodeGroupSizeRequest) SetExpectCount

func (r *SetNodeGroupSizeRequest) SetExpectCount(expectCount int)

param expectCount: 预期目标节点数量(Required)

func (*SetNodeGroupSizeRequest) SetNodeGroupId

func (r *SetNodeGroupSizeRequest) SetNodeGroupId(nodeGroupId string)

param nodeGroupId: 工作节点组 ID(Required)

func (*SetNodeGroupSizeRequest) SetRegionId

func (r *SetNodeGroupSizeRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetNodeGroupSizeResponse

type SetNodeGroupSizeResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    SetNodeGroupSizeResult `json:"result"`
}

type SetNodeGroupSizeResult

type SetNodeGroupSizeResult struct {
}

type SetUserMetricsRequest

type SetUserMetricsRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

	/* 是否开启自定义监控 (Optional) */
	Enabled *bool `json:"enabled"`
}

func NewSetUserMetricsRequest

func NewSetUserMetricsRequest(
	regionId string,
	clusterId string,
) *SetUserMetricsRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSetUserMetricsRequestWithAllParams

func NewSetUserMetricsRequestWithAllParams(
	regionId string,
	clusterId string,
	enabled *bool,
) *SetUserMetricsRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param enabled: 是否开启自定义监控 (Optional)

func NewSetUserMetricsRequestWithoutParam

func NewSetUserMetricsRequestWithoutParam() *SetUserMetricsRequest

This constructor has better compatible ability when API parameters changed

func (SetUserMetricsRequest) GetRegionId

func (r SetUserMetricsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetUserMetricsRequest) SetClusterId

func (r *SetUserMetricsRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*SetUserMetricsRequest) SetEnabled

func (r *SetUserMetricsRequest) SetEnabled(enabled bool)

param enabled: 是否开启自定义监控(Optional)

func (*SetUserMetricsRequest) SetRegionId

func (r *SetUserMetricsRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

type SetUserMetricsResponse

type SetUserMetricsResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    SetUserMetricsResult `json:"result"`
}

type SetUserMetricsResult

type SetUserMetricsResult struct {
}

type UpgradeClusterRequest added in v1.8.0

type UpgradeClusterRequest struct {
	core.JDCloudRequest

	/* 地域 ID  */
	RegionId string `json:"regionId"`

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

	/* 升级范围  */
	Scope string `json:"scope"`

	/* 节点组 id (Optional) */
	NodeGroupIds []string `json:"nodeGroupIds"`

	/* 指定升级到的版本  */
	Version string `json:"version"`
}

func NewUpgradeClusterRequest added in v1.8.0

func NewUpgradeClusterRequest(
	regionId string,
	clusterId string,
	scope string,
	version string,
) *UpgradeClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param scope: 升级范围 (Required) * param version: 指定升级到的版本 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpgradeClusterRequestWithAllParams added in v1.8.0

func NewUpgradeClusterRequestWithAllParams(
	regionId string,
	clusterId string,
	scope string,
	nodeGroupIds []string,
	version string,
) *UpgradeClusterRequest

* param regionId: 地域 ID (Required) * param clusterId: 集群 ID (Required) * param scope: 升级范围 (Required) * param nodeGroupIds: 节点组 id (Optional) * param version: 指定升级到的版本 (Required)

func NewUpgradeClusterRequestWithoutParam added in v1.8.0

func NewUpgradeClusterRequestWithoutParam() *UpgradeClusterRequest

This constructor has better compatible ability when API parameters changed

func (UpgradeClusterRequest) GetRegionId added in v1.8.0

func (r UpgradeClusterRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpgradeClusterRequest) SetClusterId added in v1.8.0

func (r *UpgradeClusterRequest) SetClusterId(clusterId string)

param clusterId: 集群 ID(Required)

func (*UpgradeClusterRequest) SetNodeGroupIds added in v1.8.0

func (r *UpgradeClusterRequest) SetNodeGroupIds(nodeGroupIds []string)

param nodeGroupIds: 节点组 id(Optional)

func (*UpgradeClusterRequest) SetRegionId added in v1.8.0

func (r *UpgradeClusterRequest) SetRegionId(regionId string)

param regionId: 地域 ID(Required)

func (*UpgradeClusterRequest) SetScope added in v1.8.0

func (r *UpgradeClusterRequest) SetScope(scope string)

param scope: 升级范围(Required)

func (*UpgradeClusterRequest) SetVersion added in v1.12.0

func (r *UpgradeClusterRequest) SetVersion(version string)

param version: 指定升级到的版本(Required)

type UpgradeClusterResponse added in v1.8.0

type UpgradeClusterResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    UpgradeClusterResult `json:"result"`
}

type UpgradeClusterResult added in v1.8.0

type UpgradeClusterResult struct {
}

Jump to

Keyboard shortcuts

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