tencentcloud-sdk-nodejs-intl-en 3.0.412 → 3.0.415

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2541,6 +2541,12 @@ class ModifyAlarmNoticeRequest extends AbstractModel {
2541
2541
  */
2542
2542
  this.URLNotices = null;
2543
2543
 
2544
+ /**
2545
+ * The operation of pushing alarm notifications to CLS. Up to one CLS log topic can be configured.
2546
+ * @type {Array.<CLSNotice> || null}
2547
+ */
2548
+ this.CLSNotices = null;
2549
+
2544
2550
  }
2545
2551
 
2546
2552
  /**
@@ -2574,6 +2580,15 @@ class ModifyAlarmNoticeRequest extends AbstractModel {
2574
2580
  }
2575
2581
  }
2576
2582
 
2583
+ if (params.CLSNotices) {
2584
+ this.CLSNotices = new Array();
2585
+ for (let z in params.CLSNotices) {
2586
+ let obj = new CLSNotice();
2587
+ obj.deserialize(params.CLSNotices[z]);
2588
+ this.CLSNotices.push(obj);
2589
+ }
2590
+ }
2591
+
2577
2592
  }
2578
2593
  }
2579
2594
 
@@ -6535,6 +6550,12 @@ It can be queried with the API [DescribeAlarmNotices](https://intl.cloud.tencent
6535
6550
  */
6536
6551
  this.NeedCorrespondence = null;
6537
6552
 
6553
+ /**
6554
+ * Filter alarm policy by triggered task (such as auto scaling task). Up to 10 tasks can be specified.
6555
+ * @type {Array.<AlarmPolicyTriggerTask> || null}
6556
+ */
6557
+ this.TriggerTasks = null;
6558
+
6538
6559
  }
6539
6560
 
6540
6561
  /**
@@ -6564,6 +6585,15 @@ It can be queried with the API [DescribeAlarmNotices](https://intl.cloud.tencent
6564
6585
  this.InstanceGroupId = 'InstanceGroupId' in params ? params.InstanceGroupId : null;
6565
6586
  this.NeedCorrespondence = 'NeedCorrespondence' in params ? params.NeedCorrespondence : null;
6566
6587
 
6588
+ if (params.TriggerTasks) {
6589
+ this.TriggerTasks = new Array();
6590
+ for (let z in params.TriggerTasks) {
6591
+ let obj = new AlarmPolicyTriggerTask();
6592
+ obj.deserialize(params.TriggerTasks[z]);
6593
+ this.TriggerTasks.push(obj);
6594
+ }
6595
+ }
6596
+
6567
6597
  }
6568
6598
  }
6569
6599
 
@@ -6809,6 +6839,13 @@ Note: this field may return null, indicating that no valid values can be obtaine
6809
6839
  */
6810
6840
  this.PolicyIds = null;
6811
6841
 
6842
+ /**
6843
+ * Channel to push alarm notifications to CLS.
6844
+ Note: This field may return `null`, indicating that no valid values can be obtained.
6845
+ * @type {Array.<CLSNotice> || null}
6846
+ */
6847
+ this.CLSNotices = null;
6848
+
6812
6849
  }
6813
6850
 
6814
6851
  /**
@@ -6845,6 +6882,15 @@ Note: this field may return null, indicating that no valid values can be obtaine
6845
6882
  this.NoticeLanguage = 'NoticeLanguage' in params ? params.NoticeLanguage : null;
6846
6883
  this.PolicyIds = 'PolicyIds' in params ? params.PolicyIds : null;
6847
6884
 
6885
+ if (params.CLSNotices) {
6886
+ this.CLSNotices = new Array();
6887
+ for (let z in params.CLSNotices) {
6888
+ let obj = new CLSNotice();
6889
+ obj.deserialize(params.CLSNotices[z]);
6890
+ this.CLSNotices.push(obj);
6891
+ }
6892
+ }
6893
+
6848
6894
  }
6849
6895
  }
6850
6896
 
@@ -9141,6 +9187,12 @@ class CreateAlarmNoticeRequest extends AbstractModel {
9141
9187
  */
9142
9188
  this.URLNotices = null;
9143
9189
 
9190
+ /**
9191
+ * The operation of pushing alarm notifications to CLS. Up to one CLS log topic can be configured.
9192
+ * @type {Array.<CLSNotice> || null}
9193
+ */
9194
+ this.CLSNotices = null;
9195
+
9144
9196
  }
9145
9197
 
