tencentcloud-sdk-nodejs 4.0.441 → 4.0.442

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 (32) hide show
  1. package/CHANGELOG.md +173 -0
  2. package/SERVICE_CHANGELOG.md +213 -184
  3. package/package.json +1 -1
  4. package/products.md +10 -10
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cfw/v20190904/cfw_client.ts +19 -93
  7. package/src/services/cfw/v20190904/cfw_models.ts +127 -471
  8. package/src/services/ckafka/v20190819/ckafka_models.ts +2 -2
  9. package/src/services/mna/v20210119/mna_client.ts +13 -0
  10. package/src/services/mna/v20210119/mna_models.ts +75 -0
  11. package/src/services/monitor/v20180724/monitor_models.ts +22 -1
  12. package/src/services/mps/v20190612/mps_models.ts +5 -0
  13. package/src/services/tcm/v20210413/tcm_client.ts +1 -0
  14. package/src/services/tcm/v20210413/tcm_models.ts +40 -0
  15. package/src/services/tke/v20180525/tke_models.ts +5 -0
  16. package/src/services/waf/v20180125/waf_models.ts +36 -0
  17. package/tencentcloud/common/sdk_version.d.ts +1 -1
  18. package/tencentcloud/common/sdk_version.js +1 -1
  19. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +5 -29
  20. package/tencentcloud/services/cfw/v20190904/cfw_client.js +6 -42
  21. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +111 -402
  22. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +2 -2
  23. package/tencentcloud/services/mna/v20210119/mna_client.d.ts +5 -1
  24. package/tencentcloud/services/mna/v20210119/mna_client.js +6 -0
  25. package/tencentcloud/services/mna/v20210119/mna_models.d.ts +63 -0
  26. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +18 -1
  27. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +4 -0
  28. package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +34 -0
  29. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -0
  30. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +29 -0
  31. package/test/cfw.v20190904.test.js +4 -64
  32. package/test/mna.v20210119.test.js +10 -0
