tencentcloud-sdk-nodejs 4.0.330 → 4.0.331
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 +349 -0
- package/SERVICE_CHANGELOG.md +597 -23
- package/package.json +1 -1
- package/products.md +20 -19
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_client.ts +5 -5
- package/src/services/apigateway/v20180808/apigateway_models.ts +116 -86
- package/src/services/car/index.ts +5 -0
- package/src/services/car/v20220110/car_client.ts +67 -0
- package/src/services/car/v20220110/car_models.ts +106 -0
- package/src/services/car/v20220110/index.ts +6 -0
- package/src/services/cdb/v20170320/cdb_models.ts +1 -1
- package/src/services/cdn/v20180606/cdn_client.ts +3 -1
- package/src/services/cdn/v20180606/cdn_models.ts +67 -9
- package/src/services/ckafka/v20190819/ckafka_models.ts +12 -2
- package/src/services/cls/v20201016/cls_models.ts +12 -0
- package/src/services/cvm/v20170312/cvm_models.ts +17 -0
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +145 -34
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +646 -91
- package/src/services/dlc/v20210125/dlc_models.ts +24 -1
- package/src/services/domain/v20180808/domain_client.ts +15 -2
- package/src/services/domain/v20180808/domain_models.ts +202 -30
- package/src/services/ess/v20201111/ess_models.ts +4 -3
- package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/mongodb/v20190725/mongodb_models.ts +2 -2
- package/src/services/monitor/v20180724/monitor_models.ts +11 -6
- package/src/services/rce/v20201103/rce_models.ts +11 -0
- package/src/services/redis/v20180412/redis_client.ts +37 -13
- package/src/services/redis/v20180412/redis_models.ts +113 -53
- package/src/services/vod/v20180717/vod_models.ts +22 -2
- package/src/services/waf/v20180125/waf_client.ts +14 -0
- package/src/services/waf/v20180125/waf_models.ts +73 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +5 -5
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +5 -5
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +110 -86
- package/tencentcloud/services/car/index.d.ts +6 -0
- package/tencentcloud/services/car/index.js +7 -0
- package/tencentcloud/services/car/v20220110/car_client.d.ts +22 -0
- package/tencentcloud/services/car/v20220110/car_client.js +49 -0
- package/tencentcloud/services/car/v20220110/car_models.d.ts +78 -0
- package/tencentcloud/services/car/v20220110/car_models.js +18 -0
- package/tencentcloud/services/car/v20220110/index.d.ts +6 -0
- package/tencentcloud/services/car/v20220110/index.js +9 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +57 -8
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +10 -2
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +10 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +14 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +47 -11
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +69 -15
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +534 -69
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +20 -1
- package/tencentcloud/services/domain/v20180808/domain_client.d.ts +5 -1
- package/tencentcloud/services/domain/v20180808/domain_client.js +6 -0
- package/tencentcloud/services/domain/v20180808/domain_models.d.ts +179 -30
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +3 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +2 -2
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +10 -5
- package/tencentcloud/services/rce/v20201103/rce_models.d.ts +9 -0
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +13 -5
- package/tencentcloud/services/redis/v20180412/redis_client.js +18 -6
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +96 -44
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +18 -2
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +62 -2
- package/test/car.v20220110.test.js +51 -0
- package/test/dbbrain.v20210527.test.js +100 -10
- package/test/domain.v20180808.test.js +10 -0
- package/test/redis.v20180412.test.js +24 -4
- package/test/waf.v20180125.test.js +10 -0
|
@@ -128,54 +128,13 @@ export interface RestoreInstanceRequest {
|
|
|
128
128
|
Password?: string;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* AllocateWanAddress请求参数结构体
|
|
132
132
|
*/
|
|
133
|
-
export interface
|
|
134
|
-
/**
|
|
135
|
-
* 任务Id
|
|
136
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
137
|
-
*/
|
|
138
|
-
TaskId: number;
|
|
139
|
-
/**
|
|
140
|
-
* 开始时间
|
|
141
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
142
|
-
*/
|
|
143
|
-
StartTime: string;
|
|
144
|
-
/**
|
|
145
|
-
* 任务类型
|
|
146
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
147
|
-
*/
|
|
148
|
-
TaskType: string;
|
|
149
|
-
/**
|
|
150
|
-
* 实例名称
|
|
151
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
152
|
-
*/
|
|
153
|
-
InstanceName: string;
|
|
133
|
+
export interface AllocateWanAddressRequest {
|
|
154
134
|
/**
|
|
155
|
-
* 实例
|
|
156
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
135
|
+
* 实例ID
|
|
157
136
|
*/
|
|
158
137
|
InstanceId: string;
|
|
159
|
-
/**
|
|
160
|
-
* 项目Id
|
|
161
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
162
|
-
*/
|
|
163
|
-
ProjectId: number;
|
|
164
|
-
/**
|
|
165
|
-
* 任务进度
|
|
166
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
167
|
-
*/
|
|
168
|
-
Progress: number;
|
|
169
|
-
/**
|
|
170
|
-
* 结束时间
|
|
171
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
172
|
-
*/
|
|
173
|
-
EndTime: string;
|
|
174
|
-
/**
|
|
175
|
-
* 任务状态
|
|
176
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
|
-
*/
|
|
178
|
-
Result: number;
|
|
179
138
|
}
|
|
180
139
|
/**
|
|
181
140
|
* ApplyParamsTemplate请求参数结构体
|
|
@@ -1100,6 +1059,56 @@ export interface ManualBackupInstanceResponse {
|
|
|
1100
1059
|
*/
|
|
1101
1060
|
RequestId?: string;
|
|
1102
1061
|
}
|
|
1062
|
+
/**
|
|
1063
|
+
* 任务信息详情
|
|
1064
|
+
*/
|
|
1065
|
+
export interface TaskInfoDetail {
|
|
1066
|
+
/**
|
|
1067
|
+
* 任务Id
|
|
1068
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1069
|
+
*/
|
|
1070
|
+
TaskId: number;
|
|
1071
|
+
/**
|
|
1072
|
+
* 开始时间
|
|
1073
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1074
|
+
*/
|
|
1075
|
+
StartTime: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* 任务类型
|
|
1078
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1079
|
+
*/
|
|
1080
|
+
TaskType: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* 实例名称
|
|
1083
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1084
|
+
*/
|
|
1085
|
+
InstanceName: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* 实例Id
|
|
1088
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1089
|
+
*/
|
|
1090
|
+
InstanceId: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* 项目Id
|
|
1093
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1094
|
+
*/
|
|
1095
|
+
ProjectId: number;
|
|
1096
|
+
/**
|
|
1097
|
+
* 任务进度
|
|
1098
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1099
|
+
*/
|
|
1100
|
+
Progress: number;
|
|
1101
|
+
/**
|
|
1102
|
+
* 结束时间
|
|
1103
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1104
|
+
*/
|
|
1105
|
+
EndTime: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* 任务状态
|
|
1108
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1109
|
+
*/
|
|
1110
|
+
Result: number;
|
|
1111
|
+
}
|
|
1103
1112
|
/**
|
|
1104
1113
|
* DisableReplicaReadonly返回参数结构体
|
|
1105
1114
|
*/
|
|
@@ -1735,6 +1744,23 @@ export interface UpgradeVersionToMultiAvailabilityZonesRequest {
|
|
|
1735
1744
|
*/
|
|
1736
1745
|
UpgradeProxyAndRedisServer?: boolean;
|
|
1737
1746
|
}
|
|
1747
|
+
/**
|
|
1748
|
+
* AllocateWanAddress返回参数结构体
|
|
1749
|
+
*/
|
|
1750
|
+
export interface AllocateWanAddressResponse {
|
|
1751
|
+
/**
|
|
1752
|
+
* 异步流程ID
|
|
1753
|
+
*/
|
|
1754
|
+
FlowId: number;
|
|
1755
|
+
/**
|
|
1756
|
+
* 开通外网的状态
|
|
1757
|
+
*/
|
|
1758
|
+
WanStatus: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1761
|
+
*/
|
|
1762
|
+
RequestId?: string;
|
|
1763
|
+
}
|
|
1738
1764
|
/**
|
|
1739
1765
|
* DescribeInstanceMonitorTookDist请求参数结构体
|
|
1740
1766
|
*/
|
|
@@ -2441,6 +2467,23 @@ export interface DescribeInstanceSecurityGroupResponse {
|
|
|
2441
2467
|
*/
|
|
2442
2468
|
RequestId?: string;
|
|
2443
2469
|
}
|
|
2470
|
+
/**
|
|
2471
|
+
* ReleaseWanAddress返回参数结构体
|
|
2472
|
+
*/
|
|
2473
|
+
export interface ReleaseWanAddressResponse {
|
|
2474
|
+
/**
|
|
2475
|
+
* 异步流程ID
|
|
2476
|
+
*/
|
|
2477
|
+
FlowId: number;
|
|
2478
|
+
/**
|
|
2479
|
+
* 关闭外网的状态
|
|
2480
|
+
*/
|
|
2481
|
+
WanStatus: string;
|
|
2482
|
+
/**
|
|
2483
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2484
|
+
*/
|
|
2485
|
+
RequestId?: string;
|
|
2486
|
+
}
|
|
2444
2487
|
/**
|
|
2445
2488
|
* 产品信息
|
|
2446
2489
|
*/
|
|
@@ -3329,6 +3372,15 @@ export interface InstanceSet {
|
|
|
3329
3372
|
*/
|
|
3330
3373
|
Region: string;
|
|
3331
3374
|
}
|
|
3375
|
+
/**
|
|
3376
|
+
* ReleaseWanAddress请求参数结构体
|
|
3377
|
+
*/
|
|
3378
|
+
export interface ReleaseWanAddressRequest {
|
|
3379
|
+
/**
|
|
3380
|
+
* 实例ID
|
|
3381
|
+
*/
|
|
3382
|
+
InstanceId: string;
|
|
3383
|
+
}
|
|
3332
3384
|
/**
|
|
3333
3385
|
* InquiryPriceRenewInstance请求参数结构体
|
|
3334
3386
|
*/
|
|
@@ -7035,6 +7035,14 @@ export interface DrmStreamingsInfo {
|
|
|
7035
7035
|
* 保护类型为 SimpleAES 的转自适应码流模板 ID。
|
|
7036
7036
|
*/
|
|
7037
7037
|
SimpleAesDefinition?: number;
|
|
7038
|
+
/**
|
|
7039
|
+
* 保护类型为 Widevine 的转自适应码流模板 ID。
|
|
7040
|
+
*/
|
|
7041
|
+
WidevineDefinition?: number;
|
|
7042
|
+
/**
|
|
7043
|
+
* 保护类型为 FairPlay 的转自适应码流模板 ID。
|
|
7044
|
+
*/
|
|
7045
|
+
FairPlayDefinition?: number;
|
|
7038
7046
|
}
|
|
7039
7047
|
/**
|
|
7040
7048
|
* SplitMedia请求参数结构体
|
|
@@ -11970,6 +11978,14 @@ export interface DrmStreamingsInfoForUpdate {
|
|
|
11970
11978
|
* 保护类型为 SimpleAES 的转自适应码流模板 ID。
|
|
11971
11979
|
*/
|
|
11972
11980
|
SimpleAesDefinition?: number;
|
|
11981
|
+
/**
|
|
11982
|
+
* 保护类型为 Widevine 的转自适应码流模板 ID。
|
|
11983
|
+
*/
|
|
11984
|
+
WidevineDefinition?: number;
|
|
11985
|
+
/**
|
|
11986
|
+
* 保护类型为 FairPlay 的转自适应码流模板 ID。
|
|
11987
|
+
*/
|
|
11988
|
+
FairPlayDefinition?: number;
|
|
11973
11989
|
}
|
|
11974
11990
|
/**
|
|
11975
11991
|
* DeleteClass请求参数结构体
|
|
@@ -12699,7 +12715,7 @@ export interface SearchMediaRequest {
|
|
|
12699
12715
|
*/
|
|
12700
12716
|
SourceTypes?: Array<string>;
|
|
12701
12717
|
/**
|
|
12702
|
-
*
|
|
12718
|
+
* 推流直播码集合。匹配集合中的任意元素。
|
|
12703
12719
|
<li>数组长度限制:10。</li>
|
|
12704
12720
|
*/
|
|
12705
12721
|
StreamIds?: Array<string>;
|
|
@@ -12778,7 +12794,7 @@ export interface SearchMediaRequest {
|
|
|
12778
12794
|
SourceType?: string;
|
|
12779
12795
|
/**
|
|
12780
12796
|
* (不推荐:应使用 StreamIds 替代)
|
|
12781
|
-
|
|
12797
|
+
推流直播码。
|
|
12782
12798
|
*/
|
|
12783
12799
|
StreamId?: string;
|
|
12784
12800
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { CreateAccessExportRequest, DescribeWafAutoDenyRulesResponse, DescribeIpHitItemsResponse, DescribeUserClbWafRegionsResponse, DeleteAttackDownloadRecordResponse, DescribeFlowTrendRequest, DescribeWafAutoDenyStatusRequest, AddDomainWhiteRuleResponse, DescribeIpAccessControlResponse, ModifyDomainWhiteRuleRequest, DescribeAccessIndexRequest, DescribeCustomRulesResponse, DeleteSessionRequest, DescribeWafAutoDenyRulesRequest, AddCustomRuleResponse, DescribeFlowTrendResponse, UpsertIpAccessControlRequest, DeleteDownloadRecordRequest, DescribeAccessExportsRequest, ModifyAccessPeriodResponse, DeleteAccessExportResponse, DescribeAutoDenyIPResponse, SearchAccessLogResponse, DescribeAutoDenyIPRequest, DescribeIpAccessControlRequest, AddSpartaProtectionRequest, DescribeAccessFastAnalysisRequest, DeleteIpAccessControlRequest, DeleteDomainWhiteRulesResponse, CreateAttackDownloadTaskRequest, DescribeWafAutoDenyStatusResponse, DeleteDomainWhiteRulesRequest, ModifyCustomRuleStatusResponse, AddSpartaProtectionResponse, CreateAttackDownloadTaskResponse, DescribeDomainWhiteRulesRequest, ModifyCustomRuleStatusRequest, DeleteDownloadRecordResponse, ModifyAccessPeriodRequest, ModifyWafAutoDenyRulesResponse, DeleteIpAccessControlResponse, SearchAccessLogRequest, AddCustomRuleRequest, DescribeCustomRulesRequest, ModifyDomainWhiteRuleResponse, ModifyWafAutoDenyRulesRequest, DescribeAccessFastAnalysisResponse, ModifyWafAutoDenyStatusRequest, ModifyWafThreatenIntelligenceRequest, DescribeIpHitItemsRequest, DeleteAccessExportRequest, DescribeUserClbWafRegionsRequest, DescribeDomainWhiteRulesResponse, DeleteAttackDownloadRecordRequest, DescribeWafThreatenIntelligenceResponse, AddDomainWhiteRuleRequest, UpsertIpAccessControlResponse, DeleteSessionResponse, ModifyWafAutoDenyStatusResponse, DescribeWafThreatenIntelligenceRequest, DescribeAccessIndexResponse, DescribeAccessExportsResponse, CreateAccessExportResponse, ModifyWafThreatenIntelligenceResponse } from "./waf_models";
|
|
3
|
+
import { CreateAccessExportRequest, DescribeWafAutoDenyRulesResponse, DescribeIpHitItemsResponse, DescribeUserClbWafRegionsResponse, DeleteAttackDownloadRecordResponse, DescribeFlowTrendRequest, DescribeWafAutoDenyStatusRequest, AddDomainWhiteRuleResponse, DescribeIpAccessControlResponse, ModifyDomainWhiteRuleRequest, DescribeAccessIndexRequest, DescribeCustomRulesResponse, DeleteSessionRequest, DescribeWafAutoDenyRulesRequest, AddCustomRuleResponse, DescribeFlowTrendResponse, UpsertIpAccessControlRequest, DeleteDownloadRecordRequest, DescribeAccessExportsRequest, ModifyAccessPeriodResponse, DeleteAccessExportResponse, DescribeAutoDenyIPResponse, SearchAccessLogResponse, DescribeAutoDenyIPRequest, DescribeIpAccessControlRequest, AddSpartaProtectionRequest, DescribeAccessFastAnalysisRequest, DeleteIpAccessControlRequest, DeleteDomainWhiteRulesResponse, CreateAttackDownloadTaskRequest, DescribeWafAutoDenyStatusResponse, DeleteDomainWhiteRulesRequest, ModifyCustomRuleStatusResponse, AddSpartaProtectionResponse, CreateAttackDownloadTaskResponse, DescribeDomainWhiteRulesRequest, ModifyCustomRuleStatusRequest, DeleteDownloadRecordResponse, ModifyAccessPeriodRequest, ModifyWafAutoDenyRulesResponse, DeleteIpAccessControlResponse, SearchAccessLogRequest, AddCustomRuleRequest, DescribeCustomRulesRequest, ModifyDomainWhiteRuleResponse, ModifyWafAutoDenyRulesRequest, DescribeAccessFastAnalysisResponse, DescribeDomainsResponse, ModifyWafAutoDenyStatusRequest, ModifyWafThreatenIntelligenceRequest, DescribeIpHitItemsRequest, DeleteAccessExportRequest, DescribeUserClbWafRegionsRequest, DescribeDomainWhiteRulesResponse, DeleteAttackDownloadRecordRequest, DescribeWafThreatenIntelligenceResponse, AddDomainWhiteRuleRequest, UpsertIpAccessControlResponse, DeleteSessionResponse, ModifyWafAutoDenyStatusResponse, DescribeWafThreatenIntelligenceRequest, DescribeAccessIndexResponse, DescribeAccessExportsResponse, CreateAccessExportResponse, DescribeDomainsRequest, ModifyWafThreatenIntelligenceResponse } from "./waf_models";
|
|
4
4
|
/**
|
|
5
5
|
* waf client
|
|
6
6
|
* @class
|
|
@@ -29,6 +29,10 @@ export declare class Client extends AbstractClient {
|
|
|
29
29
|
|
|
30
30
|
*/
|
|
31
31
|
DeleteDomainWhiteRules(req: DeleteDomainWhiteRulesRequest, cb?: (error: string, rep: DeleteDomainWhiteRulesResponse) => void): Promise<DeleteDomainWhiteRulesResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* 查询用户所有域名的详细信息
|
|
34
|
+
*/
|
|
35
|
+
DescribeDomains(req: DescribeDomainsRequest, cb?: (error: string, rep: DescribeDomainsResponse) => void): Promise<DescribeDomainsResponse>;
|
|
32
36
|
/**
|
|
33
37
|
* 本接口用于获取访问日志索引配置信息
|
|
34
38
|
*/
|
|
@@ -59,6 +59,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
59
59
|
async DeleteDomainWhiteRules(req, cb) {
|
|
60
60
|
return this.request("DeleteDomainWhiteRules", req, cb);
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* 查询用户所有域名的详细信息
|
|
64
|
+
*/
|
|
65
|
+
async DescribeDomains(req, cb) {
|
|
66
|
+
return this.request("DescribeDomains", req, cb);
|
|
67
|
+
}
|
|
62
68
|
/**
|
|
63
69
|
* 本接口用于获取访问日志索引配置信息
|
|
64
70
|
*/
|
|
@@ -257,6 +257,10 @@ export interface AccessRuleTagInfo {
|
|
|
257
257
|
* DescribeAccessIndex请求参数结构体
|
|
258
258
|
*/
|
|
259
259
|
export declare type DescribeAccessIndexRequest = null;
|
|
260
|
+
/**
|
|
261
|
+
* 域名的详细信息
|
|
262
|
+
*/
|
|
263
|
+
export declare type DomainInfo = null;
|
|
260
264
|
/**
|
|
261
265
|
* 日志KeyValue对
|
|
262
266
|
*/
|
|
@@ -458,6 +462,23 @@ export interface DeleteAccessExportResponse {
|
|
|
458
462
|
*/
|
|
459
463
|
RequestId?: string;
|
|
460
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* 实例入参过滤器
|
|
467
|
+
*/
|
|
468
|
+
export interface FiltersItemNew {
|
|
469
|
+
/**
|
|
470
|
+
* 字段名
|
|
471
|
+
*/
|
|
472
|
+
Name: string;
|
|
473
|
+
/**
|
|
474
|
+
* 过滤值
|
|
475
|
+
*/
|
|
476
|
+
Values: Array<string>;
|
|
477
|
+
/**
|
|
478
|
+
* 是否精确查找
|
|
479
|
+
*/
|
|
480
|
+
ExactMatch: boolean;
|
|
481
|
+
}
|
|
461
482
|
/**
|
|
462
483
|
* DescribeAutoDenyIP返回参数结构体
|
|
463
484
|
*/
|
|
@@ -711,7 +732,7 @@ export interface AddSpartaProtectionRequest {
|
|
|
711
732
|
*/
|
|
712
733
|
UpstreamDomain?: string;
|
|
713
734
|
/**
|
|
714
|
-
* UpstreamType=0时,填次字段表示回源
|
|
735
|
+
* UpstreamType=0时,填次字段表示回源IP
|
|
715
736
|
*/
|
|
716
737
|
SrcList?: Array<string>;
|
|
717
738
|
/**
|
|
@@ -739,9 +760,13 @@ export interface AddSpartaProtectionRequest {
|
|
|
739
760
|
*/
|
|
740
761
|
InstanceID?: string;
|
|
741
762
|
/**
|
|
742
|
-
* anycast
|
|
763
|
+
* anycast IP类型开关: 0 普通IP 1 Anycast IP
|
|
743
764
|
*/
|
|
744
765
|
Anycast?: number;
|
|
766
|
+
/**
|
|
767
|
+
* src权重
|
|
768
|
+
*/
|
|
769
|
+
Weights?: Array<number>;
|
|
745
770
|
}
|
|
746
771
|
/**
|
|
747
772
|
* DescribeAccessFastAnalysis请求参数结构体
|
|
@@ -1304,6 +1329,24 @@ export interface DescribeAccessFastAnalysisResponse {
|
|
|
1304
1329
|
*/
|
|
1305
1330
|
RequestId?: string;
|
|
1306
1331
|
}
|
|
1332
|
+
/**
|
|
1333
|
+
* DescribeDomains返回参数结构体
|
|
1334
|
+
*/
|
|
1335
|
+
export interface DescribeDomainsResponse {
|
|
1336
|
+
/**
|
|
1337
|
+
* 总数
|
|
1338
|
+
*/
|
|
1339
|
+
Total: number;
|
|
1340
|
+
/**
|
|
1341
|
+
* domain列表
|
|
1342
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1343
|
+
*/
|
|
1344
|
+
Domains: Array<DomainInfo>;
|
|
1345
|
+
/**
|
|
1346
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1347
|
+
*/
|
|
1348
|
+
RequestId?: string;
|
|
1349
|
+
}
|
|
1307
1350
|
/**
|
|
1308
1351
|
* Waf 攻击自动封禁详情
|
|
1309
1352
|
*/
|
|
@@ -1765,6 +1808,23 @@ export interface AccessRuleKeyValueInfo {
|
|
|
1765
1808
|
*/
|
|
1766
1809
|
KeyValues: Array<AccessKeyValueInfo>;
|
|
1767
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* DescribeDomains请求参数结构体
|
|
1813
|
+
*/
|
|
1814
|
+
export interface DescribeDomainsRequest {
|
|
1815
|
+
/**
|
|
1816
|
+
* 偏移
|
|
1817
|
+
*/
|
|
1818
|
+
Offset: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* 容量
|
|
1821
|
+
*/
|
|
1822
|
+
Limit: number;
|
|
1823
|
+
/**
|
|
1824
|
+
* 过滤数组
|
|
1825
|
+
*/
|
|
1826
|
+
Filters?: Array<FiltersItemNew>;
|
|
1827
|
+
}
|
|
1768
1828
|
/**
|
|
1769
1829
|
* ModifyWafThreatenIntelligence返回参数结构体
|
|
1770
1830
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.car.v20220110.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("car.v20220110.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("car.v20220110.ApplyConcurrent", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.ApplyConcurrent({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("car.v20220110.DestroySession", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DestroySession({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("car.v20220110.CreateSession", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.CreateSession({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
})
|
|
@@ -48,6 +48,16 @@ it("dbbrain.v20210527.CreateSchedulerMailProfile", async function () {
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
+
it("dbbrain.v20210527.DescribeSqlTemplate", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeSqlTemplate({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
51
61
|
it("dbbrain.v20210527.DescribeTopSpaceSchemas", async function () {
|
|
52
62
|
try {
|
|
53
63
|
const data = await client.DescribeTopSpaceSchemas({})
|
|
@@ -68,9 +78,9 @@ it("dbbrain.v20210527.DescribeMySqlProcessList", async function () {
|
|
|
68
78
|
}
|
|
69
79
|
})
|
|
70
80
|
|
|
71
|
-
it("dbbrain.v20210527.
|
|
81
|
+
it("dbbrain.v20210527.CreateMailProfile", async function () {
|
|
72
82
|
try {
|
|
73
|
-
const data = await client.
|
|
83
|
+
const data = await client.CreateMailProfile({})
|
|
74
84
|
expect(data).to.be.ok
|
|
75
85
|
} catch(error) {
|
|
76
86
|
expect(error.requestId).to.be.ok
|
|
@@ -128,9 +138,19 @@ it("dbbrain.v20210527.DescribeSlowLogUserHostStats", async function () {
|
|
|
128
138
|
}
|
|
129
139
|
})
|
|
130
140
|
|
|
131
|
-
it("dbbrain.v20210527.
|
|
141
|
+
it("dbbrain.v20210527.DescribeSlowLogTopSqls", async function () {
|
|
132
142
|
try {
|
|
133
|
-
const data = await client.
|
|
143
|
+
const data = await client.DescribeSlowLogTopSqls({})
|
|
144
|
+
expect(data).to.be.ok
|
|
145
|
+
} catch(error) {
|
|
146
|
+
expect(error.requestId).to.be.ok
|
|
147
|
+
expect(error.code).to.be.ok
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it("dbbrain.v20210527.CreateSqlFilter", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.CreateSqlFilter({})
|
|
134
154
|
expect(data).to.be.ok
|
|
135
155
|
} catch(error) {
|
|
136
156
|
expect(error.requestId).to.be.ok
|
|
@@ -148,9 +168,9 @@ it("dbbrain.v20210527.DescribeDBSpaceStatus", async function () {
|
|
|
148
168
|
}
|
|
149
169
|
})
|
|
150
170
|
|
|
151
|
-
it("dbbrain.v20210527.
|
|
171
|
+
it("dbbrain.v20210527.CreateProxySessionKillTask", async function () {
|
|
152
172
|
try {
|
|
153
|
-
const data = await client.
|
|
173
|
+
const data = await client.CreateProxySessionKillTask({})
|
|
154
174
|
expect(data).to.be.ok
|
|
155
175
|
} catch(error) {
|
|
156
176
|
expect(error.requestId).to.be.ok
|
|
@@ -168,6 +188,16 @@ it("dbbrain.v20210527.DescribeHealthScore", async function () {
|
|
|
168
188
|
}
|
|
169
189
|
})
|
|
170
190
|
|
|
191
|
+
it("dbbrain.v20210527.CancelKillTask", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.CancelKillTask({})
|
|
194
|
+
expect(data).to.be.ok
|
|
195
|
+
} catch(error) {
|
|
196
|
+
expect(error.requestId).to.be.ok
|
|
197
|
+
expect(error.code).to.be.ok
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
|
|
171
201
|
it("dbbrain.v20210527.CreateSecurityAuditLogExportTask", async function () {
|
|
172
202
|
try {
|
|
173
203
|
const data = await client.CreateSecurityAuditLogExportTask({})
|
|
@@ -178,6 +208,16 @@ it("dbbrain.v20210527.CreateSecurityAuditLogExportTask", async function () {
|
|
|
178
208
|
}
|
|
179
209
|
})
|
|
180
210
|
|
|
211
|
+
it("dbbrain.v20210527.DescribeUserSqlAdvice", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeUserSqlAdvice({})
|
|
214
|
+
expect(data).to.be.ok
|
|
215
|
+
} catch(error) {
|
|
216
|
+
expect(error.requestId).to.be.ok
|
|
217
|
+
expect(error.code).to.be.ok
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
|
|
181
221
|
it("dbbrain.v20210527.DeleteSecurityAuditLogExportTasks", async function () {
|
|
182
222
|
try {
|
|
183
223
|
const data = await client.DeleteSecurityAuditLogExportTasks({})
|
|
@@ -188,9 +228,9 @@ it("dbbrain.v20210527.DeleteSecurityAuditLogExportTasks", async function () {
|
|
|
188
228
|
}
|
|
189
229
|
})
|
|
190
230
|
|
|
191
|
-
it("dbbrain.v20210527.
|
|
231
|
+
it("dbbrain.v20210527.DescribeRedisTopBigKeys", async function () {
|
|
192
232
|
try {
|
|
193
|
-
const data = await client.
|
|
233
|
+
const data = await client.DescribeRedisTopBigKeys({})
|
|
194
234
|
expect(data).to.be.ok
|
|
195
235
|
} catch(error) {
|
|
196
236
|
expect(error.requestId).to.be.ok
|
|
@@ -238,6 +278,16 @@ it("dbbrain.v20210527.DescribeDBDiagHistory", async function () {
|
|
|
238
278
|
}
|
|
239
279
|
})
|
|
240
280
|
|
|
281
|
+
it("dbbrain.v20210527.ModifySqlFilters", async function () {
|
|
282
|
+
try {
|
|
283
|
+
const data = await client.ModifySqlFilters({})
|
|
284
|
+
expect(data).to.be.ok
|
|
285
|
+
} catch(error) {
|
|
286
|
+
expect(error.requestId).to.be.ok
|
|
287
|
+
expect(error.code).to.be.ok
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
|
|
241
291
|
it("dbbrain.v20210527.CreateDBDiagReportTask", async function () {
|
|
242
292
|
try {
|
|
243
293
|
const data = await client.CreateDBDiagReportTask({})
|
|
@@ -258,6 +308,16 @@ it("dbbrain.v20210527.DescribeDiagDBInstances", async function () {
|
|
|
258
308
|
}
|
|
259
309
|
})
|
|
260
310
|
|
|
311
|
+
it("dbbrain.v20210527.DeleteSqlFilters", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.DeleteSqlFilters({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
261
321
|
it("dbbrain.v20210527.AddUserContact", async function () {
|
|
262
322
|
try {
|
|
263
323
|
const data = await client.AddUserContact({})
|
|
@@ -288,9 +348,29 @@ it("dbbrain.v20210527.CreateKillTask", async function () {
|
|
|
288
348
|
}
|
|
289
349
|
})
|
|
290
350
|
|
|
291
|
-
it("dbbrain.v20210527.
|
|
351
|
+
it("dbbrain.v20210527.DescribeNoPrimaryKeyTables", async function () {
|
|
292
352
|
try {
|
|
293
|
-
const data = await client.
|
|
353
|
+
const data = await client.DescribeNoPrimaryKeyTables({})
|
|
354
|
+
expect(data).to.be.ok
|
|
355
|
+
} catch(error) {
|
|
356
|
+
expect(error.requestId).to.be.ok
|
|
357
|
+
expect(error.code).to.be.ok
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
361
|
+
it("dbbrain.v20210527.DescribeTopSpaceTables", async function () {
|
|
362
|
+
try {
|
|
363
|
+
const data = await client.DescribeTopSpaceTables({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
it("dbbrain.v20210527.DescribeSqlFilters", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.DescribeSqlFilters({})
|
|
294
374
|
expect(data).to.be.ok
|
|
295
375
|
} catch(error) {
|
|
296
376
|
expect(error.requestId).to.be.ok
|
|
@@ -338,6 +418,16 @@ it("dbbrain.v20210527.CreateDBDiagReportUrl", async function () {
|
|
|
338
418
|
}
|
|
339
419
|
})
|
|
340
420
|
|
|
421
|
+
it("dbbrain.v20210527.VerifyUserAccount", async function () {
|
|
422
|
+
try {
|
|
423
|
+
const data = await client.VerifyUserAccount({})
|
|
424
|
+
expect(data).to.be.ok
|
|
425
|
+
} catch(error) {
|
|
426
|
+
expect(error.requestId).to.be.ok
|
|
427
|
+
expect(error.code).to.be.ok
|
|
428
|
+
}
|
|
429
|
+
})
|
|
430
|
+
|
|
341
431
|
it("dbbrain.v20210527.DescribeProxySessionKillTasks", async function () {
|
|
342
432
|
try {
|
|
343
433
|
const data = await client.DescribeProxySessionKillTasks({})
|
|
@@ -248,6 +248,16 @@ it("domain.v20180808.SendPhoneEmailCode", async function () {
|
|
|
248
248
|
}
|
|
249
249
|
})
|
|
250
250
|
|
|
251
|
+
it("domain.v20180808.DescribeDomainSimpleInfo", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.DescribeDomainSimpleInfo({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
251
261
|
it("domain.v20180808.DescribeDomainPriceList", async function () {
|
|
252
262
|
try {
|
|
253
263
|
const data = await client.DescribeDomainPriceList({})
|
|
@@ -88,6 +88,16 @@ it("redis.v20180412.DescribeParamTemplates", async function () {
|
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
90
|
|
|
91
|
+
it("redis.v20180412.ReleaseWanAddress", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.ReleaseWanAddress({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
91
101
|
it("redis.v20180412.DescribeSlowLog", async function () {
|
|
92
102
|
try {
|
|
93
103
|
const data = await client.DescribeSlowLog({})
|
|
@@ -408,9 +418,9 @@ it("redis.v20180412.DescribeTaskInfo", async function () {
|
|
|
408
418
|
}
|
|
409
419
|
})
|
|
410
420
|
|
|
411
|
-
it("redis.v20180412.
|
|
421
|
+
it("redis.v20180412.AllocateWanAddress", async function () {
|
|
412
422
|
try {
|
|
413
|
-
const data = await client.
|
|
423
|
+
const data = await client.AllocateWanAddress({})
|
|
414
424
|
expect(data).to.be.ok
|
|
415
425
|
} catch(error) {
|
|
416
426
|
expect(error.requestId).to.be.ok
|
|
@@ -518,6 +528,16 @@ it("redis.v20180412.DescribeInstanceMonitorBigKey", async function () {
|
|
|
518
528
|
}
|
|
519
529
|
})
|
|
520
530
|
|
|
531
|
+
it("redis.v20180412.SwitchInstanceVip", async function () {
|
|
532
|
+
try {
|
|
533
|
+
const data = await client.SwitchInstanceVip({})
|
|
534
|
+
expect(data).to.be.ok
|
|
535
|
+
} catch(error) {
|
|
536
|
+
expect(error.requestId).to.be.ok
|
|
537
|
+
expect(error.code).to.be.ok
|
|
538
|
+
}
|
|
539
|
+
})
|
|
540
|
+
|
|
521
541
|
it("redis.v20180412.DescribeInstanceSecurityGroup", async function () {
|
|
522
542
|
try {
|
|
523
543
|
const data = await client.DescribeInstanceSecurityGroup({})
|
|
@@ -768,9 +788,9 @@ it("redis.v20180412.DescribeInstanceMonitorTookDist", async function () {
|
|
|
768
788
|
}
|
|
769
789
|
})
|
|
770
790
|
|
|
771
|
-
it("redis.v20180412.
|
|
791
|
+
it("redis.v20180412.DescribeBackupUrl", async function () {
|
|
772
792
|
try {
|
|
773
|
-
const data = await client.
|
|
793
|
+
const data = await client.DescribeBackupUrl({})
|
|
774
794
|
expect(data).to.be.ok
|
|
775
795
|
} catch(error) {
|
|
776
796
|
expect(error.requestId).to.be.ok
|