tencentcloud-sdk-nodejs-intl-en 3.0.1379 → 3.0.1380

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.
@@ -0,0 +1,213 @@
1
+ /*
2
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const LBChargePrepaid = models.LBChargePrepaid;
20
+ const DescribeLoadBalancerListByCertIdRequest = models.DescribeLoadBalancerListByCertIdRequest;
21
+ const ClassicalListener = models.ClassicalListener;
22
+ const TargetRegionInfo = models.TargetRegionInfo;
23
+ const SetCustomizedConfigForLoadBalancerRequest = models.SetCustomizedConfigForLoadBalancerRequest;
24
+ const DescribeCustomizedConfigListRequest = models.DescribeCustomizedConfigListRequest;
25
+ const ExtraInfo = models.ExtraInfo;
26
+ const DescribeCustomizedConfigAssociateListResponse = models.DescribeCustomizedConfigAssociateListResponse;
27
+ const CloneLoadBalancerResponse = models.CloneLoadBalancerResponse;
28
+ const BatchModifyTargetWeightResponse = models.BatchModifyTargetWeightResponse;
29
+ const DescribeLoadBalancerListByCertIdResponse = models.DescribeLoadBalancerListByCertIdResponse;
30
+ const CreateLoadBalancerRequest = models.CreateLoadBalancerRequest;
31
+ const LoadBalancerHealth = models.LoadBalancerHealth;
32
+ const DescribeTargetHealthRequest = models.DescribeTargetHealthRequest;
33
+ const CloneLoadBalancerRequest = models.CloneLoadBalancerRequest;
34
+ const Target = models.Target;
35
+ const RsWeightRule = models.RsWeightRule;
36
+ const DescribeCustomizedConfigListResponse = models.DescribeCustomizedConfigListResponse;
37
+ const CertIdRelatedWithLoadBalancers = models.CertIdRelatedWithLoadBalancers;
38
+ const RuleHealth = models.RuleHealth;
39
+ const TagInfo = models.TagInfo;
40
+ const ConfigListItem = models.ConfigListItem;
41
+ const DescribeClassicalLBListenersResponse = models.DescribeClassicalLBListenersResponse;
42
+ const SnatIp = models.SnatIp;
43
+ const DescribeTargetHealthResponse = models.DescribeTargetHealthResponse;
44
+ const CreateLoadBalancerResponse = models.CreateLoadBalancerResponse;
45
+ const ClusterItem = models.ClusterItem;
46
+ const BindDetailItem = models.BindDetailItem;
47
+ const SetCustomizedConfigForLoadBalancerResponse = models.SetCustomizedConfigForLoadBalancerResponse;
48
+ const AvailableZoneAffinityInfo = models.AvailableZoneAffinityInfo;
49
+ const Filter = models.Filter;
50
+ const DescribeCustomizedConfigAssociateListRequest = models.DescribeCustomizedConfigAssociateListRequest;
51
+ const DescribeLoadBalancersDetailRequest = models.DescribeLoadBalancersDetailRequest;
52
+ const LoadBalancerDetail = models.LoadBalancerDetail;
53
+ const DescribeLoadBalancersRequest = models.DescribeLoadBalancersRequest;
54
+ const DescribeLoadBalancersResponse = models.DescribeLoadBalancersResponse;
55
+ const ZoneInfo = models.ZoneInfo;
56
+ const ExclusiveCluster = models.ExclusiveCluster;
57
+ const InternetAccessible = models.InternetAccessible;
58
+ const DescribeClassicalLBListenersRequest = models.DescribeClassicalLBListenersRequest;
59
+ const TargetHealth = models.TargetHealth;
60
+ const ListenerHealth = models.ListenerHealth;
61
+ const DescribeLoadBalancersDetailResponse = models.DescribeLoadBalancersDetailResponse;
62
+ const BatchModifyTargetWeightRequest = models.BatchModifyTargetWeightRequest;
63
+ const LoadBalancer = models.LoadBalancer;
64
+
65
+
66
+ /**
67
+ * clb client
68
+ * @class
69
+ */
70
+ class ClbClient extends AbstractClient {
71
+
72
+ constructor(credential, region, profile) {
73
+ super("clb.intl.tencentcloudapi.com", "2023-04-17", credential, region, profile);
74
+ }
75
+
76
+ /**
77
+ * This API is used to obtain listener information of classic CLB.
78
+ * @param {DescribeClassicalLBListenersRequest} req
79
+ * @param {function(string, DescribeClassicalLBListenersResponse):void} cb
80
+ * @public
81
+ */
82
+ DescribeClassicalLBListeners(req, cb) {
83
+ let resp = new DescribeClassicalLBListenersResponse();
84
+ this.request("DescribeClassicalLBListeners", req, resp, cb);
85
+ }
86
+
87
+ /**
88
+ * Query the detailed information of Cloud Load Balancer, including listeners, rules, and backend targets.
89
+ * @param {DescribeLoadBalancersDetailRequest} req
90
+ * @param {function(string, DescribeLoadBalancersDetailResponse):void} cb
91
+ * @public
92
+ */
93
+ DescribeLoadBalancersDetail(req, cb) {
94
+ let resp = new DescribeLoadBalancersDetailResponse();
95
+ this.request("DescribeLoadBalancersDetail", req, resp, cb);
96
+ }
97
+
98
+ /**
99
+ * This API is used to query the locations, servers, or CLB instances bound to a configuration. If there are domains, the result will be filtered by domain.
100
+ * @param {DescribeCustomizedConfigAssociateListRequest} req
101
+ * @param {function(string, DescribeCustomizedConfigAssociateListResponse):void} cb
102
+ * @public
103
+ */
104
+ DescribeCustomizedConfigAssociateList(req, cb) {
105
+ let resp = new DescribeCustomizedConfigAssociateListResponse();
106
+ this.request("DescribeCustomizedConfigAssociateList", req, resp, cb);
107
+ }
108
+
109
+ /**
110
+ * Pull the list of custom configurations. The configurations of the specified type under the user's AppId will be returned.
111
+ * @param {DescribeCustomizedConfigListRequest} req
112
+ * @param {function(string, DescribeCustomizedConfigListResponse):void} cb
113
+ * @public
114
+ */
115
+ DescribeCustomizedConfigList(req, cb) {
116
+ let resp = new DescribeCustomizedConfigListResponse();
117
+ this.request("DescribeCustomizedConfigList", req, resp, cb);
118
+ }
119
+
120
+ /**
121
+ * This API is used to query the list of CLB instances associated with a certificate in a region by certificate ID.
122
+ * @param {DescribeLoadBalancerListByCertIdRequest} req
123
+ * @param {function(string, DescribeLoadBalancerListByCertIdResponse):void} cb
124
+ * @public
125
+ */
126
+ DescribeLoadBalancerListByCertId(req, cb) {
127
+ let resp = new DescribeLoadBalancerListByCertIdResponse();
128
+ this.request("DescribeLoadBalancerListByCertId", req, resp, cb);
129
+ }
130
+
131
+ /**
132
+ * This API is used to create, delete, modify, bind, and unbind custom CLB configurations.
133
+ * @param {SetCustomizedConfigForLoadBalancerRequest} req
134
+ * @param {function(string, SetCustomizedConfigForLoadBalancerResponse):void} cb
135
+ * @public
136
+ */
137
+ SetCustomizedConfigForLoadBalancer(req, cb) {
138
+ let resp = new SetCustomizedConfigForLoadBalancerResponse();
139
+ this.request("SetCustomizedConfigForLoadBalancer", req, resp, cb);
140
+ }
141
+
142
+ /**
143
+ * This API is used to clone a Cloud Load Balancer instance. Based on the designated CLB instance, it creates a new instance with identical rules and binding relationships. The cloning operation is asynchronous. The cloned data is based on the call to CloneLoadBalancer. If the cloned CLB changes after calling CloneLoadBalancer, the change rules will not be cloned.
144
+
145
+ Limitation notes:
146
+ Does not support basic networks, classic CLB, IPv6, or NAT64.
147
+ Unsupported Monthly Subscription CLB
148
+ The listener does not support QUIC or port ranges.
149
+ No support for backend types: target group, Serverless Cloud Function (SCF).
150
+ Personalized configuration, redirection configuration, and security group default allow switch will not be cloned and must be manually configured.
151
+
152
+ API calling
153
+ BGP bandwidth package must include bandwidth package ID
154
+ Exclusive cluster cloning must pass corresponding parameters, otherwise shared instance creation is used.
155
+ The feature is in beta test. You can submit a [beta test application](https://www.tencentcloud.com/apply/p/1akuvsmyn0g?from_cn_redirect=1).
156
+ * @param {CloneLoadBalancerRequest} req
157
+ * @param {function(string, CloneLoadBalancerResponse):void} cb
158
+ * @public
159
+ */
160
+ CloneLoadBalancer(req, cb) {
161
+ let resp = new CloneLoadBalancerResponse();
162
+ this.request("CloneLoadBalancer", req, resp, cb);
163
+ }
164
+
165
+ /**
166
+ * The BatchModifyTargetWeight API is used to modify the forwarding weight of backend machines bound to a Cloud Load Balancer listener in batch. The resource limit is 500. This is an async API. After it returns a successful result, call DescribeTaskStatus API with the returned RequestID as input parameter to check whether this task is successful.<br/>This API is supported by layer-4 and layer-7 CLB listeners but not by classic CLB.
167
+ * @param {BatchModifyTargetWeightRequest} req
168
+ * @param {function(string, BatchModifyTargetWeightResponse):void} cb
169
+ * @public
170
+ */
171
+ BatchModifyTargetWeight(req, cb) {
172
+ let resp = new BatchModifyTargetWeightResponse();
173
+ this.request("BatchModifyTargetWeight", req, resp, cb);
174
+ }
175
+
176
+ /**
177
+ * This API (DescribeTargetHealth) is used to query the health check result of a real server of a CLB instance. It is not supported by Classic CLB.
178
+ * @param {DescribeTargetHealthRequest} req
179
+ * @param {function(string, DescribeTargetHealthResponse):void} cb
180
+ * @public
181
+ */
182
+ DescribeTargetHealth(req, cb) {
183
+ let resp = new DescribeTargetHealthResponse();
184
+ this.request("DescribeTargetHealth", req, resp, cb);
185
+ }
186
+
187
+ /**
188
+ * This API is used to create a Cloud Load Balancer instance (this interface supports only pay-as-you-go CLB instances. For annual/monthly subscription, proceed to purchase through the console). To use the CLB service, you must purchase one or more CLB instances. After successfully calling the API, the unique ID of the CLB instance will be returned. CLB instances are divided into public network and private network types. For details, refer to the product type in the product description.
189
+ Note: (1) To apply for Cloud Load Balancer (CLB) in a specified availability zone or cross-zone disaster recovery (only supported in Hong Kong (China)), [submit a request](https://console.cloud.tencent.com/workorder/category) if you need to experience the feature. (2) Currently only Beijing, Shanghai, and Guangzhou support IPv6. (3) The default purchase quota for an account in each region is 100 for public network and 100 for private network.
190
+ This is an async API. After the API returns successfully, you can use the DescribeLoadBalancers API to query the status of the Cloud Load Balancer instance (such as creating and normal) to confirm whether the creation is successful.
191
+ * @param {CreateLoadBalancerRequest} req
192
+ * @param {function(string, CreateLoadBalancerResponse):void} cb
193
+ * @public
194
+ */
195
+ CreateLoadBalancer(req, cb) {
196
+ let resp = new CreateLoadBalancerResponse();
197
+ this.request("CreateLoadBalancer", req, resp, cb);
198
+ }
199
+
200
+ /**
201
+ * This API is used to query the list of CLB instances in a region.
202
+ * @param {DescribeLoadBalancersRequest} req
203
+ * @param {function(string, DescribeLoadBalancersResponse):void} cb
204
+ * @public
205
+ */
206
+ DescribeLoadBalancers(req, cb) {
207
+ let resp = new DescribeLoadBalancersResponse();
208
+ this.request("DescribeLoadBalancers", req, resp, cb);
209
+ }
210
+
211
+
212
+ }
213
+ module.exports = ClbClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./clb_client"),
3
+ Models: require("./models"),
4
+ };