v20220501

package
v3.0.1093+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Operation failed.
	FAILEDOPERATION = "FailedOperation"

	// Internal error.
	INTERNALERROR = "InternalError"

	// db error.
	INTERNALERROR_DB = "InternalError.Db"

	// DB error.
	INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows"

	// Record not found.
	INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound"

	// Initializing Master failed.
	INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed"

	// Param error.
	INTERNALERROR_PARAM = "InternalError.Param"

	// Public clusters do not support node expansion.
	INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport"

	// Internal error.
	INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal"

	// Unknown internal error.
	INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"

	// Parameter error.
	INVALIDPARAMETER = "InvalidParameter"

	// The cluster ID does not exist.
	INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound"

	// Parameter error.
	INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

	// Operation denied.
	OPERATIONDENIED = "OperationDenied"

	// The resource is occupied.
	RESOURCEINUSE = "ResourceInUse"

	// The resource does not exist.
	RESOURCENOTFOUND = "ResourceNotFound"

	// The cluster does not exist.
	RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"

	// The cluster status does not support this operation.
	RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"
)
View Source
const APIVersion = "2022-05-01"

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	// Name in the map list
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Value in the map list
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type AutoUpgradeOptions

type AutoUpgradeOptions struct {
	// Automatic upgrade start time
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoUpgradeStartTime *string `json:"AutoUpgradeStartTime,omitnil,omitempty" name:"AutoUpgradeStartTime"`

	// Automatic upgrade duration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Duration *string `json:"Duration,omitnil,omitempty" name:"Duration"`

	// Ops date
	// Note: This field may return "null", indicating that no valid value can be obtained.
	WeeklyPeriod []*string `json:"WeeklyPeriod,omitnil,omitempty" name:"WeeklyPeriod"`
}

type AutoscalingAdded

type AutoscalingAdded struct {
	// Number of nodes being added
	Joining *int64 `json:"Joining,omitnil,omitempty" name:"Joining"`

	// Number of nodes being initialized
	Initializing *int64 `json:"Initializing,omitnil,omitempty" name:"Initializing"`

	// Number of normal nodes
	Normal *int64 `json:"Normal,omitnil,omitempty" name:"Normal"`

	// Total number of nodes
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateHealthCheckPolicy

func (c *Client) CreateHealthCheckPolicy(request *CreateHealthCheckPolicyRequest) (response *CreateHealthCheckPolicyResponse, err error)

CreateHealthCheckPolicy This API is used to create a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) CreateHealthCheckPolicyWithContext

func (c *Client) CreateHealthCheckPolicyWithContext(ctx context.Context, request *CreateHealthCheckPolicyRequest) (response *CreateHealthCheckPolicyResponse, err error)

CreateHealthCheckPolicy This API is used to create a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) CreateNodePool

func (c *Client) CreateNodePool(request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)

CreateNodePool This API is used to create a TKE node pool

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) CreateNodePoolWithContext

func (c *Client) CreateNodePoolWithContext(ctx context.Context, request *CreateNodePoolRequest) (response *CreateNodePoolResponse, err error)

CreateNodePool This API is used to create a TKE node pool

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DeleteHealthCheckPolicy

func (c *Client) DeleteHealthCheckPolicy(request *DeleteHealthCheckPolicyRequest) (response *DeleteHealthCheckPolicyResponse, err error)

DeleteHealthCheckPolicy This API is used to delete a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DeleteHealthCheckPolicyWithContext

func (c *Client) DeleteHealthCheckPolicyWithContext(ctx context.Context, request *DeleteHealthCheckPolicyRequest) (response *DeleteHealthCheckPolicyResponse, err error)

DeleteHealthCheckPolicy This API is used to delete a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DeleteNodePool

func (c *Client) DeleteNodePool(request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)

DeleteNodePool This API is used to delete a TKE node pool.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DeleteNodePoolWithContext

func (c *Client) DeleteNodePoolWithContext(ctx context.Context, request *DeleteNodePoolRequest) (response *DeleteNodePoolResponse, err error)

DeleteNodePool This API is used to delete a TKE node pool.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeClusterInstances

func (c *Client) DescribeClusterInstances(request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)

DescribeClusterInstances This API is used to query the information of node instances in a cluster.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INTERNALERROR_DB = "InternalError.Db"
INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows"
INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed"
INTERNALERROR_PARAM = "InternalError.Param"
INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport"
INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal"
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"

func (*Client) DescribeClusterInstancesWithContext

func (c *Client) DescribeClusterInstancesWithContext(ctx context.Context, request *DescribeClusterInstancesRequest) (response *DescribeClusterInstancesResponse, err error)

DescribeClusterInstances This API is used to query the information of node instances in a cluster.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INTERNALERROR_DB = "InternalError.Db"
INTERNALERROR_DBAFFECTIVEDROWS = "InternalError.DbAffectivedRows"
INTERNALERROR_INITMASTERFAILED = "InternalError.InitMasterFailed"
INTERNALERROR_PARAM = "InternalError.Param"
INTERNALERROR_PUBLICCLUSTEROPNOTSUPPORT = "InternalError.PublicClusterOpNotSupport"
INTERNALERROR_UNEXCEPTEDINTERNAL = "InternalError.UnexceptedInternal"
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
INVALIDPARAMETER_CLUSTERNOTFOUND = "InvalidParameter.ClusterNotFound"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"

func (*Client) DescribeHealthCheckPolicies

func (c *Client) DescribeHealthCheckPolicies(request *DescribeHealthCheckPoliciesRequest) (response *DescribeHealthCheckPoliciesResponse, err error)

DescribeHealthCheckPolicies This API is used to query a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DescribeHealthCheckPoliciesWithContext

func (c *Client) DescribeHealthCheckPoliciesWithContext(ctx context.Context, request *DescribeHealthCheckPoliciesRequest) (response *DescribeHealthCheckPoliciesResponse, err error)

DescribeHealthCheckPolicies This API is used to query a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DescribeHealthCheckPolicyBindings

func (c *Client) DescribeHealthCheckPolicyBindings(request *DescribeHealthCheckPolicyBindingsRequest) (response *DescribeHealthCheckPolicyBindingsResponse, err error)

DescribeHealthCheckPolicyBindings This API is used to query a health check policy binding relationship.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DescribeHealthCheckPolicyBindingsWithContext

func (c *Client) DescribeHealthCheckPolicyBindingsWithContext(ctx context.Context, request *DescribeHealthCheckPolicyBindingsRequest) (response *DescribeHealthCheckPolicyBindingsResponse, err error)

DescribeHealthCheckPolicyBindings This API is used to query a health check policy binding relationship.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) DescribeHealthCheckTemplate

func (c *Client) DescribeHealthCheckTemplate(request *DescribeHealthCheckTemplateRequest) (response *DescribeHealthCheckTemplateResponse, err error)

DescribeHealthCheckTemplate This API is used to query a health check policy template.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"

func (*Client) DescribeHealthCheckTemplateWithContext

