tencentcloud-sdk-nodejs 4.0.221 → 4.0.222

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 (50) hide show
  1. package/CHANGELOG.md +311 -11
  2. package/package.json +1 -1
  3. package/products.md +12 -12
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/as/v20180419/as_models.ts +3 -3
  6. package/src/services/clb/v20180317/clb_models.ts +4 -2
  7. package/src/services/cwp/v20180228/cwp_client.ts +26 -0
  8. package/src/services/cwp/v20180228/cwp_models.ts +252 -0
  9. package/src/services/ecm/v20190719/ecm_client.ts +14 -0
  10. package/src/services/ecm/v20190719/ecm_models.ts +98 -8
  11. package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
  12. package/src/services/organization/v20210331/organization_client.ts +12 -0
  13. package/src/services/organization/v20210331/organization_models.ts +50 -0
  14. package/src/services/postgres/v20170312/postgres_client.ts +48 -8
  15. package/src/services/postgres/v20170312/postgres_models.ts +300 -12
  16. package/src/services/rce/v20201103/rce_models.ts +19 -96
  17. package/src/services/scf/v20180416/scf_client.ts +1 -0
  18. package/src/services/scf/v20180416/scf_models.ts +34 -0
  19. package/src/services/tcb/v20180608/tcb_client.ts +31 -5
  20. package/src/services/tcb/v20180608/tcb_models.ts +462 -189
  21. package/src/services/vpc/v20170312/vpc_client.ts +3 -1
  22. package/src/services/vpc/v20170312/vpc_models.ts +85 -21
  23. package/tencentcloud/common/sdk_version.d.ts +1 -1
  24. package/tencentcloud/common/sdk_version.js +1 -1
  25. package/tencentcloud/services/as/v20180419/as_models.d.ts +3 -3
  26. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +3 -1
  27. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +9 -1
  28. package/tencentcloud/services/cwp/v20180228/cwp_client.js +12 -0
  29. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +214 -0
  30. package/tencentcloud/services/ecm/v20190719/ecm_client.d.ts +5 -1
  31. package/tencentcloud/services/ecm/v20190719/ecm_client.js +6 -0
  32. package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +84 -8
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
  34. package/tencentcloud/services/organization/v20210331/organization_client.d.ts +5 -1
  35. package/tencentcloud/services/organization/v20210331/organization_client.js +6 -0
  36. package/tencentcloud/services/organization/v20210331/organization_models.d.ts +42 -0
  37. package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +15 -3
  38. package/tencentcloud/services/postgres/v20170312/postgres_client.js +21 -3
  39. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +258 -12
  40. package/tencentcloud/services/rce/v20201103/rce_models.d.ts +13 -90
  41. package/tencentcloud/services/scf/v20180416/scf_models.d.ts +29 -0
  42. package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +9 -1
  43. package/tencentcloud/services/tcb/v20180608/tcb_client.js +12 -0
  44. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +387 -157
  45. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +74 -20
  46. package/test/cwp.v20180228.test.js +20 -0
  47. package/test/ecm.v20190719.test.js +10 -0
  48. package/test/organization.v20210331.test.js +10 -0
  49. package/test/postgres.v20170312.test.js +32 -2
  50. package/test/tcb.v20180608.test.js +20 -0
@@ -172,9 +172,13 @@ export interface CreateServiceTemplateRequest {
172
172
  */
173
173
  ServiceTemplateName: string;
174
174
  /**
175
- * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
175
+ * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。
176
+ */
177
+ Services?: Array<string>;
178
+ /**
179
+ * 支持添加备注,单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。
176
180
  */
177
- Services: Array<string>;
181
+ ServicesExtra?: Array<ServicesInfo>;
178
182
  }
179
183
  /**
180
184
  * DescribeIp6TranslatorQuota返回参数结构体
@@ -827,6 +831,10 @@ export interface AddressTemplate {
827
831
  * 创建时间。
828
832
  */
829
833
  CreatedTime?: string;
834
+ /**
835
+ * 带备注的IP地址信息。
836
+ */
837
+ AddressExtraSet: Array<AddressInfo>;
830
838
  }
831
839
  /**
832
840
  * IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
@@ -1449,6 +1457,10 @@ export interface ServiceTemplate {
1449
1457
  * 创建时间。
1450
1458
  */
1451
1459
  CreatedTime?: string;
1460
+ /**
1461
+ * 带备注的协议端口信息。
1462
+ */
1463
+ ServiceExtraSet: Array<ServicesInfo>;
1452
1464
  }
