tencentcloud-sdk-nodejs 4.0.657 → 4.0.659

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 (59) hide show
  1. package/CHANGELOG.md +414 -0
  2. package/SERVICE_CHANGELOG.md +716 -313
  3. package/package.json +1 -1
  4. package/products.md +14 -13
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdb/v20170320/cdb_client.ts +36 -0
  7. package/src/services/cdb/v20170320/cdb_models.ts +80 -2
  8. package/src/services/clb/v20180317/clb_models.ts +1 -1
  9. package/src/services/cwp/v20180228/cwp_models.ts +2 -2
  10. package/src/services/dlc/v20210125/dlc_client.ts +16 -2
  11. package/src/services/dlc/v20210125/dlc_models.ts +224 -114
  12. package/src/services/gme/v20180711/gme_client.ts +6 -5
  13. package/src/services/index.ts +1 -0
  14. package/src/services/iss/v20230517/iss_client.ts +49 -19
  15. package/src/services/iss/v20230517/iss_models.ts +1525 -1105
  16. package/src/services/sqlserver/v20180328/sqlserver_models.ts +1 -1
  17. package/src/services/tke/v20180525/tke_client.ts +1 -0
  18. package/src/services/tke/v20180525/tke_models.ts +26 -6
  19. package/src/services/trocket/index.ts +5 -0
  20. package/src/services/trocket/v20230308/index.ts +6 -0
  21. package/src/services/trocket/v20230308/trocket_client.ts +69 -0
  22. package/src/services/trocket/v20230308/trocket_models.ts +270 -0
  23. package/src/services/tse/v20201207/tse_models.ts +1 -0
  24. package/src/services/vpc/v20170312/vpc_client.ts +95 -23
  25. package/src/services/vpc/v20170312/vpc_models.ts +216 -98
  26. package/tencentcloud/common/sdk_version.d.ts +1 -1
  27. package/tencentcloud/common/sdk_version.js +1 -1
  28. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +13 -1
  29. package/tencentcloud/services/cdb/v20170320/cdb_client.js +18 -0
  30. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +74 -2
  31. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
  32. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +2 -2
  33. package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +5 -1
  34. package/tencentcloud/services/dlc/v20210125/dlc_client.js +6 -0
  35. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +220 -114
  36. package/tencentcloud/services/gme/v20180711/gme_client.d.ts +6 -5
  37. package/tencentcloud/services/gme/v20180711/gme_client.js +6 -5
  38. package/tencentcloud/services/index.d.ts +1 -0
  39. package/tencentcloud/services/index.js +2 -0
  40. package/tencentcloud/services/iss/v20230517/iss_client.d.ts +1 -1
  41. package/tencentcloud/services/iss/v20230517/iss_models.d.ts +1501 -1111
  42. package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +1 -1
  43. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +25 -6
  44. package/tencentcloud/services/trocket/index.d.ts +6 -0
  45. package/tencentcloud/services/trocket/index.js +7 -0
  46. package/tencentcloud/services/trocket/v20230308/index.d.ts +6 -0
  47. package/tencentcloud/services/trocket/v20230308/index.js +9 -0
  48. package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +27 -0
  49. package/tencentcloud/services/trocket/v20230308/trocket_client.js +52 -0
  50. package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +245 -0
  51. package/tencentcloud/services/trocket/v20230308/trocket_models.js +18 -0
  52. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +1 -0
  53. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +31 -7
  54. package/tencentcloud/services/vpc/v20170312/vpc_client.js +45 -9
  55. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +204 -98
  56. package/test/cdb.v20170320.test.js +30 -0
  57. package/test/dlc.v20210125.test.js +10 -0
  58. package/test/trocket.v20230308.test.js +41 -0
  59. package/test/vpc.v20170312.test.js +66 -6
@@ -214,19 +214,9 @@ export interface CreateServiceTemplateRequest {
214
214
  ServicesExtra?: Array<ServicesInfo>;
215
215
  }
216
216
  /**
217
- * DescribeIp6TranslatorQuota返回参数结构体
217
+ * CreateVpcPeeringConnection请求参数结构体
218
218
  */