func (c *Client) DescribeHealthCheckTemplateWithContext(ctx context.Context, request *DescribeHealthCheckTemplateRequest) (response *DescribeHealthCheckTemplateResponse, err error)

DescribeHealthCheckTemplate This API is used to query a health check policy template.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"

func (*Client) DescribeNodePools

func (c *Client) DescribeNodePools(request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)

DescribeNodePools This API is used to query a TKE node pool list.

error code that may be returned:

INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound"
INTERNALERROR_PARAM = "InternalError.Param"
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"

func (*Client) DescribeNodePoolsWithContext

func (c *Client) DescribeNodePoolsWithContext(ctx context.Context, request *DescribeNodePoolsRequest) (response *DescribeNodePoolsResponse, err error)

DescribeNodePools This API is used to query a TKE node pool list.

error code that may be returned:

INTERNALERROR_DBRECORDNOTFOUND = "InternalError.DbRecordNotFound"
INTERNALERROR_PARAM = "InternalError.Param"
INTERNALERROR_UNEXPECTEDINTERNAL = "InternalError.UnexpectedInternal"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound"
RESOURCEUNAVAILABLE_CLUSTERSTATE = "ResourceUnavailable.ClusterState"

func (*Client) ModifyHealthCheckPolicy

func (c *Client) ModifyHealthCheckPolicy(request *ModifyHealthCheckPolicyRequest) (response *ModifyHealthCheckPolicyResponse, err error)

ModifyHealthCheckPolicy This API is used to modify a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) ModifyHealthCheckPolicyWithContext

func (c *Client) ModifyHealthCheckPolicyWithContext(ctx context.Context, request *ModifyHealthCheckPolicyRequest) (response *ModifyHealthCheckPolicyResponse, err error)

ModifyHealthCheckPolicy This API is used to modify a health check policy.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_PARAM = "InvalidParameter.Param"

func (*Client) ModifyNodePool

func (c *Client) ModifyNodePool(request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)

ModifyNodePool This API is used to update a TKE node pool.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) ModifyNodePoolWithContext

func (c *Client) ModifyNodePoolWithContext(ctx context.Context, request *ModifyNodePoolRequest) (response *ModifyNodePoolResponse, err error)

ModifyNodePool This API is used to update a TKE node pool.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

type CreateHealthCheckPolicyRequest

type CreateHealthCheckPolicyRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy
	HealthCheckPolicy *HealthCheckPolicy `json:"HealthCheckPolicy,omitnil,omitempty" name:"HealthCheckPolicy"`
}

func NewCreateHealthCheckPolicyRequest

func NewCreateHealthCheckPolicyRequest() (request *CreateHealthCheckPolicyRequest)

func (*CreateHealthCheckPolicyRequest) FromJsonString

func (r *CreateHealthCheckPolicyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateHealthCheckPolicyRequest) ToJsonString

func (r *CreateHealthCheckPolicyRequest) ToJsonString() string

type CreateHealthCheckPolicyRequestParams

type CreateHealthCheckPolicyRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy
	HealthCheckPolicy *HealthCheckPolicy `json:"HealthCheckPolicy,omitnil,omitempty" name:"HealthCheckPolicy"`
}

Predefined struct for user

type CreateHealthCheckPolicyResponse

type CreateHealthCheckPolicyResponse struct {
	*tchttp.BaseResponse
	Response *CreateHealthCheckPolicyResponseParams `json:"Response"`
}

func NewCreateHealthCheckPolicyResponse

func NewCreateHealthCheckPolicyResponse() (response *CreateHealthCheckPolicyResponse)

func (*CreateHealthCheckPolicyResponse) FromJsonString

func (r *CreateHealthCheckPolicyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateHealthCheckPolicyResponse) ToJsonString

func (r *CreateHealthCheckPolicyResponse) ToJsonString() string

type CreateHealthCheckPolicyResponseParams

type CreateHealthCheckPolicyResponseParams struct {
	// Health check policy name
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateNativeNodePoolParam

type CreateNativeNodePoolParam struct {
	// Node pool scaling configuration
	Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"`

	// Subnet list
	SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"`

	// Node billing type. PREPAID: Monthly subscription; POSTPAID_BY_HOUR: Pay-as-you-go (default);
	InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`

	// System disk configuration
	SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"`

	// List of models
	InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"`

	// Security group list
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`

	// Automatic upgrade configuration
	UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"`

	// Whether to enable self-healing capability
	AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"`

	// Billing configuration of monthly subscription models
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`

	// Management parameter configuration of node pools
	Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"`

	// Fault self-healing rule name
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`

	// hostname pattern string of native node pools
	HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"`

	// kubelet custom parameters
	KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"`

	// Predefined script
	Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"`

	// Runtime root directory
	RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"`

	// Whether to enable Auto Scaling (AS)
	EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"`

	// Desired node count
	Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"`

	// Public network bandwidth configuration
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`

	// Data disk list of native node pools
	DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"`

	// Node pool ssh public key ID array
	KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"`

	// Node pool type
	MachineType *string `json:"MachineType,omitnil,omitempty" name:"MachineType"`
}

type CreateNodePoolRequest

type CreateNodePoolRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Node pool type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Node Labels
	Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"`

	// Node taint
	Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"`

	// Node tags
	Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Whether to enable deletion protection
	DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"`

	// Whether the node is unschedulable by default
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Native node pool creation parameters
	Native *CreateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"`

	// Node Annotation List
	Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"`
}

func NewCreateNodePoolRequest

func NewCreateNodePoolRequest() (request *CreateNodePoolRequest)

func (*CreateNodePoolRequest) FromJsonString

func (r *CreateNodePoolRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNodePoolRequest) ToJsonString

func (r *CreateNodePoolRequest) ToJsonString() string

type CreateNodePoolRequestParams

type CreateNodePoolRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Node pool type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Node Labels
	Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"`

	// Node taint
	Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"`

	// Node tags
	Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Whether to enable deletion protection
	DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"`

	// Whether the node is unschedulable by default
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Native node pool creation parameters
	Native *CreateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"`

	// Node Annotation List
	Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"`
}

Predefined struct for user

type CreateNodePoolResponse

type CreateNodePoolResponse struct {
	*tchttp.BaseResponse
	Response *CreateNodePoolResponseParams `json:"Response"`
}

func NewCreateNodePoolResponse

func NewCreateNodePoolResponse() (response *CreateNodePoolResponse)

func (*CreateNodePoolResponse) FromJsonString

func (r *CreateNodePoolResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNodePoolResponse) ToJsonString

func (r *CreateNodePoolResponse) ToJsonString() string

type CreateNodePoolResponseParams