@@ -51,6 +51,12 @@ class Client extends abstract_client_1.AbstractClient {
51
51
  async DescribeQos(req, cb) {
52
52
  return this.request("DescribeQos", req, cb);
53
53
  }
54
+ /**
55
+ * 获取指定设备Id,指定时间点数据流量使用情况
56
+ */
57
+ async GetFlowStatistic(req, cb) {
58
+ return this.request("GetFlowStatistic", req, cb);
59
+ }
54
60
  /**
55
61
  * 获取设备信息列表
56
62
  */
@@ -11,6 +11,31 @@ export interface GetDeviceResponse {
11
11
  */
12
12
  RequestId?: string;
13
13
  }
14
+ /**
15
+ * GetFlowStatistic返回参数结构体
16
+ */
17
+ export interface GetFlowStatisticResponse {
18
+ /**
19
+ * 流量详细信息
20
+ */
21
+ NetDetails: Array<NetDetails>;
22
+ /**
23
+ * 查找时间段流量使用最大值(单位:bit)
24
+ */
25
+ MaxValue: number;
26
+ /**
27
+ * 查找时间段流量使用平均值(单位:bit)
28
+ */
29
+ AvgValue: number;
30
+ /**
31
+ * 查找时间段流量使用总量(单位:bit)
32
+ */
33
+ TotalValue: number;
34
+ /**
35
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
36
+ */
37
+ RequestId?: string;
38
+ }
14
39
  /**
15
40
  * 接口能力扩展,用于填充电信的加速Token,并为未来参数提供兼容空间
16
41
  */
@@ -24,6 +49,31 @@ export interface Capacity {
24
49
  */
25
50
  Province?: string;
26
51
  }
52
+ /**
53
+ * GetFlowStatistic请求参数结构体
54
+ */
55
+ export interface GetFlowStatisticRequest {
56
+ /**
57
+ * 设备ID,ID="-1"时默认查找所有设备
58
+ */
59
+ DeviceId: string;
60
+ /**
61
+ * 开始查找时间
62
+ */
63
+ BeginTime: number;
64
+ /**
65
+ * 截止时间
66
+ */
67
+ EndTime: number;
68
+ /**
69
+ * 流量种类(1:上行流量,2:下行流量)
70
+ */
71
+ Type: number;
72
+ /**
73
+ * 时间粒度(1:按小时统计,2:按天统计)
74
+ */
75
+ TimeGranularity: number;
76
+ }
27
77
  /**
28
78
  * 移动网络加速目标地址结构体
29
79
  */
@@ -121,6 +171,19 @@ export interface DeviceNetInfo {
121
171
  */
122
172
  NetInfoName: string;
123
173
  }
174
+ /**
175
+ * 网络详细信息
176
+ */
177
+ export interface NetDetails {
178
+ /**
179
+ * 时间点,单位:s
180
+ */
181
+ Time: string;
182
+ /**
183
+ * 流量值(bit)
184
+ */
185
+ Current: number;
186
+ }
124
187
  /**
125
188
  * 移动网络加速源地址结构体
126
189
  */
@@ -1091,6 +1091,10 @@ export interface DescribeConditionsTemplateListRequest {
1091
1091
  * 指定按更新时间的排序方式,asc=升序, desc=降序
1092
1092
  */
1093
1093
  UpdateTimeOrder?: string;
1094
+ /**
1095
+ * 指定按绑定策略数目的排序方式,asc=升序, desc=降序
1096
+ */
1097
+ PolicyCountOrder?: string;
1094
1098
  }
1095
1099
  /**
1096
1100
  * DescribePrometheusScrapeJobs请求参数结构体
@@ -4167,7 +4171,7 @@ export interface Condition {
4167
4171
  */
4168
4172
  CalcValue: string;
4169
4173
  /**
4170
- * 持续时间
4174
+ * 持续时间,单位秒
4171
4175
  注意:此字段可能返回 null,表示取不到有效值。
4172
4176
  */
4173
4177
  ContinueTime: string;
@@ -4191,6 +4195,19 @@ export interface Condition {
4191
4195
  * 指标单位
4192
4196
  */
4193
4197
  Unit: string;
4198
+ /**
4199
+ * 是否为高级指标,0:否;1:是
4200
+ */
4201
+ IsAdvanced: number;
4202
+ /**
4203
+ * 是否开通高级指标,0:否;1:是
4204
+ */
4205
+ IsOpen: number;
4206
+ /**
4207
+ * 产品ID
4208
+ 注意:此字段可能返回 null,表示取不到有效值。
4209
+ */
4210
+ ProductId: string;
4194
4211
  }
4195
4212
  /**
4196
4213
  * DeleteGrafanaInstance返回参数结构体
@@ -2593,6 +2593,10 @@ export interface EditMediaOutputConfig {
2593
2593
  * 封装格式,可选值:mp4、hls、mov、flv、avi。默认是 mp4。
2594
2594
  */
2595
2595
  Container?: string;
2596
+ /**
2597
+ * 剪辑模式,可选值 normal、fast。默认是精确剪辑 normal
2598
+ */
2599
+ Type?: string;
2596
2600
  }
2597
2601
  /**
2598
2602
  * Asr 文字涉黄信息
@@ -588,6 +588,21 @@ export interface ExtensiveCluster {
588
588
  */
589
589
  Zone?: string;
590
590
  }
591
+ /**
592
+ * 智能DNS配置
593
+ */
594
+ export interface SmartDNSConfig {
595
+ /**
596
+ * 开启DNS代理
597
+ 注意:此字段可能返回 null,表示取不到有效值。
598
+ */
599
+ IstioMetaDNSCapture?: boolean;
600
+ /**
601
+ * 开启自动地址分配
602
+ 注意:此字段可能返回 null,表示取不到有效值。
603
+ */
604
+ IstioMetaDNSAutoAllocate?: boolean;
605
+ }
591
606
  /**
592
607
  * Istio配置
593
608
  */
