UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,891 lines (1,584 loc) 507 kB
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const AbstractModel = require("../../common/abstract_model"); /** * DescribeClusterEndpointVipStatus request structure. * @class */ class DescribeClusterEndpointVipStatusRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; } } /** * DescribeClusterSecurity request structure. * @class */ class DescribeClusterSecurityRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID. Enter the ClusterId field returned by the DescribeClusters API * @type {string || null} */ this.ClusterId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; } } /** * DescribeEdgeCVMInstances request structure. * @class */ class DescribeEdgeCVMInstancesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterID = null; /** * Filter condition Only `cvm-id` is supported. * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterID = 'ClusterID' in params ? params.ClusterID : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * DescribeClusterEndpointVipStatus response structure. * @class */ class DescribeClusterEndpointVipStatusResponse extends AbstractModel { constructor(){ super(); /** * Port operation status (Creating = in the process of creation; CreateFailed = creation has failed; Created = creation completed; Deleting = in the process of deletion; DeletedFailed = deletion has failed; Deleted = deletion completed; NotFound = operation not found) * @type {string || null} */ this.Status = null; /** * Reason for operation failure * @type {string || null} */ this.ErrorMsg = null; /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Status = 'Status' in params ? params.Status : null; this.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteCluster response structure. * @class */ class DeleteClusterResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Nodes for automatic scaling * @class */ class AutoscalingAdded extends AbstractModel { constructor(){ super(); /** * Number of nodes that are being added * @type {number || null} */ this.Joining = null; /** * Number of nodes that are being initialized * @type {number || null} */ this.Initializing = null; /** * Number of normal nodes * @type {number || null} */ this.Normal = null; /** * Total number of nodes * @type {number || null} */ this.Total = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Joining = 'Joining' in params ? params.Joining : null; this.Initializing = 'Initializing' in params ? params.Initializing : null; this.Normal = 'Normal' in params ? params.Normal : null; this.Total = 'Total' in params ? params.Total : null; } } /** * CreateClusterRouteTable response structure. * @class */ class CreateClusterRouteTableResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateAddon response structure. * @class */ class UpdateAddonResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyClusterImage response structure. * @class */ class ModifyClusterImageResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAddon response structure. * @class */ class DescribeAddonResponse extends AbstractModel { constructor(){ super(); /** * List of add-ons * @type {Array.<Addon> || null} */ this.Addons = null; /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Addons) { this.Addons = new Array(); for (let z in params.Addons) { let obj = new Addon(); obj.deserialize(params.Addons[z]); this.Addons.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ServiceAccount authentication configuration * @class */ class ServiceAccountAuthenticationOptions extends AbstractModel { constructor(){ super(); /** * Use TKE default issuer and jwksuri Note: This field may return `null`, indicating that no valid values can be obtained. * @type {boolean || null} */ this.UseTKEDefault = null; /** * service-account-issuer Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.Issuer = null; /** * service-account-jwks-uri Note: this field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.JWKSURI = null; /** * If it is set to `true`, a RABC rule is automatically created to allow anonymous users to access `/.well-known/openid-configuration` and `/openid/v1/jwks`. Note: this field may return `null`, indicating that no valid values can be obtained. * @type {boolean || null} */ this.AutoCreateDiscoveryAnonymousAuth = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UseTKEDefault = 'UseTKEDefault' in params ? params.UseTKEDefault : null; this.Issuer = 'Issuer' in params ? params.Issuer : null; this.JWKSURI = 'JWKSURI' in params ? params.JWKSURI : null; this.AutoCreateDiscoveryAnonymousAuth = 'AutoCreateDiscoveryAnonymousAuth' in params ? params.AutoCreateDiscoveryAnonymousAuth : null; } } /** * Execution Step Information * @class */ class Step extends AbstractModel { constructor(){ super(); /** * Name * @type {string || null} */ this.Name = null; /** * Start time Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.StartAt = null; /** * End time Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.EndAt = null; /** * Current status Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.Status = null; /** * Execution Information Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.Message = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.StartAt = 'StartAt' in params ? params.StartAt : null; this.EndAt = 'EndAt' in params ? params.EndAt : null; this.Status = 'Status' in params ? params.Status : null; this.Message = 'Message' in params ? params.Message : null; } } /** * Log Switch Details * @class */ class SwitchInfo extends AbstractModel { constructor(){ super(); /** * Enables Identifier. true means enabled. Note: This field may return "null", indicating that no valid value can be obtained. * @type {boolean || null} */ this.Enable = null; /** * CLS Logset ID Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.LogsetId = null; /** * CLS Log Topic ID Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.TopicId = null; /** * Current log-agent Version Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.Version = null; /** * Upgradable or not Note: This field may return "null", indicating that no valid value can be obtained. * @type {boolean || null} */ this.UpgradeAble = null; /** * CLS Log Topic Region Note: This field may return "null", indicating that no valid value can be obtained. * @type {string || null} */ this.TopicRegion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Enable = 'Enable' in params ? params.Enable : null; this.LogsetId = 'LogsetId' in params ? params.LogsetId : null; this.TopicId = 'TopicId' in params ? params.TopicId : null; this.Version = 'Version' in params ? params.Version : null; this.UpgradeAble = 'UpgradeAble' in params ? params.UpgradeAble : null; this.TopicRegion = 'TopicRegion' in params ? params.TopicRegion : null; } } /** * CreateClusterNodePool request structure. * @class */ class CreateClusterNodePoolRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * AS group parameters. For details, see https://intl.cloud.tencent.com/document/product/377/20440?from_cn_redirect=1 * @type {string || null} */ this.AutoScalingGroupPara = null; /** * Running parameters. For details, see https://intl.cloud.tencent.com/document/product/377/20447?from_cn_redirect=1 * @type {string || null} */ this.LaunchConfigurePara = null; /** * InstanceAdvancedSettings * @type {InstanceAdvancedSettings || null} */ this.InstanceAdvancedSettings = null; /** * Indicates whether to enable auto scaling * @type {boolean || null} */ this.EnableAutoscale = null; /** * Node pool name * @type {string || null} */ this.Name = null; /** * Labels * @type {Array.<Label> || null} */ this.Labels = null; /** * Taints * @type {Array.<Taint> || null} */ this.Taints = null; /** * Node Annotation List * @type {Array.<AnnotationValue> || null} */ this.Annotations = null; /** * Node pool runtime type and version * @type {string || null} */ this.ContainerRuntime = null; /** * Runtime version * @type {string || null} */ this.RuntimeVersion = null; /** * Node pool operating system (enter the image ID for a custom image, and enter the OS name for a public image) * @type {string || null} */ this.NodePoolOs = null; /** * Container image tag, `DOCKER_CUSTOMIZE` (container customized tag), `GENERAL` (general tag, default value) * @type {string || null} */ this.OsCustomizeType = null; /** * Resource tag * @type {Array.<Tag> || null} */ this.Tags = null; /** * Whether Deletion Protection is enabled * @type {boolean || null} */ this.DeletionProtection = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.AutoScalingGroupPara = 'AutoScalingGroupPara' in params ? params.AutoScalingGroupPara : null; this.LaunchConfigurePara = 'LaunchConfigurePara' in params ? params.LaunchConfigurePara : null; if (params.InstanceAdvancedSettings) { let obj = new InstanceAdvancedSettings(); obj.deserialize(params.InstanceAdvancedSettings) this.InstanceAdvancedSettings = obj; } this.EnableAutoscale = 'EnableAutoscale' in params ? params.EnableAutoscale : null; this.Name = 'Name' in params ? params.Name : null; if (params.Labels) { this.Labels = new Array(); for (let z in params.Labels) { let obj = new Label(); obj.deserialize(params.Labels[z]); this.Labels.push(obj); } } if (params.Taints) { this.Taints = new Array(); for (let z in params.Taints) { let obj = new Taint(); obj.deserialize(params.Taints[z]); this.Taints.push(obj); } } if (params.Annotations) { this.Annotations = new Array(); for (let z in params.Annotations) { let obj = new AnnotationValue(); obj.deserialize(params.Annotations[z]); this.Annotations.push(obj); } } this.ContainerRuntime = 'ContainerRuntime' in params ? params.ContainerRuntime : null; this.RuntimeVersion = 'RuntimeVersion' in params ? params.RuntimeVersion : null; this.NodePoolOs = 'NodePoolOs' in params ? params.NodePoolOs : null; this.OsCustomizeType = 'OsCustomizeType' in params ? params.OsCustomizeType : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new Tag(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null; } } /** * Add-on description * @class */ class Addon extends AbstractModel { constructor(){ super(); /** * Add-on name * @type {string || null} */ this.AddonName = null; /** * Add-on version * @type {string || null} */ this.AddonVersion = null; /** * Add-on parameters, which are base64-encoded strings in JSON/ Note: This field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.RawValues = null; /** * Add-on status Note: This field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.Phase = null; /** * Reason for add-on failure Note: This field may return `null`, indicating that no valid values can be obtained. * @type {string || null} */ this.Reason = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AddonName = 'AddonName' in params ? params.AddonName : null; this.AddonVersion = 'AddonVersion' in params ? params.AddonVersion : null; this.RawValues = 'RawValues' in params ? params.RawValues : null; this.Phase = 'Phase' in params ? params.Phase : null; this.Reason = 'Reason' in params ? params.Reason : null; } } /** * DescribeEdgeClusterUpgradeInfo request structure. * @class */ class DescribeEdgeClusterUpgradeInfoRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Target TKEEdge version * @type {string || null} */ this.EdgeVersion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.EdgeVersion = 'EdgeVersion' in params ? params.EdgeVersion : null; } } /** * Node configuration parameters of different roles * @class */ class RunInstancesForNode extends AbstractModel { constructor(){ super(); /** * Node role. Values: MASTER_ETCD, WORKER. You only need to specify MASTER_ETCD when creating a self-deployed cluster (INDEPENDENT_CLUSTER). * @type {string || null} */ this.NodeRole = null; /** * Pass-through parameter for CVM creation in the format of a JSON string. For more information, see the API for [creating a CVM instance](https://intl.cloud.tencent.com/document/product/213/15730?from_cn_redirect=1). Pass any parameter other than common parameters. ImageId will be replaced with the image corresponding to the TKE cluster operating system. * @type {Array.<string> || null} */ this.RunInstancesPara = null; /** * An advanced node setting. This parameter overrides the InstanceAdvancedSettings item set at the cluster level and corresponds to RunInstancesPara in a one-to-one sequential manner (currently valid for the ExtraArgs node custom parameter only). * @type {Array.<InstanceAdvancedSettings> || null} */ this.InstanceAdvancedSettingsOverrides = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.NodeRole = 'NodeRole' in params ? params.NodeRole : null; this.RunInstancesPara = 'RunInstancesPara' in params ? params.RunInstancesPara : null; if (params.InstanceAdvancedSettingsOverrides) { this.InstanceAdvancedSettingsOverrides = new Array(); for (let z in params.InstanceAdvancedSettingsOverrides) { let obj = new InstanceAdvancedSettings(); obj.deserialize(params.InstanceAdvancedSettingsOverrides[z]); this.InstanceAdvancedSettingsOverrides.push(obj); } } } } /** * DescribeExistedInstances request structure. * @class */ class DescribeExistedInstancesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID. Enter the `ClusterId` field returned when you call the DescribeClusters API (Only VPC ID obtained through `ClusterId` need filtering conditions. When comparing statuses, the nodes on all clusters in this region will be used for comparison. You cannot specify `InstanceIds` and `ClusterId` at the same time.) * @type {string || null} */ this.ClusterId = null; /** * Query by one or more instance ID(s). Instance ID format: ins-xxxxxxxx. (Refer to section ID.N of the API overview for this parameter's specific format.) Up to 100 instances are allowed for each request. You cannot specify InstanceIds and Filters at the same time. * @type {Array.<string> || null} */ this.InstanceIds = null; /** * Filter condition. For fields and other information, see [the DescribeInstances API](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). If a ClusterId has been set, then the cluster's VPC ID will be attached as a query field. In this situation, if a "vpc-id" is specified in Filter, then the specified VPC ID must be consistent with the cluster's VPC ID. * @type {Array.<Filter> || null} */ this.Filters = null; /** * Filter by instance IP (Supports both private and public IPs) * @type {string || null} */ this.VagueIpAddress = null; /** * Filter by instance name * @type {string || null} */ this.VagueInstanceName = null; /** * Offset. Default value: 0. For more information on Offset, see the relevant section in the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @type {number || null} */ this.Offset = null; /** * Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit, see the relevant section in the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @type {number || null} */ this.Limit = null; /** * Filter by multiple instance IPs * @type {Array.<string> || null} */ this.IpAddresses = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.VagueIpAddress = 'VagueIpAddress' in params ? params.VagueIpAddress : null; this.VagueInstanceName = 'VagueInstanceName' in params ? params.VagueInstanceName : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.IpAddresses = 'IpAddresses' in params ? params.IpAddresses : null; } } /** * Cluster model adjustment history * @class */ class ClusterLevelChangeRecord extends AbstractModel { constructor(){ super(); /** * Record ID * @type {string || null} */ this.ID = null; /** * Cluster ID * @type {string || null} */ this.ClusterID = null; /** * Status (valid values: `trading`, `upgrading`, `success`, `failed`) * @type {string || null} */ this.Status = null; /** * Status description * @type {string || null} */ this.Message = null; /** * Original model * @type {string || null} */ this.OldLevel = null; /** * New model * @type {string || null} */ this.NewLevel = null; /** * Trigger type (valid values: `manual`, `auto`) * @type {string || null} */ this.TriggerType = null; /** * Creation time * @type {string || null} */ this.CreatedAt = null; /** * Start time * @type {string || null} */ this.StartedAt = null; /** * End time * @type {string || null} */ this.EndedAt = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ID = 'ID' in params ? params.ID : null; this.ClusterID = 'ClusterID' in params ? params.ClusterID : null; this.Status = 'Status' in params ? params.Status : null; this.Message = 'Message' in params ? params.Message : null; this.OldLevel = 'OldLevel' in params ? params.OldLevel : null; this.NewLevel = 'NewLevel' in params ? params.NewLevel : null; this.TriggerType = 'TriggerType' in params ? params.TriggerType : null; this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null; this.StartedAt = 'StartedAt' in params ? params.StartedAt : null; this.EndedAt = 'EndedAt' in params ? params.EndedAt : null; } } /** * ModifyPrometheusAlertRule response structure. * @class */ class ModifyPrometheusAlertRuleResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Object of cluster route table * @class */ class RouteTableInfo extends AbstractModel { constructor(){ super(); /** * Route table name. * @type {string || null} */ this.RouteTableName = null; /** * Route table CIDR. * @type {string || null} */ this.RouteTableCidrBlock = null; /** * VPC instance ID. * @type {string || null} */ this.VpcId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RouteTableName = 'RouteTableName' in params ? params.RouteTableName : null; this.RouteTableCidrBlock = 'RouteTableCidrBlock' in params ? params.RouteTableCidrBlock : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; } } /** * EnableClusterDeletionProtection response structure. * @class */ class EnableClusterDeletionProtectionResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Cluster-associated scaling group information * @class */ class ClusterAsGroup extends AbstractModel { constructor(){ super(); /** * Scaling group ID * @type {string || null} */ this.AutoScalingGroupId = null; /** * Scaling group status (`enabled`, `enabling`, `disabled`, `disabling`, `updating`, `deleting`, `scaleDownEnabling`, `scaleDownDisabling`) * @type {string || null} */ this.Status = null; /** * Whether the node is set to unschedulable Note: this field may return null, indicating that no valid value was found. * @type {boolean || null} */ this.IsUnschedulable = null; /** * Scaling group label list Note: this field may return null, indicating that no valid value was found. * @type {Array.<Label> || null} */ this.Labels = null; /** * Creation time * @type {string || null} */ this.CreatedTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null; this.Status = 'Status' in params ? params.Status : null; this.IsUnschedulable = 'IsUnschedulable' in params ? params.IsUnschedulable : null; if (params.Labels) { this.Labels = new Array(); for (let z in params.Labels) { let obj = new Label(); obj.deserialize(params.Labels[z]); this.Labels.push(obj); } } this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null; } } /** * CreateBackupStorageLocation response structure. * @class */ class CreateBackupStorageLocationResponse extends AbstractModel { constructor(){ super(); /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Nodes that are manually added * @class */ class ManuallyAdded extends AbstractModel { constructor(){ super(); /** * Number of nodes that are being added * @type {number || null} */ this.Joining = null; /** * Number of nodes that are being initialized * @type {number || null} */ this.Initializing = null; /** * Number of normal nodes * @type {number || null} */ this.Normal = null; /** * Total number of nodes * @type {number || null} */ this.Total = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Joining = 'Joining' in params ? params.Joining : null; this.Initializing = 'Initializing' in params ? params.Initializing : null; this.Normal = 'Normal' in params ? params.Normal : null; this.Total = 'Total' in params ? params.Total : null; } } /** * The type of resource the label is bound to. Type currently supported is **cluster**. * @class */ class Tag extends AbstractModel { constructor(){ super(); /** * Tag key. * @type {string || null} */ this.Key = null; /** * Tag value. * @type {string || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Key = 'Key' in params ? params.Key : null; this.Value = 'Value' in params ? params.Value : null; } } /** * ModifyClusterAttribute request structure. * @class */ class ModifyClusterAttributeRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Project of the Cluster * @type {number || null} */ this.ProjectId = null; /** * Cluster name * @type {string || null} */ this.ClusterName = null; /** * Cluster description * @type {string || null} */ this.ClusterDesc = null; /** * Cluster specification * @type {string || null} */ this.ClusterLevel = null; /** * Auto-upgrades cluster specification * @type {AutoUpgradeClusterLevel || null} */ this.AutoUpgradeClusterLevel = null; /** * Whether to enable qGPU Sharing * @type {boolean || null} */ this.QGPUShareEnable = null; /** * Cluster attributes * @type {ClusterProperty || null} */ this.ClusterProperty = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.ClusterName = 'ClusterName' in params ? params.ClusterName : null; this.ClusterDesc = 'ClusterDesc' in params ? params.ClusterDesc : null; this.ClusterLevel = 'ClusterLevel' in params ? params.ClusterLevel : null; if (params.AutoUpgradeClusterLevel) { let obj = new AutoUpgradeClusterLevel(); obj.deserialize(params.AutoUpgradeClusterLevel) this.AutoUpgradeClusterLevel = obj; } this.QGPUShareEnable = 'QGPUShareEnable' in params ? params.QGPUShareEnable : null; if (params.ClusterProperty) { let obj = new ClusterProperty(); obj.deserialize(params.ClusterProperty) this.ClusterProperty = obj; } } } /** * DescribeClusterRoutes response structure. * @class */ class DescribeClusterRoutesResponse extends AbstractModel { constructor(){ super(); /** * Number of instances that match the filter condition(s). * @type {number || null} */ this.TotalCount = null; /** * Object of cluster route. * @type {Array.<RouteInfo> || null} */ this.RouteSet = null; /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.RouteSet) { this.RouteSet = new Array(); for (let z in params.RouteSet) { let obj = new RouteInfo(); obj.deserialize(params.RouteSet[z]); this.RouteSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeClusters request structure. * @class */ class DescribeClustersRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID list (When it is empty, all clusters under the account will be obtained) * @type {Array.<string> || null} */ this.ClusterIds = null; /** * Offset. Default value: 0 * @type {number || null} */ this.Offset = null; /** * Maximum number of output entries. Default value: 20 * @type {number || null} */ this.Limit = null; /** * · "Name":"ClusterName","Values": ["test"] Filter by the [cluster name]. Type: String Required: No · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] Filter by the [cluster type]. Type: String Required: No · "Name":"ClusterStatus","Values": ["Running"] Filter by the [cluster status]. Type: String Required: No · "Name":"vpc-id","Values": ["vpc-123qajzs"] Filter by the [VPC]. Type: String Required: No · "Name":"tag-key","Values": ["testKey"] Filter by the [tag key]. Type: String Required: No · "Name":"tag-value","Values": ["testValue"] Filter by the [tag value]. Type: String Required: No · "Name":"Tags","Values": ["abc:1"] Filter by [key-value pairs of tags]. Type: String Required: No * @type {Array.<Filter> || null} */ this.Filters = null; /** * Cluster type, such as `MANAGED_CLUSTER` * @type {string || null} */ this.ClusterType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterIds = 'ClusterIds' in params ? params.ClusterIds : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.ClusterType = 'ClusterType' in params ? params.ClusterType : null; } } /** * UpgradeClusterInstances request structure. * @class */ class UpgradeClusterInstancesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * create: starting an upgrade task pause: pausing the task resume: continuing the task abort: stopping the task * @type {string || null} */ this.Operation = null; /** * Upgrade type. It’s only required when `Operation` is set as `create`. reset: the reinstallation and upgrade of major version hot: the hot upgrade of minor version major: in-place upgrade of major version * @type {string || null} */ this.UpgradeType = null; /** * List of nodes that need to upgrade * @type {Array.<string> || null} */ this.InstanceIds = null; /** * This parameter is used when the node joins the cluster again. Refer to the API of creating one or more cluster nodes. * @type {UpgradeNodeResetParam || null} */ this.ResetParam = null; /** * Whether to skip the pre-upgrade check of the node * @type {boolean || null} */ this.SkipPreCheck = null; /** * The maximum tolerable proportion of unavailable pods * @type {number || null} */ this.MaxNotReadyPercent = null; /** * Whether to upgrade node runtime. Values: `true`, `false` (default). * @type {boolean || null} */ this.UpgradeRunTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Operation = 'Operation' in params ? params.Operation : null; this.UpgradeType = 'UpgradeType' in params ? params.UpgradeType : null; this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null; if (params.ResetParam) { let obj = new UpgradeNodeResetParam(); obj.deserialize(params.ResetParam) this.ResetParam = obj; } this.SkipPreCheck = 'SkipPreCheck' in params ? params.SkipPreCheck : null; this.MaxNotReadyPercent = 'MaxNotReadyPercent' in params ? params.MaxNotReadyPercent : null; this.UpgradeRunTime = 'UpgradeRunTime' in params ? params.UpgradeRunTime : null; } } /** * Information of the add-on selected for installation during cluster creation * @class */ class ExtensionAddon extends AbstractModel { constructor(){ super(); /** * Add-on name * @type {string || null} */ this.AddonName = null; /** * Add-on information (description of the add-on resource object in JSON string format) * @type {string || null} */ this.AddonParam = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AddonName = 'AddonName' in params ? params.AddonName : null; this.AddonParam = 'AddonParam' in params ? params.AddonParam : null; } } /** * DescribeAddonValues request structure. * @class */ class DescribeAddonValuesRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Add-on name * @type {string || null} */ this.AddonName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.AddonName = 'AddonName' in params ? params.AddonName : null; } } /** * DescribeResourceUsage request structure. * @class */ class DescribeResourceUsageRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; } } /** * k8s tags, generally exist as an array * @class */ class Label extends AbstractModel { constructor(){ super(); /** * Name in map list * @type {string || null} */ this.Name = null; /** * Value in map list * @type {string || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Value = 'Value' in params ? params.Value : null; } } /** * The maximum number of Pods in VPC-CNI mode supported by a model * @class */ class PodLimitsByType extends AbstractModel { constructor(){ super(); /** * The number of Pods supported by a TKE shared ENI in non-static IP address mode Note: this field may return `null`, indicating that no valid value can be obtained. * @type {number || null} */ this.TKERouteENINonStaticIP = null; /** * The number of Pods supported by a TKE shared ENI in static IP address mode Note: this field may return `null`, indicating that no valid value can be obtained. * @type {number || null} */ this.TKERouteENIStaticIP = null; /** * The number of Pods supported by TKE independent ENI mode Note: this field may return `null`, indicating that no valid value can be obtained. * @type {number || null} */ this.TKEDirectENI = null; /** * Number of Pods supported by TKE relay network card mode Note: This field may return "null", indicating that no valid value can be obtained. * @type {number || null} */ this.TKESubENI = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TKERouteENINonStaticIP = 'TKERouteENINonStaticIP' in params ? params.TKERouteENINonStaticIP : null; this.TKERouteENIStaticIP = 'TKERouteENIStaticIP' in params ? params.TKERouteENIStaticIP : null; this.TKEDirectENI = 'TKEDirectENI' in params ? params.TKEDirectENI : null; this.TKESubENI = 'TKESubENI' in params ? params.TKESubENI : null; } } /** * CreateEdgeLogConfig request structure. * @class */ class CreateEdgeLogConfigRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Log collection configuration in json form * @type {string || null} */ this.LogConfig = null; /** * CLS logset ID * @type {string || null} */ this.LogsetId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.LogConfig = 'LogConfig' in params ? params.LogConfig : null; this.LogsetId = 'LogsetId' in params ? params.LogsetId : null; } } /** * DescribeTKEEdgeClusterStatus response structure. * @class */ class DescribeTKEEdgeClusterStatusResponse extends AbstractModel { constructor(){ super(); /** * Current cluster status * @type {string || null} */ this.Phase = null; /** * Array of cluster processes * @type {Array.<ClusterCondition> || null} */ this.Conditions = null; /** * 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. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Phase = 'Phase' in params ? params.Phase : null; if (params.Conditions) { this.Conditions = new Array(); for (let z in params.Conditions) { let obj = new ClusterCondition(); obj.deserialize(params.Conditions[z]); this.Conditions.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeClusterStatus request structure. * @class */ class DescribeClusterStatusRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID list. All clusters are pulled if it is left empty.