9146
9198
  /**
@@ -9173,6 +9225,15 @@ class CreateAlarmNoticeRequest extends AbstractModel {
9173
9225
  }
9174
9226
  }
9175
9227
 
9228
+ if (params.CLSNotices) {
9229
+ this.CLSNotices = new Array();
9230
+ for (let z in params.CLSNotices) {
9231
+ let obj = new CLSNotice();
9232
+ obj.deserialize(params.CLSNotices[z]);
9233
+ this.CLSNotices.push(obj);
9234
+ }
9235
+ }
9236
+
9176
9237
  }
9177
9238
  }
9178
9239
 
@@ -9450,6 +9511,55 @@ class UnBindingAllPolicyObjectRequest extends AbstractModel {
9450
9511
  }
9451
9512
  }
9452
9513
 
9514
+ /**
9515
+ * The operation of pushing alarm notifications to CLS
9516
+ * @class
9517
+ */
9518
+ class CLSNotice extends AbstractModel {
9519
+ constructor(){
9520
+ super();
9521
+
9522
+ /**
9523
+ * Region.
9524
+ * @type {string || null}
9525
+ */
9526
+ this.Region = null;
9527
+
9528
+ /**
9529
+ * Logset ID.
9530
+ * @type {string || null}
9531
+ */
9532
+ this.LogSetId = null;
9533
+
9534
+ /**
9535
+ * Topic ID.
9536
+ * @type {string || null}
9537
+ */
9538
+ this.TopicId = null;
9539
+
9540
+ /**
9541
+ * Status. Valid values: `0` (disabled), `1` (enabled). Default value: `1` (enabled). This parameter can be left empty.
9542
+ * @type {number || null}
9543
+ */
9544
+ this.Enable = null;
9545
+
9546
+ }
9547
+
9548
+ /**
9549
+ * @private
9550
+ */
9551
+ deserialize(params) {
9552
+ if (!params) {
9553
+ return;
9554
+ }
9555
+ this.Region = 'Region' in params ? params.Region : null;
9556
+ this.LogSetId = 'LogSetId' in params ? params.LogSetId : null;
9557
+ this.TopicId = 'TopicId' in params ? params.TopicId : null;
9558
+ this.Enable = 'Enable' in params ? params.Enable : null;
9559
+
9560
+ }
9561
+ }
9562
+
9453
9563
  /**
9454
9564
  * Event alarm conditions output by the policy query
9455
9565
  * @class
@@ -10033,6 +10143,7 @@ module.exports = {
10033
10143
  GetMonitorDataResponse: GetMonitorDataResponse,
10034
10144
  ReceiverInfo: ReceiverInfo,
10035
10145
  UnBindingAllPolicyObjectRequest: UnBindingAllPolicyObjectRequest,
10146
+ CLSNotice: CLSNotice,
10036
10147
  DescribePolicyGroupInfoEventCondition: DescribePolicyGroupInfoEventCondition,
10037
10148
  SendCustomAlarmMsgResponse: SendCustomAlarmMsgResponse,
10038
10149
  AlarmPolicyCondition: AlarmPolicyCondition,
@@ -158,6 +158,7 @@ const InstanceGroups = models.InstanceGroups;
158
158
  const GetMonitorDataResponse = models.GetMonitorDataResponse;
159
159
  const ReceiverInfo = models.ReceiverInfo;
160
160
  const UnBindingAllPolicyObjectRequest = models.UnBindingAllPolicyObjectRequest;
161
+ const CLSNotice = models.CLSNotice;
161
162
  const DescribePolicyGroupInfoEventCondition = models.DescribePolicyGroupInfoEventCondition;
162
163
  const SendCustomAlarmMsgResponse = models.SendCustomAlarmMsgResponse;
163
164
  const AlarmPolicyCondition = models.AlarmPolicyCondition;
@@ -1217,30 +1217,18 @@ Note: this field may return `null`, indicating that no valid values can be obtai
1217
1217
  }
1218
1218
 
1219
1219
  /**
1220
- * DeleteCluster request structure.
1220
+ * Auto-upgrades cluster specification
1221
1221
  * @class
1222
1222
  */
