@alicloud/ecd20200930 3.1.0 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ecd20200930",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2565,7 +2565,10 @@ export class CreateCdsFileShareLinkResponse extends $tea.Model {
2565
2565
  }
2566
2566
 
2567
2567
  export class CreateCloudDriveServiceRequest extends $tea.Model {
2568
+ autoPay?: boolean;
2569
+ autoRenew?: boolean;
2568
2570
  bizType?: number;
2571
+ cdsChargeType?: string;
2569
2572
  cenId?: string;
2570
2573
  domainName?: string;
2571
2574
  endUserId?: string[];
@@ -2573,12 +2576,18 @@ export class CreateCloudDriveServiceRequest extends $tea.Model {
2573
2576
  name?: string;
2574
2577
  officeSiteId?: string;
2575
2578
  officeSiteType?: string;
2579
+ period?: number;
2580
+ periodUnit?: string;
2576
2581
  regionId?: string;
2577
2582
  solutionId?: string;
2583
+ userCount?: number;
2578
2584
  userMaxSize?: number;
2579
2585
  static names(): { [key: string]: string } {
2580
2586
  return {
2587
+ autoPay: 'AutoPay',
2588
+ autoRenew: 'AutoRenew',
2581
2589
  bizType: 'BizType',
2590
+ cdsChargeType: 'CdsChargeType',
2582
2591
  cenId: 'CenId',
2583
2592
  domainName: 'DomainName',
2584
2593
  endUserId: 'EndUserId',
@@ -2586,15 +2595,21 @@ export class CreateCloudDriveServiceRequest extends $tea.Model {
2586
2595
  name: 'Name',
2587
2596
  officeSiteId: 'OfficeSiteId',
2588
2597
  officeSiteType: 'OfficeSiteType',
2598
+ period: 'Period',
2599
+ periodUnit: 'PeriodUnit',
2589
2600
  regionId: 'RegionId',
2590
2601
  solutionId: 'SolutionId',
2602
+ userCount: 'UserCount',
2591
2603
  userMaxSize: 'UserMaxSize',
2592
2604
  };
2593
2605
  }
2594
2606
 
2595
2607
  static types(): { [key: string]: any } {
2596
2608
  return {
2609
+ autoPay: 'boolean',
2610
+ autoRenew: 'boolean',
2597
2611
  bizType: 'number',
2612
+ cdsChargeType: 'string',
2598
2613
  cenId: 'string',
2599
2614
  domainName: 'string',
2600
2615
  endUserId: { 'type': 'array', 'itemType': 'string' },
@@ -2602,8 +2617,11 @@ export class CreateCloudDriveServiceRequest extends $tea.Model {
2602
2617
  name: 'string',
2603
2618
  officeSiteId: 'string',
2604
2619
  officeSiteType: 'string',
2620
+ period: 'number',
2621
+ periodUnit: 'string',
2605
2622
  regionId: 'string',
2606
2623
  solutionId: 'string',
2624
+ userCount: 'number',
2607
2625
  userMaxSize: 'number',
2608
2626
  };
2609
2627
  }
@@ -2618,8 +2636,10 @@ export class CreateCloudDriveServiceResponseBody extends $tea.Model {
2618
2636
  cdsName?: string;
2619
2637
  cenId?: string;
2620
2638
  domainName?: string;
2639
+ errorCode?: string;
2621
2640
  maxSize?: string;
2622
2641
  officeSiteType?: string;
2642
+ orderId?: string;
2623
2643
  requestId?: string;
2624
2644
  static names(): { [key: string]: string } {
2625
2645
  return {
@@ -2627,8 +2647,10 @@ export class CreateCloudDriveServiceResponseBody extends $tea.Model {
2627
2647
  cdsName: 'CdsName',
2628
2648
  cenId: 'CenId',
2629
2649
  domainName: 'DomainName',
2650
+ errorCode: 'ErrorCode',
2630
2651
  maxSize: 'MaxSize',
2631
2652
  officeSiteType: 'OfficeSiteType',
2653
+ orderId: 'OrderId',
2632
2654
  requestId: 'RequestId',
2633
2655
  };
2634
2656
  }
@@ -2639,8 +2661,10 @@ export class CreateCloudDriveServiceResponseBody extends $tea.Model {
2639
2661
  cdsName: 'string',
2640
2662
  cenId: 'string',
2641
2663
  domainName: 'string',
2664
+ errorCode: 'string',
2642
2665
  maxSize: 'string',
2643
2666
  officeSiteType: 'string',
2667
+ orderId: 'string',
2644
2668
  requestId: 'string',
2645
2669
  };
2646
2670
  }
@@ -16460,6 +16484,84 @@ export class TagResourcesResponse extends $tea.Model {
16460
16484
  }
16461
16485
  }
16462
16486
 
16487
+ export class UnbindUserDesktopRequest extends $tea.Model {
16488
+ desktopAgentIds?: string[];
16489
+ desktopGroupId?: string;
16490
+ desktopIds?: string[];
16491
+ force?: boolean;
16492
+ reason?: string;
16493
+ userDesktopIds?: string[];
16494
+ static names(): { [key: string]: string } {
16495
+ return {
16496
+ desktopAgentIds: 'DesktopAgentIds',
16497
+ desktopGroupId: 'DesktopGroupId',
16498
+ desktopIds: 'DesktopIds',
16499
+ force: 'Force',
16500
+ reason: 'Reason',
16501
+ userDesktopIds: 'UserDesktopIds',
16502
+ };
16503
+ }
16504
+
16505
+ static types(): { [key: string]: any } {
16506
+ return {
16507
+ desktopAgentIds: { 'type': 'array', 'itemType': 'string' },
16508
+ desktopGroupId: 'string',
16509
+ desktopIds: { 'type': 'array', 'itemType': 'string' },
16510
+ force: 'boolean',
16511
+ reason: 'string',
16512
+ userDesktopIds: { 'type': 'array', 'itemType': 'string' },
16513
+ };
16514
+ }
16515
+
16516
+ constructor(map?: { [key: string]: any }) {
16517
+ super(map);
16518
+ }
16519
+ }
16520
+
16521
+ export class UnbindUserDesktopResponseBody extends $tea.Model {
16522
+ requestId?: string;
16523
+ static names(): { [key: string]: string } {
16524
+ return {
16525
+ requestId: 'RequestId',
16526
+ };
16527
+ }
16528
+
16529
+ static types(): { [key: string]: any } {
16530
+ return {
16531
+ requestId: 'string',
16532
+ };
16533
+ }
16534
+
16535
+ constructor(map?: { [key: string]: any }) {
16536
+ super(map);
16537
+ }
16538
+ }
16539
+
16540
+ export class UnbindUserDesktopResponse extends $tea.Model {
16541
+ headers?: { [key: string]: string };
16542
+ statusCode?: number;
16543
+ body?: UnbindUserDesktopResponseBody;
16544
+ static names(): { [key: string]: string } {
16545
+ return {
16546
+ headers: 'headers',
16547
+ statusCode: 'statusCode',
16548
+ body: 'body',
16549
+ };
16550
+ }
16551
+
16552
+ static types(): { [key: string]: any } {
16553
+ return {
16554
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
16555
+ statusCode: 'number',
16556
+ body: UnbindUserDesktopResponseBody,
16557
+ };
16558
+ }
16559
+
16560
+ constructor(map?: { [key: string]: any }) {
16561
+ super(map);
16562
+ }
16563
+ }
16564
+
16463
16565
  export class UnlockVirtualMFADeviceRequest extends $tea.Model {
16464
16566
  regionId?: string;
16465
16567
  serialNumber?: string;
@@ -23396,7 +23498,7 @@ export default class Client extends OpenApi {
23396
23498
  * * When you create a workspace of the enterprise AD account type, AD connectors are automatically created to allow you to connect to enterprise AD systems. You are charged for the AD connectors. For more information, see [Billing overview](~~188395~~).
23397
23499
  * * After you call this operation to create a workspace of the enterprise AD account type, perform the following steps to configure the AD domain: 1. Configure the conditional forwarder in the Domain Name System (DNS) server. 2. Configure the trust relationship in the AD domain server, and call the [ConfigADConnectorTrust](~~311258~~) operation to configure the trust relationship for the workspace of the enterprise AD account type. 3. Call the [ListUserAdOrganizationUnits](~~311259~~) operation to obtain the organizational unit (OU) details of the AD domain. Then, call the [ConfigADConnectorUser](~~311262~~) operation to specify an OU and an administrator for the workspace of the enterprise AD account type.
23398
23500
  * **
23399
- * **Note**If you specify DomainUserName and DomainPassword when you create a workspace of the enterprise AD account type, you must configure only the conditional forwarder. If you do not specify DomainUserName or DomainPassword, you must configure the conditional forwarder, trust relationship, and OU.
23501
+ * **Note** If you specify DomainUserName and DomainPassword when you create a workspace of the enterprise AD account type, you must configure only the conditional forwarder. If you do not specify DomainUserName or DomainPassword, you must configure the conditional forwarder, trust relationship, and OU.
23400
23502
  * For more information, see [Create a workspace of the enterprise AD account type](~~214469~~).
23401
23503
  *
23402
23504
  * @param request CreateADConnectorOfficeSiteRequest
@@ -23507,7 +23609,7 @@ export default class Client extends OpenApi {
23507
23609
  * * When you create a workspace of the enterprise AD account type, AD connectors are automatically created to allow you to connect to enterprise AD systems. You are charged for the AD connectors. For more information, see [Billing overview](~~188395~~).
23508
23610
  * * After you call this operation to create a workspace of the enterprise AD account type, perform the following steps to configure the AD domain: 1. Configure the conditional forwarder in the Domain Name System (DNS) server. 2. Configure the trust relationship in the AD domain server, and call the [ConfigADConnectorTrust](~~311258~~) operation to configure the trust relationship for the workspace of the enterprise AD account type. 3. Call the [ListUserAdOrganizationUnits](~~311259~~) operation to obtain the organizational unit (OU) details of the AD domain. Then, call the [ConfigADConnectorUser](~~311262~~) operation to specify an OU and an administrator for the workspace of the enterprise AD account type.
23509
23611
  * **
23510
- * **Note**If you specify DomainUserName and DomainPassword when you create a workspace of the enterprise AD account type, you must configure only the conditional forwarder. If you do not specify DomainUserName or DomainPassword, you must configure the conditional forwarder, trust relationship, and OU.
23612
+ * **Note** If you specify DomainUserName and DomainPassword when you create a workspace of the enterprise AD account type, you must configure only the conditional forwarder. If you do not specify DomainUserName or DomainPassword, you must configure the conditional forwarder, trust relationship, and OU.
23511
23613
  * For more information, see [Create a workspace of the enterprise AD account type](~~214469~~).
23512
23614
  *
23513
23615
  * @param request CreateADConnectorOfficeSiteRequest
@@ -23869,10 +23971,22 @@ export default class Client extends OpenApi {
23869
23971
  async createCloudDriveServiceWithOptions(request: CreateCloudDriveServiceRequest, runtime: $Util.RuntimeOptions): Promise<CreateCloudDriveServiceResponse> {
23870
23972
  Util.validateModel(request);
23871
23973
  let query = { };
23974
+ if (!Util.isUnset(request.autoPay)) {
23975
+ query["AutoPay"] = request.autoPay;
23976
+ }
23977
+
23978
+ if (!Util.isUnset(request.autoRenew)) {
23979
+ query["AutoRenew"] = request.autoRenew;
23980
+ }
23981
+
23872
23982
  if (!Util.isUnset(request.bizType)) {
23873
23983
  query["BizType"] = request.bizType;
23874
23984
  }
23875
23985
 
23986
+ if (!Util.isUnset(request.cdsChargeType)) {
23987
+ query["CdsChargeType"] = request.cdsChargeType;
23988
+ }
23989
+
23876
23990
  if (!Util.isUnset(request.cenId)) {
23877
23991
  query["CenId"] = request.cenId;
23878
23992
  }
@@ -23901,6 +24015,14 @@ export default class Client extends OpenApi {
23901
24015
  query["OfficeSiteType"] = request.officeSiteType;
23902
24016
  }
23903
24017
 
24018
+ if (!Util.isUnset(request.period)) {
24019
+ query["Period"] = request.period;
24020
+ }
24021
+
24022
+ if (!Util.isUnset(request.periodUnit)) {
24023
+ query["PeriodUnit"] = request.periodUnit;
24024
+ }
24025
+
23904
24026
  if (!Util.isUnset(request.regionId)) {
23905
24027
  query["RegionId"] = request.regionId;
23906
24028
  }
@@ -23909,6 +24031,10 @@ export default class Client extends OpenApi {
23909
24031
  query["SolutionId"] = request.solutionId;
23910
24032
  }
23911
24033
 
24034
+ if (!Util.isUnset(request.userCount)) {
24035
+ query["UserCount"] = request.userCount;
24036
+ }
24037
+
23912
24038
  if (!Util.isUnset(request.userMaxSize)) {
23913
24039
  query["UserMaxSize"] = request.userMaxSize;
23914
24040
  }
@@ -26065,7 +26191,7 @@ export default class Client extends OpenApi {
26065
26191
  }
26066
26192
 
26067
26193
  /**
26068
- * The version of the client.
26194
+ * You can audit the operation logs of regular users to improve security. The operation logs record events such as desktop startup, shutdown, and session disconnection.
26069
26195
  *
26070
26196
  * @param request DescribeClientEventsRequest
26071
26197
  * @param runtime runtime options for this request RuntimeOptions
@@ -26148,7 +26274,7 @@ export default class Client extends OpenApi {
26148
26274
  }
26149
26275
 
26150
26276
  /**
26151
- * The version of the client.
26277
+ * You can audit the operation logs of regular users to improve security. The operation logs record events such as desktop startup, shutdown, and session disconnection.
26152
26278
  *
26153
26279
  * @param request DescribeClientEventsRequest
26154
26280
  * @return DescribeClientEventsResponse
@@ -30420,9 +30546,10 @@ export default class Client extends OpenApi {
30420
30546
  }
30421
30547
 
30422
30548
  /**
30423
- * * Before you call this operation, make sure that you are familiar with the billing methods of cloud desktops. For more information, see [Billing overview](~~188395~~).
30549
+ * * Before you call this operation, make sure that you are familiar with the billing methods of cloud desktops in Elastic Desktop Service (EDS). For more information, see [Billing overview](~~188395~~).
30424
30550
  * * Before you call this operation, make sure that the cloud desktop that you want to manage is in the Running or Stopped state and no overdue payments of the cloud desktop are generated.
30425
30551
  * * After the order payment is completed, the system starts to change the billing method of the cloud desktop. During the change, you cannot perform operations, such as starting or stopping the cloud desktop, and changing configurations of the cloud desktop.
30552
+ * * After you change the billing method of the cloud desktop from subscription to pay-as-you-go, you may get a refund. For more information, see [Change a subscription cloud desktop to a pay-as-you-go one](https://help.aliyun.com/document_detail/439964.html).
30426
30553
  *
30427
30554
  * @param request ModifyDesktopChargeTypeRequest
30428
30555
  * @param runtime runtime options for this request RuntimeOptions
@@ -30481,9 +30608,10 @@ export default class Client extends OpenApi {
30481
30608
  }
30482
30609
 
30483
30610
  /**
30484
- * * Before you call this operation, make sure that you are familiar with the billing methods of cloud desktops. For more information, see [Billing overview](~~188395~~).
30611
+ * * Before you call this operation, make sure that you are familiar with the billing methods of cloud desktops in Elastic Desktop Service (EDS). For more information, see [Billing overview](~~188395~~).
30485
30612
  * * Before you call this operation, make sure that the cloud desktop that you want to manage is in the Running or Stopped state and no overdue payments of the cloud desktop are generated.
30486
30613
  * * After the order payment is completed, the system starts to change the billing method of the cloud desktop. During the change, you cannot perform operations, such as starting or stopping the cloud desktop, and changing configurations of the cloud desktop.
30614
+ * * After you change the billing method of the cloud desktop from subscription to pay-as-you-go, you may get a refund. For more information, see [Change a subscription cloud desktop to a pay-as-you-go one](https://help.aliyun.com/document_detail/439964.html).
30487
30615
  *
30488
30616
  * @param request ModifyDesktopChargeTypeRequest
30489
30617
  * @return ModifyDesktopChargeTypeResponse
@@ -32444,7 +32572,7 @@ export default class Client extends OpenApi {
32444
32572
  * Before you call this operation, make sure that the following operations are performed:
32445
32573
  * * The data that you want to retain in the disk is backed up.
32446
32574
  * **
32447
- * **Note**The disk restoration operation is irreversible. After you restore data on a disk, the disk is restored to the status at the point in time when the snapshot was created. Data that is generated between the snapshot creation time and the current time is lost. Before you restore a disk from a snapshot, make sure that you back up important data.
32575
+ * **Note** The disk restoration operation is irreversible. After you restore data on a disk, the disk is restored to the status at the point in time when the snapshot was created. Data that is generated between the snapshot creation time and the current time is lost. Before you restore a disk from a snapshot, make sure that you back up important data.
32448
32576
  * * The cloud desktop whose disk you want to restore is stopped.
32449
32577
  *
32450
32578
  * @param request ResetSnapshotRequest
@@ -32483,7 +32611,7 @@ export default class Client extends OpenApi {
32483
32611
  * Before you call this operation, make sure that the following operations are performed:
32484
32612
  * * The data that you want to retain in the disk is backed up.
32485
32613
  * **
32486
- * **Note**The disk restoration operation is irreversible. After you restore data on a disk, the disk is restored to the status at the point in time when the snapshot was created. Data that is generated between the snapshot creation time and the current time is lost. Before you restore a disk from a snapshot, make sure that you back up important data.
32614
+ * **Note** The disk restoration operation is irreversible. After you restore data on a disk, the disk is restored to the status at the point in time when the snapshot was created. Data that is generated between the snapshot creation time and the current time is lost. Before you restore a disk from a snapshot, make sure that you back up important data.
32487
32615
  * * The cloud desktop whose disk you want to restore is stopped.
32488
32616
  *
32489
32617
  * @param request ResetSnapshotRequest
@@ -33069,7 +33197,7 @@ export default class Client extends OpenApi {
33069
33197
  }
33070
33198
 
33071
33199
  /**
33072
- * The ID of the execution.
33200
+ * When you stop a one-time execution of a command, the command continues to run on the cloud desktops where it has started to run, and will not run on the cloud desktops where it has not started to run.
33073
33201
  *
33074
33202
  * @param request StopInvocationRequest
33075
33203
  * @param runtime runtime options for this request RuntimeOptions
@@ -33108,7 +33236,7 @@ export default class Client extends OpenApi {
33108
33236
  }
33109
33237
 
33110
33238
  /**
33111
- * The ID of the execution.
33239
+ * When you stop a one-time execution of a command, the command continues to run on the cloud desktops where it has started to run, and will not run on the cloud desktops where it has not started to run.
33112
33240
  *
33113
33241
  * @param request StopInvocationRequest
33114
33242
  * @return StopInvocationResponse
@@ -33172,6 +33300,55 @@ export default class Client extends OpenApi {
33172
33300
  return await this.tagResourcesWithOptions(request, runtime);
33173
33301
  }
33174
33302
 
33303
+ async unbindUserDesktopWithOptions(request: UnbindUserDesktopRequest, runtime: $Util.RuntimeOptions): Promise<UnbindUserDesktopResponse> {
33304
+ Util.validateModel(request);
33305
+ let query = { };
33306
+ if (!Util.isUnset(request.desktopAgentIds)) {
33307
+ query["DesktopAgentIds"] = request.desktopAgentIds;
33308
+ }
33309
+
33310
+ if (!Util.isUnset(request.desktopGroupId)) {
33311
+ query["DesktopGroupId"] = request.desktopGroupId;
33312
+ }
33313
+
33314
+ if (!Util.isUnset(request.desktopIds)) {
33315
+ query["DesktopIds"] = request.desktopIds;
33316
+ }
33317
+
33318
+ if (!Util.isUnset(request.force)) {
33319
+ query["Force"] = request.force;
33320
+ }
33321
+
33322
+ if (!Util.isUnset(request.reason)) {
33323
+ query["Reason"] = request.reason;
33324
+ }
33325
+
33326
+ if (!Util.isUnset(request.userDesktopIds)) {
33327
+ query["UserDesktopIds"] = request.userDesktopIds;
33328
+ }
33329
+
33330
+ let req = new $OpenApi.OpenApiRequest({
33331
+ query: OpenApiUtil.query(query),
33332
+ });
33333
+ let params = new $OpenApi.Params({
33334
+ action: "UnbindUserDesktop",
33335
+ version: "2020-09-30",
33336
+ protocol: "HTTPS",
33337
+ pathname: "/",
33338
+ method: "POST",
33339
+ authType: "AK",
33340
+ style: "RPC",
33341
+ reqBodyType: "formData",
33342
+ bodyType: "json",
33343
+ });
33344
+ return $tea.cast<UnbindUserDesktopResponse>(await this.callApi(params, req, runtime), new UnbindUserDesktopResponse({}));
33345
+ }
33346
+
33347
+ async unbindUserDesktop(request: UnbindUserDesktopRequest): Promise<UnbindUserDesktopResponse> {
33348
+ let runtime = new $Util.RuntimeOptions({ });
33349
+ return await this.unbindUserDesktopWithOptions(request, runtime);
33350
+ }
33351
+
33175
33352
  async unlockVirtualMFADeviceWithOptions(request: UnlockVirtualMFADeviceRequest, runtime: $Util.RuntimeOptions): Promise<UnlockVirtualMFADeviceResponse> {
33176
33353
  Util.validateModel(request);
33177
33354
  let query = { };