type CreateNodePoolResponseParams struct {
	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DataDisk

type DataDisk struct {
	// Cloud disk type
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"`

	// File system (ext3/ext4/xfs).
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	FileSystem *string `json:"FileSystem,omitnil,omitempty" name:"FileSystem"`

	// Cloud disk size (GB)
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"`

	// Whether to automatically format and mount disks.
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitnil,omitempty" name:"AutoFormatAndMount"`

	// Mount device name or partition name
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DiskPartition *string `json:"DiskPartition,omitnil,omitempty" name:"DiskPartition"`

	// Mounting directory
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MountTarget *string `json:"MountTarget,omitnil,omitempty" name:"MountTarget"`

	// This parameter is used to create an encrypted cloud disk, with the value fixed as ENCRYPT.
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Encrypt *string `json:"Encrypt,omitnil,omitempty" name:"Encrypt"`

	// Custom key for purchasing encrypted disks. When this parameter is input, the Encrypt input parameter cannot be left empty.
	// Note: This field may return "null", indicating that no valid value can be obtained.
	KmsKeyId *string `json:"KmsKeyId,omitnil,omitempty" name:"KmsKeyId"`

	// Snapshot ID. If it is input, a cloud disk will be created based on this snapshot. The snapshot must be a data disk snapshot.
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`

	// Cloud disk performance (unit: MB/s), which can be used to purchase additional performance for cloud disks.
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ThroughputPerformance *uint64 `json:"ThroughputPerformance,omitnil,omitempty" name:"ThroughputPerformance"`
}

type DeleteHealthCheckPolicyRequest

type DeleteHealthCheckPolicyRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy name
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`
}

func NewDeleteHealthCheckPolicyRequest

func NewDeleteHealthCheckPolicyRequest() (request *DeleteHealthCheckPolicyRequest)

func (*DeleteHealthCheckPolicyRequest) FromJsonString

func (r *DeleteHealthCheckPolicyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteHealthCheckPolicyRequest) ToJsonString

func (r *DeleteHealthCheckPolicyRequest) ToJsonString() string

type DeleteHealthCheckPolicyRequestParams

type DeleteHealthCheckPolicyRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy name
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`
}

Predefined struct for user

type DeleteHealthCheckPolicyResponse

type DeleteHealthCheckPolicyResponse struct {
	*tchttp.BaseResponse
	Response *DeleteHealthCheckPolicyResponseParams `json:"Response"`
}

func NewDeleteHealthCheckPolicyResponse

func NewDeleteHealthCheckPolicyResponse() (response *DeleteHealthCheckPolicyResponse)

func (*DeleteHealthCheckPolicyResponse) FromJsonString

func (r *DeleteHealthCheckPolicyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteHealthCheckPolicyResponse) ToJsonString

func (r *DeleteHealthCheckPolicyResponse) ToJsonString() string

type DeleteHealthCheckPolicyResponseParams

type DeleteHealthCheckPolicyResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteNodePoolRequest

type DeleteNodePoolRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`
}

func NewDeleteNodePoolRequest

func NewDeleteNodePoolRequest() (request *DeleteNodePoolRequest)

func (*DeleteNodePoolRequest) FromJsonString

func (r *DeleteNodePoolRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteNodePoolRequest) ToJsonString

func (r *DeleteNodePoolRequest) ToJsonString() string

type DeleteNodePoolRequestParams

type DeleteNodePoolRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`
}

Predefined struct for user

type DeleteNodePoolResponse

type DeleteNodePoolResponse struct {
	*tchttp.BaseResponse
	Response *DeleteNodePoolResponseParams `json:"Response"`
}

func NewDeleteNodePoolResponse

func NewDeleteNodePoolResponse() (response *DeleteNodePoolResponse)

func (*DeleteNodePoolResponse) FromJsonString

func (r *DeleteNodePoolResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteNodePoolResponse) ToJsonString

func (r *DeleteNodePoolResponse) ToJsonString() string

type DeleteNodePoolResponseParams

type DeleteNodePoolResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeClusterInstancesRequest

type DescribeClusterInstancesRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Offset. Default value: 0. For more information on Offset, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20, maximum value: 100. For more information on Limit, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Filter criteria list:
	// InstanceIds (Instance ID), InstanceType (Instance type: Regular, Native, Virtual, External), VagueIpAddress (Fuzzy matching IP), Labels (k8s node label), NodePoolNames (Node pool name), VagueInstanceName (Fuzzy matching node name), InstanceStates (Node status), Unschedulable (Cordoning status), NodePoolIds (Node pool ID)
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Sorting information
	SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"`
}

func NewDescribeClusterInstancesRequest

func NewDescribeClusterInstancesRequest() (request *DescribeClusterInstancesRequest)

func (*DescribeClusterInstancesRequest) FromJsonString

func (r *DescribeClusterInstancesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeClusterInstancesRequest) ToJsonString

func (r *DescribeClusterInstancesRequest) ToJsonString() string

type DescribeClusterInstancesRequestParams

type DescribeClusterInstancesRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Offset. Default value: 0. For more information on Offset, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of returned results. Default value: 20, maximum value: 100. For more information on Limit, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Filter criteria list:
	// InstanceIds (Instance ID), InstanceType (Instance type: Regular, Native, Virtual, External), VagueIpAddress (Fuzzy matching IP), Labels (k8s node label), NodePoolNames (Node pool name), VagueInstanceName (Fuzzy matching node name), InstanceStates (Node status), Unschedulable (Cordoning status), NodePoolIds (Node pool ID)
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Sorting information
	SortBy *SortBy `json:"SortBy,omitnil,omitempty" name:"SortBy"`
}

Predefined struct for user

type DescribeClusterInstancesResponse

type DescribeClusterInstancesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeClusterInstancesResponseParams `json:"Response"`
}

func NewDescribeClusterInstancesResponse

func NewDescribeClusterInstancesResponse() (response *DescribeClusterInstancesResponse)

func (*DescribeClusterInstancesResponse) FromJsonString

func (r *DescribeClusterInstancesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeClusterInstancesResponse) ToJsonString

func (r *DescribeClusterInstancesResponse) ToJsonString() string

type DescribeClusterInstancesResponseParams

type DescribeClusterInstancesResponseParams struct {
	// Total number of instances in the cluster
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// List of instances in the cluster
	InstanceSet []*Instance `json:"InstanceSet,omitnil,omitempty" name:"InstanceSet"`

	// Error information collection
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Errors []*string `json:"Errors,omitnil,omitempty" name:"Errors"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeHealthCheckPoliciesRequest

type DescribeHealthCheckPoliciesRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// ·  HealthCheckPolicyName
	//     Filter by [Health Check Policy Name].
	//     Type: String
	//         Required: No
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}

func NewDescribeHealthCheckPoliciesRequest

func NewDescribeHealthCheckPoliciesRequest() (request *DescribeHealthCheckPoliciesRequest)

func (*DescribeHealthCheckPoliciesRequest) FromJsonString

func (r *DescribeHealthCheckPoliciesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckPoliciesRequest) ToJsonString

func (r *DescribeHealthCheckPoliciesRequest) ToJsonString() string

type DescribeHealthCheckPoliciesRequestParams

type DescribeHealthCheckPoliciesRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// ·  HealthCheckPolicyName
	//     Filter by [Health Check Policy Name].
	//     Type: String
	//         Required: No
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}

Predefined struct for user

type DescribeHealthCheckPoliciesResponse

type DescribeHealthCheckPoliciesResponse struct {
	*tchttp.BaseResponse
	Response *DescribeHealthCheckPoliciesResponseParams `json:"Response"`
}

func NewDescribeHealthCheckPoliciesResponse

func NewDescribeHealthCheckPoliciesResponse() (response *DescribeHealthCheckPoliciesResponse)

func (*DescribeHealthCheckPoliciesResponse) FromJsonString

func (r *DescribeHealthCheckPoliciesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckPoliciesResponse) ToJsonString

func (r *DescribeHealthCheckPoliciesResponse) ToJsonString() string

type DescribeHealthCheckPoliciesResponseParams

type DescribeHealthCheckPoliciesResponseParams struct {
	// Health check policy array
	// Note: This field may return "null", indicating that no valid value can be obtained.
	HealthCheckPolicies []*HealthCheckPolicy `json:"HealthCheckPolicies,omitnil,omitempty" name:"HealthCheckPolicies"`

	// Total number of arrays
	// Note: This field may return "null", indicating that no valid value can be obtained.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeHealthCheckPolicyBindingsRequest

type DescribeHealthCheckPolicyBindingsRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// ·  HealthCheckPolicyName
	//     Filter by [Health Check Rule Name].
	//     Type: String
	//         Required: No
	Filter []*Filter `json:"Filter,omitnil,omitempty" name:"Filter"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}