219
- export interface DescribeIp6TranslatorQuotaResponse {
220
- /**
221
- * 账户在指定地域的IPV6转换实例及规则配额信息
222
- QUOTAID属性是TOTAL_TRANSLATOR_QUOTA,表示账户在指定地域的IPV6转换实例配额信息;QUOTAID属性是IPV6转换实例唯一ID(形如ip6-xxxxxxxx),表示账户在该转换实例允许创建的转换规则配额
223
- */
224
- QuotaSet?: Array<Quota>;
225
- /**
226
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
227
- */
228
- RequestId?: string;
229
- }
219
+ export declare type CreateVpcPeeringConnectionRequest = null;
230
220
  /**
231
221
  * CreateCcn返回参数结构体
232
222
  */
@@ -279,6 +269,10 @@ export interface CreateAssistantCidrRequest {
279
269
  */
280
270
  CidrBlocks: Array<string>;
281
271
  }
272
+ /**
273
+ * RejectVpcPeeringConnection请求参数结构体
274
+ */
275
+ export declare type RejectVpcPeeringConnectionRequest = null;
282
276
  /**
283
277
  * DescribeNetworkInterfaces请求参数结构体
284
278
  */
@@ -700,6 +694,10 @@ export interface ResourceStatisticsItem {
700
694
  */
701
695
  ResourceCount: number;
702
696
  }
697
+ /**
698
+ * ModifyVpcPeeringConnection请求参数结构体
699
+ */
700
+ export declare type ModifyVpcPeeringConnectionRequest = null;
703
701
  /**
704
702
  * DetachClassicLinkVpc请求参数结构体
705
703
  */
@@ -1038,57 +1036,18 @@ export interface AddressTemplate {
1038
1036
  AddressExtraSet: Array<AddressInfo>;
1039
1037
  }
1040
1038
  /**
1041
- * IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
1039
+ * DescribeIp6TranslatorQuota返回参数结构体
1042
1040
  */
1043
- export interface IKEOptionsSpecification {
1044
- /**
1045
- * 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC
1046
- */
1047
- PropoEncryAlgorithm?: string;
1048
- /**
1049
- * 认证算法:可选值:'MD5', 'SHA1','SHA-256' 默认为MD5
1050
- */
1051
- PropoAuthenAlgorithm?: string;
1052
- /**
1053
- * 协商模式:可选值:'AGGRESSIVE', 'MAIN',默认为MAIN
1054
- */
1055
- ExchangeMode?: string;
1056
- /**
1057
- * 本端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
1058
- */
1059
- LocalIdentity?: string;
1060
- /**
1061
- * 对端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
1062
- */
1063
- RemoteIdentity?: string;
1064
- /**
1065
- * 本端标识,当LocalIdentity选为ADDRESS时,LocalAddress必填。localAddress默认为vpn网关公网IP
1066
- */
1067
- LocalAddress?: string;
1068
- /**
1069
- * 对端标识,当RemoteIdentity选为ADDRESS时,RemoteAddress必填
1070
- */
1071
- RemoteAddress?: string;
1072
- /**
1073
- * 本端标识,当LocalIdentity选为FQDN时,LocalFqdnName必填
1074
- */
1075
- LocalFqdnName?: string;
1076
- /**
1077
- * 对端标识,当remoteIdentity选为FQDN时,RemoteFqdnName必填
1078
- */
1079
- RemoteFqdnName?: string;
1080
- /**
1081
- * DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24',
1082
- */
1083
- DhGroupName?: string;
1041
+ export interface DescribeIp6TranslatorQuotaResponse {
1084
1042
  /**
1085
- * IKE SA Lifetime,单位:秒,设置IKE SA的生存周期,取值范围:60-604800
1043
+ * 账户在指定地域的IPV6转换实例及规则配额信息
1044
+ QUOTAID属性是TOTAL_TRANSLATOR_QUOTA,表示账户在指定地域的IPV6转换实例配额信息;QUOTAID属性是IPV6转换实例唯一ID(形如ip6-xxxxxxxx),表示账户在该转换实例允许创建的转换规则配额
1086
1045
  */
1087
- IKESaLifetimeSeconds?: number;
1046
+ QuotaSet?: Array<Quota>;
1088
1047
  /**
1089
- * IKE版本
1048
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1090
1049
  */
1091
- IKEVersion?: string;
1050
+ RequestId?: string;
1092
1051
  }
1093
1052
  /**
1094
1053
  * VPN网关配额对象
@@ -2238,6 +2197,59 @@ export interface DisassociateVpcEndPointSecurityGroupsRequest {
2238
2197
  */
2239
2198
  EndPointId: string;
2240
2199
  }