@@ -605,6 +620,21 @@ export interface IstioConfig {
605
620
  注意:此字段可能返回 null,表示取不到有效值。
606
621
  */
607
622
  DisablePolicyChecks?: boolean;
623
+ /**
624
+ * 支持HTTP1.0协议
625
+ 注意:此字段可能返回 null,表示取不到有效值。
626
+ */
627
+ EnablePilotHTTP?: boolean;
628
+ /**
629
+ * 禁用HTTP重试策略
630
+ 注意:此字段可能返回 null,表示取不到有效值。
631
+ */
632
+ DisableHTTPRetry?: boolean;
633
+ /**
634
+ * SmartDNS策略
635
+ 注意:此字段可能返回 null,表示取不到有效值。
636
+ */
637
+ SmartDNS?: SmartDNSConfig;
608
638
  }
609
639
  /**
610
640
  * 腾讯云日志服务相关参数
@@ -622,6 +652,10 @@ export interface CLS {
622
652
  * 日志主题
623
653
  */
624
654
  Topic?: string;
655
+ /**
656
+ * 是否删除
657
+ */
658
+ NeedDelete?: boolean;
625
659
  }
626
660
  /**
627
661
  * 调用链配置
@@ -4372,6 +4372,10 @@ export interface UpdateTKEEdgeClusterRequest {
4372
4372
  * 边缘集群开启自动升配
4373
4373
  */
4374
4374
  AutoUpgradeClusterLevel?: boolean;
4375
+ /**
4376
+ * 边缘集群的集群规模
4377
+ */
4378
+ ClusterLevel?: string;
4375
4379
  }
4376
4380
  /**
4377
4381
  * DescribeTKEEdgeExternalKubeconfig返回参数结构体
@@ -308,6 +308,10 @@ export interface UpsertIpAccessControlRequest {
308
308
  * clb-waf或者sparta-waf
309
309
  */
310
310
  Edition?: string;
311
+ /**
312
+ * 是否为多域名黑白名单
313
+ */
314
+ SourceType?: string;
311
315
  }
312
316
  /**
313
317
  * DeleteDownloadRecord请求参数结构体
@@ -720,6 +724,22 @@ export interface AddSpartaProtectionRequest {
720
724
  * src权重
721
725
  */
722
726
  Weights?: Array<number>;
727
+ /**
728
+ * 是否开启主动健康检测,1表示开启,0表示不开启
729
+ */
730
+ ActiveCheck?: number;
731
+ /**
732
+ * TLS版本信息
733
+ */
734
+ TLSVersion?: number;
735
+ /**
736
+ * 加密套件信息
737
+ */
738
+ Ciphers?: Array<number>;
739
+ /**
740
+ * 0:不支持选择:默认模版 1:通用型模版 2:安全型模版 3:自定义模版
741
+ */
742
+ CipherTemplate?: number;
723
743
  }
724
744
  /**
725
745
  * PostAttackDownloadTask请求参数结构体
@@ -791,6 +811,10 @@ export interface DeleteIpAccessControlRequest {
791
811
  * 删除对应的域名下的所有黑/白IP名额单
792
812
  */
793
813
  DeleteAll?: boolean;
814
+ /**
815
+ * 是否为多域名黑白名单
816
+ */
817
+ SourceType?: string;
794
818
  }
795
819
  /**
796
820
  * DeleteDomainWhiteRules返回参数结构体
@@ -1331,6 +1355,11 @@ export interface InstanceInfo {
1331
1355
  注意:此字段可能返回 null,表示取不到有效值。
1332
1356
  */
1333
1357
  BotQPS?: BotQPS;
1358
+ /**
1359
+ * qps弹性计费上限
1360
+ 注意:此字段可能返回 null,表示取不到有效值。
1361
+ */
1362
+ ElasticBilling?: number;
1334
1363
  }