func NewDescribeHealthCheckPolicyBindingsRequest

func NewDescribeHealthCheckPolicyBindingsRequest() (request *DescribeHealthCheckPolicyBindingsRequest)

func (*DescribeHealthCheckPolicyBindingsRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckPolicyBindingsRequest) ToJsonString

type DescribeHealthCheckPolicyBindingsRequestParams

type DescribeHealthCheckPolicyBindingsRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// ·  HealthCheckPolicyName
	//     Filter by [Health Check Rule Name].
	//     Type: String
	//         Required: No
	Filter []*Filter `json:"Filter,omitnil,omitempty" name:"Filter"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}

Predefined struct for user

type DescribeHealthCheckPolicyBindingsResponse

type DescribeHealthCheckPolicyBindingsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeHealthCheckPolicyBindingsResponseParams `json:"Response"`
}

func NewDescribeHealthCheckPolicyBindingsResponse

func NewDescribeHealthCheckPolicyBindingsResponse() (response *DescribeHealthCheckPolicyBindingsResponse)

func (*DescribeHealthCheckPolicyBindingsResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckPolicyBindingsResponse) ToJsonString

type DescribeHealthCheckPolicyBindingsResponseParams

type DescribeHealthCheckPolicyBindingsResponseParams struct {
	// Health check rule array
	// Note: This field may return "null", indicating that no valid value can be obtained.
	HealthCheckPolicyBindings []*HealthCheckPolicyBinding `json:"HealthCheckPolicyBindings,omitnil,omitempty" name:"HealthCheckPolicyBindings"`

	// Number of health check rules
	// Note: This field may return "null", indicating that no valid value can be obtained.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeHealthCheckTemplateRequest

type DescribeHealthCheckTemplateRequest struct {
	*tchttp.BaseRequest
}

func NewDescribeHealthCheckTemplateRequest

func NewDescribeHealthCheckTemplateRequest() (request *DescribeHealthCheckTemplateRequest)

func (*DescribeHealthCheckTemplateRequest) FromJsonString

func (r *DescribeHealthCheckTemplateRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckTemplateRequest) ToJsonString

func (r *DescribeHealthCheckTemplateRequest) ToJsonString() string

type DescribeHealthCheckTemplateRequestParams

type DescribeHealthCheckTemplateRequestParams struct {
}

Predefined struct for user

type DescribeHealthCheckTemplateResponse

type DescribeHealthCheckTemplateResponse struct {
	*tchttp.BaseResponse
	Response *DescribeHealthCheckTemplateResponseParams `json:"Response"`
}

func NewDescribeHealthCheckTemplateResponse

func NewDescribeHealthCheckTemplateResponse() (response *DescribeHealthCheckTemplateResponse)

func (*DescribeHealthCheckTemplateResponse) FromJsonString

func (r *DescribeHealthCheckTemplateResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeHealthCheckTemplateResponse) ToJsonString

func (r *DescribeHealthCheckTemplateResponse) ToJsonString() string

type DescribeHealthCheckTemplateResponseParams

type DescribeHealthCheckTemplateResponseParams struct {
	// Health check policy template
	HealthCheckTemplate *HealthCheckTemplate `json:"HealthCheckTemplate,omitnil,omitempty" name:"HealthCheckTemplate"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeNodePoolsRequest

type DescribeNodePoolsRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Query filter criteria:
	// ·  NodePoolsName
	//     Filter by [Node Pool Name].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  NodePoolsId
	//     Filter by [Node Pool id].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  tags
	//     Filter by [Tag Key-value Pairs].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  tag:tag-key
	//     Filter by [Tag Key-value Pairs].
	//     Type: String
	//         Required: No
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

func NewDescribeNodePoolsRequest

func NewDescribeNodePoolsRequest() (request *DescribeNodePoolsRequest)

func (*DescribeNodePoolsRequest) FromJsonString

func (r *DescribeNodePoolsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNodePoolsRequest) ToJsonString

func (r *DescribeNodePoolsRequest) ToJsonString() string

type DescribeNodePoolsRequestParams

type DescribeNodePoolsRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Query filter criteria:
	// ·  NodePoolsName
	//     Filter by [Node Pool Name].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  NodePoolsId
	//     Filter by [Node Pool id].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  tags
	//     Filter by [Tag Key-value Pairs].
	//     Type: String
	//         Required: No
	//
	//
	//
	// ·  tag:tag-key
	//     Filter by [Tag Key-value Pairs].
	//     Type: String
	//         Required: No
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`

	// Offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Maximum number of output entries. Default value: 20; maximum value: 100.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type DescribeNodePoolsResponse

type DescribeNodePoolsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeNodePoolsResponseParams `json:"Response"`
}

func NewDescribeNodePoolsResponse

func NewDescribeNodePoolsResponse() (response *DescribeNodePoolsResponse)

func (*DescribeNodePoolsResponse) FromJsonString

func (r *DescribeNodePoolsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNodePoolsResponse) ToJsonString

func (r *DescribeNodePoolsResponse) ToJsonString() string

type DescribeNodePoolsResponseParams

type DescribeNodePoolsResponseParams struct {
	// Node pool list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	NodePools []*NodePool `json:"NodePools,omitnil,omitempty" name:"NodePools"`

	// Total resources
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Disk

type Disk struct {
	// Cloud disk type
	DiskType *string `json:"DiskType,omitnil,omitempty" name:"DiskType"`

	// Cloud disk size (GB)
	DiskSize *int64 `json:"DiskSize,omitnil,omitempty" name:"DiskSize"`

	// Whether to automatically format and mount disks.
	AutoFormatAndMount *bool `json:"AutoFormatAndMount,omitnil,omitempty" name:"AutoFormatAndMount"`

	// File system
	FileSystem *string `json:"FileSystem,omitnil,omitempty" name:"FileSystem"`

	// Mounting directory
	MountTarget *string `json:"MountTarget,omitnil,omitempty" name:"MountTarget"`
}

type ExternalNodeInfo

type ExternalNodeInfo struct {
	// Third-party node name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Number of CPU cores (unit: cores)
	// Note: This field may return "null", indicating that no valid value can be obtained.
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// Node memory capacity (unit: `GB`)
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// kubelet version information of third-party nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	K8SVersion *string `json:"K8SVersion,omitnil,omitempty" name:"K8SVersion"`
}

type ExternalNodePoolInfo

type ExternalNodePoolInfo struct {
	// Third-party node runtime configuration
	RuntimeConfig *RuntimeConfig `json:"RuntimeConfig,omitnil,omitempty" name:"RuntimeConfig"`

	// Number of nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	NodesNum *uint64 `json:"NodesNum,omitnil,omitempty" name:"NodesNum"`
}

type Filter

type Filter struct {
	// Attribute name. If more than one Filter exists, the logical relation between these Filters is `AND`.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Attribute value. If multiple values exist in one filter, the logical relationship between these values is `OR`.
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
}

type HealthCheckPolicy

type HealthCheckPolicy struct {
	// Health check policy name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// List of health check policy rules
	Rules []*HealthCheckPolicyRule `json:"Rules,omitnil,omitempty" name:"Rules"`
}

type HealthCheckPolicyBinding

type HealthCheckPolicyBinding struct {
	// Health check policy name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Rule creation time
	CreatedAt *string `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// Associated node pool array
	NodePools []*string `json:"NodePools,omitnil,omitempty" name:"NodePools"`
}

