@alicloud/quanmiaolightapp20240801 2.10.0 → 2.11.0

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/src/client.ts CHANGED
@@ -3419,4 +3419,59 @@ export default class Client extends OpenApi {
3419
3419
  return await this.updateVideoAnalysisTaskWithOptions(workspaceId, request, headers, runtime);
3420
3420
  }
3421
3421
 
3422
+ /**
3423
+ * 视频理解-批量修改任务状态
3424
+ *
3425
+ * @param tmpReq - UpdateVideoAnalysisTasksRequest
3426
+ * @param headers - map
3427
+ * @param runtime - runtime options for this request RuntimeOptions
3428
+ * @returns UpdateVideoAnalysisTasksResponse
3429
+ */
3430
+ async updateVideoAnalysisTasksWithOptions(workspaceId: string, tmpReq: $_model.UpdateVideoAnalysisTasksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateVideoAnalysisTasksResponse> {
3431
+ tmpReq.validate();
3432
+ let request = new $_model.UpdateVideoAnalysisTasksShrinkRequest({ });
3433
+ OpenApiUtil.convert(tmpReq, request);
3434
+ if (!$dara.isNull(tmpReq.taskIds)) {
3435
+ request.taskIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskIds, "taskIds", "json");
3436
+ }
3437
+
3438
+ let body : {[key: string ]: any} = { };
3439
+ if (!$dara.isNull(request.taskIdsShrink)) {
3440
+ body["taskIds"] = request.taskIdsShrink;
3441
+ }
3442
+
3443
+ if (!$dara.isNull(request.taskStatus)) {
3444
+ body["taskStatus"] = request.taskStatus;
3445
+ }
3446
+
3447
+ let req = new $OpenApiUtil.OpenApiRequest({
3448
+ headers: headers,
3449
+ body: OpenApiUtil.parseToMap(body),
3450
+ });
3451
+ let params = new $OpenApiUtil.Params({
3452
+ action: "UpdateVideoAnalysisTasks",
3453
+ version: "2024-08-01",
3454
+ protocol: "HTTPS",
3455
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/videoAnalysis/updateVideoAnalysisTasks`,
3456
+ method: "PUT",
3457
+ authType: "AK",
3458
+ style: "ROA",
3459
+ reqBodyType: "formData",
3460
+ bodyType: "json",
3461
+ });
3462
+ return $dara.cast<$_model.UpdateVideoAnalysisTasksResponse>(await this.callApi(params, req, runtime), new $_model.UpdateVideoAnalysisTasksResponse({}));
3463
+ }
3464
+
3465
+ /**
3466
+ * 视频理解-批量修改任务状态
3467
+ *
3468
+ * @param request - UpdateVideoAnalysisTasksRequest
3469
+ * @returns UpdateVideoAnalysisTasksResponse
3470
+ */
3471
+ async updateVideoAnalysisTasks(workspaceId: string, request: $_model.UpdateVideoAnalysisTasksRequest): Promise<$_model.UpdateVideoAnalysisTasksResponse> {
3472
+ let runtime = new $dara.RuntimeOptions({ });
3473
+ let headers : {[key: string ]: string} = { };
3474
+ return await this.updateVideoAnalysisTasksWithOptions(workspaceId, request, headers, runtime);
3475
+ }
3476
+
3422
3477
  }
@@ -0,0 +1,44 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateVideoAnalysisTasksRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ taskIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * CANCELED
17
+ */
18
+ taskStatus?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ taskIds: 'taskIds',
22
+ taskStatus: 'taskStatus',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ taskIds: { 'type': 'array', 'itemType': 'string' },
29
+ taskStatus: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(Array.isArray(this.taskIds)) {
35
+ $dara.Model.validateArray(this.taskIds);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateVideoAnalysisTasksResponseBody } from "./UpdateVideoAnalysisTasksResponseBody";
4
+
5
+
6
+ export class UpdateVideoAnalysisTasksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateVideoAnalysisTasksResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: UpdateVideoAnalysisTasksResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,116 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateVideoAnalysisTasksResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * xx
9
+ */
10
+ taskErrorCode?: string;
11
+ /**
12
+ * @example
13
+ * xx
14
+ */
15
+ taskErrorMessage?: string;
16
+ /**
17
+ * @example
18
+ * xx
19
+ */
20
+ taskId?: string;
21
+ /**
22
+ * @example
23
+ * CANCELED
24
+ */
25
+ taskStatus?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ taskErrorCode: 'taskErrorCode',
29
+ taskErrorMessage: 'taskErrorMessage',
30
+ taskId: 'taskId',
31
+ taskStatus: 'taskStatus',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ taskErrorCode: 'string',
38
+ taskErrorMessage: 'string',
39
+ taskId: 'string',
40
+ taskStatus: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class UpdateVideoAnalysisTasksResponseBody extends $dara.Model {
54
+ /**
55
+ * @example
56
+ * successful
57
+ */
58
+ code?: string;
59
+ data?: UpdateVideoAnalysisTasksResponseBodyData[];
60
+ /**
61
+ * @example
62
+ * 200
63
+ */
64
+ httpStatusCode?: number;
65
+ /**
66
+ * @example
67
+ * success
68
+ */
69
+ message?: string;
70
+ /**
71
+ * @remarks
72
+ * Id of the request
73
+ *
74
+ * @example
75
+ * 04DA1A52-4E51-56CB-BA64-FDDA0B53BAE8
76
+ */
77
+ requestId?: string;
78
+ /**
79
+ * @example
80
+ * true
81
+ */
82
+ success?: boolean;
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ code: 'code',
86
+ data: 'data',
87
+ httpStatusCode: 'httpStatusCode',
88
+ message: 'message',
89
+ requestId: 'requestId',
90
+ success: 'success',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ code: 'string',
97
+ data: { 'type': 'array', 'itemType': UpdateVideoAnalysisTasksResponseBodyData },
98
+ httpStatusCode: 'number',
99
+ message: 'string',
100
+ requestId: 'string',
101
+ success: 'boolean',
102
+ };
103
+ }
104
+
105
+ validate() {
106
+ if(Array.isArray(this.data)) {
107
+ $dara.Model.validateArray(this.data);
108
+ }
109
+ super.validate();
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateVideoAnalysisTasksShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ taskIdsShrink?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * CANCELED
17
+ */
18
+ taskStatus?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ taskIdsShrink: 'taskIds',
22
+ taskStatus: 'taskStatus',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ taskIdsShrink: 'string',
29
+ taskStatus: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -174,6 +174,7 @@ export { SubmitVideoAnalysisTaskRequestVideoRolesTimeIntervals } from './SubmitV
174
174
  export { SubmitVideoAnalysisTaskRequestVideoRoles } from './SubmitVideoAnalysisTaskRequest';
175
175
  export { SubmitVideoAnalysisTaskResponseBodyData } from './SubmitVideoAnalysisTaskResponseBody';
176
176
  export { UpdateVideoAnalysisTaskResponseBodyData } from './UpdateVideoAnalysisTaskResponseBody';
177
+ export { UpdateVideoAnalysisTasksResponseBodyData } from './UpdateVideoAnalysisTasksResponseBody';
177
178
  export { CancelAsyncTaskRequest } from './CancelAsyncTaskRequest';
178
179
  export { CancelAsyncTaskResponseBody } from './CancelAsyncTaskResponseBody';
179
180
  export { CancelAsyncTaskResponse } from './CancelAsyncTaskResponse';
@@ -289,3 +290,7 @@ export { UpdateVideoAnalysisConfigResponse } from './UpdateVideoAnalysisConfigRe
289
290
  export { UpdateVideoAnalysisTaskRequest } from './UpdateVideoAnalysisTaskRequest';
290
291
  export { UpdateVideoAnalysisTaskResponseBody } from './UpdateVideoAnalysisTaskResponseBody';
291
292
  export { UpdateVideoAnalysisTaskResponse } from './UpdateVideoAnalysisTaskResponse';
293
+ export { UpdateVideoAnalysisTasksRequest } from './UpdateVideoAnalysisTasksRequest';
294
+ export { UpdateVideoAnalysisTasksShrinkRequest } from './UpdateVideoAnalysisTasksShrinkRequest';
295
+ export { UpdateVideoAnalysisTasksResponseBody } from './UpdateVideoAnalysisTasksResponseBody';
296
+ export { UpdateVideoAnalysisTasksResponse } from './UpdateVideoAnalysisTasksResponse';