@alicloud/ecd20200930 4.9.0 → 4.10.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +51 -0
  2. package/dist/client.js +162 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateCloudDriveGroupRequest.d.ts +58 -0
  5. package/dist/models/CreateCloudDriveGroupRequest.js +69 -0
  6. package/dist/models/CreateCloudDriveGroupRequest.js.map +1 -0
  7. package/dist/models/CreateCloudDriveGroupResponse.d.ts +19 -0
  8. package/dist/models/CreateCloudDriveGroupResponse.js +69 -0
  9. package/dist/models/CreateCloudDriveGroupResponse.js.map +1 -0
  10. package/dist/models/CreateCloudDriveGroupResponseBody.d.ts +53 -0
  11. package/dist/models/CreateCloudDriveGroupResponseBody.js +66 -0
  12. package/dist/models/CreateCloudDriveGroupResponseBody.js.map +1 -0
  13. package/dist/models/CreateEcdReportTaskRequest.d.ts +54 -0
  14. package/dist/models/CreateEcdReportTaskRequest.js +93 -0
  15. package/dist/models/CreateEcdReportTaskRequest.js.map +1 -0
  16. package/dist/models/CreateEcdReportTaskResponse.d.ts +19 -0
  17. package/dist/models/CreateEcdReportTaskResponse.js +69 -0
  18. package/dist/models/CreateEcdReportTaskResponse.js.map +1 -0
  19. package/dist/models/CreateEcdReportTaskResponseBody.d.ts +38 -0
  20. package/dist/models/CreateEcdReportTaskResponseBody.js +66 -0
  21. package/dist/models/CreateEcdReportTaskResponseBody.js.map +1 -0
  22. package/dist/models/DescribeEcdReportTasksRequest.d.ts +39 -0
  23. package/dist/models/DescribeEcdReportTasksRequest.js +71 -0
  24. package/dist/models/DescribeEcdReportTasksRequest.js.map +1 -0
  25. package/dist/models/DescribeEcdReportTasksResponse.d.ts +19 -0
  26. package/dist/models/DescribeEcdReportTasksResponse.js +69 -0
  27. package/dist/models/DescribeEcdReportTasksResponse.js.map +1 -0
  28. package/dist/models/DescribeEcdReportTasksResponseBody.d.ts +87 -0
  29. package/dist/models/DescribeEcdReportTasksResponseBody.js +104 -0
  30. package/dist/models/DescribeEcdReportTasksResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +11 -0
  32. package/dist/models/model.js +42 -20
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +184 -0
  36. package/src/models/CreateCloudDriveGroupRequest.ts +82 -0
  37. package/src/models/CreateCloudDriveGroupResponse.ts +40 -0
  38. package/src/models/CreateCloudDriveGroupResponseBody.ts +74 -0
  39. package/src/models/CreateEcdReportTaskRequest.ts +93 -0
  40. package/src/models/CreateEcdReportTaskResponse.ts +40 -0
  41. package/src/models/CreateEcdReportTaskResponseBody.ts +59 -0
  42. package/src/models/DescribeEcdReportTasksRequest.ts +65 -0
  43. package/src/models/DescribeEcdReportTasksResponse.ts +40 -0
  44. package/src/models/DescribeEcdReportTasksResponseBody.ts +137 -0
  45. package/src/models/model.ts +11 -0
package/src/client.ts CHANGED
@@ -2642,6 +2642,70 @@ export default class Client extends OpenApi {
2642
2642
  return await this.createCenterPolicyWithOptions(request, runtime);
2643
2643
  }
2644
2644
 
