tencentcloud-sdk-nodejs 4.0.246 → 4.0.250
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.
- package/CHANGELOG.md +805 -13
- package/package.json +1 -1
- package/products.md +42 -39
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ame/v20190916/ame_models.ts +5 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +6 -0
- package/src/services/apigateway/v20180808/apigateway_client.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_models.ts +20 -0
- package/src/services/apm/index.ts +5 -0
- package/src/services/apm/v20210622/apm_client.ts +70 -0
- package/src/services/apm/v20210622/apm_models.ts +306 -0
- package/src/services/apm/v20210622/index.ts +6 -0
- package/src/services/asr/v20190614/asr_client.ts +2 -2
- package/src/services/asr/v20190614/asr_models.ts +4 -2
- package/src/services/captcha/v20190722/captcha_models.ts +2 -1
- package/src/services/ccc/v20200210/ccc_client.ts +31 -15
- package/src/services/ccc/v20200210/ccc_models.ts +334 -179
- package/src/services/cdb/v20170320/cdb_models.ts +11 -1
- package/src/services/cdn/v20180606/cdn_client.ts +1 -0
- package/src/services/cdn/v20180606/cdn_models.ts +45 -4
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/cii/v20210408/cii_models.ts +1 -1
- package/src/services/ckafka/v20190819/ckafka_models.ts +6 -0
- package/src/services/clb/v20180317/clb_client.ts +13 -1
- package/src/services/clb/v20180317/clb_models.ts +67 -18
- package/src/services/cme/v20191029/cme_client.ts +3 -3
- package/src/services/cme/v20191029/cme_models.ts +30 -25
- package/src/services/cpdp/v20190820/cpdp_client.ts +34 -9
- package/src/services/cpdp/v20190820/cpdp_models.ts +266 -159
- package/src/services/cr/v20180321/cr_models.ts +1 -1
- package/src/services/cwp/v20180228/cwp_models.ts +9 -8
- package/src/services/domain/v20180808/domain_models.ts +26 -1
- package/src/services/ecdn/v20191012/ecdn_client.ts +3 -0
- package/src/services/ecm/v20190719/ecm_models.ts +2 -2
- package/src/services/gaap/v20180529/gaap_models.ts +5 -0
- package/src/services/index.ts +3 -0
- package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +26 -13
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +71 -21
- package/src/services/iotvideo/v20201215/iotvideo_models.ts +11 -0
- package/src/services/iotvideoindustry/v20201201/iotvideoindustry_models.ts +31 -0
- package/src/services/ivld/index.ts +5 -0
- package/src/services/ivld/v20210903/index.ts +6 -0
- package/src/services/ivld/v20210903/ivld_client.ts +170 -0
- package/src/services/ivld/v20210903/ivld_models.ts +973 -0
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +0 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -35
- package/src/services/monitor/v20180724/monitor_models.ts +3 -3
- package/src/services/mrs/v20200910/mrs_client.ts +2 -0
- package/src/services/mrs/v20200910/mrs_models.ts +81 -5
- package/src/services/postgres/v20170312/postgres_models.ts +20 -8
- package/src/services/privatedns/v20201028/privatedns_client.ts +40 -3
- package/src/services/privatedns/v20201028/privatedns_models.ts +142 -32
- package/src/services/scf/v20180416/scf_client.ts +25 -12
- package/src/services/scf/v20180416/scf_models.ts +103 -1
- package/src/services/tat/v20201028/tat_models.ts +87 -11
- package/src/services/tdmq/v20200217/tdmq_client.ts +15 -2
- package/src/services/tdmq/v20200217/tdmq_models.ts +556 -146
- package/src/services/thpc/index.ts +5 -0
- package/src/services/thpc/v20211109/index.ts +6 -0
- package/src/services/thpc/v20211109/thpc_client.ts +64 -0
- package/src/services/thpc/v20211109/thpc_models.ts +332 -0
- package/src/services/tiw/v20190919/tiw_models.ts +2 -2
- package/src/services/tke/v20180525/tke_client.ts +25 -0
- package/src/services/tke/v20180525/tke_models.ts +112 -0
- package/src/services/tsf/v20180326/tsf_client.ts +13 -0
- package/src/services/tsf/v20180326/tsf_models.ts +85 -0
- package/src/services/vpc/v20170312/vpc_models.ts +2 -2
- package/src/services/waf/v20180125/waf_client.ts +1 -1
- package/src/services/waf/v20180125/waf_models.ts +26 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ame/v20190916/ame_models.d.ts +4 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +5 -0
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +16 -0
- package/tencentcloud/services/apm/index.d.ts +6 -0
- package/tencentcloud/services/apm/index.js +7 -0
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +22 -0
- package/tencentcloud/services/apm/v20210622/apm_client.js +49 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +246 -0
- package/tencentcloud/services/apm/v20210622/apm_models.js +18 -0
- package/tencentcloud/services/apm/v20210622/index.d.ts +6 -0
- package/tencentcloud/services/apm/v20210622/index.js +9 -0
- package/tencentcloud/services/asr/v20190614/asr_client.d.ts +2 -2
- package/tencentcloud/services/asr/v20190614/asr_client.js +2 -2
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +4 -2
- package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +1 -0
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +9 -5
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +12 -6
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +283 -153
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +9 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +39 -4
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/cii/v20210408/cii_models.d.ts +1 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -0
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +5 -1
- package/tencentcloud/services/clb/v20180317/clb_client.js +6 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +56 -15
- package/tencentcloud/services/cme/v20191029/cme_client.d.ts +3 -3
- package/tencentcloud/services/cme/v20191029/cme_client.js +3 -3
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +29 -25
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +11 -3
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +15 -3
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +227 -136
- package/tencentcloud/services/cr/v20180321/cr_models.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +9 -8
- package/tencentcloud/services/domain/v20180808/domain_models.d.ts +21 -1
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.d.ts +3 -0
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.js +3 -0
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +2 -2
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +4 -0
- package/tencentcloud/services/index.d.ts +3 -0
- package/tencentcloud/services/index.js +6 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +9 -5
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +12 -6
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +61 -18
- package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +9 -0
- package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_models.d.ts +26 -0
- package/tencentcloud/services/ivld/index.d.ts +6 -0
- package/tencentcloud/services/ivld/index.js +7 -0
- package/tencentcloud/services/ivld/v20210903/index.d.ts +6 -0
- package/tencentcloud/services/ivld/v20210903/index.js +9 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +66 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.js +103 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +831 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.js +18 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -29
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +3 -3
- package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +70 -5
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +18 -8
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.d.ts +13 -1
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.js +18 -0
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +124 -29
- package/tencentcloud/services/scf/v20180416/scf_client.d.ts +9 -5
- package/tencentcloud/services/scf/v20180416/scf_client.js +12 -6
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +86 -1
- package/tencentcloud/services/tat/v20201028/tat_models.d.ts +75 -11
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +5 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +6 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +434 -94
- package/tencentcloud/services/thpc/index.d.ts +6 -0
- package/tencentcloud/services/thpc/index.js +7 -0
- package/tencentcloud/services/thpc/v20211109/index.d.ts +6 -0
- package/tencentcloud/services/thpc/v20211109/index.js +9 -0
- package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +18 -0
- package/tencentcloud/services/thpc/v20211109/thpc_client.js +43 -0
- package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +272 -0
- package/tencentcloud/services/thpc/v20211109/thpc_models.js +18 -0
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +2 -2
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +9 -1
- package/tencentcloud/services/tke/v20180525/tke_client.js +12 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +95 -0
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -0
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +73 -0
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +22 -1
- package/test/apm.v20210622.test.js +51 -0
- package/test/ccc.v20200210.test.js +14 -4
- package/test/clb.v20180317.test.js +10 -0
- package/test/cpdp.v20190820.test.js +22 -2
- package/test/iotexplorer.v20190423.test.js +14 -4
- package/test/ivld.v20210903.test.js +101 -0
- package/test/privatedns.v20201028.test.js +30 -0
- package/test/scf.v20180416.test.js +14 -4
- package/test/tdmq.v20200217.test.js +10 -0
- package/test/thpc.v20211109.test.js +41 -0
- package/test/tke.v20180525.test.js +20 -0
- 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
|
*/
|
|
@@ -5033,7 +5033,7 @@ export interface DescribeAddressesRequest {
|
|
|
5033
5033
|
*/
|
|
5034
5034
|
AddressIds?: Array<string>;
|
|
5035
5035
|
/**
|
|
5036
|
-
* 每次请求的`Filters`的上限为10,`Filter.Values`的上限为
|
|
5036
|
+
* 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。详细的过滤条件如下:
|
|
5037
5037
|
<li> address-id - String - 是否必填:否 - (过滤条件)按照 EIP 的唯一 ID 过滤。EIP 唯一 ID 形如:eip-11112222。</li>
|
|
5038
5038
|
<li> address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。</li>
|
|
5039
5039
|
<li> address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。</li>
|
|
@@ -5042,7 +5042,7 @@ export interface DescribeAddressesRequest {
|
|
|
5042
5042
|
<li> private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。</li>
|
|
5043
5043
|
<li> network-interface-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的弹性网卡 ID 过滤。弹性网卡 ID 形如:eni-11112222。</li>
|
|
5044
5044
|
<li> is-arrears - String - 是否必填:否 - (过滤条件)按照 EIP 是否欠费进行过滤。(TRUE:EIP 处于欠费状态|FALSE:EIP 费用状态正常)</li>
|
|
5045
|
-
<li> address-type - String - 是否必填:否 - (过滤条件)按照 IP类型 进行过滤。可选值:'EIP','AnycastEIP','HighQualityEIP'
|
|
5045
|
+
<li> address-type - String - 是否必填:否 - (过滤条件)按照 IP类型 进行过滤。可选值:'WanIP', 'EIP','AnycastEIP','HighQualityEIP'。默认值是'EIP'。</li>
|
|
5046
5046
|
<li> address-isp - String - 是否必填:否 - (过滤条件)按照 运营商类型 进行过滤。可选值:'BGP','CMCC','CUCC', 'CTCC'</li>
|
|
5047
5047
|
<li> dedicated-cluster-id - String - 是否必填:否 - (过滤条件)按照 CDC 的唯一 ID 过滤。CDC 唯一 ID 形如:cluster-11112222。</li>
|
|
5048
5048
|
<li> tag-key - String - 是否必填:否 - (过滤条件)按照标签键进行过滤。</li>
|
|
@@ -58,7 +58,7 @@ export declare class Client extends AbstractClient {
|
|
|
58
58
|
/**
|
|
59
59
|
* 本接口用于访问日志的快速分析
|
|
60
60
|
*/
|
|
61
|
-
DescribeAccessFastAnalysis(req
|
|
61
|
+
DescribeAccessFastAnalysis(req: DescribeAccessFastAnalysisRequest, cb?: (error: string, rep: DescribeAccessFastAnalysisResponse) => void): Promise<DescribeAccessFastAnalysisResponse>;
|
|
62
62
|
/**
|
|
63
63
|
* 本接口用于获取访问日志索引配置信息
|
|
64
64
|
*/
|
|
@@ -377,7 +377,28 @@ export interface AccessRuleInfo {
|
|
|
377
377
|
/**
|
|
378
378
|
* DescribeAccessFastAnalysis请求参数结构体
|
|
379
379
|
*/
|
|
380
|
-
export
|
|
380
|
+
export interface DescribeAccessFastAnalysisRequest {
|
|
381
|
+
/**
|
|
382
|
+
* 客户要查询的日志主题ID,每个客户都有对应的一个主题
|
|
383
|
+
*/
|
|
384
|
+
TopicId: string;
|
|
385
|
+
/**
|
|
386
|
+
* 要查询的日志的起始时间,Unix时间戳,单位ms
|
|
387
|
+
*/
|
|
388
|
+
From: number;
|
|
389
|
+
/**
|
|
390
|
+
* 要查询的日志的结束时间,Unix时间戳,单位ms
|
|
391
|
+
*/
|
|
392
|
+
To: number;
|
|
393
|
+
/**
|
|
394
|
+
* 查询语句,语句长度最大为4096,由于本接口是分析接口,如果无过滤条件,必须传 * 表示匹配所有,参考CLS的分析统计语句的文档
|
|
395
|
+
*/
|
|
396
|
+
Query: string;
|
|
397
|
+
/**
|
|
398
|
+
* 需要分析统计的字段名
|
|
399
|
+
*/
|
|
400
|
+
FieldName: string;
|
|
401
|
+
}
|
|
381
402
|
/**
|
|
382
403
|
* 用于DescribeAccessIndex接口的出参
|
|
383
404
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CreateApmInstance", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.CreateApmInstance({})
|
|
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("apm.v20210622.DescribeApmInstances", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeApmInstances({})
|
|
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
|
+
it("apm.v20210622.DescribeApmAgent", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeApmAgent({})
|
|
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
|
+
|
|
51
|
+
})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.ccc.v20200210.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("ccc.v20200210.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("ccc.v20200210.DescribeStaffStatusMetrics", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeStaffStatusMetrics({})
|
|
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("ccc.v20200210.DescribeChatMessages", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.DescribeChatMessages({})
|
|
@@ -78,9 +88,9 @@ it("ccc.v20200210.DescribeSkillGroupInfoList", async function () {
|
|
|
78
88
|
}
|
|
79
89
|
})
|
|
80
90
|
|
|
81
|
-
it("ccc.v20200210.
|
|
91
|
+
it("ccc.v20200210.DescribeCCCBuyInfoList", async function () {
|
|
82
92
|
try {
|
|
83
|
-
const data = await client.
|
|
93
|
+
const data = await client.DescribeCCCBuyInfoList({})
|
|
84
94
|
expect(data).to.be.ok
|
|
85
95
|
} catch(error) {
|
|
86
96
|
expect(error.requestId).to.be.ok
|
|
@@ -148,9 +158,9 @@ it("ccc.v20200210.DescribePSTNActiveSessionList", async function () {
|
|
|
148
158
|
}
|
|
149
159
|
})
|
|
150
160
|
|
|
151
|
-
it("ccc.v20200210.
|
|
161
|
+
it("ccc.v20200210.DescribeStaffInfoList", async function () {
|
|
152
162
|
try {
|
|
153
|
-
const data = await client.
|
|
163
|
+
const data = await client.DescribeStaffInfoList({})
|
|
154
164
|
expect(data).to.be.ok
|
|
155
165
|
} catch(error) {
|
|
156
166
|
expect(error.requestId).to.be.ok
|
|
@@ -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({})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.cpdp.v20190820.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("cpdp.v20190820.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("cpdp.v20190820.QueryAssignment", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.QueryAssignment({})
|
|
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("cpdp.v20190820.DistributeAccreditQuery", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.DistributeAccreditQuery({})
|
|
@@ -58,9 +68,9 @@ it("cpdp.v20190820.CreateBatchPayment", async function () {
|
|
|
58
68
|
}
|
|
59
69
|
})
|
|
60
70
|
|
|
61
|
-
it("cpdp.v20190820.
|
|
71
|
+
it("cpdp.v20190820.DeduceQuota", async function () {
|
|
62
72
|
try {
|
|
63
|
-
const data = await client.
|
|
73
|
+
const data = await client.DeduceQuota({})
|
|
64
74
|
expect(data).to.be.ok
|
|
65
75
|
} catch(error) {
|
|
66
76
|
expect(error.requestId).to.be.ok
|
|
@@ -298,6 +308,16 @@ it("cpdp.v20190820.QuerySinglePaymentResult", async function () {
|
|
|
298
308
|
}
|
|
299
309
|
})
|
|
300
310
|
|
|
311
|
+
it("cpdp.v20190820.ViewMerchant", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.ViewMerchant({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
301
321
|
it("cpdp.v20190820.UploadTaxPayment", async function () {
|
|
302
322
|
try {
|
|
303
323
|
const data = await client.UploadTaxPayment({})
|
|
@@ -58,6 +58,16 @@ it("iotexplorer.v20190423.DeleteStudioProduct", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
+
it("iotexplorer.v20190423.ReleaseStudioProduct", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.ReleaseStudioProduct({})
|
|
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("iotexplorer.v20190423.SearchPositionSpace", async function () {
|
|
62
72
|
try {
|
|
63
73
|
const data = await client.SearchPositionSpace({})
|
|
@@ -518,9 +528,9 @@ it("iotexplorer.v20190423.DescribeFenceEventList", async function () {
|
|
|
518
528
|
}
|
|
519
529
|
})
|
|
520
530
|
|
|
521
|
-
it("iotexplorer.v20190423.
|
|
531
|
+
it("iotexplorer.v20190423.GetPositionSpaceList", async function () {
|
|
522
532
|
try {
|
|
523
|
-
const data = await client.
|
|
533
|
+
const data = await client.GetPositionSpaceList({})
|
|
524
534
|
expect(data).to.be.ok
|
|
525
535
|
} catch(error) {
|
|
526
536
|
expect(error.requestId).to.be.ok
|
|
@@ -538,9 +548,9 @@ it("iotexplorer.v20190423.DescribeFirmwareTask", async function () {
|
|
|
538
548
|
}
|
|
539
549
|
})
|
|
540
550
|
|
|
541
|
-
it("iotexplorer.v20190423.
|
|
551
|
+
it("iotexplorer.v20190423.GenSingleDeviceSignatureOfPublic", async function () {
|
|
542
552
|
try {
|
|
543
|
-
const data = await client.
|
|
553
|
+
const data = await client.GenSingleDeviceSignatureOfPublic({})
|
|
544
554
|
expect(data).to.be.ok
|
|
545
555
|
} catch(error) {
|
|
546
556
|
expect(error.requestId).to.be.ok
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.ivld.v20210903.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("ivld.v20210903.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("ivld.v20210903.CreateTask", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.CreateTask({})
|
|
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("ivld.v20210903.ImportMedia", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ImportMedia({})
|
|
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
|
+
it("ivld.v20210903.DescribeMedias", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeMedias({})
|
|
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
|
+
|
|
51
|
+
it("ivld.v20210903.DescribeMedia", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeMedia({})
|
|
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
|
+
|
|
61
|
+
it("ivld.v20210903.DescribeTaskDetail", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.DescribeTaskDetail({})
|
|
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
|
+
|
|
71
|
+
it("ivld.v20210903.DescribeTask", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeTask({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("ivld.v20210903.DescribeTasks", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeTasks({})
|
|
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
|
+
|
|
91
|
+
it("ivld.v20210903.DeleteMedia", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DeleteMedia({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
})
|
|
@@ -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({})
|
|
@@ -178,9 +178,9 @@ it("scf.v20180416.PublishLayerVersion", async function () {
|
|
|
178
178
|
}
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
-
it("scf.v20180416.
|
|
181
|
+
it("scf.v20180416.DeleteProvisionedConcurrencyConfig", async function () {
|
|
182
182
|
try {
|
|
183
|
-
const data = await client.
|
|
183
|
+
const data = await client.DeleteProvisionedConcurrencyConfig({})
|
|
184
184
|
expect(data).to.be.ok
|
|
185
185
|
} catch(error) {
|
|
186
186
|
expect(error.requestId).to.be.ok
|
|
@@ -368,9 +368,9 @@ it("scf.v20180416.DeleteReservedConcurrencyConfig", async function () {
|
|
|
368
368
|
}
|
|
369
369
|
})
|
|
370
370
|
|
|
371
|
-
it("scf.v20180416.
|
|
371
|
+
it("scf.v20180416.Invoke", async function () {
|
|
372
372
|
try {
|
|
373
|
-
const data = await client.
|
|
373
|
+
const data = await client.Invoke({})
|
|
374
374
|
expect(data).to.be.ok
|
|
375
375
|
} catch(error) {
|
|
376
376
|
expect(error.requestId).to.be.ok
|
|
@@ -438,4 +438,14 @@ it("scf.v20180416.UpdateFunctionCode", async function () {
|
|
|
438
438
|
}
|
|
439
439
|
})
|
|
440
440
|
|
|
441
|
+
it("scf.v20180416.GetRequestStatus", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.GetRequestStatus({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
441
451
|
})
|
|
@@ -948,6 +948,16 @@ it("tdmq.v20200217.DeleteCmqSubscribe", async function () {
|
|
|
948
948
|
}
|
|
949
949
|
})
|
|
950
950
|
|
|
951
|
+
it("tdmq.v20200217.DescribeAllTenants", async function () {
|
|
952
|
+
try {
|
|
953
|
+
const data = await client.DescribeAllTenants({})
|
|
954
|
+
expect(data).to.be.ok
|
|
955
|
+
} catch(error) {
|
|
956
|
+
expect(error.requestId).to.be.ok
|
|
957
|
+
expect(error.code).to.be.ok
|
|
958
|
+
}
|
|
959
|
+
})
|
|
960
|
+
|
|
951
961
|
it("tdmq.v20200217.DescribeNamespaceBundlesOpt", async function () {
|
|
952
962
|
try {
|
|
953
963
|
const data = await client.DescribeNamespaceBundlesOpt({})
|
|
@@ -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({})
|
|
@@ -978,6 +988,16 @@ it("tke.v20180525.UpdateEKSCluster", async function () {
|
|
|
978
988
|
}
|
|
979
989
|
})
|
|
980
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
|
+
|
|
981
1001
|
it("tke.v20180525.CreateClusterEndpointVip", async function () {
|
|
982
1002
|
try {
|
|
983
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({})
|