tencentcloud-sdk-nodejs-intl-en 3.0.345 → 3.0.346

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.
@@ -57,7 +57,7 @@ const ZoneInfo = models.ZoneInfo;
57
57
  const RegisterTargetsWithClassicalLBResponse = models.RegisterTargetsWithClassicalLBResponse;
58
58
  const DescribeTargetGroupsResponse = models.DescribeTargetGroupsResponse;
59
59
  const LoadBalancerHealth = models.LoadBalancerHealth;
60
- const SetLoadBalancerClsLogRequest = models.SetLoadBalancerClsLogRequest;
60
+ const ModifyLoadBalancerSlaResponse = models.ModifyLoadBalancerSlaResponse;
61
61
  const DeleteLoadBalancerListenersRequest = models.DeleteLoadBalancerListenersRequest;
62
62
  const BlockedIP = models.BlockedIP;
63
63
  const ModifyRuleResponse = models.ModifyRuleResponse;
@@ -71,6 +71,7 @@ const DescribeTaskStatusResponse = models.DescribeTaskStatusResponse;
71
71
  const BatchRegisterTargetsResponse = models.BatchRegisterTargetsResponse;
72
72
  const ModifyLoadBalancerAttributesRequest = models.ModifyLoadBalancerAttributesRequest;
73
73
  const DescribeLBListenersRequest = models.DescribeLBListenersRequest;
74
+ const SlaUpdateParam = models.SlaUpdateParam;
74
75
  const Target = models.Target;
75
76
  const DescribeLoadBalancerTrafficRequest = models.DescribeLoadBalancerTrafficRequest;
76
77
  const DescribeBlockIPListRequest = models.DescribeBlockIPListRequest;
@@ -172,10 +173,12 @@ const SnatIp = models.SnatIp;
172
173
  const DescribeBlockIPTaskResponse = models.DescribeBlockIPTaskResponse;
173
174
  const DescribeClassicalLBListenersResponse = models.DescribeClassicalLBListenersResponse;
174
175
  const ModifyTargetGroupAttributeResponse = models.ModifyTargetGroupAttributeResponse;
176
+ const ModifyLoadBalancerSlaRequest = models.ModifyLoadBalancerSlaRequest;
175
177
  const DescribeBlockIPTaskRequest = models.DescribeBlockIPTaskRequest;
176
178
  const CreateLoadBalancerResponse = models.CreateLoadBalancerResponse;
177
179
  const DescribeRewriteResponse = models.DescribeRewriteResponse;
178
180
  const Quota = models.Quota;
181
+ const SetLoadBalancerClsLogRequest = models.SetLoadBalancerClsLogRequest;
179
182
  const LBItem = models.LBItem;
180
183
  const DeleteLoadBalancerListenersResponse = models.DeleteLoadBalancerListenersResponse;
181
184
  const DescribeListenersRequest = models.DescribeListenersRequest;
@@ -222,6 +225,17 @@ This is an async API. After it is returned successfully, you can call the Descri
222
225
  this.request("RegisterTargets", req, resp, cb);
223
226
  }
224
227
 
228
+ /**
229
+ * This API is used to upgrade shared CLB instances to LCU-supported CLB instances (downgrade is not allowed) and upgrade/downgrade the specification of LCU-supported instances.
230
+ * @param {ModifyLoadBalancerSlaRequest} req
231
+ * @param {function(string, ModifyLoadBalancerSlaResponse):void} cb
232
+ * @public
233
+ */
234
+ ModifyLoadBalancerSla(req, cb) {
235
+ let resp = new ModifyLoadBalancerSlaResponse();
236
+ this.request("ModifyLoadBalancerSla", req, resp, cb);
237
+ }
238
+
225
239
  /**
226
240
  * This API is used to query the list of CLB instances associated with a certificate in a region by certificate ID.
227
241
  * @param {DescribeLoadBalancerListByCertIdRequest} req
@@ -2057,36 +2057,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
2057
2057
  }
2058
2058
 
2059
2059
  /**
2060
- * SetLoadBalancerClsLog request structure.
2060
+ * ModifyLoadBalancerSla response structure.
2061
2061
  * @class
2062
2062
  */
