tencentcloud-sdk-nodejs 4.0.243 → 4.0.247

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 (107) hide show
  1. package/CHANGELOG.md +405 -83
  2. package/README.md +1 -1
  3. package/package.json +1 -1
  4. package/products.md +23 -21
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/apm/index.ts +5 -0
  7. package/src/services/apm/v20210622/apm_client.ts +40 -0
  8. package/src/services/apm/v20210622/apm_models.ts +98 -0
  9. package/src/services/apm/v20210622/index.ts +6 -0
  10. package/src/services/asw/v20200722/asw_models.ts +3 -3
  11. package/src/services/cdb/v20170320/cdb_models.ts +2 -2
  12. package/src/services/cfw/v20190904/cfw_client.ts +13 -0
  13. package/src/services/cfw/v20190904/cfw_models.ts +118 -0
  14. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -0
  15. package/src/services/clb/v20180317/clb_client.ts +25 -1
  16. package/src/services/clb/v20180317/clb_models.ts +175 -18
  17. package/src/services/cme/v20191029/cme_client.ts +26 -21
  18. package/src/services/cme/v20191029/cme_models.ts +161 -144
  19. package/src/services/cvm/v20170312/cvm_models.ts +3 -1
  20. package/src/services/cwp/v20180228/cwp_models.ts +9 -8
  21. package/src/services/dcdb/v20180411/dcdb_models.ts +6 -1
  22. package/src/services/faceid/v20180301/faceid_models.ts +3 -3
  23. package/src/services/index.ts +2 -0
  24. package/src/services/kms/v20190118/kms_client.ts +1 -1
  25. package/src/services/kms/v20190118/kms_models.ts +2 -2
  26. package/src/services/mariadb/v20170312/mariadb_models.ts +11 -1
  27. package/src/services/mrs/v20200910/mrs_client.ts +2 -0
  28. package/src/services/mrs/v20200910/mrs_models.ts +81 -5
  29. package/src/services/ocr/v20181119/ocr_models.ts +3 -3
  30. package/src/services/postgres/v20170312/postgres_models.ts +6 -6
  31. package/src/services/privatedns/v20201028/privatedns_client.ts +40 -3
  32. package/src/services/privatedns/v20201028/privatedns_models.ts +141 -31
  33. package/src/services/ses/v20201002/ses_client.ts +1 -1
  34. package/src/services/ses/v20201002/ses_models.ts +1 -1
  35. package/src/services/tcb/v20180608/tcb_client.ts +1 -0
  36. package/src/services/tcb/v20180608/tcb_models.ts +48 -0
  37. package/src/services/thpc/index.ts +5 -0
  38. package/src/services/thpc/v20211109/index.ts +6 -0
  39. package/src/services/thpc/v20211109/thpc_client.ts +64 -0
  40. package/src/services/thpc/v20211109/thpc_models.ts +332 -0
  41. package/src/services/tke/v20180525/tke_client.ts +76 -2
  42. package/src/services/tke/v20180525/tke_models.ts +255 -18
  43. package/src/services/tsf/v20180326/tsf_client.ts +13 -0
  44. package/src/services/tsf/v20180326/tsf_models.ts +85 -0
  45. package/tencentcloud/common/sdk_version.d.ts +1 -1
  46. package/tencentcloud/common/sdk_version.js +1 -1
  47. package/tencentcloud/services/apm/index.d.ts +6 -0
  48. package/tencentcloud/services/apm/index.js +7 -0
  49. package/tencentcloud/services/apm/v20210622/apm_client.d.ts +14 -0
  50. package/tencentcloud/services/apm/v20210622/apm_client.js +37 -0
  51. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +70 -0
  52. package/tencentcloud/services/apm/v20210622/apm_models.js +18 -0
  53. package/tencentcloud/services/apm/v20210622/index.d.ts +6 -0
  54. package/tencentcloud/services/apm/v20210622/index.js +9 -0
  55. package/tencentcloud/services/asw/v20200722/asw_models.d.ts +3 -3
  56. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
  57. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +5 -1
  58. package/tencentcloud/services/cfw/v20190904/cfw_client.js +6 -0
  59. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +99 -0
  60. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -0
  61. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +9 -1
  62. package/tencentcloud/services/clb/v20180317/clb_client.js +12 -0
  63. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +145 -15
  64. package/tencentcloud/services/cme/v20191029/cme_client.d.ts +26 -21
  65. package/tencentcloud/services/cme/v20191029/cme_client.js +26 -21
  66. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +155 -139
  67. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +3 -1
  68. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +9 -8
  69. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +5 -1
  70. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +3 -3
  71. package/tencentcloud/services/index.d.ts +2 -0
  72. package/tencentcloud/services/index.js +4 -0
  73. package/tencentcloud/services/kms/v20190118/kms_client.d.ts +1 -1
  74. package/tencentcloud/services/kms/v20190118/kms_client.js +1 -1
  75. package/tencentcloud/services/kms/v20190118/kms_models.d.ts +2 -2
  76. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +9 -1
  77. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +70 -5
  78. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +3 -3
  79. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +6 -6
  80. package/tencentcloud/services/privatedns/v20201028/privatedns_client.d.ts +13 -1
  81. package/tencentcloud/services/privatedns/v20201028/privatedns_client.js +18 -0
  82. package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +123 -28
  83. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -1
  84. package/tencentcloud/services/ses/v20201002/ses_client.js +1 -1
  85. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +1 -1
  86. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +40 -0
  87. package/tencentcloud/services/thpc/index.d.ts +6 -0
  88. package/tencentcloud/services/thpc/index.js +7 -0
  89. package/tencentcloud/services/thpc/v20211109/index.d.ts +6 -0
  90. package/tencentcloud/services/thpc/v20211109/index.js +9 -0
  91. package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +18 -0
  92. package/tencentcloud/services/thpc/v20211109/thpc_client.js +43 -0
  93. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +272 -0
  94. package/tencentcloud/services/thpc/v20211109/thpc_models.js +18 -0
  95. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +25 -1
  96. package/tencentcloud/services/tke/v20180525/tke_client.js +36 -0
  97. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +220 -16
  98. package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -1
  99. package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -0
  100. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +73 -0
  101. package/test/apm.v20210622.test.js +31 -0
  102. package/test/cfw.v20190904.test.js +10 -0
  103. package/test/clb.v20180317.test.js +20 -0
  104. package/test/privatedns.v20201028.test.js +30 -0
  105. package/test/thpc.v20211109.test.js +41 -0
  106. package/test/tke.v20180525.test.js +60 -0
  107. package/test/tsf.v20180326.test.js +10 -0
