@alicloud/ecd20201002 1.0.0 → 2.0.15

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,3817 @@ 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
 
464
-
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({}));
489
+ static types(): { [key: string]: any } {
490
+ return {
491
+ desktops: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktops },
492
+ nextToken: 'string',
493
+ requestId: 'string',
494
+ };
468
495
  }
469
496
 
470
- async refreshLoginToken(request: RefreshLoginTokenRequest): Promise<RefreshLoginTokenResponse> {
471
- let runtime = new $Util.RuntimeOptions({ });
472
- return await this.refreshLoginTokenWithOptions(request, runtime);
497
+ constructor(map?: { [key: string]: any }) {
498
+ super(map);
473
499
  }
500
+ }
474
501
 
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({}));
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
+ };
478
512
  }
479
513
 
480
- async describeDirectories(request: DescribeDirectoriesRequest): Promise<DescribeDirectoriesResponse> {
481
- let runtime = new $Util.RuntimeOptions({ });
482
- return await this.describeDirectoriesWithOptions(request, runtime);
514
+ static types(): { [key: string]: any } {
515
+ return {
516
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
517
+ statusCode: 'number',
518
+ body: DescribeGlobalDesktopsResponseBody,
519
+ };
483
520
  }
484
521
 
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({}));
522
+ constructor(map?: { [key: string]: any }) {
523
+ super(map);
488
524
  }
525
+ }
489
526
 
490
- async describeDesktops(request: DescribeDesktopsRequest): Promise<DescribeDesktopsResponse> {
491
- let runtime = new $Util.RuntimeOptions({ });
492
- return await this.describeDesktopsWithOptions(request, runtime);
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
+ };
493
537
  }
494
538
 
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({}));
539
+ static types(): { [key: string]: any } {
540
+ return {
541
+ clientId: 'string',
542
+ officeSiteId: { 'type': 'array', 'itemType': 'string' },
543
+ regionId: 'string',
544
+ };
498
545
  }
499
546
 
500
- async rebootDesktops(request: RebootDesktopsRequest): Promise<RebootDesktopsResponse> {
501
- let runtime = new $Util.RuntimeOptions({ });
502
- return await this.rebootDesktopsWithOptions(request, runtime);
547
+ constructor(map?: { [key: string]: any }) {
548
+ super(map);
503
549
  }
550
+ }
504
551
 
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({}));
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
+ };
508
560
  }
509
561
 
510
- async getConnectionTicket(request: GetConnectionTicketRequest): Promise<GetConnectionTicketResponse> {
511
- let runtime = new $Util.RuntimeOptions({ });
512
- return await this.getConnectionTicketWithOptions(request, runtime);
562
+ static types(): { [key: string]: any } {
563
+ return {
564
+ officeSites: { 'type': 'array', 'itemType': DescribeOfficeSitesResponseBodyOfficeSites },
565
+ requestId: 'string',
566
+ };
513
567
  }
514
568
 
515
- async getLoginTokenWithOptions(request: GetLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetLoginTokenResponse> {
516
- 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({}));
569
+ constructor(map?: { [key: string]: any }) {
570
+ super(map);
518
571
  }
572
+ }
519
573
 
520
- async getLoginToken(request: GetLoginTokenRequest): Promise<GetLoginTokenResponse> {
521
- let runtime = new $Util.RuntimeOptions({ });
522
- return await this.getLoginTokenWithOptions(request, runtime);
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
+ };
523
584
  }
524
585
 
