tencentcloud-sdk-nodejs-intl-en 3.0.1055 → 3.0.1056

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.1055",
3
+ "version": "3.0.1056",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1055";
1
+ const sdkVersion = "3.0.1056";
2
2
  module.exports = sdkVersion
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20240906: require("./v20240906"),
3
+ };
@@ -0,0 +1,280 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 DescribeTargetGroupInstanceStatusRequest = models.DescribeTargetGroupInstanceStatusRequest;
20
+ const DescribeTargetGroupListResponse = models.DescribeTargetGroupListResponse;
21
+ const DisassociateTargetGroupsResponse = models.DisassociateTargetGroupsResponse;
22
+ const DescribeTargetGroupListRequest = models.DescribeTargetGroupListRequest;
23
+ const ModifyGatewayLoadBalancerAttributeRequest = models.ModifyGatewayLoadBalancerAttributeRequest;
24
+ const ModifyTargetGroupInstancesWeightResponse = models.ModifyTargetGroupInstancesWeightResponse;
25
+ const DescribeTargetGroupsRequest = models.DescribeTargetGroupsRequest;
26
+ const DescribeTaskStatusResponse = models.DescribeTaskStatusResponse;
27
+ const InquirePriceCreateGatewayLoadBalancerResponse = models.InquirePriceCreateGatewayLoadBalancerResponse;
28
+ const CreateTargetGroupResponse = models.CreateTargetGroupResponse;
29
+ const TargetGroupBackend = models.TargetGroupBackend;
30
+ const TargetGroupHealthCheck = models.TargetGroupHealthCheck;
31
+ const ModifyTargetGroupInstancesWeightRequest = models.ModifyTargetGroupInstancesWeightRequest;
32
+ const DeleteTargetGroupsResponse = models.DeleteTargetGroupsResponse;
33
+ const Price = models.Price;
34
+ const ModifyGatewayLoadBalancerAttributeResponse = models.ModifyGatewayLoadBalancerAttributeResponse;
35
+ const DeleteGatewayLoadBalancerRequest = models.DeleteGatewayLoadBalancerRequest;
36
+ const TagInfo = models.TagInfo;
37
+ const AssociateTargetGroupsRequest = models.AssociateTargetGroupsRequest;
38
+ const DeregisterTargetGroupInstancesRequest = models.DeregisterTargetGroupInstancesRequest;
39
+ const GatewayLoadBalancer = models.GatewayLoadBalancer;
40
+ const DescribeGatewayLoadBalancersRequest = models.DescribeGatewayLoadBalancersRequest;
41
+ const DeregisterTargetGroupInstancesResponse = models.DeregisterTargetGroupInstancesResponse;
42
+ const DescribeTargetGroupInstancesResponse = models.DescribeTargetGroupInstancesResponse;
43
+ const CreateTargetGroupRequest = models.CreateTargetGroupRequest;
44
+ const CreateGatewayLoadBalancerRequest = models.CreateGatewayLoadBalancerRequest;
45
+ const AssociateTargetGroupsResponse = models.AssociateTargetGroupsResponse;
46
+ const InquirePriceCreateGatewayLoadBalancerRequest = models.InquirePriceCreateGatewayLoadBalancerRequest;
47
+ const DisassociateTargetGroupsRequest = models.DisassociateTargetGroupsRequest;
48
+ const Filter = models.Filter;
49
+ const TargetGroupInstanceStatus = models.TargetGroupInstanceStatus;
50
+ const DescribeTargetGroupInstanceStatusResponse = models.DescribeTargetGroupInstanceStatusResponse;
51
+ const DescribeTargetGroupInstancesRequest = models.DescribeTargetGroupInstancesRequest;
52
+ const DescribeTaskStatusRequest = models.DescribeTaskStatusRequest;
53
+ const RegisterTargetGroupInstancesResponse = models.RegisterTargetGroupInstancesResponse;
54
+ const CreateGatewayLoadBalancerResponse = models.CreateGatewayLoadBalancerResponse;
55
+ const DescribeTargetGroupsResponse = models.DescribeTargetGroupsResponse;
56
+ const RegisterTargetGroupInstancesRequest = models.RegisterTargetGroupInstancesRequest;
57
+ const DeleteTargetGroupsRequest = models.DeleteTargetGroupsRequest;
58
+ const ItemPrice = models.ItemPrice;
59
+ const TargetGroupAssociation = models.TargetGroupAssociation;
60
+ const TargetGroupInstance = models.TargetGroupInstance;
61
+ const ModifyTargetGroupAttributeResponse = models.ModifyTargetGroupAttributeResponse;
62
+ const AssociationItem = models.AssociationItem;
63
+ const ModifyTargetGroupAttributeRequest = models.ModifyTargetGroupAttributeRequest;
64
+ const TargetGroupInfo = models.TargetGroupInfo;
65
+ const DescribeGatewayLoadBalancersResponse = models.DescribeGatewayLoadBalancersResponse;
66
+ const DeleteGatewayLoadBalancerResponse = models.DeleteGatewayLoadBalancerResponse;
67
+
68
+
69
+ /**
70
+ * gwlb client
71
+ * @class
72
+ */
73
+ class GwlbClient extends AbstractClient {
74
+
75
+ constructor(credential, region, profile) {
76
+ super("gwlb.tencentcloudapi.com", "2024-09-06", credential, region, profile);
77
+ }
78
+
79
+ /**
80
+ * This API is used to delete a target group.
81
+ * @param {DeleteTargetGroupsRequest} req
82
+ * @param {function(string, DeleteTargetGroupsResponse):void} cb
83
+ * @public
84
+ */
85
+ DeleteTargetGroups(req, cb) {
86
+ let resp = new DeleteTargetGroupsResponse();
87
+ this.request("DeleteTargetGroups", req, resp, cb);
88
+ }
89
+
90
+ /**
91
+ * This API is used to delete one or more specified GWLB instances. After successful deletion, the GWLB instances will be unbound from the backend service.This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestId as an input parameter to check whether this task is successful.
92
+ * @param {DeleteGatewayLoadBalancerRequest} req
93
+ * @param {function(string, DeleteGatewayLoadBalancerResponse):void} cb
94
+ * @public
95
+ */
96
+ DeleteGatewayLoadBalancer(req, cb) {
97
+ let resp = new DeleteGatewayLoadBalancerResponse();
98
+ this.request("DeleteGatewayLoadBalancer", req, resp, cb);
99
+ }
100
+
101
+ /**
102
+ * This API is used to register servers to a target group.This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
103
+ * @param {RegisterTargetGroupInstancesRequest} req
104
+ * @param {function(string, RegisterTargetGroupInstancesResponse):void} cb
105
+ * @public
106
+ */
107
+ RegisterTargetGroupInstances(req, cb) {
108
+ let resp = new RegisterTargetGroupInstancesResponse();
109
+ this.request("RegisterTargetGroupInstances", req, resp, cb);
110
+ }
111
+
112
+ /**
113
+ * This API is used to query target group information.
114
+ * @param {DescribeTargetGroupsRequest} req
115
+ * @param {function(string, DescribeTargetGroupsResponse):void} cb
116
+ * @public
117
+ */
118
+ DescribeTargetGroups(req, cb) {
119
+ let resp = new DescribeTargetGroupsResponse();
120
+ this.request("DescribeTargetGroups", req, resp, cb);
121
+ }
122
+
123
+ /**
124
+ * This API is used to modify the name, health check, and other attributes of the target group.
125
+ * @param {ModifyTargetGroupAttributeRequest} req
126
+ * @param {function(string, ModifyTargetGroupAttributeResponse):void} cb
127
+ * @public
128
+ */
129
+ ModifyTargetGroupAttribute(req, cb) {
130
+ let resp = new ModifyTargetGroupAttributeResponse();
131
+ this.request("ModifyTargetGroupAttribute", req, resp, cb);
132
+ }
133
+
134
+ /**
135
+ * This API is used to query the execution status of an async task. After non-query APIs (for example, used to create/delete CLB instances) are called successfully, this API needs to be used to query whether the task is successful.
136
+ * @param {DescribeTaskStatusRequest} req
137
+ * @param {function(string, DescribeTaskStatusResponse):void} cb
138
+ * @public
139
+ */
140
+ DescribeTaskStatus(req, cb) {
141
+ let resp = new DescribeTaskStatusResponse();
142
+ this.request("DescribeTaskStatus", req, resp, cb);
143
+ }
144
+
145
+ /**
146
+ * This API is used to create a GWLB instance. To use the GWLB service, you must purchase one or more GWLB instances. After this API is called successfully, a unique ID for the GWLB instance will be returned.Note: The default purchase quota for each account in each region is 10.This is an async API. After the API is called successfully, you can use the DescribeGatewayLoadBalancers API to query the status of the GWLB instance (such as creating and normal) to determine whether the creation is successful.
147
+ * @param {CreateGatewayLoadBalancerRequest} req
148
+ * @param {function(string, CreateGatewayLoadBalancerResponse):void} cb
149
+ * @public
150
+ */
151
+ CreateGatewayLoadBalancer(req, cb) {
152
+ let resp = new CreateGatewayLoadBalancerResponse();
153
+ this.request("CreateGatewayLoadBalancer", req, resp, cb);
154
+ }
155
+
156
+ /**
157
+ * This API is used to disassociate a CLB from a target group.This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
158
+ * @param {DisassociateTargetGroupsRequest} req
159
+ * @param {function(string, DisassociateTargetGroupsResponse):void} cb
160
+ * @public
161
+ */
162
+ DisassociateTargetGroups(req, cb) {
163
+ let resp = new DisassociateTargetGroupsResponse();
164
+ this.request("DisassociateTargetGroups", req, resp, cb);
165
+ }
166
+
167
+ /**
168
+ * This API is used to modify the server weight of a target group.This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
169
+ * @param {ModifyTargetGroupInstancesWeightRequest} req
170
+ * @param {function(string, ModifyTargetGroupInstancesWeightResponse):void} cb
171
+ * @public
172
+ */
173
+ ModifyTargetGroupInstancesWeight(req, cb) {
174
+ let resp = new ModifyTargetGroupInstancesWeightResponse();
175
+ this.request("ModifyTargetGroupInstancesWeight", req, resp, cb);
176
+ }
177
+
178
+ /**
179
+ * This API is used to query the backend service status of a target group. Currently, only GWLB type target groups support querying backend service status.
180
+ * @param {DescribeTargetGroupInstanceStatusRequest} req
181
+ * @param {function(string, DescribeTargetGroupInstanceStatusResponse):void} cb
182
+ * @public
183
+ */
184
+ DescribeTargetGroupInstanceStatus(req, cb) {
185
+ let resp = new DescribeTargetGroupInstanceStatusResponse();
186
+ this.request("DescribeTargetGroupInstanceStatus", req, resp, cb);
187
+ }
188
+
189
+ /**
190
+ * This API is used to bind target groups to a CLB.This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
191
+ * @param {AssociateTargetGroupsRequest} req
192
+ * @param {function(string, AssociateTargetGroupsResponse):void} cb
193
+ * @public
194
+ */
195
+ AssociateTargetGroups(req, cb) {
196
+ let resp = new AssociateTargetGroupsResponse();
197
+ this.request("AssociateTargetGroups", req, resp, cb);
198
+ }
199
+
200
+ /**
201
+ * This API is used to query the list of GWLB instances in a region.
202
+ * @param {DescribeGatewayLoadBalancersRequest} req
203
+ * @param {function(string, DescribeGatewayLoadBalancersResponse):void} cb
204
+ * @public
205
+ */
206
+ DescribeGatewayLoadBalancers(req, cb) {
207
+ let resp = new DescribeGatewayLoadBalancersResponse();
208
+ this.request("DescribeGatewayLoadBalancers", req, resp, cb);
209
+ }
210
+
211
+ /**
212
+ * This API is used to modify the attributes of a CLB instance. It supports modifying the name and bandwidth cap of the CLB instance.
213
+ * @param {ModifyGatewayLoadBalancerAttributeRequest} req
214
+ * @param {function(string, ModifyGatewayLoadBalancerAttributeResponse):void} cb
215
+ * @public
216
+ */
217
+ ModifyGatewayLoadBalancerAttribute(req, cb) {
218
+ let resp = new ModifyGatewayLoadBalancerAttributeResponse();
219
+ this.request("ModifyGatewayLoadBalancerAttribute", req, resp, cb);
220
+ }
221
+
222
+ /**
223
+ * This API is used to obtain a target group list.
224
+ * @param {DescribeTargetGroupListRequest} req
225
+ * @param {function(string, DescribeTargetGroupListResponse):void} cb
226
+ * @public
227
+ */
228
+ DescribeTargetGroupList(req, cb) {
229
+ let resp = new DescribeTargetGroupListResponse();
230
+ this.request("DescribeTargetGroupList", req, resp, cb);
231
+ }
232
+
233
+ /**
234
+ * This API is used to query the price for creating a GWLB.
235
+ * @param {InquirePriceCreateGatewayLoadBalancerRequest} req
236
+ * @param {function(string, InquirePriceCreateGatewayLoadBalancerResponse):void} cb
237
+ * @public
238
+ */
239
+ InquirePriceCreateGatewayLoadBalancer(req, cb) {
240
+ let resp = new InquirePriceCreateGatewayLoadBalancerResponse();
241
+ this.request("InquirePriceCreateGatewayLoadBalancer", req, resp, cb);
242
+ }
243
+
244
+ /**
245
+ * This API is used to unbind a server from a target group.
246
+ This is an async API. After the API return succeeds, you can call the DescribeTaskStatus API with the returned RequestID as an input parameter to check whether this task is successful.
247
+ * @param {DeregisterTargetGroupInstancesRequest} req
248
+ * @param {function(string, DeregisterTargetGroupInstancesResponse):void} cb
249
+ * @public
250
+ */
251
+ DeregisterTargetGroupInstances(req, cb) {
252
+ let resp = new DeregisterTargetGroupInstancesResponse();
253
+ this.request("DeregisterTargetGroupInstances", req, resp, cb);
254
+ }
255
+
256
+ /**
257
+ * This API is used to create a target group. This feature is in beta testing. If you need to use it, please [submit a ticket](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1).
258
+ * @param {CreateTargetGroupRequest} req
259
+ * @param {function(string, CreateTargetGroupResponse):void} cb
260
+ * @public
261
+ */
262
+ CreateTargetGroup(req, cb) {
263
+ let resp = new CreateTargetGroupResponse();
264
+ this.request("CreateTargetGroup", req, resp, cb);
265
+ }
266
+
267
+ /**
268
+ * This API is used to obtain information on servers bound to a target group.
269
+ * @param {DescribeTargetGroupInstancesRequest} req
270
+ * @param {function(string, DescribeTargetGroupInstancesResponse):void} cb
271
+ * @public
272
+ */
273
+ DescribeTargetGroupInstances(req, cb) {
274
+ let resp = new DescribeTargetGroupInstancesResponse();
275
+ this.request("DescribeTargetGroupInstances", req, resp, cb);
276
+ }
277
+
278
+
279
+ }
280
+ module.exports = GwlbClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./gwlb_client"),
3
+ Models: require("./models"),
4
+ };