tencentcloud-sdk-nodejs 4.0.247 → 4.0.248
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 +139 -117
- package/package.json +1 -1
- package/products.md +7 -6
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_client.ts +1 -1
- package/src/services/apm/v20210622/apm_client.ts +19 -1
- package/src/services/apm/v20210622/apm_models.ts +172 -10
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/index.ts +1 -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/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +5 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +6 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +145 -8
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -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/test/apm.v20210622.test.js +10 -0
- package/test/ivld.v20210903.test.js +101 -0
|
@@ -1026,36 +1026,6 @@ export interface DisassociateInstancesKeyPairsRequest {
|
|
|
1026
1026
|
InstanceIds: Array<string>
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
|
-
/**
|
|
1030
|
-
* 数据盘价格
|
|
1031
|
-
*/
|
|
1032
|
-
export interface DataDiskPrice {
|
|
1033
|
-
/**
|
|
1034
|
-
* 磁盘ID
|
|
1035
|
-
*/
|
|
1036
|
-
DiskId: string
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* 磁盘单价
|
|
1040
|
-
*/
|
|
1041
|
-
OriginalDiskPrice: number
|
|
1042
|
-
|
|
1043
|
-
/**
|
|
1044
|
-
* 磁盘总价
|
|
1045
|
-
*/
|
|
1046
|
-
OriginalPrice: number
|
|
1047
|
-
|
|
1048
|
-
/**
|
|
1049
|
-
* 折扣
|
|
1050
|
-
*/
|
|
1051
|
-
Discount: number
|
|
1052
|
-
|
|
1053
|
-
/**
|
|
1054
|
-
* 折后总价
|
|
1055
|
-
*/
|
|
1056
|
-
DiscountPrice: number
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
1029
|
/**
|
|
1060
1030
|
* ImportKeyPair请求参数结构体
|
|
1061
1031
|
*/
|
|
@@ -1825,6 +1795,12 @@ export interface DescribeInstancesRequest {
|
|
|
1825
1795
|
<li>public-ip-address</li>按照【实例主网卡的公网 IP】进行过滤。
|
|
1826
1796
|
类型:String
|
|
1827
1797
|
必选:否
|
|
1798
|
+
<li>zone</li>按照【可用区】进行过滤。
|
|
1799
|
+
类型:String
|
|
1800
|
+
必选:否
|
|
1801
|
+
<li>instance-state</li>按照【实例状态】进行过滤。
|
|
1802
|
+
类型:String
|
|
1803
|
+
必选:否
|
|
1828
1804
|
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 InstanceIds 和 Filters。
|
|
1829
1805
|
*/
|
|
1830
1806
|
Filters?: Array<Filter>
|
|
@@ -2360,11 +2336,6 @@ export interface Price {
|
|
|
2360
2336
|
* 实例价格。
|
|
2361
2337
|
*/
|
|
2362
2338
|
InstancePrice: InstancePrice
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* 数据盘价格。
|
|
2366
|
-
*/
|
|
2367
|
-
DataDiskPrices: Array<DataDiskPrice>
|
|
2368
2339
|
}
|
|
2369
2340
|
|
|
2370
2341
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.248";
|
|
@@ -142,7 +142,7 @@ API 网关可绑定自定义域名到服务,并且可以对自定义域名的
|
|
|
142
142
|
*/
|
|
143
143
|
DeleteApi(req: DeleteApiRequest, cb?: (error: string, rep: DeleteApiResponse) => void): Promise<DeleteApiResponse>;
|
|
144
144
|
/**
|
|
145
|
-
* 本接口(UpdateApiAppKey
|
|
145
|
+
* 本接口(UpdateApiAppKey)用于更新应用密钥。
|
|
146
146
|
*/
|
|
147
147
|
UpdateApiAppKey(req: UpdateApiAppKeyRequest, cb?: (error: string, rep: UpdateApiAppKeyResponse) => void): Promise<UpdateApiAppKeyResponse>;
|
|
148
148
|
/**
|
|
@@ -226,7 +226,7 @@ API 网关可绑定自定义域名到服务,并且可以对自定义域名的
|
|
|
226
226
|
return this.request("DeleteApi", req, cb);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
|
-
* 本接口(UpdateApiAppKey
|
|
229
|
+
* 本接口(UpdateApiAppKey)用于更新应用密钥。
|
|
230
230
|
*/
|
|
231
231
|
async UpdateApiAppKey(req, cb) {
|
|
232
232
|
return this.request("UpdateApiAppKey", req, cb);
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import {
|
|
3
|
+
import { DescribeApmAgentResponse, DescribeApmInstancesResponse, DescribeApmInstancesRequest, DescribeApmAgentRequest } from "./apm_models";
|
|
4
4
|
/**
|
|
5
5
|
* apm client
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* APM实例列表拉取
|
|
12
|
+
*/
|
|
13
|
+
DescribeApmInstances(req: DescribeApmInstancesRequest, cb?: (error: string, rep: DescribeApmInstancesResponse) => void): Promise<DescribeApmInstancesResponse>;
|
|
10
14
|
/**
|
|
11
15
|
* 获取Apm Agent信息
|
|
12
16
|
*/
|
|
@@ -27,6 +27,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("apm.tencentcloudapi.com", "2021-06-22", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* APM实例列表拉取
|
|
32
|
+
*/
|
|
33
|
+
async DescribeApmInstances(req, cb) {
|
|
34
|
+
return this.request("DescribeApmInstances", req, cb);
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* 获取Apm Agent信息
|
|
32
38
|
*/
|
|
@@ -1,23 +1,95 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* apm实例信息
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
4
|
+
export interface ApmInstanceDetail {
|
|
5
|
+
/**
|
|
6
|
+
* 存储使用量(MB)
|
|
7
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8
|
+
*/
|
|
9
|
+
AmountOfUsedStorage: number;
|
|
10
|
+
/**
|
|
11
|
+
* 实例名
|
|
12
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13
|
+
*/
|
|
14
|
+
Name: string;
|
|
15
|
+
/**
|
|
16
|
+
* 实例所属tag列表
|
|
17
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18
|
+
*/
|
|
19
|
+
Tags: Array<ApmTag>;
|
|
5
20
|
/**
|
|
6
21
|
* 实例ID
|
|
7
22
|
*/
|
|
8
23
|
InstanceId: string;
|
|
9
24
|
/**
|
|
10
|
-
*
|
|
25
|
+
* 创建人Uin
|
|
26
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
11
27
|
*/
|
|
12
|
-
|
|
28
|
+
CreateUin: string;
|
|
13
29
|
/**
|
|
14
|
-
*
|
|
30
|
+
* 该实例已上报的服务数
|
|
31
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15
32
|
*/
|
|
16
|
-
|
|
33
|
+
ServiceCount: number;
|
|
17
34
|
/**
|
|
18
|
-
*
|
|
35
|
+
* 日均上报Span数
|
|
36
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19
37
|
*/
|
|
20
|
-
|
|
38
|
+
CountOfReportSpanPerDay: number;
|
|
39
|
+
/**
|
|
40
|
+
* AppId信息
|
|
41
|
+
*/
|
|
42
|
+
AppId: number;
|
|
43
|
+
/**
|
|
44
|
+
* Trace数据保存时长
|
|
45
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
46
|
+
*/
|
|
47
|
+
TraceDuration: number;
|
|
48
|
+
/**
|
|
49
|
+
* 实例描述信息
|
|
50
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
51
|
+
*/
|
|
52
|
+
Description: string;
|
|
53
|
+
/**
|
|
54
|
+
* 实例状态
|
|
55
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
56
|
+
*/
|
|
57
|
+
Status: number;
|
|
58
|
+
/**
|
|
59
|
+
* 实例所属地域
|
|
60
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
61
|
+
*/
|
|
62
|
+
Region: string;
|
|
63
|
+
/**
|
|
64
|
+
* 实例上报额度
|
|
65
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
66
|
+
*/
|
|
67
|
+
SpanDailyCounters: number;
|
|
68
|
+
/**
|
|
69
|
+
* 实例是否开通计费
|
|
70
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
71
|
+
*/
|
|
72
|
+
BillingInstance: number;
|
|
73
|
+
/**
|
|
74
|
+
* 错误率阈值
|
|
75
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76
|
+
*/
|
|
77
|
+
ErrRateThreshold: number;
|
|
78
|
+
/**
|
|
79
|
+
* 采样率阈值
|
|
80
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
81
|
+
*/
|
|
82
|
+
SampleRate: number;
|
|
83
|
+
/**
|
|
84
|
+
* 是否开启错误采样 0 关 1 开
|
|
85
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
86
|
+
*/
|
|
87
|
+
ErrorSample: number;
|
|
88
|
+
/**
|
|
89
|
+
* 慢调用保存阈值
|
|
90
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
91
|
+
*/
|
|
92
|
+
SlowRequestSavedThreshold: number;
|
|
21
93
|
}
|
|
22
94
|
/**
|
|
23
95
|
* DescribeApmAgent返回参数结构体
|
|
@@ -33,6 +105,71 @@ export interface DescribeApmAgentResponse {
|
|
|
33
105
|
*/
|
|
34
106
|
RequestId?: string;
|
|
35
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* 维度(标签)对象
|
|
110
|
+
*/
|
|
111
|
+
export interface ApmTag {
|
|
112
|
+
/**
|
|
113
|
+
* 维度Key(列名,标签Key)
|
|
114
|
+
*/
|
|
115
|
+
Key: string;
|
|
116
|
+
/**
|
|
117
|
+
* 维度值(标签值)
|
|
118
|
+
*/
|
|
119
|
+
Value: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* DescribeApmInstances返回参数结构体
|
|
123
|
+
*/
|
|
124
|
+
export interface DescribeApmInstancesResponse {
|
|
125
|
+
/**
|
|
126
|
+
* apm实例列表
|
|
127
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
128
|
+
*/
|
|
129
|
+
Instances: Array<ApmInstanceDetail>;
|
|
130
|
+
/**
|
|
131
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
132
|
+
*/
|
|
133
|
+
RequestId?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* DescribeApmInstances请求参数结构体
|
|
137
|
+
*/
|
|
138
|
+
export interface DescribeApmInstancesRequest {
|
|
139
|
+
/**
|
|
140
|
+
* Tag列表
|
|
141
|
+
*/
|
|
142
|
+
Tags?: Array<ApmTag>;
|
|
143
|
+
/**
|
|
144
|
+
* 搜索实例名
|
|
145
|
+
*/
|
|
146
|
+
InstanceName?: string;
|
|
147
|
+
/**
|
|
148
|
+
* 过滤实例ID
|
|
149
|
+
*/
|
|
150
|
+
InstanceIds?: Array<string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* DescribeApmAgent请求参数结构体
|
|
154
|
+
*/
|
|
155
|
+
export interface DescribeApmAgentRequest {
|
|
156
|
+
/**
|
|
157
|
+
* 实例ID
|
|
158
|
+
*/
|
|
159
|
+
InstanceId: string;
|
|
160
|
+
/**
|
|
161
|
+
* 接入方式
|
|
162
|
+
*/
|
|
163
|
+
AgentType?: string;
|
|
164
|
+
/**
|
|
165
|
+
* 环境
|
|
166
|
+
*/
|
|
167
|
+
NetworkMode?: string;
|
|
168
|
+
/**
|
|
169
|
+
* 语言
|
|
170
|
+
*/
|
|
171
|
+
LanguageEnvironment?: string;
|
|
172
|
+
}
|
|
36
173
|
/**
|
|
37
174
|
* apm Agent信息
|
|
38
175
|
*/
|
|
@@ -94,6 +94,7 @@ export { iotexplorer } from "./iotexplorer";
|
|
|
94
94
|
export { iottid } from "./iottid";
|
|
95
95
|
export { iotvideo } from "./iotvideo";
|
|
96
96
|
export { iotvideoindustry } from "./iotvideoindustry";
|
|
97
|
+
export { ivld } from "./ivld";
|
|
97
98
|
export { kms } from "./kms";
|
|
98
99
|
export { lighthouse } from "./lighthouse";
|
|
99
100
|
export { live } from "./live";
|
|
@@ -192,6 +192,8 @@ var iotvideo_1 = require("./iotvideo");
|
|
|
192
192
|
Object.defineProperty(exports, "iotvideo", { enumerable: true, get: function () { return iotvideo_1.iotvideo; } });
|
|
193
193
|
var iotvideoindustry_1 = require("./iotvideoindustry");
|
|
194
194
|
Object.defineProperty(exports, "iotvideoindustry", { enumerable: true, get: function () { return iotvideoindustry_1.iotvideoindustry; } });
|
|
195
|
+
var ivld_1 = require("./ivld");
|
|
196
|
+
Object.defineProperty(exports, "ivld", { enumerable: true, get: function () { return ivld_1.ivld; } });
|
|
195
197
|
var kms_1 = require("./kms");
|
|
196
198
|
Object.defineProperty(exports, "kms", { enumerable: true, get: function () { return kms_1.kms; } });
|
|
197
199
|
var lighthouse_1 = require("./lighthouse");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20210903 = void 0;
|
|
4
|
+
const Models = require("./ivld_models");
|
|
5
|
+
const ivld_client_1 = require("./ivld_client");
|
|
6
|
+
exports.v20210903 = {
|
|
7
|
+
Client: ivld_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { DeleteMediaResponse, DescribeTasksRequest, ImportMediaRequest, DescribeMediasRequest, DescribeTaskResponse, DescribeTaskDetailResponse, CreateTaskResponse, DescribeTaskDetailRequest, DescribeMediaResponse, DescribeTaskRequest, DescribeTasksResponse, CreateTaskRequest, DeleteMediaRequest, ImportMediaResponse, DescribeMediasResponse, DescribeMediaRequest } from "./ivld_models";
|
|
4
|
+
/**
|
|
5
|
+
* ivld client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 创建智能标签任务。
|
|
12
|
+
|
|
13
|
+
请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
CreateTask(req: CreateTaskRequest, cb?: (error: string, rep: CreateTaskResponse) => void): Promise<CreateTaskResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* 将URL指向的媒资视频文件导入系统之中。
|
|
19
|
+
|
|
20
|
+
**请注意,本接口为异步接口**。接口返回MediaId仅代表导入视频任务发起,不代表任务完成,您可调用读接口(DescribeMedia/DescribeMedias)接口查询MediaId对应的媒资文件的状态。
|
|
21
|
+
|
|
22
|
+
当前URL只支持COS地址,其形式为`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}`,其中`${Bucket}`为您的COS桶名称,Region为COS桶所在[可用区](https://cloud.tencent.com/document/product/213/6091),`${ObjectKey}`为指向存储在COS桶内的待分析的视频的[ObjectKey](https://cloud.tencent.com/document/product/436/13324)
|
|
23
|
+
|
|
24
|
+
分析完成后,本产品将在您的`${Bucket}`桶内创建名为`${ObjectKey}-${task-start-time}`的目录(`task-start-time`形式为1970-01-01T08:08:08)并将分析结果将回传回该目录,也即,结构化分析结果(包括图片,JSON等数据)将会写回`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}-${task-start-time}`目录
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
ImportMedia(req: ImportMediaRequest, cb?: (error: string, rep: ImportMediaResponse) => void): Promise<ImportMediaResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* 依照输入条件,描述命中的媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
30
|
+
|
|
31
|
+
请注意,本接口最多支持同时描述**50**个媒资文件
|
|
32
|
+
|
|
33
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
34
|
+
*/
|
|
35
|
+
DescribeMedias(req: DescribeMediasRequest, cb?: (error: string, rep: DescribeMediasResponse) => void): Promise<DescribeMediasResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
38
|
+
|
|
39
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
40
|
+
*/
|
|
41
|
+
DescribeMedia(req: DescribeMediaRequest, cb?: (error: string, rep: DescribeMediaResponse) => void): Promise<DescribeMediaResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* 描述任务信息,如果任务成功完成,还将返回任务结果
|
|
44
|
+
*/
|
|
45
|
+
DescribeTaskDetail(req: DescribeTaskDetailRequest, cb?: (error: string, rep: DescribeTaskDetailResponse) => void): Promise<DescribeTaskDetailResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* 描述智能标签任务进度。
|
|
48
|
+
|
|
49
|
+
请注意,**此接口仅返回任务执行状态信息,不返回任务执行结果**
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
DescribeTask(req: DescribeTaskRequest, cb?: (error: string, rep: DescribeTaskResponse) => void): Promise<DescribeTaskResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* 依照输入条件,描述命中的任务信息,包括任务创建时间,处理时间信息等。
|
|
56
|
+
|
|
57
|
+
请注意,本接口最多支持同时描述**50**个任务信息
|
|
58
|
+
*/
|
|
59
|
+
DescribeTasks(req: DescribeTasksRequest, cb?: (error: string, rep: DescribeTasksResponse) => void): Promise<DescribeTasksResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* 将MediaId对应的媒资文件从系统中删除。
|
|
62
|
+
|
|
63
|
+
**请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
|
|
64
|
+
*/
|
|
65
|
+
DeleteMedia(req: DeleteMediaRequest, cb?: (error: string, rep: DeleteMediaResponse) => void): Promise<DeleteMediaResponse>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* ivld client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("ivld.tencentcloudapi.com", "2021-09-03", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 创建智能标签任务。
|
|
32
|
+
|
|
33
|
+
请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
async CreateTask(req, cb) {
|
|
37
|
+
return this.request("CreateTask", req, cb);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 将URL指向的媒资视频文件导入系统之中。
|
|
41
|
+
|
|
42
|
+
**请注意,本接口为异步接口**。接口返回MediaId仅代表导入视频任务发起,不代表任务完成,您可调用读接口(DescribeMedia/DescribeMedias)接口查询MediaId对应的媒资文件的状态。
|
|
43
|
+
|
|
44
|
+
当前URL只支持COS地址,其形式为`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}`,其中`${Bucket}`为您的COS桶名称,Region为COS桶所在[可用区](https://cloud.tencent.com/document/product/213/6091),`${ObjectKey}`为指向存储在COS桶内的待分析的视频的[ObjectKey](https://cloud.tencent.com/document/product/436/13324)
|
|
45
|
+
|
|
46
|
+
分析完成后,本产品将在您的`${Bucket}`桶内创建名为`${ObjectKey}-${task-start-time}`的目录(`task-start-time`形式为1970-01-01T08:08:08)并将分析结果将回传回该目录,也即,结构化分析结果(包括图片,JSON等数据)将会写回`https://${Bucket}-${AppId}.cos.${Region}.myqcloud.com/${ObjectKey}-${task-start-time}`目录
|
|
47
|
+
|
|
48
|
+
*/
|
|
49
|
+
async ImportMedia(req, cb) {
|
|
50
|
+
return this.request("ImportMedia", req, cb);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 依照输入条件,描述命中的媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
54
|
+
|
|
55
|
+
请注意,本接口最多支持同时描述**50**个媒资文件
|
|
56
|
+
|
|
57
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
58
|
+
*/
|
|
59
|
+
async DescribeMedias(req, cb) {
|
|
60
|
+
return this.request("DescribeMedias", req, cb);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
|
|
64
|
+
|
|
65
|
+
如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
|
66
|
+
*/
|
|
67
|
+
async DescribeMedia(req, cb) {
|
|
68
|
+
return this.request("DescribeMedia", req, cb);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 描述任务信息,如果任务成功完成,还将返回任务结果
|
|
72
|
+
*/
|
|
73
|
+
async DescribeTaskDetail(req, cb) {
|
|
74
|
+
return this.request("DescribeTaskDetail", req, cb);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 描述智能标签任务进度。
|
|
78
|
+
|
|
79
|
+
请注意,**此接口仅返回任务执行状态信息,不返回任务执行结果**
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
async DescribeTask(req, cb) {
|
|
84
|
+
return this.request("DescribeTask", req, cb);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 依照输入条件,描述命中的任务信息,包括任务创建时间,处理时间信息等。
|
|
88
|
+
|
|
89
|
+
请注意,本接口最多支持同时描述**50**个任务信息
|
|
90
|
+
*/
|
|
91
|
+
async DescribeTasks(req, cb) {
|
|
92
|
+
return this.request("DescribeTasks", req, cb);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 将MediaId对应的媒资文件从系统中删除。
|
|
96
|
+
|
|
97
|
+
**请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
|
|
98
|
+
*/
|
|
99
|
+
async DeleteMedia(req, cb) {
|
|
100
|
+
return this.request("DeleteMedia", req, cb);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.Client = Client;
|