@alicloud/ecd20200930 5.7.0 → 5.7.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.
Files changed (53) hide show
  1. package/dist/client.d.ts +23 -8
  2. package/dist/client.js +77 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDriveRequest.d.ts +8 -0
  5. package/dist/models/CreateDriveRequest.js +5 -0
  6. package/dist/models/CreateDriveRequest.js.map +1 -1
  7. package/dist/models/CreateDriveResponseBody.d.ts +1 -1
  8. package/dist/models/DeleteCloudDriveServicesRequest.d.ts +1 -1
  9. package/dist/models/DeleteDriveRequest.d.ts +24 -0
  10. package/dist/models/DeleteDriveRequest.js +6 -0
  11. package/dist/models/DeleteDriveRequest.js.map +1 -1
  12. package/dist/models/DescribeNasfileSystemsRequest.d.ts +5 -9
  13. package/dist/models/DescribeNasfileSystemsRequest.js.map +1 -1
  14. package/dist/models/DescribeNasfileSystemsResponseBody.d.ts +21 -23
  15. package/dist/models/DescribeNasfileSystemsResponseBody.js.map +1 -1
  16. package/dist/models/DescribeOfficeSitesRequest.d.ts +8 -11
  17. package/dist/models/DescribeOfficeSitesRequest.js.map +1 -1
  18. package/dist/models/DescribeOfficeSitesResponseBody.d.ts +69 -54
  19. package/dist/models/DescribeOfficeSitesResponseBody.js +4 -0
  20. package/dist/models/DescribeOfficeSitesResponseBody.js.map +1 -1
  21. package/dist/models/ImportDriveRequest.d.ts +69 -0
  22. package/dist/models/ImportDriveRequest.js +68 -0
  23. package/dist/models/ImportDriveRequest.js.map +1 -0
  24. package/dist/models/ImportDriveResponse.d.ts +19 -0
  25. package/dist/models/ImportDriveResponse.js +69 -0
  26. package/dist/models/ImportDriveResponse.js.map +1 -0
  27. package/dist/models/ImportDriveResponseBody.d.ts +55 -0
  28. package/dist/models/ImportDriveResponseBody.js +66 -0
  29. package/dist/models/ImportDriveResponseBody.js.map +1 -0
  30. package/dist/models/ModifyOfficeSiteAttributeRequest.d.ts +20 -12
  31. package/dist/models/ModifyOfficeSiteAttributeRequest.js +2 -0
  32. package/dist/models/ModifyOfficeSiteAttributeRequest.js.map +1 -1
  33. package/dist/models/UntagResourcesRequest.d.ts +3 -9
  34. package/dist/models/UntagResourcesRequest.js.map +1 -1
  35. package/dist/models/model.d.ts +3 -0
  36. package/dist/models/model.js +14 -8
  37. package/dist/models/model.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/client.ts +90 -8
  40. package/src/models/CreateDriveRequest.ts +13 -0
  41. package/src/models/CreateDriveResponseBody.ts +1 -1
  42. package/src/models/DeleteCloudDriveServicesRequest.ts +1 -1
  43. package/src/models/DeleteDriveRequest.ts +30 -0
  44. package/src/models/DescribeNasfileSystemsRequest.ts +6 -10
  45. package/src/models/DescribeNasfileSystemsResponseBody.ts +21 -23
  46. package/src/models/DescribeOfficeSitesRequest.ts +8 -11
  47. package/src/models/DescribeOfficeSitesResponseBody.ts +73 -54
  48. package/src/models/ImportDriveRequest.ts +92 -0
  49. package/src/models/ImportDriveResponse.ts +40 -0
  50. package/src/models/ImportDriveResponseBody.ts +76 -0
  51. package/src/models/ModifyOfficeSiteAttributeRequest.ts +22 -12
  52. package/src/models/UntagResourcesRequest.ts +3 -9
  53. package/src/models/model.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -1530,7 +1530,7 @@ export default class Client extends OpenApi {
1530
1530
  */
1531
1531
  deleteDirectories(request: $_model.DeleteDirectoriesRequest): Promise<$_model.DeleteDirectoriesResponse>;
1532
1532
  /**
1533
- * Deletes a drive.
1533
+ * Deletes a cloud drive.
1534
1534
  *
1535
1535
  * @param request - DeleteDriveRequest
1536
1536
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1538,7 +1538,7 @@ export default class Client extends OpenApi {
1538
1538
  */
1539
1539
  deleteDriveWithOptions(request: $_model.DeleteDriveRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDriveResponse>;
1540
1540
  /**
1541
- * Deletes a drive.
1541
+ * Deletes a cloud drive.
1542
1542
  *
1543
1543
  * @param request - DeleteDriveRequest
1544
1544
  * @returns DeleteDriveResponse
@@ -2692,7 +2692,7 @@ export default class Client extends OpenApi {
2692
2692
  */
2693
2693
  describeOfficeSiteBridgeInfo(request: $_model.DescribeOfficeSiteBridgeInfoRequest): Promise<$_model.DescribeOfficeSiteBridgeInfoResponse>;
2694
2694
  /**
2695
- * Queries all attributes of an office network, including the ID, name, status, and creation time.
2695
+ * Queries all properties of an office network, including the ID, name, status, and creation time.
2696
2696
  *
2697
2697
  * @param request - DescribeOfficeSitesRequest
2698
2698
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2700,7 +2700,7 @@ export default class Client extends OpenApi {
2700
2700
  */
2701
2701
  describeOfficeSitesWithOptions(request: $_model.DescribeOfficeSitesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeOfficeSitesResponse>;
2702
2702
  /**
2703
- * Queries all attributes of an office network, including the ID, name, status, and creation time.
2703
+ * Queries all properties of an office network, including the ID, name, status, and creation time.
2704
2704
  *
2705
2705
  * @param request - DescribeOfficeSitesRequest
2706
2706
  * @returns DescribeOfficeSitesResponse
@@ -3694,6 +3694,21 @@ export default class Client extends OpenApi {
3694
3694
  * @returns HibernateDesktopsResponse
3695
3695
  */
3696
3696
  hibernateDesktops(request: $_model.HibernateDesktopsRequest): Promise<$_model.HibernateDesktopsResponse>;
3697
+ /**
3698
+ * Imports a UPM user VHD.
3699
+ *
3700
+ * @param request - ImportDriveRequest
3701
+ * @param runtime - runtime options for this request RuntimeOptions
3702
+ * @returns ImportDriveResponse
3703
+ */
3704
+ importDriveWithOptions(request: $_model.ImportDriveRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImportDriveResponse>;
3705
+ /**
3706
+ * Imports a UPM user VHD.
3707
+ *
3708
+ * @param request - ImportDriveRequest
3709
+ * @returns ImportDriveResponse
3710
+ */
3711
+ importDrive(request: $_model.ImportDriveRequest): Promise<$_model.ImportDriveResponse>;
3697
3712
  /**
3698
3713
  * Queries the file list in a cloud drive and retrieves download URLs for files.
3699
3714
  *
@@ -4536,7 +4551,7 @@ export default class Client extends OpenApi {
4536
4551
  */
4537
4552
  modifyOfficeSiteAccelerator(request: $_model.ModifyOfficeSiteAcceleratorRequest): Promise<$_model.ModifyOfficeSiteAcceleratorResponse>;
4538
4553
  /**
4539
- * Modifies the basic attributes of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to cloud computer users.
4554
+ * Modifies the basic properties of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to users of cloud desktops.
4540
4555
  *
4541
4556
  * @param request - ModifyOfficeSiteAttributeRequest
4542
4557
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4544,7 +4559,7 @@ export default class Client extends OpenApi {
4544
4559
  */
4545
4560
  modifyOfficeSiteAttributeWithOptions(request: $_model.ModifyOfficeSiteAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyOfficeSiteAttributeResponse>;
4546
4561
  /**
4547
- * Modifies the basic attributes of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to cloud computer users.
4562
+ * Modifies the basic properties of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to users of cloud desktops.
4548
4563
  *
4549
4564
  * @param request - ModifyOfficeSiteAttributeRequest
4550
4565
  * @returns ModifyOfficeSiteAttributeResponse
@@ -5648,7 +5663,7 @@ export default class Client extends OpenApi {
5648
5663
  */
5649
5664
  unlockVirtualMFADevice(request: $_model.UnlockVirtualMFADeviceRequest): Promise<$_model.UnlockVirtualMFADeviceResponse>;
5650
5665
  /**
5651
- * Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
5666
+ * Removes tags from cloud computers. If a removed tag is not added to any cloud computer, the tag is automatically deleted.
5652
5667
  *
5653
5668
  * @param request - UntagResourcesRequest
5654
5669
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5656,7 +5671,7 @@ export default class Client extends OpenApi {
5656
5671
  */
5657
5672
  untagResourcesWithOptions(request: $_model.UntagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse>;
5658
5673
  /**
5659
- * Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
5674
+ * Removes tags from cloud computers. If a removed tag is not added to any cloud computer, the tag is automatically deleted.
5660
5675
  *
5661
5676
  * @param request - UntagResourcesRequest
5662
5677
  * @returns UntagResourcesResponse
package/dist/client.js CHANGED
@@ -3625,6 +3625,9 @@ class Client extends openapi_core_1.default {
3625
3625
  if (!$dara.isNull(request.externalDomainId)) {
3626
3626
  query["ExternalDomainId"] = request.externalDomainId;
3627
3627
  }
3628
+ if (!$dara.isNull(request.platforms)) {
3629
+ query["Platforms"] = request.platforms;
3630
+ }
3628
3631
  if (!$dara.isNull(request.profileRoaming)) {
3629
3632
  query["ProfileRoaming"] = request.profileRoaming;
3630
3633
  }
@@ -5556,7 +5559,7 @@ class Client extends openapi_core_1.default {
5556
5559
  return await this.deleteDirectoriesWithOptions(request, runtime);
5557
5560
  }
5558
5561
  /**
5559
- * Deletes a drive.
5562
+ * Deletes a cloud drive.
5560
5563
  *
5561
5564
  * @param request - DeleteDriveRequest
5562
5565
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5565,9 +5568,18 @@ class Client extends openapi_core_1.default {
5565
5568
  async deleteDriveWithOptions(request, runtime) {
5566
5569
  request.validate();
5567
5570
  let query = {};
5571
+ if (!$dara.isNull(request.domainId)) {
5572
+ query["DomainId"] = request.domainId;
5573
+ }
5568
5574
  if (!$dara.isNull(request.driveId)) {
5569
5575
  query["DriveId"] = request.driveId;
5570
5576
  }
5577
+ if (!$dara.isNull(request.endUserId)) {
5578
+ query["EndUserId"] = request.endUserId;
5579
+ }
5580
+ if (!$dara.isNull(request.officeSiteId)) {
5581
+ query["OfficeSiteId"] = request.officeSiteId;
5582
+ }
5571
5583
  if (!$dara.isNull(request.regionId)) {
5572
5584
  query["RegionId"] = request.regionId;
5573
5585
  }
@@ -5588,7 +5600,7 @@ class Client extends openapi_core_1.default {
5588
5600
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDriveResponse({}));
5589
5601
  }
5590
5602
  /**
5591
- * Deletes a drive.
5603
+ * Deletes a cloud drive.
5592
5604
  *
5593
5605
  * @param request - DeleteDriveRequest
5594
5606
  * @returns DeleteDriveResponse
@@ -9613,7 +9625,7 @@ class Client extends openapi_core_1.default {
9613
9625
  return await this.describeOfficeSiteBridgeInfoWithOptions(request, runtime);
9614
9626
  }
9615
9627
  /**
9616
- * Queries all attributes of an office network, including the ID, name, status, and creation time.
9628
+ * Queries all properties of an office network, including the ID, name, status, and creation time.
9617
9629
  *
9618
9630
  * @param request - DescribeOfficeSitesRequest
9619
9631
  * @param runtime - runtime options for this request RuntimeOptions
@@ -9666,7 +9678,7 @@ class Client extends openapi_core_1.default {
9666
9678
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeOfficeSitesResponse({}));
9667
9679
  }
9668
9680
  /**
9669
- * Queries all attributes of an office network, including the ID, name, status, and creation time.
9681
+ * Queries all properties of an office network, including the ID, name, status, and creation time.
9670
9682
  *
9671
9683
  * @param request - DescribeOfficeSitesRequest
9672
9684
  * @returns DescribeOfficeSitesResponse
@@ -12763,6 +12775,60 @@ class Client extends openapi_core_1.default {
12763
12775
  let runtime = new $dara.RuntimeOptions({});
12764
12776
  return await this.hibernateDesktopsWithOptions(request, runtime);
12765
12777
  }
12778
+ /**
12779
+ * Imports a UPM user VHD.
12780
+ *
12781
+ * @param request - ImportDriveRequest
12782
+ * @param runtime - runtime options for this request RuntimeOptions
12783
+ * @returns ImportDriveResponse
12784
+ */
12785
+ async importDriveWithOptions(request, runtime) {
12786
+ request.validate();
12787
+ let query = {};
12788
+ if (!$dara.isNull(request.domainId)) {
12789
+ query["DomainId"] = request.domainId;
12790
+ }
12791
+ if (!$dara.isNull(request.endUserId)) {
12792
+ query["EndUserId"] = request.endUserId;
12793
+ }
12794
+ if (!$dara.isNull(request.forceUpdate)) {
12795
+ query["ForceUpdate"] = request.forceUpdate;
12796
+ }
12797
+ if (!$dara.isNull(request.mountUrl)) {
12798
+ query["MountUrl"] = request.mountUrl;
12799
+ }
12800
+ if (!$dara.isNull(request.platform)) {
12801
+ query["Platform"] = request.platform;
12802
+ }
12803
+ if (!$dara.isNull(request.regionId)) {
12804
+ query["RegionId"] = request.regionId;
12805
+ }
12806
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
12807
+ query: openapi_core_2.OpenApiUtil.query(query),
12808
+ });
12809
+ let params = new openapi_core_2.$OpenApiUtil.Params({
12810
+ action: "ImportDrive",
12811
+ version: "2020-09-30",
12812
+ protocol: "HTTPS",
12813
+ pathname: "/",
12814
+ method: "POST",
12815
+ authType: "AK",
12816
+ style: "RPC",
12817
+ reqBodyType: "formData",
12818
+ bodyType: "json",
12819
+ });
12820
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportDriveResponse({}));
12821
+ }
12822
+ /**
12823
+ * Imports a UPM user VHD.
12824
+ *
12825
+ * @param request - ImportDriveRequest
12826
+ * @returns ImportDriveResponse
12827
+ */
12828
+ async importDrive(request) {
12829
+ let runtime = new $dara.RuntimeOptions({});
12830
+ return await this.importDriveWithOptions(request, runtime);
12831
+ }
12766
12832
  /**
12767
12833
  * Queries the file list in a cloud drive and retrieves download URLs for files.
12768
12834
  *
@@ -15833,7 +15899,7 @@ class Client extends openapi_core_1.default {
15833
15899
  return await this.modifyOfficeSiteAcceleratorWithOptions(request, runtime);
15834
15900
  }
15835
15901
  /**
15836
- * Modifies the basic attributes of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to cloud computer users.
15902
+ * Modifies the basic properties of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to users of cloud desktops.
15837
15903
  *
15838
15904
  * @param request - ModifyOfficeSiteAttributeRequest
15839
15905
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15860,6 +15926,9 @@ class Client extends openapi_core_1.default {
15860
15926
  if (!$dara.isNull(request.enableAdminAccess)) {
15861
15927
  query["EnableAdminAccess"] = request.enableAdminAccess;
15862
15928
  }
15929
+ if (!$dara.isNull(request.enableUpm)) {
15930
+ query["EnableUpm"] = request.enableUpm;
15931
+ }
15863
15932
  if (!$dara.isNull(request.needVerifyLoginRisk)) {
15864
15933
  query["NeedVerifyLoginRisk"] = request.needVerifyLoginRisk;
15865
15934
  }
@@ -15898,7 +15967,7 @@ class Client extends openapi_core_1.default {
15898
15967
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyOfficeSiteAttributeResponse({}));
15899
15968
  }
15900
15969
  /**
15901
- * Modifies the basic attributes of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to cloud computer users.
15970
+ * Modifies the basic properties of an office network (formerly workspace), such as the office network name and whether to grant local administrator permissions to users of cloud desktops.
15902
15971
  *
15903
15972
  * @param request - ModifyOfficeSiteAttributeRequest
15904
15973
  * @returns ModifyOfficeSiteAttributeResponse
@@ -19335,7 +19404,7 @@ class Client extends openapi_core_1.default {
19335
19404
  return await this.unlockVirtualMFADeviceWithOptions(request, runtime);
19336
19405
  }
19337
19406
  /**
19338
- * Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
19407
+ * Removes tags from cloud computers. If a removed tag is not added to any cloud computer, the tag is automatically deleted.
19339
19408
  *
19340
19409
  * @param request - UntagResourcesRequest
19341
19410
  * @param runtime - runtime options for this request RuntimeOptions
@@ -19376,7 +19445,7 @@ class Client extends openapi_core_1.default {
19376
19445
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
19377
19446
  }
19378
19447
  /**
19379
- * Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
19448
+ * Removes tags from cloud computers. If a removed tag is not added to any cloud computer, the tag is automatically deleted.
19380
19449
  *
19381
19450
  * @param request - UntagResourcesRequest
19382
19451
  * @returns UntagResourcesResponse