1223
- class DeleteClusterRequest extends AbstractModel {
1223
+ class AutoUpgradeClusterLevel extends AbstractModel {
1224
1224
  constructor(){
1225
1225
  super();
1226
1226
 
1227
1227
  /**
1228
- * Cluster ID
1229
- * @type {string || null}
1230
- */
1231
- this.ClusterId = null;
1232
-
1233
- /**
1234
- * Policy used to delete an instance in the cluster: terminate (terminates the instance. Only available for instances on pay-as-you-go CVMs); retain (only removes it from the cluster. The instance will be retained.)
1235
- * @type {string || null}
1236
- */
1237
- this.InstanceDeleteMode = null;
1238
-
1239
- /**
1240
- * Specifies the policy to deal with resources in the cluster when the cluster is deleted. It only supports CBS now. The default policy is to retain CBS disks.
1241
- * @type {Array.<ResourceDeleteOption> || null}
1228
+ * Whether to enable Auto Cluster Upgrade
1229
+ * @type {boolean || null}
1242
1230
  */
1243
- this.ResourceDeleteOptions = null;
1231
+ this.IsAutoUpgrade = null;
1244
1232
 
1245
1233
  }
1246
1234
 
@@ -1251,17 +1239,7 @@ class DeleteClusterRequest extends AbstractModel {
1251
1239
  if (!params) {
1252
1240
  return;
1253
1241
  }
1254
- this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1255
- this.InstanceDeleteMode = 'InstanceDeleteMode' in params ? params.InstanceDeleteMode : null;
1256
-
1257
- if (params.ResourceDeleteOptions) {
1258
- this.ResourceDeleteOptions = new Array();
1259
- for (let z in params.ResourceDeleteOptions) {
1260
- let obj = new ResourceDeleteOption();
1261
- obj.deserialize(params.ResourceDeleteOptions[z]);
1262
- this.ResourceDeleteOptions.push(obj);
1263
- }
1264
- }
1242
+ this.IsAutoUpgrade = 'IsAutoUpgrade' in params ? params.IsAutoUpgrade : null;
1265
1243
 
1266
1244
  }
1267
1245
  }
@@ -2246,6 +2224,18 @@ class ModifyClusterAttributeRequest extends AbstractModel {
2246
2224
  */
2247
2225
  this.ClusterDesc = null;
2248
2226
 
2227
+ /**
2228
+ * Cluster specification
2229
+ * @type {string || null}
2230
+ */
2231
+ this.ClusterLevel = null;
2232
+
2233
+ /**
2234
+ * Auto-upgrades cluster specification
2235
+ * @type {AutoUpgradeClusterLevel || null}
2236
+ */
2237
+ this.AutoUpgradeClusterLevel = null;
2238
+
2249
2239
  }
2250
2240
 
2251
2241
  /**
@@ -2259,6 +2249,13 @@ class ModifyClusterAttributeRequest extends AbstractModel {
2259
2249
  this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
2260
2250
  this.ClusterName = 'ClusterName' in params ? params.ClusterName : null;
2261
2251
  this.ClusterDesc = 'ClusterDesc' in params ? params.ClusterDesc : null;
2252
+ this.ClusterLevel = 'ClusterLevel' in params ? params.ClusterLevel : null;
2253
+
2254
+ if (params.AutoUpgradeClusterLevel) {
2255
+ let obj = new AutoUpgradeClusterLevel();
2256
+ obj.deserialize(params.AutoUpgradeClusterLevel)
2257
+ this.AutoUpgradeClusterLevel = obj;
2258
+ }
2262
2259
 
2263
2260
  }
2264
2261
  }
@@ -3067,6 +3064,18 @@ class ClusterBasicSettings extends AbstractModel {
3067
3064
  */
3068
3065
  this.SubnetId = null;
3069
3066
 
3067
+ /**
3068
+ * Cluster specifications available for managed clusters
3069
+ * @type {string || null}
3070
+ */
3071
+ this.ClusterLevel = null;
3072
+
3073
+ /**
3074
+ * Auto cluster upgrade for managed clusters
3075
+ * @type {AutoUpgradeClusterLevel || null}
3076
+ */
3077
+ this.AutoUpgradeClusterLevel = null;
3078
+
3070
3079
  }
3071
3080
 
