tencentcloud-sdk-nodejs-waf 4.1.122 → 4.1.124
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
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
|
|
package/package.json
CHANGED
|
@@ -11413,31 +11413,21 @@ export interface AddSpartaProtectionRequest {
|
|
|
11413
11413
|
*/
|
|
11414
11414
|
InstanceID: string;
|
|
11415
11415
|
/**
|
|
11416
|
-
*
|
|
11417
|
-
0:不强制跳转
|
|
11418
|
-
1:开启强制跳转
|
|
11416
|
+
* 是否开启HTTP强制跳转到HTTPS。0:不强制跳转1:开启强制跳转
|
|
11419
11417
|
*/
|
|
11420
|
-
HttpsRewrite
|
|
11418
|
+
HttpsRewrite?: number;
|
|
11421
11419
|
/**
|
|
11422
|
-
*
|
|
11423
|
-
0:关闭
|
|
11424
|
-
1:开启
|
|
11420
|
+
* 是否开启HTTP2,需要开启HTTPS协议支持。0:关闭1:开启
|
|
11425
11421
|
*/
|
|
11426
|
-
IsHttp2
|
|
11422
|
+
IsHttp2?: number;
|
|
11427
11423
|
/**
|
|
11428
|
-
*
|
|
11429
|
-
0:不开启
|
|
11430
|
-
1:开启
|
|
11424
|
+
* 是否开启主动健康检测。0:不开启1:开启
|
|
11431
11425
|
*/
|
|
11432
|
-
ActiveCheck
|
|
11426
|
+
ActiveCheck?: number;
|
|
11433
11427
|
/**
|
|
11434
|
-
*
|
|
11435
|
-
0:不支持选择,使用默认模板
|
|
11436
|
-
1:通用型模板
|
|
11437
|
-
2:安全型模板
|
|
11438
|
-
3:自定义模板
|
|
11428
|
+
* 加密套件模板。0:不支持选择,使用默认模板 1:通用型模板 2:安全型模板3:自定义模板
|
|
11439
11429
|
*/
|
|
11440
|
-
CipherTemplate
|
|
11430
|
+
CipherTemplate?: number;
|
|
11441
11431
|
/**
|
|
11442
11432
|
* CertType为1时,需要填充此参数,表示自有证书的证书链
|
|
11443
11433
|
*/
|