@alicloud/ecd20200930 4.22.4 → 4.23.1

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 (49) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +99 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateConfigGroupRequest.d.ts +6 -0
  5. package/dist/models/CreateConfigGroupRequest.js +4 -0
  6. package/dist/models/CreateConfigGroupRequest.js.map +1 -1
  7. package/dist/models/DescribeTimerGroupResponseBody.d.ts +6 -0
  8. package/dist/models/DescribeTimerGroupResponseBody.js +4 -0
  9. package/dist/models/DescribeTimerGroupResponseBody.js.map +1 -1
  10. package/dist/models/QueryHistoryActiveUserCountRequest.d.ts +18 -0
  11. package/dist/models/QueryHistoryActiveUserCountRequest.js +58 -0
  12. package/dist/models/QueryHistoryActiveUserCountRequest.js.map +1 -0
  13. package/dist/models/QueryHistoryActiveUserCountResponse.d.ts +19 -0
  14. package/dist/models/QueryHistoryActiveUserCountResponse.js +69 -0
  15. package/dist/models/QueryHistoryActiveUserCountResponse.js.map +1 -0
  16. package/dist/models/QueryHistoryActiveUserCountResponseBody.d.ts +41 -0
  17. package/dist/models/QueryHistoryActiveUserCountResponseBody.js +84 -0
  18. package/dist/models/QueryHistoryActiveUserCountResponseBody.js.map +1 -0
  19. package/dist/models/QueryHistoryMetricDistributionRequest.d.ts +66 -0
  20. package/dist/models/QueryHistoryMetricDistributionRequest.js +94 -0
  21. package/dist/models/QueryHistoryMetricDistributionRequest.js.map +1 -0
  22. package/dist/models/QueryHistoryMetricDistributionResponse.d.ts +19 -0
  23. package/dist/models/QueryHistoryMetricDistributionResponse.js +69 -0
  24. package/dist/models/QueryHistoryMetricDistributionResponse.js.map +1 -0
  25. package/dist/models/QueryHistoryMetricDistributionResponseBody.d.ts +56 -0
  26. package/dist/models/QueryHistoryMetricDistributionResponseBody.js +90 -0
  27. package/dist/models/QueryHistoryMetricDistributionResponseBody.js.map +1 -0
  28. package/dist/models/RebootDesktopsRequest.d.ts +6 -0
  29. package/dist/models/RebootDesktopsRequest.js +4 -0
  30. package/dist/models/RebootDesktopsRequest.js.map +1 -1
  31. package/dist/models/StopDesktopsRequest.d.ts +10 -0
  32. package/dist/models/StopDesktopsRequest.js +4 -0
  33. package/dist/models/StopDesktopsRequest.js.map +1 -1
  34. package/dist/models/model.d.ts +9 -0
  35. package/dist/models/model.js +36 -18
  36. package/dist/models/model.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/client.ts +112 -0
  39. package/src/models/CreateConfigGroupRequest.ts +10 -0
  40. package/src/models/DescribeTimerGroupResponseBody.ts +10 -0
  41. package/src/models/QueryHistoryActiveUserCountRequest.ts +31 -0
  42. package/src/models/QueryHistoryActiveUserCountResponse.ts +40 -0
  43. package/src/models/QueryHistoryActiveUserCountResponseBody.ts +71 -0
  44. package/src/models/QueryHistoryMetricDistributionRequest.ts +106 -0
  45. package/src/models/QueryHistoryMetricDistributionResponse.ts +40 -0
  46. package/src/models/QueryHistoryMetricDistributionResponseBody.ts +92 -0
  47. package/src/models/RebootDesktopsRequest.ts +10 -0
  48. package/src/models/StopDesktopsRequest.ts +14 -0
  49. package/src/models/model.ts +9 -0