1453
1465
  /**
1454
1466
  * DescribeCcnAttachedInstances请求参数结构体
@@ -2629,6 +2641,10 @@ export interface ModifyAddressTemplateAttributeRequest {
2629
2641
  * 地址信息,支持 IP、CIDR、IP 范围。
2630
2642
  */
2631
2643
  Addresses?: Array<string>;
2644
+ /**
2645
+ * 支持添加备注的地址信息,支持 IP、CIDR、IP 范围。
2646
+ */
2647
+ AddressesExtra?: Array<AddressInfo>;
2632
2648
  }
2633
2649
  /**
2634
2650
  * CreateNatGateway返回参数结构体
@@ -4730,7 +4746,7 @@ export interface CreateAddressTemplateResponse {
4730
4746
  /**
4731
4747
  * IP地址模板对象。
4732
4748
  */
4733
- AddressTemplate?: AddressTemplate;
4749
+ AddressTemplate: AddressTemplate;
4734
4750
  /**
4735
4751
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4736
4752
  */
@@ -4964,6 +4980,10 @@ export interface ModifyServiceTemplateAttributeRequest {
4964
4980
  * 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
4965
4981
  */
4966
4982
  Services?: Array<string>;
4983
+ /**
4984
+ * 支持添加备注的协议端口信息,支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。
4985
+ */
4986
+ ServicesExtra?: Array<ServicesInfo>;
4967
4987
  }
4968
4988
  /**
4969
4989
  * AssociateAddress返回参数结构体
@@ -7453,11 +7473,11 @@ export interface DescribeServiceTemplatesResponse {
7453
7473
  /**
7454
7474
  * 符合条件的实例数量。
7455
7475
  */
7456
- TotalCount?: number;
7476
+ TotalCount: number;
7457
7477
  /**
7458
7478
  * 协议端口模板对象。
7459
7479
  */
7460
- ServiceTemplateSet?: Array<ServiceTemplate>;
7480
+ ServiceTemplateSet: Array<ServiceTemplate>;
7461
7481
  /**
7462
7482
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7463
7483
  */
@@ -9244,6 +9264,20 @@ export interface CreateLocalGatewayResponse {
9244
9264
  */
9245
9265
  RequestId?: string;
9246
9266
  }
9267
+ /**
9268
+ * 协议端口模板信息
9269
+ */
9270
+ export interface ServicesInfo {
9271
+ /**
9272
+ * 协议端口
9273
+ */
9274
+ Service: string;
9275
+ /**
9276
+ * 备注
9277
+ 注意:此字段可能返回 null,表示取不到有效值。
9278
+ */
9279
+ Description?: string;
9280
+ }
9247
9281
  /**
9248
9282
  * MigratePrivateIpAddress请求参数结构体
9249
9283
  */
