@alicloud/ecd20200930 5.7.1 → 5.8.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.
Files changed (40) hide show
  1. package/dist/client.d.ts +44 -8
  2. package/dist/client.js +110 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDesktopGroupRequest.d.ts +34 -34
  5. package/dist/models/DescribeDesktopIdsByVulNamesRequest.d.ts +64 -0
  6. package/dist/models/DescribeDesktopIdsByVulNamesRequest.js +69 -0
  7. package/dist/models/DescribeDesktopIdsByVulNamesRequest.js.map +1 -0
  8. package/dist/models/DescribeDesktopIdsByVulNamesResponse.d.ts +19 -0
  9. package/dist/models/DescribeDesktopIdsByVulNamesResponse.js +69 -0
  10. package/dist/models/DescribeDesktopIdsByVulNamesResponse.js.map +1 -0
  11. package/dist/models/DescribeDesktopIdsByVulNamesResponseBody.d.ts +54 -0
  12. package/dist/models/DescribeDesktopIdsByVulNamesResponseBody.js +84 -0
  13. package/dist/models/DescribeDesktopIdsByVulNamesResponseBody.js.map +1 -0
  14. package/dist/models/DescribeResourceStatisticByRegionRequest.d.ts +28 -0
  15. package/dist/models/DescribeResourceStatisticByRegionRequest.js +62 -0
  16. package/dist/models/DescribeResourceStatisticByRegionRequest.js.map +1 -0
  17. package/dist/models/DescribeResourceStatisticByRegionResponse.d.ts +19 -0
  18. package/dist/models/DescribeResourceStatisticByRegionResponse.js +69 -0
  19. package/dist/models/DescribeResourceStatisticByRegionResponse.js.map +1 -0
  20. package/dist/models/DescribeResourceStatisticByRegionResponseBody.d.ts +79 -0
  21. package/dist/models/DescribeResourceStatisticByRegionResponseBody.js +116 -0
  22. package/dist/models/DescribeResourceStatisticByRegionResponseBody.js.map +1 -0
  23. package/dist/models/DescribeSnapshotsResponseBody.d.ts +8 -0
  24. package/dist/models/DescribeSnapshotsResponseBody.js.map +1 -1
  25. package/dist/models/ModifyDesktopGroupRequest.d.ts +38 -38
  26. package/dist/models/model.d.ts +9 -0
  27. package/dist/models/model.js +43 -25
  28. package/dist/models/model.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +122 -8
  31. package/src/models/CreateDesktopGroupRequest.ts +34 -34
  32. package/src/models/DescribeDesktopIdsByVulNamesRequest.ts +88 -0
  33. package/src/models/DescribeDesktopIdsByVulNamesResponse.ts +40 -0
  34. package/src/models/DescribeDesktopIdsByVulNamesResponseBody.ts +84 -0
  35. package/src/models/DescribeResourceStatisticByRegionRequest.ts +45 -0
  36. package/src/models/DescribeResourceStatisticByRegionResponse.ts +40 -0
  37. package/src/models/DescribeResourceStatisticByRegionResponseBody.ts +132 -0
  38. package/src/models/DescribeSnapshotsResponseBody.ts +8 -0
  39. package/src/models/ModifyDesktopGroupRequest.ts +38 -38
  40. package/src/models/model.ts +9 -0
