@alicloud/ecd20200930 4.23.4 → 4.24.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 (41) hide show
  1. package/dist/client.d.ts +26 -0
  2. package/dist/client.js +112 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeDesktopTypesRequest.d.ts +1 -0
  5. package/dist/models/DescribeDesktopTypesRequest.js +2 -0
  6. package/dist/models/DescribeDesktopTypesRequest.js.map +1 -1
  7. package/dist/models/DescribeOnlineUserCountRequest.d.ts +33 -0
  8. package/dist/models/DescribeOnlineUserCountRequest.js +64 -0
  9. package/dist/models/DescribeOnlineUserCountRequest.js.map +1 -0
  10. package/dist/models/DescribeOnlineUserCountResponse.d.ts +19 -0
  11. package/dist/models/DescribeOnlineUserCountResponse.js +69 -0
  12. package/dist/models/DescribeOnlineUserCountResponse.js.map +1 -0
  13. package/dist/models/DescribeOnlineUserCountResponseBody.d.ts +38 -0
  14. package/dist/models/DescribeOnlineUserCountResponseBody.js +66 -0
  15. package/dist/models/DescribeOnlineUserCountResponseBody.js.map +1 -0
  16. package/dist/models/QueryHistoryAvgMetricListRequest.d.ts +82 -0
  17. package/dist/models/QueryHistoryAvgMetricListRequest.js +105 -0
  18. package/dist/models/QueryHistoryAvgMetricListRequest.js.map +1 -0
  19. package/dist/models/QueryHistoryAvgMetricListResponse.d.ts +19 -0
  20. package/dist/models/QueryHistoryAvgMetricListResponse.js +69 -0
  21. package/dist/models/QueryHistoryAvgMetricListResponse.js.map +1 -0
  22. package/dist/models/QueryHistoryAvgMetricListResponseBody.d.ts +145 -0
  23. package/dist/models/QueryHistoryAvgMetricListResponseBody.js +147 -0
  24. package/dist/models/QueryHistoryAvgMetricListResponseBody.js.map +1 -0
  25. package/dist/models/QueryHistoryAvgMetricListShrinkRequest.d.ts +45 -0
  26. package/dist/models/QueryHistoryAvgMetricListShrinkRequest.js +75 -0
  27. package/dist/models/QueryHistoryAvgMetricListShrinkRequest.js.map +1 -0
  28. package/dist/models/model.d.ts +10 -0
  29. package/dist/models/model.js +39 -18
  30. package/dist/models/model.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client.ts +130 -0
  33. package/src/models/DescribeDesktopTypesRequest.ts +3 -0
  34. package/src/models/DescribeOnlineUserCountRequest.ts +52 -0
  35. package/src/models/DescribeOnlineUserCountResponse.ts +40 -0
  36. package/src/models/DescribeOnlineUserCountResponseBody.ts +59 -0
  37. package/src/models/QueryHistoryAvgMetricListRequest.ts +133 -0
  38. package/src/models/QueryHistoryAvgMetricListResponse.ts +40 -0
  39. package/src/models/QueryHistoryAvgMetricListResponseBody.ts +229 -0
  40. package/src/models/QueryHistoryAvgMetricListShrinkRequest.ts +75 -0
  41. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -8623,6 +8623,10 @@ export default class Client extends OpenApi {
8623
8623
  query["DesktopIdForModify"] = request.desktopIdForModify;
8624
8624
  }
8625
8625
 
8626
+ if (!$dara.isNull(request.desktopScenario)) {
8627
+ query["DesktopScenario"] = request.desktopScenario;
8628
+ }
8629
+
8626
8630
  if (!$dara.isNull(request.desktopTypeId)) {
8627
8631
  query["DesktopTypeId"] = request.desktopTypeId;
8628
8632
  }
@@ -10626,6 +10630,56 @@ export default class Client extends OpenApi {
10626
10630
  return await this.describeOfficeSitesWithOptions(request, runtime);
10627
10631
  }
10628
10632
 
