@huaweicloud/huaweicloud-sdk-image 3.1.38 → 3.1.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-image",
3
- "version": "3.1.38",
3
+ "version": "3.1.40",
4
4
  "description": "Huaweicloud SDK for image",
5
5
  "main": "huaweicloud-sdk-image.js",
6
6
  "typings": "huaweicloud-sdk-image.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.38"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.40"
18
18
  }
19
19
  }
@@ -2,8 +2,6 @@ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
2
  import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
3
  import { CreateImageHighresolutionMattingTaskRequest } from './model/CreateImageHighresolutionMattingTaskRequest';
4
4
  import { CreateImageHighresolutionMattingTaskResponse } from './model/CreateImageHighresolutionMattingTaskResponse';
5
- import { CreateVideoObjectMaskingTaskRequest } from './model/CreateVideoObjectMaskingTaskRequest';
6
- import { CreateVideoObjectMaskingTaskResponse } from './model/CreateVideoObjectMaskingTaskResponse';
7
5
  import { CreateVideoTaggingMediaTaskRequest } from './model/CreateVideoTaggingMediaTaskRequest';
8
6
  import { CreateVideoTaggingMediaTaskResponse } from './model/CreateVideoTaggingMediaTaskResponse';
9
7
  import { RunCelebrityRecognitionRequest } from './model/RunCelebrityRecognitionRequest';
@@ -24,8 +22,6 @@ import { RunRecaptureDetectRequest } from './model/RunRecaptureDetectRequest';
24
22
  import { RunRecaptureDetectResponse } from './model/RunRecaptureDetectResponse';
25
23
  import { ShowImageHighresolutionMattingTaskRequest } from './model/ShowImageHighresolutionMattingTaskRequest';
26
24
  import { ShowImageHighresolutionMattingTaskResponse } from './model/ShowImageHighresolutionMattingTaskResponse';
27
- import { ShowVideoObjectMaskingTaskRequest } from './model/ShowVideoObjectMaskingTaskRequest';
28
- import { ShowVideoObjectMaskingTaskResponse } from './model/ShowVideoObjectMaskingTaskResponse';
29
25
  import { ShowVideoTaggingMediaTaskRequest } from './model/ShowVideoTaggingMediaTaskRequest';
30
26
  import { ShowVideoTaggingMediaTaskResponse } from './model/ShowVideoTaggingMediaTaskResponse';