@@ -5463,6 +5463,20 @@ export interface MetricDataPointMap {
5463
5463
  */
5464
5464
  AvgTimeCost: Array<MetricDataPoint>;
5465
5465
  }
5466
+ /**
5467
+ * DescribeGroupAttribute返回参数结构体
5468
+ */
5469
+ export interface DescribeGroupAttributeResponse {
5470
+ /**
5471
+ * 虚拟机部署组信息
5472
+ 注意:此字段可能返回 null,表示取不到有效值。
5473
+ */
5474
+ Result?: VmGroupOther;
5475
+ /**
5476
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5477
+ */
5478
+ RequestId?: string;
5479
+ }
5466
5480
  /**
5467
5481
  * ModifyPathRewrite返回参数结构体
5468
5482
  */
@@ -7521,6 +7535,56 @@ export interface AddClusterInstancesResponse {
7521
7535
  */
7522
7536
  RequestId?: string;
7523
7537
  }
7538
+ /**
7539
+ * 虚拟机部署组其他字段
7540
+ */
7541
+ export interface VmGroupOther {
7542
+ /**
7543
+ * 部署组ID
7544
+ 注意:此字段可能返回 null,表示取不到有效值。
7545
+ */
7546
+ GroupId: string;
7547
+ /**
7548
+ * 程序包ID
7549
+ 注意:此字段可能返回 null,表示取不到有效值。
7550
+ */
7551
+ PackageId: string;
7552
+ /**
7553
+ * 程序包名称
7554
+ 注意:此字段可能返回 null,表示取不到有效值。
7555
+ */
7556
+ PackageName: string;
7557
+ /**
7558
+ * 程序包版本
7559
+ 注意:此字段可能返回 null,表示取不到有效值。
7560
+ */
7561
+ PackageVersion: string;
7562
+ /**
7563
+ * 部署组实例数
7564
+ 注意:此字段可能返回 null,表示取不到有效值。
7565
+ */
7566
+ InstanceCount: number;
7567
+ /**
7568
+ * 部署组运行中实例数
7569
+ 注意:此字段可能返回 null,表示取不到有效值。
7570
+ */
7571
+ RunInstanceCount: number;
7572
+ /**
7573
+ * 部署组中停止实例数
7574
+ 注意:此字段可能返回 null,表示取不到有效值。
7575
+ */
7576
+ OffInstanceCount: number;
7577
+ /**
7578
+ * 部署组状态
7579
+ 注意:此字段可能返回 null,表示取不到有效值。
7580
+ */
7581
+ GroupStatus: string;
7582
+ /**
7583
+ * 服务配置信息是否匹配
7584
+ 注意:此字段可能返回 null,表示取不到有效值。
7585
+ */
7586
+ IsNotEqualServiceConfig: boolean;
7587
+ }
7524
7588
  /**
7525
7589
  * DescribeTaskLastStatus返回参数结构体
7526
7590
  */