10633
+ /**
10634
+ * @param request - DescribeOnlineUserCountRequest
10635
+ * @param runtime - runtime options for this request RuntimeOptions
10636
+ * @returns DescribeOnlineUserCountResponse
10637
+ */
10638
+ async describeOnlineUserCountWithOptions(request: $_model.DescribeOnlineUserCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeOnlineUserCountResponse> {
10639
+ request.validate();
10640
+ let query = { };
10641
+ if (!$dara.isNull(request.bizType)) {
10642
+ query["BizType"] = request.bizType;
10643
+ }
10644
+
10645
+ if (!$dara.isNull(request.officeSiteId)) {
10646
+ query["OfficeSiteId"] = request.officeSiteId;
10647
+ }
10648
+
10649
+ if (!$dara.isNull(request.regionId)) {
10650
+ query["RegionId"] = request.regionId;
10651
+ }
10652
+
10653
+ if (!$dara.isNull(request.searchRegionId)) {
10654
+ query["SearchRegionId"] = request.searchRegionId;
10655
+ }
10656
+
10657
+ let req = new $OpenApiUtil.OpenApiRequest({
10658
+ query: OpenApiUtil.query(query),
10659
+ });
10660
+ let params = new $OpenApiUtil.Params({
10661
+ action: "DescribeOnlineUserCount",
10662
+ version: "2020-09-30",
10663
+ protocol: "HTTPS",
10664
+ pathname: "/",
10665
+ method: "POST",
10666
+ authType: "AK",
10667
+ style: "RPC",
10668
+ reqBodyType: "formData",
10669
+ bodyType: "json",
10670
+ });
10671
+ return $dara.cast<$_model.DescribeOnlineUserCountResponse>(await this.callApi(params, req, runtime), new $_model.DescribeOnlineUserCountResponse({}));
10672
+ }
10673
+
10674
+ /**
10675
+ * @param request - DescribeOnlineUserCountRequest
10676
+ * @returns DescribeOnlineUserCountResponse
10677
+ */
10678
+ async describeOnlineUserCount(request: $_model.DescribeOnlineUserCountRequest): Promise<$_model.DescribeOnlineUserCountResponse> {
10679
+ let runtime = new $dara.RuntimeOptions({ });
10680
+ return await this.describeOnlineUserCountWithOptions(request, runtime);
10681
+ }
10682
+
10629
10683
  /**
10630
10684
  * Queries the details of a cloud computer policy.
10631
10685
  *
@@ -18201,6 +18255,82 @@ export default class Client extends OpenApi {
18201
18255
  return await this.queryHistoryActiveUserCountWithOptions(request, runtime);
18202
18256
  }
18203
18257
 
18258
+ /**
18259
+ * 查询桌面平均指标列表
18260
+ *
18261
+ * @param tmpReq - QueryHistoryAvgMetricListRequest
18262
+ * @param runtime - runtime options for this request RuntimeOptions
18263
+ * @returns QueryHistoryAvgMetricListResponse
18264
+ */
18265
+ async queryHistoryAvgMetricListWithOptions(tmpReq: $_model.QueryHistoryAvgMetricListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryHistoryAvgMetricListResponse> {
18266
+ tmpReq.validate();
18267
+ let request = new $_model.QueryHistoryAvgMetricListShrinkRequest({ });
18268
+ OpenApiUtil.convert(tmpReq, request);
18269
+ if (!$dara.isNull(tmpReq.range)) {
18270
+ request.rangeShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.range, "Range", "json");
18271
+ }
18272
+
18273
+ let query = { };
18274
+ if (!$dara.isNull(request.dataDate)) {
18275
+ query["DataDate"] = request.dataDate;
18276
+ }
18277
+
18278
+ if (!$dara.isNull(request.desktopId)) {
18279
+ query["DesktopId"] = request.desktopId;
18280
+ }
18281
+
18282
+ if (!$dara.isNull(request.metricName)) {
18283
+ query["MetricName"] = request.metricName;
18284
+ }
18285
+
18286
+ if (!$dara.isNull(request.pageNum)) {
18287
+ query["PageNum"] = request.pageNum;
18288
+ }
18289
+
18290
+ if (!$dara.isNull(request.pageSize)) {
18291
+ query["PageSize"] = request.pageSize;
18292
+ }
18293
+
18294
+ if (!$dara.isNull(request.rangeShrink)) {
18295
+ query["Range"] = request.rangeShrink;
18296
+ }
18297
+
18298
+ if (!$dara.isNull(request.resourceRegionId)) {
18299
+ query["ResourceRegionId"] = request.resourceRegionId;
18300
+ }
18301
+
18302
+ if (!$dara.isNull(request.sortType)) {
18303
+ query["SortType"] = request.sortType;
18304
+ }
18305
+
18306
+ let req = new $OpenApiUtil.OpenApiRequest({
18307
+ query: OpenApiUtil.query(query),
18308
+ });
18309
+ let params = new $OpenApiUtil.Params({
18310
+ action: "QueryHistoryAvgMetricList",
18311
+ version: "2020-09-30",
18312
+ protocol: "HTTPS",
18313
+ pathname: "/",
18314
+ method: "POST",
18315
+ authType: "AK",
18316
+ style: "RPC",
18317
+ reqBodyType: "formData",
18318
+ bodyType: "json",
18319
+ });
18320
+ return $dara.cast<$_model.QueryHistoryAvgMetricListResponse>(await this.callApi(params, req, runtime), new $_model.QueryHistoryAvgMetricListResponse({}));
18321
+ }
18322
+
18323
+ /**
18324
+ * 查询桌面平均指标列表
18325
+ *
18326
+ * @param request - QueryHistoryAvgMetricListRequest
18327
+ * @returns QueryHistoryAvgMetricListResponse
18328
+ */
18329
+ async queryHistoryAvgMetricList(request: $_model.QueryHistoryAvgMetricListRequest): Promise<$_model.QueryHistoryAvgMetricListResponse> {
18330
+ let runtime = new $dara.RuntimeOptions({ });
18331
+ return await this.queryHistoryAvgMetricListWithOptions(request, runtime);
18332
+ }
18333
+
18204
18334
  /**
18205
18335
  * 查询桌面历史指标分布
18206
18336
  *
@@ -36,6 +36,7 @@ export class DescribeDesktopTypesRequest extends $dara.Model {
36
36
  * ecd-gx2x1dhsmucyy****
37
37
  */
38
38
  desktopIdForModify?: string;
39
+ desktopScenario?: string;
39
40
  /**
40
41
  * @remarks
41
42
  * The specification ID.
@@ -219,6 +220,7 @@ export class DescribeDesktopTypesRequest extends $dara.Model {
219
220
  cpuCount: 'CpuCount',
220
221
  desktopGroupIdForModify: 'DesktopGroupIdForModify',
221
222
  desktopIdForModify: 'DesktopIdForModify',
223
+ desktopScenario: 'DesktopScenario',
222
224
  desktopTypeId: 'DesktopTypeId',
223
225
  desktopTypeIdList: 'DesktopTypeIdList',
224
226
  gpuCount: 'GpuCount',
@@ -245,6 +247,7 @@ export class DescribeDesktopTypesRequest extends $dara.Model {
245
247
  cpuCount: 'number',
246
248
  desktopGroupIdForModify: 'string',
247
249
  desktopIdForModify: 'string',
250
+ desktopScenario: 'string',
248
251
  desktopTypeId: 'string',
249
252
  desktopTypeIdList: { 'type': 'array', 'itemType': 'string' },
250
253
  gpuCount: 'number',
@@ -0,0 +1,52 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeOnlineUserCountRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 1
9
+ */
10
+ bizType?: number;
11
+ /**
12
+ * @example
13
+ * cn-shanghai+dir-631324****
14
+ */
15
+ officeSiteId?: string;
16
+ /**
17
+ * @example
18
+ * cn-hangzhou
19
+ */
20
+ regionId?: string;
21
+ /**
22
+ * @example
23
+ * cn-shanghai
24
+ */
25
+ searchRegionId?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ bizType: 'BizType',
29
+ officeSiteId: 'OfficeSiteId',
30
+ regionId: 'RegionId',
31
+ searchRegionId: 'SearchRegionId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ bizType: 'number',
38
+ officeSiteId: 'string',
39
+ regionId: 'string',
40
+ searchRegionId: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeOnlineUserCountResponseBody } from "./DescribeOnlineUserCountResponseBody";
4
+
5
+
6
+ export class DescribeOnlineUserCountResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeOnlineUserCountResponseBody;
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: DescribeOnlineUserCountResponseBody,
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 DescribeOnlineUserCountResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 2
9
+ */
10
+ adAssignedUserCount?: number;
11
+ /**
12
+ * @example
13
+ * 10
14
+ */
15
+ assignedUserCount?: number;
16
+ /**
17
+ * @example
18
+ * 1
19
+ */
20
+ onlineUserCount?: number;
21
+ /**
22
+ * @example
23
+ * 269BDB16-2CD8-4865-84BD-11C40BC21DB0
24
+ */
25
+ requestId?: string;
26
+ /**
27
+ * @example
28
+ * 8
29
+ */
30
+ simpleAssignedUserCount?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ adAssignedUserCount: 'AdAssignedUserCount',
34
+ assignedUserCount: 'AssignedUserCount',
35
+ onlineUserCount: 'OnlineUserCount',
36
+ requestId: 'RequestId',
37
+ simpleAssignedUserCount: 'SimpleAssignedUserCount',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ adAssignedUserCount: 'number',
44
+ assignedUserCount: 'number',
45
+ onlineUserCount: 'number',
46
+ requestId: 'string',
47
+ simpleAssignedUserCount: 'number',
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,133 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryHistoryAvgMetricListRequestRange 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 QueryHistoryAvgMetricListRequest extends $dara.Model {
61
+ /**
62
+ * @example
63
+ * 2026-04-01
64
+ */
65
+ dataDate?: string;
66
+ desktopId?: string[];
67
+ /**
68
+ * @example
69
+ * LOAD_SCORE
70
+ */
71
+ metricName?: string;
72
+ /**
73
+ * @example
74
+ * 1
75
+ */
76
+ pageNum?: number;
77
+ /**
78
+ * @example
79
+ * 20
80
+ */
81
+ pageSize?: number;
82
+ range?: QueryHistoryAvgMetricListRequestRange;
83
+ /**
84
+ * @example
85
+ * cn-hangzhou
86
+ */
87
+ resourceRegionId?: string;
88
+ /**
89
+ * @example
90
+ * ASC
91
+ */
92
+ sortType?: string;
93
+ static names(): { [key: string]: string } {
94
+ return {
95
+ dataDate: 'DataDate',
96
+ desktopId: 'DesktopId',
97
+ metricName: 'MetricName',
98
+ pageNum: 'PageNum',
99
+ pageSize: 'PageSize',
100
+ range: 'Range',
101
+ resourceRegionId: 'ResourceRegionId',
102
+ sortType: 'SortType',
103
+ };
104
+ }
105
+
106
+ static types(): { [key: string]: any } {
107
+ return {
108
+ dataDate: 'string',
109
+ desktopId: { 'type': 'array', 'itemType': 'string' },
110
+ metricName: 'string',
111
+ pageNum: 'number',
112
+ pageSize: 'number',
113
+ range: QueryHistoryAvgMetricListRequestRange,
114
+ resourceRegionId: 'string',
115
+ sortType: 'string',
116
+ };
117
+ }
118
+
119
+ validate() {
120
+ if(Array.isArray(this.desktopId)) {
121
+ $dara.Model.validateArray(this.desktopId);
122
+ }
123
+ if(this.range && typeof (this.range as any).validate === 'function') {
124
+ (this.range as any).validate();
125
+ }
126
+ super.validate();
127
+ }
128
+
129
+ constructor(map?: { [key: string]: any }) {
130
+ super(map);
131
+ }
132
+ }
133
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryHistoryAvgMetricListResponseBody } from "./QueryHistoryAvgMetricListResponseBody";
4
+
5
+
6
+ export class QueryHistoryAvgMetricListResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryHistoryAvgMetricListResponseBody;
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: QueryHistoryAvgMetricListResponseBody,
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
+