package/dist/client.d.ts CHANGED
@@ -738,8 +738,8 @@ export default class Client extends OpenApi {
738
738
  * Creates a shared cloud desktop.
739
739
  *
740
740
  * @remarks
741
- * - For information about the features, common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
742
- * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policies are created.
741
+ * - For information about the features, Common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
742
+ * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policy are created.
743
743
  *
744
744
  * @param request - CreateDesktopGroupRequest
745
745
  * @param runtime - runtime options for this request RuntimeOptions
@@ -750,8 +750,8 @@ export default class Client extends OpenApi {
750
750
  * Creates a shared cloud desktop.
751
751
  *
752
752
  * @remarks
753
- * - For information about the features, common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
754
- * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policies are created.
753
+ * - For information about the features, Common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
754
+ * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policy are created.
755
755
  *
756
756
  * @param request - CreateDesktopGroupRequest
757
757
  * @returns CreateDesktopGroupResponse
@@ -2155,6 +2155,21 @@ export default class Client extends OpenApi {
2155
2155
  * @returns DescribeDesktopGroupsResponse
2156
2156
  */
2157
2157
  describeDesktopGroups(request: $_model.DescribeDesktopGroupsRequest): Promise<$_model.DescribeDesktopGroupsResponse>;
2158
+ /**
2159
+ * Queries a list of cloud desktops with detected vulnerabilities.
2160
+ *
2161
+ * @param request - DescribeDesktopIdsByVulNamesRequest
2162
+ * @param runtime - runtime options for this request RuntimeOptions
2163
+ * @returns DescribeDesktopIdsByVulNamesResponse
2164
+ */
2165
+ describeDesktopIdsByVulNamesWithOptions(request: $_model.DescribeDesktopIdsByVulNamesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDesktopIdsByVulNamesResponse>;
2166
+ /**
2167
+ * Queries a list of cloud desktops with detected vulnerabilities.
2168
+ *
2169
+ * @param request - DescribeDesktopIdsByVulNamesRequest
2170
+ * @returns DescribeDesktopIdsByVulNamesResponse
2171
+ */
2172
+ describeDesktopIdsByVulNames(request: $_model.DescribeDesktopIdsByVulNamesRequest): Promise<$_model.DescribeDesktopIdsByVulNamesResponse>;
2158
2173
  /**
2159
2174
  * Queries the basic information of cloud computers.
2160
2175
  *
@@ -3079,6 +3094,27 @@ export default class Client extends OpenApi {
3079
3094
  * @returns DescribeResourceByCenterPolicyIdResponse
3080
3095
  */
3081
3096
  describeResourceByCenterPolicyId(request: $_model.DescribeResourceByCenterPolicyIdRequest): Promise<$_model.DescribeResourceByCenterPolicyIdResponse>;
3097
+ /**
3098
+ * 查询地域化的统计数据
3099
+ *
3100
+ * @remarks
3101
+ * - 该接口为中心化接口,只可通过上海或新加坡地域的服务进行调用。
3102
+ *
3103
+ * @param request - DescribeResourceStatisticByRegionRequest
3104
+ * @param runtime - runtime options for this request RuntimeOptions
3105
+ * @returns DescribeResourceStatisticByRegionResponse
3106
+ */
3107
+ describeResourceStatisticByRegionWithOptions(request: $_model.DescribeResourceStatisticByRegionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeResourceStatisticByRegionResponse>;
3108
+ /**
3109
+ * 查询地域化的统计数据
3110
+ *
3111
+ * @remarks
3112
+ * - 该接口为中心化接口,只可通过上海或新加坡地域的服务进行调用。
3113
+ *
3114
+ * @param request - DescribeResourceStatisticByRegionRequest
3115
+ * @returns DescribeResourceStatisticByRegionResponse
3116
+ */
3117
+ describeResourceStatisticByRegion(request: $_model.DescribeResourceStatisticByRegionRequest): Promise<$_model.DescribeResourceStatisticByRegionResponse>;
3082
3118
  /**
3083
3119
  * 查询路由条目列表
3084
3120
  *
@@ -4188,10 +4224,10 @@ export default class Client extends OpenApi {
4188
4224
  */
4189
4225
  modifyDesktopChargeType(request: $_model.ModifyDesktopChargeTypeRequest): Promise<$_model.ModifyDesktopChargeTypeResponse>;
4190
4226
  /**
4191
- * Modifies a shared cloud computer.
4227
+ * Modifies a shared cloud desktop.
4192
4228
  *
4193
4229
  * @remarks
4194
- * After you create a shared cloud computer, the system performs automatic creation of the corresponding number of cloud computers in the shared cloud computer based on the scaling policy in Settings and the connection status of end users. These cloud computers use the same cloud computer template and security policy. In different scenarios, you can modify the shared cloud computer configurations as needed, including the shared cloud computer name, cloud computer template, and associated policies.
4230
+ * After a shared cloud desktop is created, the system performs automatic creation of a corresponding number of cloud desktops within the shared cloud desktop based on the shared cloud desktop scaling policy Settings and the end-user connection status. These cloud desktops share the same cloud desktop template and security policy. You can modify the configurations of the shared cloud desktop as needed in different scenarios, such as the name, cloud desktop template, and associated policies.
4195
4231
  *
4196
4232
  * @param request - ModifyDesktopGroupRequest
4197
4233
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4199,10 +4235,10 @@ export default class Client extends OpenApi {
4199
4235
  */
4200
4236
  modifyDesktopGroupWithOptions(request: $_model.ModifyDesktopGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDesktopGroupResponse>;
4201
4237
  /**
4202
- * Modifies a shared cloud computer.
4238
+ * Modifies a shared cloud desktop.
4203
4239
  *
4204
4240
  * @remarks
4205
- * After you create a shared cloud computer, the system performs automatic creation of the corresponding number of cloud computers in the shared cloud computer based on the scaling policy in Settings and the connection status of end users. These cloud computers use the same cloud computer template and security policy. In different scenarios, you can modify the shared cloud computer configurations as needed, including the shared cloud computer name, cloud computer template, and associated policies.
4241
+ * After a shared cloud desktop is created, the system performs automatic creation of a corresponding number of cloud desktops within the shared cloud desktop based on the shared cloud desktop scaling policy Settings and the end-user connection status. These cloud desktops share the same cloud desktop template and security policy. You can modify the configurations of the shared cloud desktop as needed in different scenarios, such as the name, cloud desktop template, and associated policies.
4206
4242
  *
4207
4243
  * @param request - ModifyDesktopGroupRequest
4208
4244
  * @returns ModifyDesktopGroupResponse
package/dist/client.js CHANGED
@@ -2894,8 +2894,8 @@ class Client extends openapi_core_1.default {
2894
2894
  * Creates a shared cloud desktop.
2895
2895
  *
2896
2896
  * @remarks
2897
- * - For information about the features, common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
2898
- * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policies are created.
2897
+ * - For information about the features, Common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
2898
+ * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policy are created.
2899
2899
  *
2900
2900
  * @param request - CreateDesktopGroupRequest
2901
2901
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3107,8 +3107,8 @@ class Client extends openapi_core_1.default {
3107
3107
  * Creates a shared cloud desktop.
3108
3108
  *
3109
3109
  * @remarks
3110
- * - For information about the features, common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
3111
- * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policies are created.
3110
+ * - For information about the features, Common scenarios, limits, and scaling policy of shared cloud desktops, see [Overview of shared cloud desktops (formerly cloud desktop pools)](https://help.aliyun.com/document_detail/290959.html).
3111
+ * - Before you invoke this operation, make sure that required prerequisite resources such as office networks, cloud desktop templates, and policy are created.
3112
3112
  *
3113
3113
  * @param request - CreateDesktopGroupRequest
3114
3114
  * @returns CreateDesktopGroupResponse
@@ -7537,6 +7537,57 @@ class Client extends openapi_core_1.default {
7537
7537
  let runtime = new $dara.RuntimeOptions({});
7538
7538
  return await this.describeDesktopGroupsWithOptions(request, runtime);
7539
7539
  }
7540
+ /**
7541
+ * Queries a list of cloud desktops with detected vulnerabilities.
7542
+ *
7543
+ * @param request - DescribeDesktopIdsByVulNamesRequest
7544
+ * @param runtime - runtime options for this request RuntimeOptions
7545
+ * @returns DescribeDesktopIdsByVulNamesResponse
7546
+ */
7547
+ async describeDesktopIdsByVulNamesWithOptions(request, runtime) {
7548
+ request.validate();
7549
+ let query = {};
7550
+ if (!$dara.isNull(request.necessity)) {
7551
+ query["Necessity"] = request.necessity;
7552
+ }
7553
+ if (!$dara.isNull(request.officeSiteId)) {
7554
+ query["OfficeSiteId"] = request.officeSiteId;
7555
+ }
7556
+ if (!$dara.isNull(request.regionId)) {
7557
+ query["RegionId"] = request.regionId;
7558
+ }
7559
+ if (!$dara.isNull(request.type)) {
7560
+ query["Type"] = request.type;
7561
+ }
7562
+ if (!$dara.isNull(request.vulName)) {
7563
+ query["VulName"] = request.vulName;
7564
+ }
7565
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7566
+ query: openapi_core_2.OpenApiUtil.query(query),
7567
+ });
7568
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7569
+ action: "DescribeDesktopIdsByVulNames",
7570
+ version: "2020-09-30",
7571
+ protocol: "HTTPS",
7572
+ pathname: "/",
7573
+ method: "POST",
7574
+ authType: "AK",
7575
+ style: "RPC",
7576
+ reqBodyType: "formData",
7577
+ bodyType: "json",
7578
+ });
7579
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDesktopIdsByVulNamesResponse({}));
7580
+ }
7581
+ /**
7582
+ * Queries a list of cloud desktops with detected vulnerabilities.
7583
+ *
7584
+ * @param request - DescribeDesktopIdsByVulNamesRequest
7585
+ * @returns DescribeDesktopIdsByVulNamesResponse
7586
+ */
7587
+ async describeDesktopIdsByVulNames(request) {
7588
+ let runtime = new $dara.RuntimeOptions({});
7589
+ return await this.describeDesktopIdsByVulNamesWithOptions(request, runtime);
7590
+ }
7540
7591
  /**
7541
7592
  * Queries the basic information of cloud computers.
7542
7593
  *
@@ -10714,6 +10765,57 @@ class Client extends openapi_core_1.default {
10714
10765
  let runtime = new $dara.RuntimeOptions({});
10715
10766
  return await this.describeResourceByCenterPolicyIdWithOptions(request, runtime);
10716
10767
  }
10768
+ /**
10769
+ * 查询地域化的统计数据
10770
+ *
10771
+ * @remarks
10772
+ * - 该接口为中心化接口,只可通过上海或新加坡地域的服务进行调用。
10773
+ *
10774
+ * @param request - DescribeResourceStatisticByRegionRequest
10775
+ * @param runtime - runtime options for this request RuntimeOptions
10776
+ * @returns DescribeResourceStatisticByRegionResponse
10777
+ */
10778
+ async describeResourceStatisticByRegionWithOptions(request, runtime) {
10779
+ request.validate();
10780
+ let query = {};
10781
+ if (!$dara.isNull(request.includeGroupDesktops)) {
10782
+ query["IncludeGroupDesktops"] = request.includeGroupDesktops;
10783
+ }
10784
+ if (!$dara.isNull(request.regionId)) {
10785
+ query["RegionId"] = request.regionId;
10786
+ }
10787
+ if (!$dara.isNull(request.searchRegionId)) {
10788
+ query["SearchRegionId"] = request.searchRegionId;
10789
+ }
10790
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10791
+ query: openapi_core_2.OpenApiUtil.query(query),
10792
+ });
10793
+ let params = new openapi_core_2.$OpenApiUtil.Params({
10794
+ action: "DescribeResourceStatisticByRegion",
10795
+ version: "2020-09-30",
10796
+ protocol: "HTTPS",
10797
+ pathname: "/",
10798
+ method: "POST",
10799
+ authType: "AK",
10800
+ style: "RPC",
10801
+ reqBodyType: "formData",
10802
+ bodyType: "json",
10803
+ });
10804
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeResourceStatisticByRegionResponse({}));
10805
+ }
10806
+ /**
10807
+ * 查询地域化的统计数据
10808
+ *
10809
+ * @remarks
10810
+ * - 该接口为中心化接口,只可通过上海或新加坡地域的服务进行调用。
10811
+ *
10812
+ * @param request - DescribeResourceStatisticByRegionRequest
10813
+ * @returns DescribeResourceStatisticByRegionResponse
10814
+ */
10815
+ async describeResourceStatisticByRegion(request) {
10816
+ let runtime = new $dara.RuntimeOptions({});
10817
+ return await this.describeResourceStatisticByRegionWithOptions(request, runtime);
10818
+ }
10717
10819
  /**
10718
10820
  * 查询路由条目列表
10719
10821
  *
@@ -14858,10 +14960,10 @@ class Client extends openapi_core_1.default {
14858
14960
  return await this.modifyDesktopChargeTypeWithOptions(request, runtime);
14859
14961
  }
14860
14962
  /**
14861
- * Modifies a shared cloud computer.
14963
+ * Modifies a shared cloud desktop.
14862
14964
  *
14863
14965
  * @remarks
14864
- * After you create a shared cloud computer, the system performs automatic creation of the corresponding number of cloud computers in the shared cloud computer based on the scaling policy in Settings and the connection status of end users. These cloud computers use the same cloud computer template and security policy. In different scenarios, you can modify the shared cloud computer configurations as needed, including the shared cloud computer name, cloud computer template, and associated policies.
14966
+ * After a shared cloud desktop is created, the system performs automatic creation of a corresponding number of cloud desktops within the shared cloud desktop based on the shared cloud desktop scaling policy Settings and the end-user connection status. These cloud desktops share the same cloud desktop template and security policy. You can modify the configurations of the shared cloud desktop as needed in different scenarios, such as the name, cloud desktop template, and associated policies.
14865
14967
  *
14866
14968
  * @param request - ModifyDesktopGroupRequest
14867
14969
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14968,10 +15070,10 @@ class Client extends openapi_core_1.default {
14968
15070
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyDesktopGroupResponse({}));
14969
15071
  }
14970
15072
  /**
14971
- * Modifies a shared cloud computer.
15073
+ * Modifies a shared cloud desktop.
14972
15074
  *
14973
15075
  * @remarks
14974
- * After you create a shared cloud computer, the system performs automatic creation of the corresponding number of cloud computers in the shared cloud computer based on the scaling policy in Settings and the connection status of end users. These cloud computers use the same cloud computer template and security policy. In different scenarios, you can modify the shared cloud computer configurations as needed, including the shared cloud computer name, cloud computer template, and associated policies.
15076
+ * After a shared cloud desktop is created, the system performs automatic creation of a corresponding number of cloud desktops within the shared cloud desktop based on the shared cloud desktop scaling policy Settings and the end-user connection status. These cloud desktops share the same cloud desktop template and security policy. You can modify the configurations of the shared cloud desktop as needed in different scenarios, such as the name, cloud desktop template, and associated policies.
14975
15077
  *
14976
15078
  * @param request - ModifyDesktopGroupRequest
14977
15079
  * @returns ModifyDesktopGroupResponse