tencentcloud-sdk-nodejs 4.0.531 → 4.0.532
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 +94 -0
- package/SERVICE_CHANGELOG.md +143 -16
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/dlc/v20210125/dlc_client.ts +35 -10
- package/src/services/dlc/v20210125/dlc_models.ts +275 -30
- package/src/services/ecm/v20190719/ecm_models.ts +1 -1
- package/src/services/ess/v20201111/ess_client.ts +31 -4
- package/src/services/ess/v20201111/ess_models.ts +299 -71
- package/src/services/vpc/v20170312/vpc_models.ts +5 -0
- package/src/services/waf/v20180125/waf_client.ts +37 -0
- package/src/services/waf/v20180125/waf_models.ts +160 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +11 -3
- package/tencentcloud/services/dlc/v20210125/dlc_client.js +15 -3
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +232 -28
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +9 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +12 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +259 -65
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +4 -0
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +13 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +18 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +135 -0
- package/test/dlc.v20210125.test.js +22 -2
- package/test/ess.v20201111.test.js +20 -0
- package/test/waf.v20180125.test.js +30 -0
|
@@ -423,6 +423,39 @@ export interface DescribeWafAutoDenyRulesRequest {
|
|
|
423
423
|
*/
|
|
424
424
|
Domain: string;
|
|
425
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* SearchAttackLog请求参数结构体
|
|
428
|
+
*/
|
|
429
|
+
export interface SearchAttackLogRequest {
|
|
430
|
+
/**
|
|
431
|
+
* 查询的域名,所有域名使用all
|
|
432
|
+
*/
|
|
433
|
+
Domain: string;
|
|
434
|
+
/**
|
|
435
|
+
* 查询起始时间
|
|
436
|
+
*/
|
|
437
|
+
StartTime: string;
|
|
438
|
+
/**
|
|
439
|
+
* 查询结束时间
|
|
440
|
+
*/
|
|
441
|
+
EndTime: string;
|
|
442
|
+
/**
|
|
443
|
+
* 查询的游标。第一次请求使用空字符串即可,后续请求使用上一次请求返回的最后一条记录的context的值即可。
|
|
444
|
+
*/
|
|
445
|
+
Context: string;
|
|
446
|
+
/**
|
|
447
|
+
* Lucene语法
|
|
448
|
+
*/
|
|
449
|
+
QueryString: string;
|
|
450
|
+
/**
|
|
451
|
+
* 查询的数量,默认10条,最多100条
|
|
452
|
+
*/
|
|
453
|
+
Count?: number;
|
|
454
|
+
/**
|
|
455
|
+
* 默认为desc,可以取值desc和asc
|
|
456
|
+
*/
|
|
457
|
+
Sort?: string;
|
|
458
|
+
}
|
|
426
459
|
/**
|
|
427
460
|
* AddCustomRule返回参数结构体
|
|
428
461
|
*/
|
|
@@ -615,6 +648,15 @@ export interface DescribeAutoDenyIPResponse {
|
|
|
615
648
|
*/
|
|
616
649
|
RequestId?: string;
|
|
617
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* SwitchDomainRules返回参数结构体
|
|
653
|
+
*/
|
|
654
|
+
export interface SwitchDomainRulesResponse {
|
|
655
|
+
/**
|
|
656
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
657
|
+
*/
|
|
658
|
+
RequestId?: string;
|
|
659
|
+
}
|
|
618
660
|
/**
|
|
619
661
|
* SearchAccessLog返回参数结构体
|
|
620
662
|
*/
|
|
@@ -684,6 +726,27 @@ export interface IpAccessControlItem {
|
|
|
684
726
|
*/
|
|
685
727
|
ValidTs: number;
|
|
686
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* SwitchDomainRules请求参数结构体
|
|
731
|
+
*/
|
|
732
|
+
export interface SwitchDomainRulesRequest {
|
|
733
|
+
/**
|
|
734
|
+
* 域名
|
|
735
|
+
*/
|
|
736
|
+
Domain: string;
|
|
737
|
+
/**
|
|
738
|
+
* 规则列表
|
|
739
|
+
*/
|
|
740
|
+
Ids: Array<number>;
|
|
741
|
+
/**
|
|
742
|
+
* 开关状态
|
|
743
|
+
*/
|
|
744
|
+
Status: number;
|
|
745
|
+
/**
|
|
746
|
+
* 设置为观察模式原因
|
|
747
|
+
*/
|
|
748
|
+
Reason?: number;
|
|
749
|
+
}
|
|
687
750
|
/**
|
|
688
751
|
* saas域名详情
|
|
689
752
|
*/
|
|
@@ -901,6 +964,19 @@ export interface DescribeIpAccessControlRequest {
|
|
|
901
964
|
*/
|
|
902
965
|
Ip?: string;
|
|
903
966
|
}
|
|
967
|
+
/**
|
|
968
|
+
* ModifyAreaBanStatus请求参数结构体
|
|
969
|
+
*/
|
|
970
|
+
export interface ModifyAreaBanStatusRequest {
|
|
971
|
+
/**
|
|
972
|
+
* 修要修改的域名
|
|
973
|
+
*/
|
|
974
|
+
Domain: string;
|
|
975
|
+
/**
|
|
976
|
+
* 状态值,0表示关闭,1表示开启
|
|
977
|
+
*/
|
|
978
|
+
Status: number;
|
|
979
|
+
}
|
|
904
980
|
/**
|
|
905
981
|
* AddSpartaProtection请求参数结构体
|
|
906
982
|
*/
|
|
@@ -1101,6 +1177,27 @@ export interface DeleteIpAccessControlRequest {
|
|
|
1101
1177
|
*/
|
|
1102
1178
|
SourceType?: string;
|
|
1103
1179
|
}
|
|
1180
|
+
/**
|
|
1181
|
+
* 攻击日志详情
|
|
1182
|
+
*/
|
|
1183
|
+
export interface AttackLogInfo {
|
|
1184
|
+
/**
|
|
1185
|
+
* 攻击日志的详情内容
|
|
1186
|
+
*/
|
|
1187
|
+
Content: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* CLS返回内容
|
|
1190
|
+
*/
|
|
1191
|
+
FileName: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* CLS返回内容
|
|
1194
|
+
*/
|
|
1195
|
+
Source: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* CLS返回内容
|
|
1198
|
+
*/
|
|
1199
|
+
TimeStamp: string;
|
|
1200
|
+
}
|
|
1104
1201
|
/**
|
|
1105
1202
|
* DeleteDomainWhiteRules返回参数结构体
|
|
1106
1203
|
*/
|
|
@@ -1440,6 +1537,35 @@ export interface ModifyWafAutoDenyRulesResponse {
|
|
|
1440
1537
|
*/
|
|
1441
1538
|
RequestId?: string;
|
|
1442
1539
|
}
|
|
1540
|
+
/**
|
|
1541
|
+
* SearchAttackLog返回参数结构体
|
|
1542
|
+
*/
|
|
1543
|
+
export interface SearchAttackLogResponse {
|
|
1544
|
+
/**
|
|
1545
|
+
* 当前返回的攻击日志条数
|
|
1546
|
+
*/
|
|
1547
|
+
Count?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* 翻页游标,如果没有下一页了,这个参数为空""
|
|
1550
|
+
*/
|
|
1551
|
+
Context?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* 攻击日志数组条目内容
|
|
1554
|
+
*/
|
|
1555
|
+
Data?: Array<AttackLogInfo>;
|
|
1556
|
+
/**
|
|
1557
|
+
* CLS接口返回内容
|
|
1558
|
+
*/
|
|
1559
|
+
ListOver?: boolean;
|
|
1560
|
+
/**
|
|
1561
|
+
* CLS接口返回内容,标志是否启动新版本索引
|
|
1562
|
+
*/
|
|
1563
|
+
SqlFlag?: boolean;
|
|
1564
|
+
/**
|
|
1565
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1566
|
+
*/
|
|
1567
|
+
RequestId?: string;
|
|
1568
|
+
}
|
|
1443
1569
|
/**
|
|
1444
1570
|
* DescribeInstances请求参数结构体
|
|
1445
1571
|
*/
|
|
@@ -1790,6 +1916,15 @@ export interface FraudPkg {
|
|
|
1790
1916
|
*/
|
|
1791
1917
|
UsedNum?: number;
|
|
1792
1918
|
}
|
|
1919
|
+
/**
|
|
1920
|
+
* ModifyAreaBanStatus返回参数结构体
|
|
1921
|
+
*/
|
|
1922
|
+
export interface ModifyAreaBanStatusResponse {
|
|
1923
|
+
/**
|
|
1924
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1925
|
+
*/
|
|
1926
|
+
RequestId?: string;
|
|
1927
|
+
}
|
|
1793
1928
|
/**
|
|
1794
1929
|
* ModifyDomainWhiteRule返回参数结构体
|
|
1795
1930
|
*/
|
|
@@ -78,6 +78,16 @@ it("dlc.v20210125.AlterDMSTable", async function () {
|
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
80
|
|
|
81
|
+
it("dlc.v20210125.DescribeNotebookSession", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeNotebookSession({})
|
|
84
|
+
expect(data).to.be.ok
|
|
85
|
+
} catch(error) {
|
|
86
|
+
expect(error.requestId).to.be.ok
|
|
87
|
+
expect(error.code).to.be.ok
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
|
|
81
91
|
it("dlc.v20210125.DropDMSDatabase", async function () {
|
|
82
92
|
try {
|
|
83
93
|
const data = await client.DropDMSDatabase({})
|
|
@@ -158,9 +168,9 @@ it("dlc.v20210125.DeleteSparkApp", async function () {
|
|
|
158
168
|
}
|
|
159
169
|
})
|
|
160
170
|
|
|
161
|
-
it("dlc.v20210125.
|
|
171
|
+
it("dlc.v20210125.CreateNotebookSession", async function () {
|
|
162
172
|
try {
|
|
163
|
-
const data = await client.
|
|
173
|
+
const data = await client.CreateNotebookSession({})
|
|
164
174
|
expect(data).to.be.ok
|
|
165
175
|
} catch(error) {
|
|
166
176
|
expect(error.requestId).to.be.ok
|
|
@@ -308,6 +318,16 @@ it("dlc.v20210125.UnbindWorkGroupsFromUser", async function () {
|
|
|
308
318
|
}
|
|
309
319
|
})
|
|
310
320
|
|
|
321
|
+
it("dlc.v20210125.DescribeUsers", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.DescribeUsers({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
311
331
|
it("dlc.v20210125.AttachWorkGroupPolicy", async function () {
|
|
312
332
|
try {
|
|
313
333
|
const data = await client.AttachWorkGroupPolicy({})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.ess.v20201111.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("ess.v20201111.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("ess.v20201111.DescribeOrganizationGroupOrganizations", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeOrganizationGroupOrganizations({})
|
|
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
|
+
|
|
21
31
|
it("ess.v20201111.StartFlow", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.StartFlow({})
|
|
@@ -258,6 +268,16 @@ it("ess.v20201111.CreateFlowReminds", async function () {
|
|
|
258
268
|
}
|
|
259
269
|
})
|
|
260
270
|
|
|
271
|
+
it("ess.v20201111.DescribeIntegrationMainOrganizationUser", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.DescribeIntegrationMainOrganizationUser({})
|
|
274
|
+
expect(data).to.be.ok
|
|
275
|
+
} catch(error) {
|
|
276
|
+
expect(error.requestId).to.be.ok
|
|
277
|
+
expect(error.code).to.be.ok
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
|
|
261
281
|
it("ess.v20201111.DescribeThirdPartyAuthCode", async function () {
|
|
262
282
|
try {
|
|
263
283
|
const data = await client.DescribeThirdPartyAuthCode({})
|
|
@@ -58,6 +58,16 @@ it("waf.v20180125.DeleteDomainWhiteRules", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
+
it("waf.v20180125.ModifyAreaBanStatus", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.ModifyAreaBanStatus({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
61
71
|
it("waf.v20180125.DescribeDomains", async function () {
|
|
62
72
|
try {
|
|
63
73
|
const data = await client.DescribeDomains({})
|
|
@@ -88,6 +98,16 @@ it("waf.v20180125.CreateAccessExport", async function () {
|
|
|
88
98
|
}
|
|
89
99
|
})
|
|
90
100
|
|
|
101
|
+
it("waf.v20180125.SearchAttackLog", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.SearchAttackLog({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
91
111
|
it("waf.v20180125.DescribeDomainDetailsSaas", async function () {
|
|
92
112
|
try {
|
|
93
113
|
const data = await client.DescribeDomainDetailsSaas({})
|
|
@@ -238,6 +258,16 @@ it("waf.v20180125.PostAttackDownloadTask", async function () {
|
|
|
238
258
|
}
|
|
239
259
|
})
|
|
240
260
|
|
|
261
|
+
it("waf.v20180125.SwitchDomainRules", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.SwitchDomainRules({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
241
271
|
it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
|
|
242
272
|
try {
|
|
243
273
|
const data = await client.ModifyWafThreatenIntelligence({})
|