type HealthCheckPolicyRule

type HealthCheckPolicyRule struct {
	// Health check rules
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Whether to check this item
	Enabled *bool `json:"Enabled,omitnil,omitempty" name:"Enabled"`

	// Whether to enable repair
	AutoRepairEnabled *bool `json:"AutoRepairEnabled,omitnil,omitempty" name:"AutoRepairEnabled"`
}

type HealthCheckTemplate

type HealthCheckTemplate struct {
	// Health check item
	Rules []*HealthCheckTemplateRule `json:"Rules,omitnil,omitempty" name:"Rules"`
}

type HealthCheckTemplateRule

type HealthCheckTemplateRule struct {
	// Health check item name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Description of health check rules
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Fix action
	RepairAction *string `json:"RepairAction,omitnil,omitempty" name:"RepairAction"`

	// Fix impact
	RepairEffect *string `json:"RepairEffect,omitnil,omitempty" name:"RepairEffect"`

	// Whether it is recommended to enable check
	ShouldEnable *bool `json:"ShouldEnable,omitnil,omitempty" name:"ShouldEnable"`

	// Whether repair is suggested.
	ShouldRepair *bool `json:"ShouldRepair,omitnil,omitempty" name:"ShouldRepair"`

	// Severity
	Severity *string `json:"Severity,omitnil,omitempty" name:"Severity"`
}

type Instance

type Instance struct {
	// Instance ID
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// Node role: MASTER, WORKER, ETCD, MASTER_ETCD, and ALL. Default value: WORKER
	InstanceRole *string `json:"InstanceRole,omitnil,omitempty" name:"InstanceRole"`

	// Cause of instance exception (or initialization)
	// Note: This field may return "null", indicating that no valid value can be obtained.
	FailedReason *string `json:"FailedReason,omitnil,omitempty" name:"FailedReason"`

	// Instance status
	//
	// - initializing
	// - running
	// - failed
	InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"`

	// Whether it is unschedulable
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Adding time
	CreatedTime *string `json:"CreatedTime,omitnil,omitempty" name:"CreatedTime"`

	// Node private network IP
	// Note: This field may return "null", indicating that no valid value can be obtained.
	LanIP *string `json:"LanIP,omitnil,omitempty" name:"LanIP"`

	// Resource pool ID
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`

	// Native node parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Native *NativeNodeInfo `json:"Native,omitnil,omitempty" name:"Native"`

	// General node parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Regular *RegularNodeInfo `json:"Regular,omitnil,omitempty" name:"Regular"`

	// Super node parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Super *SuperNodeInfo `json:"Super,omitnil,omitempty" name:"Super"`

	// Third-party node parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	External *ExternalNodeInfo `json:"External,omitnil,omitempty" name:"External"`

	// Node type
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	NodeType *string `json:"NodeType,omitnil,omitempty" name:"NodeType"`
}

type InstanceAdvancedSettings

type InstanceAdvancedSettings struct {
	// When the node is in the podCIDR size customization mode, you can specify the upper limit of the number of pods running on the node.
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DesiredPodNumber *int64 `json:"DesiredPodNumber,omitnil,omitempty" name:"DesiredPodNumber"`

	// base64 encoded user script, executed before initializing the node and currently effective only for adding existing nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	PreStartUserScript *string `json:"PreStartUserScript,omitnil,omitempty" name:"PreStartUserScript"`

	// Runtime description
	// Note: This field may return "null", indicating that no valid value can be obtained.
	RuntimeConfig *RuntimeConfig `json:"RuntimeConfig,omitnil,omitempty" name:"RuntimeConfig"`

	// Base64-encoded user script. This script is executed after the k8s components start running. Users must ensure the reenterable and retry logic of the script. The script and the log files generated by it can be viewed at the /data/ccs_userscript/ path of the node. If a node must be initialized before joining the scheduling, it can be used in conjunction with the unschedulable parameter. After initializing with userScript, add the command `kubectl uncordon nodename --kubeconfig=/root/.kube/config` to add the node to scheduling.
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	UserScript *string `json:"UserScript,omitnil,omitempty" name:"UserScript"`

	// Node-related custom parameter information.
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitnil,omitempty" name:"ExtraArgs"`
}

type InstanceChargePrepaid

type InstanceChargePrepaid struct {
	// Billing cycle of the pay-as-you-go mode (unit: month):
	// 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60
	Period *uint64 `json:"Period,omitnil,omitempty" name:"Period"`

	// Renewal method of the prepayment mode:
	// - NOTIFY_AND_AUTO_RENEW: Notify the user of expiration and auto-renew (default)
	// - NOTIFY_AND_MANUAL_RENEW: Notify the user of expiration but do not auto-renew
	// - DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of expiration and do not auto-renew
	RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}

type InstanceExtraArgs

type InstanceExtraArgs struct {
	// kubelet custom parameters, whose format is ["k1=v1", "k1=v2"], for example ["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Kubelet []*string `json:"Kubelet,omitnil,omitempty" name:"Kubelet"`
}

type IntOrString

type IntOrString struct {
	// Numerical type, 0: int, 1: string
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// Integer
	// Note: This field may return "null", indicating that no valid value can be obtained.
	IntVal *int64 `json:"IntVal,omitnil,omitempty" name:"IntVal"`

	// String
	// Note: This field may return "null", indicating that no valid value can be obtained.
	StrVal *string `json:"StrVal,omitnil,omitempty" name:"StrVal"`
}