3072
3081
  /**
@@ -3094,6 +3103,13 @@ class ClusterBasicSettings extends AbstractModel {
3094
3103
  this.OsCustomizeType = 'OsCustomizeType' in params ? params.OsCustomizeType : null;
3095
3104
  this.NeedWorkSecurityGroup = 'NeedWorkSecurityGroup' in params ? params.NeedWorkSecurityGroup : null;
3096
3105
  this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
3106
+ this.ClusterLevel = 'ClusterLevel' in params ? params.ClusterLevel : null;
3107
+
3108
+ if (params.AutoUpgradeClusterLevel) {
3109
+ let obj = new AutoUpgradeClusterLevel();
3110
+ obj.deserialize(params.AutoUpgradeClusterLevel)
3111
+ this.AutoUpgradeClusterLevel = obj;
3112
+ }
3097
3113
 
3098
3114
  }
3099
3115
  }
@@ -6929,7 +6945,7 @@ class Cluster extends AbstractModel {
6929
6945
  this.TagSpecification = null;
6930
6946
 
6931
6947
  /**
6932
- * Cluster status (Running, Creating, or Abnormal)
6948
+ * Cluster status (`Running`, `Creating`, `Idling` or `Abnormal`)
6933
6949
  * @type {string || null}
6934
6950
  */
6935
6951
  this.ClusterStatus = null;
@@ -6988,6 +7004,18 @@ Note: this field may return `null`, indicating that no valid value can be obtain
6988
7004
  */
6989
7005
  this.EnableExternalNode = null;
6990
7006
 
7007
+ /**
7008
+ *
7009
+ * @type {string || null}
7010
+ */
7011
+ this.ClusterLevel = null;
7012
+
7013
+ /**
7014
+ *
7015
+ * @type {boolean || null}
7016
+ */
7017
+ this.AutoUpgradeClusterLevel = null;
7018
+
6991
7019
  }
6992
7020
 
6993
7021
  /**
@@ -7029,6 +7057,8 @@ Note: this field may return `null`, indicating that no valid value can be obtain
7029
7057
  this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
7030
7058
  this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null;
7031
7059
  this.EnableExternalNode = 'EnableExternalNode' in params ? params.EnableExternalNode : null;
7060
+ this.ClusterLevel = 'ClusterLevel' in params ? params.ClusterLevel : null;
7061
+ this.AutoUpgradeClusterLevel = 'AutoUpgradeClusterLevel' in params ? params.AutoUpgradeClusterLevel : null;
7032
7062
 
7033
7063
  }
7034
7064
  }
@@ -7415,6 +7445,20 @@ Note: this field may return null, indicating that no valid values can be obtaine
7415
7445
  */
7416
7446
  this.ClusterDesc = null;
7417
7447
 