2063
- class SetLoadBalancerClsLogRequest extends AbstractModel {
2063
+ class ModifyLoadBalancerSlaResponse extends AbstractModel {
2064
2064
  constructor(){
2065
2065
  super();
2066
2066
 
2067
2067
  /**
2068
- * CLB instance ID
2069
- * @type {string || null}
2070
- */
2071
- this.LoadBalancerId = null;
2072
-
2073
- /**
2074
- * CLS logset ID
2075
- * @type {string || null}
2076
- */
2077
- this.LogSetId = null;
2078
-
2079
- /**
2080
- * CLS log topic ID
2081
- * @type {string || null}
2082
- */
2083
- this.LogTopicId = null;
2084
-
2085
- /**
2086
- * Log type. Valid values: ACCESS (access logs; default value) and HEALTH (health check logs).
2068
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2087
2069
  * @type {string || null}
2088
2070
  */
2089
- this.LogType = null;
2071
+ this.RequestId = null;
2090
2072
 
2091
2073
  }
2092
2074
 
@@ -2097,10 +2079,7 @@ class SetLoadBalancerClsLogRequest extends AbstractModel {
2097
2079
  if (!params) {
2098
2080
  return;
2099
2081
  }
2100
- this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
2101
- this.LogSetId = 'LogSetId' in params ? params.LogSetId : null;
2102
- this.LogTopicId = 'LogTopicId' in params ? params.LogTopicId : null;
2103
- this.LogType = 'LogType' in params ? params.LogType : null;
2082
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2104
2083
 
2105
2084
  }
2106
2085
  }
@@ -2682,6 +2661,41 @@ class DescribeLBListenersRequest extends AbstractModel {
2682
2661
  }
2683
2662
  }
2684
2663
 
2664
+ /**
2665
+ * Parameter for instance specification adjustment
2666
+ * @class
2667
+ */
2668
+ class SlaUpdateParam extends AbstractModel {
2669
+ constructor(){
2670
+ super();
2671
+
2672
+ /**
2673
+ * ID of the CLB instance
2674
+ * @type {string || null}
2675
+ */
2676
+ this.LoadBalancerId = null;
2677
+
2678
+ /**
2679
+ * Target instance specification
2680
+ * @type {string || null}
2681
+ */
2682
+ this.SlaType = null;
2683
+
2684
+ }
2685
+
2686
+ /**
2687
+ * @private
2688
+ */
2689
+ deserialize(params) {
2690
+ if (!params) {
2691
+ return;
2692
+ }
2693
+ this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
2694
+ this.SlaType = 'SlaType' in params ? params.SlaType : null;
2695
+
2696
+ }
2697
+ }
2698
+
2685
2699
  /**
2686
2700
  * Redirect target, i.e., the real server bound to a CLB
2687
2701
  * @class
@@ -7697,13 +7711,13 @@ class CreateLoadBalancerSnatIpsRequest extends AbstractModel {
7697
7711
  this.LoadBalancerId = null;
7698
7712
 
7699
7713
  /**
7700
- * Information of the SNAT IP to be added. You can apply for a specified IP or apply for an automatically assigned IP by specifying a subnet.
7714
+ * Information of the SNAT IP to be added. You can specify a SNAT IP or use the one automatically assigned by a subnet.
7701
7715
  * @type {Array.<SnatIp> || null}
7702
7716
  */
7703
7717
  this.SnatIps = null;
7704
7718
 
7705
7719
  /**
7706
- * Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available.
7720
+ * Number of SNAT IPs to be added. This parameter is used in conjunction with `SnatIps`. Note that if `Ip` is specified in `SnapIps`, this parameter is not available. It defaults to `1` and the upper limit is `10`.
7707
7721
  * @type {number || null}
7708
7722
  */
7709
7723
  this.Number = null;
@@ -8314,6 +8328,42 @@ class ModifyTargetGroupAttributeResponse extends AbstractModel {
8314
8328
  }
8315
8329
  }
8316
8330
 
