@alicloud/ecd20200930 4.16.3 → 4.17.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 (48) hide show
  1. package/dist/client.d.ts +48 -0
  2. package/dist/client.js +138 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchModifyEntitlementRequest.d.ts +24 -0
  5. package/dist/models/BatchModifyEntitlementRequest.js.map +1 -1
  6. package/dist/models/BatchModifyEntitlementResponseBody.d.ts +35 -0
  7. package/dist/models/BatchModifyEntitlementResponseBody.js.map +1 -1
  8. package/dist/models/DescribeGlobalTimerBatchesRequest.d.ts +43 -0
  9. package/dist/models/DescribeGlobalTimerBatchesRequest.js +68 -0
  10. package/dist/models/DescribeGlobalTimerBatchesRequest.js.map +1 -0
  11. package/dist/models/DescribeGlobalTimerBatchesResponse.d.ts +19 -0
  12. package/dist/models/DescribeGlobalTimerBatchesResponse.js +69 -0
  13. package/dist/models/DescribeGlobalTimerBatchesResponse.js.map +1 -0
  14. package/dist/models/DescribeGlobalTimerBatchesResponseBody.d.ts +79 -0
  15. package/dist/models/DescribeGlobalTimerBatchesResponseBody.js +98 -0
  16. package/dist/models/DescribeGlobalTimerBatchesResponseBody.js.map +1 -0
  17. package/dist/models/DescribeGlobalTimerRecordsRequest.d.ts +107 -0
  18. package/dist/models/DescribeGlobalTimerRecordsRequest.js +82 -0
  19. package/dist/models/DescribeGlobalTimerRecordsRequest.js.map +1 -0
  20. package/dist/models/DescribeGlobalTimerRecordsResponse.d.ts +19 -0
  21. package/dist/models/DescribeGlobalTimerRecordsResponse.js +69 -0
  22. package/dist/models/DescribeGlobalTimerRecordsResponse.js.map +1 -0
  23. package/dist/models/DescribeGlobalTimerRecordsResponseBody.d.ts +128 -0
  24. package/dist/models/DescribeGlobalTimerRecordsResponseBody.js +106 -0
  25. package/dist/models/DescribeGlobalTimerRecordsResponseBody.js.map +1 -0
  26. package/dist/models/DescribeOfficeSitesRequest.d.ts +7 -0
  27. package/dist/models/DescribeOfficeSitesRequest.js.map +1 -1
  28. package/dist/models/ModifyTemplateRequest.d.ts +97 -3
  29. package/dist/models/ModifyTemplateRequest.js.map +1 -1
  30. package/dist/models/ModifyTemplateResponseBody.d.ts +15 -0
  31. package/dist/models/ModifyTemplateResponseBody.js.map +1 -1
  32. package/dist/models/model.d.ts +8 -0
  33. package/dist/models/model.js +36 -20
  34. package/dist/models/model.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/client.ts +158 -0
  37. package/src/models/BatchModifyEntitlementRequest.ts +24 -0
  38. package/src/models/BatchModifyEntitlementResponseBody.ts +35 -0
  39. package/src/models/DescribeGlobalTimerBatchesRequest.ts +66 -0
  40. package/src/models/DescribeGlobalTimerBatchesResponse.ts +40 -0
  41. package/src/models/DescribeGlobalTimerBatchesResponseBody.ts +123 -0
  42. package/src/models/DescribeGlobalTimerRecordsRequest.ts +144 -0
  43. package/src/models/DescribeGlobalTimerRecordsResponse.ts +40 -0
  44. package/src/models/DescribeGlobalTimerRecordsResponseBody.ts +180 -0
  45. package/src/models/DescribeOfficeSitesRequest.ts +7 -0
  46. package/src/models/ModifyTemplateRequest.ts +97 -3
  47. package/src/models/ModifyTemplateResponseBody.ts +15 -0
  48. package/src/models/model.ts +8 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DescribeGlobalTimerRecordsResponseBody } from "./DescribeGlobalTimerRecordsResponseBody";
