@alicloud/ecd20201002 1.0.0 → 2.1.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
@@ -1,32 +1,42 @@
1
1
  // This file is auto-generated, don't edit it
2
+ /**
3
+ *
4
+ */
2
5
  import Util, * as $Util from '@alicloud/tea-util';
3
- import RPC, * as $RPC from '@alicloud/rpc-client';
6
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
7
+ import OpenApiUtil from '@alicloud/openapi-util';
4
8
  import EndpointUtil from '@alicloud/endpoint-util';
5
9
  import * as $tea from '@alicloud/tea-typescript';
6
10
 
7
- export class RefreshLoginTokenRequest extends $tea.Model {
8
- regionId: string;
9
- clientId: string;
10
- directoryId: string;
11
- endUserId: string;
12
- loginToken: string;
11
+ export class ApproveFotaUpdateRequest extends $tea.Model {
12
+ appVersion?: string;
13
+ clientId?: string;
14
+ desktopId?: string;
15
+ loginToken?: string;
16
+ regionId?: string;
17
+ sessionId?: string;
18
+ uuid?: string;
13
19
  static names(): { [key: string]: string } {
14
20
  return {
15
- regionId: 'RegionId',
21
+ appVersion: 'AppVersion',
16
22
  clientId: 'ClientId',
17
- directoryId: 'DirectoryId',
18
- endUserId: 'EndUserId',
23
+ desktopId: 'DesktopId',
19
24
  loginToken: 'LoginToken',
25
+ regionId: 'RegionId',
26
+ sessionId: 'SessionId',
27
+ uuid: 'Uuid',
20
28
  };
21
29
  }
22
30
 
23
31
  static types(): { [key: string]: any } {
24
32
  return {
25
- regionId: 'string',
33
+ appVersion: 'string',
26
34
  clientId: 'string',
27
- directoryId: 'string',
28
- endUserId: 'string',
35
+ desktopId: 'string',
29
36
  loginToken: 'string',
37
+ regionId: 'string',
38
+ sessionId: 'string',
39
+ uuid: 'string',
30
40
  };
31
41
  }
32
42
 
@@ -35,8 +45,8 @@ export class RefreshLoginTokenRequest extends $tea.Model {
35
45
  }
36
46
  }
37
47
 
38
- export class RefreshLoginTokenResponse extends $tea.Model {
39
- requestId: string;
48
+ export class ApproveFotaUpdateResponseBody extends $tea.Model {
49
+ requestId?: string;
40
50
  static names(): { [key: string]: string } {
41
51
  return {
42
52
  requestId: 'RequestId',
@@ -54,23 +64,23 @@ export class RefreshLoginTokenResponse extends $tea.Model {
54
64
  }
55
65
  }
56
66
 
57
- export class DescribeDirectoriesRequest extends $tea.Model {
58
- regionId: string;
59
- clientId: string;
60
- directoryId?: string[];
67
+ export class ApproveFotaUpdateResponse extends $tea.Model {
68
+ headers?: { [key: string]: string };
69
+ statusCode?: number;
70
+ body?: ApproveFotaUpdateResponseBody;
61
71
  static names(): { [key: string]: string } {
62
72
  return {
63
- regionId: 'RegionId',
64
- clientId: 'ClientId',
65
- directoryId: 'DirectoryId',
73
+ headers: 'headers',
74
+ statusCode: 'statusCode',
75
+ body: 'body',
66
76
  };
67
77
  }
68
78
 
69
79
  static types(): { [key: string]: any } {
70
80
  return {
71
- regionId: 'string',
72
- clientId: 'string',
73
- directoryId: { 'type': 'array', 'itemType': 'string' },
81
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
82
+ statusCode: 'number',
83
+ body: ApproveFotaUpdateResponseBody,
74
84
  };
75
85
  }
76
86
 
@@ -79,20 +89,38 @@ export class DescribeDirectoriesRequest extends $tea.Model {
79
89
  }
80
90
  }
81
91
 
82
- export class DescribeDirectoriesResponse extends $tea.Model {
83
- requestId: string;
84
- directories: DescribeDirectoriesResponseDirectories[];
92
+ export class ChangePasswordRequest extends $tea.Model {
93
+ clientId?: string;
94
+ endUserId?: string;
95
+ loginToken?: string;
96
+ newPassword?: string;
97
+ officeSiteId?: string;
98
+ oldPassword?: string;
99
+ regionId?: string;
100
+ sessionId?: string;
85
101
  static names(): { [key: string]: string } {
86
102
  return {
87
- requestId: 'RequestId',
88
- directories: 'Directories',
103
+ clientId: 'ClientId',
104
+ endUserId: 'EndUserId',
105
+ loginToken: 'LoginToken',
106
+ newPassword: 'NewPassword',
107
+ officeSiteId: 'OfficeSiteId',
108
+ oldPassword: 'OldPassword',
109
+ regionId: 'RegionId',
110
+ sessionId: 'SessionId',
89
111
  };
90
112
  }
91
113
 
92
114
  static types(): { [key: string]: any } {
93
115
  return {
94
- requestId: 'string',
95
- directories: { 'type': 'array', 'itemType': DescribeDirectoriesResponseDirectories },
116
+ clientId: 'string',
117
+ endUserId: 'string',
118
+ loginToken: 'string',
119
+ newPassword: 'string',
120
+ officeSiteId: 'string',
121
+ oldPassword: 'string',
122
+ regionId: 'string',
123
+ sessionId: 'string',
96
124
  };
97
125
  }
98
126
 
@@ -101,47 +129,20 @@ export class DescribeDirectoriesResponse extends $tea.Model {
101
129
  }
102
130
  }
103
131
 
104
- export class DescribeDesktopsRequest extends $tea.Model {
105
- regionId: string;
106
- directoryId?: string;
107
- clientId: string;
108
- loginToken: string;
109
- groupId?: string;
110
- desktopStatus?: string;
111
- maxResults?: number;
112
- nextToken?: string;
113
- userName?: string;
114
- desktopName?: string;
115
- desktopId?: string[];
132
+ export class ChangePasswordResponseBody extends $tea.Model {
133
+ loginToken?: string;
134
+ requestId?: string;
116
135
  static names(): { [key: string]: string } {
117
136
  return {
118
- regionId: 'RegionId',
119
- directoryId: 'DirectoryId',
120
- clientId: 'ClientId',
121
137
  loginToken: 'LoginToken',
122
- groupId: 'GroupId',
123
- desktopStatus: 'DesktopStatus',
124
- maxResults: 'MaxResults',
125
- nextToken: 'NextToken',
126
- userName: 'UserName',
127
- desktopName: 'DesktopName',
128
- desktopId: 'DesktopId',
138
+ requestId: 'RequestId',
129
139
  };
130
140
  }
131
141
 
132
142
  static types(): { [key: string]: any } {
133
143
  return {
134
- regionId: 'string',
135
- directoryId: 'string',
136
- clientId: 'string',
137
144
  loginToken: 'string',
138
- groupId: 'string',
139
- desktopStatus: 'string',
140
- maxResults: 'number',
141
- nextToken: 'string',
142
- userName: 'string',
143
- desktopName: 'string',
144
- desktopId: { 'type': 'array', 'itemType': 'string' },
145
+ requestId: 'string',
145
146
  };
146
147
  }
147
148
 
@@ -150,23 +151,23 @@ export class DescribeDesktopsRequest extends $tea.Model {
150
151
  }
151
152
  }
152
153
 
153
- export class DescribeDesktopsResponse extends $tea.Model {
154
- requestId: string;
155
- nextToken: string;
156
- desktops: DescribeDesktopsResponseDesktops[];
154
+ export class ChangePasswordResponse extends $tea.Model {
155
+ headers?: { [key: string]: string };
156
+ statusCode?: number;
157
+ body?: ChangePasswordResponseBody;
157
158
  static names(): { [key: string]: string } {
158
159
  return {
159
- requestId: 'RequestId',
160
- nextToken: 'NextToken',
161
- desktops: 'Desktops',
160
+ headers: 'headers',
161
+ statusCode: 'statusCode',
162
+ body: 'body',
162
163
  };
163
164
  }
164
165
 
165
166
  static types(): { [key: string]: any } {
166
167
  return {
167
- requestId: 'string',
168
- nextToken: 'string',
169
- desktops: { 'type': 'array', 'itemType': DescribeDesktopsResponseDesktops },
168
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
169
+ statusCode: 'number',
170
+ body: ChangePasswordResponseBody,
170
171
  };
171
172
  }
172
173
 
@@ -175,26 +176,32 @@ export class DescribeDesktopsResponse extends $tea.Model {
175
176
  }
176
177
  }
177
178
 
178
- export class RebootDesktopsRequest extends $tea.Model {
179
- regionId: string;
180
- clientId: string;
181
- loginToken: string;
182
- desktopId: string[];
179
+ export class DeleteFingerPrintTemplateRequest extends $tea.Model {
180
+ clientId?: string;
181
+ clientToken?: string;
182
+ index?: number;
183
+ loginToken?: string;
184
+ regionId?: string;
185
+ sessionId?: string;
183
186
  static names(): { [key: string]: string } {
184
187
  return {
185
- regionId: 'RegionId',
186
188
  clientId: 'ClientId',
189
+ clientToken: 'ClientToken',
190
+ index: 'Index',
187
191
  loginToken: 'LoginToken',
188
- desktopId: 'DesktopId',
192
+ regionId: 'RegionId',
193
+ sessionId: 'SessionId',
189
194
  };
190
195
  }
191
196
 
192
197
  static types(): { [key: string]: any } {
193
198
  return {
194
- regionId: 'string',
195
199
  clientId: 'string',
200
+ clientToken: 'string',
201
+ index: 'number',
196
202
  loginToken: 'string',
197
- desktopId: { 'type': 'array', 'itemType': 'string' },
203
+ regionId: 'string',
204
+ sessionId: 'string',
198
205
  };
199
206
  }
200
207
 
@@ -203,8 +210,8 @@ export class RebootDesktopsRequest extends $tea.Model {
203
210
  }
204
211
  }
205
212
 
206
- export class RebootDesktopsResponse extends $tea.Model {
207
- requestId: string;
213
+ export class DeleteFingerPrintTemplateResponseBody extends $tea.Model {
214
+ requestId?: string;
208
215
  static names(): { [key: string]: string } {
209
216
  return {
210
217
  requestId: 'RequestId',
@@ -222,29 +229,48 @@ export class RebootDesktopsResponse extends $tea.Model {
222
229
  }
223
230
  }
224
231
 
225
- export class GetConnectionTicketRequest extends $tea.Model {
226
- regionId: string;
227
- clientId: string;
228
- loginToken: string;
229
- taskId?: string;
230
- desktopId?: string;
232
+ export class DeleteFingerPrintTemplateResponse extends $tea.Model {
233
+ headers?: { [key: string]: string };
234
+ statusCode?: number;
235
+ body?: DeleteFingerPrintTemplateResponseBody;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ headers: 'headers',
239
+ statusCode: 'statusCode',
240
+ body: 'body',
241
+ };
242
+ }
243
+
244
+ static types(): { [key: string]: any } {
245
+ return {
246
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
247
+ statusCode: 'number',
248
+ body: DeleteFingerPrintTemplateResponseBody,
249
+ };
250
+ }
251
+
252
+ constructor(map?: { [key: string]: any }) {
253
+ super(map);
254
+ }
255
+ }
256
+
257
+ export class DescribeDirectoriesRequest extends $tea.Model {
258
+ clientId?: string;
259
+ directoryId?: string[];
260
+ regionId?: string;
231
261
  static names(): { [key: string]: string } {
232
262
  return {
233
- regionId: 'RegionId',
234
263
  clientId: 'ClientId',
235
- loginToken: 'LoginToken',
236
- taskId: 'TaskId',
237
- desktopId: 'DesktopId',
264
+ directoryId: 'DirectoryId',
265
+ regionId: 'RegionId',
238
266
  };
239
267
  }
240
268
 
241
269
  static types(): { [key: string]: any } {
242
270
  return {
243
- regionId: 'string',
244
271
  clientId: 'string',
245
- loginToken: 'string',
246
- taskId: 'string',
247
- desktopId: 'string',
272
+ directoryId: { 'type': 'array', 'itemType': 'string' },
273
+ regionId: 'string',
248
274
  };
249
275
  }
250
276
 
@@ -253,26 +279,20 @@ export class GetConnectionTicketRequest extends $tea.Model {
253
279
  }
254
280
  }
255
281
 
256
- export class GetConnectionTicketResponse extends $tea.Model {
257
- requestId: string;
258
- taskId: string;
259
- taskStatus: string;
260
- ticket: string;
282
+ export class DescribeDirectoriesResponseBody extends $tea.Model {
283
+ directories?: DescribeDirectoriesResponseBodyDirectories[];
284
+ requestId?: string;
261
285
  static names(): { [key: string]: string } {
262
286
  return {
287
+ directories: 'Directories',
263
288
  requestId: 'RequestId',
264
- taskId: 'TaskId',
265
- taskStatus: 'TaskStatus',
266
- ticket: 'Ticket',
267
289
  };
268
290
  }
269
291
 
270
292
  static types(): { [key: string]: any } {
271
293
  return {
294
+ directories: { 'type': 'array', 'itemType': DescribeDirectoriesResponseBodyDirectories },
272
295
  requestId: 'string',
273
- taskId: 'string',
274
- taskStatus: 'string',
275
- ticket: 'string',
276
296
  };
277
297
  }
278
298
 
@@ -281,29 +301,23 @@ export class GetConnectionTicketResponse extends $tea.Model {
281
301
  }
282
302
  }
283
303
 
284
- export class GetLoginTokenRequest extends $tea.Model {
285
- regionId: string;
286
- clientId: string;
287
- directoryId: string;
288
- endUserId: string;
289
- password: string;
304
+ export class DescribeDirectoriesResponse extends $tea.Model {
305
+ headers?: { [key: string]: string };
306
+ statusCode?: number;
307
+ body?: DescribeDirectoriesResponseBody;
290
308
  static names(): { [key: string]: string } {
291
309
  return {
292
- regionId: 'RegionId',
293
- clientId: 'ClientId',
294
- directoryId: 'DirectoryId',
295
- endUserId: 'EndUserId',
296
- password: 'Password',
310
+ headers: 'headers',
311
+ statusCode: 'statusCode',
312
+ body: 'body',
297
313
  };
298
314
  }
299
315
 
300
316
  static types(): { [key: string]: any } {
301
317
  return {
302
- regionId: 'string',
303
- clientId: 'string',
304
- directoryId: 'string',
305
- endUserId: 'string',
306
- password: 'string',
318
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
319
+ statusCode: 'number',
320
+ body: DescribeDirectoriesResponseBody,
307
321
  };
308
322
  }
309
323
 
@@ -312,20 +326,26 @@ export class GetLoginTokenRequest extends $tea.Model {
312
326
  }
313
327
  }
314
328
 
315
- export class GetLoginTokenResponse extends $tea.Model {
316
- loginToken: string;
317
- requestId: string;
329
+ export class DescribeFingerPrintTemplatesRequest extends $tea.Model {
330
+ clientId?: string;
331
+ loginToken?: string;
332
+ regionId?: string;
333
+ sessionId?: string;
318
334
  static names(): { [key: string]: string } {
319
335
  return {
336
+ clientId: 'ClientId',
320
337
  loginToken: 'LoginToken',
321
- requestId: 'RequestId',
338
+ regionId: 'RegionId',
339
+ sessionId: 'SessionId',
322
340
  };
323
341
  }
324
342
 
325
343
  static types(): { [key: string]: any } {
326
344
  return {
345
+ clientId: 'string',
327
346
  loginToken: 'string',
328
- requestId: 'string',
347
+ regionId: 'string',
348
+ sessionId: 'string',
329
349
  };
330
350
  }
331
351
 
@@ -334,20 +354,20 @@ export class GetLoginTokenResponse extends $tea.Model {
334
354
  }
335
355
  }
336
356
 
337
- export class DescribeDirectoriesResponseDirectories extends $tea.Model {
338
- directoryId: string;
339
- directoryType: string;
357
+ export class DescribeFingerPrintTemplatesResponseBody extends $tea.Model {
358
+ fingerPrintTemplates?: DescribeFingerPrintTemplatesResponseBodyFingerPrintTemplates[];
359
+ requestId?: string;
340
360
  static names(): { [key: string]: string } {
341
361
  return {
342
- directoryId: 'DirectoryId',
343
- directoryType: 'DirectoryType',
362
+ fingerPrintTemplates: 'FingerPrintTemplates',
363
+ requestId: 'RequestId',
344
364
  };
345
365
  }
346
366
 
347
367
  static types(): { [key: string]: any } {
348
368
  return {
349
- directoryId: 'string',
350
- directoryType: 'string',
369
+ fingerPrintTemplates: { 'type': 'array', 'itemType': DescribeFingerPrintTemplatesResponseBodyFingerPrintTemplates },
370
+ requestId: 'string',
351
371
  };
352
372
  }
353
373
 
@@ -356,23 +376,23 @@ export class DescribeDirectoriesResponseDirectories extends $tea.Model {
356
376
  }
357
377
  }
358
378
 
359
- export class DescribeDesktopsResponseDesktopsDisks extends $tea.Model {
360
- diskId: string;
361
- diskSize: number;
362
- diskType: string;
379
+ export class DescribeFingerPrintTemplatesResponse extends $tea.Model {
380
+ headers?: { [key: string]: string };
381
+ statusCode?: number;
382
+ body?: DescribeFingerPrintTemplatesResponseBody;
363
383
  static names(): { [key: string]: string } {
364
384
  return {
365
- diskId: 'DiskId',
366
- diskSize: 'DiskSize',
367
- diskType: 'DiskType',
385
+ headers: 'headers',
386
+ statusCode: 'statusCode',
387
+ body: 'body',
368
388
  };
369
389
  }
370
390
 
371
391
  static types(): { [key: string]: any } {
372
392
  return {
373
- diskId: 'string',
374
- diskSize: 'number',
375
- diskType: 'string',
393
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
394
+ statusCode: 'number',
395
+ body: DescribeFingerPrintTemplatesResponseBody,
376
396
  };
377
397
  }
378
398
 
@@ -381,68 +401,71 @@ export class DescribeDesktopsResponseDesktopsDisks extends $tea.Model {
381
401
  }
382
402
  }
383
403
 
384
- export class DescribeDesktopsResponseDesktops extends $tea.Model {
385
- directoryId: string;
386
- creationTime: string;
387
- desktopId: string;
388
- desktopStatus: string;
389
- desktopName: string;
390
- imageId: string;
391
- desktopType: string;
392
- systemDiskCategory: string;
393
- systemDiskSize: number;
394
- dataDiskCategory: string;
395
- dataDiskSize: string;
396
- connectionStatus: string;
397
- policyGroupId: string;
398
- cpu: number;
399
- memory: number;
400
- networkInterfaceId: number;
401
- disks: DescribeDesktopsResponseDesktopsDisks[];
402
- endUserIds: string[];
404
+ export class DescribeGlobalDesktopsRequest extends $tea.Model {
405
+ clientId?: string;
406
+ desktopAccessType?: string;
407
+ desktopId?: string[];
408
+ desktopName?: string;
409
+ desktopStatus?: string;
410
+ directoryId?: string;
411
+ keyword?: string;
412
+ loginRegionId?: string;
413
+ loginToken?: string;
414
+ maxResults?: number;
415
+ nextToken?: string;
416
+ officeSiteId?: string;
417
+ orderBy?: string;
418
+ queryFotaUpdate?: boolean;
419
+ regionId?: string;
420
+ searchRegionId?: string;
421
+ sessionId?: string;
422
+ sortType?: string;
423
+ withoutLatency?: boolean;
403
424
  static names(): { [key: string]: string } {
404
425
  return {
405
- directoryId: 'DirectoryId',
406
- creationTime: 'CreationTime',
426
+ clientId: 'ClientId',
427
+ desktopAccessType: 'DesktopAccessType',
407
428
  desktopId: 'DesktopId',
408
- desktopStatus: 'DesktopStatus',
409
429
  desktopName: 'DesktopName',
410
- imageId: 'ImageId',
411
- desktopType: 'DesktopType',
412
- systemDiskCategory: 'SystemDiskCategory',
413
- systemDiskSize: 'SystemDiskSize',
414
- dataDiskCategory: 'DataDiskCategory',
415
- dataDiskSize: 'DataDiskSize',
416
- connectionStatus: 'ConnectionStatus',
417
- policyGroupId: 'PolicyGroupId',
418
- cpu: 'Cpu',
419
- memory: 'Memory',
420
- networkInterfaceId: 'NetworkInterfaceId',
421
- disks: 'Disks',
422
- endUserIds: 'EndUserIds',
430
+ desktopStatus: 'DesktopStatus',
431
+ directoryId: 'DirectoryId',
432
+ keyword: 'Keyword',
433
+ loginRegionId: 'LoginRegionId',
434
+ loginToken: 'LoginToken',
435
+ maxResults: 'MaxResults',
436
+ nextToken: 'NextToken',
437
+ officeSiteId: 'OfficeSiteId',
438
+ orderBy: 'OrderBy',
439
+ queryFotaUpdate: 'QueryFotaUpdate',
440
+ regionId: 'RegionId',
441
+ searchRegionId: 'SearchRegionId',
442
+ sessionId: 'SessionId',
443
+ sortType: 'SortType',
444
+ withoutLatency: 'WithoutLatency',
423
445
  };
424
446
  }
425
447
 
426
448
  static types(): { [key: string]: any } {
427
449
  return {
428
- directoryId: 'string',
429
- creationTime: 'string',
430
- desktopId: 'string',
431
- desktopStatus: 'string',
450
+ clientId: 'string',
451
+ desktopAccessType: 'string',
452
+ desktopId: { 'type': 'array', 'itemType': 'string' },
432
453
  desktopName: 'string',
433
- imageId: 'string',
434
- desktopType: 'string',
435
- systemDiskCategory: 'string',
436
- systemDiskSize: 'number',
437
- dataDiskCategory: 'string',
438
- dataDiskSize: 'string',
439
- connectionStatus: 'string',
440
- policyGroupId: 'string',
441
- cpu: 'number',
442
- memory: 'number',
443
- networkInterfaceId: 'number',
444
- disks: { 'type': 'array', 'itemType': DescribeDesktopsResponseDesktopsDisks },
445
- endUserIds: { 'type': 'array', 'itemType': 'string' },
454
+ desktopStatus: 'string',
455
+ directoryId: 'string',
456
+ keyword: 'string',
457
+ loginRegionId: 'string',
458
+ loginToken: 'string',
459
+ maxResults: 'number',
460
+ nextToken: 'string',
461
+ officeSiteId: 'string',
462
+ orderBy: 'string',
463
+ queryFotaUpdate: 'boolean',
464
+ regionId: 'string',
465
+ searchRegionId: 'string',
466
+ sessionId: 'string',
467
+ sortType: 'string',
468
+ withoutLatency: 'boolean',
446
469
  };
447
470
  }
448
471
 
@@ -451,87 +474,4297 @@ export class DescribeDesktopsResponseDesktops extends $tea.Model {
451
474
  }
452
475
  }
453
476
 
454
-
455
- export default class Client extends RPC {
456
-
457
- constructor(config: $RPC.Config) {
458
- super(config);
459
- this._endpointRule = "regional";
460
- this.checkConfig(config);
461
- this._endpoint = this.getEndpoint("ecd", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
477
+ export class DescribeGlobalDesktopsResponseBody extends $tea.Model {
478
+ desktops?: DescribeGlobalDesktopsResponseBodyDesktops[];
479
+ nextToken?: string;
480
+ requestId?: string;
481
+ static names(): { [key: string]: string } {
482
+ return {
483
+ desktops: 'Desktops',
484
+ nextToken: 'NextToken',
485
+ requestId: 'RequestId',
486
+ };
462
487
  }
463
488
 
489
+ static types(): { [key: string]: any } {
490
+ return {
491
+ desktops: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktops },
492
+ nextToken: 'string',
493
+ requestId: 'string',
494
+ };
495
+ }
464
496
 
465
- async refreshLoginTokenWithOptions(request: RefreshLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<RefreshLoginTokenResponse> {
466
- Util.validateModel(request);
467
- return $tea.cast<RefreshLoginTokenResponse>(await this.doRequest("RefreshLoginToken", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new RefreshLoginTokenResponse({}));
497
+ constructor(map?: { [key: string]: any }) {
498
+ super(map);
468
499
  }
500
+ }
469
501
 
470
- async refreshLoginToken(request: RefreshLoginTokenRequest): Promise<RefreshLoginTokenResponse> {
471
- let runtime = new $Util.RuntimeOptions({ });
472
- return await this.refreshLoginTokenWithOptions(request, runtime);
502
+ export class DescribeGlobalDesktopsResponse extends $tea.Model {
503
+ headers?: { [key: string]: string };
504
+ statusCode?: number;
505
+ body?: DescribeGlobalDesktopsResponseBody;
506
+ static names(): { [key: string]: string } {
507
+ return {
508
+ headers: 'headers',
509
+ statusCode: 'statusCode',
510
+ body: 'body',
511
+ };
473
512
  }
474
513
 
475
- async describeDirectoriesWithOptions(request: DescribeDirectoriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDirectoriesResponse> {
476
- Util.validateModel(request);
477
- return $tea.cast<DescribeDirectoriesResponse>(await this.doRequest("DescribeDirectories", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new DescribeDirectoriesResponse({}));
514
+ static types(): { [key: string]: any } {
515
+ return {
516
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
517
+ statusCode: 'number',
518
+ body: DescribeGlobalDesktopsResponseBody,
519
+ };
478
520
  }
479
521
 
480
- async describeDirectories(request: DescribeDirectoriesRequest): Promise<DescribeDirectoriesResponse> {
481
- let runtime = new $Util.RuntimeOptions({ });
482
- return await this.describeDirectoriesWithOptions(request, runtime);
522
+ constructor(map?: { [key: string]: any }) {
523
+ super(map);
483
524
  }
525
+ }
484
526
 
485
- async describeDesktopsWithOptions(request: DescribeDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDesktopsResponse> {
486
- Util.validateModel(request);
487
- return $tea.cast<DescribeDesktopsResponse>(await this.doRequest("DescribeDesktops", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new DescribeDesktopsResponse({}));
527
+ export class DescribeOfficeSitesRequest extends $tea.Model {
528
+ clientId?: string;
529
+ officeSiteId?: string[];
530
+ regionId?: string;
531
+ static names(): { [key: string]: string } {
532
+ return {
533
+ clientId: 'ClientId',
534
+ officeSiteId: 'OfficeSiteId',
535
+ regionId: 'RegionId',
536
+ };
488
537
  }
489
538
 
490
- async describeDesktops(request: DescribeDesktopsRequest): Promise<DescribeDesktopsResponse> {
491
- let runtime = new $Util.RuntimeOptions({ });
492
- return await this.describeDesktopsWithOptions(request, runtime);
539
+ static types(): { [key: string]: any } {
540
+ return {
541
+ clientId: 'string',
542
+ officeSiteId: { 'type': 'array', 'itemType': 'string' },
543
+ regionId: 'string',
544
+ };
493
545
  }
494
546
 
495
- async rebootDesktopsWithOptions(request: RebootDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<RebootDesktopsResponse> {
496
- Util.validateModel(request);
497
- return $tea.cast<RebootDesktopsResponse>(await this.doRequest("RebootDesktops", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new RebootDesktopsResponse({}));
547
+ constructor(map?: { [key: string]: any }) {
548
+ super(map);
498
549
  }
550
+ }
499
551
 
500
- async rebootDesktops(request: RebootDesktopsRequest): Promise<RebootDesktopsResponse> {
501
- let runtime = new $Util.RuntimeOptions({ });
502
- return await this.rebootDesktopsWithOptions(request, runtime);
552
+ export class DescribeOfficeSitesResponseBody extends $tea.Model {
553
+ officeSites?: DescribeOfficeSitesResponseBodyOfficeSites[];
554
+ requestId?: string;
555
+ static names(): { [key: string]: string } {
556
+ return {
557
+ officeSites: 'OfficeSites',
558
+ requestId: 'RequestId',
559
+ };
503
560
  }
504
561
 
505
- async getConnectionTicketWithOptions(request: GetConnectionTicketRequest, runtime: $Util.RuntimeOptions): Promise<GetConnectionTicketResponse> {
506
- Util.validateModel(request);
507
- return $tea.cast<GetConnectionTicketResponse>(await this.doRequest("GetConnectionTicket", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new GetConnectionTicketResponse({}));
562
+ static types(): { [key: string]: any } {
563
+ return {
564
+ officeSites: { 'type': 'array', 'itemType': DescribeOfficeSitesResponseBodyOfficeSites },
565
+ requestId: 'string',
566
+ };
508
567
  }
509
568
 
510
- async getConnectionTicket(request: GetConnectionTicketRequest): Promise<GetConnectionTicketResponse> {
569
+ constructor(map?: { [key: string]: any }) {
570
+ super(map);
571
+ }
572
+ }
573
+
574
+ export class DescribeOfficeSitesResponse extends $tea.Model {
575
+ headers?: { [key: string]: string };
576
+ statusCode?: number;
577
+ body?: DescribeOfficeSitesResponseBody;
578
+ static names(): { [key: string]: string } {
579
+ return {
580
+ headers: 'headers',
581
+ statusCode: 'statusCode',
582
+ body: 'body',
583
+ };
584
+ }
585
+
586
+ static types(): { [key: string]: any } {
587
+ return {
588
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
589
+ statusCode: 'number',
590
+ body: DescribeOfficeSitesResponseBody,
591
+ };
592
+ }
593
+
594
+ constructor(map?: { [key: string]: any }) {
595
+ super(map);
596
+ }
597
+ }
598
+
599
+ export class DescribeRegionsRequest extends $tea.Model {
600
+ clientId?: string;
601
+ regionId?: string;
602
+ static names(): { [key: string]: string } {
603
+ return {
604
+ clientId: 'ClientId',
605
+ regionId: 'RegionId',
606
+ };
607
+ }
608
+
609
+ static types(): { [key: string]: any } {
610
+ return {
611
+ clientId: 'string',
612
+ regionId: 'string',
613
+ };
614
+ }
615
+
616
+ constructor(map?: { [key: string]: any }) {
617
+ super(map);
618
+ }
619
+ }
620
+
621
+ export class DescribeRegionsResponseBody extends $tea.Model {
622
+ regions?: DescribeRegionsResponseBodyRegions[];
623
+ requestId?: string;
624
+ static names(): { [key: string]: string } {
625
+ return {
626
+ regions: 'Regions',
627
+ requestId: 'RequestId',
628
+ };
629
+ }
630
+
631
+ static types(): { [key: string]: any } {
632
+ return {
633
+ regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
634
+ requestId: 'string',
635
+ };
636
+ }
637
+
638
+ constructor(map?: { [key: string]: any }) {
639
+ super(map);
640
+ }
641
+ }
642
+
643
+ export class DescribeRegionsResponse extends $tea.Model {
644
+ headers?: { [key: string]: string };
645
+ statusCode?: number;
646
+ body?: DescribeRegionsResponseBody;
647
+ static names(): { [key: string]: string } {
648
+ return {
649
+ headers: 'headers',
650
+ statusCode: 'statusCode',
651
+ body: 'body',
652
+ };
653
+ }
654
+
655
+ static types(): { [key: string]: any } {
656
+ return {
657
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
658
+ statusCode: 'number',
659
+ body: DescribeRegionsResponseBody,
660
+ };
661
+ }
662
+
663
+ constructor(map?: { [key: string]: any }) {
664
+ super(map);
665
+ }
666
+ }
667
+
668
+ export class DescribeSnapshotsRequest extends $tea.Model {
669
+ clientId?: string;
670
+ desktopId?: string;
671
+ loginToken?: string;
672
+ maxResults?: number;
673
+ nextToken?: string;
674
+ regionId?: string;
675
+ sessionId?: string;
676
+ snapshotId?: string;
677
+ static names(): { [key: string]: string } {
678
+ return {
679
+ clientId: 'ClientId',
680
+ desktopId: 'DesktopId',
681
+ loginToken: 'LoginToken',
682
+ maxResults: 'MaxResults',
683
+ nextToken: 'NextToken',
684
+ regionId: 'RegionId',
685
+ sessionId: 'SessionId',
686
+ snapshotId: 'SnapshotId',
687
+ };
688
+ }
689
+
690
+ static types(): { [key: string]: any } {
691
+ return {
692
+ clientId: 'string',
693
+ desktopId: 'string',
694
+ loginToken: 'string',
695
+ maxResults: 'number',
696
+ nextToken: 'string',
697
+ regionId: 'string',
698
+ sessionId: 'string',
699
+ snapshotId: 'string',
700
+ };
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+
708
+ export class DescribeSnapshotsResponseBody extends $tea.Model {
709
+ nextToken?: string;
710
+ requestId?: string;
711
+ snapshots?: DescribeSnapshotsResponseBodySnapshots[];
712
+ static names(): { [key: string]: string } {
713
+ return {
714
+ nextToken: 'NextToken',
715
+ requestId: 'RequestId',
716
+ snapshots: 'Snapshots',
717
+ };
718
+ }
719
+
720
+ static types(): { [key: string]: any } {
721
+ return {
722
+ nextToken: 'string',
723
+ requestId: 'string',
724
+ snapshots: { 'type': 'array', 'itemType': DescribeSnapshotsResponseBodySnapshots },
725
+ };
726
+ }
727
+
728
+ constructor(map?: { [key: string]: any }) {
729
+ super(map);
730
+ }
731
+ }
732
+
733
+ export class DescribeSnapshotsResponse extends $tea.Model {
734
+ headers?: { [key: string]: string };
735
+ statusCode?: number;
736
+ body?: DescribeSnapshotsResponseBody;
737
+ static names(): { [key: string]: string } {
738
+ return {
739
+ headers: 'headers',
740
+ statusCode: 'statusCode',
741
+ body: 'body',
742
+ };
743
+ }
744
+
745
+ static types(): { [key: string]: any } {
746
+ return {
747
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
748
+ statusCode: 'number',
749
+ body: DescribeSnapshotsResponseBody,
750
+ };
751
+ }
752
+
753
+ constructor(map?: { [key: string]: any }) {
754
+ super(map);
755
+ }
756
+ }
757
+
758
+ export class EncryptPasswordRequest extends $tea.Model {
759
+ clientId?: string;
760
+ directoryId?: string;
761
+ loginToken?: string;
762
+ officeSiteId?: string;
763
+ password?: string;
764
+ regionId?: string;
765
+ sessionId?: string;
766
+ static names(): { [key: string]: string } {
767
+ return {
768
+ clientId: 'ClientId',
769
+ directoryId: 'DirectoryId',
770
+ loginToken: 'LoginToken',
771
+ officeSiteId: 'OfficeSiteId',
772
+ password: 'Password',
773
+ regionId: 'RegionId',
774
+ sessionId: 'SessionId',
775
+ };
776
+ }
777
+
778
+ static types(): { [key: string]: any } {
779
+ return {
780
+ clientId: 'string',
781
+ directoryId: 'string',
782
+ loginToken: 'string',
783
+ officeSiteId: 'string',
784
+ password: 'string',
785
+ regionId: 'string',
786
+ sessionId: 'string',
787
+ };
788
+ }
789
+
790
+ constructor(map?: { [key: string]: any }) {
791
+ super(map);
792
+ }
793
+ }
794
+
795
+ export class EncryptPasswordResponseBody extends $tea.Model {
796
+ encryptedPassword?: string;
797
+ requestId?: string;
798
+ static names(): { [key: string]: string } {
799
+ return {
800
+ encryptedPassword: 'EncryptedPassword',
801
+ requestId: 'RequestId',
802
+ };
803
+ }
804
+
805
+ static types(): { [key: string]: any } {
806
+ return {
807
+ encryptedPassword: 'string',
808
+ requestId: 'string',
809
+ };
810
+ }
811
+
812
+ constructor(map?: { [key: string]: any }) {
813
+ super(map);
814
+ }
815
+ }
816
+
817
+ export class EncryptPasswordResponse extends $tea.Model {
818
+ headers?: { [key: string]: string };
819
+ statusCode?: number;
820
+ body?: EncryptPasswordResponseBody;
821
+ static names(): { [key: string]: string } {
822
+ return {
823
+ headers: 'headers',
824
+ statusCode: 'statusCode',
825
+ body: 'body',
826
+ };
827
+ }
828
+
829
+ static types(): { [key: string]: any } {
830
+ return {
831
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
832
+ statusCode: 'number',
833
+ body: EncryptPasswordResponseBody,
834
+ };
835
+ }
836
+
837
+ constructor(map?: { [key: string]: any }) {
838
+ super(map);
839
+ }
840
+ }
841
+
842
+ export class GetCloudDriveServiceMountTokenRequest extends $tea.Model {
843
+ clientId?: string;
844
+ loginToken?: string;
845
+ officeSiteId?: string;
846
+ regionId?: string;
847
+ sessionId?: string;
848
+ static names(): { [key: string]: string } {
849
+ return {
850
+ clientId: 'ClientId',
851
+ loginToken: 'LoginToken',
852
+ officeSiteId: 'OfficeSiteId',
853
+ regionId: 'RegionId',
854
+ sessionId: 'SessionId',
855
+ };
856
+ }
857
+
858
+ static types(): { [key: string]: any } {
859
+ return {
860
+ clientId: 'string',
861
+ loginToken: 'string',
862
+ officeSiteId: 'string',
863
+ regionId: 'string',
864
+ sessionId: 'string',
865
+ };
866
+ }
867
+
868
+ constructor(map?: { [key: string]: any }) {
869
+ super(map);
870
+ }
871
+ }
872
+
873
+ export class GetCloudDriveServiceMountTokenResponseBody extends $tea.Model {
874
+ requestId?: string;
875
+ token?: GetCloudDriveServiceMountTokenResponseBodyToken;
876
+ static names(): { [key: string]: string } {
877
+ return {
878
+ requestId: 'RequestId',
879
+ token: 'Token',
880
+ };
881
+ }
882
+
883
+ static types(): { [key: string]: any } {
884
+ return {
885
+ requestId: 'string',
886
+ token: GetCloudDriveServiceMountTokenResponseBodyToken,
887
+ };
888
+ }
889
+
890
+ constructor(map?: { [key: string]: any }) {
891
+ super(map);
892
+ }
893
+ }
894
+
895
+ export class GetCloudDriveServiceMountTokenResponse extends $tea.Model {
896
+ headers?: { [key: string]: string };
897
+ statusCode?: number;
898
+ body?: GetCloudDriveServiceMountTokenResponseBody;
899
+ static names(): { [key: string]: string } {
900
+ return {
901
+ headers: 'headers',
902
+ statusCode: 'statusCode',
903
+ body: 'body',
904
+ };
905
+ }
906
+
907
+ static types(): { [key: string]: any } {
908
+ return {
909
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
910
+ statusCode: 'number',
911
+ body: GetCloudDriveServiceMountTokenResponseBody,
912
+ };
913
+ }
914
+
915
+ constructor(map?: { [key: string]: any }) {
916
+ super(map);
917
+ }
918
+ }
919
+
920
+ export class GetConnectionTicketRequest extends $tea.Model {
921
+ clientId?: string;
922
+ clientOS?: string;
923
+ clientType?: string;
924
+ clientVersion?: string;
925
+ commandContent?: string;
926
+ desktopId?: string;
927
+ loginToken?: string;
928
+ ownerId?: number;
929
+ regionId?: string;
930
+ resourceOwnerAccount?: string;
931
+ resourceOwnerId?: number;
932
+ sessionId?: string;
933
+ taskId?: string;
934
+ uuid?: string;
935
+ static names(): { [key: string]: string } {
936
+ return {
937
+ clientId: 'ClientId',
938
+ clientOS: 'ClientOS',
939
+ clientType: 'ClientType',
940
+ clientVersion: 'ClientVersion',
941
+ commandContent: 'CommandContent',
942
+ desktopId: 'DesktopId',
943
+ loginToken: 'LoginToken',
944
+ ownerId: 'OwnerId',
945
+ regionId: 'RegionId',
946
+ resourceOwnerAccount: 'ResourceOwnerAccount',
947
+ resourceOwnerId: 'ResourceOwnerId',
948
+ sessionId: 'SessionId',
949
+ taskId: 'TaskId',
950
+ uuid: 'Uuid',
951
+ };
952
+ }
953
+
954
+ static types(): { [key: string]: any } {
955
+ return {
956
+ clientId: 'string',
957
+ clientOS: 'string',
958
+ clientType: 'string',
959
+ clientVersion: 'string',
960
+ commandContent: 'string',
961
+ desktopId: 'string',
962
+ loginToken: 'string',
963
+ ownerId: 'number',
964
+ regionId: 'string',
965
+ resourceOwnerAccount: 'string',
966
+ resourceOwnerId: 'number',
967
+ sessionId: 'string',
968
+ taskId: 'string',
969
+ uuid: 'string',
970
+ };
971
+ }
972
+
973
+ constructor(map?: { [key: string]: any }) {
974
+ super(map);
975
+ }
976
+ }
977
+
978
+ export class GetConnectionTicketResponseBody extends $tea.Model {
979
+ requestId?: string;
980
+ taskCode?: string;
981
+ taskId?: string;
982
+ taskMessage?: string;
983
+ taskStatus?: string;
984
+ ticket?: string;
985
+ static names(): { [key: string]: string } {
986
+ return {
987
+ requestId: 'RequestId',
988
+ taskCode: 'TaskCode',
989
+ taskId: 'TaskId',
990
+ taskMessage: 'TaskMessage',
991
+ taskStatus: 'TaskStatus',
992
+ ticket: 'Ticket',
993
+ };
994
+ }
995
+
996
+ static types(): { [key: string]: any } {
997
+ return {
998
+ requestId: 'string',
999
+ taskCode: 'string',
1000
+ taskId: 'string',
1001
+ taskMessage: 'string',
1002
+ taskStatus: 'string',
1003
+ ticket: 'string',
1004
+ };
1005
+ }
1006
+
1007
+ constructor(map?: { [key: string]: any }) {
1008
+ super(map);
1009
+ }
1010
+ }
1011
+
1012
+ export class GetConnectionTicketResponse extends $tea.Model {
1013
+ headers?: { [key: string]: string };
1014
+ statusCode?: number;
1015
+ body?: GetConnectionTicketResponseBody;
1016
+ static names(): { [key: string]: string } {
1017
+ return {
1018
+ headers: 'headers',
1019
+ statusCode: 'statusCode',
1020
+ body: 'body',
1021
+ };
1022
+ }
1023
+
1024
+ static types(): { [key: string]: any } {
1025
+ return {
1026
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1027
+ statusCode: 'number',
1028
+ body: GetConnectionTicketResponseBody,
1029
+ };
1030
+ }
1031
+
1032
+ constructor(map?: { [key: string]: any }) {
1033
+ super(map);
1034
+ }
1035
+ }
1036
+
1037
+ export class GetLoginTokenRequest extends $tea.Model {
1038
+ authenticationCode?: string;
1039
+ clientId?: string;
1040
+ clientOS?: string;
1041
+ clientType?: string;
1042
+ clientVersion?: string;
1043
+ currentStage?: string;
1044
+ directoryId?: string;
1045
+ endUserId?: string;
1046
+ keepAlive?: boolean;
1047
+ keepAliveToken?: string;
1048
+ newPassword?: string;
1049
+ officeSiteId?: string;
1050
+ oldPassword?: string;
1051
+ password?: string;
1052
+ regionId?: string;
1053
+ sessionId?: string;
1054
+ tokenCode?: string;
1055
+ uuid?: string;
1056
+ static names(): { [key: string]: string } {
1057
+ return {
1058
+ authenticationCode: 'AuthenticationCode',
1059
+ clientId: 'ClientId',
1060
+ clientOS: 'ClientOS',
1061
+ clientType: 'ClientType',
1062
+ clientVersion: 'ClientVersion',
1063
+ currentStage: 'CurrentStage',
1064
+ directoryId: 'DirectoryId',
1065
+ endUserId: 'EndUserId',
1066
+ keepAlive: 'KeepAlive',
1067
+ keepAliveToken: 'KeepAliveToken',
1068
+ newPassword: 'NewPassword',
1069
+ officeSiteId: 'OfficeSiteId',
1070
+ oldPassword: 'OldPassword',
1071
+ password: 'Password',
1072
+ regionId: 'RegionId',
1073
+ sessionId: 'SessionId',
1074
+ tokenCode: 'TokenCode',
1075
+ uuid: 'Uuid',
1076
+ };
1077
+ }
1078
+
1079
+ static types(): { [key: string]: any } {
1080
+ return {
1081
+ authenticationCode: 'string',
1082
+ clientId: 'string',
1083
+ clientOS: 'string',
1084
+ clientType: 'string',
1085
+ clientVersion: 'string',
1086
+ currentStage: 'string',
1087
+ directoryId: 'string',
1088
+ endUserId: 'string',
1089
+ keepAlive: 'boolean',
1090
+ keepAliveToken: 'string',
1091
+ newPassword: 'string',
1092
+ officeSiteId: 'string',
1093
+ oldPassword: 'string',
1094
+ password: 'string',
1095
+ regionId: 'string',
1096
+ sessionId: 'string',
1097
+ tokenCode: 'string',
1098
+ uuid: 'string',
1099
+ };
1100
+ }
1101
+
1102
+ constructor(map?: { [key: string]: any }) {
1103
+ super(map);
1104
+ }
1105
+ }
1106
+
1107
+ export class GetLoginTokenResponseBody extends $tea.Model {
1108
+ email?: string;
1109
+ endUserId?: string;
1110
+ industry?: string;
1111
+ keepAliveToken?: string;
1112
+ label?: string;
1113
+ loginToken?: string;
1114
+ nextStage?: string;
1115
+ phone?: string;
1116
+ props?: { [key: string]: string };
1117
+ qrCodePng?: string;
1118
+ requestId?: string;
1119
+ secret?: string;
1120
+ sessionId?: string;
1121
+ tenantId?: number;
1122
+ windowDisplayMode?: string;
1123
+ static names(): { [key: string]: string } {
1124
+ return {
1125
+ email: 'Email',
1126
+ endUserId: 'EndUserId',
1127
+ industry: 'Industry',
1128
+ keepAliveToken: 'KeepAliveToken',
1129
+ label: 'Label',
1130
+ loginToken: 'LoginToken',
1131
+ nextStage: 'NextStage',
1132
+ phone: 'Phone',
1133
+ props: 'Props',
1134
+ qrCodePng: 'QrCodePng',
1135
+ requestId: 'RequestId',
1136
+ secret: 'Secret',
1137
+ sessionId: 'SessionId',
1138
+ tenantId: 'TenantId',
1139
+ windowDisplayMode: 'WindowDisplayMode',
1140
+ };
1141
+ }
1142
+
1143
+ static types(): { [key: string]: any } {
1144
+ return {
1145
+ email: 'string',
1146
+ endUserId: 'string',
1147
+ industry: 'string',
1148
+ keepAliveToken: 'string',
1149
+ label: 'string',
1150
+ loginToken: 'string',
1151
+ nextStage: 'string',
1152
+ phone: 'string',
1153
+ props: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1154
+ qrCodePng: 'string',
1155
+ requestId: 'string',
1156
+ secret: 'string',
1157
+ sessionId: 'string',
1158
+ tenantId: 'number',
1159
+ windowDisplayMode: 'string',
1160
+ };
1161
+ }
1162
+
1163
+ constructor(map?: { [key: string]: any }) {
1164
+ super(map);
1165
+ }
1166
+ }
1167
+
1168
+ export class GetLoginTokenResponse extends $tea.Model {
1169
+ headers?: { [key: string]: string };
1170
+ statusCode?: number;
1171
+ body?: GetLoginTokenResponseBody;
1172
+ static names(): { [key: string]: string } {
1173
+ return {
1174
+ headers: 'headers',
1175
+ statusCode: 'statusCode',
1176
+ body: 'body',
1177
+ };
1178
+ }
1179
+
1180
+ static types(): { [key: string]: any } {
1181
+ return {
1182
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1183
+ statusCode: 'number',
1184
+ body: GetLoginTokenResponseBody,
1185
+ };
1186
+ }
1187
+
1188
+ constructor(map?: { [key: string]: any }) {
1189
+ super(map);
1190
+ }
1191
+ }
1192
+
1193
+ export class IsKeepAliveRequest extends $tea.Model {
1194
+ clientId?: string;
1195
+ officeSiteId?: string;
1196
+ regionId?: string;
1197
+ static names(): { [key: string]: string } {
1198
+ return {
1199
+ clientId: 'ClientId',
1200
+ officeSiteId: 'OfficeSiteId',
1201
+ regionId: 'RegionId',
1202
+ };
1203
+ }
1204
+
1205
+ static types(): { [key: string]: any } {
1206
+ return {
1207
+ clientId: 'string',
1208
+ officeSiteId: 'string',
1209
+ regionId: 'string',
1210
+ };
1211
+ }
1212
+
1213
+ constructor(map?: { [key: string]: any }) {
1214
+ super(map);
1215
+ }
1216
+ }
1217
+
1218
+ export class IsKeepAliveResponseBody extends $tea.Model {
1219
+ isKeepAlive?: boolean;
1220
+ officeSiteId?: string;
1221
+ requestId?: string;
1222
+ tenantId?: string;
1223
+ static names(): { [key: string]: string } {
1224
+ return {
1225
+ isKeepAlive: 'IsKeepAlive',
1226
+ officeSiteId: 'OfficeSiteId',
1227
+ requestId: 'RequestId',
1228
+ tenantId: 'TenantId',
1229
+ };
1230
+ }
1231
+
1232
+ static types(): { [key: string]: any } {
1233
+ return {
1234
+ isKeepAlive: 'boolean',
1235
+ officeSiteId: 'string',
1236
+ requestId: 'string',
1237
+ tenantId: 'string',
1238
+ };
1239
+ }
1240
+
1241
+ constructor(map?: { [key: string]: any }) {
1242
+ super(map);
1243
+ }
1244
+ }
1245
+
1246
+ export class IsKeepAliveResponse extends $tea.Model {
1247
+ headers?: { [key: string]: string };
1248
+ statusCode?: number;
1249
+ body?: IsKeepAliveResponseBody;
1250
+ static names(): { [key: string]: string } {
1251
+ return {
1252
+ headers: 'headers',
1253
+ statusCode: 'statusCode',
1254
+ body: 'body',
1255
+ };
1256
+ }
1257
+
1258
+ static types(): { [key: string]: any } {
1259
+ return {
1260
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1261
+ statusCode: 'number',
1262
+ body: IsKeepAliveResponseBody,
1263
+ };
1264
+ }
1265
+
1266
+ constructor(map?: { [key: string]: any }) {
1267
+ super(map);
1268
+ }
1269
+ }
1270
+
1271
+ export class QueryEdsAgentReportConfigRequest extends $tea.Model {
1272
+ aliUid?: number;
1273
+ desktopId?: string;
1274
+ ecsInstanceId?: string;
1275
+ static names(): { [key: string]: string } {
1276
+ return {
1277
+ aliUid: 'AliUid',
1278
+ desktopId: 'DesktopId',
1279
+ ecsInstanceId: 'EcsInstanceId',
1280
+ };
1281
+ }
1282
+
1283
+ static types(): { [key: string]: any } {
1284
+ return {
1285
+ aliUid: 'number',
1286
+ desktopId: 'string',
1287
+ ecsInstanceId: 'string',
1288
+ };
1289
+ }
1290
+
1291
+ constructor(map?: { [key: string]: any }) {
1292
+ super(map);
1293
+ }
1294
+ }
1295
+
1296
+ export class QueryEdsAgentReportConfigResponseBody extends $tea.Model {
1297
+ data?: QueryEdsAgentReportConfigResponseBodyData;
1298
+ requestId?: string;
1299
+ static names(): { [key: string]: string } {
1300
+ return {
1301
+ data: 'Data',
1302
+ requestId: 'RequestId',
1303
+ };
1304
+ }
1305
+
1306
+ static types(): { [key: string]: any } {
1307
+ return {
1308
+ data: QueryEdsAgentReportConfigResponseBodyData,
1309
+ requestId: 'string',
1310
+ };
1311
+ }
1312
+
1313
+ constructor(map?: { [key: string]: any }) {
1314
+ super(map);
1315
+ }
1316
+ }
1317
+
1318
+ export class QueryEdsAgentReportConfigResponse extends $tea.Model {
1319
+ headers?: { [key: string]: string };
1320
+ statusCode?: number;
1321
+ body?: QueryEdsAgentReportConfigResponseBody;
1322
+ static names(): { [key: string]: string } {
1323
+ return {
1324
+ headers: 'headers',
1325
+ statusCode: 'statusCode',
1326
+ body: 'body',
1327
+ };
1328
+ }
1329
+
1330
+ static types(): { [key: string]: any } {
1331
+ return {
1332
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1333
+ statusCode: 'number',
1334
+ body: QueryEdsAgentReportConfigResponseBody,
1335
+ };
1336
+ }
1337
+
1338
+ constructor(map?: { [key: string]: any }) {
1339
+ super(map);
1340
+ }
1341
+ }
1342
+
1343
+ export class RebootDesktopsRequest extends $tea.Model {
1344
+ clientId?: string;
1345
+ clientOS?: string;
1346
+ clientToken?: string;
1347
+ clientVersion?: string;
1348
+ desktopId?: string[];
1349
+ loginToken?: string;
1350
+ regionId?: string;
1351
+ sessionId?: string;
1352
+ sessionToken?: string;
1353
+ static names(): { [key: string]: string } {
1354
+ return {
1355
+ clientId: 'ClientId',
1356
+ clientOS: 'ClientOS',
1357
+ clientToken: 'ClientToken',
1358
+ clientVersion: 'ClientVersion',
1359
+ desktopId: 'DesktopId',
1360
+ loginToken: 'LoginToken',
1361
+ regionId: 'RegionId',
1362
+ sessionId: 'SessionId',
1363
+ sessionToken: 'SessionToken',
1364
+ };
1365
+ }
1366
+
1367
+ static types(): { [key: string]: any } {
1368
+ return {
1369
+ clientId: 'string',
1370
+ clientOS: 'string',
1371
+ clientToken: 'string',
1372
+ clientVersion: 'string',
1373
+ desktopId: { 'type': 'array', 'itemType': 'string' },
1374
+ loginToken: 'string',
1375
+ regionId: 'string',
1376
+ sessionId: 'string',
1377
+ sessionToken: 'string',
1378
+ };
1379
+ }
1380
+
1381
+ constructor(map?: { [key: string]: any }) {
1382
+ super(map);
1383
+ }
1384
+ }
1385
+
1386
+ export class RebootDesktopsResponseBody extends $tea.Model {
1387
+ requestId?: string;
1388
+ static names(): { [key: string]: string } {
1389
+ return {
1390
+ requestId: 'RequestId',
1391
+ };
1392
+ }
1393
+
1394
+ static types(): { [key: string]: any } {
1395
+ return {
1396
+ requestId: 'string',
1397
+ };
1398
+ }
1399
+
1400
+ constructor(map?: { [key: string]: any }) {
1401
+ super(map);
1402
+ }
1403
+ }
1404
+
1405
+ export class RebootDesktopsResponse extends $tea.Model {
1406
+ headers?: { [key: string]: string };
1407
+ statusCode?: number;
1408
+ body?: RebootDesktopsResponseBody;
1409
+ static names(): { [key: string]: string } {
1410
+ return {
1411
+ headers: 'headers',
1412
+ statusCode: 'statusCode',
1413
+ body: 'body',
1414
+ };
1415
+ }
1416
+
1417
+ static types(): { [key: string]: any } {
1418
+ return {
1419
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1420
+ statusCode: 'number',
1421
+ body: RebootDesktopsResponseBody,
1422
+ };
1423
+ }
1424
+
1425
+ constructor(map?: { [key: string]: any }) {
1426
+ super(map);
1427
+ }
1428
+ }
1429
+
1430
+ export class RefreshLoginTokenRequest extends $tea.Model {
1431
+ clientId?: string;
1432
+ directoryId?: string;
1433
+ endUserId?: string;
1434
+ loginToken?: string;
1435
+ officeSiteId?: string;
1436
+ regionId?: string;
1437
+ sessionId?: string;
1438
+ static names(): { [key: string]: string } {
1439
+ return {
1440
+ clientId: 'ClientId',
1441
+ directoryId: 'DirectoryId',
1442
+ endUserId: 'EndUserId',
1443
+ loginToken: 'LoginToken',
1444
+ officeSiteId: 'OfficeSiteId',
1445
+ regionId: 'RegionId',
1446
+ sessionId: 'SessionId',
1447
+ };
1448
+ }
1449
+
1450
+ static types(): { [key: string]: any } {
1451
+ return {
1452
+ clientId: 'string',
1453
+ directoryId: 'string',
1454
+ endUserId: 'string',
1455
+ loginToken: 'string',
1456
+ officeSiteId: 'string',
1457
+ regionId: 'string',
1458
+ sessionId: 'string',
1459
+ };
1460
+ }
1461
+
1462
+ constructor(map?: { [key: string]: any }) {
1463
+ super(map);
1464
+ }
1465
+ }
1466
+
1467
+ export class RefreshLoginTokenResponseBody extends $tea.Model {
1468
+ loginToken?: string;
1469
+ requestId?: string;
1470
+ static names(): { [key: string]: string } {
1471
+ return {
1472
+ loginToken: 'LoginToken',
1473
+ requestId: 'RequestId',
1474
+ };
1475
+ }
1476
+
1477
+ static types(): { [key: string]: any } {
1478
+ return {
1479
+ loginToken: 'string',
1480
+ requestId: 'string',
1481
+ };
1482
+ }
1483
+
1484
+ constructor(map?: { [key: string]: any }) {
1485
+ super(map);
1486
+ }
1487
+ }
1488
+
1489
+ export class RefreshLoginTokenResponse extends $tea.Model {
1490
+ headers?: { [key: string]: string };
1491
+ statusCode?: number;
1492
+ body?: RefreshLoginTokenResponseBody;
1493
+ static names(): { [key: string]: string } {
1494
+ return {
1495
+ headers: 'headers',
1496
+ statusCode: 'statusCode',
1497
+ body: 'body',
1498
+ };
1499
+ }
1500
+
1501
+ static types(): { [key: string]: any } {
1502
+ return {
1503
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1504
+ statusCode: 'number',
1505
+ body: RefreshLoginTokenResponseBody,
1506
+ };
1507
+ }
1508
+
1509
+ constructor(map?: { [key: string]: any }) {
1510
+ super(map);
1511
+ }
1512
+ }
1513
+
1514
+ export class ReportEdsAgentInfoRequest extends $tea.Model {
1515
+ aliUid?: number;
1516
+ desktopId?: string;
1517
+ ecsInstanceId?: string;
1518
+ edsAgentInfo?: string;
1519
+ static names(): { [key: string]: string } {
1520
+ return {
1521
+ aliUid: 'AliUid',
1522
+ desktopId: 'DesktopId',
1523
+ ecsInstanceId: 'EcsInstanceId',
1524
+ edsAgentInfo: 'EdsAgentInfo',
1525
+ };
1526
+ }
1527
+
1528
+ static types(): { [key: string]: any } {
1529
+ return {
1530
+ aliUid: 'number',
1531
+ desktopId: 'string',
1532
+ ecsInstanceId: 'string',
1533
+ edsAgentInfo: 'string',
1534
+ };
1535
+ }
1536
+
1537
+ constructor(map?: { [key: string]: any }) {
1538
+ super(map);
1539
+ }
1540
+ }
1541
+
1542
+ export class ReportEdsAgentInfoResponseBody extends $tea.Model {
1543
+ requestId?: string;
1544
+ static names(): { [key: string]: string } {
1545
+ return {
1546
+ requestId: 'RequestId',
1547
+ };
1548
+ }
1549
+
1550
+ static types(): { [key: string]: any } {
1551
+ return {
1552
+ requestId: 'string',
1553
+ };
1554
+ }
1555
+
1556
+ constructor(map?: { [key: string]: any }) {
1557
+ super(map);
1558
+ }
1559
+ }
1560
+
1561
+ export class ReportEdsAgentInfoResponse extends $tea.Model {
1562
+ headers?: { [key: string]: string };
1563
+ statusCode?: number;
1564
+ body?: ReportEdsAgentInfoResponseBody;
1565
+ static names(): { [key: string]: string } {
1566
+ return {
1567
+ headers: 'headers',
1568
+ statusCode: 'statusCode',
1569
+ body: 'body',
1570
+ };
1571
+ }
1572
+
1573
+ static types(): { [key: string]: any } {
1574
+ return {
1575
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1576
+ statusCode: 'number',
1577
+ body: ReportEdsAgentInfoResponseBody,
1578
+ };
1579
+ }
1580
+
1581
+ constructor(map?: { [key: string]: any }) {
1582
+ super(map);
1583
+ }
1584
+ }
1585
+
1586
+ export class ReportSessionStatusRequest extends $tea.Model {
1587
+ endUserId?: string;
1588
+ instanceId?: string;
1589
+ regionId?: string;
1590
+ sessionChangeTime?: number;
1591
+ sessionId?: string;
1592
+ sessionStatus?: string;
1593
+ static names(): { [key: string]: string } {
1594
+ return {
1595
+ endUserId: 'EndUserId',
1596
+ instanceId: 'InstanceId',
1597
+ regionId: 'RegionId',
1598
+ sessionChangeTime: 'SessionChangeTime',
1599
+ sessionId: 'SessionId',
1600
+ sessionStatus: 'SessionStatus',
1601
+ };
1602
+ }
1603
+
1604
+ static types(): { [key: string]: any } {
1605
+ return {
1606
+ endUserId: 'string',
1607
+ instanceId: 'string',
1608
+ regionId: 'string',
1609
+ sessionChangeTime: 'number',
1610
+ sessionId: 'string',
1611
+ sessionStatus: 'string',
1612
+ };
1613
+ }
1614
+
1615
+ constructor(map?: { [key: string]: any }) {
1616
+ super(map);
1617
+ }
1618
+ }
1619
+
1620
+ export class ReportSessionStatusResponseBody extends $tea.Model {
1621
+ requestId?: string;
1622
+ static names(): { [key: string]: string } {
1623
+ return {
1624
+ requestId: 'RequestId',
1625
+ };
1626
+ }
1627
+
1628
+ static types(): { [key: string]: any } {
1629
+ return {
1630
+ requestId: 'string',
1631
+ };
1632
+ }
1633
+
1634
+ constructor(map?: { [key: string]: any }) {
1635
+ super(map);
1636
+ }
1637
+ }
1638
+
1639
+ export class ReportSessionStatusResponse extends $tea.Model {
1640
+ headers?: { [key: string]: string };
1641
+ statusCode?: number;
1642
+ body?: ReportSessionStatusResponseBody;
1643
+ static names(): { [key: string]: string } {
1644
+ return {
1645
+ headers: 'headers',
1646
+ statusCode: 'statusCode',
1647
+ body: 'body',
1648
+ };
1649
+ }
1650
+
1651
+ static types(): { [key: string]: any } {
1652
+ return {
1653
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1654
+ statusCode: 'number',
1655
+ body: ReportSessionStatusResponseBody,
1656
+ };
1657
+ }
1658
+
1659
+ constructor(map?: { [key: string]: any }) {
1660
+ super(map);
1661
+ }
1662
+ }
1663
+
1664
+ export class ResetPasswordRequest extends $tea.Model {
1665
+ clientId?: string;
1666
+ clientToken?: string;
1667
+ email?: string;
1668
+ endUserId?: string;
1669
+ officeSiteId?: string;
1670
+ regionId?: string;
1671
+ phone?: string;
1672
+ static names(): { [key: string]: string } {
1673
+ return {
1674
+ clientId: 'ClientId',
1675
+ clientToken: 'ClientToken',
1676
+ email: 'Email',
1677
+ endUserId: 'EndUserId',
1678
+ officeSiteId: 'OfficeSiteId',
1679
+ regionId: 'RegionId',
1680
+ phone: 'phone',
1681
+ };
1682
+ }
1683
+
1684
+ static types(): { [key: string]: any } {
1685
+ return {
1686
+ clientId: 'string',
1687
+ clientToken: 'string',
1688
+ email: 'string',
1689
+ endUserId: 'string',
1690
+ officeSiteId: 'string',
1691
+ regionId: 'string',
1692
+ phone: 'string',
1693
+ };
1694
+ }
1695
+
1696
+ constructor(map?: { [key: string]: any }) {
1697
+ super(map);
1698
+ }
1699
+ }
1700
+
1701
+ export class ResetPasswordResponseBody extends $tea.Model {
1702
+ requestId?: string;
1703
+ static names(): { [key: string]: string } {
1704
+ return {
1705
+ requestId: 'RequestId',
1706
+ };
1707
+ }
1708
+
1709
+ static types(): { [key: string]: any } {
1710
+ return {
1711
+ requestId: 'string',
1712
+ };
1713
+ }
1714
+
1715
+ constructor(map?: { [key: string]: any }) {
1716
+ super(map);
1717
+ }
1718
+ }
1719
+
1720
+ export class ResetPasswordResponse extends $tea.Model {
1721
+ headers?: { [key: string]: string };
1722
+ statusCode?: number;
1723
+ body?: ResetPasswordResponseBody;
1724
+ static names(): { [key: string]: string } {
1725
+ return {
1726
+ headers: 'headers',
1727
+ statusCode: 'statusCode',
1728
+ body: 'body',
1729
+ };
1730
+ }
1731
+
1732
+ static types(): { [key: string]: any } {
1733
+ return {
1734
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1735
+ statusCode: 'number',
1736
+ body: ResetPasswordResponseBody,
1737
+ };
1738
+ }
1739
+
1740
+ constructor(map?: { [key: string]: any }) {
1741
+ super(map);
1742
+ }
1743
+ }
1744
+
1745
+ export class ResetSnapshotRequest extends $tea.Model {
1746
+ clientId?: string;
1747
+ loginToken?: string;
1748
+ regionId?: string;
1749
+ sessionId?: string;
1750
+ snapshotId?: string;
1751
+ static names(): { [key: string]: string } {
1752
+ return {
1753
+ clientId: 'ClientId',
1754
+ loginToken: 'LoginToken',
1755
+ regionId: 'RegionId',
1756
+ sessionId: 'SessionId',
1757
+ snapshotId: 'SnapshotId',
1758
+ };
1759
+ }
1760
+
1761
+ static types(): { [key: string]: any } {
1762
+ return {
1763
+ clientId: 'string',
1764
+ loginToken: 'string',
1765
+ regionId: 'string',
1766
+ sessionId: 'string',
1767
+ snapshotId: 'string',
1768
+ };
1769
+ }
1770
+
1771
+ constructor(map?: { [key: string]: any }) {
1772
+ super(map);
1773
+ }
1774
+ }
1775
+
1776
+ export class ResetSnapshotResponseBody extends $tea.Model {
1777
+ requestId?: string;
1778
+ static names(): { [key: string]: string } {
1779
+ return {
1780
+ requestId: 'RequestId',
1781
+ };
1782
+ }
1783
+
1784
+ static types(): { [key: string]: any } {
1785
+ return {
1786
+ requestId: 'string',
1787
+ };
1788
+ }
1789
+
1790
+ constructor(map?: { [key: string]: any }) {
1791
+ super(map);
1792
+ }
1793
+ }
1794
+
1795
+ export class ResetSnapshotResponse extends $tea.Model {
1796
+ headers?: { [key: string]: string };
1797
+ statusCode?: number;
1798
+ body?: ResetSnapshotResponseBody;
1799
+ static names(): { [key: string]: string } {
1800
+ return {
1801
+ headers: 'headers',
1802
+ statusCode: 'statusCode',
1803
+ body: 'body',
1804
+ };
1805
+ }
1806
+
1807
+ static types(): { [key: string]: any } {
1808
+ return {
1809
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1810
+ statusCode: 'number',
1811
+ body: ResetSnapshotResponseBody,
1812
+ };
1813
+ }
1814
+
1815
+ constructor(map?: { [key: string]: any }) {
1816
+ super(map);
1817
+ }
1818
+ }
1819
+
1820
+ export class SendTokenCodeRequest extends $tea.Model {
1821
+ clientId?: string;
1822
+ clientOS?: string;
1823
+ clientVersion?: string;
1824
+ endUserId?: string;
1825
+ loginToken?: string;
1826
+ officeSiteId?: string;
1827
+ sessionId?: string;
1828
+ tokenCode?: string;
1829
+ static names(): { [key: string]: string } {
1830
+ return {
1831
+ clientId: 'ClientId',
1832
+ clientOS: 'ClientOS',
1833
+ clientVersion: 'ClientVersion',
1834
+ endUserId: 'EndUserId',
1835
+ loginToken: 'LoginToken',
1836
+ officeSiteId: 'OfficeSiteId',
1837
+ sessionId: 'SessionId',
1838
+ tokenCode: 'TokenCode',
1839
+ };
1840
+ }
1841
+
1842
+ static types(): { [key: string]: any } {
1843
+ return {
1844
+ clientId: 'string',
1845
+ clientOS: 'string',
1846
+ clientVersion: 'string',
1847
+ endUserId: 'string',
1848
+ loginToken: 'string',
1849
+ officeSiteId: 'string',
1850
+ sessionId: 'string',
1851
+ tokenCode: 'string',
1852
+ };
1853
+ }
1854
+
1855
+ constructor(map?: { [key: string]: any }) {
1856
+ super(map);
1857
+ }
1858
+ }
1859
+
1860
+ export class SendTokenCodeResponseBody extends $tea.Model {
1861
+ requestId?: string;
1862
+ static names(): { [key: string]: string } {
1863
+ return {
1864
+ requestId: 'RequestId',
1865
+ };
1866
+ }
1867
+
1868
+ static types(): { [key: string]: any } {
1869
+ return {
1870
+ requestId: 'string',
1871
+ };
1872
+ }
1873
+
1874
+ constructor(map?: { [key: string]: any }) {
1875
+ super(map);
1876
+ }
1877
+ }
1878
+
1879
+ export class SendTokenCodeResponse extends $tea.Model {
1880
+ headers?: { [key: string]: string };
1881
+ statusCode?: number;
1882
+ body?: SendTokenCodeResponseBody;
1883
+ static names(): { [key: string]: string } {
1884
+ return {
1885
+ headers: 'headers',
1886
+ statusCode: 'statusCode',
1887
+ body: 'body',
1888
+ };
1889
+ }
1890
+
1891
+ static types(): { [key: string]: any } {
1892
+ return {
1893
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1894
+ statusCode: 'number',
1895
+ body: SendTokenCodeResponseBody,
1896
+ };
1897
+ }
1898
+
1899
+ constructor(map?: { [key: string]: any }) {
1900
+ super(map);
1901
+ }
1902
+ }
1903
+
1904
+ export class SetFingerPrintTemplateRequest extends $tea.Model {
1905
+ clientId?: string;
1906
+ clientToken?: string;
1907
+ description?: string;
1908
+ encryptedFingerPrintTemplate?: string;
1909
+ encryptedKey?: string;
1910
+ fingerPrintTemplate?: string;
1911
+ loginToken?: string;
1912
+ password?: string;
1913
+ regionId?: string;
1914
+ sessionId?: string;
1915
+ static names(): { [key: string]: string } {
1916
+ return {
1917
+ clientId: 'ClientId',
1918
+ clientToken: 'ClientToken',
1919
+ description: 'Description',
1920
+ encryptedFingerPrintTemplate: 'EncryptedFingerPrintTemplate',
1921
+ encryptedKey: 'EncryptedKey',
1922
+ fingerPrintTemplate: 'FingerPrintTemplate',
1923
+ loginToken: 'LoginToken',
1924
+ password: 'Password',
1925
+ regionId: 'RegionId',
1926
+ sessionId: 'SessionId',
1927
+ };
1928
+ }
1929
+
1930
+ static types(): { [key: string]: any } {
1931
+ return {
1932
+ clientId: 'string',
1933
+ clientToken: 'string',
1934
+ description: 'string',
1935
+ encryptedFingerPrintTemplate: 'string',
1936
+ encryptedKey: 'string',
1937
+ fingerPrintTemplate: 'string',
1938
+ loginToken: 'string',
1939
+ password: 'string',
1940
+ regionId: 'string',
1941
+ sessionId: 'string',
1942
+ };
1943
+ }
1944
+
1945
+ constructor(map?: { [key: string]: any }) {
1946
+ super(map);
1947
+ }
1948
+ }
1949
+
1950
+ export class SetFingerPrintTemplateResponseBody extends $tea.Model {
1951
+ encryptedPassword?: string;
1952
+ index?: number;
1953
+ requestId?: string;
1954
+ static names(): { [key: string]: string } {
1955
+ return {
1956
+ encryptedPassword: 'EncryptedPassword',
1957
+ index: 'Index',
1958
+ requestId: 'RequestId',
1959
+ };
1960
+ }
1961
+
1962
+ static types(): { [key: string]: any } {
1963
+ return {
1964
+ encryptedPassword: 'string',
1965
+ index: 'number',
1966
+ requestId: 'string',
1967
+ };
1968
+ }
1969
+
1970
+ constructor(map?: { [key: string]: any }) {
1971
+ super(map);
1972
+ }
1973
+ }
1974
+
1975
+ export class SetFingerPrintTemplateResponse extends $tea.Model {
1976
+ headers?: { [key: string]: string };
1977
+ statusCode?: number;
1978
+ body?: SetFingerPrintTemplateResponseBody;
1979
+ static names(): { [key: string]: string } {
1980
+ return {
1981
+ headers: 'headers',
1982
+ statusCode: 'statusCode',
1983
+ body: 'body',
1984
+ };
1985
+ }
1986
+
1987
+ static types(): { [key: string]: any } {
1988
+ return {
1989
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1990
+ statusCode: 'number',
1991
+ body: SetFingerPrintTemplateResponseBody,
1992
+ };
1993
+ }
1994
+
1995
+ constructor(map?: { [key: string]: any }) {
1996
+ super(map);
1997
+ }
1998
+ }
1999
+
2000
+ export class SetFingerPrintTemplateDescriptionRequest extends $tea.Model {
2001
+ clientId?: string;
2002
+ clientToken?: string;
2003
+ description?: string;
2004
+ index?: number;
2005
+ loginToken?: string;
2006
+ regionId?: string;
2007
+ sessionId?: string;
2008
+ static names(): { [key: string]: string } {
2009
+ return {
2010
+ clientId: 'ClientId',
2011
+ clientToken: 'ClientToken',
2012
+ description: 'Description',
2013
+ index: 'Index',
2014
+ loginToken: 'LoginToken',
2015
+ regionId: 'RegionId',
2016
+ sessionId: 'SessionId',
2017
+ };
2018
+ }
2019
+
2020
+ static types(): { [key: string]: any } {
2021
+ return {
2022
+ clientId: 'string',
2023
+ clientToken: 'string',
2024
+ description: 'string',
2025
+ index: 'number',
2026
+ loginToken: 'string',
2027
+ regionId: 'string',
2028
+ sessionId: 'string',
2029
+ };
2030
+ }
2031
+
2032
+ constructor(map?: { [key: string]: any }) {
2033
+ super(map);
2034
+ }
2035
+ }
2036
+
2037
+ export class SetFingerPrintTemplateDescriptionResponseBody extends $tea.Model {
2038
+ requestId?: string;
2039
+ static names(): { [key: string]: string } {
2040
+ return {
2041
+ requestId: 'RequestId',
2042
+ };
2043
+ }
2044
+
2045
+ static types(): { [key: string]: any } {
2046
+ return {
2047
+ requestId: 'string',
2048
+ };
2049
+ }
2050
+
2051
+ constructor(map?: { [key: string]: any }) {
2052
+ super(map);
2053
+ }
2054
+ }
2055
+
2056
+ export class SetFingerPrintTemplateDescriptionResponse extends $tea.Model {
2057
+ headers?: { [key: string]: string };
2058
+ statusCode?: number;
2059
+ body?: SetFingerPrintTemplateDescriptionResponseBody;
2060
+ static names(): { [key: string]: string } {
2061
+ return {
2062
+ headers: 'headers',
2063
+ statusCode: 'statusCode',
2064
+ body: 'body',
2065
+ };
2066
+ }
2067
+
2068
+ static types(): { [key: string]: any } {
2069
+ return {
2070
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2071
+ statusCode: 'number',
2072
+ body: SetFingerPrintTemplateDescriptionResponseBody,
2073
+ };
2074
+ }
2075
+
2076
+ constructor(map?: { [key: string]: any }) {
2077
+ super(map);
2078
+ }
2079
+ }
2080
+
2081
+ export class StartDesktopsRequest extends $tea.Model {
2082
+ clientId?: string;
2083
+ clientOS?: string;
2084
+ clientToken?: string;
2085
+ clientVersion?: string;
2086
+ desktopId?: string[];
2087
+ loginToken?: string;
2088
+ regionId?: string;
2089
+ sessionId?: string;
2090
+ static names(): { [key: string]: string } {
2091
+ return {
2092
+ clientId: 'ClientId',
2093
+ clientOS: 'ClientOS',
2094
+ clientToken: 'ClientToken',
2095
+ clientVersion: 'ClientVersion',
2096
+ desktopId: 'DesktopId',
2097
+ loginToken: 'LoginToken',
2098
+ regionId: 'RegionId',
2099
+ sessionId: 'SessionId',
2100
+ };
2101
+ }
2102
+
2103
+ static types(): { [key: string]: any } {
2104
+ return {
2105
+ clientId: 'string',
2106
+ clientOS: 'string',
2107
+ clientToken: 'string',
2108
+ clientVersion: 'string',
2109
+ desktopId: { 'type': 'array', 'itemType': 'string' },
2110
+ loginToken: 'string',
2111
+ regionId: 'string',
2112
+ sessionId: 'string',
2113
+ };
2114
+ }
2115
+
2116
+ constructor(map?: { [key: string]: any }) {
2117
+ super(map);
2118
+ }
2119
+ }
2120
+
2121
+ export class StartDesktopsResponseBody extends $tea.Model {
2122
+ requestId?: string;
2123
+ static names(): { [key: string]: string } {
2124
+ return {
2125
+ requestId: 'RequestId',
2126
+ };
2127
+ }
2128
+
2129
+ static types(): { [key: string]: any } {
2130
+ return {
2131
+ requestId: 'string',
2132
+ };
2133
+ }
2134
+
2135
+ constructor(map?: { [key: string]: any }) {
2136
+ super(map);
2137
+ }
2138
+ }
2139
+
2140
+ export class StartDesktopsResponse extends $tea.Model {
2141
+ headers?: { [key: string]: string };
2142
+ statusCode?: number;
2143
+ body?: StartDesktopsResponseBody;
2144
+ static names(): { [key: string]: string } {
2145
+ return {
2146
+ headers: 'headers',
2147
+ statusCode: 'statusCode',
2148
+ body: 'body',
2149
+ };
2150
+ }
2151
+
2152
+ static types(): { [key: string]: any } {
2153
+ return {
2154
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2155
+ statusCode: 'number',
2156
+ body: StartDesktopsResponseBody,
2157
+ };
2158
+ }
2159
+
2160
+ constructor(map?: { [key: string]: any }) {
2161
+ super(map);
2162
+ }
2163
+ }
2164
+
2165
+ export class StartRecordContentRequest extends $tea.Model {
2166
+ clientId?: string;
2167
+ clientOS?: string;
2168
+ clientVersion?: string;
2169
+ desktopId?: string;
2170
+ filePath?: string;
2171
+ loginToken?: string;
2172
+ regionId?: string;
2173
+ sessionId?: string;
2174
+ static names(): { [key: string]: string } {
2175
+ return {
2176
+ clientId: 'ClientId',
2177
+ clientOS: 'ClientOS',
2178
+ clientVersion: 'ClientVersion',
2179
+ desktopId: 'DesktopId',
2180
+ filePath: 'FilePath',
2181
+ loginToken: 'LoginToken',
2182
+ regionId: 'RegionId',
2183
+ sessionId: 'SessionId',
2184
+ };
2185
+ }
2186
+
2187
+ static types(): { [key: string]: any } {
2188
+ return {
2189
+ clientId: 'string',
2190
+ clientOS: 'string',
2191
+ clientVersion: 'string',
2192
+ desktopId: 'string',
2193
+ filePath: 'string',
2194
+ loginToken: 'string',
2195
+ regionId: 'string',
2196
+ sessionId: 'string',
2197
+ };
2198
+ }
2199
+
2200
+ constructor(map?: { [key: string]: any }) {
2201
+ super(map);
2202
+ }
2203
+ }
2204
+
2205
+ export class StartRecordContentResponseBody extends $tea.Model {
2206
+ requestId?: string;
2207
+ static names(): { [key: string]: string } {
2208
+ return {
2209
+ requestId: 'RequestId',
2210
+ };
2211
+ }
2212
+
2213
+ static types(): { [key: string]: any } {
2214
+ return {
2215
+ requestId: 'string',
2216
+ };
2217
+ }
2218
+
2219
+ constructor(map?: { [key: string]: any }) {
2220
+ super(map);
2221
+ }
2222
+ }
2223
+
2224
+ export class StartRecordContentResponse extends $tea.Model {
2225
+ headers?: { [key: string]: string };
2226
+ statusCode?: number;
2227
+ body?: StartRecordContentResponseBody;
2228
+ static names(): { [key: string]: string } {
2229
+ return {
2230
+ headers: 'headers',
2231
+ statusCode: 'statusCode',
2232
+ body: 'body',
2233
+ };
2234
+ }
2235
+
2236
+ static types(): { [key: string]: any } {
2237
+ return {
2238
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2239
+ statusCode: 'number',
2240
+ body: StartRecordContentResponseBody,
2241
+ };
2242
+ }
2243
+
2244
+ constructor(map?: { [key: string]: any }) {
2245
+ super(map);
2246
+ }
2247
+ }
2248
+
2249
+ export class StopDesktopsRequest extends $tea.Model {
2250
+ clientId?: string;
2251
+ clientOS?: string;
2252
+ clientToken?: string;
2253
+ clientVersion?: string;
2254
+ desktopId?: string[];
2255
+ loginToken?: string;
2256
+ regionId?: string;
2257
+ sessionId?: string;
2258
+ sessionToken?: string;
2259
+ static names(): { [key: string]: string } {
2260
+ return {
2261
+ clientId: 'ClientId',
2262
+ clientOS: 'ClientOS',
2263
+ clientToken: 'ClientToken',
2264
+ clientVersion: 'ClientVersion',
2265
+ desktopId: 'DesktopId',
2266
+ loginToken: 'LoginToken',
2267
+ regionId: 'RegionId',
2268
+ sessionId: 'SessionId',
2269
+ sessionToken: 'SessionToken',
2270
+ };
2271
+ }
2272
+
2273
+ static types(): { [key: string]: any } {
2274
+ return {
2275
+ clientId: 'string',
2276
+ clientOS: 'string',
2277
+ clientToken: 'string',
2278
+ clientVersion: 'string',
2279
+ desktopId: { 'type': 'array', 'itemType': 'string' },
2280
+ loginToken: 'string',
2281
+ regionId: 'string',
2282
+ sessionId: 'string',
2283
+ sessionToken: 'string',
2284
+ };
2285
+ }
2286
+
2287
+ constructor(map?: { [key: string]: any }) {
2288
+ super(map);
2289
+ }
2290
+ }
2291
+
2292
+ export class StopDesktopsResponseBody extends $tea.Model {
2293
+ requestId?: string;
2294
+ static names(): { [key: string]: string } {
2295
+ return {
2296
+ requestId: 'RequestId',
2297
+ };
2298
+ }
2299
+
2300
+ static types(): { [key: string]: any } {
2301
+ return {
2302
+ requestId: 'string',
2303
+ };
2304
+ }
2305
+
2306
+ constructor(map?: { [key: string]: any }) {
2307
+ super(map);
2308
+ }
2309
+ }
2310
+
2311
+ export class StopDesktopsResponse extends $tea.Model {
2312
+ headers?: { [key: string]: string };
2313
+ statusCode?: number;
2314
+ body?: StopDesktopsResponseBody;
2315
+ static names(): { [key: string]: string } {
2316
+ return {
2317
+ headers: 'headers',
2318
+ statusCode: 'statusCode',
2319
+ body: 'body',
2320
+ };
2321
+ }
2322
+
2323
+ static types(): { [key: string]: any } {
2324
+ return {
2325
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2326
+ statusCode: 'number',
2327
+ body: StopDesktopsResponseBody,
2328
+ };
2329
+ }
2330
+
2331
+ constructor(map?: { [key: string]: any }) {
2332
+ super(map);
2333
+ }
2334
+ }
2335
+
2336
+ export class StopRecordContentRequest extends $tea.Model {
2337
+ clientId?: string;
2338
+ clientOS?: string;
2339
+ clientVersion?: string;
2340
+ desktopId?: string;
2341
+ loginToken?: string;
2342
+ regionId?: string;
2343
+ sessionId?: string;
2344
+ static names(): { [key: string]: string } {
2345
+ return {
2346
+ clientId: 'ClientId',
2347
+ clientOS: 'ClientOS',
2348
+ clientVersion: 'ClientVersion',
2349
+ desktopId: 'DesktopId',
2350
+ loginToken: 'LoginToken',
2351
+ regionId: 'RegionId',
2352
+ sessionId: 'SessionId',
2353
+ };
2354
+ }
2355
+
2356
+ static types(): { [key: string]: any } {
2357
+ return {
2358
+ clientId: 'string',
2359
+ clientOS: 'string',
2360
+ clientVersion: 'string',
2361
+ desktopId: 'string',
2362
+ loginToken: 'string',
2363
+ regionId: 'string',
2364
+ sessionId: 'string',
2365
+ };
2366
+ }
2367
+
2368
+ constructor(map?: { [key: string]: any }) {
2369
+ super(map);
2370
+ }
2371
+ }
2372
+
2373
+ export class StopRecordContentResponseBody extends $tea.Model {
2374
+ requestId?: string;
2375
+ static names(): { [key: string]: string } {
2376
+ return {
2377
+ requestId: 'RequestId',
2378
+ };
2379
+ }
2380
+
2381
+ static types(): { [key: string]: any } {
2382
+ return {
2383
+ requestId: 'string',
2384
+ };
2385
+ }
2386
+
2387
+ constructor(map?: { [key: string]: any }) {
2388
+ super(map);
2389
+ }
2390
+ }
2391
+
2392
+ export class StopRecordContentResponse extends $tea.Model {
2393
+ headers?: { [key: string]: string };
2394
+ statusCode?: number;
2395
+ body?: StopRecordContentResponseBody;
2396
+ static names(): { [key: string]: string } {
2397
+ return {
2398
+ headers: 'headers',
2399
+ statusCode: 'statusCode',
2400
+ body: 'body',
2401
+ };
2402
+ }
2403
+
2404
+ static types(): { [key: string]: any } {
2405
+ return {
2406
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2407
+ statusCode: 'number',
2408
+ body: StopRecordContentResponseBody,
2409
+ };
2410
+ }
2411
+
2412
+ constructor(map?: { [key: string]: any }) {
2413
+ super(map);
2414
+ }
2415
+ }
2416
+
2417
+ export class UnbindUserDesktopRequest extends $tea.Model {
2418
+ clientId?: string;
2419
+ clientType?: string;
2420
+ force?: boolean;
2421
+ loginToken?: string;
2422
+ regionId?: string;
2423
+ sessionId?: string;
2424
+ userDesktopId?: string;
2425
+ static names(): { [key: string]: string } {
2426
+ return {
2427
+ clientId: 'ClientId',
2428
+ clientType: 'ClientType',
2429
+ force: 'Force',
2430
+ loginToken: 'LoginToken',
2431
+ regionId: 'RegionId',
2432
+ sessionId: 'SessionId',
2433
+ userDesktopId: 'UserDesktopId',
2434
+ };
2435
+ }
2436
+
2437
+ static types(): { [key: string]: any } {
2438
+ return {
2439
+ clientId: 'string',
2440
+ clientType: 'string',
2441
+ force: 'boolean',
2442
+ loginToken: 'string',
2443
+ regionId: 'string',
2444
+ sessionId: 'string',
2445
+ userDesktopId: 'string',
2446
+ };
2447
+ }
2448
+
2449
+ constructor(map?: { [key: string]: any }) {
2450
+ super(map);
2451
+ }
2452
+ }
2453
+
2454
+ export class UnbindUserDesktopResponseBody extends $tea.Model {
2455
+ requestId?: string;
2456
+ static names(): { [key: string]: string } {
2457
+ return {
2458
+ requestId: 'RequestId',
2459
+ };
2460
+ }
2461
+
2462
+ static types(): { [key: string]: any } {
2463
+ return {
2464
+ requestId: 'string',
2465
+ };
2466
+ }
2467
+
2468
+ constructor(map?: { [key: string]: any }) {
2469
+ super(map);
2470
+ }
2471
+ }
2472
+
2473
+ export class UnbindUserDesktopResponse extends $tea.Model {
2474
+ headers?: { [key: string]: string };
2475
+ statusCode?: number;
2476
+ body?: UnbindUserDesktopResponseBody;
2477
+ static names(): { [key: string]: string } {
2478
+ return {
2479
+ headers: 'headers',
2480
+ statusCode: 'statusCode',
2481
+ body: 'body',
2482
+ };
2483
+ }
2484
+
2485
+ static types(): { [key: string]: any } {
2486
+ return {
2487
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2488
+ statusCode: 'number',
2489
+ body: UnbindUserDesktopResponseBody,
2490
+ };
2491
+ }
2492
+
2493
+ constructor(map?: { [key: string]: any }) {
2494
+ super(map);
2495
+ }
2496
+ }
2497
+
2498
+ export class VerifyCredentialRequest extends $tea.Model {
2499
+ clientId?: string;
2500
+ credential?: string;
2501
+ credentialType?: string;
2502
+ encryptedKey?: string;
2503
+ loginToken?: string;
2504
+ officeSiteId?: string;
2505
+ regionId?: string;
2506
+ sessionId?: string;
2507
+ static names(): { [key: string]: string } {
2508
+ return {
2509
+ clientId: 'ClientId',
2510
+ credential: 'Credential',
2511
+ credentialType: 'CredentialType',
2512
+ encryptedKey: 'EncryptedKey',
2513
+ loginToken: 'LoginToken',
2514
+ officeSiteId: 'OfficeSiteId',
2515
+ regionId: 'RegionId',
2516
+ sessionId: 'SessionId',
2517
+ };
2518
+ }
2519
+
2520
+ static types(): { [key: string]: any } {
2521
+ return {
2522
+ clientId: 'string',
2523
+ credential: 'string',
2524
+ credentialType: 'string',
2525
+ encryptedKey: 'string',
2526
+ loginToken: 'string',
2527
+ officeSiteId: 'string',
2528
+ regionId: 'string',
2529
+ sessionId: 'string',
2530
+ };
2531
+ }
2532
+
2533
+ constructor(map?: { [key: string]: any }) {
2534
+ super(map);
2535
+ }
2536
+ }
2537
+
2538
+ export class VerifyCredentialResponseBody extends $tea.Model {
2539
+ requestId?: string;
2540
+ static names(): { [key: string]: string } {
2541
+ return {
2542
+ requestId: 'RequestId',
2543
+ };
2544
+ }
2545
+
2546
+ static types(): { [key: string]: any } {
2547
+ return {
2548
+ requestId: 'string',
2549
+ };
2550
+ }
2551
+
2552
+ constructor(map?: { [key: string]: any }) {
2553
+ super(map);
2554
+ }
2555
+ }
2556
+
2557
+ export class VerifyCredentialResponse extends $tea.Model {
2558
+ headers?: { [key: string]: string };
2559
+ statusCode?: number;
2560
+ body?: VerifyCredentialResponseBody;
2561
+ static names(): { [key: string]: string } {
2562
+ return {
2563
+ headers: 'headers',
2564
+ statusCode: 'statusCode',
2565
+ body: 'body',
2566
+ };
2567
+ }
2568
+
2569
+ static types(): { [key: string]: any } {
2570
+ return {
2571
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2572
+ statusCode: 'number',
2573
+ body: VerifyCredentialResponseBody,
2574
+ };
2575
+ }
2576
+
2577
+ constructor(map?: { [key: string]: any }) {
2578
+ super(map);
2579
+ }
2580
+ }
2581
+
2582
+ export class DescribeDirectoriesResponseBodyDirectories extends $tea.Model {
2583
+ desktopAccessType?: string;
2584
+ directoryId?: string;
2585
+ directoryType?: string;
2586
+ providerId?: string;
2587
+ ssoServiceUrl?: string;
2588
+ static names(): { [key: string]: string } {
2589
+ return {
2590
+ desktopAccessType: 'DesktopAccessType',
2591
+ directoryId: 'DirectoryId',
2592
+ directoryType: 'DirectoryType',
2593
+ providerId: 'ProviderId',
2594
+ ssoServiceUrl: 'SsoServiceUrl',
2595
+ };
2596
+ }
2597
+
2598
+ static types(): { [key: string]: any } {
2599
+ return {
2600
+ desktopAccessType: 'string',
2601
+ directoryId: 'string',
2602
+ directoryType: 'string',
2603
+ providerId: 'string',
2604
+ ssoServiceUrl: 'string',
2605
+ };
2606
+ }
2607
+
2608
+ constructor(map?: { [key: string]: any }) {
2609
+ super(map);
2610
+ }
2611
+ }
2612
+
2613
+ export class DescribeFingerPrintTemplatesResponseBodyFingerPrintTemplates extends $tea.Model {
2614
+ clientId?: string;
2615
+ creationTime?: string;
2616
+ description?: string;
2617
+ endUserId?: string;
2618
+ index?: number;
2619
+ loginTime?: string;
2620
+ officeSiteId?: string;
2621
+ static names(): { [key: string]: string } {
2622
+ return {
2623
+ clientId: 'ClientId',
2624
+ creationTime: 'CreationTime',
2625
+ description: 'Description',
2626
+ endUserId: 'EndUserId',
2627
+ index: 'Index',
2628
+ loginTime: 'LoginTime',
2629
+ officeSiteId: 'OfficeSiteId',
2630
+ };
2631
+ }
2632
+
2633
+ static types(): { [key: string]: any } {
2634
+ return {
2635
+ clientId: 'string',
2636
+ creationTime: 'string',
2637
+ description: 'string',
2638
+ endUserId: 'string',
2639
+ index: 'number',
2640
+ loginTime: 'string',
2641
+ officeSiteId: 'string',
2642
+ };
2643
+ }
2644
+
2645
+ constructor(map?: { [key: string]: any }) {
2646
+ super(map);
2647
+ }
2648
+ }
2649
+
2650
+ export class DescribeGlobalDesktopsResponseBodyDesktopsClients extends $tea.Model {
2651
+ clientType?: string;
2652
+ status?: string;
2653
+ static names(): { [key: string]: string } {
2654
+ return {
2655
+ clientType: 'ClientType',
2656
+ status: 'Status',
2657
+ };
2658
+ }
2659
+
2660
+ static types(): { [key: string]: any } {
2661
+ return {
2662
+ clientType: 'string',
2663
+ status: 'string',
2664
+ };
2665
+ }
2666
+
2667
+ constructor(map?: { [key: string]: any }) {
2668
+ super(map);
2669
+ }
2670
+ }
2671
+
2672
+ export class DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers extends $tea.Model {
2673
+ allowClientSetting?: boolean;
2674
+ cronExpression?: string;
2675
+ enforce?: boolean;
2676
+ executionTime?: string;
2677
+ interval?: number;
2678
+ operationType?: string;
2679
+ resetType?: string;
2680
+ timerType?: string;
2681
+ static names(): { [key: string]: string } {
2682
+ return {
2683
+ allowClientSetting: 'AllowClientSetting',
2684
+ cronExpression: 'CronExpression',
2685
+ enforce: 'Enforce',
2686
+ executionTime: 'ExecutionTime',
2687
+ interval: 'Interval',
2688
+ operationType: 'OperationType',
2689
+ resetType: 'ResetType',
2690
+ timerType: 'TimerType',
2691
+ };
2692
+ }
2693
+
2694
+ static types(): { [key: string]: any } {
2695
+ return {
2696
+ allowClientSetting: 'boolean',
2697
+ cronExpression: 'string',
2698
+ enforce: 'boolean',
2699
+ executionTime: 'string',
2700
+ interval: 'number',
2701
+ operationType: 'string',
2702
+ resetType: 'string',
2703
+ timerType: 'string',
2704
+ };
2705
+ }
2706
+
2707
+ constructor(map?: { [key: string]: any }) {
2708
+ super(map);
2709
+ }
2710
+ }
2711
+
2712
+ export class DescribeGlobalDesktopsResponseBodyDesktopsDisks extends $tea.Model {
2713
+ diskId?: string;
2714
+ diskSize?: number;
2715
+ diskType?: string;
2716
+ static names(): { [key: string]: string } {
2717
+ return {
2718
+ diskId: 'DiskId',
2719
+ diskSize: 'DiskSize',
2720
+ diskType: 'DiskType',
2721
+ };
2722
+ }
2723
+
2724
+ static types(): { [key: string]: any } {
2725
+ return {
2726
+ diskId: 'string',
2727
+ diskSize: 'number',
2728
+ diskType: 'string',
2729
+ };
2730
+ }
2731
+
2732
+ constructor(map?: { [key: string]: any }) {
2733
+ super(map);
2734
+ }
2735
+ }
2736
+
2737
+ export class DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate extends $tea.Model {
2738
+ channel?: string;
2739
+ currentAppVersion?: string;
2740
+ force?: boolean;
2741
+ newAppVersion?: string;
2742
+ project?: string;
2743
+ releaseNote?: string;
2744
+ releaseNoteEn?: string;
2745
+ releaseNoteJp?: string;
2746
+ size?: string;
2747
+ static names(): { [key: string]: string } {
2748
+ return {
2749
+ channel: 'Channel',
2750
+ currentAppVersion: 'CurrentAppVersion',
2751
+ force: 'Force',
2752
+ newAppVersion: 'NewAppVersion',
2753
+ project: 'Project',
2754
+ releaseNote: 'ReleaseNote',
2755
+ releaseNoteEn: 'ReleaseNoteEn',
2756
+ releaseNoteJp: 'ReleaseNoteJp',
2757
+ size: 'Size',
2758
+ };
2759
+ }
2760
+
2761
+ static types(): { [key: string]: any } {
2762
+ return {
2763
+ channel: 'string',
2764
+ currentAppVersion: 'string',
2765
+ force: 'boolean',
2766
+ newAppVersion: 'string',
2767
+ project: 'string',
2768
+ releaseNote: 'string',
2769
+ releaseNoteEn: 'string',
2770
+ releaseNoteJp: 'string',
2771
+ size: 'string',
2772
+ };
2773
+ }
2774
+
2775
+ constructor(map?: { [key: string]: any }) {
2776
+ super(map);
2777
+ }
2778
+ }
2779
+
2780
+ export class DescribeGlobalDesktopsResponseBodyDesktopsSessions extends $tea.Model {
2781
+ endUserId?: string;
2782
+ establishmentTime?: string;
2783
+ static names(): { [key: string]: string } {
2784
+ return {
2785
+ endUserId: 'EndUserId',
2786
+ establishmentTime: 'EstablishmentTime',
2787
+ };
2788
+ }
2789
+
2790
+ static types(): { [key: string]: any } {
2791
+ return {
2792
+ endUserId: 'string',
2793
+ establishmentTime: 'string',
2794
+ };
2795
+ }
2796
+
2797
+ constructor(map?: { [key: string]: any }) {
2798
+ super(map);
2799
+ }
2800
+ }
2801
+
2802
+ export class DescribeGlobalDesktopsResponseBodyDesktops extends $tea.Model {
2803
+ chargeType?: string;
2804
+ clients?: DescribeGlobalDesktopsResponseBodyDesktopsClients[];
2805
+ connectionStatus?: string;
2806
+ cpu?: number;
2807
+ creationTime?: string;
2808
+ desktopGroupId?: string;
2809
+ desktopId?: string;
2810
+ desktopName?: string;
2811
+ desktopStatus?: string;
2812
+ desktopTimers?: DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers[];
2813
+ desktopType?: string;
2814
+ directoryId?: string;
2815
+ disks?: DescribeGlobalDesktopsResponseBodyDesktopsDisks[];
2816
+ endUserId?: string;
2817
+ endUserIds?: string[];
2818
+ expiredTime?: string;
2819
+ fotaUpdate?: DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate;
2820
+ gpuMemory?: number;
2821
+ hibernationBeta?: boolean;
2822
+ hostName?: string;
2823
+ imageId?: string;
2824
+ lastStartTime?: string;
2825
+ localName?: string;
2826
+ managementFlags?: string[];
2827
+ memory?: number;
2828
+ networkInterfaceIp?: string;
2829
+ officeSiteId?: string;
2830
+ os?: string;
2831
+ osType?: string;
2832
+ platform?: string;
2833
+ policyGroupId?: string;
2834
+ protocolType?: string;
2835
+ realDesktopId?: string;
2836
+ regionId?: string;
2837
+ sessionType?: string;
2838
+ sessions?: DescribeGlobalDesktopsResponseBodyDesktopsSessions[];
2839
+ supportHibernation?: boolean;
2840
+ userCustomName?: string;
2841
+ static names(): { [key: string]: string } {
2842
+ return {
2843
+ chargeType: 'ChargeType',
2844
+ clients: 'Clients',
2845
+ connectionStatus: 'ConnectionStatus',
2846
+ cpu: 'Cpu',
2847
+ creationTime: 'CreationTime',
2848
+ desktopGroupId: 'DesktopGroupId',
2849
+ desktopId: 'DesktopId',
2850
+ desktopName: 'DesktopName',
2851
+ desktopStatus: 'DesktopStatus',
2852
+ desktopTimers: 'DesktopTimers',
2853
+ desktopType: 'DesktopType',
2854
+ directoryId: 'DirectoryId',
2855
+ disks: 'Disks',
2856
+ endUserId: 'EndUserId',
2857
+ endUserIds: 'EndUserIds',
2858
+ expiredTime: 'ExpiredTime',
2859
+ fotaUpdate: 'FotaUpdate',
2860
+ gpuMemory: 'GpuMemory',
2861
+ hibernationBeta: 'HibernationBeta',
2862
+ hostName: 'HostName',
2863
+ imageId: 'ImageId',
2864
+ lastStartTime: 'LastStartTime',
2865
+ localName: 'LocalName',
2866
+ managementFlags: 'ManagementFlags',
2867
+ memory: 'Memory',
2868
+ networkInterfaceIp: 'NetworkInterfaceIp',
2869
+ officeSiteId: 'OfficeSiteId',
2870
+ os: 'Os',
2871
+ osType: 'OsType',
2872
+ platform: 'Platform',
2873
+ policyGroupId: 'PolicyGroupId',
2874
+ protocolType: 'ProtocolType',
2875
+ realDesktopId: 'RealDesktopId',
2876
+ regionId: 'RegionId',
2877
+ sessionType: 'SessionType',
2878
+ sessions: 'Sessions',
2879
+ supportHibernation: 'SupportHibernation',
2880
+ userCustomName: 'UserCustomName',
2881
+ };
2882
+ }
2883
+
2884
+ static types(): { [key: string]: any } {
2885
+ return {
2886
+ chargeType: 'string',
2887
+ clients: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsClients },
2888
+ connectionStatus: 'string',
2889
+ cpu: 'number',
2890
+ creationTime: 'string',
2891
+ desktopGroupId: 'string',
2892
+ desktopId: 'string',
2893
+ desktopName: 'string',
2894
+ desktopStatus: 'string',
2895
+ desktopTimers: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers },
2896
+ desktopType: 'string',
2897
+ directoryId: 'string',
2898
+ disks: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsDisks },
2899
+ endUserId: 'string',
2900
+ endUserIds: { 'type': 'array', 'itemType': 'string' },
2901
+ expiredTime: 'string',
2902
+ fotaUpdate: DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate,
2903
+ gpuMemory: 'number',
2904
+ hibernationBeta: 'boolean',
2905
+ hostName: 'string',
2906
+ imageId: 'string',
2907
+ lastStartTime: 'string',
2908
+ localName: 'string',
2909
+ managementFlags: { 'type': 'array', 'itemType': 'string' },
2910
+ memory: 'number',
2911
+ networkInterfaceIp: 'string',
2912
+ officeSiteId: 'string',
2913
+ os: 'string',
2914
+ osType: 'string',
2915
+ platform: 'string',
2916
+ policyGroupId: 'string',
2917
+ protocolType: 'string',
2918
+ realDesktopId: 'string',
2919
+ regionId: 'string',
2920
+ sessionType: 'string',
2921
+ sessions: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsSessions },
2922
+ supportHibernation: 'boolean',
2923
+ userCustomName: 'string',
2924
+ };
2925
+ }
2926
+
2927
+ constructor(map?: { [key: string]: any }) {
2928
+ super(map);
2929
+ }
2930
+ }
2931
+
2932
+ export class DescribeOfficeSitesResponseBodyOfficeSites extends $tea.Model {
2933
+ desktopAccessType?: string;
2934
+ desktopVpcEndpoint?: string;
2935
+ officeSiteId?: string;
2936
+ officeSiteType?: string;
2937
+ providerId?: string;
2938
+ ssoServiceUrl?: string;
2939
+ static names(): { [key: string]: string } {
2940
+ return {
2941
+ desktopAccessType: 'DesktopAccessType',
2942
+ desktopVpcEndpoint: 'DesktopVpcEndpoint',
2943
+ officeSiteId: 'OfficeSiteId',
2944
+ officeSiteType: 'OfficeSiteType',
2945
+ providerId: 'ProviderId',
2946
+ ssoServiceUrl: 'SsoServiceUrl',
2947
+ };
2948
+ }
2949
+
2950
+ static types(): { [key: string]: any } {
2951
+ return {
2952
+ desktopAccessType: 'string',
2953
+ desktopVpcEndpoint: 'string',
2954
+ officeSiteId: 'string',
2955
+ officeSiteType: 'string',
2956
+ providerId: 'string',
2957
+ ssoServiceUrl: 'string',
2958
+ };
2959
+ }
2960
+
2961
+ constructor(map?: { [key: string]: any }) {
2962
+ super(map);
2963
+ }
2964
+ }
2965
+
2966
+ export class DescribeRegionsResponseBodyRegions extends $tea.Model {
2967
+ regionEndpoint?: string;
2968
+ regionId?: string;
2969
+ static names(): { [key: string]: string } {
2970
+ return {
2971
+ regionEndpoint: 'RegionEndpoint',
2972
+ regionId: 'RegionId',
2973
+ };
2974
+ }
2975
+
2976
+ static types(): { [key: string]: any } {
2977
+ return {
2978
+ regionEndpoint: 'string',
2979
+ regionId: 'string',
2980
+ };
2981
+ }
2982
+
2983
+ constructor(map?: { [key: string]: any }) {
2984
+ super(map);
2985
+ }
2986
+ }
2987
+
2988
+ export class DescribeSnapshotsResponseBodySnapshots extends $tea.Model {
2989
+ creationTime?: string;
2990
+ description?: string;
2991
+ desktopId?: string;
2992
+ progress?: string;
2993
+ remainTime?: number;
2994
+ snapshotId?: string;
2995
+ snapshotName?: string;
2996
+ snapshotType?: string;
2997
+ sourceDiskSize?: string;
2998
+ sourceDiskType?: string;
2999
+ status?: string;
3000
+ static names(): { [key: string]: string } {
3001
+ return {
3002
+ creationTime: 'CreationTime',
3003
+ description: 'Description',
3004
+ desktopId: 'DesktopId',
3005
+ progress: 'Progress',
3006
+ remainTime: 'RemainTime',
3007
+ snapshotId: 'SnapshotId',
3008
+ snapshotName: 'SnapshotName',
3009
+ snapshotType: 'SnapshotType',
3010
+ sourceDiskSize: 'SourceDiskSize',
3011
+ sourceDiskType: 'SourceDiskType',
3012
+ status: 'Status',
3013
+ };
3014
+ }
3015
+
3016
+ static types(): { [key: string]: any } {
3017
+ return {
3018
+ creationTime: 'string',
3019
+ description: 'string',
3020
+ desktopId: 'string',
3021
+ progress: 'string',
3022
+ remainTime: 'number',
3023
+ snapshotId: 'string',
3024
+ snapshotName: 'string',
3025
+ snapshotType: 'string',
3026
+ sourceDiskSize: 'string',
3027
+ sourceDiskType: 'string',
3028
+ status: 'string',
3029
+ };
3030
+ }
3031
+
3032
+ constructor(map?: { [key: string]: any }) {
3033
+ super(map);
3034
+ }
3035
+ }
3036
+
3037
+ export class GetCloudDriveServiceMountTokenResponseBodyToken extends $tea.Model {
3038
+ domainId?: string;
3039
+ expiredAfter?: string;
3040
+ status?: string;
3041
+ token?: string;
3042
+ totalSize?: number;
3043
+ usedSize?: number;
3044
+ static names(): { [key: string]: string } {
3045
+ return {
3046
+ domainId: 'DomainId',
3047
+ expiredAfter: 'ExpiredAfter',
3048
+ status: 'Status',
3049
+ token: 'Token',
3050
+ totalSize: 'TotalSize',
3051
+ usedSize: 'UsedSize',
3052
+ };
3053
+ }
3054
+
3055
+ static types(): { [key: string]: any } {
3056
+ return {
3057
+ domainId: 'string',
3058
+ expiredAfter: 'string',
3059
+ status: 'string',
3060
+ token: 'string',
3061
+ totalSize: 'number',
3062
+ usedSize: 'number',
3063
+ };
3064
+ }
3065
+
3066
+ constructor(map?: { [key: string]: any }) {
3067
+ super(map);
3068
+ }
3069
+ }
3070
+
3071
+ export class QueryEdsAgentReportConfigResponseBodyData extends $tea.Model {
3072
+ config?: string;
3073
+ static names(): { [key: string]: string } {
3074
+ return {
3075
+ config: 'Config',
3076
+ };
3077
+ }
3078
+
3079
+ static types(): { [key: string]: any } {
3080
+ return {
3081
+ config: 'string',
3082
+ };
3083
+ }
3084
+
3085
+ constructor(map?: { [key: string]: any }) {
3086
+ super(map);
3087
+ }
3088
+ }
3089
+
3090
+
3091
+ export default class Client extends OpenApi {
3092
+
3093
+ constructor(config: $OpenApi.Config) {
3094
+ super(config);
3095
+ this._signatureAlgorithm = "v2";
3096
+ this._endpointRule = "regional";
3097
+ this.checkConfig(config);
3098
+ this._endpoint = this.getEndpoint("ecd", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
3099
+ }
3100
+
3101
+
3102
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
3103
+ if (!Util.empty(endpoint)) {
3104
+ return endpoint;
3105
+ }
3106
+
3107
+ if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
3108
+ return endpointMap[regionId];
3109
+ }
3110
+
3111
+ return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3112
+ }
3113
+
3114
+ async approveFotaUpdateWithOptions(request: ApproveFotaUpdateRequest, runtime: $Util.RuntimeOptions): Promise<ApproveFotaUpdateResponse> {
3115
+ Util.validateModel(request);
3116
+ let query = { };
3117
+ if (!Util.isUnset(request.appVersion)) {
3118
+ query["AppVersion"] = request.appVersion;
3119
+ }
3120
+
3121
+ if (!Util.isUnset(request.clientId)) {
3122
+ query["ClientId"] = request.clientId;
3123
+ }
3124
+
3125
+ if (!Util.isUnset(request.desktopId)) {
3126
+ query["DesktopId"] = request.desktopId;
3127
+ }
3128
+
3129
+ if (!Util.isUnset(request.loginToken)) {
3130
+ query["LoginToken"] = request.loginToken;
3131
+ }
3132
+
3133
+ if (!Util.isUnset(request.regionId)) {
3134
+ query["RegionId"] = request.regionId;
3135
+ }
3136
+
3137
+ if (!Util.isUnset(request.sessionId)) {
3138
+ query["SessionId"] = request.sessionId;
3139
+ }
3140
+
3141
+ if (!Util.isUnset(request.uuid)) {
3142
+ query["Uuid"] = request.uuid;
3143
+ }
3144
+
3145
+ let req = new $OpenApi.OpenApiRequest({
3146
+ query: OpenApiUtil.query(query),
3147
+ });
3148
+ let params = new $OpenApi.Params({
3149
+ action: "ApproveFotaUpdate",
3150
+ version: "2020-10-02",
3151
+ protocol: "HTTPS",
3152
+ pathname: "/",
3153
+ method: "POST",
3154
+ authType: "Anonymous",
3155
+ style: "RPC",
3156
+ reqBodyType: "formData",
3157
+ bodyType: "json",
3158
+ });
3159
+ return $tea.cast<ApproveFotaUpdateResponse>(await this.callApi(params, req, runtime), new ApproveFotaUpdateResponse({}));
3160
+ }
3161
+
3162
+ async approveFotaUpdate(request: ApproveFotaUpdateRequest): Promise<ApproveFotaUpdateResponse> {
3163
+ let runtime = new $Util.RuntimeOptions({ });
3164
+ return await this.approveFotaUpdateWithOptions(request, runtime);
3165
+ }
3166
+
3167
+ async changePasswordWithOptions(request: ChangePasswordRequest, runtime: $Util.RuntimeOptions): Promise<ChangePasswordResponse> {
3168
+ Util.validateModel(request);
3169
+ let query = { };
3170
+ if (!Util.isUnset(request.clientId)) {
3171
+ query["ClientId"] = request.clientId;
3172
+ }
3173
+
3174
+ if (!Util.isUnset(request.endUserId)) {
3175
+ query["EndUserId"] = request.endUserId;
3176
+ }
3177
+
3178
+ if (!Util.isUnset(request.loginToken)) {
3179
+ query["LoginToken"] = request.loginToken;
3180
+ }
3181
+
3182
+ if (!Util.isUnset(request.newPassword)) {
3183
+ query["NewPassword"] = request.newPassword;
3184
+ }
3185
+
3186
+ if (!Util.isUnset(request.officeSiteId)) {
3187
+ query["OfficeSiteId"] = request.officeSiteId;
3188
+ }
3189
+
3190
+ if (!Util.isUnset(request.oldPassword)) {
3191
+ query["OldPassword"] = request.oldPassword;
3192
+ }
3193
+
3194
+ if (!Util.isUnset(request.regionId)) {
3195
+ query["RegionId"] = request.regionId;
3196
+ }
3197
+
3198
+ if (!Util.isUnset(request.sessionId)) {
3199
+ query["SessionId"] = request.sessionId;
3200
+ }
3201
+
3202
+ let req = new $OpenApi.OpenApiRequest({
3203
+ query: OpenApiUtil.query(query),
3204
+ });
3205
+ let params = new $OpenApi.Params({
3206
+ action: "ChangePassword",
3207
+ version: "2020-10-02",
3208
+ protocol: "HTTPS",
3209
+ pathname: "/",
3210
+ method: "POST",
3211
+ authType: "Anonymous",
3212
+ style: "RPC",
3213
+ reqBodyType: "formData",
3214
+ bodyType: "json",
3215
+ });
3216
+ return $tea.cast<ChangePasswordResponse>(await this.callApi(params, req, runtime), new ChangePasswordResponse({}));
3217
+ }
3218
+
3219
+ async changePassword(request: ChangePasswordRequest): Promise<ChangePasswordResponse> {
3220
+ let runtime = new $Util.RuntimeOptions({ });
3221
+ return await this.changePasswordWithOptions(request, runtime);
3222
+ }
3223
+
3224
+ async deleteFingerPrintTemplateWithOptions(request: DeleteFingerPrintTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteFingerPrintTemplateResponse> {
3225
+ Util.validateModel(request);
3226
+ let query = { };
3227
+ if (!Util.isUnset(request.clientId)) {
3228
+ query["ClientId"] = request.clientId;
3229
+ }
3230
+
3231
+ if (!Util.isUnset(request.clientToken)) {
3232
+ query["ClientToken"] = request.clientToken;
3233
+ }
3234
+
3235
+ if (!Util.isUnset(request.index)) {
3236
+ query["Index"] = request.index;
3237
+ }
3238
+
3239
+ if (!Util.isUnset(request.loginToken)) {
3240
+ query["LoginToken"] = request.loginToken;
3241
+ }
3242
+
3243
+ if (!Util.isUnset(request.regionId)) {
3244
+ query["RegionId"] = request.regionId;
3245
+ }
3246
+
3247
+ if (!Util.isUnset(request.sessionId)) {
3248
+ query["SessionId"] = request.sessionId;
3249
+ }
3250
+
3251
+ let req = new $OpenApi.OpenApiRequest({
3252
+ query: OpenApiUtil.query(query),
3253
+ });
3254
+ let params = new $OpenApi.Params({
3255
+ action: "DeleteFingerPrintTemplate",
3256
+ version: "2020-10-02",
3257
+ protocol: "HTTPS",
3258
+ pathname: "/",
3259
+ method: "POST",
3260
+ authType: "Anonymous",
3261
+ style: "RPC",
3262
+ reqBodyType: "formData",
3263
+ bodyType: "json",
3264
+ });
3265
+ return $tea.cast<DeleteFingerPrintTemplateResponse>(await this.callApi(params, req, runtime), new DeleteFingerPrintTemplateResponse({}));
3266
+ }
3267
+
3268
+ async deleteFingerPrintTemplate(request: DeleteFingerPrintTemplateRequest): Promise<DeleteFingerPrintTemplateResponse> {
3269
+ let runtime = new $Util.RuntimeOptions({ });
3270
+ return await this.deleteFingerPrintTemplateWithOptions(request, runtime);
3271
+ }
3272
+
3273
+ async describeDirectoriesWithOptions(request: DescribeDirectoriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDirectoriesResponse> {
3274
+ Util.validateModel(request);
3275
+ let query = { };
3276
+ if (!Util.isUnset(request.clientId)) {
3277
+ query["ClientId"] = request.clientId;
3278
+ }
3279
+
3280
+ if (!Util.isUnset(request.directoryId)) {
3281
+ query["DirectoryId"] = request.directoryId;
3282
+ }
3283
+
3284
+ if (!Util.isUnset(request.regionId)) {
3285
+ query["RegionId"] = request.regionId;
3286
+ }
3287
+
3288
+ let req = new $OpenApi.OpenApiRequest({
3289
+ query: OpenApiUtil.query(query),
3290
+ });
3291
+ let params = new $OpenApi.Params({
3292
+ action: "DescribeDirectories",
3293
+ version: "2020-10-02",
3294
+ protocol: "HTTPS",
3295
+ pathname: "/",
3296
+ method: "POST",
3297
+ authType: "Anonymous",
3298
+ style: "RPC",
3299
+ reqBodyType: "formData",
3300
+ bodyType: "json",
3301
+ });
3302
+ return $tea.cast<DescribeDirectoriesResponse>(await this.callApi(params, req, runtime), new DescribeDirectoriesResponse({}));
3303
+ }
3304
+
3305
+ async describeDirectories(request: DescribeDirectoriesRequest): Promise<DescribeDirectoriesResponse> {
3306
+ let runtime = new $Util.RuntimeOptions({ });
3307
+ return await this.describeDirectoriesWithOptions(request, runtime);
3308
+ }
3309
+
3310
+ async describeFingerPrintTemplatesWithOptions(request: DescribeFingerPrintTemplatesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeFingerPrintTemplatesResponse> {
3311
+ Util.validateModel(request);
3312
+ let query = { };
3313
+ if (!Util.isUnset(request.clientId)) {
3314
+ query["ClientId"] = request.clientId;
3315
+ }
3316
+
3317
+ if (!Util.isUnset(request.loginToken)) {
3318
+ query["LoginToken"] = request.loginToken;
3319
+ }
3320
+
3321
+ if (!Util.isUnset(request.regionId)) {
3322
+ query["RegionId"] = request.regionId;
3323
+ }
3324
+
3325
+ if (!Util.isUnset(request.sessionId)) {
3326
+ query["SessionId"] = request.sessionId;
3327
+ }
3328
+
3329
+ let req = new $OpenApi.OpenApiRequest({
3330
+ query: OpenApiUtil.query(query),
3331
+ });
3332
+ let params = new $OpenApi.Params({
3333
+ action: "DescribeFingerPrintTemplates",
3334
+ version: "2020-10-02",
3335
+ protocol: "HTTPS",
3336
+ pathname: "/",
3337
+ method: "POST",
3338
+ authType: "Anonymous",
3339
+ style: "RPC",
3340
+ reqBodyType: "formData",
3341
+ bodyType: "json",
3342
+ });
3343
+ return $tea.cast<DescribeFingerPrintTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeFingerPrintTemplatesResponse({}));
3344
+ }
3345
+
3346
+ async describeFingerPrintTemplates(request: DescribeFingerPrintTemplatesRequest): Promise<DescribeFingerPrintTemplatesResponse> {
3347
+ let runtime = new $Util.RuntimeOptions({ });
3348
+ return await this.describeFingerPrintTemplatesWithOptions(request, runtime);
3349
+ }
3350
+
3351
+ async describeGlobalDesktopsWithOptions(request: DescribeGlobalDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeGlobalDesktopsResponse> {
3352
+ Util.validateModel(request);
3353
+ let query = { };
3354
+ if (!Util.isUnset(request.clientId)) {
3355
+ query["ClientId"] = request.clientId;
3356
+ }
3357
+
3358
+ if (!Util.isUnset(request.desktopAccessType)) {
3359
+ query["DesktopAccessType"] = request.desktopAccessType;
3360
+ }
3361
+
3362
+ if (!Util.isUnset(request.desktopId)) {
3363
+ query["DesktopId"] = request.desktopId;
3364
+ }
3365
+
3366
+ if (!Util.isUnset(request.desktopName)) {
3367
+ query["DesktopName"] = request.desktopName;
3368
+ }
3369
+
3370
+ if (!Util.isUnset(request.desktopStatus)) {
3371
+ query["DesktopStatus"] = request.desktopStatus;
3372
+ }
3373
+
3374
+ if (!Util.isUnset(request.directoryId)) {
3375
+ query["DirectoryId"] = request.directoryId;
3376
+ }
3377
+
3378
+ if (!Util.isUnset(request.keyword)) {
3379
+ query["Keyword"] = request.keyword;
3380
+ }
3381
+
3382
+ if (!Util.isUnset(request.loginRegionId)) {
3383
+ query["LoginRegionId"] = request.loginRegionId;
3384
+ }
3385
+
3386
+ if (!Util.isUnset(request.loginToken)) {
3387
+ query["LoginToken"] = request.loginToken;
3388
+ }
3389
+
3390
+ if (!Util.isUnset(request.maxResults)) {
3391
+ query["MaxResults"] = request.maxResults;
3392
+ }
3393
+
3394
+ if (!Util.isUnset(request.nextToken)) {
3395
+ query["NextToken"] = request.nextToken;
3396
+ }
3397
+
3398
+ if (!Util.isUnset(request.officeSiteId)) {
3399
+ query["OfficeSiteId"] = request.officeSiteId;
3400
+ }
3401
+
3402
+ if (!Util.isUnset(request.orderBy)) {
3403
+ query["OrderBy"] = request.orderBy;
3404
+ }
3405
+
3406
+ if (!Util.isUnset(request.queryFotaUpdate)) {
3407
+ query["QueryFotaUpdate"] = request.queryFotaUpdate;
3408
+ }
3409
+
3410
+ if (!Util.isUnset(request.regionId)) {
3411
+ query["RegionId"] = request.regionId;
3412
+ }
3413
+
3414
+ if (!Util.isUnset(request.searchRegionId)) {
3415
+ query["SearchRegionId"] = request.searchRegionId;
3416
+ }
3417
+
3418
+ if (!Util.isUnset(request.sessionId)) {
3419
+ query["SessionId"] = request.sessionId;
3420
+ }
3421
+
3422
+ if (!Util.isUnset(request.sortType)) {
3423
+ query["SortType"] = request.sortType;
3424
+ }
3425
+
3426
+ if (!Util.isUnset(request.withoutLatency)) {
3427
+ query["WithoutLatency"] = request.withoutLatency;
3428
+ }
3429
+
3430
+ let req = new $OpenApi.OpenApiRequest({
3431
+ query: OpenApiUtil.query(query),
3432
+ });
3433
+ let params = new $OpenApi.Params({
3434
+ action: "DescribeGlobalDesktops",
3435
+ version: "2020-10-02",
3436
+ protocol: "HTTPS",
3437
+ pathname: "/",
3438
+ method: "POST",
3439
+ authType: "Anonymous",
3440
+ style: "RPC",
3441
+ reqBodyType: "formData",
3442
+ bodyType: "json",
3443
+ });
3444
+ return $tea.cast<DescribeGlobalDesktopsResponse>(await this.callApi(params, req, runtime), new DescribeGlobalDesktopsResponse({}));
3445
+ }
3446
+
3447
+ async describeGlobalDesktops(request: DescribeGlobalDesktopsRequest): Promise<DescribeGlobalDesktopsResponse> {
3448
+ let runtime = new $Util.RuntimeOptions({ });
3449
+ return await this.describeGlobalDesktopsWithOptions(request, runtime);
3450
+ }
3451
+
3452
+ async describeOfficeSitesWithOptions(request: DescribeOfficeSitesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeOfficeSitesResponse> {
3453
+ Util.validateModel(request);
3454
+ let query = { };
3455
+ if (!Util.isUnset(request.clientId)) {
3456
+ query["ClientId"] = request.clientId;
3457
+ }
3458
+
3459
+ if (!Util.isUnset(request.officeSiteId)) {
3460
+ query["OfficeSiteId"] = request.officeSiteId;
3461
+ }
3462
+
3463
+ if (!Util.isUnset(request.regionId)) {
3464
+ query["RegionId"] = request.regionId;
3465
+ }
3466
+
3467
+ let req = new $OpenApi.OpenApiRequest({
3468
+ query: OpenApiUtil.query(query),
3469
+ });
3470
+ let params = new $OpenApi.Params({
3471
+ action: "DescribeOfficeSites",
3472
+ version: "2020-10-02",
3473
+ protocol: "HTTPS",
3474
+ pathname: "/",
3475
+ method: "POST",
3476
+ authType: "Anonymous",
3477
+ style: "RPC",
3478
+ reqBodyType: "formData",
3479
+ bodyType: "json",
3480
+ });
3481
+ return $tea.cast<DescribeOfficeSitesResponse>(await this.callApi(params, req, runtime), new DescribeOfficeSitesResponse({}));
3482
+ }
3483
+
3484
+ async describeOfficeSites(request: DescribeOfficeSitesRequest): Promise<DescribeOfficeSitesResponse> {
3485
+ let runtime = new $Util.RuntimeOptions({ });
3486
+ return await this.describeOfficeSitesWithOptions(request, runtime);
3487
+ }
3488
+
3489
+ async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
3490
+ Util.validateModel(request);
3491
+ let query = { };
3492
+ if (!Util.isUnset(request.clientId)) {
3493
+ query["ClientId"] = request.clientId;
3494
+ }
3495
+
3496
+ if (!Util.isUnset(request.regionId)) {
3497
+ query["RegionId"] = request.regionId;
3498
+ }
3499
+
3500
+ let req = new $OpenApi.OpenApiRequest({
3501
+ query: OpenApiUtil.query(query),
3502
+ });
3503
+ let params = new $OpenApi.Params({
3504
+ action: "DescribeRegions",
3505
+ version: "2020-10-02",
3506
+ protocol: "HTTPS",
3507
+ pathname: "/",
3508
+ method: "POST",
3509
+ authType: "Anonymous",
3510
+ style: "RPC",
3511
+ reqBodyType: "formData",
3512
+ bodyType: "json",
3513
+ });
3514
+ return $tea.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
3515
+ }
3516
+
3517
+ async describeRegions(request: DescribeRegionsRequest): Promise<DescribeRegionsResponse> {
3518
+ let runtime = new $Util.RuntimeOptions({ });
3519
+ return await this.describeRegionsWithOptions(request, runtime);
3520
+ }
3521
+
3522
+ async describeSnapshotsWithOptions(request: DescribeSnapshotsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotsResponse> {
3523
+ Util.validateModel(request);
3524
+ let query = { };
3525
+ if (!Util.isUnset(request.clientId)) {
3526
+ query["ClientId"] = request.clientId;
3527
+ }
3528
+
3529
+ if (!Util.isUnset(request.desktopId)) {
3530
+ query["DesktopId"] = request.desktopId;
3531
+ }
3532
+
3533
+ if (!Util.isUnset(request.loginToken)) {
3534
+ query["LoginToken"] = request.loginToken;
3535
+ }
3536
+
3537
+ if (!Util.isUnset(request.maxResults)) {
3538
+ query["MaxResults"] = request.maxResults;
3539
+ }
3540
+
3541
+ if (!Util.isUnset(request.nextToken)) {
3542
+ query["NextToken"] = request.nextToken;
3543
+ }
3544
+
3545
+ if (!Util.isUnset(request.regionId)) {
3546
+ query["RegionId"] = request.regionId;
3547
+ }
3548
+
3549
+ if (!Util.isUnset(request.sessionId)) {
3550
+ query["SessionId"] = request.sessionId;
3551
+ }
3552
+
3553
+ if (!Util.isUnset(request.snapshotId)) {
3554
+ query["SnapshotId"] = request.snapshotId;
3555
+ }
3556
+
3557
+ let req = new $OpenApi.OpenApiRequest({
3558
+ query: OpenApiUtil.query(query),
3559
+ });
3560
+ let params = new $OpenApi.Params({
3561
+ action: "DescribeSnapshots",
3562
+ version: "2020-10-02",
3563
+ protocol: "HTTPS",
3564
+ pathname: "/",
3565
+ method: "POST",
3566
+ authType: "Anonymous",
3567
+ style: "RPC",
3568
+ reqBodyType: "formData",
3569
+ bodyType: "json",
3570
+ });
3571
+ return $tea.cast<DescribeSnapshotsResponse>(await this.callApi(params, req, runtime), new DescribeSnapshotsResponse({}));
3572
+ }
3573
+
3574
+ async describeSnapshots(request: DescribeSnapshotsRequest): Promise<DescribeSnapshotsResponse> {
3575
+ let runtime = new $Util.RuntimeOptions({ });
3576
+ return await this.describeSnapshotsWithOptions(request, runtime);
3577
+ }
3578
+
3579
+ async encryptPasswordWithOptions(request: EncryptPasswordRequest, runtime: $Util.RuntimeOptions): Promise<EncryptPasswordResponse> {
3580
+ Util.validateModel(request);
3581
+ let query = { };
3582
+ if (!Util.isUnset(request.clientId)) {
3583
+ query["ClientId"] = request.clientId;
3584
+ }
3585
+
3586
+ if (!Util.isUnset(request.directoryId)) {
3587
+ query["DirectoryId"] = request.directoryId;
3588
+ }
3589
+
3590
+ if (!Util.isUnset(request.loginToken)) {
3591
+ query["LoginToken"] = request.loginToken;
3592
+ }
3593
+
3594
+ if (!Util.isUnset(request.officeSiteId)) {
3595
+ query["OfficeSiteId"] = request.officeSiteId;
3596
+ }
3597
+
3598
+ if (!Util.isUnset(request.password)) {
3599
+ query["Password"] = request.password;
3600
+ }
3601
+
3602
+ if (!Util.isUnset(request.regionId)) {
3603
+ query["RegionId"] = request.regionId;
3604
+ }
3605
+
3606
+ if (!Util.isUnset(request.sessionId)) {
3607
+ query["SessionId"] = request.sessionId;
3608
+ }
3609
+
3610
+ let req = new $OpenApi.OpenApiRequest({
3611
+ query: OpenApiUtil.query(query),
3612
+ });
3613
+ let params = new $OpenApi.Params({
3614
+ action: "EncryptPassword",
3615
+ version: "2020-10-02",
3616
+ protocol: "HTTPS",
3617
+ pathname: "/",
3618
+ method: "POST",
3619
+ authType: "Anonymous",
3620
+ style: "RPC",
3621
+ reqBodyType: "formData",
3622
+ bodyType: "json",
3623
+ });
3624
+ return $tea.cast<EncryptPasswordResponse>(await this.callApi(params, req, runtime), new EncryptPasswordResponse({}));
3625
+ }
3626
+
3627
+ async encryptPassword(request: EncryptPasswordRequest): Promise<EncryptPasswordResponse> {
3628
+ let runtime = new $Util.RuntimeOptions({ });
3629
+ return await this.encryptPasswordWithOptions(request, runtime);
3630
+ }
3631
+
3632
+ async getCloudDriveServiceMountTokenWithOptions(request: GetCloudDriveServiceMountTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetCloudDriveServiceMountTokenResponse> {
3633
+ Util.validateModel(request);
3634
+ let query = { };
3635
+ if (!Util.isUnset(request.clientId)) {
3636
+ query["ClientId"] = request.clientId;
3637
+ }
3638
+
3639
+ if (!Util.isUnset(request.loginToken)) {
3640
+ query["LoginToken"] = request.loginToken;
3641
+ }
3642
+
3643
+ if (!Util.isUnset(request.officeSiteId)) {
3644
+ query["OfficeSiteId"] = request.officeSiteId;
3645
+ }
3646
+
3647
+ if (!Util.isUnset(request.regionId)) {
3648
+ query["RegionId"] = request.regionId;
3649
+ }
3650
+
3651
+ if (!Util.isUnset(request.sessionId)) {
3652
+ query["SessionId"] = request.sessionId;
3653
+ }
3654
+
3655
+ let req = new $OpenApi.OpenApiRequest({
3656
+ query: OpenApiUtil.query(query),
3657
+ });
3658
+ let params = new $OpenApi.Params({
3659
+ action: "GetCloudDriveServiceMountToken",
3660
+ version: "2020-10-02",
3661
+ protocol: "HTTPS",
3662
+ pathname: "/",
3663
+ method: "POST",
3664
+ authType: "Anonymous",
3665
+ style: "RPC",
3666
+ reqBodyType: "formData",
3667
+ bodyType: "json",
3668
+ });
3669
+ return $tea.cast<GetCloudDriveServiceMountTokenResponse>(await this.callApi(params, req, runtime), new GetCloudDriveServiceMountTokenResponse({}));
3670
+ }
3671
+
3672
+ async getCloudDriveServiceMountToken(request: GetCloudDriveServiceMountTokenRequest): Promise<GetCloudDriveServiceMountTokenResponse> {
3673
+ let runtime = new $Util.RuntimeOptions({ });
3674
+ return await this.getCloudDriveServiceMountTokenWithOptions(request, runtime);
3675
+ }
3676
+
3677
+ async getConnectionTicketWithOptions(request: GetConnectionTicketRequest, runtime: $Util.RuntimeOptions): Promise<GetConnectionTicketResponse> {
3678
+ Util.validateModel(request);
3679
+ let query = { };
3680
+ if (!Util.isUnset(request.clientId)) {
3681
+ query["ClientId"] = request.clientId;
3682
+ }
3683
+
3684
+ if (!Util.isUnset(request.clientOS)) {
3685
+ query["ClientOS"] = request.clientOS;
3686
+ }
3687
+
3688
+ if (!Util.isUnset(request.clientType)) {
3689
+ query["ClientType"] = request.clientType;
3690
+ }
3691
+
3692
+ if (!Util.isUnset(request.clientVersion)) {
3693
+ query["ClientVersion"] = request.clientVersion;
3694
+ }
3695
+
3696
+ if (!Util.isUnset(request.commandContent)) {
3697
+ query["CommandContent"] = request.commandContent;
3698
+ }
3699
+
3700
+ if (!Util.isUnset(request.desktopId)) {
3701
+ query["DesktopId"] = request.desktopId;
3702
+ }
3703
+
3704
+ if (!Util.isUnset(request.loginToken)) {
3705
+ query["LoginToken"] = request.loginToken;
3706
+ }
3707
+
3708
+ if (!Util.isUnset(request.ownerId)) {
3709
+ query["OwnerId"] = request.ownerId;
3710
+ }
3711
+
3712
+ if (!Util.isUnset(request.regionId)) {
3713
+ query["RegionId"] = request.regionId;
3714
+ }
3715
+
3716
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
3717
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3718
+ }
3719
+
3720
+ if (!Util.isUnset(request.resourceOwnerId)) {
3721
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3722
+ }
3723
+
3724
+ if (!Util.isUnset(request.sessionId)) {
3725
+ query["SessionId"] = request.sessionId;
3726
+ }
3727
+
3728
+ if (!Util.isUnset(request.taskId)) {
3729
+ query["TaskId"] = request.taskId;
3730
+ }
3731
+
3732
+ if (!Util.isUnset(request.uuid)) {
3733
+ query["Uuid"] = request.uuid;
3734
+ }
3735
+
3736
+ let req = new $OpenApi.OpenApiRequest({
3737
+ query: OpenApiUtil.query(query),
3738
+ });
3739
+ let params = new $OpenApi.Params({
3740
+ action: "GetConnectionTicket",
3741
+ version: "2020-10-02",
3742
+ protocol: "HTTPS",
3743
+ pathname: "/",
3744
+ method: "POST",
3745
+ authType: "Anonymous",
3746
+ style: "RPC",
3747
+ reqBodyType: "formData",
3748
+ bodyType: "json",
3749
+ });
3750
+ return $tea.cast<GetConnectionTicketResponse>(await this.callApi(params, req, runtime), new GetConnectionTicketResponse({}));
3751
+ }
3752
+
3753
+ async getConnectionTicket(request: GetConnectionTicketRequest): Promise<GetConnectionTicketResponse> {
3754
+ let runtime = new $Util.RuntimeOptions({ });
3755
+ return await this.getConnectionTicketWithOptions(request, runtime);
3756
+ }
3757
+
3758
+ async getLoginTokenWithOptions(request: GetLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetLoginTokenResponse> {
3759
+ Util.validateModel(request);
3760
+ let query = { };
3761
+ if (!Util.isUnset(request.authenticationCode)) {
3762
+ query["AuthenticationCode"] = request.authenticationCode;
3763
+ }
3764
+
3765
+ if (!Util.isUnset(request.clientId)) {
3766
+ query["ClientId"] = request.clientId;
3767
+ }
3768
+
3769
+ if (!Util.isUnset(request.clientOS)) {
3770
+ query["ClientOS"] = request.clientOS;
3771
+ }
3772
+
3773
+ if (!Util.isUnset(request.clientType)) {
3774
+ query["ClientType"] = request.clientType;
3775
+ }
3776
+
3777
+ if (!Util.isUnset(request.clientVersion)) {
3778
+ query["ClientVersion"] = request.clientVersion;
3779
+ }
3780
+
3781
+ if (!Util.isUnset(request.currentStage)) {
3782
+ query["CurrentStage"] = request.currentStage;
3783
+ }
3784
+
3785
+ if (!Util.isUnset(request.directoryId)) {
3786
+ query["DirectoryId"] = request.directoryId;
3787
+ }
3788
+
3789
+ if (!Util.isUnset(request.endUserId)) {
3790
+ query["EndUserId"] = request.endUserId;
3791
+ }
3792
+
3793
+ if (!Util.isUnset(request.keepAlive)) {
3794
+ query["KeepAlive"] = request.keepAlive;
3795
+ }
3796
+
3797
+ if (!Util.isUnset(request.keepAliveToken)) {
3798
+ query["KeepAliveToken"] = request.keepAliveToken;
3799
+ }
3800
+
3801
+ if (!Util.isUnset(request.newPassword)) {
3802
+ query["NewPassword"] = request.newPassword;
3803
+ }
3804
+
3805
+ if (!Util.isUnset(request.officeSiteId)) {
3806
+ query["OfficeSiteId"] = request.officeSiteId;
3807
+ }
3808
+
3809
+ if (!Util.isUnset(request.oldPassword)) {
3810
+ query["OldPassword"] = request.oldPassword;
3811
+ }
3812
+
3813
+ if (!Util.isUnset(request.password)) {
3814
+ query["Password"] = request.password;
3815
+ }
3816
+
3817
+ if (!Util.isUnset(request.regionId)) {
3818
+ query["RegionId"] = request.regionId;
3819
+ }
3820
+
3821
+ if (!Util.isUnset(request.sessionId)) {
3822
+ query["SessionId"] = request.sessionId;
3823
+ }
3824
+
3825
+ if (!Util.isUnset(request.tokenCode)) {
3826
+ query["TokenCode"] = request.tokenCode;
3827
+ }
3828
+
3829
+ if (!Util.isUnset(request.uuid)) {
3830
+ query["Uuid"] = request.uuid;
3831
+ }
3832
+
3833
+ let req = new $OpenApi.OpenApiRequest({
3834
+ query: OpenApiUtil.query(query),
3835
+ });
3836
+ let params = new $OpenApi.Params({
3837
+ action: "GetLoginToken",
3838
+ version: "2020-10-02",
3839
+ protocol: "HTTPS",
3840
+ pathname: "/",
3841
+ method: "POST",
3842
+ authType: "Anonymous",
3843
+ style: "RPC",
3844
+ reqBodyType: "formData",
3845
+ bodyType: "json",
3846
+ });
3847
+ return $tea.cast<GetLoginTokenResponse>(await this.callApi(params, req, runtime), new GetLoginTokenResponse({}));
3848
+ }
3849
+
3850
+ async getLoginToken(request: GetLoginTokenRequest): Promise<GetLoginTokenResponse> {
3851
+ let runtime = new $Util.RuntimeOptions({ });
3852
+ return await this.getLoginTokenWithOptions(request, runtime);
3853
+ }
3854
+
3855
+ async isKeepAliveWithOptions(request: IsKeepAliveRequest, runtime: $Util.RuntimeOptions): Promise<IsKeepAliveResponse> {
3856
+ Util.validateModel(request);
3857
+ let query = { };
3858
+ if (!Util.isUnset(request.clientId)) {
3859
+ query["ClientId"] = request.clientId;
3860
+ }
3861
+
3862
+ if (!Util.isUnset(request.officeSiteId)) {
3863
+ query["OfficeSiteId"] = request.officeSiteId;
3864
+ }
3865
+
3866
+ if (!Util.isUnset(request.regionId)) {
3867
+ query["RegionId"] = request.regionId;
3868
+ }
3869
+
3870
+ let req = new $OpenApi.OpenApiRequest({
3871
+ query: OpenApiUtil.query(query),
3872
+ });
3873
+ let params = new $OpenApi.Params({
3874
+ action: "IsKeepAlive",
3875
+ version: "2020-10-02",
3876
+ protocol: "HTTPS",
3877
+ pathname: "/",
3878
+ method: "POST",
3879
+ authType: "Anonymous",
3880
+ style: "RPC",
3881
+ reqBodyType: "formData",
3882
+ bodyType: "json",
3883
+ });
3884
+ return $tea.cast<IsKeepAliveResponse>(await this.callApi(params, req, runtime), new IsKeepAliveResponse({}));
3885
+ }
3886
+
3887
+ async isKeepAlive(request: IsKeepAliveRequest): Promise<IsKeepAliveResponse> {
3888
+ let runtime = new $Util.RuntimeOptions({ });
3889
+ return await this.isKeepAliveWithOptions(request, runtime);
3890
+ }
3891
+
3892
+ async queryEdsAgentReportConfigWithOptions(request: QueryEdsAgentReportConfigRequest, runtime: $Util.RuntimeOptions): Promise<QueryEdsAgentReportConfigResponse> {
3893
+ Util.validateModel(request);
3894
+ let query = { };
3895
+ if (!Util.isUnset(request.aliUid)) {
3896
+ query["AliUid"] = request.aliUid;
3897
+ }
3898
+
3899
+ if (!Util.isUnset(request.desktopId)) {
3900
+ query["DesktopId"] = request.desktopId;
3901
+ }
3902
+
3903
+ if (!Util.isUnset(request.ecsInstanceId)) {
3904
+ query["EcsInstanceId"] = request.ecsInstanceId;
3905
+ }
3906
+
3907
+ let req = new $OpenApi.OpenApiRequest({
3908
+ query: OpenApiUtil.query(query),
3909
+ });
3910
+ let params = new $OpenApi.Params({
3911
+ action: "QueryEdsAgentReportConfig",
3912
+ version: "2020-10-02",
3913
+ protocol: "HTTPS",
3914
+ pathname: "/",
3915
+ method: "POST",
3916
+ authType: "Anonymous",
3917
+ style: "RPC",
3918
+ reqBodyType: "formData",
3919
+ bodyType: "json",
3920
+ });
3921
+ return $tea.cast<QueryEdsAgentReportConfigResponse>(await this.callApi(params, req, runtime), new QueryEdsAgentReportConfigResponse({}));
3922
+ }
3923
+
3924
+ async queryEdsAgentReportConfig(request: QueryEdsAgentReportConfigRequest): Promise<QueryEdsAgentReportConfigResponse> {
3925
+ let runtime = new $Util.RuntimeOptions({ });
3926
+ return await this.queryEdsAgentReportConfigWithOptions(request, runtime);
3927
+ }
3928
+
3929
+ async rebootDesktopsWithOptions(request: RebootDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<RebootDesktopsResponse> {
3930
+ Util.validateModel(request);
3931
+ let query = { };
3932
+ if (!Util.isUnset(request.clientId)) {
3933
+ query["ClientId"] = request.clientId;
3934
+ }
3935
+
3936
+ if (!Util.isUnset(request.clientOS)) {
3937
+ query["ClientOS"] = request.clientOS;
3938
+ }
3939
+
3940
+ if (!Util.isUnset(request.clientToken)) {
3941
+ query["ClientToken"] = request.clientToken;
3942
+ }
3943
+
3944
+ if (!Util.isUnset(request.clientVersion)) {
3945
+ query["ClientVersion"] = request.clientVersion;
3946
+ }
3947
+
3948
+ if (!Util.isUnset(request.desktopId)) {
3949
+ query["DesktopId"] = request.desktopId;
3950
+ }
3951
+
3952
+ if (!Util.isUnset(request.loginToken)) {
3953
+ query["LoginToken"] = request.loginToken;
3954
+ }
3955
+
3956
+ if (!Util.isUnset(request.regionId)) {
3957
+ query["RegionId"] = request.regionId;
3958
+ }
3959
+
3960
+ if (!Util.isUnset(request.sessionId)) {
3961
+ query["SessionId"] = request.sessionId;
3962
+ }
3963
+
3964
+ if (!Util.isUnset(request.sessionToken)) {
3965
+ query["SessionToken"] = request.sessionToken;
3966
+ }
3967
+
3968
+ let req = new $OpenApi.OpenApiRequest({
3969
+ query: OpenApiUtil.query(query),
3970
+ });
3971
+ let params = new $OpenApi.Params({
3972
+ action: "RebootDesktops",
3973
+ version: "2020-10-02",
3974
+ protocol: "HTTPS",
3975
+ pathname: "/",
3976
+ method: "POST",
3977
+ authType: "Anonymous",
3978
+ style: "RPC",
3979
+ reqBodyType: "formData",
3980
+ bodyType: "json",
3981
+ });
3982
+ return $tea.cast<RebootDesktopsResponse>(await this.callApi(params, req, runtime), new RebootDesktopsResponse({}));
3983
+ }
3984
+
3985
+ async rebootDesktops(request: RebootDesktopsRequest): Promise<RebootDesktopsResponse> {
3986
+ let runtime = new $Util.RuntimeOptions({ });
3987
+ return await this.rebootDesktopsWithOptions(request, runtime);
3988
+ }
3989
+
3990
+ async refreshLoginTokenWithOptions(request: RefreshLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<RefreshLoginTokenResponse> {
3991
+ Util.validateModel(request);
3992
+ let query = { };
3993
+ if (!Util.isUnset(request.clientId)) {
3994
+ query["ClientId"] = request.clientId;
3995
+ }
3996
+
3997
+ if (!Util.isUnset(request.directoryId)) {
3998
+ query["DirectoryId"] = request.directoryId;
3999
+ }
4000
+
4001
+ if (!Util.isUnset(request.endUserId)) {
4002
+ query["EndUserId"] = request.endUserId;
4003
+ }
4004
+
4005
+ if (!Util.isUnset(request.loginToken)) {
4006
+ query["LoginToken"] = request.loginToken;
4007
+ }
4008
+
4009
+ if (!Util.isUnset(request.officeSiteId)) {
4010
+ query["OfficeSiteId"] = request.officeSiteId;
4011
+ }
4012
+
4013
+ if (!Util.isUnset(request.regionId)) {
4014
+ query["RegionId"] = request.regionId;
4015
+ }
4016
+
4017
+ if (!Util.isUnset(request.sessionId)) {
4018
+ query["SessionId"] = request.sessionId;
4019
+ }
4020
+
4021
+ let req = new $OpenApi.OpenApiRequest({
4022
+ query: OpenApiUtil.query(query),
4023
+ });
4024
+ let params = new $OpenApi.Params({
4025
+ action: "RefreshLoginToken",
4026
+ version: "2020-10-02",
4027
+ protocol: "HTTPS",
4028
+ pathname: "/",
4029
+ method: "POST",
4030
+ authType: "Anonymous",
4031
+ style: "RPC",
4032
+ reqBodyType: "formData",
4033
+ bodyType: "json",
4034
+ });
4035
+ return $tea.cast<RefreshLoginTokenResponse>(await this.callApi(params, req, runtime), new RefreshLoginTokenResponse({}));
4036
+ }
4037
+
4038
+ async refreshLoginToken(request: RefreshLoginTokenRequest): Promise<RefreshLoginTokenResponse> {
4039
+ let runtime = new $Util.RuntimeOptions({ });
4040
+ return await this.refreshLoginTokenWithOptions(request, runtime);
4041
+ }
4042
+
4043
+ async reportEdsAgentInfoWithOptions(request: ReportEdsAgentInfoRequest, runtime: $Util.RuntimeOptions): Promise<ReportEdsAgentInfoResponse> {
4044
+ Util.validateModel(request);
4045
+ let query = { };
4046
+ if (!Util.isUnset(request.aliUid)) {
4047
+ query["AliUid"] = request.aliUid;
4048
+ }
4049
+
4050
+ if (!Util.isUnset(request.desktopId)) {
4051
+ query["DesktopId"] = request.desktopId;
4052
+ }
4053
+
4054
+ if (!Util.isUnset(request.ecsInstanceId)) {
4055
+ query["EcsInstanceId"] = request.ecsInstanceId;
4056
+ }
4057
+
4058
+ if (!Util.isUnset(request.edsAgentInfo)) {
4059
+ query["EdsAgentInfo"] = request.edsAgentInfo;
4060
+ }
4061
+
4062
+ let req = new $OpenApi.OpenApiRequest({
4063
+ query: OpenApiUtil.query(query),
4064
+ });
4065
+ let params = new $OpenApi.Params({
4066
+ action: "ReportEdsAgentInfo",
4067
+ version: "2020-10-02",
4068
+ protocol: "HTTPS",
4069
+ pathname: "/",
4070
+ method: "POST",
4071
+ authType: "Anonymous",
4072
+ style: "RPC",
4073
+ reqBodyType: "formData",
4074
+ bodyType: "json",
4075
+ });
4076
+ return $tea.cast<ReportEdsAgentInfoResponse>(await this.callApi(params, req, runtime), new ReportEdsAgentInfoResponse({}));
4077
+ }
4078
+
4079
+ async reportEdsAgentInfo(request: ReportEdsAgentInfoRequest): Promise<ReportEdsAgentInfoResponse> {
511
4080
  let runtime = new $Util.RuntimeOptions({ });
512
- return await this.getConnectionTicketWithOptions(request, runtime);
4081
+ return await this.reportEdsAgentInfoWithOptions(request, runtime);
513
4082
  }
514
4083
 
515
- async getLoginTokenWithOptions(request: GetLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetLoginTokenResponse> {
4084
+ async reportSessionStatusWithOptions(request: ReportSessionStatusRequest, runtime: $Util.RuntimeOptions): Promise<ReportSessionStatusResponse> {
516
4085
  Util.validateModel(request);
517
- return $tea.cast<GetLoginTokenResponse>(await this.doRequest("GetLoginToken", "HTTPS", "POST", "2020-10-02", "Anonymous", null, $tea.toMap(request), runtime), new GetLoginTokenResponse({}));
4086
+ let query = { };
4087
+ if (!Util.isUnset(request.endUserId)) {
4088
+ query["EndUserId"] = request.endUserId;
4089
+ }
4090
+
4091
+ if (!Util.isUnset(request.instanceId)) {
4092
+ query["InstanceId"] = request.instanceId;
4093
+ }
4094
+
4095
+ if (!Util.isUnset(request.regionId)) {
4096
+ query["RegionId"] = request.regionId;
4097
+ }
4098
+
4099
+ if (!Util.isUnset(request.sessionChangeTime)) {
4100
+ query["SessionChangeTime"] = request.sessionChangeTime;
4101
+ }
4102
+
4103
+ if (!Util.isUnset(request.sessionId)) {
4104
+ query["SessionId"] = request.sessionId;
4105
+ }
4106
+
4107
+ if (!Util.isUnset(request.sessionStatus)) {
4108
+ query["SessionStatus"] = request.sessionStatus;
4109
+ }
4110
+
4111
+ let req = new $OpenApi.OpenApiRequest({
4112
+ query: OpenApiUtil.query(query),
4113
+ });
4114
+ let params = new $OpenApi.Params({
4115
+ action: "ReportSessionStatus",
4116
+ version: "2020-10-02",
4117
+ protocol: "HTTPS",
4118
+ pathname: "/",
4119
+ method: "POST",
4120
+ authType: "Anonymous",
4121
+ style: "RPC",
4122
+ reqBodyType: "formData",
4123
+ bodyType: "json",
4124
+ });
4125
+ return $tea.cast<ReportSessionStatusResponse>(await this.callApi(params, req, runtime), new ReportSessionStatusResponse({}));
518
4126
  }
519
4127
 
520
- async getLoginToken(request: GetLoginTokenRequest): Promise<GetLoginTokenResponse> {
4128
+ async reportSessionStatus(request: ReportSessionStatusRequest): Promise<ReportSessionStatusResponse> {
521
4129
  let runtime = new $Util.RuntimeOptions({ });
522
- return await this.getLoginTokenWithOptions(request, runtime);
4130
+ return await this.reportSessionStatusWithOptions(request, runtime);
523
4131
  }
524
4132
 
525
- getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
526
- if (!Util.empty(endpoint)) {
527
- return endpoint;
4133
+ async resetPasswordWithOptions(request: ResetPasswordRequest, runtime: $Util.RuntimeOptions): Promise<ResetPasswordResponse> {
4134
+ Util.validateModel(request);
4135
+ let query = { };
4136
+ if (!Util.isUnset(request.clientId)) {
4137
+ query["ClientId"] = request.clientId;
528
4138
  }
529
4139
 
530
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
531
- return endpointMap[regionId];
4140
+ if (!Util.isUnset(request.clientToken)) {
4141
+ query["ClientToken"] = request.clientToken;
532
4142
  }
533
4143
 
534
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
4144
+ if (!Util.isUnset(request.email)) {
4145
+ query["Email"] = request.email;
4146
+ }
4147
+
4148
+ if (!Util.isUnset(request.endUserId)) {
4149
+ query["EndUserId"] = request.endUserId;
4150
+ }
4151
+
4152
+ if (!Util.isUnset(request.officeSiteId)) {
4153
+ query["OfficeSiteId"] = request.officeSiteId;
4154
+ }
4155
+
4156
+ if (!Util.isUnset(request.regionId)) {
4157
+ query["RegionId"] = request.regionId;
4158
+ }
4159
+
4160
+ if (!Util.isUnset(request.phone)) {
4161
+ query["phone"] = request.phone;
4162
+ }
4163
+
4164
+ let req = new $OpenApi.OpenApiRequest({
4165
+ query: OpenApiUtil.query(query),
4166
+ });
4167
+ let params = new $OpenApi.Params({
4168
+ action: "ResetPassword",
4169
+ version: "2020-10-02",
4170
+ protocol: "HTTPS",
4171
+ pathname: "/",
4172
+ method: "POST",
4173
+ authType: "Anonymous",
4174
+ style: "RPC",
4175
+ reqBodyType: "formData",
4176
+ bodyType: "json",
4177
+ });
4178
+ return $tea.cast<ResetPasswordResponse>(await this.callApi(params, req, runtime), new ResetPasswordResponse({}));
4179
+ }
4180
+
4181
+ async resetPassword(request: ResetPasswordRequest): Promise<ResetPasswordResponse> {
4182
+ let runtime = new $Util.RuntimeOptions({ });
4183
+ return await this.resetPasswordWithOptions(request, runtime);
4184
+ }
4185
+
4186
+ async resetSnapshotWithOptions(request: ResetSnapshotRequest, runtime: $Util.RuntimeOptions): Promise<ResetSnapshotResponse> {
4187
+ Util.validateModel(request);
4188
+ let query = { };
4189
+ if (!Util.isUnset(request.clientId)) {
4190
+ query["ClientId"] = request.clientId;
4191
+ }
4192
+
4193
+ if (!Util.isUnset(request.loginToken)) {
4194
+ query["LoginToken"] = request.loginToken;
4195
+ }
4196
+
4197
+ if (!Util.isUnset(request.regionId)) {
4198
+ query["RegionId"] = request.regionId;
4199
+ }
4200
+
4201
+ if (!Util.isUnset(request.sessionId)) {
4202
+ query["SessionId"] = request.sessionId;
4203
+ }
4204
+
4205
+ if (!Util.isUnset(request.snapshotId)) {
4206
+ query["SnapshotId"] = request.snapshotId;
4207
+ }
4208
+
4209
+ let req = new $OpenApi.OpenApiRequest({
4210
+ query: OpenApiUtil.query(query),
4211
+ });
4212
+ let params = new $OpenApi.Params({
4213
+ action: "ResetSnapshot",
4214
+ version: "2020-10-02",
4215
+ protocol: "HTTPS",
4216
+ pathname: "/",
4217
+ method: "POST",
4218
+ authType: "Anonymous",
4219
+ style: "RPC",
4220
+ reqBodyType: "formData",
4221
+ bodyType: "json",
4222
+ });
4223
+ return $tea.cast<ResetSnapshotResponse>(await this.callApi(params, req, runtime), new ResetSnapshotResponse({}));
4224
+ }
4225
+
4226
+ async resetSnapshot(request: ResetSnapshotRequest): Promise<ResetSnapshotResponse> {
4227
+ let runtime = new $Util.RuntimeOptions({ });
4228
+ return await this.resetSnapshotWithOptions(request, runtime);
4229
+ }
4230
+
4231
+ async sendTokenCodeWithOptions(request: SendTokenCodeRequest, runtime: $Util.RuntimeOptions): Promise<SendTokenCodeResponse> {
4232
+ Util.validateModel(request);
4233
+ let query = { };
4234
+ if (!Util.isUnset(request.clientId)) {
4235
+ query["ClientId"] = request.clientId;
4236
+ }
4237
+
4238
+ if (!Util.isUnset(request.clientOS)) {
4239
+ query["ClientOS"] = request.clientOS;
4240
+ }
4241
+
4242
+ if (!Util.isUnset(request.clientVersion)) {
4243
+ query["ClientVersion"] = request.clientVersion;
4244
+ }
4245
+
4246
+ if (!Util.isUnset(request.endUserId)) {
4247
+ query["EndUserId"] = request.endUserId;
4248
+ }
4249
+
4250
+ if (!Util.isUnset(request.loginToken)) {
4251
+ query["LoginToken"] = request.loginToken;
4252
+ }
4253
+
4254
+ if (!Util.isUnset(request.officeSiteId)) {
4255
+ query["OfficeSiteId"] = request.officeSiteId;
4256
+ }
4257
+
4258
+ if (!Util.isUnset(request.sessionId)) {
4259
+ query["SessionId"] = request.sessionId;
4260
+ }
4261
+
4262
+ if (!Util.isUnset(request.tokenCode)) {
4263
+ query["TokenCode"] = request.tokenCode;
4264
+ }
4265
+
4266
+ let req = new $OpenApi.OpenApiRequest({
4267
+ query: OpenApiUtil.query(query),
4268
+ });
4269
+ let params = new $OpenApi.Params({
4270
+ action: "SendTokenCode",
4271
+ version: "2020-10-02",
4272
+ protocol: "HTTPS",
4273
+ pathname: "/",
4274
+ method: "POST",
4275
+ authType: "Anonymous",
4276
+ style: "RPC",
4277
+ reqBodyType: "formData",
4278
+ bodyType: "json",
4279
+ });
4280
+ return $tea.cast<SendTokenCodeResponse>(await this.callApi(params, req, runtime), new SendTokenCodeResponse({}));
4281
+ }
4282
+
4283
+ async sendTokenCode(request: SendTokenCodeRequest): Promise<SendTokenCodeResponse> {
4284
+ let runtime = new $Util.RuntimeOptions({ });
4285
+ return await this.sendTokenCodeWithOptions(request, runtime);
4286
+ }
4287
+
4288
+ async setFingerPrintTemplateWithOptions(request: SetFingerPrintTemplateRequest, runtime: $Util.RuntimeOptions): Promise<SetFingerPrintTemplateResponse> {
4289
+ Util.validateModel(request);
4290
+ let query = { };
4291
+ if (!Util.isUnset(request.clientId)) {
4292
+ query["ClientId"] = request.clientId;
4293
+ }
4294
+
4295
+ if (!Util.isUnset(request.clientToken)) {
4296
+ query["ClientToken"] = request.clientToken;
4297
+ }
4298
+
4299
+ if (!Util.isUnset(request.description)) {
4300
+ query["Description"] = request.description;
4301
+ }
4302
+
4303
+ if (!Util.isUnset(request.encryptedFingerPrintTemplate)) {
4304
+ query["EncryptedFingerPrintTemplate"] = request.encryptedFingerPrintTemplate;
4305
+ }
4306
+
4307
+ if (!Util.isUnset(request.encryptedKey)) {
4308
+ query["EncryptedKey"] = request.encryptedKey;
4309
+ }
4310
+
4311
+ if (!Util.isUnset(request.fingerPrintTemplate)) {
4312
+ query["FingerPrintTemplate"] = request.fingerPrintTemplate;
4313
+ }
4314
+
4315
+ if (!Util.isUnset(request.loginToken)) {
4316
+ query["LoginToken"] = request.loginToken;
4317
+ }
4318
+
4319
+ if (!Util.isUnset(request.password)) {
4320
+ query["Password"] = request.password;
4321
+ }
4322
+
4323
+ if (!Util.isUnset(request.regionId)) {
4324
+ query["RegionId"] = request.regionId;
4325
+ }
4326
+
4327
+ if (!Util.isUnset(request.sessionId)) {
4328
+ query["SessionId"] = request.sessionId;
4329
+ }
4330
+
4331
+ let req = new $OpenApi.OpenApiRequest({
4332
+ query: OpenApiUtil.query(query),
4333
+ });
4334
+ let params = new $OpenApi.Params({
4335
+ action: "SetFingerPrintTemplate",
4336
+ version: "2020-10-02",
4337
+ protocol: "HTTPS",
4338
+ pathname: "/",
4339
+ method: "POST",
4340
+ authType: "Anonymous",
4341
+ style: "RPC",
4342
+ reqBodyType: "formData",
4343
+ bodyType: "json",
4344
+ });
4345
+ return $tea.cast<SetFingerPrintTemplateResponse>(await this.callApi(params, req, runtime), new SetFingerPrintTemplateResponse({}));
4346
+ }
4347
+
4348
+ async setFingerPrintTemplate(request: SetFingerPrintTemplateRequest): Promise<SetFingerPrintTemplateResponse> {
4349
+ let runtime = new $Util.RuntimeOptions({ });
4350
+ return await this.setFingerPrintTemplateWithOptions(request, runtime);
4351
+ }
4352
+
4353
+ async setFingerPrintTemplateDescriptionWithOptions(request: SetFingerPrintTemplateDescriptionRequest, runtime: $Util.RuntimeOptions): Promise<SetFingerPrintTemplateDescriptionResponse> {
4354
+ Util.validateModel(request);
4355
+ let query = { };
4356
+ if (!Util.isUnset(request.clientId)) {
4357
+ query["ClientId"] = request.clientId;
4358
+ }
4359
+
4360
+ if (!Util.isUnset(request.clientToken)) {
4361
+ query["ClientToken"] = request.clientToken;
4362
+ }
4363
+
4364
+ if (!Util.isUnset(request.description)) {
4365
+ query["Description"] = request.description;
4366
+ }
4367
+
4368
+ if (!Util.isUnset(request.index)) {
4369
+ query["Index"] = request.index;
4370
+ }
4371
+
4372
+ if (!Util.isUnset(request.loginToken)) {
4373
+ query["LoginToken"] = request.loginToken;
4374
+ }
4375
+
4376
+ if (!Util.isUnset(request.regionId)) {
4377
+ query["RegionId"] = request.regionId;
4378
+ }
4379
+
4380
+ if (!Util.isUnset(request.sessionId)) {
4381
+ query["SessionId"] = request.sessionId;
4382
+ }
4383
+
4384
+ let req = new $OpenApi.OpenApiRequest({
4385
+ query: OpenApiUtil.query(query),
4386
+ });
4387
+ let params = new $OpenApi.Params({
4388
+ action: "SetFingerPrintTemplateDescription",
4389
+ version: "2020-10-02",
4390
+ protocol: "HTTPS",
4391
+ pathname: "/",
4392
+ method: "POST",
4393
+ authType: "Anonymous",
4394
+ style: "RPC",
4395
+ reqBodyType: "formData",
4396
+ bodyType: "json",
4397
+ });
4398
+ return $tea.cast<SetFingerPrintTemplateDescriptionResponse>(await this.callApi(params, req, runtime), new SetFingerPrintTemplateDescriptionResponse({}));
4399
+ }
4400
+
4401
+ async setFingerPrintTemplateDescription(request: SetFingerPrintTemplateDescriptionRequest): Promise<SetFingerPrintTemplateDescriptionResponse> {
4402
+ let runtime = new $Util.RuntimeOptions({ });
4403
+ return await this.setFingerPrintTemplateDescriptionWithOptions(request, runtime);
4404
+ }
4405
+
4406
+ /**
4407
+ * The ID of the client.
4408
+ *
4409
+ * @param request StartDesktopsRequest
4410
+ * @param runtime runtime options for this request RuntimeOptions
4411
+ * @return StartDesktopsResponse
4412
+ */
4413
+ async startDesktopsWithOptions(request: StartDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<StartDesktopsResponse> {
4414
+ Util.validateModel(request);
4415
+ let query = { };
4416
+ if (!Util.isUnset(request.clientId)) {
4417
+ query["ClientId"] = request.clientId;
4418
+ }
4419
+
4420
+ if (!Util.isUnset(request.clientOS)) {
4421
+ query["ClientOS"] = request.clientOS;
4422
+ }
4423
+
4424
+ if (!Util.isUnset(request.clientToken)) {
4425
+ query["ClientToken"] = request.clientToken;
4426
+ }
4427
+
4428
+ if (!Util.isUnset(request.clientVersion)) {
4429
+ query["ClientVersion"] = request.clientVersion;
4430
+ }
4431
+
4432
+ if (!Util.isUnset(request.desktopId)) {
4433
+ query["DesktopId"] = request.desktopId;
4434
+ }
4435
+
4436
+ if (!Util.isUnset(request.loginToken)) {
4437
+ query["LoginToken"] = request.loginToken;
4438
+ }
4439
+
4440
+ if (!Util.isUnset(request.regionId)) {
4441
+ query["RegionId"] = request.regionId;
4442
+ }
4443
+
4444
+ if (!Util.isUnset(request.sessionId)) {
4445
+ query["SessionId"] = request.sessionId;
4446
+ }
4447
+
4448
+ let req = new $OpenApi.OpenApiRequest({
4449
+ query: OpenApiUtil.query(query),
4450
+ });
4451
+ let params = new $OpenApi.Params({
4452
+ action: "StartDesktops",
4453
+ version: "2020-10-02",
4454
+ protocol: "HTTPS",
4455
+ pathname: "/",
4456
+ method: "POST",
4457
+ authType: "Anonymous",
4458
+ style: "RPC",
4459
+ reqBodyType: "formData",
4460
+ bodyType: "json",
4461
+ });
4462
+ return $tea.cast<StartDesktopsResponse>(await this.callApi(params, req, runtime), new StartDesktopsResponse({}));
4463
+ }
4464
+
4465
+ /**
4466
+ * The ID of the client.
4467
+ *
4468
+ * @param request StartDesktopsRequest
4469
+ * @return StartDesktopsResponse
4470
+ */
4471
+ async startDesktops(request: StartDesktopsRequest): Promise<StartDesktopsResponse> {
4472
+ let runtime = new $Util.RuntimeOptions({ });
4473
+ return await this.startDesktopsWithOptions(request, runtime);
4474
+ }
4475
+
4476
+ async startRecordContentWithOptions(request: StartRecordContentRequest, runtime: $Util.RuntimeOptions): Promise<StartRecordContentResponse> {
4477
+ Util.validateModel(request);
4478
+ let query = { };
4479
+ if (!Util.isUnset(request.clientId)) {
4480
+ query["ClientId"] = request.clientId;
4481
+ }
4482
+
4483
+ if (!Util.isUnset(request.clientOS)) {
4484
+ query["ClientOS"] = request.clientOS;
4485
+ }
4486
+
4487
+ if (!Util.isUnset(request.clientVersion)) {
4488
+ query["ClientVersion"] = request.clientVersion;
4489
+ }
4490
+
4491
+ if (!Util.isUnset(request.desktopId)) {
4492
+ query["DesktopId"] = request.desktopId;
4493
+ }
4494
+
4495
+ if (!Util.isUnset(request.filePath)) {
4496
+ query["FilePath"] = request.filePath;
4497
+ }
4498
+
4499
+ if (!Util.isUnset(request.loginToken)) {
4500
+ query["LoginToken"] = request.loginToken;
4501
+ }
4502
+
4503
+ if (!Util.isUnset(request.regionId)) {
4504
+ query["RegionId"] = request.regionId;
4505
+ }
4506
+
4507
+ if (!Util.isUnset(request.sessionId)) {
4508
+ query["SessionId"] = request.sessionId;
4509
+ }
4510
+
4511
+ let req = new $OpenApi.OpenApiRequest({
4512
+ query: OpenApiUtil.query(query),
4513
+ });
4514
+ let params = new $OpenApi.Params({
4515
+ action: "StartRecordContent",
4516
+ version: "2020-10-02",
4517
+ protocol: "HTTPS",
4518
+ pathname: "/",
4519
+ method: "POST",
4520
+ authType: "Anonymous",
4521
+ style: "RPC",
4522
+ reqBodyType: "formData",
4523
+ bodyType: "json",
4524
+ });
4525
+ return $tea.cast<StartRecordContentResponse>(await this.callApi(params, req, runtime), new StartRecordContentResponse({}));
4526
+ }
4527
+
4528
+ async startRecordContent(request: StartRecordContentRequest): Promise<StartRecordContentResponse> {
4529
+ let runtime = new $Util.RuntimeOptions({ });
4530
+ return await this.startRecordContentWithOptions(request, runtime);
4531
+ }
4532
+
4533
+ /**
4534
+ * The cloud desktops that you want to stop by calling this operation must be in the Running state. If the call is successful, the cloud desktops enter the Stopped state.
4535
+ *
4536
+ * @param request StopDesktopsRequest
4537
+ * @param runtime runtime options for this request RuntimeOptions
4538
+ * @return StopDesktopsResponse
4539
+ */
4540
+ async stopDesktopsWithOptions(request: StopDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<StopDesktopsResponse> {
4541
+ Util.validateModel(request);
4542
+ let query = { };
4543
+ if (!Util.isUnset(request.clientId)) {
4544
+ query["ClientId"] = request.clientId;
4545
+ }
4546
+
4547
+ if (!Util.isUnset(request.clientOS)) {
4548
+ query["ClientOS"] = request.clientOS;
4549
+ }
4550
+
4551
+ if (!Util.isUnset(request.clientToken)) {
4552
+ query["ClientToken"] = request.clientToken;
4553
+ }
4554
+
4555
+ if (!Util.isUnset(request.clientVersion)) {
4556
+ query["ClientVersion"] = request.clientVersion;
4557
+ }
4558
+
4559
+ if (!Util.isUnset(request.desktopId)) {
4560
+ query["DesktopId"] = request.desktopId;
4561
+ }
4562
+
4563
+ if (!Util.isUnset(request.loginToken)) {
4564
+ query["LoginToken"] = request.loginToken;
4565
+ }
4566
+
4567
+ if (!Util.isUnset(request.regionId)) {
4568
+ query["RegionId"] = request.regionId;
4569
+ }
4570
+
4571
+ if (!Util.isUnset(request.sessionId)) {
4572
+ query["SessionId"] = request.sessionId;
4573
+ }
4574
+
4575
+ if (!Util.isUnset(request.sessionToken)) {
4576
+ query["SessionToken"] = request.sessionToken;
4577
+ }
4578
+
4579
+ let req = new $OpenApi.OpenApiRequest({
4580
+ query: OpenApiUtil.query(query),
4581
+ });
4582
+ let params = new $OpenApi.Params({
4583
+ action: "StopDesktops",
4584
+ version: "2020-10-02",
4585
+ protocol: "HTTPS",
4586
+ pathname: "/",
4587
+ method: "POST",
4588
+ authType: "Anonymous",
4589
+ style: "RPC",
4590
+ reqBodyType: "formData",
4591
+ bodyType: "json",
4592
+ });
4593
+ return $tea.cast<StopDesktopsResponse>(await this.callApi(params, req, runtime), new StopDesktopsResponse({}));
4594
+ }
4595
+
4596
+ /**
4597
+ * The cloud desktops that you want to stop by calling this operation must be in the Running state. If the call is successful, the cloud desktops enter the Stopped state.
4598
+ *
4599
+ * @param request StopDesktopsRequest
4600
+ * @return StopDesktopsResponse
4601
+ */
4602
+ async stopDesktops(request: StopDesktopsRequest): Promise<StopDesktopsResponse> {
4603
+ let runtime = new $Util.RuntimeOptions({ });
4604
+ return await this.stopDesktopsWithOptions(request, runtime);
4605
+ }
4606
+
4607
+ async stopRecordContentWithOptions(request: StopRecordContentRequest, runtime: $Util.RuntimeOptions): Promise<StopRecordContentResponse> {
4608
+ Util.validateModel(request);
4609
+ let query = { };
4610
+ if (!Util.isUnset(request.clientId)) {
4611
+ query["ClientId"] = request.clientId;
4612
+ }
4613
+
4614
+ if (!Util.isUnset(request.clientOS)) {
4615
+ query["ClientOS"] = request.clientOS;
4616
+ }
4617
+
4618
+ if (!Util.isUnset(request.clientVersion)) {
4619
+ query["ClientVersion"] = request.clientVersion;
4620
+ }
4621
+
4622
+ if (!Util.isUnset(request.desktopId)) {
4623
+ query["DesktopId"] = request.desktopId;
4624
+ }
4625
+
4626
+ if (!Util.isUnset(request.loginToken)) {
4627
+ query["LoginToken"] = request.loginToken;
4628
+ }
4629
+
4630
+ if (!Util.isUnset(request.regionId)) {
4631
+ query["RegionId"] = request.regionId;
4632
+ }
4633
+
4634
+ if (!Util.isUnset(request.sessionId)) {
4635
+ query["SessionId"] = request.sessionId;
4636
+ }
4637
+
4638
+ let req = new $OpenApi.OpenApiRequest({
4639
+ query: OpenApiUtil.query(query),
4640
+ });
4641
+ let params = new $OpenApi.Params({
4642
+ action: "StopRecordContent",
4643
+ version: "2020-10-02",
4644
+ protocol: "HTTPS",
4645
+ pathname: "/",
4646
+ method: "POST",
4647
+ authType: "Anonymous",
4648
+ style: "RPC",
4649
+ reqBodyType: "formData",
4650
+ bodyType: "json",
4651
+ });
4652
+ return $tea.cast<StopRecordContentResponse>(await this.callApi(params, req, runtime), new StopRecordContentResponse({}));
4653
+ }
4654
+
4655
+ async stopRecordContent(request: StopRecordContentRequest): Promise<StopRecordContentResponse> {
4656
+ let runtime = new $Util.RuntimeOptions({ });
4657
+ return await this.stopRecordContentWithOptions(request, runtime);
4658
+ }
4659
+
4660
+ async unbindUserDesktopWithOptions(request: UnbindUserDesktopRequest, runtime: $Util.RuntimeOptions): Promise<UnbindUserDesktopResponse> {
4661
+ Util.validateModel(request);
4662
+ let query = { };
4663
+ if (!Util.isUnset(request.clientId)) {
4664
+ query["ClientId"] = request.clientId;
4665
+ }
4666
+
4667
+ if (!Util.isUnset(request.clientType)) {
4668
+ query["ClientType"] = request.clientType;
4669
+ }
4670
+
4671
+ if (!Util.isUnset(request.force)) {
4672
+ query["Force"] = request.force;
4673
+ }
4674
+
4675
+ if (!Util.isUnset(request.loginToken)) {
4676
+ query["LoginToken"] = request.loginToken;
4677
+ }
4678
+
4679
+ if (!Util.isUnset(request.regionId)) {
4680
+ query["RegionId"] = request.regionId;
4681
+ }
4682
+
4683
+ if (!Util.isUnset(request.sessionId)) {
4684
+ query["SessionId"] = request.sessionId;
4685
+ }
4686
+
4687
+ if (!Util.isUnset(request.userDesktopId)) {
4688
+ query["UserDesktopId"] = request.userDesktopId;
4689
+ }
4690
+
4691
+ let req = new $OpenApi.OpenApiRequest({
4692
+ query: OpenApiUtil.query(query),
4693
+ });
4694
+ let params = new $OpenApi.Params({
4695
+ action: "UnbindUserDesktop",
4696
+ version: "2020-10-02",
4697
+ protocol: "HTTPS",
4698
+ pathname: "/",
4699
+ method: "POST",
4700
+ authType: "Anonymous",
4701
+ style: "RPC",
4702
+ reqBodyType: "formData",
4703
+ bodyType: "json",
4704
+ });
4705
+ return $tea.cast<UnbindUserDesktopResponse>(await this.callApi(params, req, runtime), new UnbindUserDesktopResponse({}));
4706
+ }
4707
+
4708
+ async unbindUserDesktop(request: UnbindUserDesktopRequest): Promise<UnbindUserDesktopResponse> {
4709
+ let runtime = new $Util.RuntimeOptions({ });
4710
+ return await this.unbindUserDesktopWithOptions(request, runtime);
4711
+ }
4712
+
4713
+ async verifyCredentialWithOptions(request: VerifyCredentialRequest, runtime: $Util.RuntimeOptions): Promise<VerifyCredentialResponse> {
4714
+ Util.validateModel(request);
4715
+ let query = { };
4716
+ if (!Util.isUnset(request.clientId)) {
4717
+ query["ClientId"] = request.clientId;
4718
+ }
4719
+
4720
+ if (!Util.isUnset(request.credential)) {
4721
+ query["Credential"] = request.credential;
4722
+ }
4723
+
4724
+ if (!Util.isUnset(request.credentialType)) {
4725
+ query["CredentialType"] = request.credentialType;
4726
+ }
4727
+
4728
+ if (!Util.isUnset(request.encryptedKey)) {
4729
+ query["EncryptedKey"] = request.encryptedKey;
4730
+ }
4731
+
4732
+ if (!Util.isUnset(request.loginToken)) {
4733
+ query["LoginToken"] = request.loginToken;
4734
+ }
4735
+
4736
+ if (!Util.isUnset(request.officeSiteId)) {
4737
+ query["OfficeSiteId"] = request.officeSiteId;
4738
+ }
4739
+
4740
+ if (!Util.isUnset(request.regionId)) {
4741
+ query["RegionId"] = request.regionId;
4742
+ }
4743
+
4744
+ if (!Util.isUnset(request.sessionId)) {
4745
+ query["SessionId"] = request.sessionId;
4746
+ }
4747
+
4748
+ let req = new $OpenApi.OpenApiRequest({
4749
+ query: OpenApiUtil.query(query),
4750
+ });
4751
+ let params = new $OpenApi.Params({
4752
+ action: "VerifyCredential",
4753
+ version: "2020-10-02",
4754
+ protocol: "HTTPS",
4755
+ pathname: "/",
4756
+ method: "POST",
4757
+ authType: "Anonymous",
4758
+ style: "RPC",
4759
+ reqBodyType: "formData",
4760
+ bodyType: "json",
4761
+ });
4762
+ return $tea.cast<VerifyCredentialResponse>(await this.callApi(params, req, runtime), new VerifyCredentialResponse({}));
4763
+ }
4764
+
4765
+ async verifyCredential(request: VerifyCredentialRequest): Promise<VerifyCredentialResponse> {
4766
+ let runtime = new $Util.RuntimeOptions({ });
4767
+ return await this.verifyCredentialWithOptions(request, runtime);
535
4768
  }
536
4769
 
537
4770
  }