@@ -9267,8 +9301,9 @@ export interface MigratePrivateIpAddressRequest {
9267
9301
  export interface DescribeServiceTemplatesRequest {
9268
9302
  /**
9269
9303
  * 过滤条件。
9270
- <li>service-template-name - String - (过滤条件)协议端口模板名称。</li>
9271
- <li>service-template-id - String - (过滤条件)协议端口模板实例ID,例如:ppm-e6dy460g。</li>
9304
+ <li>service-template-name - 协议端口模板名称。</li>
9305
+ <li>service-template-id - 协议端口模板实例ID,例如:ppm-e6dy460g。</li>
9306
+ <li>service-port- 协议端口。</li>
9272
9307
  */
9273
9308
  Filters?: Array<Filter>;
9274
9309
  /**
@@ -9794,9 +9829,13 @@ export interface CreateAddressTemplateRequest {
9794
9829
  */
9795
9830
  AddressTemplateName: string;
9796
9831
  /**
9797
- * 地址信息,支持 IP、CIDR、IP 范围。
9832
+ * 地址信息,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。
9833
+ */
9834
+ Addresses?: Array<string>;
9835
+ /**
9836
+ * 地址信息,支持携带备注,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。
9798
9837
  */
9799
- Addresses: Array<string>;
9838
+ AddressesExtra?: Array<AddressInfo>;
9800
9839
  }
9801
9840
  /**
9802
9841
  * DescribeRouteConflicts请求参数结构体
@@ -10624,7 +10663,7 @@ export interface CreateServiceTemplateResponse {
10624
10663
  /**
10625
10664
  * 协议端口模板对象。
10626
10665
  */
10627
- ServiceTemplate?: ServiceTemplate;
10666
+ ServiceTemplate: ServiceTemplate;
10628
10667
  /**
10629
10668
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10630
10669
  */
@@ -10711,8 +10750,9 @@ export interface CustomerGatewayVendor {
10711
10750
  export interface DescribeAddressTemplatesRequest {
10712
10751
  /**
10713
10752
  * 过滤条件。
10714
- <li>address-template-name - String - (过滤条件)IP地址模板名称。</li>
10715
- <li>address-template-id - String - (过滤条件)IP地址模板实例ID,例如:ipm-mdunqeb6。</li>
10753
+ <li>address-template-name - IP地址模板名称。</li>
10754
+ <li>address-template-id - IP地址模板实例ID,例如:ipm-mdunqeb6。</li>
10755
+ <li>address-ip - IP地址。</li>
10716
10756
  */
10717
10757
  Filters?: Array<Filter>;
10718
10758
  /**
@@ -10795,11 +10835,11 @@ export interface DescribeAddressTemplatesResponse {
10795
10835
  /**
10796
10836
  * 符合条件的实例数量。
10797
10837
  */
10798
- TotalCount?: number;
10838
+ TotalCount: number;
10799
10839
  /**
10800
10840
  * IP地址模版。
10801
10841
  */
10802
- AddressTemplateSet?: Array<AddressTemplate>;
10842
+ AddressTemplateSet: Array<AddressTemplate>;
10803
10843
  /**
10804
10844
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10805
10845
  */
@@ -11078,6 +11118,19 @@ export interface DeleteVpcResponse {
11078
11118
  */
11079
11119
  RequestId?: string;
11080
11120
  }
11121
+ /**
11122
+ * 预付费(包年包月)计费对象。
11123
+ */
11124
+ export interface InstanceChargePrepaid {
11125
+ /**
11126
+ * 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。
11127
+ */
11128
+ Period: number;
11129
+ /**
11130
+ * 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费, NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费。默认:NOTIFY_AND_MANUAL_RENEW
11131
+ */
11132
+ RenewFlag?: string;
11133
+ }
11081
11134
  /**
11082
11135
  * DescribeTemplateLimits请求参数结构体
11083
11136
  */
@@ -11122,17 +11175,18 @@ export interface AcceptAttachCcnInstancesResponse {
11122
11175
  RequestId?: string;
11123
11176
  }
11124
11177
  /**
11125
- * 预付费(包年包月)计费对象。
11178
+ * IP地址模板信息
11126
11179
  */
11127
- export interface InstanceChargePrepaid {
11180
+ export interface AddressInfo {
11128
11181
  /**
11129
- * 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。
11182
+ * ip地址
11130
11183
  */
11131
- Period: number;
11184
+ Address: string;
11132
11185
  /**
11133
- * 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费, NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费。默认:NOTIFY_AND_MANUAL_RENEW
11186
+ * 备注
11187
+ 注意:此字段可能返回 null,表示取不到有效值。
11134
11188
  */
11135
- RenewFlag?: string;
11189
+ Description?: string;
11136
11190
  }
11137
11191
  /**
11138
11192
  * AuditCrossBorderCompliance请求参数结构体
@@ -1188,6 +1188,16 @@ it("cwp.v20180228.DescribeAssetDatabaseList", async function () {
1188
1188
  }
1189
1189
  })
1190
1190
 
1191
+ it("cwp.v20180228.DescribeVulEffectHostList", async function () {
1192
+ try {
1193
+ const data = await client.DescribeVulEffectHostList({})
1194
+ expect(data).to.be.ok
1195
+ } catch(error) {
1196
+ expect(error.requestId).to.be.ok
1197
+ expect(error.code).to.be.ok
1198
+ }
1199
+ })
1200
+
1191
1201
  it("cwp.v20180228.DescribeScanTaskStatus", async function () {
1192
1202
  try {
1193
1203
  const data = await client.DescribeScanTaskStatus({})
@@ -1778,6 +1788,16 @@ it("cwp.v20180228.ModifyMalwareTimingScanSettings", async function () {
1778
1788
  }
1779
1789
  })
1780
1790
 
1791
+ it("cwp.v20180228.DescribeVulList", async function () {
1792
+ try {
1793
+ const data = await client.DescribeVulList({})
1794
+ expect(data).to.be.ok
1795
+ } catch(error) {
1796
+ expect(error.requestId).to.be.ok
1797
+ expect(error.code).to.be.ok
1798
+ }
1799
+ })
1800
+
1781
1801
  it("cwp.v20180228.ModifyProVersionRenewFlag", async function () {
1782
1802
  try {
1783
1803
  const data = await client.ModifyProVersionRenewFlag({})
@@ -738,6 +738,16 @@ it("ecm.v20190719.ModifySubnetAttribute", async function () {
738
738
  }
739
739
  })
740
740
 
741
+ it("ecm.v20190719.DescribePackingQuotaGroup", async function () {
742
+ try {
743
+ const data = await client.DescribePackingQuotaGroup({})
744
+ expect(data).to.be.ok
745
+ } catch(error) {
746
+ expect(error.requestId).to.be.ok
747
+ expect(error.code).to.be.ok
748
+ }
749
+ })
750
+
741
751
  it("ecm.v20190719.DescribeNetworkInterfaces", async function () {
742
752
  try {
743
753
  const data = await client.DescribeNetworkInterfaces({})
@@ -18,6 +18,16 @@ const client = new tencentcloud.organization.v20210331.Client({
18
18
  })
19
19
  describe("organization.v20210331.test.js", function () {
20
20
 
21
+ it("organization.v20210331.CreateOrganizationMember", async function () {
22
+ try {
23
+ const data = await client.CreateOrganizationMember({})
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("organization.v20210331.BindOrganizationMemberAuthAccount", async function () {
22
32
  try {
23
33
  const data = await client.BindOrganizationMemberAuthAccount({})
@@ -38,6 +38,16 @@ it("postgres.v20170312.DescribeOrders", async function () {
38
38
  }
39
39
  })
40
40
 
41
+ it("postgres.v20170312.ModifyDBInstanceParameters", async function () {
42
+ try {
43
+ const data = await client.ModifyDBInstanceParameters({})
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
+
41
51
  it("postgres.v20170312.DestroyDBInstance", async function () {
42
52
  try {
43
53
  const data = await client.DestroyDBInstance({})
@@ -108,9 +118,9 @@ it("postgres.v20170312.InquiryPriceCreateDBInstances", async function () {
108
118
  }
109
119
  })
110
120
 
111
- it("postgres.v20170312.OpenDBExtranetAccess", async function () {
121
+ it("postgres.v20170312.DescribeDBInstanceParameters", async function () {
112
122
  try {
113
- const data = await client.OpenDBExtranetAccess({})
123
+ const data = await client.DescribeDBInstanceParameters({})
114
124
  expect(data).to.be.ok
115
125
  } catch(error) {
116
126
  expect(error.requestId).to.be.ok
@@ -248,6 +258,16 @@ it("postgres.v20170312.RestartDBInstance", async function () {
248
258
  }
249
259
  })
250
260
 
261
+ it("postgres.v20170312.OpenDBExtranetAccess", async function () {
262
+ try {
263
+ const data = await client.OpenDBExtranetAccess({})
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
+
251
271
  it("postgres.v20170312.IsolateDBInstances", async function () {
252
272
  try {
253
273
  const data = await client.IsolateDBInstances({})
@@ -478,6 +498,16 @@ it("postgres.v20170312.DescribeProductConfig", async function () {
478
498
  }
479
499
  })
480
500
 
501
+ it("postgres.v20170312.DescribeParamsEvent", async function () {
502
+ try {
503
+ const data = await client.DescribeParamsEvent({})
504
+ expect(data).to.be.ok
505
+ } catch(error) {
506
+ expect(error.requestId).to.be.ok
507
+ expect(error.code).to.be.ok
508
+ }
509
+ })
510
+
481
511
  it("postgres.v20170312.DescribeDBSlowlogs", async function () {
482
512
  try {
483
513
  const data = await client.DescribeDBSlowlogs({})
@@ -558,6 +558,16 @@ it("tcb.v20180608.DescribeCloudBaseRunOperationTypes", async function () {
558
558
  }
559
559
  })
560
560
 
561
+ it("tcb.v20180608.DescribeCloudBaseRunServer", async function () {
562
+ try {
563
+ const data = await client.DescribeCloudBaseRunServer({})
564
+ expect(data).to.be.ok
565
+ } catch(error) {
566
+ expect(error.requestId).to.be.ok
567
+ expect(error.code).to.be.ok
568
+ }
569
+ })
570
+
561
571
  it("tcb.v20180608.ModifyEnv", async function () {
562
572
  try {
563
573
  const data = await client.ModifyEnv({})
@@ -688,6 +698,16 @@ it("tcb.v20180608.DescribeCloudBaseRunVersionRsByCondition", async function () {
688
698
  }
689
699
  })
690
700
 
701
+ it("tcb.v20180608.DescribeCloudBaseRunPodList", async function () {
702
+ try {
703
+ const data = await client.DescribeCloudBaseRunPodList({})
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
+
691
711
  it("tcb.v20180608.DestroyStaticStore", async function () {
692
712
  try {
693
713
  const data = await client.DestroyStaticStore({})