4
+
5
+
6
+ export class DescribeGlobalTimerRecordsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DescribeGlobalTimerRecordsResponseBody;
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: DescribeGlobalTimerRecordsResponseBody,
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,180 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeGlobalTimerRecordsResponseBodyResults extends $dara.Model {
6
+ actionType?: string;
7
+ /**
8
+ * @remarks
9
+ * The ID of the batch in which the scheduled task is executed.
10
+ *
11
+ * @example
12
+ * ccg-0cvfvf6u1enx1****
13
+ */
14
+ batchId?: string;
15
+ context?: string;
16
+ /**
17
+ * @remarks
18
+ * The time when the execution record was created.
19
+ *
20
+ * @example
21
+ * 2023-08-03T08:27:29Z
22
+ */
23
+ createTime?: string;
24
+ /**
25
+ * @remarks
26
+ * The cloud computer ID.
27
+ *
28
+ * @example
29
+ * ecd-0c951fy9arnk9****
30
+ */
31
+ desktopId?: string;
32
+ /**
33
+ * @remarks
34
+ * The cloud computer name.
35
+ *
36
+ * @example
37
+ * DesktopName
38
+ */
39
+ desktopName?: string;
40
+ /**
41
+ * @remarks
42
+ * The time when the scheduled task ended.
43
+ *
44
+ * @example
45
+ * 2025-01-21T02:00:45Z
46
+ */
47
+ finishTime?: string;
48
+ /**
49
+ * @remarks
50
+ * The region ID.
51
+ *
52
+ * @example
53
+ * cn-hangzhou
54
+ */
55
+ regionId?: string;
56
+ /**
57
+ * @remarks
58
+ * The ID of the scheduled task group.
59
+ *
60
+ * @example
61
+ * ccg-xxxx
62
+ */
63
+ timerGroupId?: string;
64
+ /**
65
+ * @remarks
66
+ * The execution result of the scheduled task.
67
+ *
68
+ * @example
69
+ * RUNNING
70
+ */
71
+ timerResult?: string;
72
+ /**
73
+ * @remarks
74
+ * The type of the scheduled task.
75
+ *
76
+ * @example
77
+ * TimerBoot
78
+ */
79
+ timerType?: string;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ actionType: 'ActionType',
83
+ batchId: 'BatchId',
84
+ context: 'Context',
85
+ createTime: 'CreateTime',
86
+ desktopId: 'DesktopId',
87
+ desktopName: 'DesktopName',
88
+ finishTime: 'FinishTime',
89
+ regionId: 'RegionId',
90
+ timerGroupId: 'TimerGroupId',
91
+ timerResult: 'TimerResult',
92
+ timerType: 'TimerType',
93
+ };
94
+ }
95
+
96
+ static types(): { [key: string]: any } {
97
+ return {
98
+ actionType: 'string',
99
+ batchId: 'string',
100
+ context: 'string',
101
+ createTime: 'string',
102
+ desktopId: 'string',
103
+ desktopName: 'string',
104
+ finishTime: 'string',
105
+ regionId: 'string',
106
+ timerGroupId: 'string',
107
+ timerResult: 'string',
108
+ timerType: 'string',
109
+ };
110
+ }
111
+
112
+ validate() {
113
+ super.validate();
114
+ }
115
+
116
+ constructor(map?: { [key: string]: any }) {
117
+ super(map);
118
+ }
119
+ }
120
+
121
+ export class DescribeGlobalTimerRecordsResponseBody extends $dara.Model {
122
+ /**
123
+ * @remarks
124
+ * The total number of entries returned.
125
+ *
126
+ * @example
127
+ * 2
128
+ */
129
+ count?: number;
130
+ /**
131
+ * @remarks
132
+ * A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.
133
+ *
134
+ * @example
135
+ * AAAAAV3MpHK1AP0pfERHZN5pu6mnFXZiT7NdvGNgkInJ****
136
+ */
137
+ nextToken?: string;
138
+ /**
139
+ * @remarks
140
+ * The request ID.
141
+ *
142
+ * @example
143
+ * 63740E03-1B4B-5A18-AC27-2745A4F2****
144
+ */
145
+ requestId?: string;
146
+ /**
147
+ * @remarks
148
+ * The response parameters.
149
+ */
150
+ results?: DescribeGlobalTimerRecordsResponseBodyResults[];
151
+ static names(): { [key: string]: string } {
152
+ return {
153
+ count: 'Count',
154
+ nextToken: 'NextToken',
155
+ requestId: 'RequestId',
156
+ results: 'Results',
157
+ };
158
+ }
159
+
160
+ static types(): { [key: string]: any } {
161
+ return {
162
+ count: 'number',
163
+ nextToken: 'string',
164
+ requestId: 'string',
165
+ results: { 'type': 'array', 'itemType': DescribeGlobalTimerRecordsResponseBodyResults },
166
+ };
167
+ }
168
+
169
+ validate() {
170
+ if(Array.isArray(this.results)) {
171
+ $dara.Model.validateArray(this.results);
172
+ }
173
+ super.validate();
174
+ }
175
+
176
+ constructor(map?: { [key: string]: any }) {
177
+ super(map);
178
+ }
179
+ }
180
+
@@ -161,6 +161,13 @@ export class DescribeOfficeSitesRequest extends $dara.Model {
161
161
  * REGISTERED
162
162
  */
163
163
  status?: string;
164
+ /**
165
+ * @remarks
166
+ * The ID of the virtual private cloud (VPC).
167
+ *
168
+ * @example
169
+ * vpc-uf6bpyqivwl5f3pvoxxu0
170
+ */
164
171
  vpcId?: string;
165
172
  static names(): { [key: string]: string } {
166
173
  return {
@@ -6,9 +6,7 @@ export class ModifyTemplateRequestDataDiskList extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * The PL of the data disk. Default value: `AutoPL`.
9
- *
10
9
  * Valid values:
11
- *
12
10
  * * PL1: a PL1 ESSD
13
11
  * * PL0: a PL0 ESSD
14
12
  * * AutoPL: an AutoPL ESSD
@@ -16,7 +14,7 @@ export class ModifyTemplateRequestDataDiskList extends $dara.Model {
16
14
  performanceLevel?: string;
17
15
  /**
18
16
  * @remarks
19
- * The size of the data disk. Unit: GiB. Valid range: 40 to 2040 GiB with an increment of 10 GiB.
17
+ * The size of the data disk. Unit: GiB.Valid range: 40 to 2040 GiB with an increment of 10 GiB.
20
18
  *
21
19
  * @example
22
20
  * 40
@@ -47,36 +45,62 @@ export class ModifyTemplateRequestDataDiskList extends $dara.Model {
47
45
 
48
46
  export class ModifyTemplateRequestRegionConfigList extends $dara.Model {
49
47
  /**
48
+ * @remarks
49
+ * The office network ID.
50
+ *
50
51
  * @example
51
52
  * cn-hangzhou+dir-709****
52
53
  */
53
54
  officeSiteId?: string;
54
55
  /**
56
+ * @remarks
57
+ * The region ID. You can call the [DescribeRegions](~~DescribeRegions~~) operation to query the list of regions where Elastic Desktop Service (EDS) Enterprise is available.
58
+ *
55
59
  * @example
56
60
  * cn-beijing
57
61
  */
58
62
  regionId?: string;
59
63
  /**
64
+ * @remarks
65
+ * The ID of the cloud computer type.
66
+ *
60
67
  * @example
61
68
  * eds.enterprise_office.8c16g
62
69
  */
63
70
  resourceInstanceType?: string;
64
71
  /**
72
+ * @remarks
73
+ * The ID of the automatic snapshot policy.
74
+ *
65
75
  * @example
66
76
  * sp-35fvn8m2*****
67
77
  */
68
78
  snapshotPolicyId?: string;
69
79
  /**
80
+ * @remarks
81
+ * The subnet ID.
82
+ *
70
83
  * @example
71
84
  * vsw-adjrehad1****
72
85
  */
73
86
  subnetId?: string;
74
87
  /**
88
+ * @remarks
89
+ * Specifies whether to enable disk encryption.
90
+ *
91
+ * Valid values:
92
+ *
93
+ * * false (default): disables disk encryption.
94
+ * * true: enables disk encryption.
95
+ *
75
96
  * @example
76
97
  * false
77
98
  */
78
99
  volumeEncryptionEnable?: boolean;
79
100
  /**
101
+ * @remarks
102
+ * The ID of the Key Management Service (KMS) key that you want to use to encrypt disks.
103
+ *
80
104
  * @example
81
105
  * a7b3c0c8-b3a2-4876-b1cc-116dddc9****
82
106
  */
@@ -116,11 +140,17 @@ export class ModifyTemplateRequestRegionConfigList extends $dara.Model {
116
140
 
117
141
  export class ModifyTemplateRequestResourceTagList extends $dara.Model {
118
142
  /**
143
+ * @remarks
144
+ * The tag key.
145
+ *
119
146
  * @example
120
147
  * department
121
148
  */
122
149
  key?: string;
123
150
  /**
151
+ * @remarks
152
+ * The tag value.
153
+ *
124
154
  * @example
125
155
  * design
126
156
  */
@@ -180,16 +210,35 @@ export class ModifyTemplateRequest extends $dara.Model {
180
210
  chargeType?: string;
181
211
  dataDiskList?: ModifyTemplateRequestDataDiskList[];
182
212
  /**
213
+ * @remarks
214
+ * The default language of the cloud computer during startup. This parameter takes effect only when the cloud computer is created from a system image.
215
+ *
216
+ * Valid values:
217
+ *
218
+ * * en-US: English.
219
+ * * zh-HK: Chinese, Traditional (Hong Kong, China).
220
+ * * zh-CN: Simplified Chinese.
221
+ * * ja-JP: Japanese.
222
+ *
183
223
  * @example
184
224
  * zh-CN
185
225
  */
186
226
  defaultLanguage?: string;
187
227
  /**
228
+ * @remarks
229
+ * The template description. It must meet the following criteria:
230
+ *
231
+ * * It can be 2 to 256 characters in length and cannot start with `http://` or `https://`.
232
+ * * It can contain letters, digits, and special characters, including spaces. Note: You can use carriage returns to break lines.
233
+ *
188
234
  * @example
189
235
  * testDescription
190
236
  */
191
237
  description?: string;
192
238
  /**
239
+ * @remarks
240
+ * The ID of the cloud computer image. You can query image IDs on the Images page. System images and custom images are supported.
241
+ *
193
242
  * @example
194
243
  * m-gx2x1dhsmusr2****
195
244
  */
@@ -197,39 +246,84 @@ export class ModifyTemplateRequest extends $dara.Model {
197
246
  period?: number;
198
247
  periodUnit?: string;
199
248
  /**
249
+ * @remarks
250
+ * The ID of the policy group.
251
+ *
200
252
  * @example
201
253
  * pg-gx2x1dhsmthe9****
202
254
  */
203
255
  policyGroupId?: string;
204
256
  postPaidAfterUsedUp?: boolean;
257
+ /**
258
+ * @remarks
259
+ * The regions by which you can search for cloud computer templates. When this parameter takes effect, cloud computer templates are matched based on the specified regions.
260
+ *
261
+ * > You can specify up to 20 regions.
262
+ */
205
263
  regionConfigList?: ModifyTemplateRequestRegionConfigList[];
206
264
  /**
265
+ * @remarks
266
+ * The ID of the resource group.
267
+ *
207
268
  * @example
208
269
  * rg-a5fqjjqaejt***
209
270
  */
210
271
  resourceGroupId?: string;
272
+ /**
273
+ * @remarks
274
+ * The tags added to cloud computers. Specify tags in key-value pairs. You can specify up to 20 tags.
275
+ */
211
276
  resourceTagList?: ModifyTemplateRequestResourceTagList[];
212
277
  siteConfigList?: ModifyTemplateRequestSiteConfigList[];
213
278
  /**
279
+ * @remarks
280
+ * The performance level (PL) of the system disk.
281
+ *
282
+ * > Only cloud computers of the Graphics or High Frequency type support Enterprise SSDs (ESSDs).
283
+ *
284
+ * Valid values:
285
+ *
286
+ * * PL1: a PL1 ESSD.
287
+ * * PL0: a PL0 ESSD.
288
+ * * AutoPL: an AutoPL ESSD.
289
+ *
214
290
  * @example
215
291
  * AutoPL
216
292
  */
217
293
  systemDiskPerformanceLevel?: string;
218
294
  /**
295
+ * @remarks
296
+ * The size of the system disk. Unit: GiB. Valid values: 40 to 500. Increments: 10 GiB.
297
+ *
298
+ * > The system disk size must be at least as large as the configured image size.
299
+ *
219
300
  * @example
220
301
  * 80
221
302
  */
222
303
  systemDiskSize?: number;
223
304
  /**
224
305
  * @remarks
306
+ * The template ID.
307
+ *
225
308
  * This parameter is required.
226
309
  *
227
310
  * @example
228
311
  * b-0caoeogs88y*****
229
312
  */
230
313
  templateId?: string;
314
+ /**
315
+ * @remarks
316
+ * The template name. It must meet the following criteria:
317
+ *
318
+ * * It can be 2 to 126 characters in length.
319
+ * * It must begin with a letter and cannot start with `http://` or `https://`.
320
+ * * It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Note: Periods (.) are not supported in the name.
321
+ */
231
322
  templateName?: string;
232
323
  /**
324
+ * @remarks
325
+ * The ID of the scheduled task group.
326
+ *
233
327
  * @example
234
328
  * bcc-dweha*****
235
329
  */
@@ -4,26 +4,41 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class ModifyTemplateResponseBody extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The execution result of the operation. If the request was successful, `success` is returned. If the request failed, an error message is returned.
9
+ *
7
10
  * @example
8
11
  * success
9
12
  */
10
13
  code?: string;
11
14
  /**
15
+ * @remarks
16
+ * The HTTP status code returned.
17
+ *
12
18
  * @example
13
19
  * 200
14
20
  */
15
21
  httpStatusCode?: number;
16
22
  /**
23
+ * @remarks
24
+ * The error message returned. This parameter is not returned if the value of Code is `success`.
25
+ *
17
26
  * @example
18
27
  * success
19
28
  */
20
29
  message?: string;
21
30
  /**
31
+ * @remarks
32
+ * The request ID.
33
+ *
22
34
  * @example
23
35
  * 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
24
36
  */
25
37
  requestId?: string;
26
38
  /**
39
+ * @remarks
40
+ * Indicates whether the operation is successful. Valid values: true false
41
+ *
27
42
  * @example
28
43
  * true
29
44
  */
@@ -121,6 +121,8 @@ export { DescribeFotaTasksResponseBodyFotaTasks } from './DescribeFotaTasksRespo
121
121
  export { DescribeGlobalDesktopRecordsResponseBodySessionsResourceGroups } from './DescribeGlobalDesktopRecordsResponseBody';
122
122
  export { DescribeGlobalDesktopRecordsResponseBodySessionsSessions } from './DescribeGlobalDesktopRecordsResponseBody';
123
123
  export { DescribeGlobalDesktopRecordsResponseBodySessions } from './DescribeGlobalDesktopRecordsResponseBody';
124
+ export { DescribeGlobalTimerBatchesResponseBodyResults } from './DescribeGlobalTimerBatchesResponseBody';
125
+ export { DescribeGlobalTimerRecordsResponseBodyResults } from './DescribeGlobalTimerRecordsResponseBody';
124
126
  export { DescribeGuestApplicationsResponseBodyApplicationsProcessData } from './DescribeGuestApplicationsResponseBody';
125
127
  export { DescribeGuestApplicationsResponseBodyApplications } from './DescribeGuestApplicationsResponseBody';
126
128
  export { DescribeImageModifiedRecordsResponseBodyImageModifiedRecords } from './DescribeImageModifiedRecordsResponseBody';
@@ -643,6 +645,12 @@ export { DescribeFotaTasksResponse } from './DescribeFotaTasksResponse';
643
645
  export { DescribeGlobalDesktopRecordsRequest } from './DescribeGlobalDesktopRecordsRequest';
644
646
  export { DescribeGlobalDesktopRecordsResponseBody } from './DescribeGlobalDesktopRecordsResponseBody';
645
647
  export { DescribeGlobalDesktopRecordsResponse } from './DescribeGlobalDesktopRecordsResponse';
648
+ export { DescribeGlobalTimerBatchesRequest } from './DescribeGlobalTimerBatchesRequest';
649
+ export { DescribeGlobalTimerBatchesResponseBody } from './DescribeGlobalTimerBatchesResponseBody';
650
+ export { DescribeGlobalTimerBatchesResponse } from './DescribeGlobalTimerBatchesResponse';
651
+ export { DescribeGlobalTimerRecordsRequest } from './DescribeGlobalTimerRecordsRequest';
652
+ export { DescribeGlobalTimerRecordsResponseBody } from './DescribeGlobalTimerRecordsResponseBody';
653
+ export { DescribeGlobalTimerRecordsResponse } from './DescribeGlobalTimerRecordsResponse';
646
654
  export { DescribeGuestApplicationsRequest } from './DescribeGuestApplicationsRequest';
647
655
  export { DescribeGuestApplicationsResponseBody } from './DescribeGuestApplicationsResponseBody';
648
656
  export { DescribeGuestApplicationsResponse } from './DescribeGuestApplicationsResponse';