525
- getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
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 GetLoginTokenRequest extends $tea.Model {
921
+ authenticationCode?: string;
922
+ clientId?: string;
923
+ clientOS?: string;
924
+ clientType?: string;
925
+ clientVersion?: string;
926
+ currentStage?: string;
927
+ directoryId?: string;
928
+ endUserId?: string;
929
+ keepAlive?: boolean;
930
+ keepAliveToken?: string;
931
+ newPassword?: string;
932
+ officeSiteId?: string;
933
+ oldPassword?: string;
934
+ password?: string;
935
+ regionId?: string;
936
+ sessionId?: string;
937
+ tokenCode?: string;
938
+ uuid?: string;
939
+ static names(): { [key: string]: string } {
940
+ return {
941
+ authenticationCode: 'AuthenticationCode',
942
+ clientId: 'ClientId',
943
+ clientOS: 'ClientOS',
944
+ clientType: 'ClientType',
945
+ clientVersion: 'ClientVersion',
946
+ currentStage: 'CurrentStage',
947
+ directoryId: 'DirectoryId',
948
+ endUserId: 'EndUserId',
949
+ keepAlive: 'KeepAlive',
950
+ keepAliveToken: 'KeepAliveToken',
951
+ newPassword: 'NewPassword',
952
+ officeSiteId: 'OfficeSiteId',
953
+ oldPassword: 'OldPassword',
954
+ password: 'Password',
955
+ regionId: 'RegionId',
956
+ sessionId: 'SessionId',
957
+ tokenCode: 'TokenCode',
958
+ uuid: 'Uuid',
959
+ };
960
+ }
961
+
962
+ static types(): { [key: string]: any } {
963
+ return {
964
+ authenticationCode: 'string',
965
+ clientId: 'string',
966
+ clientOS: 'string',
967
+ clientType: 'string',
968
+ clientVersion: 'string',
969
+ currentStage: 'string',
970
+ directoryId: 'string',
971
+ endUserId: 'string',
972
+ keepAlive: 'boolean',
973
+ keepAliveToken: 'string',
974
+ newPassword: 'string',
975
+ officeSiteId: 'string',
976
+ oldPassword: 'string',
977
+ password: 'string',
978
+ regionId: 'string',
979
+ sessionId: 'string',
980
+ tokenCode: 'string',
981
+ uuid: 'string',
982
+ };
983
+ }
984
+
985
+ constructor(map?: { [key: string]: any }) {
986
+ super(map);
987
+ }
988
+ }
989
+
990
+ export class GetLoginTokenResponseBody extends $tea.Model {
991
+ email?: string;
992
+ endUserId?: string;
993
+ industry?: string;
994
+ keepAliveToken?: string;
995
+ label?: string;
996
+ loginToken?: string;
997
+ nextStage?: string;
998
+ phone?: string;
999
+ props?: { [key: string]: string };
1000
+ qrCodePng?: string;
1001
+ requestId?: string;
1002
+ secret?: string;
1003
+ sessionId?: string;
1004
+ tenantId?: number;
1005
+ windowDisplayMode?: string;
1006
+ static names(): { [key: string]: string } {
1007
+ return {
1008
+ email: 'Email',
1009
+ endUserId: 'EndUserId',
1010
+ industry: 'Industry',
1011
+ keepAliveToken: 'KeepAliveToken',
1012
+ label: 'Label',
1013
+ loginToken: 'LoginToken',
1014
+ nextStage: 'NextStage',
1015
+ phone: 'Phone',
1016
+ props: 'Props',
1017
+ qrCodePng: 'QrCodePng',
1018
+ requestId: 'RequestId',
1019
+ secret: 'Secret',
1020
+ sessionId: 'SessionId',
1021
+ tenantId: 'TenantId',
1022
+ windowDisplayMode: 'WindowDisplayMode',
1023
+ };
1024
+ }
1025
+
1026
+ static types(): { [key: string]: any } {
1027
+ return {
1028
+ email: 'string',
1029
+ endUserId: 'string',
1030
+ industry: 'string',
1031
+ keepAliveToken: 'string',
1032
+ label: 'string',
1033
+ loginToken: 'string',
1034
+ nextStage: 'string',
1035
+ phone: 'string',
1036
+ props: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1037
+ qrCodePng: 'string',
1038
+ requestId: 'string',
1039
+ secret: 'string',
1040
+ sessionId: 'string',
1041
+ tenantId: 'number',
1042
+ windowDisplayMode: 'string',
1043
+ };
1044
+ }
1045
+
1046
+ constructor(map?: { [key: string]: any }) {
1047
+ super(map);
1048
+ }
1049
+ }
1050
+
1051
+ export class GetLoginTokenResponse extends $tea.Model {
1052
+ headers: { [key: string]: string };
1053
+ statusCode: number;
1054
+ body: GetLoginTokenResponseBody;
1055
+ static names(): { [key: string]: string } {
1056
+ return {
1057
+ headers: 'headers',
1058
+ statusCode: 'statusCode',
1059
+ body: 'body',
1060
+ };
1061
+ }
1062
+
1063
+ static types(): { [key: string]: any } {
1064
+ return {
1065
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1066
+ statusCode: 'number',
1067
+ body: GetLoginTokenResponseBody,
1068
+ };
1069
+ }
1070
+
1071
+ constructor(map?: { [key: string]: any }) {
1072
+ super(map);
1073
+ }
1074
+ }
1075
+
1076
+ export class IsKeepAliveRequest extends $tea.Model {
1077
+ clientId?: string;
1078
+ officeSiteId?: string;
1079
+ regionId?: string;
1080
+ static names(): { [key: string]: string } {
1081
+ return {
1082
+ clientId: 'ClientId',
1083
+ officeSiteId: 'OfficeSiteId',
1084
+ regionId: 'RegionId',
1085
+ };
1086
+ }
1087
+
1088
+ static types(): { [key: string]: any } {
1089
+ return {
1090
+ clientId: 'string',
1091
+ officeSiteId: 'string',
1092
+ regionId: 'string',
1093
+ };
1094
+ }
1095
+
1096
+ constructor(map?: { [key: string]: any }) {
1097
+ super(map);
1098
+ }
1099
+ }
1100
+
1101
+ export class IsKeepAliveResponseBody extends $tea.Model {
1102
+ isKeepAlive?: boolean;
1103
+ officeSiteId?: string;
1104
+ requestId?: string;
1105
+ tenantId?: string;
1106
+ static names(): { [key: string]: string } {
1107
+ return {
1108
+ isKeepAlive: 'IsKeepAlive',
1109
+ officeSiteId: 'OfficeSiteId',
1110
+ requestId: 'RequestId',
1111
+ tenantId: 'TenantId',
1112
+ };
1113
+ }
1114
+
1115
+ static types(): { [key: string]: any } {
1116
+ return {
1117
+ isKeepAlive: 'boolean',
1118
+ officeSiteId: 'string',
1119
+ requestId: 'string',
1120
+ tenantId: 'string',
1121
+ };
1122
+ }
1123
+
1124
+ constructor(map?: { [key: string]: any }) {
1125
+ super(map);
1126
+ }
1127
+ }
1128
+
1129
+ export class IsKeepAliveResponse extends $tea.Model {
1130
+ headers: { [key: string]: string };
1131
+ statusCode: number;
1132
+ body: IsKeepAliveResponseBody;
1133
+ static names(): { [key: string]: string } {
1134
+ return {
1135
+ headers: 'headers',
1136
+ statusCode: 'statusCode',
1137
+ body: 'body',
1138
+ };
1139
+ }
1140
+
1141
+ static types(): { [key: string]: any } {
1142
+ return {
1143
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1144
+ statusCode: 'number',
1145
+ body: IsKeepAliveResponseBody,
1146
+ };
1147
+ }
1148
+
1149
+ constructor(map?: { [key: string]: any }) {
1150
+ super(map);
1151
+ }
1152
+ }
1153
+
1154
+ export class RebootDesktopsRequest extends $tea.Model {
1155
+ clientId?: string;
1156
+ clientOS?: string;
1157
+ clientToken?: string;
1158
+ clientVersion?: string;
1159
+ desktopId?: string[];
1160
+ loginToken?: string;
1161
+ regionId?: string;
1162
+ sessionId?: string;
1163
+ static names(): { [key: string]: string } {
1164
+ return {
1165
+ clientId: 'ClientId',
1166
+ clientOS: 'ClientOS',
1167
+ clientToken: 'ClientToken',
1168
+ clientVersion: 'ClientVersion',
1169
+ desktopId: 'DesktopId',
1170
+ loginToken: 'LoginToken',
1171
+ regionId: 'RegionId',
1172
+ sessionId: 'SessionId',
1173
+ };
1174
+ }
1175
+
1176
+ static types(): { [key: string]: any } {
1177
+ return {
1178
+ clientId: 'string',
1179
+ clientOS: 'string',
1180
+ clientToken: 'string',
1181
+ clientVersion: 'string',
1182
+ desktopId: { 'type': 'array', 'itemType': 'string' },
1183
+ loginToken: 'string',
1184
+ regionId: 'string',
1185
+ sessionId: 'string',
1186
+ };
1187
+ }
1188
+
1189
+ constructor(map?: { [key: string]: any }) {
1190
+ super(map);
1191
+ }
1192
+ }
1193
+
1194
+ export class RebootDesktopsResponseBody extends $tea.Model {
1195
+ requestId?: string;
1196
+ static names(): { [key: string]: string } {
1197
+ return {
1198
+ requestId: 'RequestId',
1199
+ };
1200
+ }
1201
+
1202
+ static types(): { [key: string]: any } {
1203
+ return {
1204
+ requestId: 'string',
1205
+ };
1206
+ }
1207
+
1208
+ constructor(map?: { [key: string]: any }) {
1209
+ super(map);
1210
+ }
1211
+ }
1212
+
1213
+ export class RebootDesktopsResponse extends $tea.Model {
1214
+ headers: { [key: string]: string };
1215
+ statusCode: number;
1216
+ body: RebootDesktopsResponseBody;
1217
+ static names(): { [key: string]: string } {
1218
+ return {
1219
+ headers: 'headers',
1220
+ statusCode: 'statusCode',
1221
+ body: 'body',
1222
+ };
1223
+ }
1224
+
1225
+ static types(): { [key: string]: any } {
1226
+ return {
1227
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1228
+ statusCode: 'number',
1229
+ body: RebootDesktopsResponseBody,
1230
+ };
1231
+ }
1232
+
1233
+ constructor(map?: { [key: string]: any }) {
1234
+ super(map);
1235
+ }
1236
+ }
1237
+
1238
+ export class RefreshLoginTokenRequest extends $tea.Model {
1239
+ clientId?: string;
1240
+ directoryId?: string;
1241
+ endUserId?: string;
1242
+ loginToken?: string;
1243
+ officeSiteId?: string;
1244
+ regionId?: string;
1245
+ sessionId?: string;
1246
+ static names(): { [key: string]: string } {
1247
+ return {
1248
+ clientId: 'ClientId',
1249
+ directoryId: 'DirectoryId',
1250
+ endUserId: 'EndUserId',
1251
+ loginToken: 'LoginToken',
1252
+ officeSiteId: 'OfficeSiteId',
1253
+ regionId: 'RegionId',
1254
+ sessionId: 'SessionId',
1255
+ };
1256
+ }
1257
+
1258
+ static types(): { [key: string]: any } {
1259
+ return {
1260
+ clientId: 'string',
1261
+ directoryId: 'string',
1262
+ endUserId: 'string',
1263
+ loginToken: 'string',
1264
+ officeSiteId: 'string',
1265
+ regionId: 'string',
1266
+ sessionId: 'string',
1267
+ };
1268
+ }
1269
+
1270
+ constructor(map?: { [key: string]: any }) {
1271
+ super(map);
1272
+ }
1273
+ }
1274
+
1275
+ export class RefreshLoginTokenResponseBody extends $tea.Model {
1276
+ loginToken?: string;
1277
+ requestId?: string;
1278
+ static names(): { [key: string]: string } {
1279
+ return {
1280
+ loginToken: 'LoginToken',
1281
+ requestId: 'RequestId',
1282
+ };
1283
+ }
1284
+
1285
+ static types(): { [key: string]: any } {
1286
+ return {
1287
+ loginToken: 'string',
1288
+ requestId: 'string',
1289
+ };
1290
+ }
1291
+
1292
+ constructor(map?: { [key: string]: any }) {
1293
+ super(map);
1294
+ }
1295
+ }
1296
+
1297
+ export class RefreshLoginTokenResponse extends $tea.Model {
1298
+ headers: { [key: string]: string };
1299
+ statusCode: number;
1300
+ body: RefreshLoginTokenResponseBody;
1301
+ static names(): { [key: string]: string } {
1302
+ return {
1303
+ headers: 'headers',
1304
+ statusCode: 'statusCode',
1305
+ body: 'body',
1306
+ };
1307
+ }
1308
+
1309
+ static types(): { [key: string]: any } {
1310
+ return {
1311
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1312
+ statusCode: 'number',
1313
+ body: RefreshLoginTokenResponseBody,
1314
+ };
1315
+ }
1316
+
1317
+ constructor(map?: { [key: string]: any }) {
1318
+ super(map);
1319
+ }
1320
+ }
1321
+
1322
+ export class ReportSessionStatusRequest extends $tea.Model {
1323
+ endUserId?: string;
1324
+ instanceId?: string;
1325
+ regionId?: string;
1326
+ sessionChangeTime?: number;
1327
+ sessionId?: string;
1328
+ sessionStatus?: string;
1329
+ static names(): { [key: string]: string } {
1330
+ return {
1331
+ endUserId: 'EndUserId',
1332
+ instanceId: 'InstanceId',
1333
+ regionId: 'RegionId',
1334
+ sessionChangeTime: 'SessionChangeTime',
1335
+ sessionId: 'SessionId',
1336
+ sessionStatus: 'SessionStatus',
1337
+ };
1338
+ }
1339
+
1340
+ static types(): { [key: string]: any } {
1341
+ return {
1342
+ endUserId: 'string',
1343
+ instanceId: 'string',
1344
+ regionId: 'string',
1345
+ sessionChangeTime: 'number',
1346
+ sessionId: 'string',
1347
+ sessionStatus: 'string',
1348
+ };
1349
+ }
1350
+
1351
+ constructor(map?: { [key: string]: any }) {
1352
+ super(map);
1353
+ }
1354
+ }
1355
+
1356
+ export class ReportSessionStatusResponseBody extends $tea.Model {
1357
+ requestId?: string;
1358
+ static names(): { [key: string]: string } {
1359
+ return {
1360
+ requestId: 'RequestId',
1361
+ };
1362
+ }
1363
+
1364
+ static types(): { [key: string]: any } {
1365
+ return {
1366
+ requestId: 'string',
1367
+ };
1368
+ }
1369
+
1370
+ constructor(map?: { [key: string]: any }) {
1371
+ super(map);
1372
+ }
1373
+ }
1374
+
1375
+ export class ReportSessionStatusResponse extends $tea.Model {
1376
+ headers: { [key: string]: string };
1377
+ statusCode: number;
1378
+ body: ReportSessionStatusResponseBody;
1379
+ static names(): { [key: string]: string } {
1380
+ return {
1381
+ headers: 'headers',
1382
+ statusCode: 'statusCode',
1383
+ body: 'body',
1384
+ };
1385
+ }
1386
+
1387
+ static types(): { [key: string]: any } {
1388
+ return {
1389
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1390
+ statusCode: 'number',
1391
+ body: ReportSessionStatusResponseBody,
1392
+ };
1393
+ }
1394
+
1395
+ constructor(map?: { [key: string]: any }) {
1396
+ super(map);
1397
+ }
1398
+ }
1399
+
1400
+ export class ResetPasswordRequest extends $tea.Model {
1401
+ clientId?: string;
1402
+ clientToken?: string;
1403
+ email?: string;
1404
+ endUserId?: string;
1405
+ officeSiteId?: string;
1406
+ regionId?: string;
1407
+ phone?: string;
1408
+ static names(): { [key: string]: string } {
1409
+ return {
1410
+ clientId: 'ClientId',
1411
+ clientToken: 'ClientToken',
1412
+ email: 'Email',
1413
+ endUserId: 'EndUserId',
1414
+ officeSiteId: 'OfficeSiteId',
1415
+ regionId: 'RegionId',
1416
+ phone: 'phone',
1417
+ };
1418
+ }
1419
+
1420
+ static types(): { [key: string]: any } {
1421
+ return {
1422
+ clientId: 'string',
1423
+ clientToken: 'string',
1424
+ email: 'string',
1425
+ endUserId: 'string',
1426
+ officeSiteId: 'string',
1427
+ regionId: 'string',
1428
+ phone: 'string',
1429
+ };
1430
+ }
1431
+
1432
+ constructor(map?: { [key: string]: any }) {
1433
+ super(map);
1434
+ }
1435
+ }
1436
+
1437
+ export class ResetPasswordResponseBody extends $tea.Model {
1438
+ requestId?: string;
1439
+ static names(): { [key: string]: string } {
1440
+ return {
1441
+ requestId: 'RequestId',
1442
+ };
1443
+ }
1444
+
1445
+ static types(): { [key: string]: any } {
1446
+ return {
1447
+ requestId: 'string',
1448
+ };
1449
+ }
1450
+
1451
+ constructor(map?: { [key: string]: any }) {
1452
+ super(map);
1453
+ }
1454
+ }
1455
+
1456
+ export class ResetPasswordResponse extends $tea.Model {
1457
+ headers: { [key: string]: string };
1458
+ statusCode: number;
1459
+ body: ResetPasswordResponseBody;
1460
+ static names(): { [key: string]: string } {
1461
+ return {
1462
+ headers: 'headers',
1463
+ statusCode: 'statusCode',
1464
+ body: 'body',
1465
+ };
1466
+ }
1467
+
1468
+ static types(): { [key: string]: any } {
1469
+ return {
1470
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1471
+ statusCode: 'number',
1472
+ body: ResetPasswordResponseBody,
1473
+ };
1474
+ }
1475
+
1476
+ constructor(map?: { [key: string]: any }) {
1477
+ super(map);
1478
+ }
1479
+ }
1480
+
1481
+ export class ResetSnapshotRequest extends $tea.Model {
1482
+ clientId?: string;
1483
+ loginToken?: string;
1484
+ regionId?: string;
1485
+ sessionId?: string;
1486
+ snapshotId?: string;
1487
+ static names(): { [key: string]: string } {
1488
+ return {
1489
+ clientId: 'ClientId',
1490
+ loginToken: 'LoginToken',
1491
+ regionId: 'RegionId',
1492
+ sessionId: 'SessionId',
1493
+ snapshotId: 'SnapshotId',
1494
+ };
1495
+ }
1496
+
1497
+ static types(): { [key: string]: any } {
1498
+ return {
1499
+ clientId: 'string',
1500
+ loginToken: 'string',
1501
+ regionId: 'string',
1502
+ sessionId: 'string',
1503
+ snapshotId: 'string',
1504
+ };
1505
+ }
1506
+
1507
+ constructor(map?: { [key: string]: any }) {
1508
+ super(map);
1509
+ }
1510
+ }
1511
+
1512
+ export class ResetSnapshotResponseBody extends $tea.Model {
1513
+ requestId?: string;
1514
+ static names(): { [key: string]: string } {
1515
+ return {
1516
+ requestId: 'RequestId',
1517
+ };
1518
+ }
1519
+
1520
+ static types(): { [key: string]: any } {
1521
+ return {
1522
+ requestId: 'string',
1523
+ };
1524
+ }
1525
+
1526
+ constructor(map?: { [key: string]: any }) {
1527
+ super(map);
1528
+ }
1529
+ }
1530
+
1531
+ export class ResetSnapshotResponse extends $tea.Model {
1532
+ headers: { [key: string]: string };
1533
+ statusCode: number;
1534
+ body: ResetSnapshotResponseBody;
1535
+ static names(): { [key: string]: string } {
1536
+ return {
1537
+ headers: 'headers',
1538
+ statusCode: 'statusCode',
1539
+ body: 'body',
1540
+ };
1541
+ }
1542
+
1543
+ static types(): { [key: string]: any } {
1544
+ return {
1545
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1546
+ statusCode: 'number',
1547
+ body: ResetSnapshotResponseBody,
1548
+ };
1549
+ }
1550
+
1551
+ constructor(map?: { [key: string]: any }) {
1552
+ super(map);
1553
+ }
1554
+ }
1555
+
1556
+ export class SendTokenCodeRequest extends $tea.Model {
1557
+ clientId?: string;
1558
+ clientOS?: string;
1559
+ clientVersion?: string;
1560
+ endUserId?: string;
1561
+ loginToken?: string;
1562
+ officeSiteId?: string;
1563
+ sessionId?: string;
1564
+ tokenCode?: string;
1565
+ static names(): { [key: string]: string } {
1566
+ return {
1567
+ clientId: 'ClientId',
1568
+ clientOS: 'ClientOS',
1569
+ clientVersion: 'ClientVersion',
1570
+ endUserId: 'EndUserId',
1571
+ loginToken: 'LoginToken',
1572
+ officeSiteId: 'OfficeSiteId',
1573
+ sessionId: 'SessionId',
1574
+ tokenCode: 'TokenCode',
1575
+ };
1576
+ }
1577
+
1578
+ static types(): { [key: string]: any } {
1579
+ return {
1580
+ clientId: 'string',
1581
+ clientOS: 'string',
1582
+ clientVersion: 'string',
1583
+ endUserId: 'string',
1584
+ loginToken: 'string',
1585
+ officeSiteId: 'string',
1586
+ sessionId: 'string',
1587
+ tokenCode: 'string',
1588
+ };
1589
+ }
1590
+
1591
+ constructor(map?: { [key: string]: any }) {
1592
+ super(map);
1593
+ }
1594
+ }
1595
+
1596
+ export class SendTokenCodeResponseBody extends $tea.Model {
1597
+ requestId?: string;
1598
+ static names(): { [key: string]: string } {
1599
+ return {
1600
+ requestId: 'RequestId',
1601
+ };
1602
+ }
1603
+
1604
+ static types(): { [key: string]: any } {
1605
+ return {
1606
+ requestId: 'string',
1607
+ };
1608
+ }
1609
+
1610
+ constructor(map?: { [key: string]: any }) {
1611
+ super(map);
1612
+ }
1613
+ }
1614
+
1615
+ export class SendTokenCodeResponse extends $tea.Model {
1616
+ headers: { [key: string]: string };
1617
+ statusCode: number;
1618
+ body: SendTokenCodeResponseBody;
1619
+ static names(): { [key: string]: string } {
1620
+ return {
1621
+ headers: 'headers',
1622
+ statusCode: 'statusCode',
1623
+ body: 'body',
1624
+ };
1625
+ }
1626
+
1627
+ static types(): { [key: string]: any } {
1628
+ return {
1629
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1630
+ statusCode: 'number',
1631
+ body: SendTokenCodeResponseBody,
1632
+ };
1633
+ }
1634
+
1635
+ constructor(map?: { [key: string]: any }) {
1636
+ super(map);
1637
+ }
1638
+ }
1639
+
1640
+ export class SetFingerPrintTemplateRequest extends $tea.Model {
1641
+ clientId?: string;
1642
+ clientToken?: string;
1643
+ description?: string;
1644
+ encryptedFingerPrintTemplate?: string;
1645
+ encryptedKey?: string;
1646
+ fingerPrintTemplate?: string;
1647
+ loginToken?: string;
1648
+ password?: string;
1649
+ regionId?: string;
1650
+ sessionId?: string;
1651
+ static names(): { [key: string]: string } {
1652
+ return {
1653
+ clientId: 'ClientId',
1654
+ clientToken: 'ClientToken',
1655
+ description: 'Description',
1656
+ encryptedFingerPrintTemplate: 'EncryptedFingerPrintTemplate',
1657
+ encryptedKey: 'EncryptedKey',
1658
+ fingerPrintTemplate: 'FingerPrintTemplate',
1659
+ loginToken: 'LoginToken',
1660
+ password: 'Password',
1661
+ regionId: 'RegionId',
1662
+ sessionId: 'SessionId',
1663
+ };
1664
+ }
1665
+
1666
+ static types(): { [key: string]: any } {
1667
+ return {
1668
+ clientId: 'string',
1669
+ clientToken: 'string',
1670
+ description: 'string',
1671
+ encryptedFingerPrintTemplate: 'string',
1672
+ encryptedKey: 'string',
1673
+ fingerPrintTemplate: 'string',
1674
+ loginToken: 'string',
1675
+ password: 'string',
1676
+ regionId: 'string',
1677
+ sessionId: 'string',
1678
+ };
1679
+ }
1680
+
1681
+ constructor(map?: { [key: string]: any }) {
1682
+ super(map);
1683
+ }
1684
+ }
1685
+
1686
+ export class SetFingerPrintTemplateResponseBody extends $tea.Model {
1687
+ encryptedPassword?: string;
1688
+ index?: number;
1689
+ requestId?: string;
1690
+ static names(): { [key: string]: string } {
1691
+ return {
1692
+ encryptedPassword: 'EncryptedPassword',
1693
+ index: 'Index',
1694
+ requestId: 'RequestId',
1695
+ };
1696
+ }
1697
+
1698
+ static types(): { [key: string]: any } {
1699
+ return {
1700
+ encryptedPassword: 'string',
1701
+ index: 'number',
1702
+ requestId: 'string',
1703
+ };
1704
+ }
1705
+
1706
+ constructor(map?: { [key: string]: any }) {
1707
+ super(map);
1708
+ }
1709
+ }
1710
+
1711
+ export class SetFingerPrintTemplateResponse extends $tea.Model {
1712
+ headers: { [key: string]: string };
1713
+ statusCode: number;
1714
+ body: SetFingerPrintTemplateResponseBody;
1715
+ static names(): { [key: string]: string } {
1716
+ return {
1717
+ headers: 'headers',
1718
+ statusCode: 'statusCode',
1719
+ body: 'body',
1720
+ };
1721
+ }
1722
+
1723
+ static types(): { [key: string]: any } {
1724
+ return {
1725
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1726
+ statusCode: 'number',
1727
+ body: SetFingerPrintTemplateResponseBody,
1728
+ };
1729
+ }
1730
+
1731
+ constructor(map?: { [key: string]: any }) {
1732
+ super(map);
1733
+ }
1734
+ }
1735
+
1736
+ export class SetFingerPrintTemplateDescriptionRequest extends $tea.Model {
1737
+ clientId?: string;
1738
+ clientToken?: string;
1739
+ description?: string;
1740
+ index?: number;
1741
+ loginToken?: string;
1742
+ regionId?: string;
1743
+ sessionId?: string;
1744
+ static names(): { [key: string]: string } {
1745
+ return {
1746
+ clientId: 'ClientId',
1747
+ clientToken: 'ClientToken',
1748
+ description: 'Description',
1749
+ index: 'Index',
1750
+ loginToken: 'LoginToken',
1751
+ regionId: 'RegionId',
1752
+ sessionId: 'SessionId',
1753
+ };
1754
+ }
1755
+
1756
+ static types(): { [key: string]: any } {
1757
+ return {
1758
+ clientId: 'string',
1759
+ clientToken: 'string',
1760
+ description: 'string',
1761
+ index: 'number',
1762
+ loginToken: 'string',
1763
+ regionId: 'string',
1764
+ sessionId: 'string',
1765
+ };
1766
+ }
1767
+
1768
+ constructor(map?: { [key: string]: any }) {
1769
+ super(map);
1770
+ }
1771
+ }
1772
+
1773
+ export class SetFingerPrintTemplateDescriptionResponseBody extends $tea.Model {
1774
+ requestId?: string;
1775
+ static names(): { [key: string]: string } {
1776
+ return {
1777
+ requestId: 'RequestId',
1778
+ };
1779
+ }
1780
+
1781
+ static types(): { [key: string]: any } {
1782
+ return {
1783
+ requestId: 'string',
1784
+ };
1785
+ }
1786
+
1787
+ constructor(map?: { [key: string]: any }) {
1788
+ super(map);
1789
+ }
1790
+ }
1791
+
1792
+ export class SetFingerPrintTemplateDescriptionResponse extends $tea.Model {
1793
+ headers: { [key: string]: string };
1794
+ statusCode: number;
1795
+ body: SetFingerPrintTemplateDescriptionResponseBody;
1796
+ static names(): { [key: string]: string } {
1797
+ return {
1798
+ headers: 'headers',
1799
+ statusCode: 'statusCode',
1800
+ body: 'body',
1801
+ };
1802
+ }
1803
+
1804
+ static types(): { [key: string]: any } {
1805
+ return {
1806
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1807
+ statusCode: 'number',
1808
+ body: SetFingerPrintTemplateDescriptionResponseBody,
1809
+ };
1810
+ }
1811
+
1812
+ constructor(map?: { [key: string]: any }) {
1813
+ super(map);
1814
+ }
1815
+ }
1816
+
1817
+ export class StartDesktopsRequest extends $tea.Model {
1818
+ clientId?: string;
1819
+ clientOS?: string;
1820
+ clientToken?: string;
1821
+ clientVersion?: string;
1822
+ desktopId?: string[];
1823
+ loginToken?: string;
1824
+ regionId?: string;
1825
+ sessionId?: string;
1826
+ static names(): { [key: string]: string } {
1827
+ return {
1828
+ clientId: 'ClientId',
1829
+ clientOS: 'ClientOS',
1830
+ clientToken: 'ClientToken',
1831
+ clientVersion: 'ClientVersion',
1832
+ desktopId: 'DesktopId',
1833
+ loginToken: 'LoginToken',
1834
+ regionId: 'RegionId',
1835
+ sessionId: 'SessionId',
1836
+ };
1837
+ }
1838
+
1839
+ static types(): { [key: string]: any } {
1840
+ return {
1841
+ clientId: 'string',
1842
+ clientOS: 'string',
1843
+ clientToken: 'string',
1844
+ clientVersion: 'string',
1845
+ desktopId: { 'type': 'array', 'itemType': 'string' },
1846
+ loginToken: 'string',
1847
+ regionId: 'string',
1848
+ sessionId: 'string',
1849
+ };
1850
+ }
1851
+
1852
+ constructor(map?: { [key: string]: any }) {
1853
+ super(map);
1854
+ }
1855
+ }
1856
+
1857
+ export class StartDesktopsResponseBody extends $tea.Model {
1858
+ requestId?: string;
1859
+ static names(): { [key: string]: string } {
1860
+ return {
1861
+ requestId: 'RequestId',
1862
+ };
1863
+ }
1864
+
1865
+ static types(): { [key: string]: any } {
1866
+ return {
1867
+ requestId: 'string',
1868
+ };
1869
+ }
1870
+
1871
+ constructor(map?: { [key: string]: any }) {
1872
+ super(map);
1873
+ }
1874
+ }
1875
+
1876
+ export class StartDesktopsResponse extends $tea.Model {
1877
+ headers: { [key: string]: string };
1878
+ statusCode: number;
1879
+ body: StartDesktopsResponseBody;
1880
+ static names(): { [key: string]: string } {
1881
+ return {
1882
+ headers: 'headers',
1883
+ statusCode: 'statusCode',
1884
+ body: 'body',
1885
+ };
1886
+ }
1887
+
1888
+ static types(): { [key: string]: any } {
1889
+ return {
1890
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1891
+ statusCode: 'number',
1892
+ body: StartDesktopsResponseBody,
1893
+ };
1894
+ }
1895
+
1896
+ constructor(map?: { [key: string]: any }) {
1897
+ super(map);
1898
+ }
1899
+ }
1900
+
1901
+ export class StartRecordContentRequest extends $tea.Model {
1902
+ clientId?: string;
1903
+ clientOS?: string;
1904
+ clientVersion?: string;
1905
+ desktopId?: string;
1906
+ filePath?: string;
1907
+ loginToken?: string;
1908
+ regionId?: string;
1909
+ sessionId?: string;
1910
+ static names(): { [key: string]: string } {
1911
+ return {
1912
+ clientId: 'ClientId',
1913
+ clientOS: 'ClientOS',
1914
+ clientVersion: 'ClientVersion',
1915
+ desktopId: 'DesktopId',
1916
+ filePath: 'FilePath',
1917
+ loginToken: 'LoginToken',
1918
+ regionId: 'RegionId',
1919
+ sessionId: 'SessionId',
1920
+ };
1921
+ }
1922
+
1923
+ static types(): { [key: string]: any } {
1924
+ return {
1925
+ clientId: 'string',
1926
+ clientOS: 'string',
1927
+ clientVersion: 'string',
1928
+ desktopId: 'string',
1929
+ filePath: 'string',
1930
+ loginToken: 'string',
1931
+ regionId: 'string',
1932
+ sessionId: 'string',
1933
+ };
1934
+ }
1935
+
1936
+ constructor(map?: { [key: string]: any }) {
1937
+ super(map);
1938
+ }
1939
+ }
1940
+
1941
+ export class StartRecordContentResponseBody extends $tea.Model {
1942
+ requestId?: string;
1943
+ static names(): { [key: string]: string } {
1944
+ return {
1945
+ requestId: 'RequestId',
1946
+ };
1947
+ }
1948
+
1949
+ static types(): { [key: string]: any } {
1950
+ return {
1951
+ requestId: 'string',
1952
+ };
1953
+ }
1954
+
1955
+ constructor(map?: { [key: string]: any }) {
1956
+ super(map);
1957
+ }
1958
+ }
1959
+
1960
+ export class StartRecordContentResponse extends $tea.Model {
1961
+ headers: { [key: string]: string };
1962
+ statusCode: number;
1963
+ body: StartRecordContentResponseBody;
1964
+ static names(): { [key: string]: string } {
1965
+ return {
1966
+ headers: 'headers',
1967
+ statusCode: 'statusCode',
1968
+ body: 'body',
1969
+ };
1970
+ }
1971
+
1972
+ static types(): { [key: string]: any } {
1973
+ return {
1974
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1975
+ statusCode: 'number',
1976
+ body: StartRecordContentResponseBody,
1977
+ };
1978
+ }
1979
+
1980
+ constructor(map?: { [key: string]: any }) {
1981
+ super(map);
1982
+ }
1983
+ }
1984
+
1985
+ export class StopDesktopsRequest extends $tea.Model {
1986
+ clientId?: string;
1987
+ clientOS?: string;
1988
+ clientToken?: string;
1989
+ clientVersion?: string;
1990
+ desktopId?: string[];
1991
+ loginToken?: string;
1992
+ regionId?: string;
1993
+ sessionId?: string;
1994
+ static names(): { [key: string]: string } {
1995
+ return {
1996
+ clientId: 'ClientId',
1997
+ clientOS: 'ClientOS',
1998
+ clientToken: 'ClientToken',
1999
+ clientVersion: 'ClientVersion',
2000
+ desktopId: 'DesktopId',
2001
+ loginToken: 'LoginToken',
2002
+ regionId: 'RegionId',
2003
+ sessionId: 'SessionId',
2004
+ };
2005
+ }
2006
+
2007
+ static types(): { [key: string]: any } {
2008
+ return {
2009
+ clientId: 'string',
2010
+ clientOS: 'string',
2011
+ clientToken: 'string',
2012
+ clientVersion: 'string',
2013
+ desktopId: { 'type': 'array', 'itemType': 'string' },
2014
+ loginToken: 'string',
2015
+ regionId: 'string',
2016
+ sessionId: 'string',
2017
+ };
2018
+ }
2019
+
2020
+ constructor(map?: { [key: string]: any }) {
2021
+ super(map);
2022
+ }
2023
+ }
2024
+
2025
+ export class StopDesktopsResponseBody extends $tea.Model {
2026
+ requestId?: string;
2027
+ static names(): { [key: string]: string } {
2028
+ return {
2029
+ requestId: 'RequestId',
2030
+ };
2031
+ }
2032
+
2033
+ static types(): { [key: string]: any } {
2034
+ return {
2035
+ requestId: 'string',
2036
+ };
2037
+ }
2038
+
2039
+ constructor(map?: { [key: string]: any }) {
2040
+ super(map);
2041
+ }
2042
+ }
2043
+
2044
+ export class StopDesktopsResponse extends $tea.Model {
2045
+ headers: { [key: string]: string };
2046
+ statusCode: number;
2047
+ body: StopDesktopsResponseBody;
2048
+ static names(): { [key: string]: string } {
2049
+ return {
2050
+ headers: 'headers',
2051
+ statusCode: 'statusCode',
2052
+ body: 'body',
2053
+ };
2054
+ }
2055
+
2056
+ static types(): { [key: string]: any } {
2057
+ return {
2058
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2059
+ statusCode: 'number',
2060
+ body: StopDesktopsResponseBody,
2061
+ };
2062
+ }
2063
+
2064
+ constructor(map?: { [key: string]: any }) {
2065
+ super(map);
2066
+ }
2067
+ }
2068
+
2069
+ export class StopRecordContentRequest extends $tea.Model {
2070
+ clientId?: string;
2071
+ clientOS?: string;
2072
+ clientVersion?: string;
2073
+ desktopId?: string;
2074
+ loginToken?: string;
2075
+ regionId?: string;
2076
+ sessionId?: string;
2077
+ static names(): { [key: string]: string } {
2078
+ return {
2079
+ clientId: 'ClientId',
2080
+ clientOS: 'ClientOS',
2081
+ clientVersion: 'ClientVersion',
2082
+ desktopId: 'DesktopId',
2083
+ loginToken: 'LoginToken',
2084
+ regionId: 'RegionId',
2085
+ sessionId: 'SessionId',
2086
+ };
2087
+ }
2088
+
2089
+ static types(): { [key: string]: any } {
2090
+ return {
2091
+ clientId: 'string',
2092
+ clientOS: 'string',
2093
+ clientVersion: 'string',
2094
+ desktopId: 'string',
2095
+ loginToken: 'string',
2096
+ regionId: 'string',
2097
+ sessionId: 'string',
2098
+ };
2099
+ }
2100
+
2101
+ constructor(map?: { [key: string]: any }) {
2102
+ super(map);
2103
+ }
2104
+ }
2105
+
2106
+ export class StopRecordContentResponseBody extends $tea.Model {
2107
+ requestId?: string;
2108
+ static names(): { [key: string]: string } {
2109
+ return {
2110
+ requestId: 'RequestId',
2111
+ };
2112
+ }
2113
+
2114
+ static types(): { [key: string]: any } {
2115
+ return {
2116
+ requestId: 'string',
2117
+ };
2118
+ }
2119
+
2120
+ constructor(map?: { [key: string]: any }) {
2121
+ super(map);
2122
+ }
2123
+ }
2124
+
2125
+ export class StopRecordContentResponse extends $tea.Model {
2126
+ headers: { [key: string]: string };
2127
+ statusCode: number;
2128
+ body: StopRecordContentResponseBody;
2129
+ static names(): { [key: string]: string } {
2130
+ return {
2131
+ headers: 'headers',
2132
+ statusCode: 'statusCode',
2133
+ body: 'body',
2134
+ };
2135
+ }
2136
+
2137
+ static types(): { [key: string]: any } {
2138
+ return {
2139
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2140
+ statusCode: 'number',
2141
+ body: StopRecordContentResponseBody,
2142
+ };
2143
+ }
2144
+
2145
+ constructor(map?: { [key: string]: any }) {
2146
+ super(map);
2147
+ }
2148
+ }
2149
+
2150
+ export class UnbindUserDesktopRequest extends $tea.Model {
2151
+ clientId?: string;
2152
+ clientType?: string;
2153
+ force?: boolean;
2154
+ loginToken?: string;
2155
+ regionId?: string;
2156
+ sessionId?: string;
2157
+ userDesktopId?: string;
2158
+ static names(): { [key: string]: string } {
2159
+ return {
2160
+ clientId: 'ClientId',
2161
+ clientType: 'ClientType',
2162
+ force: 'Force',
2163
+ loginToken: 'LoginToken',
2164
+ regionId: 'RegionId',
2165
+ sessionId: 'SessionId',
2166
+ userDesktopId: 'UserDesktopId',
2167
+ };
2168
+ }
2169
+
2170
+ static types(): { [key: string]: any } {
2171
+ return {
2172
+ clientId: 'string',
2173
+ clientType: 'string',
2174
+ force: 'boolean',
2175
+ loginToken: 'string',
2176
+ regionId: 'string',
2177
+ sessionId: 'string',
2178
+ userDesktopId: 'string',
2179
+ };
2180
+ }
2181
+
2182
+ constructor(map?: { [key: string]: any }) {
2183
+ super(map);
2184
+ }
2185
+ }
2186
+
2187
+ export class UnbindUserDesktopResponseBody extends $tea.Model {
2188
+ requestId?: string;
2189
+ static names(): { [key: string]: string } {
2190
+ return {
2191
+ requestId: 'RequestId',
2192
+ };
2193
+ }
2194
+
2195
+ static types(): { [key: string]: any } {
2196
+ return {
2197
+ requestId: 'string',
2198
+ };
2199
+ }
2200
+
2201
+ constructor(map?: { [key: string]: any }) {
2202
+ super(map);
2203
+ }
2204
+ }
2205
+
2206
+ export class UnbindUserDesktopResponse extends $tea.Model {
2207
+ headers: { [key: string]: string };
2208
+ statusCode: number;
2209
+ body: UnbindUserDesktopResponseBody;
2210
+ static names(): { [key: string]: string } {
2211
+ return {
2212
+ headers: 'headers',
2213
+ statusCode: 'statusCode',
2214
+ body: 'body',
2215
+ };
2216
+ }
2217
+
2218
+ static types(): { [key: string]: any } {
2219
+ return {
2220
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2221
+ statusCode: 'number',
2222
+ body: UnbindUserDesktopResponseBody,
2223
+ };
2224
+ }
2225
+
2226
+ constructor(map?: { [key: string]: any }) {
2227
+ super(map);
2228
+ }
2229
+ }
2230
+
2231
+ export class VerifyCredentialRequest extends $tea.Model {
2232
+ clientId?: string;
2233
+ credential?: string;
2234
+ credentialType?: string;
2235
+ encryptedKey?: string;
2236
+ loginToken?: string;
2237
+ officeSiteId?: string;
2238
+ regionId?: string;
2239
+ sessionId?: string;
2240
+ static names(): { [key: string]: string } {
2241
+ return {
2242
+ clientId: 'ClientId',
2243
+ credential: 'Credential',
2244
+ credentialType: 'CredentialType',
2245
+ encryptedKey: 'EncryptedKey',
2246
+ loginToken: 'LoginToken',
2247
+ officeSiteId: 'OfficeSiteId',
2248
+ regionId: 'RegionId',
2249
+ sessionId: 'SessionId',
2250
+ };
2251
+ }
2252
+
2253
+ static types(): { [key: string]: any } {
2254
+ return {
2255
+ clientId: 'string',
2256
+ credential: 'string',
2257
+ credentialType: 'string',
2258
+ encryptedKey: 'string',
2259
+ loginToken: 'string',
2260
+ officeSiteId: 'string',
2261
+ regionId: 'string',
2262
+ sessionId: 'string',
2263
+ };
2264
+ }
2265
+
2266
+ constructor(map?: { [key: string]: any }) {
2267
+ super(map);
2268
+ }
2269
+ }
2270
+
2271
+ export class VerifyCredentialResponseBody extends $tea.Model {
2272
+ requestId?: string;
2273
+ static names(): { [key: string]: string } {
2274
+ return {
2275
+ requestId: 'RequestId',
2276
+ };
2277
+ }
2278
+
2279
+ static types(): { [key: string]: any } {
2280
+ return {
2281
+ requestId: 'string',
2282
+ };
2283
+ }
2284
+
2285
+ constructor(map?: { [key: string]: any }) {
2286
+ super(map);
2287
+ }
2288
+ }
2289
+
2290
+ export class VerifyCredentialResponse extends $tea.Model {
2291
+ headers: { [key: string]: string };
2292
+ statusCode: number;
2293
+ body: VerifyCredentialResponseBody;
2294
+ static names(): { [key: string]: string } {
2295
+ return {
2296
+ headers: 'headers',
2297
+ statusCode: 'statusCode',
2298
+ body: 'body',
2299
+ };
2300
+ }
2301
+
2302
+ static types(): { [key: string]: any } {
2303
+ return {
2304
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2305
+ statusCode: 'number',
2306
+ body: VerifyCredentialResponseBody,
2307
+ };
2308
+ }
2309
+
2310
+ constructor(map?: { [key: string]: any }) {
2311
+ super(map);
2312
+ }
2313
+ }
2314
+
2315
+ export class DescribeDirectoriesResponseBodyDirectories extends $tea.Model {
2316
+ desktopAccessType?: string;
2317
+ directoryId?: string;
2318
+ directoryType?: string;
2319
+ providerId?: string;
2320
+ ssoServiceUrl?: string;
2321
+ static names(): { [key: string]: string } {
2322
+ return {
2323
+ desktopAccessType: 'DesktopAccessType',
2324
+ directoryId: 'DirectoryId',
2325
+ directoryType: 'DirectoryType',
2326
+ providerId: 'ProviderId',
2327
+ ssoServiceUrl: 'SsoServiceUrl',
2328
+ };
2329
+ }
2330
+
2331
+ static types(): { [key: string]: any } {
2332
+ return {
2333
+ desktopAccessType: 'string',
2334
+ directoryId: 'string',
2335
+ directoryType: 'string',
2336
+ providerId: 'string',
2337
+ ssoServiceUrl: 'string',
2338
+ };
2339
+ }
2340
+
2341
+ constructor(map?: { [key: string]: any }) {
2342
+ super(map);
2343
+ }
2344
+ }
2345
+
2346
+ export class DescribeFingerPrintTemplatesResponseBodyFingerPrintTemplates extends $tea.Model {
2347
+ clientId?: string;
2348
+ creationTime?: string;
2349
+ description?: string;
2350
+ endUserId?: string;
2351
+ index?: number;
2352
+ loginTime?: string;
2353
+ officeSiteId?: string;
2354
+ static names(): { [key: string]: string } {
2355
+ return {
2356
+ clientId: 'ClientId',
2357
+ creationTime: 'CreationTime',
2358
+ description: 'Description',
2359
+ endUserId: 'EndUserId',
2360
+ index: 'Index',
2361
+ loginTime: 'LoginTime',
2362
+ officeSiteId: 'OfficeSiteId',
2363
+ };
2364
+ }
2365
+
2366
+ static types(): { [key: string]: any } {
2367
+ return {
2368
+ clientId: 'string',
2369
+ creationTime: 'string',
2370
+ description: 'string',
2371
+ endUserId: 'string',
2372
+ index: 'number',
2373
+ loginTime: 'string',
2374
+ officeSiteId: 'string',
2375
+ };
2376
+ }
2377
+
2378
+ constructor(map?: { [key: string]: any }) {
2379
+ super(map);
2380
+ }
2381
+ }
2382
+
2383
+ export class DescribeGlobalDesktopsResponseBodyDesktopsClients extends $tea.Model {
2384
+ clientType?: string;
2385
+ status?: string;
2386
+ static names(): { [key: string]: string } {
2387
+ return {
2388
+ clientType: 'ClientType',
2389
+ status: 'Status',
2390
+ };
2391
+ }
2392
+
2393
+ static types(): { [key: string]: any } {
2394
+ return {
2395
+ clientType: 'string',
2396
+ status: 'string',
2397
+ };
2398
+ }
2399
+
2400
+ constructor(map?: { [key: string]: any }) {
2401
+ super(map);
2402
+ }
2403
+ }
2404
+
2405
+ export class DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers extends $tea.Model {
2406
+ cronExpression?: string;
2407
+ enforce?: boolean;
2408
+ interval?: number;
2409
+ resetType?: string;
2410
+ timerType?: string;
2411
+ static names(): { [key: string]: string } {
2412
+ return {
2413
+ cronExpression: 'CronExpression',
2414
+ enforce: 'Enforce',
2415
+ interval: 'Interval',
2416
+ resetType: 'ResetType',
2417
+ timerType: 'TimerType',
2418
+ };
2419
+ }
2420
+
2421
+ static types(): { [key: string]: any } {
2422
+ return {
2423
+ cronExpression: 'string',
2424
+ enforce: 'boolean',
2425
+ interval: 'number',
2426
+ resetType: 'string',
2427
+ timerType: 'string',
2428
+ };
2429
+ }
2430
+
2431
+ constructor(map?: { [key: string]: any }) {
2432
+ super(map);
2433
+ }
2434
+ }
2435
+
2436
+ export class DescribeGlobalDesktopsResponseBodyDesktopsDisks extends $tea.Model {
2437
+ diskId?: string;
2438
+ diskSize?: number;
2439
+ diskType?: string;
2440
+ static names(): { [key: string]: string } {
2441
+ return {
2442
+ diskId: 'DiskId',
2443
+ diskSize: 'DiskSize',
2444
+ diskType: 'DiskType',
2445
+ };
2446
+ }
2447
+
2448
+ static types(): { [key: string]: any } {
2449
+ return {
2450
+ diskId: 'string',
2451
+ diskSize: 'number',
2452
+ diskType: 'string',
2453
+ };
2454
+ }
2455
+
2456
+ constructor(map?: { [key: string]: any }) {
2457
+ super(map);
2458
+ }
2459
+ }
2460
+
2461
+ export class DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate extends $tea.Model {
2462
+ channel?: string;
2463
+ currentAppVersion?: string;
2464
+ force?: boolean;
2465
+ newAppVersion?: string;
2466
+ project?: string;
2467
+ releaseNote?: string;
2468
+ size?: string;
2469
+ static names(): { [key: string]: string } {
2470
+ return {
2471
+ channel: 'Channel',
2472
+ currentAppVersion: 'CurrentAppVersion',
2473
+ force: 'Force',
2474
+ newAppVersion: 'NewAppVersion',
2475
+ project: 'Project',
2476
+ releaseNote: 'ReleaseNote',
2477
+ size: 'Size',
2478
+ };
2479
+ }
2480
+
2481
+ static types(): { [key: string]: any } {
2482
+ return {
2483
+ channel: 'string',
2484
+ currentAppVersion: 'string',
2485
+ force: 'boolean',
2486
+ newAppVersion: 'string',
2487
+ project: 'string',
2488
+ releaseNote: 'string',
2489
+ size: 'string',
2490
+ };
2491
+ }
2492
+
2493
+ constructor(map?: { [key: string]: any }) {
2494
+ super(map);
2495
+ }
2496
+ }
2497
+
2498
+ export class DescribeGlobalDesktopsResponseBodyDesktopsSessions extends $tea.Model {
2499
+ endUserId?: string;
2500
+ establishmentTime?: string;
2501
+ static names(): { [key: string]: string } {
2502
+ return {
2503
+ endUserId: 'EndUserId',
2504
+ establishmentTime: 'EstablishmentTime',
2505
+ };
2506
+ }
2507
+
2508
+ static types(): { [key: string]: any } {
2509
+ return {
2510
+ endUserId: 'string',
2511
+ establishmentTime: 'string',
2512
+ };
2513
+ }
2514
+
2515
+ constructor(map?: { [key: string]: any }) {
2516
+ super(map);
2517
+ }
2518
+ }
2519
+
2520
+ export class DescribeGlobalDesktopsResponseBodyDesktops extends $tea.Model {
2521
+ chargeType?: string;
2522
+ clients?: DescribeGlobalDesktopsResponseBodyDesktopsClients[];
2523
+ connectionStatus?: string;
2524
+ cpu?: number;
2525
+ creationTime?: string;
2526
+ desktopGroupId?: string;
2527
+ desktopId?: string;
2528
+ desktopName?: string;
2529
+ desktopStatus?: string;
2530
+ desktopTimers?: DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers[];
2531
+ desktopType?: string;
2532
+ directoryId?: string;
2533
+ disks?: DescribeGlobalDesktopsResponseBodyDesktopsDisks[];
2534
+ endUserId?: string;
2535
+ endUserIds?: string[];
2536
+ expiredTime?: string;
2537
+ fotaUpdate?: DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate;
2538
+ gpuMemory?: number;
2539
+ hostName?: string;
2540
+ imageId?: string;
2541
+ lastStartTime?: string;
2542
+ localName?: string;
2543
+ managementFlags?: string[];
2544
+ memory?: number;
2545
+ networkInterfaceIp?: string;
2546
+ officeSiteId?: string;
2547
+ osType?: string;
2548
+ policyGroupId?: string;
2549
+ protocolType?: string;
2550
+ realDesktopId?: string;
2551
+ regionId?: string;
2552
+ sessions?: DescribeGlobalDesktopsResponseBodyDesktopsSessions[];
2553
+ supportHibernation?: boolean;
2554
+ userCustomName?: string;
2555
+ static names(): { [key: string]: string } {
2556
+ return {
2557
+ chargeType: 'ChargeType',
2558
+ clients: 'Clients',
2559
+ connectionStatus: 'ConnectionStatus',
2560
+ cpu: 'Cpu',
2561
+ creationTime: 'CreationTime',
2562
+ desktopGroupId: 'DesktopGroupId',
2563
+ desktopId: 'DesktopId',
2564
+ desktopName: 'DesktopName',
2565
+ desktopStatus: 'DesktopStatus',
2566
+ desktopTimers: 'DesktopTimers',
2567
+ desktopType: 'DesktopType',
2568
+ directoryId: 'DirectoryId',
2569
+ disks: 'Disks',
2570
+ endUserId: 'EndUserId',
2571
+ endUserIds: 'EndUserIds',
2572
+ expiredTime: 'ExpiredTime',
2573
+ fotaUpdate: 'FotaUpdate',
2574
+ gpuMemory: 'GpuMemory',
2575
+ hostName: 'HostName',
2576
+ imageId: 'ImageId',
2577
+ lastStartTime: 'LastStartTime',
2578
+ localName: 'LocalName',
2579
+ managementFlags: 'ManagementFlags',
2580
+ memory: 'Memory',
2581
+ networkInterfaceIp: 'NetworkInterfaceIp',
2582
+ officeSiteId: 'OfficeSiteId',
2583
+ osType: 'OsType',
2584
+ policyGroupId: 'PolicyGroupId',
2585
+ protocolType: 'ProtocolType',
2586
+ realDesktopId: 'RealDesktopId',
2587
+ regionId: 'RegionId',
2588
+ sessions: 'Sessions',
2589
+ supportHibernation: 'SupportHibernation',
2590
+ userCustomName: 'UserCustomName',
2591
+ };
2592
+ }
2593
+
2594
+ static types(): { [key: string]: any } {
2595
+ return {
2596
+ chargeType: 'string',
2597
+ clients: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsClients },
2598
+ connectionStatus: 'string',
2599
+ cpu: 'number',
2600
+ creationTime: 'string',
2601
+ desktopGroupId: 'string',
2602
+ desktopId: 'string',
2603
+ desktopName: 'string',
2604
+ desktopStatus: 'string',
2605
+ desktopTimers: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsDesktopTimers },
2606
+ desktopType: 'string',
2607
+ directoryId: 'string',
2608
+ disks: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsDisks },
2609
+ endUserId: 'string',
2610
+ endUserIds: { 'type': 'array', 'itemType': 'string' },
2611
+ expiredTime: 'string',
2612
+ fotaUpdate: DescribeGlobalDesktopsResponseBodyDesktopsFotaUpdate,
2613
+ gpuMemory: 'number',
2614
+ hostName: 'string',
2615
+ imageId: 'string',
2616
+ lastStartTime: 'string',
2617
+ localName: 'string',
2618
+ managementFlags: { 'type': 'array', 'itemType': 'string' },
2619
+ memory: 'number',
2620
+ networkInterfaceIp: 'string',
2621
+ officeSiteId: 'string',
2622
+ osType: 'string',
2623
+ policyGroupId: 'string',
2624
+ protocolType: 'string',
2625
+ realDesktopId: 'string',
2626
+ regionId: 'string',
2627
+ sessions: { 'type': 'array', 'itemType': DescribeGlobalDesktopsResponseBodyDesktopsSessions },
2628
+ supportHibernation: 'boolean',
2629
+ userCustomName: 'string',
2630
+ };
2631
+ }
2632
+
2633
+ constructor(map?: { [key: string]: any }) {
2634
+ super(map);
2635
+ }
2636
+ }
2637
+
2638
+ export class DescribeOfficeSitesResponseBodyOfficeSites extends $tea.Model {
2639
+ desktopAccessType?: string;
2640
+ desktopVpcEndpoint?: string;
2641
+ officeSiteId?: string;
2642
+ officeSiteType?: string;
2643
+ providerId?: string;
2644
+ ssoServiceUrl?: string;
2645
+ static names(): { [key: string]: string } {
2646
+ return {
2647
+ desktopAccessType: 'DesktopAccessType',
2648
+ desktopVpcEndpoint: 'DesktopVpcEndpoint',
2649
+ officeSiteId: 'OfficeSiteId',
2650
+ officeSiteType: 'OfficeSiteType',
2651
+ providerId: 'ProviderId',
2652
+ ssoServiceUrl: 'SsoServiceUrl',
2653
+ };
2654
+ }
2655
+
2656
+ static types(): { [key: string]: any } {
2657
+ return {
2658
+ desktopAccessType: 'string',
2659
+ desktopVpcEndpoint: 'string',
2660
+ officeSiteId: 'string',
2661
+ officeSiteType: 'string',
2662
+ providerId: 'string',
2663
+ ssoServiceUrl: 'string',
2664
+ };
2665
+ }
2666
+
2667
+ constructor(map?: { [key: string]: any }) {
2668
+ super(map);
2669
+ }
2670
+ }
2671
+
2672
+ export class DescribeRegionsResponseBodyRegions extends $tea.Model {
2673
+ regionEndpoint?: string;
2674
+ regionId?: string;
2675
+ static names(): { [key: string]: string } {
2676
+ return {
2677
+ regionEndpoint: 'RegionEndpoint',
2678
+ regionId: 'RegionId',
2679
+ };
2680
+ }
2681
+
2682
+ static types(): { [key: string]: any } {
2683
+ return {
2684
+ regionEndpoint: 'string',
2685
+ regionId: 'string',
2686
+ };
2687
+ }
2688
+
2689
+ constructor(map?: { [key: string]: any }) {
2690
+ super(map);
2691
+ }
2692
+ }
2693
+
2694
+ export class DescribeSnapshotsResponseBodySnapshots extends $tea.Model {
2695
+ creationTime?: string;
2696
+ description?: string;
2697
+ desktopId?: string;
2698
+ progress?: string;
2699
+ remainTime?: number;
2700
+ snapshotId?: string;
2701
+ snapshotName?: string;
2702
+ snapshotType?: string;
2703
+ sourceDiskSize?: string;
2704
+ sourceDiskType?: string;
2705
+ status?: string;
2706
+ static names(): { [key: string]: string } {
2707
+ return {
2708
+ creationTime: 'CreationTime',
2709
+ description: 'Description',
2710
+ desktopId: 'DesktopId',
2711
+ progress: 'Progress',
2712
+ remainTime: 'RemainTime',
2713
+ snapshotId: 'SnapshotId',
2714
+ snapshotName: 'SnapshotName',
2715
+ snapshotType: 'SnapshotType',
2716
+ sourceDiskSize: 'SourceDiskSize',
2717
+ sourceDiskType: 'SourceDiskType',
2718
+ status: 'Status',
2719
+ };
2720
+ }
2721
+
2722
+ static types(): { [key: string]: any } {
2723
+ return {
2724
+ creationTime: 'string',
2725
+ description: 'string',
2726
+ desktopId: 'string',
2727
+ progress: 'string',
2728
+ remainTime: 'number',
2729
+ snapshotId: 'string',
2730
+ snapshotName: 'string',
2731
+ snapshotType: 'string',
2732
+ sourceDiskSize: 'string',
2733
+ sourceDiskType: 'string',
2734
+ status: 'string',
2735
+ };
2736
+ }
2737
+
2738
+ constructor(map?: { [key: string]: any }) {
2739
+ super(map);
2740
+ }
2741
+ }
2742
+
2743
+ export class GetCloudDriveServiceMountTokenResponseBodyToken extends $tea.Model {
2744
+ domainId?: string;
2745
+ expiredAfter?: string;
2746
+ status?: string;
2747
+ token?: string;
2748
+ totalSize?: number;
2749
+ usedSize?: number;
2750
+ static names(): { [key: string]: string } {
2751
+ return {
2752
+ domainId: 'DomainId',
2753
+ expiredAfter: 'ExpiredAfter',
2754
+ status: 'Status',
2755
+ token: 'Token',
2756
+ totalSize: 'TotalSize',
2757
+ usedSize: 'UsedSize',
2758
+ };
2759
+ }
2760
+
2761
+ static types(): { [key: string]: any } {
2762
+ return {
2763
+ domainId: 'string',
2764
+ expiredAfter: 'string',
2765
+ status: 'string',
2766
+ token: 'string',
2767
+ totalSize: 'number',
2768
+ usedSize: 'number',
2769
+ };
2770
+ }
2771
+
2772
+ constructor(map?: { [key: string]: any }) {
2773
+ super(map);
2774
+ }
2775
+ }
2776
+
2777
+
2778
+ export default class Client extends OpenApi {
2779
+
2780
+ constructor(config: $OpenApi.Config) {
2781
+ super(config);
2782
+ this._signatureAlgorithm = "v2";
2783
+ this._endpointRule = "regional";
2784
+ this.checkConfig(config);
2785
+ this._endpoint = this.getEndpoint("ecd", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2786
+ }
2787
+
2788
+
2789
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
526
2790
  if (!Util.empty(endpoint)) {
527
2791
  return endpoint;
528
2792
  }
529
2793
 
530
- if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
531
- return endpointMap[regionId];
2794
+ if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
2795
+ return endpointMap[regionId];
2796
+ }
2797
+
2798
+ return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2799
+ }
2800
+
2801
+ async approveFotaUpdateWithOptions(request: ApproveFotaUpdateRequest, runtime: $Util.RuntimeOptions): Promise<ApproveFotaUpdateResponse> {
2802
+ Util.validateModel(request);
2803
+ let query = { };
2804
+ if (!Util.isUnset(request.appVersion)) {
2805
+ query["AppVersion"] = request.appVersion;
2806
+ }
2807
+
2808
+ if (!Util.isUnset(request.clientId)) {
2809
+ query["ClientId"] = request.clientId;
2810
+ }
2811
+
2812
+ if (!Util.isUnset(request.desktopId)) {
2813
+ query["DesktopId"] = request.desktopId;
2814
+ }
2815
+
2816
+ if (!Util.isUnset(request.loginToken)) {
2817
+ query["LoginToken"] = request.loginToken;
2818
+ }
2819
+
2820
+ if (!Util.isUnset(request.regionId)) {
2821
+ query["RegionId"] = request.regionId;
2822
+ }
2823
+
2824
+ if (!Util.isUnset(request.sessionId)) {
2825
+ query["SessionId"] = request.sessionId;
2826
+ }
2827
+
2828
+ if (!Util.isUnset(request.uuid)) {
2829
+ query["Uuid"] = request.uuid;
2830
+ }
2831
+
2832
+ let req = new $OpenApi.OpenApiRequest({
2833
+ query: OpenApiUtil.query(query),
2834
+ });
2835
+ let params = new $OpenApi.Params({
2836
+ action: "ApproveFotaUpdate",
2837
+ version: "2020-10-02",
2838
+ protocol: "HTTPS",
2839
+ pathname: "/",
2840
+ method: "POST",
2841
+ authType: "Anonymous",
2842
+ style: "RPC",
2843
+ reqBodyType: "formData",
2844
+ bodyType: "json",
2845
+ });
2846
+ return $tea.cast<ApproveFotaUpdateResponse>(await this.callApi(params, req, runtime), new ApproveFotaUpdateResponse({}));
2847
+ }
2848
+
2849
+ async approveFotaUpdate(request: ApproveFotaUpdateRequest): Promise<ApproveFotaUpdateResponse> {
2850
+ let runtime = new $Util.RuntimeOptions({ });
2851
+ return await this.approveFotaUpdateWithOptions(request, runtime);
2852
+ }
2853
+
2854
+ async changePasswordWithOptions(request: ChangePasswordRequest, runtime: $Util.RuntimeOptions): Promise<ChangePasswordResponse> {
2855
+ Util.validateModel(request);
2856
+ let query = { };
2857
+ if (!Util.isUnset(request.clientId)) {
2858
+ query["ClientId"] = request.clientId;
2859
+ }
2860
+
2861
+ if (!Util.isUnset(request.endUserId)) {
2862
+ query["EndUserId"] = request.endUserId;
2863
+ }
2864
+
2865
+ if (!Util.isUnset(request.loginToken)) {
2866
+ query["LoginToken"] = request.loginToken;
2867
+ }
2868
+
2869
+ if (!Util.isUnset(request.newPassword)) {
2870
+ query["NewPassword"] = request.newPassword;
2871
+ }
2872
+
2873
+ if (!Util.isUnset(request.officeSiteId)) {
2874
+ query["OfficeSiteId"] = request.officeSiteId;
2875
+ }
2876
+
2877
+ if (!Util.isUnset(request.oldPassword)) {
2878
+ query["OldPassword"] = request.oldPassword;
2879
+ }
2880
+
2881
+ if (!Util.isUnset(request.regionId)) {
2882
+ query["RegionId"] = request.regionId;
2883
+ }
2884
+
2885
+ if (!Util.isUnset(request.sessionId)) {
2886
+ query["SessionId"] = request.sessionId;
2887
+ }
2888
+
2889
+ let req = new $OpenApi.OpenApiRequest({
2890
+ query: OpenApiUtil.query(query),
2891
+ });
2892
+ let params = new $OpenApi.Params({
2893
+ action: "ChangePassword",
2894
+ version: "2020-10-02",
2895
+ protocol: "HTTPS",
2896
+ pathname: "/",
2897
+ method: "POST",
2898
+ authType: "Anonymous",
2899
+ style: "RPC",
2900
+ reqBodyType: "formData",
2901
+ bodyType: "json",
2902
+ });
2903
+ return $tea.cast<ChangePasswordResponse>(await this.callApi(params, req, runtime), new ChangePasswordResponse({}));
2904
+ }
2905
+
2906
+ async changePassword(request: ChangePasswordRequest): Promise<ChangePasswordResponse> {
2907
+ let runtime = new $Util.RuntimeOptions({ });
2908
+ return await this.changePasswordWithOptions(request, runtime);
2909
+ }
2910
+
2911
+ async deleteFingerPrintTemplateWithOptions(request: DeleteFingerPrintTemplateRequest, runtime: $Util.RuntimeOptions): Promise<DeleteFingerPrintTemplateResponse> {
2912
+ Util.validateModel(request);
2913
+ let query = { };
2914
+ if (!Util.isUnset(request.clientId)) {
2915
+ query["ClientId"] = request.clientId;
2916
+ }
2917
+
2918
+ if (!Util.isUnset(request.clientToken)) {
2919
+ query["ClientToken"] = request.clientToken;
2920
+ }
2921
+
2922
+ if (!Util.isUnset(request.index)) {
2923
+ query["Index"] = request.index;
2924
+ }
2925
+
2926
+ if (!Util.isUnset(request.loginToken)) {
2927
+ query["LoginToken"] = request.loginToken;
2928
+ }
2929
+
2930
+ if (!Util.isUnset(request.regionId)) {
2931
+ query["RegionId"] = request.regionId;
2932
+ }
2933
+
2934
+ if (!Util.isUnset(request.sessionId)) {
2935
+ query["SessionId"] = request.sessionId;
2936
+ }
2937
+
2938
+ let req = new $OpenApi.OpenApiRequest({
2939
+ query: OpenApiUtil.query(query),
2940
+ });
2941
+ let params = new $OpenApi.Params({
2942
+ action: "DeleteFingerPrintTemplate",
2943
+ version: "2020-10-02",
2944
+ protocol: "HTTPS",
2945
+ pathname: "/",
2946
+ method: "POST",
2947
+ authType: "Anonymous",
2948
+ style: "RPC",
2949
+ reqBodyType: "formData",
2950
+ bodyType: "json",
2951
+ });
2952
+ return $tea.cast<DeleteFingerPrintTemplateResponse>(await this.callApi(params, req, runtime), new DeleteFingerPrintTemplateResponse({}));
2953
+ }
2954
+
2955
+ async deleteFingerPrintTemplate(request: DeleteFingerPrintTemplateRequest): Promise<DeleteFingerPrintTemplateResponse> {
2956
+ let runtime = new $Util.RuntimeOptions({ });
2957
+ return await this.deleteFingerPrintTemplateWithOptions(request, runtime);
2958
+ }
2959
+
2960
+ async describeDirectoriesWithOptions(request: DescribeDirectoriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDirectoriesResponse> {
2961
+ Util.validateModel(request);
2962
+ let query = { };
2963
+ if (!Util.isUnset(request.clientId)) {
2964
+ query["ClientId"] = request.clientId;
2965
+ }
2966
+
2967
+ if (!Util.isUnset(request.directoryId)) {
2968
+ query["DirectoryId"] = request.directoryId;
2969
+ }
2970
+
2971
+ if (!Util.isUnset(request.regionId)) {
2972
+ query["RegionId"] = request.regionId;
2973
+ }
2974
+
2975
+ let req = new $OpenApi.OpenApiRequest({
2976
+ query: OpenApiUtil.query(query),
2977
+ });
2978
+ let params = new $OpenApi.Params({
2979
+ action: "DescribeDirectories",
2980
+ version: "2020-10-02",
2981
+ protocol: "HTTPS",
2982
+ pathname: "/",
2983
+ method: "POST",
2984
+ authType: "Anonymous",
2985
+ style: "RPC",
2986
+ reqBodyType: "formData",
2987
+ bodyType: "json",
2988
+ });
2989
+ return $tea.cast<DescribeDirectoriesResponse>(await this.callApi(params, req, runtime), new DescribeDirectoriesResponse({}));
2990
+ }
2991
+
2992
+ async describeDirectories(request: DescribeDirectoriesRequest): Promise<DescribeDirectoriesResponse> {
2993
+ let runtime = new $Util.RuntimeOptions({ });
2994
+ return await this.describeDirectoriesWithOptions(request, runtime);
2995
+ }
2996
+
2997
+ async describeFingerPrintTemplatesWithOptions(request: DescribeFingerPrintTemplatesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeFingerPrintTemplatesResponse> {
2998
+ Util.validateModel(request);
2999
+ let query = { };
3000
+ if (!Util.isUnset(request.clientId)) {
3001
+ query["ClientId"] = request.clientId;
3002
+ }
3003
+
3004
+ if (!Util.isUnset(request.loginToken)) {
3005
+ query["LoginToken"] = request.loginToken;
3006
+ }
3007
+
3008
+ if (!Util.isUnset(request.regionId)) {
3009
+ query["RegionId"] = request.regionId;
3010
+ }
3011
+
3012
+ if (!Util.isUnset(request.sessionId)) {
3013
+ query["SessionId"] = request.sessionId;
3014
+ }
3015
+
3016
+ let req = new $OpenApi.OpenApiRequest({
3017
+ query: OpenApiUtil.query(query),
3018
+ });
3019
+ let params = new $OpenApi.Params({
3020
+ action: "DescribeFingerPrintTemplates",
3021
+ version: "2020-10-02",
3022
+ protocol: "HTTPS",
3023
+ pathname: "/",
3024
+ method: "POST",
3025
+ authType: "Anonymous",
3026
+ style: "RPC",
3027
+ reqBodyType: "formData",
3028
+ bodyType: "json",
3029
+ });
3030
+ return $tea.cast<DescribeFingerPrintTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeFingerPrintTemplatesResponse({}));
3031
+ }
3032
+
3033
+ async describeFingerPrintTemplates(request: DescribeFingerPrintTemplatesRequest): Promise<DescribeFingerPrintTemplatesResponse> {
3034
+ let runtime = new $Util.RuntimeOptions({ });
3035
+ return await this.describeFingerPrintTemplatesWithOptions(request, runtime);
3036
+ }
3037
+
3038
+ async describeGlobalDesktopsWithOptions(request: DescribeGlobalDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeGlobalDesktopsResponse> {
3039
+ Util.validateModel(request);
3040
+ let query = { };
3041
+ if (!Util.isUnset(request.clientId)) {
3042
+ query["ClientId"] = request.clientId;
3043
+ }
3044
+
3045
+ if (!Util.isUnset(request.desktopAccessType)) {
3046
+ query["DesktopAccessType"] = request.desktopAccessType;
3047
+ }
3048
+
3049
+ if (!Util.isUnset(request.desktopId)) {
3050
+ query["DesktopId"] = request.desktopId;
3051
+ }
3052
+
3053
+ if (!Util.isUnset(request.desktopName)) {
3054
+ query["DesktopName"] = request.desktopName;
3055
+ }
3056
+
3057
+ if (!Util.isUnset(request.desktopStatus)) {
3058
+ query["DesktopStatus"] = request.desktopStatus;
3059
+ }
3060
+
3061
+ if (!Util.isUnset(request.directoryId)) {
3062
+ query["DirectoryId"] = request.directoryId;
3063
+ }
3064
+
3065
+ if (!Util.isUnset(request.keyword)) {
3066
+ query["Keyword"] = request.keyword;
3067
+ }
3068
+
3069
+ if (!Util.isUnset(request.loginRegionId)) {
3070
+ query["LoginRegionId"] = request.loginRegionId;
3071
+ }
3072
+
3073
+ if (!Util.isUnset(request.loginToken)) {
3074
+ query["LoginToken"] = request.loginToken;
3075
+ }
3076
+
3077
+ if (!Util.isUnset(request.maxResults)) {
3078
+ query["MaxResults"] = request.maxResults;
3079
+ }
3080
+
3081
+ if (!Util.isUnset(request.nextToken)) {
3082
+ query["NextToken"] = request.nextToken;
3083
+ }
3084
+
3085
+ if (!Util.isUnset(request.officeSiteId)) {
3086
+ query["OfficeSiteId"] = request.officeSiteId;
3087
+ }
3088
+
3089
+ if (!Util.isUnset(request.orderBy)) {
3090
+ query["OrderBy"] = request.orderBy;
3091
+ }
3092
+
3093
+ if (!Util.isUnset(request.queryFotaUpdate)) {
3094
+ query["QueryFotaUpdate"] = request.queryFotaUpdate;
3095
+ }
3096
+
3097
+ if (!Util.isUnset(request.regionId)) {
3098
+ query["RegionId"] = request.regionId;
3099
+ }
3100
+
3101
+ if (!Util.isUnset(request.searchRegionId)) {
3102
+ query["SearchRegionId"] = request.searchRegionId;
3103
+ }
3104
+
3105
+ if (!Util.isUnset(request.sessionId)) {
3106
+ query["SessionId"] = request.sessionId;
3107
+ }
3108
+
3109
+ if (!Util.isUnset(request.sortType)) {
3110
+ query["SortType"] = request.sortType;
3111
+ }
3112
+
3113
+ if (!Util.isUnset(request.withoutLatency)) {
3114
+ query["WithoutLatency"] = request.withoutLatency;
3115
+ }
3116
+
3117
+ let req = new $OpenApi.OpenApiRequest({
3118
+ query: OpenApiUtil.query(query),
3119
+ });
3120
+ let params = new $OpenApi.Params({
3121
+ action: "DescribeGlobalDesktops",
3122
+ version: "2020-10-02",
3123
+ protocol: "HTTPS",
3124
+ pathname: "/",
3125
+ method: "POST",
3126
+ authType: "Anonymous",
3127
+ style: "RPC",
3128
+ reqBodyType: "formData",
3129
+ bodyType: "json",
3130
+ });
3131
+ return $tea.cast<DescribeGlobalDesktopsResponse>(await this.callApi(params, req, runtime), new DescribeGlobalDesktopsResponse({}));
3132
+ }
3133
+
3134
+ async describeGlobalDesktops(request: DescribeGlobalDesktopsRequest): Promise<DescribeGlobalDesktopsResponse> {
3135
+ let runtime = new $Util.RuntimeOptions({ });
3136
+ return await this.describeGlobalDesktopsWithOptions(request, runtime);
3137
+ }
3138
+
3139
+ async describeOfficeSitesWithOptions(request: DescribeOfficeSitesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeOfficeSitesResponse> {
3140
+ Util.validateModel(request);
3141
+ let query = { };
3142
+ if (!Util.isUnset(request.clientId)) {
3143
+ query["ClientId"] = request.clientId;
3144
+ }
3145
+
3146
+ if (!Util.isUnset(request.officeSiteId)) {
3147
+ query["OfficeSiteId"] = request.officeSiteId;
3148
+ }
3149
+
3150
+ if (!Util.isUnset(request.regionId)) {
3151
+ query["RegionId"] = request.regionId;
3152
+ }
3153
+
3154
+ let req = new $OpenApi.OpenApiRequest({
3155
+ query: OpenApiUtil.query(query),
3156
+ });
3157
+ let params = new $OpenApi.Params({
3158
+ action: "DescribeOfficeSites",
3159
+ version: "2020-10-02",
3160
+ protocol: "HTTPS",
3161
+ pathname: "/",
3162
+ method: "POST",
3163
+ authType: "Anonymous",
3164
+ style: "RPC",
3165
+ reqBodyType: "formData",
3166
+ bodyType: "json",
3167
+ });
3168
+ return $tea.cast<DescribeOfficeSitesResponse>(await this.callApi(params, req, runtime), new DescribeOfficeSitesResponse({}));
3169
+ }
3170
+
3171
+ async describeOfficeSites(request: DescribeOfficeSitesRequest): Promise<DescribeOfficeSitesResponse> {
3172
+ let runtime = new $Util.RuntimeOptions({ });
3173
+ return await this.describeOfficeSitesWithOptions(request, runtime);
3174
+ }
3175
+
3176
+ async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
3177
+ Util.validateModel(request);
3178
+ let query = { };
3179
+ if (!Util.isUnset(request.clientId)) {
3180
+ query["ClientId"] = request.clientId;
3181
+ }
3182
+
3183
+ if (!Util.isUnset(request.regionId)) {
3184
+ query["RegionId"] = request.regionId;
3185
+ }
3186
+
3187
+ let req = new $OpenApi.OpenApiRequest({
3188
+ query: OpenApiUtil.query(query),
3189
+ });
3190
+ let params = new $OpenApi.Params({
3191
+ action: "DescribeRegions",
3192
+ version: "2020-10-02",
3193
+ protocol: "HTTPS",
3194
+ pathname: "/",
3195
+ method: "POST",
3196
+ authType: "Anonymous",
3197
+ style: "RPC",
3198
+ reqBodyType: "formData",
3199
+ bodyType: "json",
3200
+ });
3201
+ return $tea.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
3202
+ }
3203
+
3204
+ async describeRegions(request: DescribeRegionsRequest): Promise<DescribeRegionsResponse> {
3205
+ let runtime = new $Util.RuntimeOptions({ });
3206
+ return await this.describeRegionsWithOptions(request, runtime);
3207
+ }
3208
+
3209
+ async describeSnapshotsWithOptions(request: DescribeSnapshotsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSnapshotsResponse> {
3210
+ Util.validateModel(request);
3211
+ let query = { };
3212
+ if (!Util.isUnset(request.clientId)) {
3213
+ query["ClientId"] = request.clientId;
3214
+ }
3215
+
3216
+ if (!Util.isUnset(request.desktopId)) {
3217
+ query["DesktopId"] = request.desktopId;
3218
+ }
3219
+
3220
+ if (!Util.isUnset(request.loginToken)) {
3221
+ query["LoginToken"] = request.loginToken;
3222
+ }
3223
+
3224
+ if (!Util.isUnset(request.maxResults)) {
3225
+ query["MaxResults"] = request.maxResults;
3226
+ }
3227
+
3228
+ if (!Util.isUnset(request.nextToken)) {
3229
+ query["NextToken"] = request.nextToken;
3230
+ }
3231
+
3232
+ if (!Util.isUnset(request.regionId)) {
3233
+ query["RegionId"] = request.regionId;
3234
+ }
3235
+
3236
+ if (!Util.isUnset(request.sessionId)) {
3237
+ query["SessionId"] = request.sessionId;
3238
+ }
3239
+
3240
+ if (!Util.isUnset(request.snapshotId)) {
3241
+ query["SnapshotId"] = request.snapshotId;
3242
+ }
3243
+
3244
+ let req = new $OpenApi.OpenApiRequest({
3245
+ query: OpenApiUtil.query(query),
3246
+ });
3247
+ let params = new $OpenApi.Params({
3248
+ action: "DescribeSnapshots",
3249
+ version: "2020-10-02",
3250
+ protocol: "HTTPS",
3251
+ pathname: "/",
3252
+ method: "POST",
3253
+ authType: "Anonymous",
3254
+ style: "RPC",
3255
+ reqBodyType: "formData",
3256
+ bodyType: "json",
3257
+ });
3258
+ return $tea.cast<DescribeSnapshotsResponse>(await this.callApi(params, req, runtime), new DescribeSnapshotsResponse({}));
3259
+ }
3260
+
3261
+ async describeSnapshots(request: DescribeSnapshotsRequest): Promise<DescribeSnapshotsResponse> {
3262
+ let runtime = new $Util.RuntimeOptions({ });
3263
+ return await this.describeSnapshotsWithOptions(request, runtime);
3264
+ }
3265
+
3266
+ async encryptPasswordWithOptions(request: EncryptPasswordRequest, runtime: $Util.RuntimeOptions): Promise<EncryptPasswordResponse> {
3267
+ Util.validateModel(request);
3268
+ let query = { };
3269
+ if (!Util.isUnset(request.clientId)) {
3270
+ query["ClientId"] = request.clientId;
3271
+ }
3272
+
3273
+ if (!Util.isUnset(request.directoryId)) {
3274
+ query["DirectoryId"] = request.directoryId;
3275
+ }
3276
+
3277
+ if (!Util.isUnset(request.loginToken)) {
3278
+ query["LoginToken"] = request.loginToken;
3279
+ }
3280
+
3281
+ if (!Util.isUnset(request.officeSiteId)) {
3282
+ query["OfficeSiteId"] = request.officeSiteId;
3283
+ }
3284
+
3285
+ if (!Util.isUnset(request.password)) {
3286
+ query["Password"] = request.password;
3287
+ }
3288
+
3289
+ if (!Util.isUnset(request.regionId)) {
3290
+ query["RegionId"] = request.regionId;
3291
+ }
3292
+
3293
+ if (!Util.isUnset(request.sessionId)) {
3294
+ query["SessionId"] = request.sessionId;
3295
+ }
3296
+
3297
+ let req = new $OpenApi.OpenApiRequest({
3298
+ query: OpenApiUtil.query(query),
3299
+ });
3300
+ let params = new $OpenApi.Params({
3301
+ action: "EncryptPassword",
3302
+ version: "2020-10-02",
3303
+ protocol: "HTTPS",
3304
+ pathname: "/",
3305
+ method: "POST",
3306
+ authType: "Anonymous",
3307
+ style: "RPC",
3308
+ reqBodyType: "formData",
3309
+ bodyType: "json",
3310
+ });
3311
+ return $tea.cast<EncryptPasswordResponse>(await this.callApi(params, req, runtime), new EncryptPasswordResponse({}));
3312
+ }
3313
+
3314
+ async encryptPassword(request: EncryptPasswordRequest): Promise<EncryptPasswordResponse> {
3315
+ let runtime = new $Util.RuntimeOptions({ });
3316
+ return await this.encryptPasswordWithOptions(request, runtime);
3317
+ }
3318
+
3319
+ async getCloudDriveServiceMountTokenWithOptions(request: GetCloudDriveServiceMountTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetCloudDriveServiceMountTokenResponse> {
3320
+ Util.validateModel(request);
3321
+ let query = { };
3322
+ if (!Util.isUnset(request.clientId)) {
3323
+ query["ClientId"] = request.clientId;
3324
+ }
3325
+
3326
+ if (!Util.isUnset(request.loginToken)) {
3327
+ query["LoginToken"] = request.loginToken;
3328
+ }
3329
+
3330
+ if (!Util.isUnset(request.officeSiteId)) {
3331
+ query["OfficeSiteId"] = request.officeSiteId;
3332
+ }
3333
+
3334
+ if (!Util.isUnset(request.regionId)) {
3335
+ query["RegionId"] = request.regionId;
3336
+ }
3337
+
3338
+ if (!Util.isUnset(request.sessionId)) {
3339
+ query["SessionId"] = request.sessionId;
3340
+ }
3341
+
3342
+ let req = new $OpenApi.OpenApiRequest({
3343
+ query: OpenApiUtil.query(query),
3344
+ });
3345
+ let params = new $OpenApi.Params({
3346
+ action: "GetCloudDriveServiceMountToken",
3347
+ version: "2020-10-02",
3348
+ protocol: "HTTPS",
3349
+ pathname: "/",
3350
+ method: "POST",
3351
+ authType: "Anonymous",
3352
+ style: "RPC",
3353
+ reqBodyType: "formData",
3354
+ bodyType: "json",
3355
+ });
3356
+ return $tea.cast<GetCloudDriveServiceMountTokenResponse>(await this.callApi(params, req, runtime), new GetCloudDriveServiceMountTokenResponse({}));
3357
+ }
3358
+
3359
+ async getCloudDriveServiceMountToken(request: GetCloudDriveServiceMountTokenRequest): Promise<GetCloudDriveServiceMountTokenResponse> {
3360
+ let runtime = new $Util.RuntimeOptions({ });
3361
+ return await this.getCloudDriveServiceMountTokenWithOptions(request, runtime);
3362
+ }
3363
+
3364
+ async getLoginTokenWithOptions(request: GetLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<GetLoginTokenResponse> {
3365
+ Util.validateModel(request);
3366
+ let query = { };
3367
+ if (!Util.isUnset(request.authenticationCode)) {
3368
+ query["AuthenticationCode"] = request.authenticationCode;
3369
+ }
3370
+
3371
+ if (!Util.isUnset(request.clientId)) {
3372
+ query["ClientId"] = request.clientId;
3373
+ }
3374
+
3375
+ if (!Util.isUnset(request.clientOS)) {
3376
+ query["ClientOS"] = request.clientOS;
3377
+ }
3378
+
3379
+ if (!Util.isUnset(request.clientType)) {
3380
+ query["ClientType"] = request.clientType;
3381
+ }
3382
+
3383
+ if (!Util.isUnset(request.clientVersion)) {
3384
+ query["ClientVersion"] = request.clientVersion;
3385
+ }
3386
+
3387
+ if (!Util.isUnset(request.currentStage)) {
3388
+ query["CurrentStage"] = request.currentStage;
3389
+ }
3390
+
3391
+ if (!Util.isUnset(request.directoryId)) {
3392
+ query["DirectoryId"] = request.directoryId;
3393
+ }
3394
+
3395
+ if (!Util.isUnset(request.endUserId)) {
3396
+ query["EndUserId"] = request.endUserId;
3397
+ }
3398
+
3399
+ if (!Util.isUnset(request.keepAlive)) {
3400
+ query["KeepAlive"] = request.keepAlive;
3401
+ }
3402
+
3403
+ if (!Util.isUnset(request.keepAliveToken)) {
3404
+ query["KeepAliveToken"] = request.keepAliveToken;
3405
+ }
3406
+
3407
+ if (!Util.isUnset(request.newPassword)) {
3408
+ query["NewPassword"] = request.newPassword;
3409
+ }
3410
+
3411
+ if (!Util.isUnset(request.officeSiteId)) {
3412
+ query["OfficeSiteId"] = request.officeSiteId;
3413
+ }
3414
+
3415
+ if (!Util.isUnset(request.oldPassword)) {
3416
+ query["OldPassword"] = request.oldPassword;
3417
+ }
3418
+
3419
+ if (!Util.isUnset(request.password)) {
3420
+ query["Password"] = request.password;
3421
+ }
3422
+
3423
+ if (!Util.isUnset(request.regionId)) {
3424
+ query["RegionId"] = request.regionId;
3425
+ }
3426
+
3427
+ if (!Util.isUnset(request.sessionId)) {
3428
+ query["SessionId"] = request.sessionId;
3429
+ }
3430
+
3431
+ if (!Util.isUnset(request.tokenCode)) {
3432
+ query["TokenCode"] = request.tokenCode;
3433
+ }
3434
+
3435
+ if (!Util.isUnset(request.uuid)) {
3436
+ query["Uuid"] = request.uuid;
3437
+ }
3438
+
3439
+ let req = new $OpenApi.OpenApiRequest({
3440
+ query: OpenApiUtil.query(query),
3441
+ });
3442
+ let params = new $OpenApi.Params({
3443
+ action: "GetLoginToken",
3444
+ version: "2020-10-02",
3445
+ protocol: "HTTPS",
3446
+ pathname: "/",
3447
+ method: "POST",
3448
+ authType: "Anonymous",
3449
+ style: "RPC",
3450
+ reqBodyType: "formData",
3451
+ bodyType: "json",
3452
+ });
3453
+ return $tea.cast<GetLoginTokenResponse>(await this.callApi(params, req, runtime), new GetLoginTokenResponse({}));
3454
+ }
3455
+
3456
+ async getLoginToken(request: GetLoginTokenRequest): Promise<GetLoginTokenResponse> {
3457
+ let runtime = new $Util.RuntimeOptions({ });
3458
+ return await this.getLoginTokenWithOptions(request, runtime);
3459
+ }
3460
+
3461
+ async isKeepAliveWithOptions(request: IsKeepAliveRequest, runtime: $Util.RuntimeOptions): Promise<IsKeepAliveResponse> {
3462
+ Util.validateModel(request);
3463
+ let query = { };
3464
+ if (!Util.isUnset(request.clientId)) {
3465
+ query["ClientId"] = request.clientId;
3466
+ }
3467
+
3468
+ if (!Util.isUnset(request.officeSiteId)) {
3469
+ query["OfficeSiteId"] = request.officeSiteId;
3470
+ }
3471
+
3472
+ if (!Util.isUnset(request.regionId)) {
3473
+ query["RegionId"] = request.regionId;
3474
+ }
3475
+
3476
+ let req = new $OpenApi.OpenApiRequest({
3477
+ query: OpenApiUtil.query(query),
3478
+ });
3479
+ let params = new $OpenApi.Params({
3480
+ action: "IsKeepAlive",
3481
+ version: "2020-10-02",
3482
+ protocol: "HTTPS",
3483
+ pathname: "/",
3484
+ method: "POST",
3485
+ authType: "Anonymous",
3486
+ style: "RPC",
3487
+ reqBodyType: "formData",
3488
+ bodyType: "json",
3489
+ });
3490
+ return $tea.cast<IsKeepAliveResponse>(await this.callApi(params, req, runtime), new IsKeepAliveResponse({}));
3491
+ }
3492
+
3493
+ async isKeepAlive(request: IsKeepAliveRequest): Promise<IsKeepAliveResponse> {
3494
+ let runtime = new $Util.RuntimeOptions({ });
3495
+ return await this.isKeepAliveWithOptions(request, runtime);
3496
+ }
3497
+
3498
+ async rebootDesktopsWithOptions(request: RebootDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<RebootDesktopsResponse> {
3499
+ Util.validateModel(request);
3500
+ let query = { };
3501
+ if (!Util.isUnset(request.clientId)) {
3502
+ query["ClientId"] = request.clientId;
3503
+ }
3504
+
3505
+ if (!Util.isUnset(request.clientOS)) {
3506
+ query["ClientOS"] = request.clientOS;
3507
+ }
3508
+
3509
+ if (!Util.isUnset(request.clientToken)) {
3510
+ query["ClientToken"] = request.clientToken;
3511
+ }
3512
+
3513
+ if (!Util.isUnset(request.clientVersion)) {
3514
+ query["ClientVersion"] = request.clientVersion;
3515
+ }
3516
+
3517
+ if (!Util.isUnset(request.desktopId)) {
3518
+ query["DesktopId"] = request.desktopId;
3519
+ }
3520
+
3521
+ if (!Util.isUnset(request.loginToken)) {
3522
+ query["LoginToken"] = request.loginToken;
3523
+ }
3524
+
3525
+ if (!Util.isUnset(request.regionId)) {
3526
+ query["RegionId"] = request.regionId;
3527
+ }
3528
+
3529
+ if (!Util.isUnset(request.sessionId)) {
3530
+ query["SessionId"] = request.sessionId;
3531
+ }
3532
+
3533
+ let req = new $OpenApi.OpenApiRequest({
3534
+ query: OpenApiUtil.query(query),
3535
+ });
3536
+ let params = new $OpenApi.Params({
3537
+ action: "RebootDesktops",
3538
+ version: "2020-10-02",
3539
+ protocol: "HTTPS",
3540
+ pathname: "/",
3541
+ method: "POST",
3542
+ authType: "Anonymous",
3543
+ style: "RPC",
3544
+ reqBodyType: "formData",
3545
+ bodyType: "json",
3546
+ });
3547
+ return $tea.cast<RebootDesktopsResponse>(await this.callApi(params, req, runtime), new RebootDesktopsResponse({}));
3548
+ }
3549
+
3550
+ async rebootDesktops(request: RebootDesktopsRequest): Promise<RebootDesktopsResponse> {
3551
+ let runtime = new $Util.RuntimeOptions({ });
3552
+ return await this.rebootDesktopsWithOptions(request, runtime);
3553
+ }
3554
+
3555
+ async refreshLoginTokenWithOptions(request: RefreshLoginTokenRequest, runtime: $Util.RuntimeOptions): Promise<RefreshLoginTokenResponse> {
3556
+ Util.validateModel(request);
3557
+ let query = { };
3558
+ if (!Util.isUnset(request.clientId)) {
3559
+ query["ClientId"] = request.clientId;
3560
+ }
3561
+
3562
+ if (!Util.isUnset(request.directoryId)) {
3563
+ query["DirectoryId"] = request.directoryId;
3564
+ }
3565
+
3566
+ if (!Util.isUnset(request.endUserId)) {
3567
+ query["EndUserId"] = request.endUserId;
3568
+ }
3569
+
3570
+ if (!Util.isUnset(request.loginToken)) {
3571
+ query["LoginToken"] = request.loginToken;
3572
+ }
3573
+
3574
+ if (!Util.isUnset(request.officeSiteId)) {
3575
+ query["OfficeSiteId"] = request.officeSiteId;
3576
+ }
3577
+
3578
+ if (!Util.isUnset(request.regionId)) {
3579
+ query["RegionId"] = request.regionId;
3580
+ }
3581
+
3582
+ if (!Util.isUnset(request.sessionId)) {
3583
+ query["SessionId"] = request.sessionId;
3584
+ }
3585
+
3586
+ let req = new $OpenApi.OpenApiRequest({
3587
+ query: OpenApiUtil.query(query),
3588
+ });
3589
+ let params = new $OpenApi.Params({
3590
+ action: "RefreshLoginToken",
3591
+ version: "2020-10-02",
3592
+ protocol: "HTTPS",
3593
+ pathname: "/",
3594
+ method: "POST",
3595
+ authType: "Anonymous",
3596
+ style: "RPC",
3597
+ reqBodyType: "formData",
3598
+ bodyType: "json",
3599
+ });
3600
+ return $tea.cast<RefreshLoginTokenResponse>(await this.callApi(params, req, runtime), new RefreshLoginTokenResponse({}));
3601
+ }
3602
+
3603
+ async refreshLoginToken(request: RefreshLoginTokenRequest): Promise<RefreshLoginTokenResponse> {
3604
+ let runtime = new $Util.RuntimeOptions({ });
3605
+ return await this.refreshLoginTokenWithOptions(request, runtime);
3606
+ }
3607
+
3608
+ async reportSessionStatusWithOptions(request: ReportSessionStatusRequest, runtime: $Util.RuntimeOptions): Promise<ReportSessionStatusResponse> {
3609
+ Util.validateModel(request);
3610
+ let query = { };
3611
+ if (!Util.isUnset(request.endUserId)) {
3612
+ query["EndUserId"] = request.endUserId;
532
3613
  }
533
3614
 
534
- return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3615
+ if (!Util.isUnset(request.instanceId)) {
3616
+ query["InstanceId"] = request.instanceId;
3617
+ }
3618
+
3619
+ if (!Util.isUnset(request.regionId)) {
3620
+ query["RegionId"] = request.regionId;
3621
+ }
3622
+
3623
+ if (!Util.isUnset(request.sessionChangeTime)) {
3624
+ query["SessionChangeTime"] = request.sessionChangeTime;
3625
+ }
3626
+
3627
+ if (!Util.isUnset(request.sessionId)) {
3628
+ query["SessionId"] = request.sessionId;
3629
+ }
3630
+
3631
+ if (!Util.isUnset(request.sessionStatus)) {
3632
+ query["SessionStatus"] = request.sessionStatus;
3633
+ }
3634
+
3635
+ let req = new $OpenApi.OpenApiRequest({
3636
+ query: OpenApiUtil.query(query),
3637
+ });
3638
+ let params = new $OpenApi.Params({
3639
+ action: "ReportSessionStatus",
3640
+ version: "2020-10-02",
3641
+ protocol: "HTTPS",
3642
+ pathname: "/",
3643
+ method: "POST",
3644
+ authType: "Anonymous",
3645
+ style: "RPC",
3646
+ reqBodyType: "formData",
3647
+ bodyType: "json",
3648
+ });
3649
+ return $tea.cast<ReportSessionStatusResponse>(await this.callApi(params, req, runtime), new ReportSessionStatusResponse({}));
3650
+ }
3651
+
3652
+ async reportSessionStatus(request: ReportSessionStatusRequest): Promise<ReportSessionStatusResponse> {
3653
+ let runtime = new $Util.RuntimeOptions({ });
3654
+ return await this.reportSessionStatusWithOptions(request, runtime);
3655
+ }
3656
+
3657
+ async resetPasswordWithOptions(request: ResetPasswordRequest, runtime: $Util.RuntimeOptions): Promise<ResetPasswordResponse> {
3658
+ Util.validateModel(request);
3659
+ let query = { };
3660
+ if (!Util.isUnset(request.clientId)) {
3661
+ query["ClientId"] = request.clientId;
3662
+ }
3663
+
3664
+ if (!Util.isUnset(request.clientToken)) {
3665
+ query["ClientToken"] = request.clientToken;
3666
+ }
3667
+
3668
+ if (!Util.isUnset(request.email)) {
3669
+ query["Email"] = request.email;
3670
+ }
3671
+
3672
+ if (!Util.isUnset(request.endUserId)) {
3673
+ query["EndUserId"] = request.endUserId;
3674
+ }
3675
+
3676
+ if (!Util.isUnset(request.officeSiteId)) {
3677
+ query["OfficeSiteId"] = request.officeSiteId;
3678
+ }
3679
+
3680
+ if (!Util.isUnset(request.regionId)) {
3681
+ query["RegionId"] = request.regionId;
3682
+ }
3683
+
3684
+ if (!Util.isUnset(request.phone)) {
3685
+ query["phone"] = request.phone;
3686
+ }
3687
+
3688
+ let req = new $OpenApi.OpenApiRequest({
3689
+ query: OpenApiUtil.query(query),
3690
+ });
3691
+ let params = new $OpenApi.Params({
3692
+ action: "ResetPassword",
3693
+ version: "2020-10-02",
3694
+ protocol: "HTTPS",
3695
+ pathname: "/",
3696
+ method: "POST",
3697
+ authType: "Anonymous",
3698
+ style: "RPC",
3699
+ reqBodyType: "formData",
3700
+ bodyType: "json",
3701
+ });
3702
+ return $tea.cast<ResetPasswordResponse>(await this.callApi(params, req, runtime), new ResetPasswordResponse({}));
3703
+ }
3704
+
3705
+ async resetPassword(request: ResetPasswordRequest): Promise<ResetPasswordResponse> {
3706
+ let runtime = new $Util.RuntimeOptions({ });
3707
+ return await this.resetPasswordWithOptions(request, runtime);
3708
+ }
3709
+
3710
+ async resetSnapshotWithOptions(request: ResetSnapshotRequest, runtime: $Util.RuntimeOptions): Promise<ResetSnapshotResponse> {
3711
+ Util.validateModel(request);
3712
+ let query = { };
3713
+ if (!Util.isUnset(request.clientId)) {
3714
+ query["ClientId"] = request.clientId;
3715
+ }
3716
+
3717
+ if (!Util.isUnset(request.loginToken)) {
3718
+ query["LoginToken"] = request.loginToken;
3719
+ }
3720
+
3721
+ if (!Util.isUnset(request.regionId)) {
3722
+ query["RegionId"] = request.regionId;
3723
+ }
3724
+
3725
+ if (!Util.isUnset(request.sessionId)) {
3726
+ query["SessionId"] = request.sessionId;
3727
+ }
3728
+
3729
+ if (!Util.isUnset(request.snapshotId)) {
3730
+ query["SnapshotId"] = request.snapshotId;
3731
+ }
3732
+
3733
+ let req = new $OpenApi.OpenApiRequest({
3734
+ query: OpenApiUtil.query(query),
3735
+ });
3736
+ let params = new $OpenApi.Params({
3737
+ action: "ResetSnapshot",
3738
+ version: "2020-10-02",
3739
+ protocol: "HTTPS",
3740
+ pathname: "/",
3741
+ method: "POST",
3742
+ authType: "Anonymous",
3743
+ style: "RPC",
3744
+ reqBodyType: "formData",
3745
+ bodyType: "json",
3746
+ });
3747
+ return $tea.cast<ResetSnapshotResponse>(await this.callApi(params, req, runtime), new ResetSnapshotResponse({}));
3748
+ }
3749
+
3750
+ async resetSnapshot(request: ResetSnapshotRequest): Promise<ResetSnapshotResponse> {
3751
+ let runtime = new $Util.RuntimeOptions({ });
3752
+ return await this.resetSnapshotWithOptions(request, runtime);
3753
+ }
3754
+
3755
+ async sendTokenCodeWithOptions(request: SendTokenCodeRequest, runtime: $Util.RuntimeOptions): Promise<SendTokenCodeResponse> {
3756
+ Util.validateModel(request);
3757
+ let query = { };
3758
+ if (!Util.isUnset(request.clientId)) {
3759
+ query["ClientId"] = request.clientId;
3760
+ }
3761
+
3762
+ if (!Util.isUnset(request.clientOS)) {
3763
+ query["ClientOS"] = request.clientOS;
3764
+ }
3765
+
3766
+ if (!Util.isUnset(request.clientVersion)) {
3767
+ query["ClientVersion"] = request.clientVersion;
3768
+ }
3769
+
3770
+ if (!Util.isUnset(request.endUserId)) {
3771
+ query["EndUserId"] = request.endUserId;
3772
+ }
3773
+
3774
+ if (!Util.isUnset(request.loginToken)) {
3775
+ query["LoginToken"] = request.loginToken;
3776
+ }
3777
+
3778
+ if (!Util.isUnset(request.officeSiteId)) {
3779
+ query["OfficeSiteId"] = request.officeSiteId;
3780
+ }
3781
+
3782
+ if (!Util.isUnset(request.sessionId)) {
3783
+ query["SessionId"] = request.sessionId;
3784
+ }
3785
+
3786
+ if (!Util.isUnset(request.tokenCode)) {
3787
+ query["TokenCode"] = request.tokenCode;
3788
+ }
3789
+
3790
+ let req = new $OpenApi.OpenApiRequest({
3791
+ query: OpenApiUtil.query(query),
3792
+ });
3793
+ let params = new $OpenApi.Params({
3794
+ action: "SendTokenCode",
3795
+ version: "2020-10-02",
3796
+ protocol: "HTTPS",
3797
+ pathname: "/",
3798
+ method: "POST",
3799
+ authType: "Anonymous",
3800
+ style: "RPC",
3801
+ reqBodyType: "formData",
3802
+ bodyType: "json",
3803
+ });
3804
+ return $tea.cast<SendTokenCodeResponse>(await this.callApi(params, req, runtime), new SendTokenCodeResponse({}));
3805
+ }
3806
+
3807
+ async sendTokenCode(request: SendTokenCodeRequest): Promise<SendTokenCodeResponse> {
3808
+ let runtime = new $Util.RuntimeOptions({ });
3809
+ return await this.sendTokenCodeWithOptions(request, runtime);
3810
+ }
3811
+
3812
+ async setFingerPrintTemplateWithOptions(request: SetFingerPrintTemplateRequest, runtime: $Util.RuntimeOptions): Promise<SetFingerPrintTemplateResponse> {
3813
+ Util.validateModel(request);
3814
+ let query = { };
3815
+ if (!Util.isUnset(request.clientId)) {
3816
+ query["ClientId"] = request.clientId;
3817
+ }
3818
+
3819
+ if (!Util.isUnset(request.clientToken)) {
3820
+ query["ClientToken"] = request.clientToken;
3821
+ }
3822
+
3823
+ if (!Util.isUnset(request.description)) {
3824
+ query["Description"] = request.description;
3825
+ }
3826
+
3827
+ if (!Util.isUnset(request.encryptedFingerPrintTemplate)) {
3828
+ query["EncryptedFingerPrintTemplate"] = request.encryptedFingerPrintTemplate;
3829
+ }
3830
+
3831
+ if (!Util.isUnset(request.encryptedKey)) {
3832
+ query["EncryptedKey"] = request.encryptedKey;
3833
+ }
3834
+
3835
+ if (!Util.isUnset(request.fingerPrintTemplate)) {
3836
+ query["FingerPrintTemplate"] = request.fingerPrintTemplate;
3837
+ }
3838
+
3839
+ if (!Util.isUnset(request.loginToken)) {
3840
+ query["LoginToken"] = request.loginToken;
3841
+ }
3842
+
3843
+ if (!Util.isUnset(request.password)) {
3844
+ query["Password"] = request.password;
3845
+ }
3846
+
3847
+ if (!Util.isUnset(request.regionId)) {
3848
+ query["RegionId"] = request.regionId;
3849
+ }
3850
+
3851
+ if (!Util.isUnset(request.sessionId)) {
3852
+ query["SessionId"] = request.sessionId;
3853
+ }
3854
+
3855
+ let req = new $OpenApi.OpenApiRequest({
3856
+ query: OpenApiUtil.query(query),
3857
+ });
3858
+ let params = new $OpenApi.Params({
3859
+ action: "SetFingerPrintTemplate",
3860
+ version: "2020-10-02",
3861
+ protocol: "HTTPS",
3862
+ pathname: "/",
3863
+ method: "POST",
3864
+ authType: "Anonymous",
3865
+ style: "RPC",
3866
+ reqBodyType: "formData",
3867
+ bodyType: "json",
3868
+ });
3869
+ return $tea.cast<SetFingerPrintTemplateResponse>(await this.callApi(params, req, runtime), new SetFingerPrintTemplateResponse({}));
3870
+ }
3871
+
3872
+ async setFingerPrintTemplate(request: SetFingerPrintTemplateRequest): Promise<SetFingerPrintTemplateResponse> {
3873
+ let runtime = new $Util.RuntimeOptions({ });
3874
+ return await this.setFingerPrintTemplateWithOptions(request, runtime);
3875
+ }
3876
+
3877
+ async setFingerPrintTemplateDescriptionWithOptions(request: SetFingerPrintTemplateDescriptionRequest, runtime: $Util.RuntimeOptions): Promise<SetFingerPrintTemplateDescriptionResponse> {
3878
+ Util.validateModel(request);
3879
+ let query = { };
3880
+ if (!Util.isUnset(request.clientId)) {
3881
+ query["ClientId"] = request.clientId;
3882
+ }
3883
+
3884
+ if (!Util.isUnset(request.clientToken)) {
3885
+ query["ClientToken"] = request.clientToken;
3886
+ }
3887
+
3888
+ if (!Util.isUnset(request.description)) {
3889
+ query["Description"] = request.description;
3890
+ }
3891
+
3892
+ if (!Util.isUnset(request.index)) {
3893
+ query["Index"] = request.index;
3894
+ }
3895
+
3896
+ if (!Util.isUnset(request.loginToken)) {
3897
+ query["LoginToken"] = request.loginToken;
3898
+ }
3899
+
3900
+ if (!Util.isUnset(request.regionId)) {
3901
+ query["RegionId"] = request.regionId;
3902
+ }
3903
+
3904
+ if (!Util.isUnset(request.sessionId)) {
3905
+ query["SessionId"] = request.sessionId;
3906
+ }
3907
+
3908
+ let req = new $OpenApi.OpenApiRequest({
3909
+ query: OpenApiUtil.query(query),
3910
+ });
3911
+ let params = new $OpenApi.Params({
3912
+ action: "SetFingerPrintTemplateDescription",
3913
+ version: "2020-10-02",
3914
+ protocol: "HTTPS",
3915
+ pathname: "/",
3916
+ method: "POST",
3917
+ authType: "Anonymous",
3918
+ style: "RPC",
3919
+ reqBodyType: "formData",
3920
+ bodyType: "json",
3921
+ });
3922
+ return $tea.cast<SetFingerPrintTemplateDescriptionResponse>(await this.callApi(params, req, runtime), new SetFingerPrintTemplateDescriptionResponse({}));
3923
+ }
3924
+
3925
+ async setFingerPrintTemplateDescription(request: SetFingerPrintTemplateDescriptionRequest): Promise<SetFingerPrintTemplateDescriptionResponse> {
3926
+ let runtime = new $Util.RuntimeOptions({ });
3927
+ return await this.setFingerPrintTemplateDescriptionWithOptions(request, runtime);
3928
+ }
3929
+
3930
+ /**
3931
+ * The ID of the client.
3932
+ *
3933
+ * @param request StartDesktopsRequest
3934
+ * @param runtime runtime options for this request RuntimeOptions
3935
+ * @return StartDesktopsResponse
3936
+ */
3937
+ async startDesktopsWithOptions(request: StartDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<StartDesktopsResponse> {
3938
+ Util.validateModel(request);
3939
+ let query = { };
3940
+ if (!Util.isUnset(request.clientId)) {
3941
+ query["ClientId"] = request.clientId;
3942
+ }
3943
+
3944
+ if (!Util.isUnset(request.clientOS)) {
3945
+ query["ClientOS"] = request.clientOS;
3946
+ }
3947
+
3948
+ if (!Util.isUnset(request.clientToken)) {
3949
+ query["ClientToken"] = request.clientToken;
3950
+ }
3951
+
3952
+ if (!Util.isUnset(request.clientVersion)) {
3953
+ query["ClientVersion"] = request.clientVersion;
3954
+ }
3955
+
3956
+ if (!Util.isUnset(request.desktopId)) {
3957
+ query["DesktopId"] = request.desktopId;
3958
+ }
3959
+
3960
+ if (!Util.isUnset(request.loginToken)) {
3961
+ query["LoginToken"] = request.loginToken;
3962
+ }
3963
+
3964
+ if (!Util.isUnset(request.regionId)) {
3965
+ query["RegionId"] = request.regionId;
3966
+ }
3967
+
3968
+ if (!Util.isUnset(request.sessionId)) {
3969
+ query["SessionId"] = request.sessionId;
3970
+ }
3971
+
3972
+ let req = new $OpenApi.OpenApiRequest({
3973
+ query: OpenApiUtil.query(query),
3974
+ });
3975
+ let params = new $OpenApi.Params({
3976
+ action: "StartDesktops",
3977
+ version: "2020-10-02",
3978
+ protocol: "HTTPS",
3979
+ pathname: "/",
3980
+ method: "POST",
3981
+ authType: "Anonymous",
3982
+ style: "RPC",
3983
+ reqBodyType: "formData",
3984
+ bodyType: "json",
3985
+ });
3986
+ return $tea.cast<StartDesktopsResponse>(await this.callApi(params, req, runtime), new StartDesktopsResponse({}));
3987
+ }
3988
+
3989
+ /**
3990
+ * The ID of the client.
3991
+ *
3992
+ * @param request StartDesktopsRequest
3993
+ * @return StartDesktopsResponse
3994
+ */
3995
+ async startDesktops(request: StartDesktopsRequest): Promise<StartDesktopsResponse> {
3996
+ let runtime = new $Util.RuntimeOptions({ });
3997
+ return await this.startDesktopsWithOptions(request, runtime);
3998
+ }
3999
+
4000
+ async startRecordContentWithOptions(request: StartRecordContentRequest, runtime: $Util.RuntimeOptions): Promise<StartRecordContentResponse> {
4001
+ Util.validateModel(request);
4002
+ let query = { };
4003
+ if (!Util.isUnset(request.clientId)) {
4004
+ query["ClientId"] = request.clientId;
4005
+ }
4006
+
4007
+ if (!Util.isUnset(request.clientOS)) {
4008
+ query["ClientOS"] = request.clientOS;
4009
+ }
4010
+
4011
+ if (!Util.isUnset(request.clientVersion)) {
4012
+ query["ClientVersion"] = request.clientVersion;
4013
+ }
4014
+
4015
+ if (!Util.isUnset(request.desktopId)) {
4016
+ query["DesktopId"] = request.desktopId;
4017
+ }
4018
+
4019
+ if (!Util.isUnset(request.filePath)) {
4020
+ query["FilePath"] = request.filePath;
4021
+ }
4022
+
4023
+ if (!Util.isUnset(request.loginToken)) {
4024
+ query["LoginToken"] = request.loginToken;
4025
+ }
4026
+
4027
+ if (!Util.isUnset(request.regionId)) {
4028
+ query["RegionId"] = request.regionId;
4029
+ }
4030
+
4031
+ if (!Util.isUnset(request.sessionId)) {
4032
+ query["SessionId"] = request.sessionId;
4033
+ }
4034
+
4035
+ let req = new $OpenApi.OpenApiRequest({
4036
+ query: OpenApiUtil.query(query),
4037
+ });
4038
+ let params = new $OpenApi.Params({
4039
+ action: "StartRecordContent",
4040
+ version: "2020-10-02",
4041
+ protocol: "HTTPS",
4042
+ pathname: "/",
4043
+ method: "POST",
4044
+ authType: "Anonymous",
4045
+ style: "RPC",
4046
+ reqBodyType: "formData",
4047
+ bodyType: "json",
4048
+ });
4049
+ return $tea.cast<StartRecordContentResponse>(await this.callApi(params, req, runtime), new StartRecordContentResponse({}));
4050
+ }
4051
+
4052
+ async startRecordContent(request: StartRecordContentRequest): Promise<StartRecordContentResponse> {
4053
+ let runtime = new $Util.RuntimeOptions({ });
4054
+ return await this.startRecordContentWithOptions(request, runtime);
4055
+ }
4056
+
4057
+ /**
4058
+ * The ID of the region.
4059
+ *
4060
+ * @param request StopDesktopsRequest
4061
+ * @param runtime runtime options for this request RuntimeOptions
4062
+ * @return StopDesktopsResponse
4063
+ */
4064
+ async stopDesktopsWithOptions(request: StopDesktopsRequest, runtime: $Util.RuntimeOptions): Promise<StopDesktopsResponse> {
4065
+ Util.validateModel(request);
4066
+ let query = { };
4067
+ if (!Util.isUnset(request.clientId)) {
4068
+ query["ClientId"] = request.clientId;
4069
+ }
4070
+
4071
+ if (!Util.isUnset(request.clientOS)) {
4072
+ query["ClientOS"] = request.clientOS;
4073
+ }
4074
+
4075
+ if (!Util.isUnset(request.clientToken)) {
4076
+ query["ClientToken"] = request.clientToken;
4077
+ }
4078
+
4079
+ if (!Util.isUnset(request.clientVersion)) {
4080
+ query["ClientVersion"] = request.clientVersion;
4081
+ }
4082
+
4083
+ if (!Util.isUnset(request.desktopId)) {
4084
+ query["DesktopId"] = request.desktopId;
4085
+ }
4086
+
4087
+ if (!Util.isUnset(request.loginToken)) {
4088
+ query["LoginToken"] = request.loginToken;
4089
+ }
4090
+
4091
+ if (!Util.isUnset(request.regionId)) {
4092
+ query["RegionId"] = request.regionId;
4093
+ }
4094
+
4095
+ if (!Util.isUnset(request.sessionId)) {
4096
+ query["SessionId"] = request.sessionId;
4097
+ }
4098
+
4099
+ let req = new $OpenApi.OpenApiRequest({
4100
+ query: OpenApiUtil.query(query),
4101
+ });
4102
+ let params = new $OpenApi.Params({
4103
+ action: "StopDesktops",
4104
+ version: "2020-10-02",
4105
+ protocol: "HTTPS",
4106
+ pathname: "/",
4107
+ method: "POST",
4108
+ authType: "Anonymous",
4109
+ style: "RPC",
4110
+ reqBodyType: "formData",
4111
+ bodyType: "json",
4112
+ });
4113
+ return $tea.cast<StopDesktopsResponse>(await this.callApi(params, req, runtime), new StopDesktopsResponse({}));
4114
+ }
4115
+
4116
+ /**
4117
+ * The ID of the region.
4118
+ *
4119
+ * @param request StopDesktopsRequest
4120
+ * @return StopDesktopsResponse
4121
+ */
4122
+ async stopDesktops(request: StopDesktopsRequest): Promise<StopDesktopsResponse> {
4123
+ let runtime = new $Util.RuntimeOptions({ });
4124
+ return await this.stopDesktopsWithOptions(request, runtime);
4125
+ }
4126
+
4127
+ async stopRecordContentWithOptions(request: StopRecordContentRequest, runtime: $Util.RuntimeOptions): Promise<StopRecordContentResponse> {
4128
+ Util.validateModel(request);
4129
+ let query = { };
4130
+ if (!Util.isUnset(request.clientId)) {
4131
+ query["ClientId"] = request.clientId;
4132
+ }
4133
+
4134
+ if (!Util.isUnset(request.clientOS)) {
4135
+ query["ClientOS"] = request.clientOS;
4136
+ }
4137
+
4138
+ if (!Util.isUnset(request.clientVersion)) {
4139
+ query["ClientVersion"] = request.clientVersion;
4140
+ }
4141
+
4142
+ if (!Util.isUnset(request.desktopId)) {
4143
+ query["DesktopId"] = request.desktopId;
4144
+ }
4145
+
4146
+ if (!Util.isUnset(request.loginToken)) {
4147
+ query["LoginToken"] = request.loginToken;
4148
+ }
4149
+
4150
+ if (!Util.isUnset(request.regionId)) {
4151
+ query["RegionId"] = request.regionId;
4152
+ }
4153
+
4154
+ if (!Util.isUnset(request.sessionId)) {
4155
+ query["SessionId"] = request.sessionId;
4156
+ }
4157
+
4158
+ let req = new $OpenApi.OpenApiRequest({
4159
+ query: OpenApiUtil.query(query),
4160
+ });
4161
+ let params = new $OpenApi.Params({
4162
+ action: "StopRecordContent",
4163
+ version: "2020-10-02",
4164
+ protocol: "HTTPS",
4165
+ pathname: "/",
4166
+ method: "POST",
4167
+ authType: "Anonymous",
4168
+ style: "RPC",
4169
+ reqBodyType: "formData",
4170
+ bodyType: "json",
4171
+ });
4172
+ return $tea.cast<StopRecordContentResponse>(await this.callApi(params, req, runtime), new StopRecordContentResponse({}));
4173
+ }
4174
+
4175
+ async stopRecordContent(request: StopRecordContentRequest): Promise<StopRecordContentResponse> {
4176
+ let runtime = new $Util.RuntimeOptions({ });
4177
+ return await this.stopRecordContentWithOptions(request, runtime);
4178
+ }
4179
+
4180
+ async unbindUserDesktopWithOptions(request: UnbindUserDesktopRequest, runtime: $Util.RuntimeOptions): Promise<UnbindUserDesktopResponse> {
4181
+ Util.validateModel(request);
4182
+ let query = { };
4183
+ if (!Util.isUnset(request.clientId)) {
4184
+ query["ClientId"] = request.clientId;
4185
+ }
4186
+
4187
+ if (!Util.isUnset(request.clientType)) {
4188
+ query["ClientType"] = request.clientType;
4189
+ }
4190
+
4191
+ if (!Util.isUnset(request.force)) {
4192
+ query["Force"] = request.force;
4193
+ }
4194
+
4195
+ if (!Util.isUnset(request.loginToken)) {
4196
+ query["LoginToken"] = request.loginToken;
4197
+ }
4198
+
4199
+ if (!Util.isUnset(request.regionId)) {
4200
+ query["RegionId"] = request.regionId;
4201
+ }
4202
+
4203
+ if (!Util.isUnset(request.sessionId)) {
4204
+ query["SessionId"] = request.sessionId;
4205
+ }
4206
+
4207
+ if (!Util.isUnset(request.userDesktopId)) {
4208
+ query["UserDesktopId"] = request.userDesktopId;
4209
+ }
4210
+
4211
+ let req = new $OpenApi.OpenApiRequest({
4212
+ query: OpenApiUtil.query(query),
4213
+ });
4214
+ let params = new $OpenApi.Params({
4215
+ action: "UnbindUserDesktop",
4216
+ version: "2020-10-02",
4217
+ protocol: "HTTPS",
4218
+ pathname: "/",
4219
+ method: "POST",
4220
+ authType: "Anonymous",
4221
+ style: "RPC",
4222
+ reqBodyType: "formData",
4223
+ bodyType: "json",
4224
+ });
4225
+ return $tea.cast<UnbindUserDesktopResponse>(await this.callApi(params, req, runtime), new UnbindUserDesktopResponse({}));
4226
+ }
4227
+
4228
+ async unbindUserDesktop(request: UnbindUserDesktopRequest): Promise<UnbindUserDesktopResponse> {
4229
+ let runtime = new $Util.RuntimeOptions({ });
4230
+ return await this.unbindUserDesktopWithOptions(request, runtime);
4231
+ }
4232
+
4233
+ async verifyCredentialWithOptions(request: VerifyCredentialRequest, runtime: $Util.RuntimeOptions): Promise<VerifyCredentialResponse> {
4234
+ Util.validateModel(request);
4235
+ let query = { };
4236
+ if (!Util.isUnset(request.clientId)) {
4237
+ query["ClientId"] = request.clientId;
4238
+ }
4239
+
4240
+ if (!Util.isUnset(request.credential)) {
4241
+ query["Credential"] = request.credential;
4242
+ }
4243
+
4244
+ if (!Util.isUnset(request.credentialType)) {
4245
+ query["CredentialType"] = request.credentialType;
4246
+ }
4247
+
4248
+ if (!Util.isUnset(request.encryptedKey)) {
4249
+ query["EncryptedKey"] = request.encryptedKey;
4250
+ }
4251
+
4252
+ if (!Util.isUnset(request.loginToken)) {
4253
+ query["LoginToken"] = request.loginToken;
4254
+ }
4255
+
4256
+ if (!Util.isUnset(request.officeSiteId)) {
4257
+ query["OfficeSiteId"] = request.officeSiteId;
4258
+ }
4259
+
4260
+ if (!Util.isUnset(request.regionId)) {
4261
+ query["RegionId"] = request.regionId;
4262
+ }
4263
+
4264
+ if (!Util.isUnset(request.sessionId)) {
4265
+ query["SessionId"] = request.sessionId;
4266
+ }
4267
+
4268
+ let req = new $OpenApi.OpenApiRequest({
4269
+ query: OpenApiUtil.query(query),
4270
+ });
4271
+ let params = new $OpenApi.Params({
4272
+ action: "VerifyCredential",
4273
+ version: "2020-10-02",
4274
+ protocol: "HTTPS",
4275
+ pathname: "/",
4276
+ method: "POST",
4277
+ authType: "Anonymous",
4278
+ style: "RPC",
4279
+ reqBodyType: "formData",
4280
+ bodyType: "json",
4281
+ });
4282
+ return $tea.cast<VerifyCredentialResponse>(await this.callApi(params, req, runtime), new VerifyCredentialResponse({}));
4283
+ }
4284
+
4285
+ async verifyCredential(request: VerifyCredentialRequest): Promise<VerifyCredentialResponse> {
4286
+ let runtime = new $Util.RuntimeOptions({ });
4287
+ return await this.verifyCredentialWithOptions(request, runtime);
535
4288
  }
536
4289
 
537
4290
  }