@@ -0,0 +1,106 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryHistoryMetricDistributionRequestRanges extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * false
9
+ */
10
+ includeMax?: boolean;
11
+ /**
12
+ * @example
13
+ * true
14
+ */
15
+ includeMin?: boolean;
16
+ /**
17
+ * @example
18
+ * label-02\\"
19
+ */
20
+ label?: string;
21
+ /**
22
+ * @example
23
+ * 20
24
+ */
25
+ max?: number;
26
+ /**
27
+ * @example
28
+ * 0
29
+ */
30
+ min?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ includeMax: 'IncludeMax',
34
+ includeMin: 'IncludeMin',
35
+ label: 'Label',
36
+ max: 'Max',
37
+ min: 'Min',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ includeMax: 'boolean',
44
+ includeMin: 'boolean',
45
+ label: 'string',
46
+ max: 'number',
47
+ min: 'number',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class QueryHistoryMetricDistributionRequest extends $dara.Model {
61
+ /**
62
+ * @example
63
+ * 2026-04-01
64
+ */
65
+ endDate?: string;
66
+ /**
67
+ * @example
68
+ * LOAD_SCORE
69
+ */
70
+ metricName?: string;
71
+ ranges?: QueryHistoryMetricDistributionRequestRanges[];
72
+ /**
73
+ * @example
74
+ * 2026-04-01
75
+ */
76
+ startDate?: string;
77
+ static names(): { [key: string]: string } {
78
+ return {
79
+ endDate: 'EndDate',
80
+ metricName: 'MetricName',
81
+ ranges: 'Ranges',
82
+ startDate: 'StartDate',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ endDate: 'string',
89
+ metricName: 'string',
90
+ ranges: { 'type': 'array', 'itemType': QueryHistoryMetricDistributionRequestRanges },
91
+ startDate: 'string',
92
+ };
93
+ }
94
+
95
+ validate() {
96
+ if(Array.isArray(this.ranges)) {
97
+ $dara.Model.validateArray(this.ranges);
98
+ }
99
+ super.validate();
100
+ }
101
+
102
+ constructor(map?: { [key: string]: any }) {
103
+ super(map);
104
+ }
105
+ }
106
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryHistoryMetricDistributionResponseBody } from "./QueryHistoryMetricDistributionResponseBody";
4
+
5
+
6
+ export class QueryHistoryMetricDistributionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryHistoryMetricDistributionResponseBody;
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: QueryHistoryMetricDistributionResponseBody,
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,92 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryHistoryMetricDistributionResponseBodyDistributionList extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 40
9
+ */
10
+ count?: number;
11
+ /**
12
+ * @example
13
+ * 2F2BF549-CBD9-1FED-9ABB-086B62D7B293
14
+ */
15
+ label?: string;
16
+ /**
17
+ * @example
18
+ * 20
19
+ */
20
+ max?: number;
21
+ /**
22
+ * @example
23
+ * 0
24
+ */
25
+ min?: number;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ count: 'Count',
29
+ label: 'Label',
30
+ max: 'Max',
31
+ min: 'Min',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ count: 'number',
38
+ label: 'string',
39
+ max: 'number',
40
+ min: 'number',
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 QueryHistoryMetricDistributionResponseBody extends $dara.Model {
54
+ distributionList?: QueryHistoryMetricDistributionResponseBodyDistributionList[];
55
+ /**
56
+ * @example
57
+ * 2F2BF549-CBD9-1FED-9ABB-086B62D7B293
58
+ */
59
+ requestId?: string;
60
+ /**
61
+ * @example
62
+ * 94
63
+ */
64
+ totalCount?: number;
65
+ static names(): { [key: string]: string } {
66
+ return {
67
+ distributionList: 'DistributionList',
68
+ requestId: 'RequestId',
69
+ totalCount: 'TotalCount',
70
+ };
71
+ }
72
+
73
+ static types(): { [key: string]: any } {
74
+ return {
75
+ distributionList: { 'type': 'array', 'itemType': QueryHistoryMetricDistributionResponseBodyDistributionList },
76
+ requestId: 'string',
77
+ totalCount: 'number',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(Array.isArray(this.distributionList)) {
83
+ $dara.Model.validateArray(this.distributionList);
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class RebootDesktopsRequest extends $dara.Model {
6
+ createSnapshot?: boolean;
6
7
  /**
7
8
  * @remarks
8
9
  * The IDs of the cloud computers. You can specify 1 to 100 IDs.
@@ -14,6 +15,11 @@ export class RebootDesktopsRequest extends $dara.Model {
14
15
  */
15
16
  desktopId?: string[];
16
17
  osUpdate?: boolean;
18
+ /**
19
+ * @example
20
+ * KB5082063
21
+ */
22
+ patchId?: string;
17
23
  /**
18
24
  * @remarks
19
25
  * The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the most recent region list.
@@ -26,16 +32,20 @@ export class RebootDesktopsRequest extends $dara.Model {
26
32
  regionId?: string;
27
33
  static names(): { [key: string]: string } {
28
34
  return {
35
+ createSnapshot: 'CreateSnapshot',
29
36
  desktopId: 'DesktopId',
30
37
  osUpdate: 'OsUpdate',
38
+ patchId: 'PatchId',
31
39
  regionId: 'RegionId',
32
40
  };
33
41
  }
34
42
 
35
43
  static types(): { [key: string]: any } {
36
44
  return {
45
+ createSnapshot: 'boolean',
37
46
  desktopId: { 'type': 'array', 'itemType': 'string' },
38
47
  osUpdate: 'boolean',
48
+ patchId: 'string',
39
49
  regionId: 'string',
40
50
  };
41
51
  }
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class StopDesktopsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * false
9
+ */
10
+ createSnapshot?: string;
6
11
  /**
7
12
  * @remarks
8
13
  * The cloud computer IDs. You can specify the IDs of 1 to 100 cloud computers.
@@ -21,6 +26,11 @@ export class StopDesktopsRequest extends $dara.Model {
21
26
  * false
22
27
  */
23
28
  osUpdate?: boolean;
29
+ /**
30
+ * @example
31
+ * KB5082063
32
+ */
33
+ patchId?: string;
24
34
  /**
25
35
  * @remarks
26
36
  * The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to query the most recent region list.
@@ -59,8 +69,10 @@ export class StopDesktopsRequest extends $dara.Model {
59
69
  stoppedMode?: string;
60
70
  static names(): { [key: string]: string } {
61
71
  return {
72
+ createSnapshot: 'CreateSnapshot',
62
73
  desktopId: 'DesktopId',
63
74
  osUpdate: 'OsUpdate',
75
+ patchId: 'PatchId',
64
76
  regionId: 'RegionId',
65
77
  stoppedMode: 'StoppedMode',
66
78
  };
@@ -68,8 +80,10 @@ export class StopDesktopsRequest extends $dara.Model {
68
80
 
69
81
  static types(): { [key: string]: any } {
70
82
  return {
83
+ createSnapshot: 'string',
71
84
  desktopId: { 'type': 'array', 'itemType': 'string' },
72
85
  osUpdate: 'boolean',
86
+ patchId: 'string',
73
87
  regionId: 'string',
74
88
  stoppedMode: 'string',
75
89
  };
@@ -267,6 +267,9 @@ export { ModifyTemplateRequestSiteConfigList } from './ModifyTemplateRequest';
267
267
  export { ModifyTimerGroupRequestConfigTimersSegmentTimers } from './ModifyTimerGroupRequest';
268
268
  export { ModifyTimerGroupRequestConfigTimers } from './ModifyTimerGroupRequest';
269
269
  export { MoveCdsFileResponseBodyMoveCdsFileModel } from './MoveCdsFileResponseBody';
270
+ export { QueryHistoryActiveUserCountResponseBodyActiveUserCount } from './QueryHistoryActiveUserCountResponseBody';
271
+ export { QueryHistoryMetricDistributionRequestRanges } from './QueryHistoryMetricDistributionRequest';
272
+ export { QueryHistoryMetricDistributionResponseBodyDistributionList } from './QueryHistoryMetricDistributionResponseBody';
270
273
  export { RebuildDesktopsResponseBodyRebuildResults } from './RebuildDesktopsResponseBody';
271
274
  export { RemoveFilePermissionRequestMemberListCdsIdentity } from './RemoveFilePermissionRequest';
272
275
  export { RemoveFilePermissionRequestMemberList } from './RemoveFilePermissionRequest';
@@ -1022,6 +1025,12 @@ export { ModifyUserToDesktopGroupResponse } from './ModifyUserToDesktopGroupResp
1022
1025
  export { MoveCdsFileRequest } from './MoveCdsFileRequest';
1023
1026
  export { MoveCdsFileResponseBody } from './MoveCdsFileResponseBody';
1024
1027
  export { MoveCdsFileResponse } from './MoveCdsFileResponse';
1028
+ export { QueryHistoryActiveUserCountRequest } from './QueryHistoryActiveUserCountRequest';
1029
+ export { QueryHistoryActiveUserCountResponseBody } from './QueryHistoryActiveUserCountResponseBody';
1030
+ export { QueryHistoryActiveUserCountResponse } from './QueryHistoryActiveUserCountResponse';
1031
+ export { QueryHistoryMetricDistributionRequest } from './QueryHistoryMetricDistributionRequest';
1032
+ export { QueryHistoryMetricDistributionResponseBody } from './QueryHistoryMetricDistributionResponseBody';
1033
+ export { QueryHistoryMetricDistributionResponse } from './QueryHistoryMetricDistributionResponse';
1025
1034
  export { RebootDesktopsRequest } from './RebootDesktopsRequest';
1026
1035
  export { RebootDesktopsResponseBody } from './RebootDesktopsResponseBody';
1027
1036
  export { RebootDesktopsResponse } from './RebootDesktopsResponse';