2200
+ /**
2201
+ * IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议
2202
+ */
2203
+ export interface IKEOptionsSpecification {
2204
+ /**
2205
+ * 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC
2206
+ */
2207
+ PropoEncryAlgorithm?: string;
2208
+ /**
2209
+ * 认证算法:可选值:'MD5', 'SHA1','SHA-256' 默认为MD5
2210
+ */
2211
+ PropoAuthenAlgorithm?: string;
2212
+ /**
2213
+ * 协商模式:可选值:'AGGRESSIVE', 'MAIN',默认为MAIN
2214
+ */
2215
+ ExchangeMode?: string;
2216
+ /**
2217
+ * 本端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
2218
+ */
2219
+ LocalIdentity?: string;
2220
+ /**
2221
+ * 对端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS
2222
+ */
2223
+ RemoteIdentity?: string;
2224
+ /**
2225
+ * 本端标识,当LocalIdentity选为ADDRESS时,LocalAddress必填。localAddress默认为vpn网关公网IP
2226
+ */
2227
+ LocalAddress?: string;
2228
+ /**
2229
+ * 对端标识,当RemoteIdentity选为ADDRESS时,RemoteAddress必填
2230
+ */
2231
+ RemoteAddress?: string;
2232
+ /**
2233
+ * 本端标识,当LocalIdentity选为FQDN时,LocalFqdnName必填
2234
+ */
2235
+ LocalFqdnName?: string;
2236
+ /**
2237
+ * 对端标识,当remoteIdentity选为FQDN时,RemoteFqdnName必填
2238
+ */
2239
+ RemoteFqdnName?: string;
2240
+ /**
2241
+ * DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24',
2242
+ */
2243
+ DhGroupName?: string;
2244
+ /**
2245
+ * IKE SA Lifetime,单位:秒,设置IKE SA的生存周期,取值范围:60-604800
2246
+ */
2247
+ IKESaLifetimeSeconds?: number;
2248
+ /**
2249
+ * IKE版本
2250
+ */
2251
+ IKEVersion?: string;
2252
+ }
2241
2253
  /**
2242
2254
  * DescribeTaskResult请求参数结构体
2243
2255
  */
@@ -3244,6 +3256,15 @@ export interface VpcEndPointServiceUser {
3244
3256
  */
3245
3257
  EndPointServiceId: string;
3246
3258
  }
3259
+ /**
3260
+ * RejectVpcPeeringConnection返回参数结构体
3261
+ */
3262
+ export interface RejectVpcPeeringConnectionResponse {
3263
+ /**
3264
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3265
+ */
3266
+ RequestId?: string;
3267
+ }
3247
3268
  /**
3248
3269
  * DescribeIp6TranslatorQuota请求参数结构体
3249
3270
  */
@@ -9067,13 +9088,33 @@ export interface AlgType {
9067
9088
  Sip: boolean;
9068
9089
  }
9069
9090
  /**
9070
- * MigratePrivateIpAddress返回参数结构体
9091
+ * NAT网关的端口转发规则
9071
9092
  */
