tencentcloud-sdk-nodejs-gwlb 4.1.120 → 4.1.129
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/README.md +6 -4
- package/es/services/gwlb/v20240906/gwlb_client.js +3 -0
- package/package.json +2 -1
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.d.ts +5 -1
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.js +6 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.d.ts +45 -6
package/README.md
CHANGED
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
|
@@ -36,6 +36,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
36
36
|
async AssociateTargetGroups(req, cb) {
|
|
37
37
|
return this.request("AssociateTargetGroups", req, cb);
|
|
38
38
|
}
|
|
39
|
+
async DescribeGatewayLoadBalancersResources(req, cb) {
|
|
40
|
+
return this.request("DescribeGatewayLoadBalancersResources", req, cb);
|
|
41
|
+
}
|
|
39
42
|
async DescribeGatewayLoadBalancers(req, cb) {
|
|
40
43
|
return this.request("DescribeGatewayLoadBalancers", req, cb);
|
|
41
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-gwlb",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.129",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
+
"@types/ini": "^4.1.1",
|
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
|
49
50
|
"@types/node": "^18.0.0",
|
|
50
51
|
"@types/node-fetch": "^2.5.7",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeTargetGroupInstanceStatusRequest, DescribeTargetGroupListResponse, DisassociateTargetGroupsResponse, DescribeTargetGroupListRequest, ModifyGatewayLoadBalancerAttributeRequest, ModifyTargetGroupInstancesWeightResponse, DescribeTargetGroupsRequest, DescribeTaskStatusResponse,
|
|
2
|
+
import { DescribeTargetGroupInstanceStatusRequest, DescribeTargetGroupListResponse, DisassociateTargetGroupsResponse, InquirePriceCreateGatewayLoadBalancerResponse, DescribeTargetGroupListRequest, ModifyGatewayLoadBalancerAttributeRequest, ModifyTargetGroupInstancesWeightResponse, DescribeTargetGroupsRequest, DescribeTaskStatusResponse, DescribeGatewayLoadBalancersResourcesRequest, CreateTargetGroupResponse, ModifyTargetGroupInstancesWeightRequest, DeleteTargetGroupsResponse, ModifyGatewayLoadBalancerAttributeResponse, DeleteGatewayLoadBalancerRequest, AssociateTargetGroupsRequest, DescribeGatewayLoadBalancersResourcesResponse, DeregisterTargetGroupInstancesRequest, DescribeGatewayLoadBalancersRequest, DeregisterTargetGroupInstancesResponse, DescribeTargetGroupInstancesResponse, CreateTargetGroupRequest, CreateGatewayLoadBalancerRequest, AssociateTargetGroupsResponse, InquirePriceCreateGatewayLoadBalancerRequest, DisassociateTargetGroupsRequest, DescribeTargetGroupInstanceStatusResponse, DescribeTargetGroupInstancesRequest, DescribeTaskStatusRequest, RegisterTargetGroupInstancesResponse, CreateGatewayLoadBalancerResponse, DescribeTargetGroupsResponse, RegisterTargetGroupInstancesRequest, DeleteTargetGroupsRequest, ModifyTargetGroupAttributeResponse, ModifyTargetGroupAttributeRequest, DescribeGatewayLoadBalancersResponse, DeleteGatewayLoadBalancerResponse } from "./gwlb_models";
|
|
3
3
|
/**
|
|
4
4
|
* gwlb client
|
|
5
5
|
* @class
|
|
@@ -55,6 +55,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
55
55
|
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
|
|
56
56
|
*/
|
|
57
57
|
AssociateTargetGroups(req: AssociateTargetGroupsRequest, cb?: (error: string, rep: AssociateTargetGroupsResponse) => void): Promise<AssociateTargetGroupsResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* 查询用户在当前地域支持可用区列表
|
|
60
|
+
*/
|
|
61
|
+
DescribeGatewayLoadBalancersResources(req: DescribeGatewayLoadBalancersResourcesRequest, cb?: (error: string, rep: DescribeGatewayLoadBalancersResourcesResponse) => void): Promise<DescribeGatewayLoadBalancersResourcesResponse>;
|
|
58
62
|
/**
|
|
59
63
|
* 查询一个地域的网关负载均衡实例列表。
|
|
60
64
|
*/
|
|
@@ -99,6 +99,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
99
99
|
async AssociateTargetGroups(req, cb) {
|
|
100
100
|
return this.request("AssociateTargetGroups", req, cb);
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* 查询用户在当前地域支持可用区列表
|
|
104
|
+
*/
|
|
105
|
+
async DescribeGatewayLoadBalancersResources(req, cb) {
|
|
106
|
+
return this.request("DescribeGatewayLoadBalancersResources", req, cb);
|
|
107
|
+
}
|
|
102
108
|
/**
|
|
103
109
|
* 查询一个地域的网关负载均衡实例列表。
|
|
104
110
|
*/
|
|
@@ -37,6 +37,19 @@ export interface DisassociateTargetGroupsResponse {
|
|
|
37
37
|
*/
|
|
38
38
|
RequestId?: string;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* InquirePriceCreateGatewayLoadBalancer返回参数结构体
|
|
42
|
+
*/
|
|
43
|
+
export interface InquirePriceCreateGatewayLoadBalancerResponse {
|
|
44
|
+
/**
|
|
45
|
+
* 该参数表示对应的价格。
|
|
46
|
+
*/
|
|
47
|
+
Price?: Price;
|
|
48
|
+
/**
|
|
49
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
50
|
+
*/
|
|
51
|
+
RequestId?: string;
|
|
52
|
+
}
|
|
40
53
|
/**
|
|
41
54
|
* DescribeTargetGroupList请求参数结构体
|
|
42
55
|
*/
|
|
@@ -134,17 +147,17 @@ export interface DescribeTaskStatusResponse {
|
|
|
134
147
|
RequestId?: string;
|
|
135
148
|
}
|
|
136
149
|
/**
|
|
137
|
-
*
|
|
150
|
+
* DescribeGatewayLoadBalancersResources请求参数结构体
|
|
138
151
|
*/
|
|
139
|
-
export interface
|
|
152
|
+
export interface DescribeGatewayLoadBalancersResourcesRequest {
|
|
140
153
|
/**
|
|
141
|
-
*
|
|
154
|
+
* 返回可用区资源列表数目,默认20,最大值100。
|
|
142
155
|
*/
|
|
143
|
-
|
|
156
|
+
Limit?: number;
|
|
144
157
|
/**
|
|
145
|
-
*
|
|
158
|
+
* 返回可用区资源列表起始偏移量,默认0。
|
|
146
159
|
*/
|
|
147
|
-
|
|
160
|
+
Offset?: number;
|
|
148
161
|
}
|
|
149
162
|
/**
|
|
150
163
|
* CreateTargetGroup返回参数结构体
|
|
@@ -320,6 +333,23 @@ export interface AssociateTargetGroupsRequest {
|
|
|
320
333
|
*/
|
|
321
334
|
Associations: Array<TargetGroupAssociation>;
|
|
322
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* DescribeGatewayLoadBalancersResources返回参数结构体
|
|
338
|
+
*/
|
|
339
|
+
export interface DescribeGatewayLoadBalancersResourcesResponse {
|
|
340
|
+
/**
|
|
341
|
+
* 可用区支持的资源列表。
|
|
342
|
+
*/
|
|
343
|
+
ZoneResourceSet?: Array<ZoneResource>;
|
|
344
|
+
/**
|
|
345
|
+
* 可用区资源列表数目。
|
|
346
|
+
*/
|
|
347
|
+
TotalCount?: number;
|
|
348
|
+
/**
|
|
349
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
350
|
+
*/
|
|
351
|
+
RequestId?: string;
|
|
352
|
+
}
|
|
323
353
|
/**
|
|
324
354
|
* DeregisterTargetGroupInstances请求参数结构体
|
|
325
355
|
*/
|
|
@@ -616,6 +646,15 @@ export interface TargetGroupInstanceStatus {
|
|
|
616
646
|
*/
|
|
617
647
|
Status?: string;
|
|
618
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
* 可用区资源列表
|
|
651
|
+
*/
|
|
652
|
+
export interface ZoneResource {
|
|
653
|
+
/**
|
|
654
|
+
* 主可用区
|
|
655
|
+
*/
|
|
656
|
+
MasterZone?: string;
|
|
657
|
+
}
|
|
619
658
|
/**
|
|
620
659
|
* DescribeTargetGroupInstanceStatus返回参数结构体
|
|
621
660
|
*/
|