tencentcloud-sdk-nodejs-intl-en 3.0.1283 → 3.0.1284

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1283",
3
+ "version": "3.0.1284",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -201,6 +201,7 @@ const ModifyDomainAttributesRequest = models.ModifyDomainAttributesRequest;
201
201
  const DeregisterTargetsRequest = models.DeregisterTargetsRequest;
202
202
  const InquiryPriceCreateLoadBalancerResponse = models.InquiryPriceCreateLoadBalancerResponse;
203
203
  const CreateLoadBalancerSnatIpsRequest = models.CreateLoadBalancerSnatIpsRequest;
204
+ const TargetGroupHealthCheck = models.TargetGroupHealthCheck;
204
205
  const DescribeTargetGroupInstancesResponse = models.DescribeTargetGroupInstancesResponse;
205
206
  const DescribeQuotaResponse = models.DescribeQuotaResponse;
206
207
  const DeleteTargetGroupsResponse = models.DeleteTargetGroupsResponse;
@@ -480,8 +481,8 @@ This is an async API. After it is returned successfully, you can call the `Descr
480
481
  }
481
482
 
482
483
  /**
483
- * This API (ModifyListener) is used to modify the attributes of a CLB listener, such as listener name, health check parameter, certificate information, and forwarding policy.
484
- This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
484
+ * This API is used to modify the attributes of a CLB instance listener, including the listener name, health check parameters, certificate information, and forwarding policy. This API does not support classic CLB instances.
485
+ This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
485
486
  * @param {ModifyListenerRequest} req
486
487
  * @param {function(string, ModifyListenerResponse):void} cb
487
488
  * @public
@@ -794,7 +795,7 @@ This is an async API. After it is returned successfully, you can call the API `D
794
795
 
795
796
  /**
796
797
  * This API is used to create a listener for a CLB instance.
797
- This is an async API. After it is returned successfully, you can call the DescribeTaskStatus API with the returned RequestId as an input parameter to check whether this task is successful.
798
+ This is an asynchronous API. After it returns the result successfully, you can call the [DescribeTaskStatus](https://intl.cloud.tencent.com/document/product/214/30683?from_cn_redirect=1) API with the returned RequestId as an input parameter to query whether the task is successful.
798
799
  * @param {CreateListenerRequest} req
799
800
  * @param {function(string, CreateListenerResponse):void} cb
800
801
  * @public
@@ -215,6 +215,12 @@ class BatchDeregisterTargetsResponse extends AbstractModel {
215
215
  */
216
216
  this.FailListenerIdSet = null;
217
217
 
218
+ /**
219
+ *
220
+ * @type {string || null}
221
+ */
222
+ this.Message = null;
223
+
218
224
  /**
219
225
  * 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.
220
226
  * @type {string || null}
@@ -231,6 +237,7 @@ class BatchDeregisterTargetsResponse extends AbstractModel {
231
237
  return;
232
238
  }
233
239
  this.FailListenerIdSet = 'FailListenerIdSet' in params ? params.FailListenerIdSet : null;
240
+ this.Message = 'Message' in params ? params.Message : null;
234
241
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
235
242
 
236
243
  }
@@ -1146,6 +1153,12 @@ class MultiCertInfo extends AbstractModel {
1146
1153
  */
1147
1154
  this.CertList = null;
1148
1155
 
1156
+ /**
1157
+ * Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
1158
+ * @type {string || null}
1159
+ */
1160
+ this.SSLVerifyClient = null;
1161
+
1149
1162
  }
1150
1163
 
1151
1164
  /**
@@ -1165,6 +1178,7 @@ class MultiCertInfo extends AbstractModel {
1165
1178
  this.CertList.push(obj);
1166
1179
  }
1167
1180
  }
1181
+ this.SSLVerifyClient = 'SSLVerifyClient' in params ? params.SSLVerifyClient : null;
1168
1182
 
1169
1183
  }
1170
1184
  }
@@ -4782,19 +4796,19 @@ class ModifyListenerRequest extends AbstractModel {
4782
4796
  super();
4783
4797
 
4784
4798
  /**
4785
- * CLB instance ID
4799
+ * ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to query the ID.
4786
4800
  * @type {string || null}
4787
4801
  */
4788
4802
  this.LoadBalancerId = null;
4789
4803
 
4790
4804
  /**
4791
- * CLB listener ID
4805
+ * ID of the CLB instance listener. You can call the [DescribeListeners](https://intl.cloud.tencent.com/document/product/214/30686?from_cn_redirect=1) API to query the ID.
4792
4806
  * @type {string || null}
4793
4807
  */
4794
4808
  this.ListenerId = null;
4795
4809
 
4796
4810
  /**
4797
- * New listener name
4811
+ * New listener name. The maximum length is 255 characters.
4798
4812
  * @type {string || null}
4799
4813
  */
4800
4814
  this.ListenerName = null;