type InternetAccessible

type InternetAccessible struct {
	// Bandwidth
	MaxBandwidthOut *int64 `json:"MaxBandwidthOut,omitnil,omitempty" name:"MaxBandwidthOut"`

	// Network billing method
	ChargeType *string `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`

	// Bandwidth package ID
	BandwidthPackageId *string `json:"BandwidthPackageId,omitnil,omitempty" name:"BandwidthPackageId"`
}

type Label

type Label struct {
	// Name in the map list
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Value in the map list
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type LifecycleConfig

type LifecycleConfig struct {
	// Custom script before node initialization
	// Note: This field may return "null", indicating that no valid value can be obtained.
	PreInit *string `json:"PreInit,omitnil,omitempty" name:"PreInit"`

	// Custom script after node initialization
	// Note: This field may return "null", indicating that no valid value can be obtained.
	PostInit *string `json:"PostInit,omitnil,omitempty" name:"PostInit"`
}

type MachineSetScaling

type MachineSetScaling struct {
	// Node pool minimum replica count
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MinReplicas *int64 `json:"MinReplicas,omitnil,omitempty" name:"MinReplicas"`

	// Node pool maximum replica count
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MaxReplicas *int64 `json:"MaxReplicas,omitnil,omitempty" name:"MaxReplicas"`

	// Node pool scaling policy. ZoneEquality: Scatter across multiple availability zones; ZonePriority: Prioritize preferred availability zones;
	// Note: This field may return "null", indicating that no valid value can be obtained.
	CreatePolicy *string `json:"CreatePolicy,omitnil,omitempty" name:"CreatePolicy"`
}

type MachineUpgradeSettings

type MachineUpgradeSettings struct {
	// Whether to enable automatic upgrade
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoUpgrade *bool `json:"AutoUpgrade,omitnil,omitempty" name:"AutoUpgrade"`

	// Ops window
	// Note: This field may return "null", indicating that no valid value can be obtained.
	UpgradeOptions *AutoUpgradeOptions `json:"UpgradeOptions,omitnil,omitempty" name:"UpgradeOptions"`

	// Upgrade item
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Components []*string `json:"Components,omitnil,omitempty" name:"Components"`

	// Maximum number of nodes that cannot be upgraded during upgrade
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MaxUnavailable *IntOrString `json:"MaxUnavailable,omitnil,omitempty" name:"MaxUnavailable"`
}

type ManagementConfig

type ManagementConfig struct {
	// dns configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Nameservers []*string `json:"Nameservers,omitnil,omitempty" name:"Nameservers"`

	// hosts configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Hosts []*string `json:"Hosts,omitnil,omitempty" name:"Hosts"`

	// Kernel parameter configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	KernelArgs []*string `json:"KernelArgs,omitnil,omitempty" name:"KernelArgs"`
}

type ManuallyAdded

type ManuallyAdded struct {
	// Number of nodes being added
	Joining *int64 `json:"Joining,omitnil,omitempty" name:"Joining"`

	// Number of nodes being initialized
	Initializing *int64 `json:"Initializing,omitnil,omitempty" name:"Initializing"`

	// Number of normal nodes
	Normal *int64 `json:"Normal,omitnil,omitempty" name:"Normal"`

	// Total number of nodes
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`
}

type ModifyHealthCheckPolicyRequest

type ModifyHealthCheckPolicyRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy
	HealthCheckPolicy *HealthCheckPolicy `json:"HealthCheckPolicy,omitnil,omitempty" name:"HealthCheckPolicy"`
}

func NewModifyHealthCheckPolicyRequest

func NewModifyHealthCheckPolicyRequest() (request *ModifyHealthCheckPolicyRequest)

func (*ModifyHealthCheckPolicyRequest) FromJsonString

func (r *ModifyHealthCheckPolicyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyHealthCheckPolicyRequest) ToJsonString

func (r *ModifyHealthCheckPolicyRequest) ToJsonString() string

type ModifyHealthCheckPolicyRequestParams

type ModifyHealthCheckPolicyRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Health check policy
	HealthCheckPolicy *HealthCheckPolicy `json:"HealthCheckPolicy,omitnil,omitempty" name:"HealthCheckPolicy"`
}

Predefined struct for user

type ModifyHealthCheckPolicyResponse

type ModifyHealthCheckPolicyResponse struct {
	*tchttp.BaseResponse
	Response *ModifyHealthCheckPolicyResponseParams `json:"Response"`
}

func NewModifyHealthCheckPolicyResponse

func NewModifyHealthCheckPolicyResponse() (response *ModifyHealthCheckPolicyResponse)

func (*ModifyHealthCheckPolicyResponse) FromJsonString

func (r *ModifyHealthCheckPolicyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyHealthCheckPolicyResponse) ToJsonString

func (r *ModifyHealthCheckPolicyResponse) ToJsonString() string

type ModifyHealthCheckPolicyResponseParams

type ModifyHealthCheckPolicyResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyNodePoolRequest

type ModifyNodePoolRequest struct {
	*tchttp.BaseRequest

	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`

	// Node pool name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Node Labels
	Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"`

	// Node taint
	Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"`

	// Node tags
	Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Whether to enable deletion protection
	DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"`

	// Whether the node is unschedulable
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Native node pool update parameters
	Native *UpdateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"`

	// Node annotation list
	Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"`
}

func NewModifyNodePoolRequest

func NewModifyNodePoolRequest() (request *ModifyNodePoolRequest)

func (*ModifyNodePoolRequest) FromJsonString

func (r *ModifyNodePoolRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyNodePoolRequest) ToJsonString

func (r *ModifyNodePoolRequest) ToJsonString() string

type ModifyNodePoolRequestParams

type ModifyNodePoolRequestParams struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`

	// Node pool name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Node Labels
	Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"`

	// Node taint
	Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"`

	// Node tags
	Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Whether to enable deletion protection
	DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"`

	// Whether the node is unschedulable
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Native node pool update parameters
	Native *UpdateNativeNodePoolParam `json:"Native,omitnil,omitempty" name:"Native"`

	// Node annotation list
	Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"`
}

Predefined struct for user

type ModifyNodePoolResponse

type ModifyNodePoolResponse struct {
	*tchttp.BaseResponse
	Response *ModifyNodePoolResponseParams `json:"Response"`
}

func NewModifyNodePoolResponse

func NewModifyNodePoolResponse() (response *ModifyNodePoolResponse)

func (*ModifyNodePoolResponse) FromJsonString

func (r *ModifyNodePoolResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyNodePoolResponse) ToJsonString

func (r *ModifyNodePoolResponse) ToJsonString() string

type ModifyNodePoolResponseParams

type ModifyNodePoolResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type NativeNodeInfo

