tencentcloud-sdk-nodejs 4.0.530 → 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.
Files changed (49) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/SERVICE_CHANGELOG.md +185 -159
  3. package/package.json +1 -1
  4. package/products.md +20 -20
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_models.ts +2 -2
  7. package/src/services/cvm/v20170312/cvm_models.ts +2 -6
  8. package/src/services/dlc/v20210125/dlc_client.ts +35 -10
  9. package/src/services/dlc/v20210125/dlc_models.ts +275 -30
  10. package/src/services/ecm/v20190719/ecm_models.ts +1 -1
  11. package/src/services/ess/v20201111/ess_client.ts +31 -4
  12. package/src/services/ess/v20201111/ess_models.ts +299 -71
  13. package/src/services/goosefs/v20220519/goosefs_client.ts +16 -1
  14. package/src/services/goosefs/v20220519/goosefs_models.ts +48 -3
  15. package/src/services/live/v20180801/live_client.ts +30 -4
  16. package/src/services/live/v20180801/live_models.ts +245 -54
  17. package/src/services/mongodb/v20190725/mongodb_models.ts +1 -1
  18. package/src/services/tcb/v20180608/tcb_models.ts +6 -1
  19. package/src/services/vpc/v20170312/vpc_models.ts +5 -0
  20. package/src/services/waf/v20180125/waf_client.ts +39 -4
  21. package/src/services/waf/v20180125/waf_models.ts +176 -16
  22. package/tencentcloud/common/sdk_version.d.ts +1 -1
  23. package/tencentcloud/common/sdk_version.js +1 -1
  24. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -2
  25. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +2 -6
  26. package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +11 -3
  27. package/tencentcloud/services/dlc/v20210125/dlc_client.js +15 -3
  28. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +232 -28
  29. package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +1 -1
  30. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +9 -1
  31. package/tencentcloud/services/ess/v20201111/ess_client.js +12 -0
  32. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +259 -65
  33. package/tencentcloud/services/goosefs/v20220519/goosefs_client.d.ts +5 -1
  34. package/tencentcloud/services/goosefs/v20220519/goosefs_client.js +6 -0
  35. package/tencentcloud/services/goosefs/v20220519/goosefs_models.d.ts +41 -3
  36. package/tencentcloud/services/live/v20180801/live_client.d.ts +9 -1
  37. package/tencentcloud/services/live/v20180801/live_client.js +12 -0
  38. package/tencentcloud/services/live/v20180801/live_models.d.ts +210 -50
  39. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +1 -1
  40. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +5 -1
  41. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +4 -0
  42. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +13 -3
  43. package/tencentcloud/services/waf/v20180125/waf_client.js +18 -2
  44. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +151 -16
  45. package/test/dlc.v20210125.test.js +22 -2
  46. package/test/ess.v20201111.test.js +20 -0
  47. package/test/goosefs.v20220519.test.js +10 -0
  48. package/test/live.v20180801.test.js +20 -0
  49. 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
  */