8331
+ /**
8332
+ * ModifyLoadBalancerSla request structure.
8333
+ * @class
8334
+ */
8335
+ class ModifyLoadBalancerSlaRequest extends AbstractModel {
8336
+ constructor(){
8337
+ super();
8338
+
8339
+ /**
8340
+ * ID of the LCU-supported CLB instance, and the target specification
8341
+ * @type {Array.<SlaUpdateParam> || null}
8342
+ */
8343
+ this.LoadBalancerSla = null;
8344
+
8345
+ }
8346
+
8347
+ /**
8348
+ * @private
8349
+ */
8350
+ deserialize(params) {
8351
+ if (!params) {
8352
+ return;
8353
+ }
8354
+
8355
+ if (params.LoadBalancerSla) {
8356
+ this.LoadBalancerSla = new Array();
8357
+ for (let z in params.LoadBalancerSla) {
8358
+ let obj = new SlaUpdateParam();
8359
+ obj.deserialize(params.LoadBalancerSla[z]);
8360
+ this.LoadBalancerSla.push(obj);
8361
+ }
8362
+ }
8363
+
8364
+ }
8365
+ }
8366
+
8317
8367
  /**
8318
8368
  * DescribeBlockIPTask request structure.
8319
8369
  * @class
@@ -8468,6 +8518,62 @@ Note: this field may return null, indicating that no valid values can be obtaine
8468
8518
  }
8469
8519
  }
8470
8520
 
8521
+ /**
8522
+ * SetLoadBalancerClsLog request structure.
8523
+ * @class
8524
+ */
8525
+ class SetLoadBalancerClsLogRequest extends AbstractModel {
8526
+ constructor(){
8527
+ super();
8528
+
8529
+ /**
8530
+ * CLB instance ID
8531
+ * @type {string || null}
8532
+ */
8533
+ this.LoadBalancerId = null;
8534
+
8535
+ /**
8536
+ * CLS logset ID
8537
+ <li>Enter the ID of logset you need to add or update. You can acquire the ID by invoking [DescribeLogsets](https://intl.cloud.tencent.com/document/product/614/56454?from_cn_redirect=1).</li>
8538
+ <li>To delete the log set, set this parameter to `null`.</li>
8539
+ * @type {string || null}
8540
+ */
8541
+ this.LogSetId = null;
8542
+
8543
+ /**
8544
+ * CLS log topic ID
8545
+ <li>Enter the ID of log topic you need to add or update. You can acquire the ID by invoking [DescribeTopics](https://intl.cloud.tencent.com/document/product/614/56454?from_cn_redirect=1).</li>
8546
+ <li>To delete the log set, set this parameter to `null`.</li>
8547
+ * @type {string || null}
8548
+ */
8549
+ this.LogTopicId = null;
8550
+
8551
+ /**
8552
+ * Log type:
8553
+ <li>`ACCESS`: access logs</li>
8554
+ <li>`HEALTH`: health check logs</li>
8555
+ Default: `ACCESS`
8556
+ * @type {string || null}
8557
+ */
8558
+ this.LogType = null;
8559
+
8560
+ }
8561
+
8562
+ /**
8563
+ * @private
8564
+ */
8565
+ deserialize(params) {
8566
+ if (!params) {
8567
+ return;
8568
+ }
8569
+ this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
8570
+ this.LogSetId = 'LogSetId' in params ? params.LogSetId : null;
8571
+ this.LogTopicId = 'LogTopicId' in params ? params.LogTopicId : null;
8572
+ this.LogType = 'LogType' in params ? params.LogType : null;
8573
+
8574
+ }
8575
+ }
8576
+
8471
8577
  /**
8472
8578
  * Querying the binding relation of the CLB instance
8473
8579
  * @class
@@ -10028,7 +10134,7 @@ module.exports = {
10028
10134
  RegisterTargetsWithClassicalLBResponse: RegisterTargetsWithClassicalLBResponse,
10029
10135
  DescribeTargetGroupsResponse: DescribeTargetGroupsResponse,
10030
10136
  LoadBalancerHealth: LoadBalancerHealth,
10031
- SetLoadBalancerClsLogRequest: SetLoadBalancerClsLogRequest,
10137
+ ModifyLoadBalancerSlaResponse: ModifyLoadBalancerSlaResponse,
10032
10138
  DeleteLoadBalancerListenersRequest: DeleteLoadBalancerListenersRequest,
10033
10139
  BlockedIP: BlockedIP,
10034
10140
  ModifyRuleResponse: ModifyRuleResponse,
@@ -10042,6 +10148,7 @@ module.exports = {
10042
10148
  BatchRegisterTargetsResponse: BatchRegisterTargetsResponse,
10043
10149
  ModifyLoadBalancerAttributesRequest: ModifyLoadBalancerAttributesRequest,
10044
10150
  DescribeLBListenersRequest: DescribeLBListenersRequest,
10151
+ SlaUpdateParam: SlaUpdateParam,
10045
10152
  Target: Target,
10046
10153
  DescribeLoadBalancerTrafficRequest: DescribeLoadBalancerTrafficRequest,
10047
10154
  DescribeBlockIPListRequest: DescribeBlockIPListRequest,
@@ -10143,10 +10250,12 @@ module.exports = {
10143
10250
  DescribeBlockIPTaskResponse: DescribeBlockIPTaskResponse,
10144
10251
  DescribeClassicalLBListenersResponse: DescribeClassicalLBListenersResponse,
10145
10252
  ModifyTargetGroupAttributeResponse: ModifyTargetGroupAttributeResponse,
10253
+ ModifyLoadBalancerSlaRequest: ModifyLoadBalancerSlaRequest,
10146
10254
  DescribeBlockIPTaskRequest: DescribeBlockIPTaskRequest,
10147
10255
  CreateLoadBalancerResponse: CreateLoadBalancerResponse,
10148
10256
  DescribeRewriteResponse: DescribeRewriteResponse,
10149
10257
  Quota: Quota,
10258
+ SetLoadBalancerClsLogRequest: SetLoadBalancerClsLogRequest,
10150
10259
  LBItem: LBItem,
10151
10260
  DeleteLoadBalancerListenersResponse: DeleteLoadBalancerListenersResponse,
10152
10261
  DescribeListenersRequest: DescribeListenersRequest,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.345";
1
+ const sdkVersion = "3.0.346";
2
2
  module.exports = sdkVersion