1335
1364
  /**
1336
1365
  * 用于 DescribeAccessIndex 的出参
@@ -128,16 +128,6 @@ it("cfw.v20190904.ModifyResourceGroup", async function () {
128
128
  }
129
129
  })
130
130
 
131
- it("cfw.v20190904.CreateSecurityGroupApiRules", async function () {
132
- try {
133
- const data = await client.CreateSecurityGroupApiRules({})
134
- expect(data).to.be.ok
135
- } catch(error) {
136
- expect(error.requestId).to.be.ok
137
- expect(error.code).to.be.ok
138
- }
139
- })
140
-
141
131
  it("cfw.v20190904.DescribeResourceGroupNew", async function () {
142
132
  try {
143
133
  const data = await client.DescribeResourceGroupNew({})
@@ -268,19 +258,9 @@ it("cfw.v20190904.CreateAcRules", async function () {
268
258
  }
269
259
  })
270
260
 
271
- it("cfw.v20190904.ModifySecurityGroupAllRuleStatus", async function () {
272
- try {
273
- const data = await client.ModifySecurityGroupAllRuleStatus({})
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
-
281
- it("cfw.v20190904.DescribeAcLists", async function () {
261
+ it("cfw.v20190904.DeleteNatFwInstance", async function () {
282
262
  try {
283
- const data = await client.DescribeAcLists({})
263
+ const data = await client.DeleteNatFwInstance({})
284
264
  expect(data).to.be.ok
285
265
  } catch(error) {
286
266
  expect(error.requestId).to.be.ok
@@ -618,19 +598,9 @@ it("cfw.v20190904.ModifySecurityGroupItemRuleStatus", async function () {
618
598
  }
619
599
  })
620
600
 
621
- it("cfw.v20190904.ModifyAllSwitchStatus", async function () {
622
- try {
623
- const data = await client.ModifyAllSwitchStatus({})
624
- expect(data).to.be.ok
625
- } catch(error) {
626
- expect(error.requestId).to.be.ok
627
- expect(error.code).to.be.ok
628
- }
629
- })
630
-
631
- it("cfw.v20190904.DeleteNatFwInstance", async function () {
601
+ it("cfw.v20190904.DescribeAcLists", async function () {
632
602
  try {
633
- const data = await client.DeleteNatFwInstance({})
603
+ const data = await client.DescribeAcLists({})
634
604
  expect(data).to.be.ok
635
605
  } catch(error) {
636
606
  expect(error.requestId).to.be.ok
@@ -648,16 +618,6 @@ it("cfw.v20190904.ModifyPublicIPSwitchStatus", async function () {
648
618
  }
649
619
  })
650
620
 
651
- it("cfw.v20190904.DescribeSyncAssetStatus", async function () {
652
- try {
653
- const data = await client.DescribeSyncAssetStatus({})
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
-
661
621
  it("cfw.v20190904.ExpandCfwVertical", async function () {
662
622
  try {
663
623
  const data = await client.ExpandCfwVertical({})
@@ -678,16 +638,6 @@ it("cfw.v20190904.DescribeBlockByIpTimesList", async function () {
678
638
  }
679
639
  })
680
640
 
681
- it("cfw.v20190904.DescribeAddrTemplateList", async function () {
682
- try {
683
- const data = await client.DescribeAddrTemplateList({})
684
- expect(data).to.be.ok
685
- } catch(error) {
686
- expect(error.requestId).to.be.ok
687
- expect(error.code).to.be.ok
688
- }
689
- })
690
-
691
641
  it("cfw.v20190904.DescribeBlockStaticList", async function () {
692
642
  try {
693
643
  const data = await client.DescribeBlockStaticList({})
@@ -698,14 +648,4 @@ it("cfw.v20190904.DescribeBlockStaticList", async function () {
698
648
  }
699
649
  })
700
650
 
701
- it("cfw.v20190904.ModifyItemSwitchStatus", async function () {
702
- try {
703
- const data = await client.ModifyItemSwitchStatus({})
704
- expect(data).to.be.ok
705
- } catch(error) {
706
- expect(error.requestId).to.be.ok
707
- expect(error.code).to.be.ok
708
- }
709
- })
710
-
711
651
  })
@@ -58,6 +58,16 @@ it("mna.v20210119.DescribeQos", async function () {
58
58
  }
59
59
  })
60
60
 
61
+ it("mna.v20210119.GetFlowStatistic", async function () {
62
+ try {
63
+ const data = await client.GetFlowStatistic({})
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("mna.v20210119.GetDevices", async function () {
62
72
  try {
63
73
  const data = await client.GetDevices({})