2645
+ /**
2646
+ * Authorizes a user to use a team space.
2647
+ *
2648
+ * @remarks
2649
+ * The list of teams of a cloud disk in Cloud Drive Service is synchronized from the Organization tab in the Elastic Desktop Service (EDS) console. You can choose Users > Manager User > User > Organization in the console. If you want to authorize a user to use a team space, you must move the user to the corresponding organization. After you move the user, the user can view the menu bar of the team space on a Cloud Drive Service client.
2650
+ *
2651
+ * @param request - CreateCloudDriveGroupRequest
2652
+ * @param runtime - runtime options for this request RuntimeOptions
2653
+ * @returns CreateCloudDriveGroupResponse
2654
+ */
2655
+ async createCloudDriveGroupWithOptions(request: $_model.CreateCloudDriveGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCloudDriveGroupResponse> {
2656
+ request.validate();
2657
+ let query = { };
2658
+ if (!$dara.isNull(request.adminUserIds)) {
2659
+ query["AdminUserIds"] = request.adminUserIds;
2660
+ }
2661
+
2662
+ if (!$dara.isNull(request.cdsId)) {
2663
+ query["CdsId"] = request.cdsId;
2664
+ }
2665
+
2666
+ if (!$dara.isNull(request.groupId)) {
2667
+ query["GroupId"] = request.groupId;
2668
+ }
2669
+
2670
+ if (!$dara.isNull(request.regionId)) {
2671
+ query["RegionId"] = request.regionId;
2672
+ }
2673
+
2674
+ if (!$dara.isNull(request.totalSize)) {
2675
+ query["TotalSize"] = request.totalSize;
2676
+ }
2677
+
2678
+ let req = new $OpenApiUtil.OpenApiRequest({
2679
+ query: OpenApiUtil.query(query),
2680
+ });
2681
+ let params = new $OpenApiUtil.Params({
2682
+ action: "CreateCloudDriveGroup",
2683
+ version: "2020-09-30",
2684
+ protocol: "HTTPS",
2685
+ pathname: "/",
2686
+ method: "POST",
2687
+ authType: "AK",
2688
+ style: "RPC",
2689
+ reqBodyType: "formData",
2690
+ bodyType: "json",
2691
+ });
2692
+ return $dara.cast<$_model.CreateCloudDriveGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateCloudDriveGroupResponse({}));
2693
+ }
2694
+
2695
+ /**
2696
+ * Authorizes a user to use a team space.
2697
+ *
2698
+ * @remarks
2699
+ * The list of teams of a cloud disk in Cloud Drive Service is synchronized from the Organization tab in the Elastic Desktop Service (EDS) console. You can choose Users > Manager User > User > Organization in the console. If you want to authorize a user to use a team space, you must move the user to the corresponding organization. After you move the user, the user can view the menu bar of the team space on a Cloud Drive Service client.
2700
+ *
2701
+ * @param request - CreateCloudDriveGroupRequest
2702
+ * @returns CreateCloudDriveGroupResponse
2703
+ */
2704
+ async createCloudDriveGroup(request: $_model.CreateCloudDriveGroupRequest): Promise<$_model.CreateCloudDriveGroupResponse> {
2705
+ let runtime = new $dara.RuntimeOptions({ });
2706
+ return await this.createCloudDriveGroupWithOptions(request, runtime);
2707
+ }
2708
+
2645
2709
  /**
2646
2710
  * Creates an enterprise drive.
2647
2711
  *
@@ -3596,6 +3660,64 @@ export default class Client extends OpenApi {
3596
3660
  return await this.createDriveWithOptions(request, runtime);
3597
3661
  }
3598
3662
 
3663
+ /**
3664
+ * 创建无影数据报表导出任务
3665
+ *
3666
+ * @param request - CreateEcdReportTaskRequest
3667
+ * @param runtime - runtime options for this request RuntimeOptions
3668
+ * @returns CreateEcdReportTaskResponse
3669
+ */
3670
+ async createEcdReportTaskWithOptions(request: $_model.CreateEcdReportTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateEcdReportTaskResponse> {
3671
+ request.validate();
3672
+ let query = { };
3673
+ if (!$dara.isNull(request.filterList)) {
3674
+ query["FilterList"] = request.filterList;
3675
+ }
3676
+
3677
+ if (!$dara.isNull(request.langType)) {
3678
+ query["LangType"] = request.langType;
3679
+ }
3680
+
3681
+ if (!$dara.isNull(request.reportFileName)) {
3682
+ query["ReportFileName"] = request.reportFileName;
3683
+ }
3684
+
3685
+ if (!$dara.isNull(request.subType)) {
3686
+ query["SubType"] = request.subType;
3687
+ }
3688
+
3689
+ if (!$dara.isNull(request.taskType)) {
3690
+ query["TaskType"] = request.taskType;
3691
+ }
3692
+
3693
+ let req = new $OpenApiUtil.OpenApiRequest({
3694
+ query: OpenApiUtil.query(query),
3695
+ });
3696
+ let params = new $OpenApiUtil.Params({
3697
+ action: "CreateEcdReportTask",
3698
+ version: "2020-09-30",
3699
+ protocol: "HTTPS",
3700
+ pathname: "/",
3701
+ method: "POST",
3702
+ authType: "AK",
3703
+ style: "RPC",
3704
+ reqBodyType: "formData",
3705
+ bodyType: "json",
3706
+ });
3707
+ return $dara.cast<$_model.CreateEcdReportTaskResponse>(await this.callApi(params, req, runtime), new $_model.CreateEcdReportTaskResponse({}));
3708
+ }
3709
+
3710
+ /**
3711
+ * 创建无影数据报表导出任务
3712
+ *
3713
+ * @param request - CreateEcdReportTaskRequest
3714
+ * @returns CreateEcdReportTaskResponse
3715
+ */
3716
+ async createEcdReportTask(request: $_model.CreateEcdReportTaskRequest): Promise<$_model.CreateEcdReportTaskResponse> {
3717
+ let runtime = new $dara.RuntimeOptions({ });
3718
+ return await this.createEcdReportTaskWithOptions(request, runtime);
3719
+ }
3720
+
3599
3721
  /**
3600
3722
  * Creates a custom image based on a deployed cloud computer. Then, you can use the custom image to create cloud computers that have the same configurations. This prevents the repeated settings when you create cloud computers.
3601
3723
  *
@@ -7487,6 +7609,68 @@ export default class Client extends OpenApi {
7487
7609
  return await this.describeDrivesWithOptions(request, runtime);
7488
7610
  }
7489
7611
 
7612
+ /**
7613
+ * 查询数据报表导出任务列表
7614
+ *
7615
+ * @param request - DescribeEcdReportTasksRequest
7616
+ * @param runtime - runtime options for this request RuntimeOptions
7617
+ * @returns DescribeEcdReportTasksResponse
7618
+ */
7619
+ async describeEcdReportTasksWithOptions(request: $_model.DescribeEcdReportTasksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEcdReportTasksResponse> {
7620
+ request.validate();
7621
+ let query = { };
7622
+ if (!$dara.isNull(request.pageNum)) {
7623
+ query["PageNum"] = request.pageNum;
7624
+ }
7625
+
7626
+ if (!$dara.isNull(request.pageSize)) {
7627
+ query["PageSize"] = request.pageSize;
7628
+ }
7629
+
7630
+ if (!$dara.isNull(request.status)) {
7631
+ query["Status"] = request.status;
7632
+ }
7633
+
7634
+ if (!$dara.isNull(request.subType)) {
7635
+ query["SubType"] = request.subType;
7636
+ }
7637
+
7638
+ if (!$dara.isNull(request.taskId)) {
7639
+ query["TaskId"] = request.taskId;
7640
+ }
7641
+
7642
+ if (!$dara.isNull(request.taskType)) {
7643
+ query["TaskType"] = request.taskType;
7644
+ }
7645
+
7646
+ let req = new $OpenApiUtil.OpenApiRequest({
7647
+ query: OpenApiUtil.query(query),
7648
+ });
7649
+ let params = new $OpenApiUtil.Params({
7650
+ action: "DescribeEcdReportTasks",
7651
+ version: "2020-09-30",
7652
+ protocol: "HTTPS",
7653
+ pathname: "/",
7654
+ method: "POST",
7655
+ authType: "AK",
7656
+ style: "RPC",
7657
+ reqBodyType: "formData",
7658
+ bodyType: "json",
7659
+ });
7660
+ return $dara.cast<$_model.DescribeEcdReportTasksResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEcdReportTasksResponse({}));
7661
+ }
7662
+
7663
+ /**
7664
+ * 查询数据报表导出任务列表
7665
+ *
7666
+ * @param request - DescribeEcdReportTasksRequest
7667
+ * @returns DescribeEcdReportTasksResponse
7668
+ */
7669
+ async describeEcdReportTasks(request: $_model.DescribeEcdReportTasksRequest): Promise<$_model.DescribeEcdReportTasksResponse> {
7670
+ let runtime = new $dara.RuntimeOptions({ });
7671
+ return await this.describeEcdReportTasksWithOptions(request, runtime);
7672
+ }
7673
+
7490
7674
  /**
7491
7675
  * 查询EIP监控
7492
7676
  *
@@ -0,0 +1,82 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateCloudDriveGroupRequest extends $dara.Model {
6
+ /**
7
+ * **if can be null:**
8
+ * true
9
+ */
10
+ adminUserIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * The ID of the cloud disk in Cloud Drive Service.
14
+ *
15
+ * This parameter is required.
16
+ *
17
+ * @example
18
+ * cn-hangzhou+cds-532033****
19
+ */
20
+ cdsId?: string;
21
+ /**
22
+ * @remarks
23
+ * The ID of the team.
24
+ *
25
+ * This parameter is required.
26
+ *
27
+ * @example
28
+ * 7f4bbccda0cf40bb85981b65fb5e****
29
+ */
30
+ groupId?: string;
31
+ /**
32
+ * @remarks
33
+ * The ID of the region.
34
+ *
35
+ * This parameter is required.
36
+ *
37
+ * @example
38
+ * cn-hangzhou
39
+ */
40
+ regionId?: string;
41
+ /**
42
+ * @remarks
43
+ * The size of the cloud disk in Cloud Drive Service. Unit: bytes. The size is unlimited.
44
+ *
45
+ * This parameter is required.
46
+ *
47
+ * @example
48
+ * 1024000
49
+ */
50
+ totalSize?: number;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ adminUserIds: 'AdminUserIds',
54
+ cdsId: 'CdsId',
55
+ groupId: 'GroupId',
56
+ regionId: 'RegionId',
57
+ totalSize: 'TotalSize',
58
+ };
59
+ }
60
+
61
+ static types(): { [key: string]: any } {
62
+ return {
63
+ adminUserIds: { 'type': 'array', 'itemType': 'string' },
64
+ cdsId: 'string',
65
+ groupId: 'string',
66
+ regionId: 'string',
67
+ totalSize: 'number',
68
+ };
69
+ }
70
+
71
+ validate() {
72
+ if(Array.isArray(this.adminUserIds)) {
73
+ $dara.Model.validateArray(this.adminUserIds);
74
+ }
75
+ super.validate();
76
+ }
77
+
78
+ constructor(map?: { [key: string]: any }) {
79
+ super(map);
80
+ }
81
+ }
82
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateCloudDriveGroupResponseBody } from "./CreateCloudDriveGroupResponseBody";
4
+
5
+
6
+ export class CreateCloudDriveGroupResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateCloudDriveGroupResponseBody;
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: CreateCloudDriveGroupResponseBody,
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,74 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateCloudDriveGroupResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The returned results. A value of success indicates that the operation is successful. If the operation failed, an error message is returned.
9
+ *
10
+ * @example
11
+ * success
12
+ */
13
+ code?: string;
14
+ /**
15
+ * @remarks
16
+ * The data information.
17
+ *
18
+ * @example
19
+ * []
20
+ */
21
+ data?: string;
22
+ /**
23
+ * @remarks
24
+ * The error message that is returned. This parameter is not returned if the value of Code is success.
25
+ *
26
+ * @example
27
+ * success
28
+ */
29
+ message?: string;
30
+ /**
31
+ * @remarks
32
+ * The ID of the request.
33
+ *
34
+ * @example
35
+ * FD14D2A1-CC39-5ED3-8EE7-11FDF4B9D6D2
36
+ */
37
+ requestId?: string;
38
+ /**
39
+ * @remarks
40
+ * Indicates whether the call is successful. true: The call is successful. false: The call fails.
41
+ *
42
+ * @example
43
+ * True
44
+ */
45
+ success?: boolean;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ code: 'Code',
49
+ data: 'Data',
50
+ message: 'Message',
51
+ requestId: 'RequestId',
52
+ success: 'Success',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ code: 'string',
59
+ data: 'string',
60
+ message: 'string',
61
+ requestId: 'string',
62
+ success: 'boolean',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
@@ -0,0 +1,93 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateEcdReportTaskRequestFilterList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * Tag:TestKey
9
+ */
10
+ filterKey?: string;
11
+ filterValues?: string[];
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ filterKey: 'FilterKey',
15
+ filterValues: 'FilterValues',
16
+ };
17
+ }
18
+
19
+ static types(): { [key: string]: any } {
20
+ return {
21
+ filterKey: 'string',
22
+ filterValues: { 'type': 'array', 'itemType': 'string' },
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(Array.isArray(this.filterValues)) {
28
+ $dara.Model.validateArray(this.filterValues);
29
+ }
30
+ super.validate();
31
+ }
32
+
33
+ constructor(map?: { [key: string]: any }) {
34
+ super(map);
35
+ }
36
+ }
37
+
38
+ export class CreateEcdReportTaskRequest extends $dara.Model {
39
+ filterList?: CreateEcdReportTaskRequestFilterList[];
40
+ /**
41
+ * @example
42
+ * zh-CN
43
+ */
44
+ langType?: string;
45
+ reportFileName?: string;
46
+ /**
47
+ * @remarks
48
+ * This parameter is required.
49
+ *
50
+ * @example
51
+ * DESKTOP
52
+ */
53
+ subType?: string;
54
+ /**
55
+ * @remarks
56
+ * This parameter is required.
57
+ *
58
+ * @example
59
+ * RESOURCE_REPORT
60
+ */
61
+ taskType?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ filterList: 'FilterList',
65
+ langType: 'LangType',
66
+ reportFileName: 'ReportFileName',
67
+ subType: 'SubType',
68
+ taskType: 'TaskType',
69
+ };
70
+ }
71
+
72
+ static types(): { [key: string]: any } {
73
+ return {
74
+ filterList: { 'type': 'array', 'itemType': CreateEcdReportTaskRequestFilterList },
75
+ langType: 'string',
76
+ reportFileName: 'string',
77
+ subType: 'string',
78
+ taskType: 'string',
79
+ };
80
+ }
81
+
82
+ validate() {
83
+ if(Array.isArray(this.filterList)) {
84
+ $dara.Model.validateArray(this.filterList);
85
+ }
86
+ super.validate();
87
+ }
88
+
89
+ constructor(map?: { [key: string]: any }) {
90
+ super(map);
91
+ }
92
+ }
93
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateEcdReportTaskResponseBody } from "./CreateEcdReportTaskResponseBody";
4
+
5
+
6
+ export class CreateEcdReportTaskResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateEcdReportTaskResponseBody;
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: CreateEcdReportTaskResponseBody,
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,59 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateEcdReportTaskResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * success
9
+ */
10
+ code?: string;
11
+ /**
12
+ * @example
13
+ * success
14
+ */
15
+ message?: string;
16
+ /**
17
+ * @example
18
+ * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
19
+ */
20
+ requestId?: string;
21
+ /**
22
+ * @example
23
+ * True
24
+ */
25
+ success?: boolean;
26
+ /**
27
+ * @example
28
+ * ret-g67ip******
29
+ */
30
+ taskId?: string;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ code: 'Code',
34
+ message: 'Message',
35
+ requestId: 'RequestId',
36
+ success: 'Success',
37
+ taskId: 'TaskId',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ code: 'string',
44
+ message: 'string',
45
+ requestId: 'string',
46
+ success: 'boolean',
47
+ taskId: 'string',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
@@ -0,0 +1,65 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeEcdReportTasksRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 1
9
+ */
10
+ pageNum?: number;
11
+ /**
12
+ * @example
13
+ * 20。
14
+ */
15
+ pageSize?: number;
16
+ status?: string[];
17
+ /**
18
+ * @example
19
+ * DESKTOP
20
+ */
21
+ subType?: string;
22
+ /**
23
+ * @example
24
+ * ret-sfkdsjfi*****
25
+ */
26
+ taskId?: string;
27
+ /**
28
+ * @example
29
+ * RESOURCE_REPORT
30
+ */
31
+ taskType?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ pageNum: 'PageNum',
35
+ pageSize: 'PageSize',
36
+ status: 'Status',
37
+ subType: 'SubType',
38
+ taskId: 'TaskId',
39
+ taskType: 'TaskType',
40
+ };
41
+ }
42
+
43
+ static types(): { [key: string]: any } {
44
+ return {
45
+ pageNum: 'number',
46
+ pageSize: 'number',
47
+ status: { 'type': 'array', 'itemType': 'string' },
48
+ subType: 'string',
49
+ taskId: 'string',
50
+ taskType: 'string',
51
+ };
52
+ }
53
+
54
+ validate() {
55
+ if(Array.isArray(this.status)) {
56
+ $dara.Model.validateArray(this.status);
57
+ }
58
+ super.validate();
59
+ }
60
+
61
+ constructor(map?: { [key: string]: any }) {
62
+ super(map);
63
+ }
64
+ }
65
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeEcdReportTasksResponseBody } from "./DescribeEcdReportTasksResponseBody";
4
+
5
+
6
+ export class DescribeEcdReportTasksResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeEcdReportTasksResponseBody;
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: DescribeEcdReportTasksResponseBody,
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
+