@alicloud/ecd20200930 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +80 -0
- package/dist/client.js +154 -9
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +179 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -10248,6 +10248,90 @@ export class DissociateNetworkPackageResponse extends $tea.Model {
|
|
|
10248
10248
|
}
|
|
10249
10249
|
}
|
|
10250
10250
|
|
|
10251
|
+
export class DownloadCdsFileRequest extends $tea.Model {
|
|
10252
|
+
cdsId?: string;
|
|
10253
|
+
endUserId?: string;
|
|
10254
|
+
fileId?: string;
|
|
10255
|
+
groupId?: string;
|
|
10256
|
+
regionId?: string;
|
|
10257
|
+
static names(): { [key: string]: string } {
|
|
10258
|
+
return {
|
|
10259
|
+
cdsId: 'CdsId',
|
|
10260
|
+
endUserId: 'EndUserId',
|
|
10261
|
+
fileId: 'FileId',
|
|
10262
|
+
groupId: 'GroupId',
|
|
10263
|
+
regionId: 'RegionId',
|
|
10264
|
+
};
|
|
10265
|
+
}
|
|
10266
|
+
|
|
10267
|
+
static types(): { [key: string]: any } {
|
|
10268
|
+
return {
|
|
10269
|
+
cdsId: 'string',
|
|
10270
|
+
endUserId: 'string',
|
|
10271
|
+
fileId: 'string',
|
|
10272
|
+
groupId: 'string',
|
|
10273
|
+
regionId: 'string',
|
|
10274
|
+
};
|
|
10275
|
+
}
|
|
10276
|
+
|
|
10277
|
+
constructor(map?: { [key: string]: any }) {
|
|
10278
|
+
super(map);
|
|
10279
|
+
}
|
|
10280
|
+
}
|
|
10281
|
+
|
|
10282
|
+
export class DownloadCdsFileResponseBody extends $tea.Model {
|
|
10283
|
+
downloadFileModel?: DownloadCdsFileResponseBodyDownloadFileModel;
|
|
10284
|
+
message?: string;
|
|
10285
|
+
requestId?: string;
|
|
10286
|
+
success?: boolean;
|
|
10287
|
+
static names(): { [key: string]: string } {
|
|
10288
|
+
return {
|
|
10289
|
+
downloadFileModel: 'DownloadFileModel',
|
|
10290
|
+
message: 'Message',
|
|
10291
|
+
requestId: 'RequestId',
|
|
10292
|
+
success: 'Success',
|
|
10293
|
+
};
|
|
10294
|
+
}
|
|
10295
|
+
|
|
10296
|
+
static types(): { [key: string]: any } {
|
|
10297
|
+
return {
|
|
10298
|
+
downloadFileModel: DownloadCdsFileResponseBodyDownloadFileModel,
|
|
10299
|
+
message: 'string',
|
|
10300
|
+
requestId: 'string',
|
|
10301
|
+
success: 'boolean',
|
|
10302
|
+
};
|
|
10303
|
+
}
|
|
10304
|
+
|
|
10305
|
+
constructor(map?: { [key: string]: any }) {
|
|
10306
|
+
super(map);
|
|
10307
|
+
}
|
|
10308
|
+
}
|
|
10309
|
+
|
|
10310
|
+
export class DownloadCdsFileResponse extends $tea.Model {
|
|
10311
|
+
headers?: { [key: string]: string };
|
|
10312
|
+
statusCode?: number;
|
|
10313
|
+
body?: DownloadCdsFileResponseBody;
|
|
10314
|
+
static names(): { [key: string]: string } {
|
|
10315
|
+
return {
|
|
10316
|
+
headers: 'headers',
|
|
10317
|
+
statusCode: 'statusCode',
|
|
10318
|
+
body: 'body',
|
|
10319
|
+
};
|
|
10320
|
+
}
|
|
10321
|
+
|
|
10322
|
+
static types(): { [key: string]: any } {
|
|
10323
|
+
return {
|
|
10324
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
10325
|
+
statusCode: 'number',
|
|
10326
|
+
body: DownloadCdsFileResponseBody,
|
|
10327
|
+
};
|
|
10328
|
+
}
|
|
10329
|
+
|
|
10330
|
+
constructor(map?: { [key: string]: any }) {
|
|
10331
|
+
super(map);
|
|
10332
|
+
}
|
|
10333
|
+
}
|
|
10334
|
+
|
|
10251
10335
|
export class ExportClientEventsRequest extends $tea.Model {
|
|
10252
10336
|
desktopId?: string;
|
|
10253
10337
|
desktopName?: string;
|
|
@@ -22130,6 +22214,43 @@ export class DisconnectDesktopSessionsResponseBodyInvalidSessions extends $tea.M
|
|
|
22130
22214
|
}
|
|
22131
22215
|
}
|
|
22132
22216
|
|
|
22217
|
+
export class DownloadCdsFileResponseBodyDownloadFileModel extends $tea.Model {
|
|
22218
|
+
downloadType?: string;
|
|
22219
|
+
downloadUrl?: string;
|
|
22220
|
+
expirationSecond?: string;
|
|
22221
|
+
expirationTime?: string;
|
|
22222
|
+
fileId?: string;
|
|
22223
|
+
size?: number;
|
|
22224
|
+
streamUrl?: string;
|
|
22225
|
+
static names(): { [key: string]: string } {
|
|
22226
|
+
return {
|
|
22227
|
+
downloadType: 'DownloadType',
|
|
22228
|
+
downloadUrl: 'DownloadUrl',
|
|
22229
|
+
expirationSecond: 'ExpirationSecond',
|
|
22230
|
+
expirationTime: 'ExpirationTime',
|
|
22231
|
+
fileId: 'FileId',
|
|
22232
|
+
size: 'Size',
|
|
22233
|
+
streamUrl: 'StreamUrl',
|
|
22234
|
+
};
|
|
22235
|
+
}
|
|
22236
|
+
|
|
22237
|
+
static types(): { [key: string]: any } {
|
|
22238
|
+
return {
|
|
22239
|
+
downloadType: 'string',
|
|
22240
|
+
downloadUrl: 'string',
|
|
22241
|
+
expirationSecond: 'string',
|
|
22242
|
+
expirationTime: 'string',
|
|
22243
|
+
fileId: 'string',
|
|
22244
|
+
size: 'number',
|
|
22245
|
+
streamUrl: 'string',
|
|
22246
|
+
};
|
|
22247
|
+
}
|
|
22248
|
+
|
|
22249
|
+
constructor(map?: { [key: string]: any }) {
|
|
22250
|
+
super(map);
|
|
22251
|
+
}
|
|
22252
|
+
}
|
|
22253
|
+
|
|
22133
22254
|
export class ExportDesktopGroupInfoRequestTag extends $tea.Model {
|
|
22134
22255
|
key?: string;
|
|
22135
22256
|
value?: string;
|
|
@@ -31375,6 +31496,64 @@ export default class Client extends OpenApi {
|
|
|
31375
31496
|
return await this.dissociateNetworkPackageWithOptions(request, runtime);
|
|
31376
31497
|
}
|
|
31377
31498
|
|
|
31499
|
+
/**
|
|
31500
|
+
* @summary CDS文件下载
|
|
31501
|
+
*
|
|
31502
|
+
* @param request DownloadCdsFileRequest
|
|
31503
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31504
|
+
* @return DownloadCdsFileResponse
|
|
31505
|
+
*/
|
|
31506
|
+
async downloadCdsFileWithOptions(request: DownloadCdsFileRequest, runtime: $Util.RuntimeOptions): Promise<DownloadCdsFileResponse> {
|
|
31507
|
+
Util.validateModel(request);
|
|
31508
|
+
let query = { };
|
|
31509
|
+
if (!Util.isUnset(request.cdsId)) {
|
|
31510
|
+
query["CdsId"] = request.cdsId;
|
|
31511
|
+
}
|
|
31512
|
+
|
|
31513
|
+
if (!Util.isUnset(request.endUserId)) {
|
|
31514
|
+
query["EndUserId"] = request.endUserId;
|
|
31515
|
+
}
|
|
31516
|
+
|
|
31517
|
+
if (!Util.isUnset(request.fileId)) {
|
|
31518
|
+
query["FileId"] = request.fileId;
|
|
31519
|
+
}
|
|
31520
|
+
|
|
31521
|
+
if (!Util.isUnset(request.groupId)) {
|
|
31522
|
+
query["GroupId"] = request.groupId;
|
|
31523
|
+
}
|
|
31524
|
+
|
|
31525
|
+
if (!Util.isUnset(request.regionId)) {
|
|
31526
|
+
query["RegionId"] = request.regionId;
|
|
31527
|
+
}
|
|
31528
|
+
|
|
31529
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
31530
|
+
query: OpenApiUtil.query(query),
|
|
31531
|
+
});
|
|
31532
|
+
let params = new $OpenApi.Params({
|
|
31533
|
+
action: "DownloadCdsFile",
|
|
31534
|
+
version: "2020-09-30",
|
|
31535
|
+
protocol: "HTTPS",
|
|
31536
|
+
pathname: "/",
|
|
31537
|
+
method: "POST",
|
|
31538
|
+
authType: "AK",
|
|
31539
|
+
style: "RPC",
|
|
31540
|
+
reqBodyType: "formData",
|
|
31541
|
+
bodyType: "json",
|
|
31542
|
+
});
|
|
31543
|
+
return $tea.cast<DownloadCdsFileResponse>(await this.callApi(params, req, runtime), new DownloadCdsFileResponse({}));
|
|
31544
|
+
}
|
|
31545
|
+
|
|
31546
|
+
/**
|
|
31547
|
+
* @summary CDS文件下载
|
|
31548
|
+
*
|
|
31549
|
+
* @param request DownloadCdsFileRequest
|
|
31550
|
+
* @return DownloadCdsFileResponse
|
|
31551
|
+
*/
|
|
31552
|
+
async downloadCdsFile(request: DownloadCdsFileRequest): Promise<DownloadCdsFileResponse> {
|
|
31553
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
31554
|
+
return await this.downloadCdsFileWithOptions(request, runtime);
|
|
31555
|
+
}
|
|
31556
|
+
|
|
31378
31557
|
/**
|
|
31379
31558
|
* @summary Exports events that occur on a cloud desktop from an Alibaba Cloud Workspace client.
|
|
31380
31559
|
*
|