7448
+ /**
7449
+ * Cluster specification
7450
+ Note: This field may return `null`, indicating that no valid values can be obtained.
7451
+ * @type {string || null}
7452
+ */
7453
+ this.ClusterLevel = null;
7454
+
7455
+ /**
7456
+ * Auto-upgrades cluster specification
7457
+ Note: This field may return `null`, indicating that no valid values can be obtained.
7458
+ * @type {AutoUpgradeClusterLevel || null}
7459
+ */
7460
+ this.AutoUpgradeClusterLevel = null;
7461
+
7418
7462
  /**
7419
7463
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
7420
7464
  * @type {string || null}
@@ -7433,6 +7477,13 @@ Note: this field may return null, indicating that no valid values can be obtaine
7433
7477
  this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
7434
7478
  this.ClusterName = 'ClusterName' in params ? params.ClusterName : null;
7435
7479
  this.ClusterDesc = 'ClusterDesc' in params ? params.ClusterDesc : null;
7480
+ this.ClusterLevel = 'ClusterLevel' in params ? params.ClusterLevel : null;
7481
+
7482
+ if (params.AutoUpgradeClusterLevel) {
7483
+ let obj = new AutoUpgradeClusterLevel();
7484
+ obj.deserialize(params.AutoUpgradeClusterLevel)
7485
+ this.AutoUpgradeClusterLevel = obj;
7486
+ }
7436
7487
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
7437
7488
 
7438
7489
  }
@@ -8975,6 +9026,56 @@ class DeleteClusterNodePoolResponse extends AbstractModel {
8975
9026
  }
8976
9027
  }
8977
9028
 
9029
+ /**
9030
+ * DeleteCluster request structure.
9031
+ * @class
9032
+ */
9033
+ class DeleteClusterRequest extends AbstractModel {
9034
+ constructor(){
9035
+ super();
9036
+
9037
+ /**
9038
+ * Cluster ID
9039
+ * @type {string || null}
9040
+ */
9041
+ this.ClusterId = null;
9042
+
9043
+ /**
9044
+ * Policy used to delete an instance in the cluster: terminate (terminates the instance. Only available for instances on pay-as-you-go CVMs); retain (only removes it from the cluster. The instance will be retained.)
9045
+ * @type {string || null}
9046
+ */
9047
+ this.InstanceDeleteMode = null;
9048
+
9049
+ /**
9050
+ * Specifies the policy to deal with resources in the cluster when the cluster is deleted. It only supports CBS now. The default policy is to retain CBS disks.
9051
+ * @type {Array.<ResourceDeleteOption> || null}
9052
+ */
9053
+ this.ResourceDeleteOptions = null;
9054
+
9055
+ }
9056
+
9057
+ /**
9058
+ * @private
9059
+ */
9060
+ deserialize(params) {
9061
+ if (!params) {
9062
+ return;
9063
+ }
9064
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
9065
+ this.InstanceDeleteMode = 'InstanceDeleteMode' in params ? params.InstanceDeleteMode : null;
9066
+
9067
+ if (params.ResourceDeleteOptions) {
9068
+ this.ResourceDeleteOptions = new Array();
9069
+ for (let z in params.ResourceDeleteOptions) {
9070
+ let obj = new ResourceDeleteOption();
9071
+ obj.deserialize(params.ResourceDeleteOptions[z]);
9072
+ this.ResourceDeleteOptions.push(obj);
9073
+ }
9074
+ }
9075
+
9076
+ }
9077
+ }
9078
+
8978
9079
  /**
8979
9080
  * Describes information related to the Cloud Monitor service.
8980
9081
  * @class
@@ -9517,7 +9618,7 @@ module.exports = {
9517
9618
  ServiceAccountAuthenticationOptions: ServiceAccountAuthenticationOptions,
9518
9619
  InstanceUpgradeProgressItem: InstanceUpgradeProgressItem,
9519
9620
  NodePool: NodePool,
9520
- DeleteClusterRequest: DeleteClusterRequest,
9621
+ AutoUpgradeClusterLevel: AutoUpgradeClusterLevel,
9521
9622
  RunInstancesForNode: RunInstancesForNode,
9522
9623
  DeleteClusterAsGroupsRequest: DeleteClusterAsGroupsRequest,
9523
9624
  DescribeExistedInstancesRequest: DescribeExistedInstancesRequest,
@@ -9669,6 +9770,7 @@ module.exports = {
9669
9770
  DescribeClusterAsGroupOptionResponse: DescribeClusterAsGroupOptionResponse,
9670
9771
  ClusterAsGroupAttribute: ClusterAsGroupAttribute,
9671
9772
  DeleteClusterNodePoolResponse: DeleteClusterNodePoolResponse,
9773
+ DeleteClusterRequest: DeleteClusterRequest,
9672
9774
  RunMonitorServiceEnabled: RunMonitorServiceEnabled,
9673
9775
  UpdateClusterVersionResponse: UpdateClusterVersionResponse,
9674
9776
  CreateClusterNodePoolResponse: CreateClusterNodePoolResponse,
@@ -39,7 +39,7 @@ const RouteInfo = models.RouteInfo;
39
39
  const ServiceAccountAuthenticationOptions = models.ServiceAccountAuthenticationOptions;
40
40
  const InstanceUpgradeProgressItem = models.InstanceUpgradeProgressItem;
41
41
  const NodePool = models.NodePool;
42
- const DeleteClusterRequest = models.DeleteClusterRequest;
42
+ const AutoUpgradeClusterLevel = models.AutoUpgradeClusterLevel;
43
43
  const RunInstancesForNode = models.RunInstancesForNode;
44
44
  const DeleteClusterAsGroupsRequest = models.DeleteClusterAsGroupsRequest;
45
45
  const DescribeExistedInstancesRequest = models.DescribeExistedInstancesRequest;
@@ -191,6 +191,7 @@ const CommonName = models.CommonName;
191
191
  const DescribeClusterAsGroupOptionResponse = models.DescribeClusterAsGroupOptionResponse;
192
192
  const ClusterAsGroupAttribute = models.ClusterAsGroupAttribute;
193
193
  const DeleteClusterNodePoolResponse = models.DeleteClusterNodePoolResponse;
194
+ const DeleteClusterRequest = models.DeleteClusterRequest;
194
195
  const RunMonitorServiceEnabled = models.RunMonitorServiceEnabled;
195
196
  const UpdateClusterVersionResponse = models.UpdateClusterVersionResponse;
196
197
  const CreateClusterNodePoolResponse = models.CreateClusterNodePoolResponse;