@@ -8150,6 +8214,15 @@ export interface TsfPageSimpleGroup {
8150
8214
  */
8151
8215
  Content: Array<SimpleGroup>;
8152
8216
  }
8217
+ /**
8218
+ * DescribeGroupAttribute请求参数结构体
8219
+ */
8220
+ export interface DescribeGroupAttributeRequest {
8221
+ /**
8222
+ * 部署组ID字段
8223
+ */
8224
+ GroupId: string;
8225
+ }
8153
8226
  /**
8154
8227
  * 任务规则
8155
8228
  */
@@ -0,0 +1,31 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.apm.v20210622.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("apm.v20210622.test.js", function () {
20
+
21
+ it("apm.v20210622.DescribeApmAgent", async function () {
22
+ try {
23
+ const data = await client.DescribeApmAgent({})
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
+ })
@@ -688,6 +688,16 @@ it("cfw.v20190904.DescribeBlockByIpTimesList", async function () {
688
688
  }
689
689
  })
690
690
 
691
+ it("cfw.v20190904.DescribeAddrTemplateList", async function () {
692
+ try {
693
+ const data = await client.DescribeAddrTemplateList({})
694
+ expect(data).to.be.ok
695
+ } catch(error) {
696
+ expect(error.requestId).to.be.ok
697
+ expect(error.code).to.be.ok
698
+ }
699
+ })
700
+
691
701
  it("cfw.v20190904.DescribeBlockStaticList", async function () {
692
702
  try {
693
703
  const data = await client.DescribeBlockStaticList({})
@@ -518,6 +518,16 @@ it("clb.v20180317.CreateTargetGroup", async function () {
518
518
  }
519
519
  })
520
520
 
521
+ it("clb.v20180317.DescribeLoadBalancerOverview", async function () {
522
+ try {
523
+ const data = await client.DescribeLoadBalancerOverview({})
524
+ expect(data).to.be.ok
525
+ } catch(error) {
526
+ expect(error.requestId).to.be.ok
527
+ expect(error.code).to.be.ok
528
+ }
529
+ })
530
+
521
531
  it("clb.v20180317.DescribeTargets", async function () {
522
532
  try {
523
533
  const data = await client.DescribeTargets({})
@@ -648,6 +658,16 @@ it("clb.v20180317.DescribeLoadBalancerTraffic", async function () {
648
658
  }
649
659
  })
650
660
 
661
+ it("clb.v20180317.CloneLoadBalancer", async function () {
662
+ try {
663
+ const data = await client.CloneLoadBalancer({})
664
+ expect(data).to.be.ok
665
+ } catch(error) {
666
+ expect(error.requestId).to.be.ok
667
+ expect(error.code).to.be.ok
668
+ }
669
+ })
670
+
651
671
  it("clb.v20180317.ModifyTargetGroupInstancesPort", async function () {
652
672
  try {
653
673
  const data = await client.ModifyTargetGroupInstancesPort({})
@@ -18,6 +18,16 @@ const client = new tencentcloud.privatedns.v20201028.Client({
18
18
  })
19
19
  describe("privatedns.v20201028.test.js", function () {
20
20
 
21
+ it("privatedns.v20201028.CreatePrivateDNSAccount", async function () {
22
+ try {
23
+ const data = await client.CreatePrivateDNSAccount({})
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("privatedns.v20201028.DescribePrivateZone", async function () {
22
32
  try {
23
33
  const data = await client.DescribePrivateZone({})
@@ -38,6 +48,16 @@ it("privatedns.v20201028.ModifyPrivateZoneRecord", async function () {
38
48
  }
39
49
  })
40
50
 
51
+ it("privatedns.v20201028.DescribeAccountVpcList", async function () {
52
+ try {
53
+ const data = await client.DescribeAccountVpcList({})
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
+
41
61
  it("privatedns.v20201028.DescribePrivateZoneRecordList", async function () {
42
62
  try {
43
63
  const data = await client.DescribePrivateZoneRecordList({})
@@ -58,6 +78,16 @@ it("privatedns.v20201028.DescribePrivateZoneService", async function () {
58
78
  }
59
79
  })
60
80
 
81
+ it("privatedns.v20201028.DeletePrivateDNSAccount", async function () {
82
+ try {
83
+ const data = await client.DeletePrivateDNSAccount({})
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
+
61
91
  it("privatedns.v20201028.DescribeAuditLog", async function () {
62
92
  try {
63
93
  const data = await client.DescribeAuditLog({})
@@ -0,0 +1,41 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.thpc.v20211109.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("thpc.v20211109.test.js", function () {
20
+
21
+ it("thpc.v20211109.DeleteCluster", async function () {
22
+ try {
23
+ const data = await client.DeleteCluster({})
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("thpc.v20211109.CreateCluster", async function () {
32
+ try {
33
+ const data = await client.CreateCluster({})
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
+ })
@@ -228,6 +228,16 @@ it("tke.v20180525.DescribeClusterAuthenticationOptions", async function () {
228
228
  }
229
229
  })
230
230
 
231
+ it("tke.v20180525.ForwardApplicationRequestV3", async function () {
232
+ try {
233
+ const data = await client.ForwardApplicationRequestV3({})
234
+ expect(data).to.be.ok
235
+ } catch(error) {
236
+ expect(error.requestId).to.be.ok
237
+ expect(error.code).to.be.ok
238
+ }
239
+ })
240
+
231
241
  it("tke.v20180525.DescribeClusterNodePoolDetail", async function () {
232
242
  try {
233
243
  const data = await client.DescribeClusterNodePoolDetail({})
@@ -398,6 +408,16 @@ it("tke.v20180525.AddExistedInstances", async function () {
398
408
  }
399
409
  })
400
410
 
411
+ it("tke.v20180525.DisableClusterDeletionProtection", async function () {
412
+ try {
413
+ const data = await client.DisableClusterDeletionProtection({})
414
+ expect(data).to.be.ok
415
+ } catch(error) {
416
+ expect(error.requestId).to.be.ok
417
+ expect(error.code).to.be.ok
418
+ }
419
+ })
420
+
401
421
  it("tke.v20180525.DescribePrometheusTargets", async function () {
402
422
  try {
403
423
  const data = await client.DescribePrometheusTargets({})
@@ -648,6 +668,16 @@ it("tke.v20180525.DescribePrometheusAgentInstances", async function () {
648
668
  }
649
669
  })
650
670
 
671
+ it("tke.v20180525.ScaleOutClusterMaster", async function () {
672
+ try {
673
+ const data = await client.ScaleOutClusterMaster({})
674
+ expect(data).to.be.ok
675
+ } catch(error) {
676
+ expect(error.requestId).to.be.ok
677
+ expect(error.code).to.be.ok
678
+ }
679
+ })
680
+
651
681
  it("tke.v20180525.CreatePrometheusAlertRule", async function () {
652
682
  try {
653
683
  const data = await client.CreatePrometheusAlertRule({})
@@ -678,6 +708,16 @@ it("tke.v20180525.DeleteClusterNodePool", async function () {
678
708
  }
679
709
  })
680
710
 
711
+ it("tke.v20180525.ScaleInClusterMaster", async function () {
712
+ try {
713
+ const data = await client.ScaleInClusterMaster({})
714
+ expect(data).to.be.ok
715
+ } catch(error) {
716
+ expect(error.requestId).to.be.ok
717
+ expect(error.code).to.be.ok
718
+ }
719
+ })
720
+
681
721
  it("tke.v20180525.DeleteClusterEndpointVip", async function () {
682
722
  try {
683
723
  const data = await client.DeleteClusterEndpointVip({})
@@ -878,6 +918,16 @@ it("tke.v20180525.DescribeEnableVpcCniProgress", async function () {
878
918
  }
879
919
  })
880
920
 
921
+ it("tke.v20180525.EnableClusterDeletionProtection", async function () {
922
+ try {
923
+ const data = await client.EnableClusterDeletionProtection({})
924
+ expect(data).to.be.ok
925
+ } catch(error) {
926
+ expect(error.requestId).to.be.ok
927
+ expect(error.code).to.be.ok
928
+ }
929
+ })
930
+
881
931
  it("tke.v20180525.SyncPrometheusTemplate", async function () {
882
932
  try {
883
933
  const data = await client.SyncPrometheusTemplate({})
@@ -938,6 +988,16 @@ it("tke.v20180525.UpdateEKSCluster", async function () {
938
988
  }
939
989
  })
940
990
 
991
+ it("tke.v20180525.GetTkeAppChartList", async function () {
992
+ try {
993
+ const data = await client.GetTkeAppChartList({})
994
+ expect(data).to.be.ok
995
+ } catch(error) {
996
+ expect(error.requestId).to.be.ok
997
+ expect(error.code).to.be.ok
998
+ }
999
+ })
1000
+
941
1001
  it("tke.v20180525.CreateClusterEndpointVip", async function () {
942
1002
  try {
943
1003
  const data = await client.CreateClusterEndpointVip({})
@@ -168,6 +168,16 @@ it("tsf.v20180326.DescribeContainerGroups", async function () {
168
168
  }
169
169
  })
170
170
 
171
+ it("tsf.v20180326.DescribeGroupAttribute", async function () {
172
+ try {
173
+ const data = await client.DescribeGroupAttribute({})
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("tsf.v20180326.DescribeConfigs", async function () {
172
182
  try {
173
183
  const data = await client.DescribeConfigs({})