type NativeNodeInfo struct {
	// Node name
	MachineName *string `json:"MachineName,omitnil,omitempty" name:"MachineName"`

	// Machine status
	MachineState *string `json:"MachineState,omitnil,omitempty" name:"MachineState"`

	// Machine availability zone
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// Node billing type. PREPAID: Monthly subscription; POSTPAID_BY_HOUR: Pay-as-you-go (default);
	InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`

	// Creation time
	CreatedAt *string `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// Machine login status
	// Note: This field may return "null", indicating that no valid value can be obtained.
	LoginStatus *string `json:"LoginStatus,omitnil,omitempty" name:"LoginStatus"`

	// Whether to enable scale-in protection
	// Note: This field may return "null", indicating that no valid value can be obtained.
	IsProtectedFromScaleIn *bool `json:"IsProtectedFromScaleIn,omitnil,omitempty" name:"IsProtectedFromScaleIn"`

	// Machine name
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"`

	// Number of CPU cores (unit: cores)
	CPU *uint64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// Number of GPU cores (unit: cores)
	// Note: This field may return "null", indicating that no valid value can be obtained.
	GPU *uint64 `json:"GPU,omitnil,omitempty" name:"GPU"`

	// Auto-renewal label
	RenewFlag *string `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`

	// Node billing mode (deprecated)
	PayMode *string `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// Node memory capacity (unit: `GB`)
	Memory *uint64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// Public network bandwidth configuration
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`

	// Model family
	InstanceFamily *string `json:"InstanceFamily,omitnil,omitempty" name:"InstanceFamily"`

	// Node private network IP
	LanIp *string `json:"LanIp,omitnil,omitempty" name:"LanIp"`

	// Model
	InstanceType *string `json:"InstanceType,omitnil,omitempty" name:"InstanceType"`

	// Billing expiration time of monthly subscription nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ExpiredTime *string `json:"ExpiredTime,omitnil,omitempty" name:"ExpiredTime"`

	// Security group list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SecurityGroupIDs []*string `json:"SecurityGroupIDs,omitnil,omitempty" name:"SecurityGroupIDs"`

	// VPC unique ID
	// Note: This field may return "null", indicating that no valid value can be obtained.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Subnet unique ID
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// OS name
	// Note: This field may return "null", indicating that no valid value can be obtained.
	OsImage *string `json:"OsImage,omitnil,omitempty" name:"OsImage"`

	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}

type NativeNodePoolInfo

type NativeNodePoolInfo struct {
	// Scaling configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"`

	// Subnet list
	SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"`

	// Security group list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`

	// Automatic upgrade configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"`

	// Whether to enable self-healing capability
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"`

	// Node billing type
	InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`

	// Billing configuration of monthly subscription models
	// Note: This field may return "null", indicating that no valid value can be obtained.
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`

	// System disk configuration
	SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"`

	// Key ID list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"`

	// Machine system configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"`

	// Fault self-healing rule name
	// Note: This field may return "null", indicating that no valid value can be obtained.
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`

	// hostname pattern string of native node pools
	// Note: This field may return "null", indicating that no valid value can be obtained.
	HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"`

	// kubelet custom parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"`

	// Predefined script
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"`

	// Runtime root directory
	// Note: This field may return "null", indicating that no valid value can be obtained.
	RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"`

	// Whether to enable Auto Scaling (AS)
	// Note: This field may return "null", indicating that no valid value can be obtained.
	EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"`

	// List of models
	InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"`

	// Desired node count
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"`

	// Number of ready machines
	ReadyReplicas *int64 `json:"ReadyReplicas,omitnil,omitempty" name:"ReadyReplicas"`

	// Public network bandwidth configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	InternetAccessible *InternetAccessible `json:"InternetAccessible,omitnil,omitempty" name:"InternetAccessible"`

	// Data disk of native node pools
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"`

	// Native node models: Native, NativeCVM
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MachineType *string `json:"MachineType,omitnil,omitempty" name:"MachineType"`
}

type NodeCountSummary

type NodeCountSummary struct {
	// Manually managed nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ManuallyAdded *ManuallyAdded `json:"ManuallyAdded,omitnil,omitempty" name:"ManuallyAdded"`

	// Automatically managed nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoscalingAdded *AutoscalingAdded `json:"AutoscalingAdded,omitnil,omitempty" name:"AutoscalingAdded"`
}

type NodePool

type NodePool struct {
	// Cluster ID
	ClusterId *string `json:"ClusterId,omitnil,omitempty" name:"ClusterId"`

	// Node pool ID
	NodePoolId *string `json:"NodePoolId,omitnil,omitempty" name:"NodePoolId"`

	// Node tags
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Tags []*TagSpecification `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Node taint
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Taints []*Taint `json:"Taints,omitnil,omitempty" name:"Taints"`

	// Whether to enable deletion protection
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DeletionProtection *bool `json:"DeletionProtection,omitnil,omitempty" name:"DeletionProtection"`

	// Whether the node is unschedulable
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Unschedulable *bool `json:"Unschedulable,omitnil,omitempty" name:"Unschedulable"`

	// Node pool type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Node Labels
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Labels []*Label `json:"Labels,omitnil,omitempty" name:"Labels"`

	// Node pool status
	LifeState *string `json:"LifeState,omitnil,omitempty" name:"LifeState"`

	// Creation time
	CreatedAt *string `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// Node pool name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Native node pool parameters
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Native *NativeNodePoolInfo `json:"Native,omitnil,omitempty" name:"Native"`

	// Node annotation list
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Annotations []*Annotation `json:"Annotations,omitnil,omitempty" name:"Annotations"`

	// Super node pool parameter, which has a value only when Type equals Super
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Super *SuperNodePoolInfo `json:"Super,omitnil,omitempty" name:"Super"`

	// General node pool parameter, which has a value only when Type equals Regular
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Regular *RegularNodePoolInfo `json:"Regular,omitnil,omitempty" name:"Regular"`

	// Third-party node pool parameter, which has a value only when Type equals External
	// Note: This field may return "null", indicating that no valid value can be obtained.
	External *ExternalNodePoolInfo `json:"External,omitnil,omitempty" name:"External"`
}

type RegularNodeInfo

type RegularNodeInfo struct {
	// Node configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitnil,omitempty" name:"InstanceAdvancedSettings"`

	// Auto scaling group ID
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoscalingGroupId *string `json:"AutoscalingGroupId,omitnil,omitempty" name:"AutoscalingGroupId"`
}

type RegularNodePoolInfo

type RegularNodePoolInfo struct {
	// LaunchConfigurationId configuration
	LaunchConfigurationId *string `json:"LaunchConfigurationId,omitnil,omitempty" name:"LaunchConfigurationId"`

	// Auto-scaling group ID
	AutoscalingGroupId *string `json:"AutoscalingGroupId,omitnil,omitempty" name:"AutoscalingGroupId"`

	// NodeCountSummary node list
	NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitnil,omitempty" name:"NodeCountSummary"`

	// Status information
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoscalingGroupStatus *string `json:"AutoscalingGroupStatus,omitnil,omitempty" name:"AutoscalingGroupStatus"`

	// Maximum number of nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MaxNodesNum *int64 `json:"MaxNodesNum,omitnil,omitempty" name:"MaxNodesNum"`

	// Minimum number of nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MinNodesNum *int64 `json:"MinNodesNum,omitnil,omitempty" name:"MinNodesNum"`

	// Desired number of nodes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	DesiredNodesNum *int64 `json:"DesiredNodesNum,omitnil,omitempty" name:"DesiredNodesNum"`

	// Node pool osName
	// Note: This field may return "null", indicating that no valid value can be obtained.
	NodePoolOs *string `json:"NodePoolOs,omitnil,omitempty" name:"NodePoolOs"`

	// Node configuration
	// Note: This field may return "null", indicating that no valid value can be obtained.
	InstanceAdvancedSettings *InstanceAdvancedSettings `json:"InstanceAdvancedSettings,omitnil,omitempty" name:"InstanceAdvancedSettings"`
}

