@alicloud/ecd20200930 4.0.2 → 4.1.1

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