9072
- export interface MigratePrivateIpAddressResponse {
9093
+ export interface DestinationIpPortTranslationNatRule {
9073
9094
  /**
9074
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9095
+ * 网络协议,可选值:`TCP`、`UDP`。
9075
9096
  */
9076
- RequestId?: string;
9097
+ IpProtocol: string;
9098
+ /**
9099
+ * 弹性IP。
9100
+ */
9101
+ PublicIpAddress: string;
9102
+ /**
9103
+ * 公网端口。
9104
+ */
9105
+ PublicPort: number;
9106
+ /**
9107
+ * 内网地址。
9108
+ */
9109
+ PrivateIpAddress: string;
9110
+ /**
9111
+ * 内网端口。
9112
+ */
9113
+ PrivatePort: number;
9114
+ /**
9115
+ * NAT网关转发规则描述。
9116
+ */
9117
+ Description: string;
9077
9118
  }
9078
9119
  /**
9079
9120
  * DescribeUsedIpAddress请求参数结构体
@@ -9363,21 +9404,13 @@ export interface DescribeRouteTablesRequest {
9363
9404
  Limit?: string;
9364
9405
  }
9365
9406
  /**
9366
- * ResetAttachCcnInstances请求参数结构体
9407
+ * DescribeVpcPeeringConnections返回参数结构体
9367
9408
  */
9368
- export interface ResetAttachCcnInstancesRequest {
9409
+ export interface DescribeVpcPeeringConnectionsResponse {
9369
9410
  /**
9370
- * CCN实例ID。形如:ccn-f49l6u0z
9371
- */
9372
- CcnId: string;
9373
- /**
9374
- * CCN所属UIN(根账号)。
9375
- */
9376
- CcnUin: string;
9377
- /**
9378
- * 重新申请关联网络实例列表。
9411
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
9379
9412
  */
9380
- Instances: Array<CcnInstance>;
9413
+ RequestId?: string;
9381
9414
  }
9382
9415
  /**
9383
9416
  * CreateHaVip返回参数结构体
@@ -10215,6 +10248,38 @@ export interface UnassignPrivateIpAddressesResponse {
10215
10248
  */
10216
10249
  RequestId?: string;
10217
10250
  }
10251
+ /**
10252
+ * DescribeVpcPeeringConnections请求参数结构体
10253
+ */
10254
+ export interface DescribeVpcPeeringConnectionsRequest {
10255
+ /**
10256
+ * 对等连接唯一ID数组。
10257
+ */
10258
+ PeeringConnectionIds?: Array<string>;
10259
+ /**
10260
+ * 过滤条件,参数不支持同时指定PeeringConnectionIds和Filters。
10261
+ <li>vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。</li>
10262
+ <li>state String - (过滤条件)对等连接状态,可选值有:PENDING,投放中;ACTIVE,使用中;EXPIRED,已过期;REJECTED,拒绝。</li>
10263
+ <li>peering-connection-name - String - (过滤条件)对等连接名称。</li>
10264
+ */
10265
+ Filters?: Array<Filter>;
10266
+ /**
10267
+ * 偏移量。
10268
+ */
10269
+ Offset?: number;
10270
+ /**
10271
+ * 请求对象个数。
10272
+ */
10273
+ Limit?: number;
10274
+ /**
10275
+ * 排序字段,可选值有:CreatedTime,PeeringConnectionName。
10276
+ */
10277
+ OrderField?: string;
10278
+ /**
10279
+ * 排序方式:DESC,降序;ASC,升序。
10280
+ */
10281
+ OrderDirection?: string;
10282
+ }
10218
10283
  /**
10219
10284
  * 描述 EIP 信息
10220
10285
  */
@@ -10591,6 +10656,10 @@ export interface CreateSecurityGroupPoliciesRequest {
10591
10656
  */
10592
10657
  SecurityGroupPolicySet: SecurityGroupPolicySet;
10593
10658
  }
10659
+ /**
10660
+ * DeleteVpcPeeringConnection请求参数结构体
10661
+ */
10662
+ export declare type DeleteVpcPeeringConnectionRequest = null;
10594
10663
  /**
10595
10664
  * ModifyVpnGatewayRoutes返回参数结构体
10596
10665
  */
@@ -10837,6 +10906,15 @@ export interface ModifyAddressTemplateGroupAttributeRequest {
10837
10906
  */
10838
10907
  AddressTemplateIds?: Array<string>;
10839
10908
  }
10909
+ /**
10910
+ * ModifyVpcPeeringConnection返回参数结构体
10911
+ */
10912
+ export interface ModifyVpcPeeringConnectionResponse {
10913
+ /**
10914
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10915
+ */
10916
+ RequestId?: string;
10917
+ }
10840
10918
  /**
10841
10919
  * ModifyServiceTemplateGroupAttribute请求参数结构体
10842
10920
  */
@@ -11088,33 +11166,13 @@ export interface RemoveBandwidthPackageResourcesResponse {
11088
11166
  RequestId?: string;
11089
11167
  }
11090
11168
  /**
11091
- * NAT网关的端口转发规则
11169
+ * DeleteVpcPeeringConnection返回参数结构体
11092
11170
  */
11093
- export interface DestinationIpPortTranslationNatRule {
11094
- /**
11095
- * 网络协议,可选值:`TCP`、`UDP`。
11096
- */
11097
- IpProtocol: string;
11098
- /**
11099
- * 弹性IP。
11100
- */
11101
- PublicIpAddress: string;
11102
- /**
11103
- * 公网端口。
11104
- */
11105
- PublicPort: number;
11106
- /**
11107
- * 内网地址。
11108
- */
11109
- PrivateIpAddress: string;
11171
+ export interface DeleteVpcPeeringConnectionResponse {
11110
11172
  /**
11111
- * 内网端口。
11112
- */
11113
- PrivatePort: number;
11114
- /**
11115
- * NAT网关转发规则描述。
11173
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11116
11174
  */
11117
- Description: string;
11175
+ RequestId?: string;
11118
11176
  }
11119
11177
  /**
11120
11178
  * DeleteSnapshotPolicies请求参数结构体
@@ -11297,6 +11355,15 @@ export interface DescribeAddressTemplateGroupsRequest {
11297
11355
  */
11298
11356
  Limit?: string;
11299
11357
  }
11358
+ /**
11359
+ * MigratePrivateIpAddress返回参数结构体
11360
+ */
11361
+ export interface MigratePrivateIpAddressResponse {
11362
+ /**
11363
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11364
+ */
11365
+ RequestId?: string;
11366
+ }
11300
11367
  /**
11301
11368
  * CheckNetDetectState返回参数结构体
11302
11369
  */
@@ -11818,6 +11885,15 @@ export interface DescribeServiceTemplatesResponse {
11818
11885
  */
11819
11886
  RequestId?: string;
11820
11887
  }
11888
+ /**
11889
+ * AcceptVpcPeeringConnection返回参数结构体
11890
+ */
11891
+ export interface AcceptVpcPeeringConnectionResponse {
11892
+ /**
11893
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11894
+ */
11895
+ RequestId?: string;
11896
+ }
11821
11897
  /**
11822
11898
  * DescribeSgSnapshotFileContent请求参数结构体
11823
11899
  */
@@ -12010,6 +12086,15 @@ export interface CcnBandwidthInfo {
12010
12086
  */
12011
12087
  TagSet?: Array<Tag>;
12012
12088
  }
12089
+ /**
12090
+ * CreateVpcPeeringConnection返回参数结构体
12091
+ */
12092
+ export interface CreateVpcPeeringConnectionResponse {
12093
+ /**
12094
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12095
+ */
12096
+ RequestId?: string;
12097
+ }
12013
12098
  /**
12014
12099
  * DescribeCrossBorderCcnRegionBandwidthLimits返回参数结构体
12015
12100
  */
@@ -12660,6 +12745,23 @@ export interface CcnRegionBandwidthLimit {
12660
12745
  */
12661
12746
  DstIsBm?: boolean;
12662
12747
  }
12748
+ /**
12749
+ * ResetAttachCcnInstances请求参数结构体
12750
+ */
12751
+ export interface ResetAttachCcnInstancesRequest {
12752
+ /**
12753
+ * CCN实例ID。形如:ccn-f49l6u0z。
12754
+ */
12755
+ CcnId: string;
12756
+ /**
12757
+ * CCN所属UIN(根账号)。
12758
+ */
12759
+ CcnUin: string;
12760
+ /**
12761
+ * 重新申请关联网络实例列表。
12762
+ */
12763
+ Instances: Array<CcnInstance>;
12764
+ }
12663
12765
  /**
12664
12766
  * UnlockCcnBandwidths返回参数结构体
12665
12767
  */
@@ -13385,6 +13487,10 @@ export interface WithdrawNotifyRoutesResponse {
13385
13487
  */
13386
13488
  RequestId?: string;
13387
13489
  }
13490
+ /**
13491
+ * AcceptVpcPeeringConnection请求参数结构体
13492
+ */
13493
+ export declare type AcceptVpcPeeringConnectionRequest = null;
13388
13494
  /**
13389
13495
  * DescribeNetworkInterfaces返回参数结构体
13390
13496
  */
@@ -138,6 +138,16 @@ it("cdb.v20170320.StopReplication", async function () {
138
138
  }
139
139
  })