31
27
  export declare class ImageClient {
@@ -44,17 +40,6 @@ export declare class ImageClient {
44
40
  * @throws {RequiredError}
45
41
  */
46
42
  createImageHighresolutionMattingTask(createImageHighresolutionMattingTaskRequest?: CreateImageHighresolutionMattingTaskRequest): Promise<CreateImageHighresolutionMattingTaskResponse>;
47
- /**
48
- * 创建视频脱敏除任务,将输入视频的图像敏感信息模糊化,包括视频中的人脸和车牌
49
- *
50
- * Please refer to HUAWEI cloud API Explorer for details.
51
- *
52
- * @summary 创建视频脱敏任务
53
- * @param {CreateVideoObjectMaskingTaskRequestBody} createVideoObjectMaskingTaskRequestBody Create task request body
54
- * @param {*} [options] Override http request option.
55
- * @throws {RequiredError}
56
- */
57
- createVideoObjectMaskingTask(createVideoObjectMaskingTaskRequest?: CreateVideoObjectMaskingTaskRequest): Promise<CreateVideoObjectMaskingTaskResponse>;
58
43
  /**
59
44
  * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
60
45
  *
@@ -165,17 +150,6 @@ export declare class ImageClient {
165
150
  * @throws {RequiredError}
166
151
  */
167
152
  showImageHighresolutionMattingTask(showImageHighresolutionMattingTaskRequest?: ShowImageHighresolutionMattingTaskRequest): Promise<ShowImageHighresolutionMattingTaskResponse>;
168
- /**
169
- * show task
170
- *
171
- * Please refer to HUAWEI cloud API Explorer for details.
172
- *
173
- * @summary 查询视频脱敏任务详情
174
- * @param {string} taskId 任务ID
175
- * @param {*} [options] Override http request option.
176
- * @throws {RequiredError}
177
- */
178
- showVideoObjectMaskingTask(showVideoObjectMaskingTaskRequest?: ShowVideoObjectMaskingTaskRequest): Promise<ShowVideoObjectMaskingTaskResponse>;
179
153
  /**
180
154
  * 查询视频标签任务详情,返回参数配置以及任务状态信息。
181
155
  *
@@ -203,20 +177,6 @@ export declare const ParamCreater: () => {
203
177
  headers: {};
204
178
  data: {};
205
179
  };
206
- /**
207
- * 创建视频脱敏除任务,将输入视频的图像敏感信息模糊化,包括视频中的人脸和车牌
208
- *
209
- * Please refer to HUAWEI cloud API Explorer for details.
210
- */
211
- createVideoObjectMaskingTask(createVideoObjectMaskingTaskRequest?: CreateVideoObjectMaskingTaskRequest): {
212
- method: string;
213
- url: string;
214
- contentType: string;
215
- queryParams: {};
216
- pathParams: {};
217
- headers: {};
218
- data: {};
219
- };
220
180
  /**
221
181
  * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
222
182
  *
@@ -356,19 +316,6 @@ export declare const ParamCreater: () => {
356
316
  pathParams: {};
357
317
  headers: {};
358
318
  };
359
- /**
360
- * show task
361
- *
362
- * Please refer to HUAWEI cloud API Explorer for details.
363
- */
364
- showVideoObjectMaskingTask(showVideoObjectMaskingTaskRequest?: ShowVideoObjectMaskingTaskRequest): {
365
- method: string;
366
- url: string;
367
- contentType: string;
368
- queryParams: {};
369
- pathParams: {};
370
- headers: {};
371
- };
372
319
  /**
373
320
  * 查询视频标签任务详情,返回参数配置以及任务状态信息。
374
321
  *
package/v2/ImageClient.js CHANGED
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.RequiredError = exports.ParamCreater = exports.ImageClient = void 0;
19
19
  var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
20
20
  var CreateImageHighresolutionMattingTaskRequest_1 = require("./model/CreateImageHighresolutionMattingTaskRequest");
21
- var CreateVideoObjectMaskingTaskRequest_1 = require("./model/CreateVideoObjectMaskingTaskRequest");
22
21
  var CreateVideoTaggingMediaTaskRequest_1 = require("./model/CreateVideoTaggingMediaTaskRequest");
23
22
  var RunCelebrityRecognitionRequest_1 = require("./model/RunCelebrityRecognitionRequest");
24
23
  var RunImageDescriptionRequest_1 = require("./model/RunImageDescriptionRequest");
@@ -29,7 +28,6 @@ var RunImageSuperResolutionRequest_1 = require("./model/RunImageSuperResolutionR
29
28
  var RunImageTaggingRequest_1 = require("./model/RunImageTaggingRequest");
30
29
  var RunRecaptureDetectRequest_1 = require("./model/RunRecaptureDetectRequest");
31
30
  var ShowImageHighresolutionMattingTaskRequest_1 = require("./model/ShowImageHighresolutionMattingTaskRequest");
32
- var ShowVideoObjectMaskingTaskRequest_1 = require("./model/ShowVideoObjectMaskingTaskRequest");
33
31
  var ShowVideoTaggingMediaTaskRequest_1 = require("./model/ShowVideoTaggingMediaTaskRequest");
34
32
  var ImageClient = /** @class */ (function () {
35
33
  function ImageClient(client) {
@@ -57,22 +55,6 @@ var ImageClient = /** @class */ (function () {
57
55
  options['responseHeaders'] = ['X-request-id'];
58
56
  return this.hcClient.sendRequest(options);
59
57
  };
60
- /**
61
- * 创建视频脱敏除任务,将输入视频的图像敏感信息模糊化,包括视频中的人脸和车牌
62
- *
63
- * Please refer to HUAWEI cloud API Explorer for details.
64
- *
65
- * @summary 创建视频脱敏任务
66
- * @param {CreateVideoObjectMaskingTaskRequestBody} createVideoObjectMaskingTaskRequestBody Create task request body
67
- * @param {*} [options] Override http request option.
68
- * @throws {RequiredError}
69
- */
70
- ImageClient.prototype.createVideoObjectMaskingTask = function (createVideoObjectMaskingTaskRequest) {
71
- var options = (0, exports.ParamCreater)().createVideoObjectMaskingTask(createVideoObjectMaskingTaskRequest);
72
- // @ts-ignore
73
- options['responseHeaders'] = [''];
74
- return this.hcClient.sendRequest(options);
75
- };
76
58
  /**
77
59
  * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
78
60
  *
@@ -233,22 +215,6 @@ var ImageClient = /** @class */ (function () {
233
215
  options['responseHeaders'] = ['X-request-id'];
234
216
  return this.hcClient.sendRequest(options);
235
217
  };
236
- /**
237
- * show task
238
- *
239
- * Please refer to HUAWEI cloud API Explorer for details.
240
- *
241
- * @summary 查询视频脱敏任务详情
242
- * @param {string} taskId 任务ID
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- */
246
- ImageClient.prototype.showVideoObjectMaskingTask = function (showVideoObjectMaskingTaskRequest) {
247
- var options = (0, exports.ParamCreater)().showVideoObjectMaskingTask(showVideoObjectMaskingTaskRequest);
248
- // @ts-ignore
249
- options['responseHeaders'] = ['X-request-id'];
250
- return this.hcClient.sendRequest(options);
251
- };
252
218
  /**
253
219
  * 查询视频标签任务详情,返回参数配置以及任务状态信息。
254
220
  *
@@ -303,39 +269,6 @@ var ParamCreater = function () {
303
269
  options.headers = localVarHeaderParameter;
304
270
  return options;
305
271
  },
306
- /**
307
- * 创建视频脱敏除任务,将输入视频的图像敏感信息模糊化,包括视频中的人脸和车牌
308
- *
309
- * Please refer to HUAWEI cloud API Explorer for details.
310
- */
311
- createVideoObjectMaskingTask: function (createVideoObjectMaskingTaskRequest) {
312
- var options = {
313
- method: "POST",
314
- url: "/v2/{project_id}/image/video-object-masking/tasks",
315
- contentType: "application/json;charset=UTF-8",
316
- queryParams: {},
317
- pathParams: {},
318
- headers: {},
319
- data: {}
320
- };
321
- var localVarHeaderParameter = {};
322
- var body;
323
- if (createVideoObjectMaskingTaskRequest !== null && createVideoObjectMaskingTaskRequest !== undefined) {
324
- if (createVideoObjectMaskingTaskRequest instanceof CreateVideoObjectMaskingTaskRequest_1.CreateVideoObjectMaskingTaskRequest) {
325
- body = createVideoObjectMaskingTaskRequest.body;
326
- }
327
- else {
328
- body = createVideoObjectMaskingTaskRequest['body'];
329
- }
330
- }
331
- if (body === null || body === undefined) {
332
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
333
- }
334
- localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
335
- options.data = body !== undefined ? body : {};
336
- options.headers = localVarHeaderParameter;
337
- return options;
338
- },
339
272
  /**
340
273
  * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
341
274
  *
@@ -664,37 +597,6 @@ var ParamCreater = function () {
664
597
  options.headers = localVarHeaderParameter;
665
598
  return options;
666
599
  },
667
- /**
668
- * show task
669
- *
670
- * Please refer to HUAWEI cloud API Explorer for details.
671
- */
672
- showVideoObjectMaskingTask: function (showVideoObjectMaskingTaskRequest) {
673
- var options = {
674
- method: "GET",
675
- url: "/v2/{project_id}/image/video-object-masking/tasks/{task_id}",
676
- contentType: "application/json",
677
- queryParams: {},
678
- pathParams: {},
679
- headers: {}
680
- };
681
- var localVarHeaderParameter = {};
682
- var taskId;
683
- if (showVideoObjectMaskingTaskRequest !== null && showVideoObjectMaskingTaskRequest !== undefined) {
684
- if (showVideoObjectMaskingTaskRequest instanceof ShowVideoObjectMaskingTaskRequest_1.ShowVideoObjectMaskingTaskRequest) {
685
- taskId = showVideoObjectMaskingTaskRequest.taskId;
686
- }
687
- else {
688
- taskId = showVideoObjectMaskingTaskRequest['task_id'];
689
- }
690
- }
691
- if (taskId === null || taskId === undefined) {
692
- throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showVideoObjectMaskingTask.');
693
- }
694
- options.pathParams = { 'task_id': taskId, };
695
- options.headers = localVarHeaderParameter;
696
- return options;
697
- },
698
600
  /**
699
601
  * 查询视频标签任务详情,返回参数配置以及任务状态信息。
700
602
  *
@@ -4,9 +4,6 @@ export * from './model/CelebrityRecognitionReq';
4
4
  export * from './model/CelebrityRecognitionResultBody';
5
5
  export * from './model/CreateImageHighresolutionMattingTaskRequest';
6
6
  export * from './model/CreateImageHighresolutionMattingTaskResponse';
7
- export * from './model/CreateVideoObjectMaskingTaskRequest';
8
- export * from './model/CreateVideoObjectMaskingTaskRequestBody';
9
- export * from './model/CreateVideoObjectMaskingTaskResponse';
10
7
  export * from './model/CreateVideoTaggingMediaTaskRequest';
11
8
  export * from './model/CreateVideoTaggingMediaTaskRequestBody';
12
9
  export * from './model/CreateVideoTaggingMediaTaskResponse';
@@ -61,18 +58,11 @@ export * from './model/RunRecaptureDetectRequest';
61
58
  export * from './model/RunRecaptureDetectResponse';
62
59
  export * from './model/ShowImageHighresolutionMattingTaskRequest';
63
60
  export * from './model/ShowImageHighresolutionMattingTaskResponse';
64
- export * from './model/ShowVideoObjectMaskingTaskRequest';
65
- export * from './model/ShowVideoObjectMaskingTaskResponse';
66
61
  export * from './model/ShowVideoTaggingMediaTaskRequest';
67
62
  export * from './model/ShowVideoTaggingMediaTaskResponse';
68
63
  export * from './model/TaskCallback';
69
- export * from './model/TaskInput';
70
- export * from './model/TaskInputData';
71
64
  export * from './model/TaskOutput';
72
65
  export * from './model/TaskOutputObs';
73
- export * from './model/VideoObjectMaskingInference';
74
- export * from './model/VideoObjectMaskingTaskConfig';
75
- export * from './model/VideoObjectMaskingTaskConfigCommon';
76
66
  export * from './model/VideoTaggingMediaTaskInput';
77
67
  export * from './model/VideoTaggingMediaTaskInputData';
78
68
  export * from './model/VideoTaggingTaskConfig';
package/v2/public-api.js CHANGED
@@ -20,9 +20,6 @@ __exportStar(require("./model/CelebrityRecognitionReq"), exports);
20
20
  __exportStar(require("./model/CelebrityRecognitionResultBody"), exports);
21
21
  __exportStar(require("./model/CreateImageHighresolutionMattingTaskRequest"), exports);
22
22
  __exportStar(require("./model/CreateImageHighresolutionMattingTaskResponse"), exports);
23
- __exportStar(require("./model/CreateVideoObjectMaskingTaskRequest"), exports);
24
- __exportStar(require("./model/CreateVideoObjectMaskingTaskRequestBody"), exports);
25
- __exportStar(require("./model/CreateVideoObjectMaskingTaskResponse"), exports);
26
23
  __exportStar(require("./model/CreateVideoTaggingMediaTaskRequest"), exports);
27
24
  __exportStar(require("./model/CreateVideoTaggingMediaTaskRequestBody"), exports);
28
25
  __exportStar(require("./model/CreateVideoTaggingMediaTaskResponse"), exports);
@@ -77,18 +74,11 @@ __exportStar(require("./model/RunRecaptureDetectRequest"), exports);
77
74
  __exportStar(require("./model/RunRecaptureDetectResponse"), exports);
78
75
  __exportStar(require("./model/ShowImageHighresolutionMattingTaskRequest"), exports);
79
76
  __exportStar(require("./model/ShowImageHighresolutionMattingTaskResponse"), exports);
80
- __exportStar(require("./model/ShowVideoObjectMaskingTaskRequest"), exports);
81
- __exportStar(require("./model/ShowVideoObjectMaskingTaskResponse"), exports);
82
77
  __exportStar(require("./model/ShowVideoTaggingMediaTaskRequest"), exports);
83
78
  __exportStar(require("./model/ShowVideoTaggingMediaTaskResponse"), exports);
84
79
  __exportStar(require("./model/TaskCallback"), exports);
85
- __exportStar(require("./model/TaskInput"), exports);
86
- __exportStar(require("./model/TaskInputData"), exports);
87
80
  __exportStar(require("./model/TaskOutput"), exports);
88
81
  __exportStar(require("./model/TaskOutputObs"), exports);
89
- __exportStar(require("./model/VideoObjectMaskingInference"), exports);
90
- __exportStar(require("./model/VideoObjectMaskingTaskConfig"), exports);
91
- __exportStar(require("./model/VideoObjectMaskingTaskConfigCommon"), exports);
92
82
  __exportStar(require("./model/VideoTaggingMediaTaskInput"), exports);
93
83
  __exportStar(require("./model/VideoTaggingMediaTaskInputData"), exports);
94
84
  __exportStar(require("./model/VideoTaggingTaskConfig"), exports);
@@ -1,6 +0,0 @@
1
- import { CreateVideoObjectMaskingTaskRequestBody } from './CreateVideoObjectMaskingTaskRequestBody';
2
- export declare class CreateVideoObjectMaskingTaskRequest {
3
- body?: CreateVideoObjectMaskingTaskRequestBody;
4
- constructor();
5
- withBody(body: CreateVideoObjectMaskingTaskRequestBody): CreateVideoObjectMaskingTaskRequest;
6
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateVideoObjectMaskingTaskRequest = void 0;
4
- var CreateVideoObjectMaskingTaskRequest = /** @class */ (function () {
5
- function CreateVideoObjectMaskingTaskRequest() {
6
- }
7
- CreateVideoObjectMaskingTaskRequest.prototype.withBody = function (body) {
8
- this['body'] = body;
9
- return this;
10
- };
11
- return CreateVideoObjectMaskingTaskRequest;
12
- }());
13
- exports.CreateVideoObjectMaskingTaskRequest = CreateVideoObjectMaskingTaskRequest;
@@ -1,15 +0,0 @@
1
- import { TaskCallback } from './TaskCallback';
2
- import { TaskInput } from './TaskInput';
3
- import { TaskOutput } from './TaskOutput';
4
- import { VideoObjectMaskingTaskConfig } from './VideoObjectMaskingTaskConfig';
5
- export declare class CreateVideoObjectMaskingTaskRequestBody {
6
- input: TaskInput;
7
- output: TaskOutput;
8
- callback?: TaskCallback;
9
- config: VideoObjectMaskingTaskConfig;
10
- constructor(input?: any, output?: any, config?: any);
11
- withInput(input: TaskInput): CreateVideoObjectMaskingTaskRequestBody;
12
- withOutput(output: TaskOutput): CreateVideoObjectMaskingTaskRequestBody;
13
- withCallback(callback: TaskCallback): CreateVideoObjectMaskingTaskRequestBody;
14
- withConfig(config: VideoObjectMaskingTaskConfig): CreateVideoObjectMaskingTaskRequestBody;
15
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateVideoObjectMaskingTaskRequestBody = void 0;
4
- var CreateVideoObjectMaskingTaskRequestBody = /** @class */ (function () {
5
- function CreateVideoObjectMaskingTaskRequestBody(input, output, config) {
6
- this['input'] = input;
7
- this['output'] = output;
8
- this['config'] = config;
9
- }
10
- CreateVideoObjectMaskingTaskRequestBody.prototype.withInput = function (input) {
11
- this['input'] = input;
12
- return this;
13
- };
14
- CreateVideoObjectMaskingTaskRequestBody.prototype.withOutput = function (output) {
15
- this['output'] = output;
16
- return this;
17
- };
18
- CreateVideoObjectMaskingTaskRequestBody.prototype.withCallback = function (callback) {
19
- this['callback'] = callback;
20
- return this;
21
- };
22
- CreateVideoObjectMaskingTaskRequestBody.prototype.withConfig = function (config) {
23
- this['config'] = config;
24
- return this;
25
- };
26
- return CreateVideoObjectMaskingTaskRequestBody;
27
- }());
28
- exports.CreateVideoObjectMaskingTaskRequestBody = CreateVideoObjectMaskingTaskRequestBody;
@@ -1,8 +0,0 @@
1
- import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
- export declare class CreateVideoObjectMaskingTaskResponse extends SdkResponse {
3
- private 'task_id'?;
4
- constructor();
5
- withTaskId(taskId: string): CreateVideoObjectMaskingTaskResponse;
6
- set taskId(taskId: string | undefined);
7
- get taskId(): string | undefined;
8
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.CreateVideoObjectMaskingTaskResponse = void 0;
19
- var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
- var CreateVideoObjectMaskingTaskResponse = /** @class */ (function (_super) {
21
- __extends(CreateVideoObjectMaskingTaskResponse, _super);
22
- function CreateVideoObjectMaskingTaskResponse() {
23
- return _super.call(this) || this;
24
- }
25
- CreateVideoObjectMaskingTaskResponse.prototype.withTaskId = function (taskId) {
26
- this['task_id'] = taskId;
27
- return this;
28
- };
29
- Object.defineProperty(CreateVideoObjectMaskingTaskResponse.prototype, "taskId", {
30
- get: function () {
31
- return this['task_id'];
32
- },
33
- set: function (taskId) {
34
- this['task_id'] = taskId;
35
- },
36
- enumerable: false,
37
- configurable: true
38
- });
39
- return CreateVideoObjectMaskingTaskResponse;
40
- }(SdkResponse_1.SdkResponse));
41
- exports.CreateVideoObjectMaskingTaskResponse = CreateVideoObjectMaskingTaskResponse;
@@ -1,7 +0,0 @@
1
- export declare class ShowVideoObjectMaskingTaskRequest {
2
- private 'task_id';
3
- constructor(taskId?: any);
4
- withTaskId(taskId: string): ShowVideoObjectMaskingTaskRequest;
5
- set taskId(taskId: string | undefined);
6
- get taskId(): string | undefined;
7
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShowVideoObjectMaskingTaskRequest = void 0;
4
- var ShowVideoObjectMaskingTaskRequest = /** @class */ (function () {
5
- function ShowVideoObjectMaskingTaskRequest(taskId) {
6
- this['task_id'] = taskId;
7
- }
8
- ShowVideoObjectMaskingTaskRequest.prototype.withTaskId = function (taskId) {
9
- this['task_id'] = taskId;
10
- return this;
11
- };
12
- Object.defineProperty(ShowVideoObjectMaskingTaskRequest.prototype, "taskId", {
13
- get: function () {
14
- return this['task_id'];
15
- },
16
- set: function (taskId) {
17
- this['task_id'] = taskId;
18
- },
19
- enumerable: false,
20
- configurable: true
21
- });
22
- return ShowVideoObjectMaskingTaskRequest;
23
- }());
24
- exports.ShowVideoObjectMaskingTaskRequest = ShowVideoObjectMaskingTaskRequest;
@@ -1,43 +0,0 @@
1
- import { TaskCallback } from './TaskCallback';
2
- import { TaskInput } from './TaskInput';
3
- import { TaskOutput } from './TaskOutput';
4
- import { VideoObjectMaskingTaskConfig } from './VideoObjectMaskingTaskConfig';
5
- import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
6
- export declare class ShowVideoObjectMaskingTaskResponse extends SdkResponse {
7
- private 'task_id'?;
8
- private 'create_time'?;
9
- private 'update_time'?;
10
- state?: ShowVideoObjectMaskingTaskResponseStateEnum;
11
- input?: TaskInput;
12
- output?: TaskOutput;
13
- config?: VideoObjectMaskingTaskConfig;
14
- callback?: TaskCallback;
15
- private 'X-request-id'?;
16
- constructor();
17
- withTaskId(taskId: string): ShowVideoObjectMaskingTaskResponse;
18
- set taskId(taskId: string | undefined);
19
- get taskId(): string | undefined;
20
- withCreateTime(createTime: string): ShowVideoObjectMaskingTaskResponse;
21
- set createTime(createTime: string | undefined);
22
- get createTime(): string | undefined;
23
- withUpdateTime(updateTime: string): ShowVideoObjectMaskingTaskResponse;
24
- set updateTime(updateTime: string | undefined);
25
- get updateTime(): string | undefined;
26
- withState(state: ShowVideoObjectMaskingTaskResponseStateEnum): ShowVideoObjectMaskingTaskResponse;
27
- withInput(input: TaskInput): ShowVideoObjectMaskingTaskResponse;
28
- withOutput(output: TaskOutput): ShowVideoObjectMaskingTaskResponse;
29
- withConfig(config: VideoObjectMaskingTaskConfig): ShowVideoObjectMaskingTaskResponse;
30
- withCallback(callback: TaskCallback): ShowVideoObjectMaskingTaskResponse;
31
- withXRequestId(xRequestId: string): ShowVideoObjectMaskingTaskResponse;
32
- set xRequestId(xRequestId: string | undefined);
33
- get xRequestId(): string | undefined;
34
- }
35
- /**
36
- * @export
37
- * @enum {string}
38
- */
39
- export declare enum ShowVideoObjectMaskingTaskResponseStateEnum {
40
- SUCCEEDED = "SUCCEEDED",
41
- FAILED = "FAILED",
42
- RUNNING = "RUNNING"
43
- }
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ShowVideoObjectMaskingTaskResponseStateEnum = exports.ShowVideoObjectMaskingTaskResponse = void 0;
19
- var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
- var ShowVideoObjectMaskingTaskResponse = /** @class */ (function (_super) {
21
- __extends(ShowVideoObjectMaskingTaskResponse, _super);
22
- function ShowVideoObjectMaskingTaskResponse() {
23
- return _super.call(this) || this;
24
- }
25
- ShowVideoObjectMaskingTaskResponse.prototype.withTaskId = function (taskId) {
26
- this['task_id'] = taskId;
27
- return this;
28
- };
29
- Object.defineProperty(ShowVideoObjectMaskingTaskResponse.prototype, "taskId", {
30
- get: function () {
31
- return this['task_id'];
32
- },
33
- set: function (taskId) {
34
- this['task_id'] = taskId;
35
- },
36
- enumerable: false,
37
- configurable: true
38
- });
39
- ShowVideoObjectMaskingTaskResponse.prototype.withCreateTime = function (createTime) {
40
- this['create_time'] = createTime;
41
- return this;
42
- };
43
- Object.defineProperty(ShowVideoObjectMaskingTaskResponse.prototype, "createTime", {
44
- get: function () {
45
- return this['create_time'];
46
- },
47
- set: function (createTime) {
48
- this['create_time'] = createTime;
49
- },
50
- enumerable: false,
51
- configurable: true
52
- });
53
- ShowVideoObjectMaskingTaskResponse.prototype.withUpdateTime = function (updateTime) {
54
- this['update_time'] = updateTime;
55
- return this;
56
- };
57
- Object.defineProperty(ShowVideoObjectMaskingTaskResponse.prototype, "updateTime", {
58
- get: function () {
59
- return this['update_time'];
60
- },
61
- set: function (updateTime) {
62
- this['update_time'] = updateTime;
63
- },
64
- enumerable: false,
65
- configurable: true
66
- });
67
- ShowVideoObjectMaskingTaskResponse.prototype.withState = function (state) {
68
- this['state'] = state;
69
- return this;
70
- };
71
- ShowVideoObjectMaskingTaskResponse.prototype.withInput = function (input) {
72
- this['input'] = input;
73
- return this;
74
- };
75
- ShowVideoObjectMaskingTaskResponse.prototype.withOutput = function (output) {
76
- this['output'] = output;
77
- return this;
78
- };
79
- ShowVideoObjectMaskingTaskResponse.prototype.withConfig = function (config) {
80
- this['config'] = config;
81
- return this;
82
- };
83
- ShowVideoObjectMaskingTaskResponse.prototype.withCallback = function (callback) {
84
- this['callback'] = callback;
85
- return this;
86
- };
87
- ShowVideoObjectMaskingTaskResponse.prototype.withXRequestId = function (xRequestId) {
88
- this['X-request-id'] = xRequestId;
89
- return this;
90
- };
91
- Object.defineProperty(ShowVideoObjectMaskingTaskResponse.prototype, "xRequestId", {
92
- get: function () {
93
- return this['X-request-id'];
94
- },
95
- set: function (xRequestId) {
96
- this['X-request-id'] = xRequestId;
97
- },
98
- enumerable: false,
99
- configurable: true
100
- });
101
- return ShowVideoObjectMaskingTaskResponse;
102
- }(SdkResponse_1.SdkResponse));
103
- exports.ShowVideoObjectMaskingTaskResponse = ShowVideoObjectMaskingTaskResponse;
104
- /**
105
- * @export
106
- * @enum {string}
107
- */
108
- var ShowVideoObjectMaskingTaskResponseStateEnum;
109
- (function (ShowVideoObjectMaskingTaskResponseStateEnum) {
110
- ShowVideoObjectMaskingTaskResponseStateEnum["SUCCEEDED"] = "SUCCEEDED";
111
- ShowVideoObjectMaskingTaskResponseStateEnum["FAILED"] = "FAILED";
112
- ShowVideoObjectMaskingTaskResponseStateEnum["RUNNING"] = "RUNNING";
113
- })(ShowVideoObjectMaskingTaskResponseStateEnum = exports.ShowVideoObjectMaskingTaskResponseStateEnum || (exports.ShowVideoObjectMaskingTaskResponseStateEnum = {}));
@@ -1,8 +0,0 @@
1
- import { TaskInputData } from './TaskInputData';
2
- export declare class TaskInput {
3
- type: string;
4
- data: Array<TaskInputData>;
5
- constructor(type?: any, data?: any);
6
- withType(type: string): TaskInput;
7
- withData(data: Array<TaskInputData>): TaskInput;
8
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskInput = void 0;
4
- var TaskInput = /** @class */ (function () {
5
- function TaskInput(type, data) {
6
- this['type'] = type;
7
- this['data'] = data;
8
- }
9
- TaskInput.prototype.withType = function (type) {
10
- this['type'] = type;
11
- return this;
12
- };
13
- TaskInput.prototype.withData = function (data) {
14
- this['data'] = data;
15
- return this;
16
- };
17
- return TaskInput;
18
- }());
19
- exports.TaskInput = TaskInput;
@@ -1,11 +0,0 @@
1
- export declare class TaskInputData {
2
- bucket?: string;
3
- path?: string;
4
- url?: string;
5
- key?: string;
6
- constructor();
7
- withBucket(bucket: string): TaskInputData;
8
- withPath(path: string): TaskInputData;
9
- withUrl(url: string): TaskInputData;
10
- withKey(key: string): TaskInputData;
11
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskInputData = void 0;
4
- var TaskInputData = /** @class */ (function () {
5
- function TaskInputData() {
6
- }
7
- TaskInputData.prototype.withBucket = function (bucket) {
8
- this['bucket'] = bucket;
9
- return this;
10
- };
11
- TaskInputData.prototype.withPath = function (path) {
12
- this['path'] = path;
13
- return this;
14
- };
15
- TaskInputData.prototype.withUrl = function (url) {
16
- this['url'] = url;
17
- return this;
18
- };
19
- TaskInputData.prototype.withKey = function (key) {
20
- this['key'] = key;
21
- return this;
22
- };
23
- return TaskInputData;
24
- }());
25
- exports.TaskInputData = TaskInputData;
@@ -1,23 +0,0 @@
1
- export declare class VideoObjectMaskingInference {
2
- private 'pass_through'?;
3
- private 'scene_type';
4
- private 'outcome_name'?;
5
- constructor(sceneType?: any);
6
- withPassThrough(passThrough: string): VideoObjectMaskingInference;
7
- set passThrough(passThrough: string | undefined);
8
- get passThrough(): string | undefined;
9
- withSceneType(sceneType: VideoObjectMaskingInferenceSceneTypeEnum): VideoObjectMaskingInference;
10
- set sceneType(sceneType: VideoObjectMaskingInferenceSceneTypeEnum | undefined);
11
- get sceneType(): VideoObjectMaskingInferenceSceneTypeEnum | undefined;
12
- withOutcomeName(outcomeName: string): VideoObjectMaskingInference;
13
- set outcomeName(outcomeName: string | undefined);
14
- get outcomeName(): string | undefined;
15
- }
16
- /**
17
- * @export
18
- * @enum {string}
19
- */
20
- export declare enum VideoObjectMaskingInferenceSceneTypeEnum {
21
- INSIDE = "inside",
22
- OUTSIDE = "outside"
23
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VideoObjectMaskingInferenceSceneTypeEnum = exports.VideoObjectMaskingInference = void 0;
4
- var VideoObjectMaskingInference = /** @class */ (function () {
5
- function VideoObjectMaskingInference(sceneType) {
6
- this['scene_type'] = sceneType;
7
- }
8
- VideoObjectMaskingInference.prototype.withPassThrough = function (passThrough) {
9
- this['pass_through'] = passThrough;
10
- return this;
11
- };
12
- Object.defineProperty(VideoObjectMaskingInference.prototype, "passThrough", {
13
- get: function () {
14
- return this['pass_through'];
15
- },
16
- set: function (passThrough) {
17
- this['pass_through'] = passThrough;
18
- },
19
- enumerable: false,
20
- configurable: true
21
- });
22
- VideoObjectMaskingInference.prototype.withSceneType = function (sceneType) {
23
- this['scene_type'] = sceneType;
24
- return this;
25
- };
26
- Object.defineProperty(VideoObjectMaskingInference.prototype, "sceneType", {
27
- get: function () {
28
- return this['scene_type'];
29
- },
30
- set: function (sceneType) {
31
- this['scene_type'] = sceneType;
32
- },
33
- enumerable: false,
34
- configurable: true
35
- });
36
- VideoObjectMaskingInference.prototype.withOutcomeName = function (outcomeName) {
37
- this['outcome_name'] = outcomeName;
38
- return this;
39
- };
40
- Object.defineProperty(VideoObjectMaskingInference.prototype, "outcomeName", {
41
- get: function () {
42
- return this['outcome_name'];
43
- },
44
- set: function (outcomeName) {
45
- this['outcome_name'] = outcomeName;
46
- },
47
- enumerable: false,
48
- configurable: true
49
- });
50
- return VideoObjectMaskingInference;
51
- }());
52
- exports.VideoObjectMaskingInference = VideoObjectMaskingInference;
53
- /**
54
- * @export
55
- * @enum {string}
56
- */
57
- var VideoObjectMaskingInferenceSceneTypeEnum;
58
- (function (VideoObjectMaskingInferenceSceneTypeEnum) {
59
- VideoObjectMaskingInferenceSceneTypeEnum["INSIDE"] = "inside";
60
- VideoObjectMaskingInferenceSceneTypeEnum["OUTSIDE"] = "outside";
61
- })(VideoObjectMaskingInferenceSceneTypeEnum = exports.VideoObjectMaskingInferenceSceneTypeEnum || (exports.VideoObjectMaskingInferenceSceneTypeEnum = {}));
@@ -1,6 +0,0 @@
1
- import { VideoObjectMaskingTaskConfigCommon } from './VideoObjectMaskingTaskConfigCommon';
2
- export declare class VideoObjectMaskingTaskConfig {
3
- common: VideoObjectMaskingTaskConfigCommon;
4
- constructor(common?: any);
5
- withCommon(common: VideoObjectMaskingTaskConfigCommon): VideoObjectMaskingTaskConfig;
6
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VideoObjectMaskingTaskConfig = void 0;
4
- var VideoObjectMaskingTaskConfig = /** @class */ (function () {
5
- function VideoObjectMaskingTaskConfig(common) {
6
- this['common'] = common;
7
- }
8
- VideoObjectMaskingTaskConfig.prototype.withCommon = function (common) {
9
- this['common'] = common;
10
- return this;
11
- };
12
- return VideoObjectMaskingTaskConfig;
13
- }());
14
- exports.VideoObjectMaskingTaskConfig = VideoObjectMaskingTaskConfig;
@@ -1,6 +0,0 @@
1
- import { VideoObjectMaskingInference } from './VideoObjectMaskingInference';
2
- export declare class VideoObjectMaskingTaskConfigCommon {
3
- inference: VideoObjectMaskingInference;
4
- constructor(inference?: any);
5
- withInference(inference: VideoObjectMaskingInference): VideoObjectMaskingTaskConfigCommon;
6
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VideoObjectMaskingTaskConfigCommon = void 0;
4
- var VideoObjectMaskingTaskConfigCommon = /** @class */ (function () {
5
- function VideoObjectMaskingTaskConfigCommon(inference) {
6
- this['inference'] = inference;
7
- }
8
- VideoObjectMaskingTaskConfigCommon.prototype.withInference = function (inference) {
9
- this['inference'] = inference;
10
- return this;
11
- };
12
- return VideoObjectMaskingTaskConfigCommon;
13
- }());
14
- exports.VideoObjectMaskingTaskConfigCommon = VideoObjectMaskingTaskConfigCommon;