@@ -622,33 +664,33 @@ export interface SearchAccessLogResponse {
622
664
  /**
623
665
  * 加载后续内容的Context
624
666
  */
625
- Context: string;
667
+ Context?: string;
626
668
  /**
627
- * 日志查询结果是否全部返回
669
+ * 日志查询结果是否全部返回,其中,“true”表示结果返回,“false”表示结果为返回
628
670
  */
629
- ListOver: boolean;
671
+ ListOver?: boolean;
630
672
  /**
631
- * 返回的是否为分析结果
673
+ * 返回的是否为分析结果,其中,“true”表示返回分析结果,“false”表示未返回分析结果
632
674
  */
633
- Analysis: boolean;
675
+ Analysis?: boolean;
634
676
  /**
635
677
  * 如果Analysis为True,则返回分析结果的列名,否则为空
636
678
  注意:此字段可能返回 null,表示取不到有效值。
637
679
  注意:此字段可能返回 null,表示取不到有效值。
638
680
  */
639
- ColNames: Array<string>;
681
+ ColNames?: Array<string>;
640
682
  /**
641
683
  * 日志查询结果;当Analysis为True时,可能返回为null
642
684
  注意:此字段可能返回 null,表示取不到有效值
643
685
  注意:此字段可能返回 null,表示取不到有效值。
644
686
  */
645
- Results: Array<AccessLogInfo>;
687
+ Results?: Array<AccessLogInfo>;
646
688
  /**
647
689
  * 日志分析结果;当Analysis为False时,可能返回为null
648
690
  注意:此字段可能返回 null,表示取不到有效值
649
691
  注意:此字段可能返回 null,表示取不到有效值。
650
692
  */
651
- AnalysisResults: Array<AccessLogItems>;
693
+ AnalysisResults?: Array<AccessLogItems>;
652
694
  /**
653
695
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
654
696
  */
@@ -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
  */
@@ -1338,7 +1435,7 @@ export interface DescribeDomainWhiteRulesRequest {
1338
1435
  */
1339
1436
  Count?: number;
1340
1437
  /**
1341
- * 排序方式
1438
+ * 排序方式,desc表示降序,asc表示升序
1342
1439
  */
1343
1440
  Sort?: string;
1344
1441
  /**
@@ -1434,7 +1531,36 @@ export interface ModifyWafAutoDenyRulesResponse {
1434
1531
  /**
1435
1532
  * 成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
1436
1533
  */
1437
- Success: ResponseCode;
1534
+ Success?: ResponseCode;
1535
+ /**
1536
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1537
+ */
1538
+ RequestId?: string;
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;
1438
1564
  /**
1439
1565
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1440
1566
  */
@@ -1730,7 +1856,7 @@ export interface AddCustomRuleRequest {
1730
1856
  */
1731
1857
  Domain: string;
1732
1858
  /**
1733
- * 动作类型
1859
+ * 动作类型,1代表阻断,2代表人机识别,3代表观察,4代表重定向
1734
1860
  */
1735
1861
  ActionType: string;
1736
1862
  /**
@@ -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
  */
@@ -1867,15 +2002,15 @@ export interface ModifyWafAutoDenyRulesRequest {
1867
2002
  */
1868
2003
  Domain: string;
1869
2004
  /**
1870
- * 攻击次数阈值
2005
+ * 触发IP封禁的攻击次数阈值,范围为2~100次
1871
2006
  */
1872
2007
  AttackThreshold: number;
1873
2008
  /**
1874
- * 攻击时间阈值
2009
+ * IP封禁统计时间,范围为1-60分钟
1875
2010
  */
1876
2011
  TimeThreshold: number;
1877
2012
  /**
1878
- * 自动封禁时间
2013
+ * 触发IP封禁后的封禁时间,范围为5~360分钟
1879
2014
  */
1880
2015
  DenyTimeThreshold: number;
1881
2016
  /**
@@ -2116,11 +2251,11 @@ export interface DescribeDomainWhiteRulesResponse {
2116
2251
  /**
2117
2252
  * 规则列表
2118
2253
  */
2119
- RuleList: Array<RuleList>;
2254
+ RuleList?: Array<RuleList>;
2120
2255
  /**
2121
2256
  * 规则的数量
2122
2257
  */
2123
- Total: number;
2258
+ Total?: number;
2124
2259
  /**
2125
2260
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2126
2261
  */
@@ -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.DescribeUsers", async function () {
171
+ it("dlc.v20210125.CreateNotebookSession", async function () {
162
172
  try {
163
- const data = await client.DescribeUsers({})
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({})
@@ -18,6 +18,16 @@ const client = new tencentcloud.goosefs.v20220519.Client({
18
18
  })
19
19
  describe("goosefs.v20220519.test.js", function () {
20
20
 
21
+ it("goosefs.v20220519.DescribeDataRepositoryTaskStatus", async function () {
22
+ try {
23
+ const data = await client.DescribeDataRepositoryTaskStatus({})
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("goosefs.v20220519.CreateDataRepositoryTask", async function () {
22
32
  try {
23
33
  const data = await client.CreateDataRepositoryTask({})
@@ -168,6 +168,16 @@ it("live.v20180801.DescribeLiveSnapshotRules", async function () {
168
168
  }
169
169
  })
170
170
 
171
+ it("live.v20180801.DescribeTimeShiftStreamList", async function () {
172
+ try {
173
+ const data = await client.DescribeTimeShiftStreamList({})
174
+ expect(data).to.be.ok
175
+ } catch(error) {
176
+ expect(error.requestId).to.be.ok
177
+ expect(error.code).to.be.ok
178
+ }
179
+ })
180
+
171
181
  it("live.v20180801.DeleteLiveTranscodeTemplate", async function () {
172
182
  try {
173
183
  const data = await client.DeleteLiveTranscodeTemplate({})
@@ -368,6 +378,16 @@ it("live.v20180801.DeletePullStreamConfig", async function () {
368
378
  }
369
379
  })
370
380
 
381
+ it("live.v20180801.DescribeTimeShiftRecordDetail", async function () {
382
+ try {
383
+ const data = await client.DescribeTimeShiftRecordDetail({})
384
+ expect(data).to.be.ok
385
+ } catch(error) {
386
+ expect(error.requestId).to.be.ok
387
+ expect(error.code).to.be.ok
388
+ }
389
+ })
390
+
371
391
  it("live.v20180801.DescribeLiveRecordTemplate", async function () {
372
392
  try {
373
393
  const data = await client.DescribeLiveRecordTemplate({})
@@ -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({})