140
140
 
141
+ it("cdb.v20170320.StopCpuExpand", async function () {
142
+ try {
143
+ const data = await client.StopCpuExpand({})
144
+ expect(data).to.be.ok
145
+ } catch(error) {
146
+ expect(error.requestId).to.be.ok
147
+ expect(error.code).to.be.ok
148
+ }
149
+ })
150
+
141
151
  it("cdb.v20170320.ModifyDBInstanceName", async function () {
142
152
  try {
143
153
  const data = await client.ModifyDBInstanceName({})
@@ -1098,6 +1108,16 @@ it("cdb.v20170320.DescribeAccounts", async function () {
1098
1108
  }
1099
1109
  })
1100
1110
 
1111
+ it("cdb.v20170320.DescribeCpuExpandStrategy", async function () {
1112
+ try {
1113
+ const data = await client.DescribeCpuExpandStrategy({})
1114
+ expect(data).to.be.ok
1115
+ } catch(error) {
1116
+ expect(error.requestId).to.be.ok
1117
+ expect(error.code).to.be.ok
1118
+ }
1119
+ })
1120
+
1101
1121
  it("cdb.v20170320.ReloadBalanceProxyNode", async function () {
1102
1122
  try {
1103
1123
  const data = await client.ReloadBalanceProxyNode({})
@@ -1358,6 +1378,16 @@ it("cdb.v20170320.DeleteAuditRule", async function () {
1358
1378
  }
1359
1379
  })
1360
1380
 
1381
+ it("cdb.v20170320.StartCpuExpand", async function () {
1382
+ try {
1383
+ const data = await client.StartCpuExpand({})
1384
+ expect(data).to.be.ok
1385
+ } catch(error) {
1386
+ expect(error.requestId).to.be.ok
1387
+ expect(error.code).to.be.ok
1388
+ }
1389
+ })
1390
+
1361
1391
  it("cdb.v20170320.DescribeSupportedPrivileges", async function () {
1362
1392
  try {
1363
1393
  const data = await client.DescribeSupportedPrivileges({})
@@ -58,6 +58,16 @@ it("dlc.v20210125.DescribeForbiddenTablePro", async function () {
58
58
  }
59
59
  })
60
60
 
61
+ it("dlc.v20210125.DescribeUserRoles", async function () {
62
+ try {
63
+ const data = await client.DescribeUserRoles({})
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("dlc.v20210125.DescribeNotebookSession", async function () {
62
72
  try {
63
73
  const data = await client.DescribeNotebookSession({})
@@ -0,0 +1,41 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.trocket.v20230308.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("trocket.v20230308.test.js", function () {
20
+
21
+ it("trocket.v20230308.DescribeTopicList", async function () {
22
+ try {
23
+ const data = await client.DescribeTopicList({})
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("trocket.v20230308.DescribeInstanceList", async function () {
32
+ try {
33
+ const data = await client.DescribeInstanceList({})
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
+ })
@@ -298,9 +298,9 @@ it("vpc.v20170312.DescribeNetDetects", async function () {
298
298
  }
299
299
  })
300
300
 
301
- it("vpc.v20170312.ModifyNetworkAclQuintupleEntries", async function () {
301
+ it("vpc.v20170312.AcceptVpcPeeringConnection", async function () {
302
302
  try {
303
- const data = await client.ModifyNetworkAclQuintupleEntries({})
303
+ const data = await client.AcceptVpcPeeringConnection({})
304
304
  expect(data).to.be.ok
305
305
  } catch(error) {
306
306
  expect(error.requestId).to.be.ok
@@ -468,6 +468,16 @@ it("vpc.v20170312.DetachCcnInstances", async function () {
468
468
  }
469
469
  })
470
470
 
471
+ it("vpc.v20170312.RefreshDirectConnectGatewayRouteToNatGateway", async function () {
472
+ try {
473
+ const data = await client.RefreshDirectConnectGatewayRouteToNatGateway({})
474
+ expect(data).to.be.ok
475
+ } catch(error) {
476
+ expect(error.requestId).to.be.ok
477
+ expect(error.code).to.be.ok
478
+ }
479
+ })
480
+
471
481
  it("vpc.v20170312.AssociateNatGatewayAddress", async function () {
472
482
  try {
473
483
  const data = await client.AssociateNatGatewayAddress({})
@@ -658,9 +668,9 @@ it("vpc.v20170312.CreateSubnets", async function () {
658
668
  }
659
669
  })
660
670
 
661
- it("vpc.v20170312.SetCcnRegionBandwidthLimits", async function () {
671
+ it("vpc.v20170312.CreateVpcPeeringConnection", async function () {
662
672
  try {
663
- const data = await client.SetCcnRegionBandwidthLimits({})
673
+ const data = await client.CreateVpcPeeringConnection({})
664
674
  expect(data).to.be.ok
665
675
  } catch(error) {
666
676
  expect(error.requestId).to.be.ok
@@ -1168,9 +1178,9 @@ it("vpc.v20170312.DescribeLocalGateway", async function () {
1168
1178
  }
1169
1179
  })
1170
1180
 
1171
- it("vpc.v20170312.RefreshDirectConnectGatewayRouteToNatGateway", async function () {
1181
+ it("vpc.v20170312.DeleteVpcPeeringConnection", async function () {
1172
1182
  try {
1173
- const data = await client.RefreshDirectConnectGatewayRouteToNatGateway({})
1183
+ const data = await client.DeleteVpcPeeringConnection({})
1174
1184
  expect(data).to.be.ok
1175
1185
  } catch(error) {
1176
1186
  expect(error.requestId).to.be.ok
@@ -1348,6 +1358,16 @@ it("vpc.v20170312.RejectAttachCcnInstances", async function () {
1348
1358
  }
1349
1359
  })
1350
1360
 
1361
+ it("vpc.v20170312.ModifyNetworkAclQuintupleEntries", async function () {
1362
+ try {
1363
+ const data = await client.ModifyNetworkAclQuintupleEntries({})
1364
+ expect(data).to.be.ok
1365
+ } catch(error) {
1366
+ expect(error.requestId).to.be.ok
1367
+ expect(error.code).to.be.ok
1368
+ }
1369
+ })
1370
+
1351
1371
  it("vpc.v20170312.ModifyServiceTemplateGroupAttribute", async function () {
1352
1372
  try {
1353
1373
  const data = await client.ModifyServiceTemplateGroupAttribute({})
@@ -1388,6 +1408,16 @@ it("vpc.v20170312.ModifyDhcpIpAttribute", async function () {
1388
1408
  }
1389
1409
  })
1390
1410
 
1411
+ it("vpc.v20170312.ModifyVpcPeeringConnection", async function () {
1412
+ try {
1413
+ const data = await client.ModifyVpcPeeringConnection({})
1414
+ expect(data).to.be.ok
1415
+ } catch(error) {
1416
+ expect(error.requestId).to.be.ok
1417
+ expect(error.code).to.be.ok
1418
+ }
1419
+ })
1420
+
1391
1421
  it("vpc.v20170312.ModifyCcnRegionBandwidthLimitsType", async function () {
1392
1422
  try {
1393
1423
  const data = await client.ModifyCcnRegionBandwidthLimitsType({})
@@ -1928,6 +1958,16 @@ it("vpc.v20170312.DescribeVpcEndPointServiceWhiteList", async function () {
1928
1958
  }
1929
1959
  })
1930
1960
 
1961
+ it("vpc.v20170312.RejectVpcPeeringConnection", async function () {
1962
+ try {
1963
+ const data = await client.RejectVpcPeeringConnection({})
1964
+ expect(data).to.be.ok
1965
+ } catch(error) {
1966
+ expect(error.requestId).to.be.ok
1967
+ expect(error.code).to.be.ok
1968
+ }
1969
+ })
1970
+
1931
1971
  it("vpc.v20170312.ResetVpnConnection", async function () {
1932
1972
  try {
1933
1973
  const data = await client.ResetVpnConnection({})
@@ -2378,6 +2418,16 @@ it("vpc.v20170312.DescribeProductQuota", async function () {
2378
2418
  }
2379
2419
  })
2380
2420
 
2421
+ it("vpc.v20170312.DescribeVpcPeeringConnections", async function () {
2422
+ try {
2423
+ const data = await client.DescribeVpcPeeringConnections({})
2424
+ expect(data).to.be.ok
2425
+ } catch(error) {
2426
+ expect(error.requestId).to.be.ok
2427
+ expect(error.code).to.be.ok
2428
+ }
2429
+ })
2430
+
2381
2431
  it("vpc.v20170312.InquiryPriceCreateVpnGateway", async function () {
2382
2432
  try {
2383
2433
  const data = await client.InquiryPriceCreateVpnGateway({})
@@ -3038,6 +3088,16 @@ it("vpc.v20170312.ModifyNetworkAclAttribute", async function () {
3038
3088
  }
3039
3089
  })
3040
3090
 
3091
+ it("vpc.v20170312.SetCcnRegionBandwidthLimits", async function () {
3092
+ try {
3093
+ const data = await client.SetCcnRegionBandwidthLimits({})
3094
+ expect(data).to.be.ok
3095
+ } catch(error) {
3096
+ expect(error.requestId).to.be.ok
3097
+ expect(error.code).to.be.ok
3098
+ }
3099
+ })
3100
+
3041
3101
  it("vpc.v20170312.ResetNatGatewayConnection", async function () {
3042
3102
  try {
3043
3103
  const data = await client.ResetNatGatewayConnection({})