@@ -4818,7 +4832,9 @@ class ModifyListenerRequest extends AbstractModel {
4818
4832
  this.Certificate = null;
4819
4833
 
4820
4834
  /**
4821
- * Listener forwarding method. Valid values: WRR, LEAST_CONN.These values respectively indicate weighted round robin and least connections. The default value is WRR.Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
4835
+ * Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
4836
+ They indicate weighted round-robin and least connections, respectively. Default value: WRR.
4837
+ Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners. The balancing method for Layer-7 listeners should be modified in the forwarding rules.
4822
4838
  * @type {string || null}
4823
4839
  */
4824
4840
  this.Scheduler = null;
@@ -4836,19 +4852,26 @@ class ModifyListenerRequest extends AbstractModel {
4836
4852
  this.TargetType = null;
4837
4853
 
4838
4854
  /**
4839
- * Whether to enable long connections. This parameter applies only to HTTP and HTTPS listeners.The default value is 0, indicating disabled, and 1 indicates enabled.
4855
+ * Whether to enable the persistent connection feature. This parameter applies only to HTTP/HTTPS listeners.
4856
+ The default value is 0, indicating disabled, and 1 indicates enabled.
4857
+
4858
+ Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
4840
4859
  * @type {number || null}
4841
4860
  */
4842
4861
  this.KeepaliveEnable = null;
4843
4862
 
4844
4863
  /**
4845
- * Whether to send the TCP RST packet to the client when unbinding a real server. This parameter is applicable to TCP listeners only.
4864
+ * Whether to send an RST packet to the client when a listener is unbound from a real server. This parameter applies only to TCP listeners.
4865
+ True: send an RST packet to the client; False: do not send an RST packet to the client.
4846
4866
  * @type {boolean || null}
4847
4867
  */
4848
4868
  this.DeregisterTargetRst = null;
4849
4869
 
4850
4870
  /**
4851
- * Session persistence type. NORMAL indicates the default session persistence type, and QUIC_CID indicates session persistence by QUIC connection ID. QUIC_CID only supports UDP protocols.Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
4871
+ * Session persistence type. NORMAL: default session persistence type; QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported.
4872
+ Use cases: This applies to TCP/UDP/TCP_SSL/QUIC listeners.
4873
+
4874
+ Default value: NORMAL.
4852
4875
  * @type {string || null}
4853
4876
  */
4854
4877
  this.SessionType = null;
@@ -4861,28 +4884,44 @@ class ModifyListenerRequest extends AbstractModel {
4861
4884
 
4862
4885
  /**
4863
4886
  * Maximum number of concurrent connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of concurrent connections for the instance specification. -1 indicates that no limit is set on the concurrent connections at the listener level. Classic network instances do not support this parameter.
4887
+
4888
+ Default value: -1, which indicates no limit.
4864
4889
  * @type {number || null}
4865
4890
  */
4866
4891
  this.MaxConn = null;
4867
4892
 
4868
4893
  /**
4869
4894
  * Maximum number of new connections at the listener level. This parameter is supported only for LCU-supported instances with TCP/UDP/TCP_SSL/QUIC listeners currently. Value range: 1 to the maximum number of new connections for the instance specification. -1 indicates that no limit is set on the new connections at the listener level. Classic network instances do not support this parameter.
4895
+
4896
+ Default value: -1, which indicates no limit.
4870
4897
  * @type {number || null}
4871
4898
  */
4872
4899
  this.MaxCps = null;
4873
4900
 
4874
4901
  /**
4875
- * Connection idle timeout period (in seconds). It’s only available to TCP listeners. Value range: 300-900 for shared and dedicated instances; 300-2000 for LCU-supported CLB instances. It defaults to 900. To set a period longer than 2000 seconds (up to 3600 seconds), please submit a [submit](https://console.cloud.tencent.com/workorder/category).
4902
+ * Idle connection timeout, in seconds. This parameter applies only to TCP listeners. Default value: 900. Value range: 300900 for shared instances and dedicated instances and 300–1980 for LCU-supported instances. To set a value greater than 2000, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category). The maximum value can be 3600.
4876
4903
  * @type {number || null}
4877
4904
  */
4878
4905
  this.IdleConnectTimeout = null;
4879
4906
 
4880
4907
  /**
4881
- * Whether to enable SNAT.
4908
+ *
4909
+ * @type {boolean || null}
4910
+ */
4911
+ this.ProxyProtocol = null;
4912
+
4913
+ /**
4914
+ * Whether to enable SNAT. True: enable SNAT; False: do not enable SNAT.
4882
4915
  * @type {boolean || null}
4883
4916
  */
4884
4917
  this.SnatEnable = null;
4885
4918
 
4919
+ /**
4920
+ * Data compression mode.
4921
+ * @type {string || null}
4922
+ */
4923
+ this.DataCompressMode = null;
4924
+
4886
4925
  }
4887
4926
 
4888
4927
  /**
@@ -4923,7 +4962,9 @@ class ModifyListenerRequest extends AbstractModel {
4923
4962
  this.MaxConn = 'MaxConn' in params ? params.MaxConn : null;
4924
4963
  this.MaxCps = 'MaxCps' in params ? params.MaxCps : null;
4925
4964
  this.IdleConnectTimeout = 'IdleConnectTimeout' in params ? params.IdleConnectTimeout : null;
4965
+ this.ProxyProtocol = 'ProxyProtocol' in params ? params.ProxyProtocol : null;
4926
4966
  this.SnatEnable = 'SnatEnable' in params ? params.SnatEnable : null;
4967
+ this.DataCompressMode = 'DataCompressMode' in params ? params.DataCompressMode : null;
4927
4968
 
4928
4969
  }
4929
4970
  }
@@ -5037,103 +5078,123 @@ class HealthCheck extends AbstractModel {
5037
5078
  super();
5038
5079
 
5039
5080
  /**
5040
- * Whether to enable health check. 1: enable; 0: disable.
5081
+ * Whether to enable health check. 1: Enable; 0: Disable.
5082
+
5083
+ It is enabled by default.
5041
5084
  * @type {number || null}
5042
5085
  */
5043
5086
  this.HealthSwitch = null;
5044
5087
 
5045
5088
  /**
5046
- * Note: This field may return null, indicating that no valid values can be obtained.
5089
+ * Health check response timeout, in seconds. Value range: 2–60. Default value: 2. The response timeout should be less than the check interval.
5047
5090
  * @type {number || null}
5048
5091
  */
5049
5092
  this.TimeOut = null;
5050
5093
 
5051
5094
  /**
5052
- * Note: This field may return null, indicating that no valid values can be obtained.
5095
+ * Health check interval, in seconds. Default value: 5. Value range: 2–300 for IPv4 CLB instances and 5–300 for IPv6 CLB instances.
5096
+ Note: The value range is 5–300 for some IPv4 CLB instances of early versions.
5053
5097
  * @type {number || null}
5054
5098
  */
5055
5099
  this.IntervalTime = null;
5056
5100
 
5057
5101
  /**
5058
- * Note: This field may return null, indicating that no valid values can be obtained.
5102
+ * Healthy threshold. Default: 3, indicating that if a forwarding is found healthy three consecutive times, it is considered to be normal. Value range: 2-10. Unit: times.
5059
5103
  * @type {number || null}
5060
5104
  */
5061
5105
  this.HealthNum = null;
5062
5106
 
5063
5107
  /**
5064
- * Note: This field may return null, indicating that no valid values can be obtained.
5108
+ * Unhealthy threshold. Default: 3, indicating that if a forwarding is found unhealthy three consecutive times, it is considered to be exceptional. Value range: 2-10. Unit: times.
5065
5109
  * @type {number || null}
5066
5110
  */
5067
5111
  this.UnHealthNum = null;
5068
5112
 
5069
5113
  /**
5070
- * Note: This field may return null, indicating that no valid values can be obtained.
5114
+ * Health check status code. (This parameter applies only to HTTP/HTTPS forwarding rules and the HTTP health check method of TCP listeners.) Value range: 1–31. Default value: 31.
5115
+ 1: return 1xx after the check (healthy); 2: return 2xx after the check (healthy); 4: return 3xx after the check (healthy); 8: return 4xx after the check (healthy); 16: return 5xx after the check (healthy). If you expect that multiple codes represent a healthy real server, set the value to the sum of the corresponding values.
5116
+ Note: This field may return null, indicating that no valid values can be obtained.
5071
5117
  * @type {number || null}
5072
5118
  */
5073
5119
  this.HttpCode = null;
5074
5120
 
5075
5121
  /**
5076
- * Note: This field may return null, indicating that no valid values can be obtained.
5122
+ * Health check path (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners).
5123
+
5124
+ Note: This field may return null, indicating that no valid values can be obtained.
5077
5125
  * @type {string || null}
5078
5126
  */
5079
5127
  this.HttpCheckPath = null;
5080
5128
 
5081
5129
  /**
5082
- * Note: This field may return null, indicating that no valid values can be obtained.
5130
+ * Health check domain name, which will be contained in a Host header field of the HTTP protocol. (This parameter applies only to HTTP/HTTPS listeners and the HTTP health check method of TCP listeners. For TCP listeners, this parameter is required if the HTTP health check method is used.)
5131
+ Note: This field may return null, indicating that no valid values can be obtained.
5083
5132
  * @type {string || null}
5084
5133
  */
5085
5134
  this.HttpCheckDomain = null;
5086
5135
 
5087
5136
  /**
5088
- * Note: This field may return null, indicating that no valid values can be obtained.
5137
+ * Health check method (applicable only to HTTP/HTTPS forwarding rules and HTTP health checks of TCP listeners). Default: HEAD. Valid values: HEAD and GET.
5138
+
5139
+ Note: This field may return null, indicating that no valid values can be obtained.
5089
5140
  * @type {string || null}
5090
5141
  */
5091
5142
  this.HttpCheckMethod = null;
5092
5143
 
5093
5144
  /**
5094
- * Note: This field may return null, indicating that no valid values can be obtained.
5145
+ * A custom check parameter, representing the health check port, which is the port of the real server by default. Unless you want to specify a port, it is recommended to leave it empty. (Applicable only to TCP/UDP listeners)
5146
+
5147
+ Note: This field may return null, indicating that no valid values can be obtained.
5095
5148
  * @type {number || null}
5096
5149
  */
5097
5150
  this.CheckPort = null;
5098
5151
 
5099
5152
  /**
5100
- * Note: This field may return null, indicating that no valid values can be obtained.
5153
+ * A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the input format of the health check. Valid values: HEX and TEXT. If the value is HEX, the characters of SendContext and RecvContext can only be selected from 0123456789ABCDEF and the length must be an even number. (Applicable only to TCP/UDP listeners.)
5154
+
5155
+ Note: This field may return null, indicating that no valid values can be obtained.
5101
5156
  * @type {string || null}
5102
5157
  */
5103
5158
  this.ContextType = null;
5104
5159
 
5105
5160
  /**
5106
- * Note: This field may return null, indicating that no valid values can be obtained.
5161
+ * A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the content of the request sent by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
5162
+
5163
+ Note: This field may return null, indicating that no valid values can be obtained.
5107
5164
  * @type {string || null}
5108
5165
  */
5109
5166
  this.SendContext = null;
5110
5167
 
5111
5168
  /**
5112
- * Note: This field may return null, indicating that no valid values can be obtained.
5169
+ * A custom check parameter, which is required if the value of CheckType (health check protocol) is CUSTOM. This parameter represents the result returned by the health check. Only ASCII visible characters are allowed, and the maximum length is 500. (Applicable only to TCP/UDP listeners.)
5170
+
5171
+ Note: This field may return null, indicating that no valid values can be obtained.
5113
5172
  * @type {string || null}
5114
5173
  */
5115
5174
  this.RecvContext = null;
5116
5175
 
5117
5176
  /**
5118
- * Note: This field may return null, indicating that no valid values can be obtained.
5177
+ * Protocol used for health checks. Valid values: TCP (for TCP listeners, TCP_SSL listeners, and QUIC listeners), HTTP (for TCP listeners, TCP_SSL listeners, QUIC listeners, HTTP rules, and HTTPS rules), HTTPS (for HTTPS rules), GRPC (for HTTP rules and HTTPS rules), PING (for UDP listeners), and CUSTOM (for UDP listeners and TCP listeners). The default value is HTTP for HTTP listeners, TCP for TCP, TCP_SSL, and QUIC listeners, and PING for UDP listeners. For HTTPS listeners, the protocol is the same as the backend forwarding protocol.
5119
5178
  * @type {string || null}
5120
5179
  */
5121
5180
  this.CheckType = null;
5122
5181
 
5123
5182
  /**
5124
- * Note: This field may return null, indicating that no valid values can be obtained.
5183
+ * HTTP version. This field indicates the HTTP version of real servers and is required if the value of CheckType is HTTP. Valid values: HTTP/1.0 and HTTP/1.1. (This field applies only to TCP listeners.)
5184
+ Note: This field may return null, indicating that no valid values can be obtained.
5125
5185
  * @type {string || null}
5126
5186
  */
5127
5187
  this.HttpVersion = null;
5128
5188
 
5129
5189
  /**
5130
- * Note: This field may return null, indicating that no valid values can be obtained.
5190
+ * Source IP address type for health checks. 0: use the LB VIP as the source IP address; 1: use an IP address in the 100.64 range as the source IP address.
5131
5191
  * @type {number || null}
5132
5192
  */
5133
5193
  this.SourceIpType = null;
5134
5194
 
5135
5195
  /**
5136
- * Note: This field may return null, indicating that no valid values can be obtained.
5196
+ * Health check status code when the protocol is GRPC. (This parameter applies only to rules with the backend forwarding protocol of GRPC.) Default value: 12. You can enter a single numerical value, multiple numerical values, or a range. For example, 20, 20,25, or 0-99.
5197
+ Note: This field may return null, indicating that no valid values can be obtained.
5137
5198
  * @type {string || null}
5138
5199
  */
5139
5200
  this.ExtendedCode = null;
@@ -6548,13 +6609,20 @@ class CertificateInput extends AbstractModel {
6548
6609
  super();
6549
6610
 
6550
6611
  /**
6551
- * Authentication type. Value range: UNIDIRECTIONAL (unidirectional authentication), MUTUAL (mutual authentication)
6612
+ * Authentication type. UNIDIRECTIONAL: one-way authentication; MUTUAL: mutual authentication.
6613
+ Default value: UNIDIRECTIONAL.
6552
6614
  * @type {string || null}
6553
6615
  */
6554
6616
  this.SSLMode = null;
6555
6617
 
6556
6618
  /**
6557
- * ID of a server certificate. If you leave this parameter empty, you must upload the certificate, including CertContent, CertKey, and CertName.
6619
+ * Whether to enable client authentication for mutual authentication. ON: enable it; OPTIONAL: client certificate not required. Default value: ON.
6620
+ * @type {string || null}
6621
+ */
6622
+ this.SSLVerifyClient = null;
6623
+
6624
+ /**
6625
+ * Server certificate ID. If this parameter is not specified, you need to upload a certificate and specify CertContent (server certificate content), CertKey (server certificate key), and CertName (server certificate name).
6558
6626
  * @type {string || null}
6559
6627
  */
6560
6628
  this.CertId = null;
@@ -6605,6 +6673,7 @@ class CertificateInput extends AbstractModel {
6605
6673
  return;
6606
6674
  }
6607
6675
  this.SSLMode = 'SSLMode' in params ? params.SSLMode : null;
6676
+ this.SSLVerifyClient = 'SSLVerifyClient' in params ? params.SSLVerifyClient : null;
6608
6677
  this.CertId = 'CertId' in params ? params.CertId : null;
6609
6678
  this.CertCaId = 'CertCaId' in params ? params.CertCaId : null;
6610
6679
  this.CertName = 'CertName' in params ? params.CertName : null;
@@ -6801,7 +6870,7 @@ class CreateListenerResponse extends AbstractModel {
6801
6870
  super();
6802
6871
 
6803
6872
  /**
6804
- * Array of unique IDs of the created listeners
6873
+ * Array of the unique IDs of created listeners.
6805
6874
  * @type {Array.<string> || null}
6806
6875
  */
6807
6876
  this.ListenerIds = null;
@@ -7812,6 +7881,30 @@ class CreateTargetGroupRequest extends AbstractModel {
7812
7881
  */
7813
7882
  this.TargetGroupInstances = null;
7814
7883
 
7884
+ /**
7885
+ *
7886
+ * @type {string || null}
7887
+ */
7888
+ this.Type = null;
7889
+
7890
+ /**
7891
+ *
7892
+ * @type {string || null}
7893
+ */
7894
+ this.Protocol = null;
7895
+
7896
+ /**
7897
+ *
7898
+ * @type {TargetGroupHealthCheck || null}
7899
+ */
7900
+ this.HealthCheck = null;
7901
+
7902
+ /**
7903
+ *
7904
+ * @type {string || null}
7905
+ */
7906
+ this.ScheduleAlgorithm = null;
7907
+
7815
7908
  }
7816
7909
 
7817
7910
  /**
@@ -7833,6 +7926,15 @@ class CreateTargetGroupRequest extends AbstractModel {
7833
7926
  this.TargetGroupInstances.push(obj);
7834
7927
  }
7835
7928
  }
7929
+ this.Type = 'Type' in params ? params.Type : null;
7930
+ this.Protocol = 'Protocol' in params ? params.Protocol : null;
7931
+
7932
+ if (params.HealthCheck) {
7933
+ let obj = new TargetGroupHealthCheck();
7934
+ obj.deserialize(params.HealthCheck)
7935
+ this.HealthCheck = obj;
7936
+ }
7937
+ this.ScheduleAlgorithm = 'ScheduleAlgorithm' in params ? params.ScheduleAlgorithm : null;
7836
7938
 
7837
7939
  }
7838
7940
  }
@@ -7981,110 +8083,116 @@ class CreateListenerRequest extends AbstractModel {
7981
8083
  super();
7982
8084
 
7983
8085
  /**
7984
- * CLB instance ID
8086
+ * ID of the CLB instance. You can call the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) API to obtain the ID.
7985
8087
  * @type {string || null}
7986
8088
  */
7987
8089
  this.LoadBalancerId = null;
7988
8090
 
7989
8091
  /**
7990
- * Specifies for which ports to create listeners. Each port corresponds to a new listener.
8092
+ * Ports for creating listeners. Each port corresponds to a listener.
8093
+ Port range: 1–65535.
7991
8094
  * @type {Array.<number> || null}
7992
8095
  */
7993
8096
  this.Ports = null;
7994
8097
 
7995
8098
  /**
7996
- * Listener protocol. Values: TCP | UDP | HTTP | HTTPS | TCP_SSL | QUIC
8099
+ * Listener protocol. Valid values: TCP, UDP, HTTP, HTTPS, TCP_SSL, and QUIC.
7997
8100
  * @type {string || null}
7998
8101
  */
7999
8102
  this.Protocol = null;
8000
8103
 
8001
8104
  /**
8002
- * List of names of the listeners to be created. The array of names and array of ports are in one-to-one correspondence. If you do not want to name them now, you do not need to provide this parameter.
8105
+ * List of names of listeners to be created. The names correspond to ports one by one. This parameter can be left blank if you do not want to name the listeners immediately.
8003
8106
  * @type {Array.<string> || null}
8004
8107
  */
8005
8108
  this.ListenerNames = null;
8006
8109
 
8007
8110
  /**
8008
- * Health check parameter. It is only applicable only to TCP, UDP, TCP_SSL and QUIC listeners.
8111
+ * Health check parameter. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
8009
8112
  * @type {HealthCheck || null}
8010
8113
  */
8011
8114
  this.HealthCheck = null;
8012
8115
 
8013
8116
  /**
8014
- * Certificate information. This parameter is only applicable to TCP_SSL listeners and HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
8117
+ * Certificate-related information. The parameter limitations are as follows:
8118
+ <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
8119
+ <li>Either this parameter or the MultiCertInfo parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
8015
8120
  * @type {CertificateInput || null}
8016
8121
  */
8017
8122
  this.Certificate = null;
8018
8123
 
8019
8124
  /**
8020
- * Session persistence time in seconds. Value range: 30-3,600. The default value is 0, indicating that session persistence is not enabled. This parameter is applicable only to TCP/UDP listeners.
8125
+ * Session persistence duration, in seconds. Value range: 30–3600. Default value: 0, indicating that session persistence is not enabled by default. This parameter applies only to TCP and UDP listeners.
8021
8126
  * @type {number || null}
8022
8127
  */
8023
8128
  this.SessionExpireTime = null;
8024
8129
 
8025
8130
  /**
8026
- * Listener forwarding mode. Values: `WRR` (weighted round robin) and `LEAST_CONN` (least connections).
8027
- Default value: `WRR`. This parameter is only applicable to TCP, UDP, TCP_SSL and QUIC listeners.
8131
+ * Listener forwarding method. Valid values: WRR (weighted round-robin), LEAST_CONN (least connections), and IP_HASH (IP address hash).
8132
+ Default value: WRR. This parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners.
8028
8133
  * @type {string || null}
8029
8134
  */
8030
8135
  this.Scheduler = null;
8031
8136
 
8032
8137
  /**
8033
- * Whether to enable the SNI feature. This parameter is applicable only to HTTPS listeners
8138
+ * Whether to enable the SNI feature. This parameter applies only to HTTPS listeners. 0: disable; 1: enable.
8034
8139
  * @type {number || null}
8035
8140
  */
8036
8141
  this.SniSwitch = null;
8037
8142
 
8038
8143
  /**
8039
- * Target real server type. `NODE`: binding a general node; `TARGETGROUP`: binding a target group.
8144
+ * Real server type. NODE: ordinary node; TARGETGROUP: real server group. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules.
8040
8145
  * @type {string || null}
8041
8146
  */
8042
8147
  this.TargetType = null;
8043
8148
 
8044
8149
  /**
8045
- * Session persistence type. Valid values: Normal: the default session persistence type; QUIC_CID: session persistence by QUIC connection ID. The `QUIC_CID` value can only be configured in UDP listeners. If this field is not specified, the default session persistence type will be used.
8150
+ * Session persistence type. If this parameter is not specified or the value is set to NORMAL, the default session persistence type is used. QUIC_CID: perform session persistence based on QUIC connection ID. If the value is set to QUIC_CID, only the UDP protocol is supported. This parameter applies only to TCP and UDP listeners. For layer-7 listeners, set the type in forwarding rules. (If the value is set to QUIC_CID, the Protocol value should be UDP, the Scheduler value should be WRR, and only IPv4 addresses are supported.)
8046
8151
  * @type {string || null}
8047
8152
  */
8048
8153
  this.SessionType = null;
8049
8154
 
8050
8155
  /**
8051
- * Whether to enable a persistent connection. This parameter is applicable only to HTTP and HTTPS listeners. Valid values: 0 (disable; default value) and 1 (enable).
8156
+ * Whether to enable the persistent connection feature. This parameter applies only to HTTP and HTTPS listeners. 0: disable; 1: enable. This feature is disabled by default.
8157
+ Enable this feature with caution if the maximum number of connections is limited for real servers. This feature is in beta testing. To use it, submit a [beta testing application](https://intl.cloud.tencent.com/apply/p/tsodp6qm21?from_cn_redirect=1).
8052
8158
  * @type {number || null}
8053
8159
  */
8054
8160
  this.KeepaliveEnable = null;
8055
8161
 
8056
8162
  /**
8057
- * This parameter is used to specify the end port and is required when creating a port range listener. Only one member can be passed in when inputting the `Ports` parameter, which is used to specify the start port. If you want to try the port range feature, please [submit a ticket](https://console.cloud.tencent.com/workorder/category).
8163
+ * End port. This parameter is required for creating a listener with a port range. In this case, the input parameter Ports allows only one value to indicate the start port. To experience the port range feature, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
8058
8164
  * @type {number || null}
8059
8165
  */
8060
8166
  this.EndPort = null;
8061
8167
 
8062
8168
  /**
8063
- * Whether to send the TCP RST packet to the client when unbinding a real server. This parameter is applicable to TCP listeners only.
8169
+ * Whether to send an RST packet to the client when a listener is unbound from a real server. This parameter applies only to TCP listeners.
8064
8170
  * @type {boolean || null}
8065
8171
  */
8066
8172
  this.DeregisterTargetRst = null;
8067
8173
 
8068
8174
  /**
8069
- * Certificate information. You can specify multiple server-side certificates with different algorithm types. This parameter is only applicable to HTTPS listeners with the SNI feature not enabled. `Certificate` and `MultiCertInfo` cannot be specified at the same time.
8175
+ * Certificate information. You can import multiple server certificates with different algorithms at the same time. The parameter limitations are as follows:
8176
+ <li>This parameter applies only to TCP_SSL listeners and HTTPS listeners with the SNI feature disabled.</li>
8177
+ <li>Either this parameter or the Certificate parameter should be specified when you create a TCP_SSL listener or an HTTPS listener with the SNI feature disabled. You cannot specify them at the same time.</li>
8070
8178
  * @type {MultiCertInfo || null}
8071
8179
  */
8072
8180
  this.MultiCertInfo = null;
8073
8181
 
8074
8182
  /**
8075
- * Maximum number of concurrent listener connections. It's available for TCP/UDP/TCP_SSL/QUIC listeners. If it's set to `-1` or not specified, the listener speed is not limited.
8183
+ * Maximum number of connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of connections is not limited. This parameter is not supported for classic network-based instances.
8076
8184
  * @type {number || null}
8077
8185
  */
8078
8186
  this.MaxConn = null;
8079
8187
 
8080
8188
  /**
8081
- * Maximum number of new listener connections. It's available for TCP/UDP/TCP_SSL/QUIC listeners. If it's set to `-1` or not specified, the listener speed is not limited.
8189
+ * Maximum number of new connections to a listener. Currently, this parameter applies only to TCP, UDP, TCP_SSL, and QUIC listeners of LCU-supported instances. If this parameter is not specified or the value is set to -1, the maximum number of new connections is not limited. This parameter is not supported for classic network-based instances.
8082
8190
  * @type {number || null}
8083
8191
  */
8084
8192
  this.MaxCps = null;
8085
8193
 
8086
8194
  /**
8087
- * Connection idle timeout period (in seconds). It's only available to TCP listeners. Value range: 300-900 for shared and dedicated instances; 300-2000 for LCU-supported CLB instances. It defaults to 900. To set a period longer than 2000 seconds (up to 3600 seconds), please submit a [submit](https://console.cloud.tencent.com/workorder/category).
8195
+ * Idle connection timeout, in seconds. This parameter applies only to TCP listeners. Value range: 300900 for shared instances and dedicated instances and 300–1980 for LCU-supported instances. To set a value, [submit a ticket for application](https://console.cloud.tencent.com/workorder/category).
8088
8196
  * @type {number || null}
8089
8197
  */
8090
8198
  this.IdleConnectTimeout = null;
@@ -8093,14 +8201,38 @@ Default value: `WRR`. This parameter is only applicable to TCP, UDP, TCP_SSL and
8093
8201
  *
8094
8202
  * @type {boolean || null}
8095
8203
  */
8204
+ this.ProxyProtocol = null;
8205
+
8206
+ /**
8207
+ * Whether to enable SNAT. True: enable; False: disable.
8208
+ * @type {boolean || null}
8209
+ */
8096
8210
  this.SnatEnable = null;
8097
8211
 
8098
8212
  /**
8099
- *
8213
+ * End port of a listener with a port range. Range of the port: 2–65535.
8100
8214
  * @type {Array.<number> || null}
8101
8215
  */
8102
8216
  this.FullEndPorts = null;
8103
8217
 
8218
+ /**
8219
+ * Whether to enable H2C for a private network HTTP listener. True: enable; False: disable.
8220
+ * @type {boolean || null}
8221
+ */
8222
+ this.H2cSwitch = null;
8223
+
8224
+ /**
8225
+ * Whether to disable SSL for TCP_SSL listeners. Dual-stack binding is still supported after SSL is disabled. True: disable; False: enable.
8226
+ * @type {boolean || null}
8227
+ */
8228
+ this.SslCloseSwitch = null;
8229
+
8230
+ /**
8231
+ * Data compression mode. Valid values: transparent (passthrough mode) and compatibility (compatibility mode).
8232
+ * @type {string || null}
8233
+ */
8234
+ this.DataCompressMode = null;
8235
+
8104
8236
  }
8105
8237
 
8106
8238
  /**
@@ -8143,8 +8275,12 @@ Default value: `WRR`. This parameter is only applicable to TCP, UDP, TCP_SSL and
8143
8275
  this.MaxConn = 'MaxConn' in params ? params.MaxConn : null;
8144
8276
  this.MaxCps = 'MaxCps' in params ? params.MaxCps : null;
8145
8277
  this.IdleConnectTimeout = 'IdleConnectTimeout' in params ? params.IdleConnectTimeout : null;
8278
+ this.ProxyProtocol = 'ProxyProtocol' in params ? params.ProxyProtocol : null;
8146
8279
  this.SnatEnable = 'SnatEnable' in params ? params.SnatEnable : null;
8147
8280
  this.FullEndPorts = 'FullEndPorts' in params ? params.FullEndPorts : null;
8281
+ this.H2cSwitch = 'H2cSwitch' in params ? params.H2cSwitch : null;
8282
+ this.SslCloseSwitch = 'SslCloseSwitch' in params ? params.SslCloseSwitch : null;
8283
+ this.DataCompressMode = 'DataCompressMode' in params ? params.DataCompressMode : null;
8148
8284
 
8149
8285
  }
8150
8286
  }
@@ -8850,6 +8986,12 @@ class ModifyTargetWeightRequest extends AbstractModel {
8850
8986
  */
8851
8987
  this.ListenerId = null;
8852
8988
 
8989
+ /**
8990
+ * List of real servers for which to modify the weights
8991
+ * @type {Array.<Target> || null}
8992
+ */
8993
+ this.Targets = null;
8994
+
8853
8995
  /**
8854
8996
  * Forwarding rule ID. When binding a real server to a layer-7 forwarding rule, you must provide either this parameter or Domain+Url.
8855
8997
  * @type {string || null}
@@ -8868,12 +9010,6 @@ class ModifyTargetWeightRequest extends AbstractModel {
8868
9010
  */
8869
9011
  this.Url = null;
8870
9012
 
8871
- /**
8872
- * List of real servers for which to modify the weights
8873
- * @type {Array.<Target> || null}
8874
- */
8875
- this.Targets = null;
8876
-
8877
9013
  /**
8878
9014
  * New forwarding weight of a real server. Value range: 0-100. Default value: 10. If the Targets.Weight parameter is set, this parameter will not take effect.
8879
9015
  * @type {number || null}
@@ -8891,9 +9027,6 @@ class ModifyTargetWeightRequest extends AbstractModel {
8891
9027
  }
8892
9028
  this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null;
8893
9029
  this.ListenerId = 'ListenerId' in params ? params.ListenerId : null;
8894
- this.LocationId = 'LocationId' in params ? params.LocationId : null;
8895
- this.Domain = 'Domain' in params ? params.Domain : null;
8896
- this.Url = 'Url' in params ? params.Url : null;
8897
9030
 
8898
9031
  if (params.Targets) {
8899
9032
  this.Targets = new Array();
@@ -8903,6 +9036,9 @@ class ModifyTargetWeightRequest extends AbstractModel {
8903
9036
  this.Targets.push(obj);
8904
9037
  }
8905
9038
  }
9039
+ this.LocationId = 'LocationId' in params ? params.LocationId : null;
9040
+ this.Domain = 'Domain' in params ? params.Domain : null;
9041
+ this.Url = 'Url' in params ? params.Url : null;
8906
9042
  this.Weight = 'Weight' in params ? params.Weight : null;
8907
9043
 
8908
9044
  }
@@ -10164,6 +10300,146 @@ class CreateLoadBalancerSnatIpsRequest extends AbstractModel {
10164
10300
  }
10165
10301
  }
10166
10302
 
10303
+ /**
10304
+ *
10305
+ * @class
10306
+ */
10307
+ class TargetGroupHealthCheck extends AbstractModel {
10308
+ constructor(){
10309
+ super();
10310
+
10311
+ /**
10312
+ *
10313
+ * @type {boolean || null}
10314
+ */
10315
+ this.HealthSwitch = null;
10316
+
10317
+ /**
10318
+ *
10319
+ * @type {string || null}
10320
+ */
10321
+ this.Protocol = null;
10322
+
10323
+ /**
10324
+ *
10325
+ * @type {number || null}
10326
+ */
10327
+ this.Port = null;
10328
+
10329
+ /**
10330
+ *
10331
+ * @type {number || null}
10332
+ */
10333
+ this.Timeout = null;
10334
+
10335
+ /**
10336
+ *
10337
+ * @type {number || null}
10338
+ */
10339
+ this.GapTime = null;
10340
+
10341
+ /**
10342
+ *
10343
+ * @type {number || null}
10344
+ */
10345
+ this.GoodLimit = null;
10346
+
10347
+ /**
10348
+ *
10349
+ * @type {number || null}
10350
+ */
10351
+ this.BadLimit = null;
10352
+
10353
+ /**
10354
+ *
10355
+ * @type {boolean || null}
10356
+ */
10357
+ this.JumboFrame = null;
10358
+
10359
+ /**
10360
+ *
10361
+ * @type {number || null}
10362
+ */
10363
+ this.HttpCode = null;
10364
+
10365
+ /**
10366
+ *
10367
+ * @type {string || null}
10368
+ */
10369
+ this.HttpCheckDomain = null;
10370
+
10371
+ /**
10372
+ *
10373
+ * @type {string || null}
10374
+ */
10375
+ this.HttpCheckPath = null;
10376
+
10377
+ /**
10378
+ *
10379
+ * @type {string || null}
10380
+ */
10381
+ this.HttpCheckMethod = null;
10382
+
10383
+ /**
10384
+ *
10385
+ * @type {string || null}
10386
+ */
10387
+ this.ContextType = null;
10388
+
10389
+ /**
10390
+ *
10391
+ * @type {string || null}
10392
+ */
10393
+ this.SendContext = null;
10394
+
10395
+ /**
10396
+ *
10397
+ * @type {string || null}
10398
+ */
10399
+ this.RecvContext = null;
10400
+
10401
+ /**
10402
+ *
10403
+ * @type {string || null}
10404
+ */
10405
+ this.HttpVersion = null;
10406
+
10407
+ /**
10408
+ *
10409
+ * @type {string || null}
10410
+ */
10411
+ this.ExtendedCode = null;
10412
+
10413
+ }
10414
+
10415
+ /**
10416
+ * @private
10417
+ */
10418
+ deserialize(params) {
10419
+ if (!params) {
10420
+ return;
10421
+ }
10422
+ this.HealthSwitch = 'HealthSwitch' in params ? params.HealthSwitch : null;
10423
+ this.Protocol = 'Protocol' in params ? params.Protocol : null;
10424
+ this.Port = 'Port' in params ? params.Port : null;
10425
+ this.Timeout = 'Timeout' in params ? params.Timeout : null;
10426
+ this.GapTime = 'GapTime' in params ? params.GapTime : null;
10427
+ this.GoodLimit = 'GoodLimit' in params ? params.GoodLimit : null;
10428
+ this.BadLimit = 'BadLimit' in params ? params.BadLimit : null;
10429
+ this.JumboFrame = 'JumboFrame' in params ? params.JumboFrame : null;
10430
+ this.HttpCode = 'HttpCode' in params ? params.HttpCode : null;
10431
+ this.HttpCheckDomain = 'HttpCheckDomain' in params ? params.HttpCheckDomain : null;
10432
+ this.HttpCheckPath = 'HttpCheckPath' in params ? params.HttpCheckPath : null;
10433
+ this.HttpCheckMethod = 'HttpCheckMethod' in params ? params.HttpCheckMethod : null;
10434
+ this.ContextType = 'ContextType' in params ? params.ContextType : null;
10435
+ this.SendContext = 'SendContext' in params ? params.SendContext : null;
10436
+ this.RecvContext = 'RecvContext' in params ? params.RecvContext : null;
10437
+ this.HttpVersion = 'HttpVersion' in params ? params.HttpVersion : null;
10438
+ this.ExtendedCode = 'ExtendedCode' in params ? params.ExtendedCode : null;
10439
+
10440
+ }
10441
+ }
10442
+
10167
10443
  /**
10168
10444
  * DescribeTargetGroupInstances response structure.
10169
10445
  * @class
@@ -11908,6 +12184,24 @@ Note: this field may return null, indicating that no valid values can be obtaine
11908
12184
  */
11909
12185
  this.AssociatedRule = null;
11910
12186
 
12187
+ /**
12188
+ *
12189
+ * @type {string || null}
12190
+ */
12191
+ this.Protocol = null;
12192
+
12193
+ /**
12194
+ *
12195
+ * @type {string || null}
12196
+ */
12197
+ this.ScheduleAlgorithm = null;
12198
+
12199
+ /**
12200
+ *
12201
+ * @type {TargetGroupHealthCheck || null}
12202
+ */
12203
+ this.HealthCheck = null;
12204
+
11911
12205
  }
11912
12206
 
11913
12207
  /**
@@ -11932,6 +12226,14 @@ Note: this field may return null, indicating that no valid values can be obtaine
11932
12226
  this.AssociatedRule.push(obj);
11933
12227
  }
11934
12228
  }
12229
+ this.Protocol = 'Protocol' in params ? params.Protocol : null;
12230
+ this.ScheduleAlgorithm = 'ScheduleAlgorithm' in params ? params.ScheduleAlgorithm : null;
12231
+
12232
+ if (params.HealthCheck) {
12233
+ let obj = new TargetGroupHealthCheck();
12234
+ obj.deserialize(params.HealthCheck)
12235
+ this.HealthCheck = obj;
12236
+ }
11935
12237
 
11936
12238
  }
11937
12239
  }
@@ -13258,6 +13560,7 @@ module.exports = {
13258
13560
  DeregisterTargetsRequest: DeregisterTargetsRequest,
13259
13561
  InquiryPriceCreateLoadBalancerResponse: InquiryPriceCreateLoadBalancerResponse,
13260
13562
  CreateLoadBalancerSnatIpsRequest: CreateLoadBalancerSnatIpsRequest,
13563
+ TargetGroupHealthCheck: TargetGroupHealthCheck,
13261
13564
  DescribeTargetGroupInstancesResponse: DescribeTargetGroupInstancesResponse,
13262
13565
  DescribeQuotaResponse: DescribeQuotaResponse,
13263
13566
  DeleteTargetGroupsResponse: DeleteTargetGroupsResponse,
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1283";
1
+ const sdkVersion = "3.0.1284";
2
2
  module.exports = sdkVersion