tencentcloud-sdk-nodejs 4.0.288 → 4.0.289
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/CHANGELOG.md +83 -0
- package/SERVICE_CHANGELOG.md +95 -33
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +18 -1
- package/src/services/cdn/v20180606/cdn_client.ts +4 -2
- package/src/services/ecdn/v20191012/ecdn_client.ts +8 -4
- package/src/services/essbasic/v20210526/essbasic_models.ts +2 -2
- package/src/services/ivld/v20210903/ivld_models.ts +10 -0
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +21 -4
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +208 -35
- package/src/services/tcm/v20210413/tcm_models.ts +10 -0
- package/src/services/vpc/v20170312/vpc_client.ts +4 -4
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +15 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +3 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +3 -1
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.d.ts +6 -2
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.js +6 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -2
- package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +8 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +5 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +6 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +178 -32
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +8 -0
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +4 -4
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +4 -4
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/test/lighthouse.v20200324.test.js +10 -0
|
@@ -78,18 +78,58 @@ export interface AttachCcnRequest {
|
|
|
78
78
|
CcnId: string;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* CreateInstances请求参数结构体
|
|
82
82
|
*/
|
|
83
|
-
export interface
|
|
83
|
+
export interface CreateInstancesRequest {
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Lighthouse套餐ID。
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
BundleId: string;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Lighthouse镜像ID。
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
BlueprintId: string;
|
|
92
|
+
/**
|
|
93
|
+
* 当前Lighthouse实例仅支持预付费模式,即包年包月相关参数设置,单位(月)。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。该参数必传。
|
|
94
|
+
*/
|
|
95
|
+
InstanceChargePrepaid: InstanceChargePrepaid;
|
|
96
|
+
/**
|
|
97
|
+
* Lighthouse实例显示名称。
|
|
98
|
+
*/
|
|
99
|
+
InstanceName?: string;
|
|
100
|
+
/**
|
|
101
|
+
* 购买Lighthouse实例数量。包年包月实例取值范围:[1,30]。默认取值:1。指定购买实例的数量不能超过用户所能购买的剩余配额数量
|
|
102
|
+
*/
|
|
103
|
+
InstanceCount?: number;
|
|
104
|
+
/**
|
|
105
|
+
* 可用区列表。默认为随机可用区
|
|
106
|
+
*/
|
|
107
|
+
Zones?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
* 是否只预检此次请求。
|
|
110
|
+
true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和库存。
|
|
111
|
+
如果检查不通过,则返回对应错误码;
|
|
112
|
+
如果检查通过,则返回RequestId.
|
|
113
|
+
false(默认):发送正常请求,通过检查后直接创建实例
|
|
114
|
+
*/
|
|
115
|
+
DryRun?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
|
|
118
|
+
*/
|
|
119
|
+
ClientToken?: string;
|
|
120
|
+
/**
|
|
121
|
+
* 实例登录密码信息配置。本字段目前仅支持WINDOWS实例进行密码设置。默认缺失情况下代表用户选择实例创建后设置登录密码。
|
|
122
|
+
*/
|
|
123
|
+
LoginConfiguration?: LoginConfiguration;
|
|
124
|
+
/**
|
|
125
|
+
* 要创建的容器配置列表。
|
|
126
|
+
*/
|
|
127
|
+
Containers?: Array<DockerContainerConfiguration>;
|
|
92
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* DescribeZones请求参数结构体
|
|
131
|
+
*/
|
|
132
|
+
export declare type DescribeZonesRequest = null;
|
|
93
133
|
/**
|
|
94
134
|
* 描述地域信息。
|
|
95
135
|
*/
|
|
@@ -232,6 +272,19 @@ export interface DeleteFirewallRulesResponse {
|
|
|
232
272
|
*/
|
|
233
273
|
RequestId?: string;
|
|
234
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* ModifyInstancesAttribute请求参数结构体
|
|
277
|
+
*/
|
|
278
|
+
export interface ModifyInstancesAttributeRequest {
|
|
279
|
+
/**
|
|
280
|
+
* 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
|
|
281
|
+
*/
|
|
282
|
+
InstanceIds: Array<string>;
|
|
283
|
+
/**
|
|
284
|
+
* 实例名称。可任意命名,但不得超过 60 个字符。
|
|
285
|
+
*/
|
|
286
|
+
InstanceName?: string;
|
|
287
|
+
}
|
|
235
288
|
/**
|
|
236
289
|
* DescribeGeneralResourceQuotas请求参数结构体
|
|
237
290
|
*/
|
|
@@ -957,22 +1010,41 @@ export interface ModifyDisksAttributeRequest {
|
|
|
957
1010
|
DiskName: string;
|
|
958
1011
|
}
|
|
959
1012
|
/**
|
|
960
|
-
*
|
|
1013
|
+
* Docker容器映射的端口
|
|
961
1014
|
*/
|
|
962
|
-
export interface
|
|
1015
|
+
export interface DockerContainerPublishPort {
|
|
963
1016
|
/**
|
|
964
|
-
*
|
|
1017
|
+
* 主机端口
|
|
965
1018
|
*/
|
|
966
|
-
|
|
1019
|
+
HostPort: number;
|
|
967
1020
|
/**
|
|
968
|
-
*
|
|
1021
|
+
* 容器端口
|
|
969
1022
|
*/
|
|
970
|
-
|
|
1023
|
+
ContainerPort: number;
|
|
1024
|
+
/**
|
|
1025
|
+
* 对外绑定IP,默认0.0.0.0
|
|
1026
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1027
|
+
*/
|
|
1028
|
+
Ip?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* 协议,默认tcp,支持tcp/udp/sctp
|
|
1031
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1032
|
+
*/
|
|
1033
|
+
Protocol?: string;
|
|
971
1034
|
}
|
|
972
1035
|
/**
|
|
973
|
-
*
|
|
1036
|
+
* DescribeSnapshotsDeniedActions返回参数结构体
|
|
974
1037
|
*/
|
|
975
|
-
export
|
|
1038
|
+
export interface DescribeSnapshotsDeniedActionsResponse {
|
|
1039
|
+
/**
|
|
1040
|
+
* 快照操作限制列表详细信息。
|
|
1041
|
+
*/
|
|
1042
|
+
SnapshotDeniedActionSet: Array<SnapshotDeniedActions>;
|
|
1043
|
+
/**
|
|
1044
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1045
|
+
*/
|
|
1046
|
+
RequestId?: string;
|
|
1047
|
+
}
|
|
976
1048
|
/**
|
|
977
1049
|
* StartInstances请求参数结构体
|
|
978
1050
|
*/
|
|
@@ -1165,29 +1237,19 @@ export interface StopInstancesResponse {
|
|
|
1165
1237
|
RequestId?: string;
|
|
1166
1238
|
}
|
|
1167
1239
|
/**
|
|
1168
|
-
*
|
|
1240
|
+
* CreateInstances返回参数结构体
|
|
1169
1241
|
*/
|
|
1170
|
-
export interface
|
|
1171
|
-
/**
|
|
1172
|
-
* 协议,取值:TCP,UDP,ICMP,ALL。
|
|
1173
|
-
*/
|
|
1174
|
-
Protocol: string;
|
|
1175
|
-
/**
|
|
1176
|
-
* 端口,取值:ALL,单独的端口,逗号分隔的离散端口,减号分隔的端口范围。
|
|
1177
|
-
*/
|
|
1178
|
-
Port?: string;
|
|
1242
|
+
export interface CreateInstancesResponse {
|
|
1179
1243
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* 取值:ACCEPT,DROP。默认为 ACCEPT。
|
|
1244
|
+
* 当通过本接口来创建实例时会返回该参数,表示一个或多个实例ID。返回实例ID列表并不代表实例创建成功。
|
|
1245
|
+
|
|
1246
|
+
可根据 DescribeInstances 接口查询返回的InstancesSet中对应实例的ID的状态来判断创建是否完成;如果实例状态由“启动中”变为“运行中”,则为创建成功。
|
|
1185
1247
|
*/
|
|
1186
|
-
|
|
1248
|
+
InstanceIdSet: Array<string>;
|
|
1187
1249
|
/**
|
|
1188
|
-
*
|
|
1250
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1189
1251
|
*/
|
|
1190
|
-
|
|
1252
|
+
RequestId?: string;
|
|
1191
1253
|
}
|
|
1192
1254
|
/**
|
|
1193
1255
|
* ModifyBlueprintAttribute返回参数结构体
|
|
@@ -1480,6 +1542,19 @@ FAILED:表示操作失败
|
|
|
1480
1542
|
*/
|
|
1481
1543
|
Tags: Array<Tag>;
|
|
1482
1544
|
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Docker容器挂载卷
|
|
1547
|
+
*/
|
|
1548
|
+
export interface DockerContainerVolume {
|
|
1549
|
+
/**
|
|
1550
|
+
* 容器路径
|
|
1551
|
+
*/
|
|
1552
|
+
ContainerPath: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* 主机路径
|
|
1555
|
+
*/
|
|
1556
|
+
HostPath?: string;
|
|
1557
|
+
}
|
|
1483
1558
|
/**
|
|
1484
1559
|
* CreateKeyPair返回参数结构体
|
|
1485
1560
|
*/
|
|
@@ -2142,6 +2217,44 @@ export interface DescribeInstancesReturnableResponse {
|
|
|
2142
2217
|
*/
|
|
2143
2218
|
RequestId?: string;
|
|
2144
2219
|
}
|
|
2220
|
+
/**
|
|
2221
|
+
* 容器环境变量
|
|
2222
|
+
*/
|
|
2223
|
+
export interface ContainerEnv {
|
|
2224
|
+
/**
|
|
2225
|
+
* 环境变量Key
|
|
2226
|
+
*/
|
|
2227
|
+
Key: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* 环境变量值
|
|
2230
|
+
*/
|
|
2231
|
+
Value: string;
|
|
2232
|
+
}
|
|
2233
|
+
/**
|
|
2234
|
+
* 描述防火墙规则信息。
|
|
2235
|
+
*/
|
|
2236
|
+
export interface FirewallRule {
|
|
2237
|
+
/**
|
|
2238
|
+
* 协议,取值:TCP,UDP,ICMP,ALL。
|
|
2239
|
+
*/
|
|
2240
|
+
Protocol: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* 端口,取值:ALL,单独的端口,逗号分隔的离散端口,减号分隔的端口范围。
|
|
2243
|
+
*/
|
|
2244
|
+
Port?: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* 网段或 IP (互斥)。默认为 0.0.0.0/0,表示所有来源。
|
|
2247
|
+
*/
|
|
2248
|
+
CidrBlock?: string;
|
|
2249
|
+
/**
|
|
2250
|
+
* 取值:ACCEPT,DROP。默认为 ACCEPT。
|
|
2251
|
+
*/
|
|
2252
|
+
Action?: string;
|
|
2253
|
+
/**
|
|
2254
|
+
* 防火墙规则描述。
|
|
2255
|
+
*/
|
|
2256
|
+
FirewallRuleDescription?: string;
|
|
2257
|
+
}
|
|
2145
2258
|
/**
|
|
2146
2259
|
* DeleteBlueprints请求参数结构体
|
|
2147
2260
|
*/
|
|
@@ -2316,6 +2429,10 @@ export interface DetachDisksResponse {
|
|
|
2316
2429
|
*/
|
|
2317
2430
|
RequestId?: string;
|
|
2318
2431
|
}
|
|
2432
|
+
/**
|
|
2433
|
+
* 实例密码登录配置信息。
|
|
2434
|
+
*/
|
|
2435
|
+
export declare type LoginConfiguration = null;
|
|
2319
2436
|
/**
|
|
2320
2437
|
* DescribeResetInstanceBlueprints请求参数结构体
|
|
2321
2438
|
*/
|
|
@@ -2356,6 +2473,35 @@ export interface DescribeResetInstanceBlueprintsRequest {
|
|
|
2356
2473
|
*/
|
|
2357
2474
|
Filters?: Array<Filter>;
|
|
2358
2475
|
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Docker容器创建时的配置
|
|
2478
|
+
*/
|
|
2479
|
+
export interface DockerContainerConfiguration {
|
|
2480
|
+
/**
|
|
2481
|
+
* 容器镜像地址
|
|
2482
|
+
*/
|
|
2483
|
+
ContainerImage: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* 容器名称
|
|
2486
|
+
*/
|
|
2487
|
+
ContainerName?: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* 环境变量列表
|
|
2490
|
+
*/
|
|
2491
|
+
Envs?: Array<ContainerEnv>;
|
|
2492
|
+
/**
|
|
2493
|
+
* 容器端口主机端口映射列表
|
|
2494
|
+
*/
|
|
2495
|
+
PublishPorts?: Array<DockerContainerPublishPort>;
|
|
2496
|
+
/**
|
|
2497
|
+
* 容器加载本地卷列表
|
|
2498
|
+
*/
|
|
2499
|
+
Volumes?: Array<DockerContainerVolume>;
|
|
2500
|
+
/**
|
|
2501
|
+
* 运行的命令
|
|
2502
|
+
*/
|
|
2503
|
+
Command?: string;
|
|
2504
|
+
}
|
|
2359
2505
|
/**
|
|
2360
2506
|
* ResetAttachCcn返回参数结构体
|
|
2361
2507
|
*/
|
|
@@ -338,7 +338,7 @@ export declare class Client extends AbstractClient {
|
|
|
338
338
|
*/
|
|
339
339
|
AcceptAttachCcnInstances(req: AcceptAttachCcnInstancesRequest, cb?: (error: string, rep: AcceptAttachCcnInstancesResponse) => void): Promise<AcceptAttachCcnInstancesResponse>;
|
|
340
340
|
/**
|
|
341
|
-
*
|
|
341
|
+
* 删除模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
342
342
|
*/
|
|
343
343
|
DeleteTemplateMember(req: DeleteTemplateMemberRequest, cb?: (error: string, rep: DeleteTemplateMemberResponse) => void): Promise<DeleteTemplateMemberResponse>;
|
|
344
344
|
/**
|
|
@@ -350,7 +350,7 @@ export declare class Client extends AbstractClient {
|
|
|
350
350
|
*/
|
|
351
351
|
DescribeGatewayFlowQos(req: DescribeGatewayFlowQosRequest, cb?: (error: string, rep: DescribeGatewayFlowQosResponse) => void): Promise<DescribeGatewayFlowQosResponse>;
|
|
352
352
|
/**
|
|
353
|
-
*
|
|
353
|
+
* 修改模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
354
354
|
*/
|
|
355
355
|
ModifyTemplateMember(req: ModifyTemplateMemberRequest, cb?: (error: string, rep: ModifyTemplateMemberResponse) => void): Promise<ModifyTemplateMemberResponse>;
|
|
356
356
|
/**
|
|
@@ -961,7 +961,7 @@ LimitTypes取值范围:
|
|
|
961
961
|
*/
|
|
962
962
|
CreateNatGatewaySourceIpTranslationNatRule(req: CreateNatGatewaySourceIpTranslationNatRuleRequest, cb?: (error: string, rep: CreateNatGatewaySourceIpTranslationNatRuleResponse) => void): Promise<CreateNatGatewaySourceIpTranslationNatRuleResponse>;
|
|
963
963
|
/**
|
|
964
|
-
*
|
|
964
|
+
* 增加模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
965
965
|
*/
|
|
966
966
|
AddTemplateMember(req: AddTemplateMemberRequest, cb?: (error: string, rep: AddTemplateMemberResponse) => void): Promise<AddTemplateMemberResponse>;
|
|
967
967
|
/**
|
|
@@ -1003,7 +1003,7 @@ LimitTypes取值范围:
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
ModifyBandwidthPackageAttribute(req: ModifyBandwidthPackageAttributeRequest, cb?: (error: string, rep: ModifyBandwidthPackageAttributeResponse) => void): Promise<ModifyBandwidthPackageAttributeResponse>;
|
|
1005
1005
|
/**
|
|
1006
|
-
* 本接口(CreateAddressTemplate)用于创建IP
|
|
1006
|
+
* 本接口(CreateAddressTemplate)用于创建IP地址模板。
|
|
1007
1007
|
*/
|
|
1008
1008
|
CreateAddressTemplate(req: CreateAddressTemplateRequest, cb?: (error: string, rep: CreateAddressTemplateResponse) => void): Promise<CreateAddressTemplateResponse>;
|
|
1009
1009
|
/**
|
|
@@ -500,7 +500,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
500
500
|
return this.request("AcceptAttachCcnInstances", req, cb);
|
|
501
501
|
}
|
|
502
502
|
/**
|
|
503
|
-
*
|
|
503
|
+
* 删除模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
504
504
|
*/
|
|
505
505
|
async DeleteTemplateMember(req, cb) {
|
|
506
506
|
return this.request("DeleteTemplateMember", req, cb);
|
|
@@ -518,7 +518,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
518
518
|
return this.request("DescribeGatewayFlowQos", req, cb);
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
521
|
-
*
|
|
521
|
+
* 修改模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
522
522
|
*/
|
|
523
523
|
async ModifyTemplateMember(req, cb) {
|
|
524
524
|
return this.request("ModifyTemplateMember", req, cb);
|
|
@@ -1363,7 +1363,7 @@ LimitTypes取值范围:
|
|
|
1363
1363
|
return this.request("CreateNatGatewaySourceIpTranslationNatRule", req, cb);
|
|
1364
1364
|
}
|
|
1365
1365
|
/**
|
|
1366
|
-
*
|
|
1366
|
+
* 增加模板对象中的IP地址、协议端口、IP地址组、协议端口组。当前仅支持北京、泰国、北美地域请求。
|
|
1367
1367
|
*/
|
|
1368
1368
|
async AddTemplateMember(req, cb) {
|
|
1369
1369
|
return this.request("AddTemplateMember", req, cb);
|
|
@@ -1425,7 +1425,7 @@ LimitTypes取值范围:
|
|
|
1425
1425
|
return this.request("ModifyBandwidthPackageAttribute", req, cb);
|
|
1426
1426
|
}
|
|
1427
1427
|
/**
|
|
1428
|
-
* 本接口(CreateAddressTemplate)用于创建IP
|
|
1428
|
+
* 本接口(CreateAddressTemplate)用于创建IP地址模板。
|
|
1429
1429
|
*/
|
|
1430
1430
|
async CreateAddressTemplate(req, cb) {
|
|
1431
1431
|
return this.request("CreateAddressTemplate", req, cb);
|
|
@@ -648,6 +648,16 @@ it("lighthouse.v20200324.RebootInstances", async function () {
|
|
|
648
648
|
}
|
|
649
649
|
})
|
|
650
650
|
|
|
651
|
+
it("lighthouse.v20200324.CreateInstances", async function () {
|
|
652
|
+
try {
|
|
653
|
+
const data = await client.CreateInstances({})
|
|
654
|
+
expect(data).to.be.ok
|
|
655
|
+
} catch(error) {
|
|
656
|
+
expect(error.requestId).to.be.ok
|
|
657
|
+
expect(error.code).to.be.ok
|
|
658
|
+
}
|
|
659
|
+
})
|
|
660
|
+
|
|
651
661
|
it("lighthouse.v20200324.CreateBlueprint", async function () {
|
|
652
662
|
try {
|
|
653
663
|
const data = await client.CreateBlueprint({})
|