type RuntimeConfig

type RuntimeConfig struct {
	// Runtime type
	// Note: This field may return "null", indicating that no valid value can be obtained.
	RuntimeType *string `json:"RuntimeType,omitnil,omitempty" name:"RuntimeType"`

	// Runtime version
	// Note: This field may return "null", indicating that no valid value can be obtained.
	RuntimeVersion *string `json:"RuntimeVersion,omitnil,omitempty" name:"RuntimeVersion"`

	// Runtime root directory
	// Note: This field may return "null", indicating that no valid value can be obtained.
	RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"`
}

type SortBy

type SortBy struct {
	// Sorting metrics
	FieldName *string `json:"FieldName,omitnil,omitempty" name:"FieldName"`

	// Sorting method
	OrderType *string `json:"OrderType,omitnil,omitempty" name:"OrderType"`
}

type SuperNodeInfo

type SuperNodeInfo struct {
	// Instance name
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Auto-renewal label
	// Note: This field may return "null", indicating that no valid value can be obtained.
	AutoRenewFlag *int64 `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// Resource type
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"`

	// CPU specification of nodes (unit: cores).
	// Note: This field may return "null", indicating that no valid value can be obtained.
	CPU *float64 `json:"CPU,omitnil,omitempty" name:"CPU"`

	// Total number of CPUs of Pods on nodes (unit: cores).
	// Note: This field may return "null", indicating that no valid value can be obtained.
	UsedCPU *float64 `json:"UsedCPU,omitnil,omitempty" name:"UsedCPU"`

	// Memory specification of nodes (unit: Gi).
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Memory *float64 `json:"Memory,omitnil,omitempty" name:"Memory"`

	// Total memory of Pods on nodes (unit: Gi).
	// Note: This field may return "null", indicating that no valid value can be obtained.
	UsedMemory *float64 `json:"UsedMemory,omitnil,omitempty" name:"UsedMemory"`

	// Availability zone
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// Unique VPC ID
	// Note: This field may return "null", indicating that no valid value can be obtained.
	VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`

	// Subnet unique ID
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SubnetId *string `json:"SubnetId,omitnil,omitempty" name:"SubnetId"`

	// Effective time
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ActiveAt *string `json:"ActiveAt,omitnil,omitempty" name:"ActiveAt"`

	// Expiration time
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ExpireAt *string `json:"ExpireAt,omitnil,omitempty" name:"ExpireAt"`

	// Maximum schedulable CPU specification for a single Pod
	// Note: This field may return "null", indicating that no valid value can be obtained.
	MaxCPUScheduledPod *int64 `json:"MaxCPUScheduledPod,omitnil,omitempty" name:"MaxCPUScheduledPod"`

	// Instance attributes
	// Note: This field may return "null", indicating that no valid value can be obtained.
	InstanceAttribute *string `json:"InstanceAttribute,omitnil,omitempty" name:"InstanceAttribute"`
}

type SuperNodePoolInfo

type SuperNodePoolInfo struct {
	// Subnet list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"`

	// Security group list
	// Note: This field may return "null", indicating that no valid value can be obtained.
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`
}

type Tag

type Tag struct {
	// Tag key
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// Tag value
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type TagSpecification

type TagSpecification struct {
	// The type of resources the label is bound to. Type currently supported: "cluster".
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"`

	// Tag pair list
	//
	// Note: This field may return "null", indicating that no valid value can be obtained.
	Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`
}

type Taint

type Taint struct {
	// Key of Taint
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// Value of Taint
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`

	// Effect of Taint
	Effect *string `json:"Effect,omitnil,omitempty" name:"Effect"`
}

type UpdateNativeNodePoolParam

type UpdateNativeNodePoolParam struct {
	// Scaling configuration
	Scaling *MachineSetScaling `json:"Scaling,omitnil,omitempty" name:"Scaling"`

	// Subnet list
	SubnetIds []*string `json:"SubnetIds,omitnil,omitempty" name:"SubnetIds"`

	// Security group list
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil,omitempty" name:"SecurityGroupIds"`

	// Automatic upgrade configuration
	UpgradeSettings *MachineUpgradeSettings `json:"UpgradeSettings,omitnil,omitempty" name:"UpgradeSettings"`

	// Whether to enable self-healing capability
	AutoRepair *bool `json:"AutoRepair,omitnil,omitempty" name:"AutoRepair"`

	// Change the node billing type
	// Currently, only pay-as-you-go to monthly subscription is supported:
	// - PREPAID
	InstanceChargeType *string `json:"InstanceChargeType,omitnil,omitempty" name:"InstanceChargeType"`

	// Billing configuration of monthly subscription models
	InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil,omitempty" name:"InstanceChargePrepaid"`

	// System disk configuration
	SystemDisk *Disk `json:"SystemDisk,omitnil,omitempty" name:"SystemDisk"`

	// Machine system configuration
	Management *ManagementConfig `json:"Management,omitnil,omitempty" name:"Management"`

	// Fault self-healing rule name
	HealthCheckPolicyName *string `json:"HealthCheckPolicyName,omitnil,omitempty" name:"HealthCheckPolicyName"`

	// hostname pattern string of native node pools
	HostNamePattern *string `json:"HostNamePattern,omitnil,omitempty" name:"HostNamePattern"`

	// kubelet custom parameters
	KubeletArgs []*string `json:"KubeletArgs,omitnil,omitempty" name:"KubeletArgs"`

	// Predefined script
	Lifecycle *LifecycleConfig `json:"Lifecycle,omitnil,omitempty" name:"Lifecycle"`

	// Runtime root directory
	RuntimeRootDir *string `json:"RuntimeRootDir,omitnil,omitempty" name:"RuntimeRootDir"`

	// Whether to enable Auto Scaling (AS)
	EnableAutoscaling *bool `json:"EnableAutoscaling,omitnil,omitempty" name:"EnableAutoscaling"`

	// List of models
	InstanceTypes []*string `json:"InstanceTypes,omitnil,omitempty" name:"InstanceTypes"`

	// Desired node count
	Replicas *int64 `json:"Replicas,omitnil,omitempty" name:"Replicas"`

	// Data disk list
	DataDisks []*DataDisk `json:"DataDisks,omitnil,omitempty" name:"DataDisks"`

	// ssh public key ID array
	KeyIds []*string `json:"KeyIds,omitnil,omitempty" name:"KeyIds"`
}

Jump to

Keyboard shortcuts

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