@alicloud/appstream-center20210901 5.10.0 → 5.11.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 (175) hide show
  1. package/dist/client.d.ts +312 -56
  2. package/dist/client.js +855 -56
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeEventsRequest.d.ts +154 -0
  5. package/dist/models/DescribeEventsRequest.js +88 -0
  6. package/dist/models/DescribeEventsRequest.js.map +1 -0
  7. package/dist/models/DescribeEventsResponse.d.ts +19 -0
  8. package/dist/models/DescribeEventsResponse.js +69 -0
  9. package/dist/models/DescribeEventsResponse.js.map +1 -0
  10. package/dist/models/DescribeEventsResponseBody.d.ts +158 -0
  11. package/dist/models/DescribeEventsResponseBody.js +110 -0
  12. package/dist/models/DescribeEventsResponseBody.js.map +1 -0
  13. package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.d.ts +28 -20
  14. package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.js +2 -0
  15. package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.js.map +1 -1
  16. package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.d.ts +34 -21
  17. package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.js +4 -0
  18. package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.js.map +1 -1
  19. package/dist/models/ListPublishedAppInstanceGroupRequest.d.ts +28 -20
  20. package/dist/models/ListPublishedAppInstanceGroupRequest.js +2 -0
  21. package/dist/models/ListPublishedAppInstanceGroupRequest.js.map +1 -1
  22. package/dist/models/ListPublishedAppInstanceGroupResponseBody.d.ts +35 -22
  23. package/dist/models/ListPublishedAppInstanceGroupResponseBody.js +4 -0
  24. package/dist/models/ListPublishedAppInstanceGroupResponseBody.js.map +1 -1
  25. package/dist/models/ListWuyingServerWorkloadTemplateRequest.d.ts +39 -0
  26. package/dist/models/ListWuyingServerWorkloadTemplateRequest.js +62 -0
  27. package/dist/models/ListWuyingServerWorkloadTemplateRequest.js.map +1 -0
  28. package/dist/models/ListWuyingServerWorkloadTemplateResponse.d.ts +19 -0
  29. package/dist/models/ListWuyingServerWorkloadTemplateResponse.js +69 -0
  30. package/dist/models/ListWuyingServerWorkloadTemplateResponse.js.map +1 -0
  31. package/dist/models/ListWuyingServerWorkloadTemplateResponseBody.d.ts +78 -0
  32. package/dist/models/ListWuyingServerWorkloadTemplateResponseBody.js +90 -0
  33. package/dist/models/ListWuyingServerWorkloadTemplateResponseBody.js.map +1 -0
  34. package/dist/models/ModifyShareImageRequest.d.ts +17 -0
  35. package/dist/models/ModifyShareImageRequest.js.map +1 -1
  36. package/dist/models/ModifyShareImageResponseBody.d.ts +15 -0
  37. package/dist/models/ModifyShareImageResponseBody.js.map +1 -1
  38. package/dist/models/QueryAppInstanceGroupReportListRequest.d.ts +111 -0
  39. package/dist/models/QueryAppInstanceGroupReportListRequest.js +81 -0
  40. package/dist/models/QueryAppInstanceGroupReportListRequest.js.map +1 -0
  41. package/dist/models/QueryAppInstanceGroupReportListResponse.d.ts +19 -0
  42. package/dist/models/QueryAppInstanceGroupReportListResponse.js +69 -0
  43. package/dist/models/QueryAppInstanceGroupReportListResponse.js.map +1 -0
  44. package/dist/models/QueryAppInstanceGroupReportListResponseBody.d.ts +107 -0
  45. package/dist/models/QueryAppInstanceGroupReportListResponseBody.js +94 -0
  46. package/dist/models/QueryAppInstanceGroupReportListResponseBody.js.map +1 -0
  47. package/dist/models/QueryConnectionReportRequest.d.ts +80 -0
  48. package/dist/models/QueryConnectionReportRequest.js +70 -0
  49. package/dist/models/QueryConnectionReportRequest.js.map +1 -0
  50. package/dist/models/QueryConnectionReportResponse.d.ts +19 -0
  51. package/dist/models/QueryConnectionReportResponse.js +69 -0
  52. package/dist/models/QueryConnectionReportResponse.js.map +1 -0
  53. package/dist/models/QueryConnectionReportResponseBody.d.ts +142 -0
  54. package/dist/models/QueryConnectionReportResponseBody.js +106 -0
  55. package/dist/models/QueryConnectionReportResponseBody.js.map +1 -0
  56. package/dist/models/QueryDauReportDataRequest.d.ts +78 -0
  57. package/dist/models/QueryDauReportDataRequest.js +70 -0
  58. package/dist/models/QueryDauReportDataRequest.js.map +1 -0
  59. package/dist/models/QueryDauReportDataResponse.d.ts +19 -0
  60. package/dist/models/QueryDauReportDataResponse.js +69 -0
  61. package/dist/models/QueryDauReportDataResponse.js.map +1 -0
  62. package/dist/models/QueryDauReportDataResponseBody.d.ts +102 -0
  63. package/dist/models/QueryDauReportDataResponseBody.js +96 -0
  64. package/dist/models/QueryDauReportDataResponseBody.js.map +1 -0
  65. package/dist/models/QueryMauReportDataRequest.d.ts +80 -0
  66. package/dist/models/QueryMauReportDataRequest.js +70 -0
  67. package/dist/models/QueryMauReportDataRequest.js.map +1 -0
  68. package/dist/models/QueryMauReportDataResponse.d.ts +19 -0
  69. package/dist/models/QueryMauReportDataResponse.js +69 -0
  70. package/dist/models/QueryMauReportDataResponse.js.map +1 -0
  71. package/dist/models/QueryMauReportDataResponseBody.d.ts +118 -0
  72. package/dist/models/QueryMauReportDataResponseBody.js +100 -0
  73. package/dist/models/QueryMauReportDataResponseBody.js.map +1 -0
  74. package/dist/models/QueryNetworkRttReportRequest.d.ts +80 -0
  75. package/dist/models/QueryNetworkRttReportRequest.js +70 -0
  76. package/dist/models/QueryNetworkRttReportRequest.js.map +1 -0
  77. package/dist/models/QueryNetworkRttReportResponse.d.ts +19 -0
  78. package/dist/models/QueryNetworkRttReportResponse.js +69 -0
  79. package/dist/models/QueryNetworkRttReportResponse.js.map +1 -0
  80. package/dist/models/QueryNetworkRttReportResponseBody.d.ts +158 -0
  81. package/dist/models/QueryNetworkRttReportResponseBody.js +110 -0
  82. package/dist/models/QueryNetworkRttReportResponseBody.js.map +1 -0
  83. package/dist/models/QueryNodeReportDataRequest.d.ts +97 -0
  84. package/dist/models/QueryNodeReportDataRequest.js +72 -0
  85. package/dist/models/QueryNodeReportDataRequest.js.map +1 -0
  86. package/dist/models/QueryNodeReportDataResponse.d.ts +19 -0
  87. package/dist/models/QueryNodeReportDataResponse.js +69 -0
  88. package/dist/models/QueryNodeReportDataResponse.js.map +1 -0
  89. package/dist/models/QueryNodeReportDataResponseBody.d.ts +110 -0
  90. package/dist/models/QueryNodeReportDataResponseBody.js +98 -0
  91. package/dist/models/QueryNodeReportDataResponseBody.js.map +1 -0
  92. package/dist/models/QuerySessionReportDataRequest.d.ts +97 -0
  93. package/dist/models/QuerySessionReportDataRequest.js +72 -0
  94. package/dist/models/QuerySessionReportDataRequest.js.map +1 -0
  95. package/dist/models/QuerySessionReportDataResponse.d.ts +19 -0
  96. package/dist/models/QuerySessionReportDataResponse.js +69 -0
  97. package/dist/models/QuerySessionReportDataResponse.js.map +1 -0
  98. package/dist/models/QuerySessionReportDataResponseBody.d.ts +110 -0
  99. package/dist/models/QuerySessionReportDataResponseBody.js +98 -0
  100. package/dist/models/QuerySessionReportDataResponseBody.js.map +1 -0
  101. package/dist/models/QueryUserAppUsageAggregateByHourRequest.d.ts +61 -0
  102. package/dist/models/QueryUserAppUsageAggregateByHourRequest.js +68 -0
  103. package/dist/models/QueryUserAppUsageAggregateByHourRequest.js.map +1 -0
  104. package/dist/models/QueryUserAppUsageAggregateByHourResponse.d.ts +19 -0
  105. package/dist/models/QueryUserAppUsageAggregateByHourResponse.js +69 -0
  106. package/dist/models/QueryUserAppUsageAggregateByHourResponse.js.map +1 -0
  107. package/dist/models/QueryUserAppUsageAggregateByHourResponseBody.d.ts +86 -0
  108. package/dist/models/QueryUserAppUsageAggregateByHourResponseBody.js +92 -0
  109. package/dist/models/QueryUserAppUsageAggregateByHourResponseBody.js.map +1 -0
  110. package/dist/models/QueryUserAppUsageTimeRankRequest.d.ts +62 -0
  111. package/dist/models/QueryUserAppUsageTimeRankRequest.js +68 -0
  112. package/dist/models/QueryUserAppUsageTimeRankRequest.js.map +1 -0
  113. package/dist/models/QueryUserAppUsageTimeRankResponse.d.ts +19 -0
  114. package/dist/models/QueryUserAppUsageTimeRankResponse.js +69 -0
  115. package/dist/models/QueryUserAppUsageTimeRankResponse.js.map +1 -0
  116. package/dist/models/QueryUserAppUsageTimeRankResponseBody.d.ts +86 -0
  117. package/dist/models/QueryUserAppUsageTimeRankResponseBody.js +92 -0
  118. package/dist/models/QueryUserAppUsageTimeRankResponseBody.js.map +1 -0
  119. package/dist/models/QueryUserUsageReportRequest.d.ts +102 -0
  120. package/dist/models/QueryUserUsageReportRequest.js +74 -0
  121. package/dist/models/QueryUserUsageReportRequest.js.map +1 -0
  122. package/dist/models/QueryUserUsageReportResponse.d.ts +19 -0
  123. package/dist/models/QueryUserUsageReportResponse.js +69 -0
  124. package/dist/models/QueryUserUsageReportResponse.js.map +1 -0
  125. package/dist/models/QueryUserUsageReportResponseBody.d.ts +148 -0
  126. package/dist/models/QueryUserUsageReportResponseBody.js +106 -0
  127. package/dist/models/QueryUserUsageReportResponseBody.js.map +1 -0
  128. package/dist/models/model.d.ts +48 -0
  129. package/dist/models/model.js +107 -10
  130. package/dist/models/model.js.map +1 -1
  131. package/package.json +1 -1
  132. package/src/client.ts +976 -56
  133. package/src/models/DescribeEventsRequest.ts +197 -0
  134. package/src/models/DescribeEventsResponse.ts +40 -0
  135. package/src/models/DescribeEventsResponseBody.ts +214 -0
  136. package/src/models/ListAuthorizedAppInstanceGroupByUserRequest.ts +30 -20
  137. package/src/models/ListAuthorizedAppInstanceGroupByUserResponseBody.ts +38 -21
  138. package/src/models/ListPublishedAppInstanceGroupRequest.ts +30 -20
  139. package/src/models/ListPublishedAppInstanceGroupResponseBody.ts +39 -22
  140. package/src/models/ListWuyingServerWorkloadTemplateRequest.ts +56 -0
  141. package/src/models/ListWuyingServerWorkloadTemplateResponse.ts +40 -0
  142. package/src/models/ListWuyingServerWorkloadTemplateResponseBody.ts +114 -0
  143. package/src/models/ModifyShareImageRequest.ts +17 -0
  144. package/src/models/ModifyShareImageResponseBody.ts +15 -0
  145. package/src/models/QueryAppInstanceGroupReportListRequest.ts +147 -0
  146. package/src/models/QueryAppInstanceGroupReportListResponse.ts +40 -0
  147. package/src/models/QueryAppInstanceGroupReportListResponseBody.ts +147 -0
  148. package/src/models/QueryConnectionReportRequest.ts +105 -0
  149. package/src/models/QueryConnectionReportResponse.ts +40 -0
  150. package/src/models/QueryConnectionReportResponseBody.ts +194 -0
  151. package/src/models/QueryDauReportDataRequest.ts +103 -0
  152. package/src/models/QueryDauReportDataResponse.ts +40 -0
  153. package/src/models/QueryDauReportDataResponseBody.ts +144 -0
  154. package/src/models/QueryMauReportDataRequest.ts +105 -0
  155. package/src/models/QueryMauReportDataResponse.ts +40 -0
  156. package/src/models/QueryMauReportDataResponseBody.ts +164 -0
  157. package/src/models/QueryNetworkRttReportRequest.ts +105 -0
  158. package/src/models/QueryNetworkRttReportResponse.ts +40 -0
  159. package/src/models/QueryNetworkRttReportResponseBody.ts +214 -0
  160. package/src/models/QueryNodeReportDataRequest.ts +124 -0
  161. package/src/models/QueryNodeReportDataResponse.ts +40 -0
  162. package/src/models/QueryNodeReportDataResponseBody.ts +154 -0
  163. package/src/models/QuerySessionReportDataRequest.ts +124 -0
  164. package/src/models/QuerySessionReportDataResponse.ts +40 -0
  165. package/src/models/QuerySessionReportDataResponseBody.ts +154 -0
  166. package/src/models/QueryUserAppUsageAggregateByHourRequest.ts +84 -0
  167. package/src/models/QueryUserAppUsageAggregateByHourResponse.ts +40 -0
  168. package/src/models/QueryUserAppUsageAggregateByHourResponseBody.ts +124 -0
  169. package/src/models/QueryUserAppUsageTimeRankRequest.ts +85 -0
  170. package/src/models/QueryUserAppUsageTimeRankResponse.ts +40 -0
  171. package/src/models/QueryUserAppUsageTimeRankResponseBody.ts +124 -0
  172. package/src/models/QueryUserUsageReportRequest.ts +131 -0
  173. package/src/models/QueryUserUsageReportResponse.ts +40 -0
  174. package/src/models/QueryUserUsageReportResponseBody.ts +200 -0
  175. package/src/models/model.ts +48 -0
package/dist/client.js CHANGED
@@ -1672,6 +1672,96 @@ class Client extends openapi_core_1.default {
1672
1672
  let runtime = new $dara.RuntimeOptions({});
1673
1673
  return await this.deliverToUserSlsWithOptions(request, runtime);
1674
1674
  }
1675
+ /**
1676
+ * Queries the resource and session events of the current account within the last 30 days by using paging.
1677
+ *
1678
+ * @remarks
1679
+ * Queries the resource and session events of the current account. `StartTime` and `EndTime` must be specified at the same time, and the time range includes the start and end times. The service only retrieves logs from 30 days before the call time to the current time, so events outside this window are not returned. If multiple filter parameters are specified at the same time, the intersection is used. Results are returned in descending order of the event log time. To use page number-based pagination, specify `PageSize` and `PageNumber`. The current version does not use `MaxResults` and `NextToken`.
1680
+ *
1681
+ * @param request - DescribeEventsRequest
1682
+ * @param runtime - runtime options for this request RuntimeOptions
1683
+ * @returns DescribeEventsResponse
1684
+ */
1685
+ async describeEventsWithOptions(request, runtime) {
1686
+ request.validate();
1687
+ let body = {};
1688
+ if (!$dara.isNull(request.appInstanceGroupId)) {
1689
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
1690
+ }
1691
+ if (!$dara.isNull(request.appInstanceGroupName)) {
1692
+ body["AppInstanceGroupName"] = request.appInstanceGroupName;
1693
+ }
1694
+ if (!$dara.isNull(request.appInstanceId)) {
1695
+ body["AppInstanceId"] = request.appInstanceId;
1696
+ }
1697
+ if (!$dara.isNull(request.bizRegionId)) {
1698
+ body["BizRegionId"] = request.bizRegionId;
1699
+ }
1700
+ if (!$dara.isNull(request.endTime)) {
1701
+ body["EndTime"] = request.endTime;
1702
+ }
1703
+ if (!$dara.isNull(request.eventId)) {
1704
+ body["EventId"] = request.eventId;
1705
+ }
1706
+ if (!$dara.isNull(request.eventType)) {
1707
+ body["EventType"] = request.eventType;
1708
+ }
1709
+ if (!$dara.isNull(request.maxResults)) {
1710
+ body["MaxResults"] = request.maxResults;
1711
+ }
1712
+ if (!$dara.isNull(request.memberEniIp)) {
1713
+ body["MemberEniIp"] = request.memberEniIp;
1714
+ }
1715
+ if (!$dara.isNull(request.nextToken)) {
1716
+ body["NextToken"] = request.nextToken;
1717
+ }
1718
+ if (!$dara.isNull(request.officeSiteId)) {
1719
+ body["OfficeSiteId"] = request.officeSiteId;
1720
+ }
1721
+ if (!$dara.isNull(request.pageNumber)) {
1722
+ body["PageNumber"] = request.pageNumber;
1723
+ }
1724
+ if (!$dara.isNull(request.pageSize)) {
1725
+ body["PageSize"] = request.pageSize;
1726
+ }
1727
+ if (!$dara.isNull(request.productType)) {
1728
+ body["ProductType"] = request.productType;
1729
+ }
1730
+ if (!$dara.isNull(request.startTime)) {
1731
+ body["StartTime"] = request.startTime;
1732
+ }
1733
+ if (!$dara.isNull(request.userId)) {
1734
+ body["UserId"] = request.userId;
1735
+ }
1736
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1737
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1738
+ });
1739
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1740
+ action: "DescribeEvents",
1741
+ version: "2021-09-01",
1742
+ protocol: "HTTPS",
1743
+ pathname: "/",
1744
+ method: "POST",
1745
+ authType: "AK",
1746
+ style: "RPC",
1747
+ reqBodyType: "formData",
1748
+ bodyType: "json",
1749
+ });
1750
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeEventsResponse({}));
1751
+ }
1752
+ /**
1753
+ * Queries the resource and session events of the current account within the last 30 days by using paging.
1754
+ *
1755
+ * @remarks
1756
+ * Queries the resource and session events of the current account. `StartTime` and `EndTime` must be specified at the same time, and the time range includes the start and end times. The service only retrieves logs from 30 days before the call time to the current time, so events outside this window are not returned. If multiple filter parameters are specified at the same time, the intersection is used. Results are returned in descending order of the event log time. To use page number-based pagination, specify `PageSize` and `PageNumber`. The current version does not use `MaxResults` and `NextToken`.
1757
+ *
1758
+ * @param request - DescribeEventsRequest
1759
+ * @returns DescribeEventsResponse
1760
+ */
1761
+ async describeEvents(request) {
1762
+ let runtime = new $dara.RuntimeOptions({});
1763
+ return await this.describeEventsWithOptions(request, runtime);
1764
+ }
1675
1765
  /**
1676
1766
  * Queries the details of a development host.
1677
1767
  *
@@ -2574,26 +2664,26 @@ class Client extends openapi_core_1.default {
2574
2664
  return await this.listAppsByAppInstanceGroupIdWithOptions(request, runtime);
2575
2665
  }
2576
2666
  /**
2577
- * Queries the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization by paging, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, or application name.
2667
+ * Performs a paging query on the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, and application name.
2578
2668
  *
2579
2669
  * @remarks
2580
2670
  * ## Operation description
2581
- * This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. The response includes basic information about each delivery group (ID, name, status, region, creation time, expiration time, and more) and the list of applications deployed in the delivery group.
2582
- * Scope of returned results:
2583
- * - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records authorized on a per-application basis through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
2584
- * - Only delivery groups whose product type matches the ProductType parameter and that have not been deleted are returned. A delivery group is not returned if its image contains no deployed applications.
2585
- * - Results are sorted in reverse chronological order by the update time of the authorization record. The most recently authorized or modified delivery groups appear first.
2671
+ * This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. It returns the basic information of each delivery group (such as ID, name, status, region, creation time, and expiration time) and the list of applications deployed in the delivery group.
2672
+ * Return scope:
2673
+ * - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records of individual application authorizations granted through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
2674
+ * - Only delivery groups that match the specified ProductType and are not deleted are returned. If no applications are deployed in the delivery group image, the delivery group is not returned.
2675
+ * - Results are sorted in descending order based on the update time of the authorization records. The most recently authorized or modified delivery groups are listed first.
2586
2676
  * ## Before you begin
2587
- * - Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
2588
- * ## Parameter description
2589
- * - **ProductType and EndUserId are required**. If ProductType is not specified, the error code `InvalidParameter.ProductType` is returned. If EndUserId is not specified, the error code `InvalidParameter.UserId` is returned.
2590
- * - EndUserId performs an **exact match** on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all perform **fuzzy matching** (a hit occurs if the value is contained). When multiple filter conditions are specified, all conditions must be met simultaneously.
2591
- * - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
2592
- * - If the user has no authorized delivery groups that match the conditions, the operation returns normally: AppInstanceGroupModels is an empty list and TotalCount is 0.
2677
+ * - The [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation has been called to authorize the delivery group to the user.
2678
+ * ## Metric description
2679
+ * - **ProductType and EndUserId are required**. If ProductType is not specified, the `InvalidParameter.ProductType` error code is returned. If EndUserId is not specified, the `InvalidParameter.UserId` error code is returned.
2680
+ * - EndUserId uses **exact match** based on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName use **fuzzy match** (a match is hit if the string is contained). If multiple filter conditions are specified, all conditions must be met.
2681
+ * - PageNumber starts from 1. Valid values for PageSize: 1 to 100.
2682
+ * - If the user does not have any authorization delivery groups that meet the conditional requirements, the operation returns a normal response: AppInstanceGroupModels is an empty list and TotalCount is 0.
2593
2683
  * ## Call sequence
2594
2684
  * 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID, and then call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
2595
- * 2. Call this operation to query the delivery groups authorized to the user and the applications deployed in each delivery group.
2596
- * 3. To obtain an application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation with the AppInstanceGroupId and the AppId from the Apps list in the response.
2685
+ * 2. Call this operation to query the delivery groups authorized for the user and the applications deployed in the delivery groups.
2686
+ * 3. To obtain the application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation by using the returned AppInstanceGroupId and the AppId in Apps.
2597
2687
  *
2598
2688
  * @param request - ListAuthorizedAppInstanceGroupByUserRequest
2599
2689
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2617,6 +2707,9 @@ class Client extends openapi_core_1.default {
2617
2707
  if (!$dara.isNull(request.endUserId)) {
2618
2708
  query["EndUserId"] = request.endUserId;
2619
2709
  }
2710
+ if (!$dara.isNull(request.officeSiteId)) {
2711
+ query["OfficeSiteId"] = request.officeSiteId;
2712
+ }
2620
2713
  if (!$dara.isNull(request.pageNumber)) {
2621
2714
  query["PageNumber"] = request.pageNumber;
2622
2715
  }
@@ -2643,26 +2736,26 @@ class Client extends openapi_core_1.default {
2643
2736
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAuthorizedAppInstanceGroupByUserResponse({}));
2644
2737
  }
2645
2738
  /**
2646
- * Queries the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization by paging, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, or application name.
2739
+ * Performs a paging query on the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, and application name.
2647
2740
  *
2648
2741
  * @remarks
2649
2742
  * ## Operation description
2650
- * This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. The response includes basic information about each delivery group (ID, name, status, region, creation time, expiration time, and more) and the list of applications deployed in the delivery group.
2651
- * Scope of returned results:
2652
- * - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records authorized on a per-application basis through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
2653
- * - Only delivery groups whose product type matches the ProductType parameter and that have not been deleted are returned. A delivery group is not returned if its image contains no deployed applications.
2654
- * - Results are sorted in reverse chronological order by the update time of the authorization record. The most recently authorized or modified delivery groups appear first.
2743
+ * This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. It returns the basic information of each delivery group (such as ID, name, status, region, creation time, and expiration time) and the list of applications deployed in the delivery group.
2744
+ * Return scope:
2745
+ * - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records of individual application authorizations granted through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
2746
+ * - Only delivery groups that match the specified ProductType and are not deleted are returned. If no applications are deployed in the delivery group image, the delivery group is not returned.
2747
+ * - Results are sorted in descending order based on the update time of the authorization records. The most recently authorized or modified delivery groups are listed first.
2655
2748
  * ## Before you begin
2656
- * - Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
2657
- * ## Parameter description
2658
- * - **ProductType and EndUserId are required**. If ProductType is not specified, the error code `InvalidParameter.ProductType` is returned. If EndUserId is not specified, the error code `InvalidParameter.UserId` is returned.
2659
- * - EndUserId performs an **exact match** on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all perform **fuzzy matching** (a hit occurs if the value is contained). When multiple filter conditions are specified, all conditions must be met simultaneously.
2660
- * - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
2661
- * - If the user has no authorized delivery groups that match the conditions, the operation returns normally: AppInstanceGroupModels is an empty list and TotalCount is 0.
2749
+ * - The [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation has been called to authorize the delivery group to the user.
2750
+ * ## Metric description
2751
+ * - **ProductType and EndUserId are required**. If ProductType is not specified, the `InvalidParameter.ProductType` error code is returned. If EndUserId is not specified, the `InvalidParameter.UserId` error code is returned.
2752
+ * - EndUserId uses **exact match** based on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName use **fuzzy match** (a match is hit if the string is contained). If multiple filter conditions are specified, all conditions must be met.
2753
+ * - PageNumber starts from 1. Valid values for PageSize: 1 to 100.
2754
+ * - If the user does not have any authorization delivery groups that meet the conditional requirements, the operation returns a normal response: AppInstanceGroupModels is an empty list and TotalCount is 0.
2662
2755
  * ## Call sequence
2663
2756
  * 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID, and then call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
2664
- * 2. Call this operation to query the delivery groups authorized to the user and the applications deployed in each delivery group.
2665
- * 3. To obtain an application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation with the AppInstanceGroupId and the AppId from the Apps list in the response.
2757
+ * 2. Call this operation to query the delivery groups authorized for the user and the applications deployed in the delivery groups.
2758
+ * 3. To obtain the application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation by using the returned AppInstanceGroupId and the AppId in Apps.
2666
2759
  *
2667
2760
  * @param request - ListAuthorizedAppInstanceGroupByUserRequest
2668
2761
  * @returns ListAuthorizedAppInstanceGroupByUserResponse
@@ -3905,23 +3998,23 @@ class Client extends openapi_core_1.default {
3905
3998
  return await this.listPersistentAppInstancesWithOptions(request, runtime);
3906
3999
  }
3907
4000
  /**
3908
- * Queries published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging. Supports filtering by delivery group, application, and user authorization status.
4001
+ * Queries the published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging, and supports filtering by delivery group, application, and user authorization status.
3909
4002
  *
3910
4003
  * @remarks
3911
- * ## Before you begin
3912
- * When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
3913
- * A delivery group must be in the published state and have deployed applications in its image to appear in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
4004
+ * ## Prerequisites
4005
+ * When you call this operation as a RAM user or by using STS credentials, you must have the `appstreaming:ListPublishedAppInstanceGroup` permission.
4006
+ * Only delivery groups that are in the published state and have deployed applications in their images are included in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
3914
4007
  * ## Query and pagination
3915
- * - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
3916
- * - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can pass them individually or in combination. When multiple conditions are specified, all conditions must be met simultaneously. When both `AppId` and `AppName` are specified, the same application must satisfy both conditions.
3917
- * - If an optional filter parameter is not specified or is set to an empty string, that condition is not applied. Query results are sorted by delivery group creation time from newest to oldest. A delivery group is not returned multiple times even if it contains multiple matching applications.
3918
- * - `ExcludeUserId` excludes delivery groups in which all applications have been directly authorized to the specified user. It cannot be used to determine whether the user has no access permissions at all.
3919
- * - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
3920
- * ## Invoke sequence
3921
- * 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
3922
- * 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged and increment `PageNumber`. If no delivery groups match, the total count is `0` and the list is empty. If the page number exceeds the result range, the list may also be empty, but the total count still represents the total number of matching delivery groups.
3923
- * 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
3924
- * The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
4008
+ * - **You must explicitly specify `ProductType`, `PageNumber`, and `PageSize`.** The page number starts from `1`, and the number of entries per page ranges from `1` to `100`.
4009
+ * - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support partial matching. You can specify them individually or in combination. If multiple conditions are specified, all conditions must be met. If both `AppId` and `AppName` are specified, they must be met by the same application.
4010
+ * - If an optional filter parameter is not specified or is set to an empty string, the results are not filtered by this condition. The query results are sorted in descending order of the delivery group creation time. A delivery group is not returned multiple times even if it contains multiple matched applications.
4011
+ * - `ExcludeUserId` is used to exclude delivery groups for which all applications have been directly authorized to a specified user. It cannot be used to determine whether the user has no access permissions at all.
4012
+ * - `AppId` and `AppName` only filter delivery groups and **do not restrict the returned `Apps` list to the matched applications**.
4013
+ * ## Invocation sequence
4014
+ * 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For common scenarios of Wuying Cloud App, set `ProductType` to `CloudApp`.
4015
+ * 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged, and increment `PageNumber`. If no delivery groups match the conditions, the total count is `0` and the list is empty. If the page number exceeds the range of the current results, the list may also be empty, but the total count still represents the total number of all matched delivery groups.
4016
+ * 3. To obtain the details of a single delivery group, pass the complete `AppInstanceGroupId` returned and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
4017
+ * The masked identity in the examples is used to demonstrate the format. Replace it with your actual identity when you invoke the operation.
3925
4018
  *
3926
4019
  * @param request - ListPublishedAppInstanceGroupRequest
3927
4020
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3945,6 +4038,9 @@ class Client extends openapi_core_1.default {
3945
4038
  if (!$dara.isNull(request.excludeUserId)) {
3946
4039
  query["ExcludeUserId"] = request.excludeUserId;
3947
4040
  }
4041
+ if (!$dara.isNull(request.officeSiteId)) {
4042
+ query["OfficeSiteId"] = request.officeSiteId;
4043
+ }
3948
4044
  if (!$dara.isNull(request.pageNumber)) {
3949
4045
  query["PageNumber"] = request.pageNumber;
3950
4046
  }
@@ -3971,23 +4067,23 @@ class Client extends openapi_core_1.default {
3971
4067
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPublishedAppInstanceGroupResponse({}));
3972
4068
  }
3973
4069
  /**
3974
- * Queries published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging. Supports filtering by delivery group, application, and user authorization status.
4070
+ * Queries the published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging, and supports filtering by delivery group, application, and user authorization status.
3975
4071
  *
3976
4072
  * @remarks
3977
- * ## Before you begin
3978
- * When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
3979
- * A delivery group must be in the published state and have deployed applications in its image to appear in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
4073
+ * ## Prerequisites
4074
+ * When you call this operation as a RAM user or by using STS credentials, you must have the `appstreaming:ListPublishedAppInstanceGroup` permission.
4075
+ * Only delivery groups that are in the published state and have deployed applications in their images are included in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
3980
4076
  * ## Query and pagination
3981
- * - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
3982
- * - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can pass them individually or in combination. When multiple conditions are specified, all conditions must be met simultaneously. When both `AppId` and `AppName` are specified, the same application must satisfy both conditions.
3983
- * - If an optional filter parameter is not specified or is set to an empty string, that condition is not applied. Query results are sorted by delivery group creation time from newest to oldest. A delivery group is not returned multiple times even if it contains multiple matching applications.
3984
- * - `ExcludeUserId` excludes delivery groups in which all applications have been directly authorized to the specified user. It cannot be used to determine whether the user has no access permissions at all.
3985
- * - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
3986
- * ## Invoke sequence
3987
- * 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
3988
- * 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged and increment `PageNumber`. If no delivery groups match, the total count is `0` and the list is empty. If the page number exceeds the result range, the list may also be empty, but the total count still represents the total number of matching delivery groups.
3989
- * 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
3990
- * The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
4077
+ * - **You must explicitly specify `ProductType`, `PageNumber`, and `PageSize`.** The page number starts from `1`, and the number of entries per page ranges from `1` to `100`.
4078
+ * - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support partial matching. You can specify them individually or in combination. If multiple conditions are specified, all conditions must be met. If both `AppId` and `AppName` are specified, they must be met by the same application.
4079
+ * - If an optional filter parameter is not specified or is set to an empty string, the results are not filtered by this condition. The query results are sorted in descending order of the delivery group creation time. A delivery group is not returned multiple times even if it contains multiple matched applications.
4080
+ * - `ExcludeUserId` is used to exclude delivery groups for which all applications have been directly authorized to a specified user. It cannot be used to determine whether the user has no access permissions at all.
4081
+ * - `AppId` and `AppName` only filter delivery groups and **do not restrict the returned `Apps` list to the matched applications**.
4082
+ * ## Invocation sequence
4083
+ * 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For common scenarios of Wuying Cloud App, set `ProductType` to `CloudApp`.
4084
+ * 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged, and increment `PageNumber`. If no delivery groups match the conditions, the total count is `0` and the list is empty. If the page number exceeds the range of the current results, the list may also be empty, but the total count still represents the total number of all matched delivery groups.
4085
+ * 3. To obtain the details of a single delivery group, pass the complete `AppInstanceGroupId` returned and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
4086
+ * The masked identity in the examples is used to demonstrate the format. Replace it with your actual identity when you invoke the operation.
3991
4087
  *
3992
4088
  * @param request - ListPublishedAppInstanceGroupRequest
3993
4089
  * @returns ListPublishedAppInstanceGroupResponse
@@ -4422,6 +4518,57 @@ class Client extends openapi_core_1.default {
4422
4518
  let runtime = new $dara.RuntimeOptions({});
4423
4519
  return await this.listWuyingServerWithOptions(request, runtime);
4424
4520
  }
4521
+ /**
4522
+ * Queries the available Wuying Workstation workload templates for a specified virtual node pool.
4523
+ *
4524
+ * @remarks
4525
+ * Queries the available workload templates for a specified virtual node pool. Before calling this operation, call [ListWuyingServer](~~ListWuyingServer~~) to obtain the VirtualNodePoolId under the current account. This operation verifies the ownership of the node pool and returns up to 100 records sorted by the template configuration order. The template content is Base64-encoded after being UTF-8 encoded. You must perform Base64 decoding before use. The current version does not use MaxResults and NextToken for pagination.
4526
+ *
4527
+ * @param request - ListWuyingServerWorkloadTemplateRequest
4528
+ * @param runtime - runtime options for this request RuntimeOptions
4529
+ * @returns ListWuyingServerWorkloadTemplateResponse
4530
+ */
4531
+ async listWuyingServerWorkloadTemplateWithOptions(request, runtime) {
4532
+ request.validate();
4533
+ let query = {};
4534
+ if (!$dara.isNull(request.maxResults)) {
4535
+ query["MaxResults"] = request.maxResults;
4536
+ }
4537
+ if (!$dara.isNull(request.nextToken)) {
4538
+ query["NextToken"] = request.nextToken;
4539
+ }
4540
+ if (!$dara.isNull(request.virtualNodePoolId)) {
4541
+ query["VirtualNodePoolId"] = request.virtualNodePoolId;
4542
+ }
4543
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4544
+ query: openapi_core_2.OpenApiUtil.query(query),
4545
+ });
4546
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4547
+ action: "ListWuyingServerWorkloadTemplate",
4548
+ version: "2021-09-01",
4549
+ protocol: "HTTPS",
4550
+ pathname: "/",
4551
+ method: "POST",
4552
+ authType: "AK",
4553
+ style: "RPC",
4554
+ reqBodyType: "formData",
4555
+ bodyType: "json",
4556
+ });
4557
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListWuyingServerWorkloadTemplateResponse({}));
4558
+ }
4559
+ /**
4560
+ * Queries the available Wuying Workstation workload templates for a specified virtual node pool.
4561
+ *
4562
+ * @remarks
4563
+ * Queries the available workload templates for a specified virtual node pool. Before calling this operation, call [ListWuyingServer](~~ListWuyingServer~~) to obtain the VirtualNodePoolId under the current account. This operation verifies the ownership of the node pool and returns up to 100 records sorted by the template configuration order. The template content is Base64-encoded after being UTF-8 encoded. You must perform Base64 decoding before use. The current version does not use MaxResults and NextToken for pagination.
4564
+ *
4565
+ * @param request - ListWuyingServerWorkloadTemplateRequest
4566
+ * @returns ListWuyingServerWorkloadTemplateResponse
4567
+ */
4568
+ async listWuyingServerWorkloadTemplate(request) {
4569
+ let runtime = new $dara.RuntimeOptions({});
4570
+ return await this.listWuyingServerWorkloadTemplateWithOptions(request, runtime);
4571
+ }
4425
4572
  /**
4426
4573
  * Queries the list of available zone IDs for a specified region, product type, and operating system type.
4427
4574
  *
@@ -4887,6 +5034,8 @@ class Client extends openapi_core_1.default {
4887
5034
  return await this.modifyNodePoolAttributeWithOptions(request, runtime);
4888
5035
  }
4889
5036
  /**
5037
+ * Shares an image with other WUYING users or unshares a shared image.
5038
+ *
4890
5039
  * @param request - ModifyShareImageRequest
4891
5040
  * @param runtime - runtime options for this request RuntimeOptions
4892
5041
  * @returns ModifyShareImageResponse
@@ -4926,6 +5075,8 @@ class Client extends openapi_core_1.default {
4926
5075
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyShareImageResponse({}));
4927
5076
  }
4928
5077
  /**
5078
+ * Shares an image with other WUYING users or unshares a shared image.
5079
+ *
4929
5080
  * @param request - ModifyShareImageRequest
4930
5081
  * @returns ModifyShareImageResponse
4931
5082
  */
@@ -5071,6 +5222,654 @@ class Client extends openapi_core_1.default {
5071
5222
  let runtime = new $dara.RuntimeOptions({});
5072
5223
  return await this.pageListAppInstanceGroupUserWithOptions(request, runtime);
5073
5224
  }
5225
+ /**
5226
+ * Queries delivery group reports by region, delivery group, status, user authorization relationship, or statistical date.
5227
+ *
5228
+ * @remarks
5229
+ * Queries the delivery group ID, name, and status in delivery group reports. You can call [ListRegions](~~ListRegions~~) to obtain the business region, and then call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the delivery group. `AppInstanceGroupId` matches the exact ID, and `AppInstanceGroupName` filters by inclusion. If multiple filter conditions are passed at the same time, the intersection is taken. When filtering by date, `StatDate` specifies a single day, and `StartDate` and `EndDate` must be passed in pairs to represent a closed interval. If both a single day and an interval are passed, the results must meet both conditions. Before using `EndUserId`, make sure that the user has a valid authorization relationship.
5230
+ *
5231
+ * @param request - QueryAppInstanceGroupReportListRequest
5232
+ * @param runtime - runtime options for this request RuntimeOptions
5233
+ * @returns QueryAppInstanceGroupReportListResponse
5234
+ */
5235
+ async queryAppInstanceGroupReportListWithOptions(request, runtime) {
5236
+ request.validate();
5237
+ let body = {};
5238
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5239
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5240
+ }
5241
+ if (!$dara.isNull(request.appInstanceGroupName)) {
5242
+ body["AppInstanceGroupName"] = request.appInstanceGroupName;
5243
+ }
5244
+ if (!$dara.isNull(request.bizRegionId)) {
5245
+ body["BizRegionId"] = request.bizRegionId;
5246
+ }
5247
+ if (!$dara.isNull(request.endDate)) {
5248
+ body["EndDate"] = request.endDate;
5249
+ }
5250
+ if (!$dara.isNull(request.endUserId)) {
5251
+ body["EndUserId"] = request.endUserId;
5252
+ }
5253
+ if (!$dara.isNull(request.pageNumber)) {
5254
+ body["PageNumber"] = request.pageNumber;
5255
+ }
5256
+ if (!$dara.isNull(request.pageSize)) {
5257
+ body["PageSize"] = request.pageSize;
5258
+ }
5259
+ if (!$dara.isNull(request.regionId)) {
5260
+ body["RegionId"] = request.regionId;
5261
+ }
5262
+ if (!$dara.isNull(request.startDate)) {
5263
+ body["StartDate"] = request.startDate;
5264
+ }
5265
+ if (!$dara.isNull(request.statDate)) {
5266
+ body["StatDate"] = request.statDate;
5267
+ }
5268
+ if (!$dara.isNull(request.status)) {
5269
+ body["Status"] = request.status;
5270
+ }
5271
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5272
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5273
+ });
5274
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5275
+ action: "QueryAppInstanceGroupReportList",
5276
+ version: "2021-09-01",
5277
+ protocol: "HTTPS",
5278
+ pathname: "/",
5279
+ method: "POST",
5280
+ authType: "AK",
5281
+ style: "RPC",
5282
+ reqBodyType: "formData",
5283
+ bodyType: "json",
5284
+ });
5285
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryAppInstanceGroupReportListResponse({}));
5286
+ }
5287
+ /**
5288
+ * Queries delivery group reports by region, delivery group, status, user authorization relationship, or statistical date.
5289
+ *
5290
+ * @remarks
5291
+ * Queries the delivery group ID, name, and status in delivery group reports. You can call [ListRegions](~~ListRegions~~) to obtain the business region, and then call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the delivery group. `AppInstanceGroupId` matches the exact ID, and `AppInstanceGroupName` filters by inclusion. If multiple filter conditions are passed at the same time, the intersection is taken. When filtering by date, `StatDate` specifies a single day, and `StartDate` and `EndDate` must be passed in pairs to represent a closed interval. If both a single day and an interval are passed, the results must meet both conditions. Before using `EndUserId`, make sure that the user has a valid authorization relationship.
5292
+ *
5293
+ * @param request - QueryAppInstanceGroupReportListRequest
5294
+ * @returns QueryAppInstanceGroupReportListResponse
5295
+ */
5296
+ async queryAppInstanceGroupReportList(request) {
5297
+ let runtime = new $dara.RuntimeOptions({});
5298
+ return await this.queryAppInstanceGroupReportListWithOptions(request, runtime);
5299
+ }
5300
+ /**
5301
+ * Queries the number of successful connections, the number of failed connections, the success rate, and the average connection duration within a specified time range.
5302
+ *
5303
+ * @remarks
5304
+ * Queries connection statistical reports. Before you invoke this operation, you can invoke [ListRegions](~~ListRegions~~) and [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the `BizRegionId` and `AppInstanceGroupId` parameters. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation. The statistical interval is `[StartDate, EndDate)`, which includes the start time but excludes the end time. Results are returned by page, with a maximum of 1,500 entries per page.
5305
+ *
5306
+ * @param request - QueryConnectionReportRequest
5307
+ * @param runtime - runtime options for this request RuntimeOptions
5308
+ * @returns QueryConnectionReportResponse
5309
+ */
5310
+ async queryConnectionReportWithOptions(request, runtime) {
5311
+ request.validate();
5312
+ let body = {};
5313
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5314
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5315
+ }
5316
+ if (!$dara.isNull(request.bizRegionId)) {
5317
+ body["BizRegionId"] = request.bizRegionId;
5318
+ }
5319
+ if (!$dara.isNull(request.endDate)) {
5320
+ body["EndDate"] = request.endDate;
5321
+ }
5322
+ if (!$dara.isNull(request.pageNumber)) {
5323
+ body["PageNumber"] = request.pageNumber;
5324
+ }
5325
+ if (!$dara.isNull(request.pageSize)) {
5326
+ body["PageSize"] = request.pageSize;
5327
+ }
5328
+ if (!$dara.isNull(request.productType)) {
5329
+ body["ProductType"] = request.productType;
5330
+ }
5331
+ if (!$dara.isNull(request.startDate)) {
5332
+ body["StartDate"] = request.startDate;
5333
+ }
5334
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5335
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5336
+ });
5337
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5338
+ action: "QueryConnectionReport",
5339
+ version: "2021-09-01",
5340
+ protocol: "HTTPS",
5341
+ pathname: "/",
5342
+ method: "POST",
5343
+ authType: "AK",
5344
+ style: "RPC",
5345
+ reqBodyType: "formData",
5346
+ bodyType: "json",
5347
+ });
5348
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryConnectionReportResponse({}));
5349
+ }
5350
+ /**
5351
+ * Queries the number of successful connections, the number of failed connections, the success rate, and the average connection duration within a specified time range.
5352
+ *
5353
+ * @remarks
5354
+ * Queries connection statistical reports. Before you invoke this operation, you can invoke [ListRegions](~~ListRegions~~) and [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the `BizRegionId` and `AppInstanceGroupId` parameters. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation. The statistical interval is `[StartDate, EndDate)`, which includes the start time but excludes the end time. Results are returned by page, with a maximum of 1,500 entries per page.
5355
+ *
5356
+ * @param request - QueryConnectionReportRequest
5357
+ * @returns QueryConnectionReportResponse
5358
+ */
5359
+ async queryConnectionReport(request) {
5360
+ let runtime = new $dara.RuntimeOptions({});
5361
+ return await this.queryConnectionReportWithOptions(request, runtime);
5362
+ }
5363
+ /**
5364
+ * Queries the number of daily active users and streaming daily active users by date.
5365
+ *
5366
+ * @remarks
5367
+ * Queries the daily active user (DAU) report. StartDate and EndDate are required. The date range is inclusive and cannot exceed 180 days. If ProductType is not specified or is unrecognized, the query defaults to `CloudApp`. You can use BizRegionId and AppInstanceGroupId to narrow the scope. If neither is specified, the query returns aggregated data for all business regions. Results are paginated, with a maximum of 1,500 records per page.
5368
+ *
5369
+ * @param request - QueryDauReportDataRequest
5370
+ * @param runtime - runtime options for this request RuntimeOptions
5371
+ * @returns QueryDauReportDataResponse
5372
+ */
5373
+ async queryDauReportDataWithOptions(request, runtime) {
5374
+ request.validate();
5375
+ let body = {};
5376
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5377
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5378
+ }
5379
+ if (!$dara.isNull(request.bizRegionId)) {
5380
+ body["BizRegionId"] = request.bizRegionId;
5381
+ }
5382
+ if (!$dara.isNull(request.endDate)) {
5383
+ body["EndDate"] = request.endDate;
5384
+ }
5385
+ if (!$dara.isNull(request.pageNumber)) {
5386
+ body["PageNumber"] = request.pageNumber;
5387
+ }
5388
+ if (!$dara.isNull(request.pageSize)) {
5389
+ body["PageSize"] = request.pageSize;
5390
+ }
5391
+ if (!$dara.isNull(request.productType)) {
5392
+ body["ProductType"] = request.productType;
5393
+ }
5394
+ if (!$dara.isNull(request.startDate)) {
5395
+ body["StartDate"] = request.startDate;
5396
+ }
5397
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5398
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5399
+ });
5400
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5401
+ action: "QueryDauReportData",
5402
+ version: "2021-09-01",
5403
+ protocol: "HTTPS",
5404
+ pathname: "/",
5405
+ method: "POST",
5406
+ authType: "AK",
5407
+ style: "RPC",
5408
+ reqBodyType: "formData",
5409
+ bodyType: "json",
5410
+ });
5411
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryDauReportDataResponse({}));
5412
+ }
5413
+ /**
5414
+ * Queries the number of daily active users and streaming daily active users by date.
5415
+ *
5416
+ * @remarks
5417
+ * Queries the daily active user (DAU) report. StartDate and EndDate are required. The date range is inclusive and cannot exceed 180 days. If ProductType is not specified or is unrecognized, the query defaults to `CloudApp`. You can use BizRegionId and AppInstanceGroupId to narrow the scope. If neither is specified, the query returns aggregated data for all business regions. Results are paginated, with a maximum of 1,500 records per page.
5418
+ *
5419
+ * @param request - QueryDauReportDataRequest
5420
+ * @returns QueryDauReportDataResponse
5421
+ */
5422
+ async queryDauReportData(request) {
5423
+ let runtime = new $dara.RuntimeOptions({});
5424
+ return await this.queryDauReportDataWithOptions(request, runtime);
5425
+ }
5426
+ /**
5427
+ * Queries the number of monthly active users for each month within a specified time range.
5428
+ *
5429
+ * @remarks
5430
+ * Queries the monthly active user (MAU) report. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation, and the time span cannot exceed 60 months. The API returns statistical values by month. To adapt to offline data generated on the next day, the last month in the query range uses the day before `EndDate` as the statistical cutoff date. Results are returned in pages, with a maximum of 1,500 entries per page.
5431
+ *
5432
+ * @param request - QueryMauReportDataRequest
5433
+ * @param runtime - runtime options for this request RuntimeOptions
5434
+ * @returns QueryMauReportDataResponse
5435
+ */
5436
+ async queryMauReportDataWithOptions(request, runtime) {
5437
+ request.validate();
5438
+ let body = {};
5439
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5440
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5441
+ }
5442
+ if (!$dara.isNull(request.bizRegionId)) {
5443
+ body["BizRegionId"] = request.bizRegionId;
5444
+ }
5445
+ if (!$dara.isNull(request.endDate)) {
5446
+ body["EndDate"] = request.endDate;
5447
+ }
5448
+ if (!$dara.isNull(request.pageNumber)) {
5449
+ body["PageNumber"] = request.pageNumber;
5450
+ }
5451
+ if (!$dara.isNull(request.pageSize)) {
5452
+ body["PageSize"] = request.pageSize;
5453
+ }
5454
+ if (!$dara.isNull(request.productType)) {
5455
+ body["ProductType"] = request.productType;
5456
+ }
5457
+ if (!$dara.isNull(request.startDate)) {
5458
+ body["StartDate"] = request.startDate;
5459
+ }
5460
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5461
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5462
+ });
5463
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5464
+ action: "QueryMauReportData",
5465
+ version: "2021-09-01",
5466
+ protocol: "HTTPS",
5467
+ pathname: "/",
5468
+ method: "POST",
5469
+ authType: "AK",
5470
+ style: "RPC",
5471
+ reqBodyType: "formData",
5472
+ bodyType: "json",
5473
+ });
5474
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryMauReportDataResponse({}));
5475
+ }
5476
+ /**
5477
+ * Queries the number of monthly active users for each month within a specified time range.
5478
+ *
5479
+ * @remarks
5480
+ * Queries the monthly active user (MAU) report. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation, and the time span cannot exceed 60 months. The API returns statistical values by month. To adapt to offline data generated on the next day, the last month in the query range uses the day before `EndDate` as the statistical cutoff date. Results are returned in pages, with a maximum of 1,500 entries per page.
5481
+ *
5482
+ * @param request - QueryMauReportDataRequest
5483
+ * @returns QueryMauReportDataResponse
5484
+ */
5485
+ async queryMauReportData(request) {
5486
+ let runtime = new $dara.RuntimeOptions({});
5487
+ return await this.queryMauReportDataWithOptions(request, runtime);
5488
+ }
5489
+ /**
5490
+ * Queries the network RTT and low-RTT user statistics within a specified time range.
5491
+ *
5492
+ * @remarks
5493
+ * Queries network round-trip time (RTT) reports. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation. The statistical interval is `[StartDate, EndDate)`. The minimum, maximum, and average RTT values are measured in milliseconds. The low-RTT threshold is determined by the report statistical caliber, and the current API operation does not return this threshold. Results are returned in pages, with a maximum of 1,500 entries per page.
5494
+ *
5495
+ * @param request - QueryNetworkRttReportRequest
5496
+ * @param runtime - runtime options for this request RuntimeOptions
5497
+ * @returns QueryNetworkRttReportResponse
5498
+ */
5499
+ async queryNetworkRttReportWithOptions(request, runtime) {
5500
+ request.validate();
5501
+ let body = {};
5502
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5503
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5504
+ }
5505
+ if (!$dara.isNull(request.bizRegionId)) {
5506
+ body["BizRegionId"] = request.bizRegionId;
5507
+ }
5508
+ if (!$dara.isNull(request.endDate)) {
5509
+ body["EndDate"] = request.endDate;
5510
+ }
5511
+ if (!$dara.isNull(request.pageNumber)) {
5512
+ body["PageNumber"] = request.pageNumber;
5513
+ }
5514
+ if (!$dara.isNull(request.pageSize)) {
5515
+ body["PageSize"] = request.pageSize;
5516
+ }
5517
+ if (!$dara.isNull(request.productType)) {
5518
+ body["ProductType"] = request.productType;
5519
+ }
5520
+ if (!$dara.isNull(request.startDate)) {
5521
+ body["StartDate"] = request.startDate;
5522
+ }
5523
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5524
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5525
+ });
5526
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5527
+ action: "QueryNetworkRttReport",
5528
+ version: "2021-09-01",
5529
+ protocol: "HTTPS",
5530
+ pathname: "/",
5531
+ method: "POST",
5532
+ authType: "AK",
5533
+ style: "RPC",
5534
+ reqBodyType: "formData",
5535
+ bodyType: "json",
5536
+ });
5537
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryNetworkRttReportResponse({}));
5538
+ }
5539
+ /**
5540
+ * Queries the network RTT and low-RTT user statistics within a specified time range.
5541
+ *
5542
+ * @remarks
5543
+ * Queries network round-trip time (RTT) reports. `ProductType`, `StartDate`, and `EndDate` are required for server-side validation. The statistical interval is `[StartDate, EndDate)`. The minimum, maximum, and average RTT values are measured in milliseconds. The low-RTT threshold is determined by the report statistical caliber, and the current API operation does not return this threshold. Results are returned in pages, with a maximum of 1,500 entries per page.
5544
+ *
5545
+ * @param request - QueryNetworkRttReportRequest
5546
+ * @returns QueryNetworkRttReportResponse
5547
+ */
5548
+ async queryNetworkRttReport(request) {
5549
+ let runtime = new $dara.RuntimeOptions({});
5550
+ return await this.queryNetworkRttReportWithOptions(request, runtime);
5551
+ }
5552
+ /**
5553
+ * Queries the total number of nodes, the number of subscription nodes, and the number of pay-as-you-go nodes by statistical granularity.
5554
+ *
5555
+ * @remarks
5556
+ * Queries the node quantity report. `StartDate`, `EndDate`, and `StatDateType` are required. The query span limit is determined by the statistical granularity: up to 1 day for `1m` and `30m`, up to 15 days for `6h`, and up to 180 days for `1d`. Both the start and end boundaries are included in the query range. Results are returned in pages, with a maximum of 1,500 entries per page.
5557
+ *
5558
+ * @param request - QueryNodeReportDataRequest
5559
+ * @param runtime - runtime options for this request RuntimeOptions
5560
+ * @returns QueryNodeReportDataResponse
5561
+ */
5562
+ async queryNodeReportDataWithOptions(request, runtime) {
5563
+ request.validate();
5564
+ let body = {};
5565
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5566
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5567
+ }
5568
+ if (!$dara.isNull(request.bizRegionId)) {
5569
+ body["BizRegionId"] = request.bizRegionId;
5570
+ }
5571
+ if (!$dara.isNull(request.endDate)) {
5572
+ body["EndDate"] = request.endDate;
5573
+ }
5574
+ if (!$dara.isNull(request.pageNumber)) {
5575
+ body["PageNumber"] = request.pageNumber;
5576
+ }
5577
+ if (!$dara.isNull(request.pageSize)) {
5578
+ body["PageSize"] = request.pageSize;
5579
+ }
5580
+ if (!$dara.isNull(request.productType)) {
5581
+ body["ProductType"] = request.productType;
5582
+ }
5583
+ if (!$dara.isNull(request.startDate)) {
5584
+ body["StartDate"] = request.startDate;
5585
+ }
5586
+ if (!$dara.isNull(request.statDateType)) {
5587
+ body["StatDateType"] = request.statDateType;
5588
+ }
5589
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5590
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5591
+ });
5592
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5593
+ action: "QueryNodeReportData",
5594
+ version: "2021-09-01",
5595
+ protocol: "HTTPS",
5596
+ pathname: "/",
5597
+ method: "POST",
5598
+ authType: "AK",
5599
+ style: "RPC",
5600
+ reqBodyType: "formData",
5601
+ bodyType: "json",
5602
+ });
5603
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryNodeReportDataResponse({}));
5604
+ }
5605
+ /**
5606
+ * Queries the total number of nodes, the number of subscription nodes, and the number of pay-as-you-go nodes by statistical granularity.
5607
+ *
5608
+ * @remarks
5609
+ * Queries the node quantity report. `StartDate`, `EndDate`, and `StatDateType` are required. The query span limit is determined by the statistical granularity: up to 1 day for `1m` and `30m`, up to 15 days for `6h`, and up to 180 days for `1d`. Both the start and end boundaries are included in the query range. Results are returned in pages, with a maximum of 1,500 entries per page.
5610
+ *
5611
+ * @param request - QueryNodeReportDataRequest
5612
+ * @returns QueryNodeReportDataResponse
5613
+ */
5614
+ async queryNodeReportData(request) {
5615
+ let runtime = new $dara.RuntimeOptions({});
5616
+ return await this.queryNodeReportDataWithOptions(request, runtime);
5617
+ }
5618
+ /**
5619
+ * Queries the total number of sessions, connected sessions, and streaming sessions by statistical granularity.
5620
+ *
5621
+ * @remarks
5622
+ * Queries session quantity reports. `StartDate`, `EndDate`, and `StatDateType` are required. The query span limit is determined by the statistical granularity: up to 1 day for `1m` and `30m`, up to 15 days for `6h`, and up to 180 days for `1d`. Both the start and end boundaries are included in the query range. Results are returned in pages, with a maximum of 1,500 records per page.
5623
+ *
5624
+ * @param request - QuerySessionReportDataRequest
5625
+ * @param runtime - runtime options for this request RuntimeOptions
5626
+ * @returns QuerySessionReportDataResponse
5627
+ */
5628
+ async querySessionReportDataWithOptions(request, runtime) {
5629
+ request.validate();
5630
+ let body = {};
5631
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5632
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5633
+ }
5634
+ if (!$dara.isNull(request.bizRegionId)) {
5635
+ body["BizRegionId"] = request.bizRegionId;
5636
+ }
5637
+ if (!$dara.isNull(request.endDate)) {
5638
+ body["EndDate"] = request.endDate;
5639
+ }
5640
+ if (!$dara.isNull(request.pageNumber)) {
5641
+ body["PageNumber"] = request.pageNumber;
5642
+ }
5643
+ if (!$dara.isNull(request.pageSize)) {
5644
+ body["PageSize"] = request.pageSize;
5645
+ }
5646
+ if (!$dara.isNull(request.productType)) {
5647
+ body["ProductType"] = request.productType;
5648
+ }
5649
+ if (!$dara.isNull(request.startDate)) {
5650
+ body["StartDate"] = request.startDate;
5651
+ }
5652
+ if (!$dara.isNull(request.statDateType)) {
5653
+ body["StatDateType"] = request.statDateType;
5654
+ }
5655
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5656
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5657
+ });
5658
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5659
+ action: "QuerySessionReportData",
5660
+ version: "2021-09-01",
5661
+ protocol: "HTTPS",
5662
+ pathname: "/",
5663
+ method: "POST",
5664
+ authType: "AK",
5665
+ style: "RPC",
5666
+ reqBodyType: "formData",
5667
+ bodyType: "json",
5668
+ });
5669
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QuerySessionReportDataResponse({}));
5670
+ }
5671
+ /**
5672
+ * Queries the total number of sessions, connected sessions, and streaming sessions by statistical granularity.
5673
+ *
5674
+ * @remarks
5675
+ * Queries session quantity reports. `StartDate`, `EndDate`, and `StatDateType` are required. The query span limit is determined by the statistical granularity: up to 1 day for `1m` and `30m`, up to 15 days for `6h`, and up to 180 days for `1d`. Both the start and end boundaries are included in the query range. Results are returned in pages, with a maximum of 1,500 records per page.
5676
+ *
5677
+ * @param request - QuerySessionReportDataRequest
5678
+ * @returns QuerySessionReportDataResponse
5679
+ */
5680
+ async querySessionReportData(request) {
5681
+ let runtime = new $dara.RuntimeOptions({});
5682
+ return await this.querySessionReportDataWithOptions(request, runtime);
5683
+ }
5684
+ /**
5685
+ * Queries the cumulative duration of application usage by a specified user on an hourly basis and returns the top five applications for each hour.
5686
+ *
5687
+ * @remarks
5688
+ * Queries the application usage of a specified user on an hourly basis. StartDate and EndDate use the yyyyMMdd format. If either parameter is not provided, it defaults to yesterday. Both dates must be within the last 90 days, and the start date cannot be later than the end date. The query range includes the start and end dates. UserId must be set to the ID of the user to be queried. A maximum of the top five applications by usage duration are returned for each hour.
5689
+ *
5690
+ * @param request - QueryUserAppUsageAggregateByHourRequest
5691
+ * @param runtime - runtime options for this request RuntimeOptions
5692
+ * @returns QueryUserAppUsageAggregateByHourResponse
5693
+ */
5694
+ async queryUserAppUsageAggregateByHourWithOptions(request, runtime) {
5695
+ request.validate();
5696
+ let body = {};
5697
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5698
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5699
+ }
5700
+ if (!$dara.isNull(request.bizRegionId)) {
5701
+ body["BizRegionId"] = request.bizRegionId;
5702
+ }
5703
+ if (!$dara.isNull(request.endDate)) {
5704
+ body["EndDate"] = request.endDate;
5705
+ }
5706
+ if (!$dara.isNull(request.regionId)) {
5707
+ body["RegionId"] = request.regionId;
5708
+ }
5709
+ if (!$dara.isNull(request.startDate)) {
5710
+ body["StartDate"] = request.startDate;
5711
+ }
5712
+ if (!$dara.isNull(request.userId)) {
5713
+ body["UserId"] = request.userId;
5714
+ }
5715
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5716
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5717
+ });
5718
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5719
+ action: "QueryUserAppUsageAggregateByHour",
5720
+ version: "2021-09-01",
5721
+ protocol: "HTTPS",
5722
+ pathname: "/",
5723
+ method: "POST",
5724
+ authType: "AK",
5725
+ style: "RPC",
5726
+ reqBodyType: "formData",
5727
+ bodyType: "json",
5728
+ });
5729
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryUserAppUsageAggregateByHourResponse({}));
5730
+ }
5731
+ /**
5732
+ * Queries the cumulative duration of application usage by a specified user on an hourly basis and returns the top five applications for each hour.
5733
+ *
5734
+ * @remarks
5735
+ * Queries the application usage of a specified user on an hourly basis. StartDate and EndDate use the yyyyMMdd format. If either parameter is not provided, it defaults to yesterday. Both dates must be within the last 90 days, and the start date cannot be later than the end date. The query range includes the start and end dates. UserId must be set to the ID of the user to be queried. A maximum of the top five applications by usage duration are returned for each hour.
5736
+ *
5737
+ * @param request - QueryUserAppUsageAggregateByHourRequest
5738
+ * @returns QueryUserAppUsageAggregateByHourResponse
5739
+ */
5740
+ async queryUserAppUsageAggregateByHour(request) {
5741
+ let runtime = new $dara.RuntimeOptions({});
5742
+ return await this.queryUserAppUsageAggregateByHourWithOptions(request, runtime);
5743
+ }
5744
+ /**
5745
+ * Queries the ranking of cumulative application usage duration for a specified user within a date range.
5746
+ *
5747
+ * @remarks
5748
+ * Queries the ranking of application usage duration for a specified user within a statistical range. StartDate and EndDate use the yyyyMMdd format. If either parameter is not provided, it defaults to yesterday. Both dates must be within the last 90 days, and the start date cannot be later than the end date. The query range includes the start and end dates. UserId must be set to the ID of the user to be queried. The results are sorted in descending order of cumulative application usage duration.
5749
+ *
5750
+ * @param request - QueryUserAppUsageTimeRankRequest
5751
+ * @param runtime - runtime options for this request RuntimeOptions
5752
+ * @returns QueryUserAppUsageTimeRankResponse
5753
+ */
5754
+ async queryUserAppUsageTimeRankWithOptions(request, runtime) {
5755
+ request.validate();
5756
+ let body = {};
5757
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5758
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5759
+ }
5760
+ if (!$dara.isNull(request.bizRegionId)) {
5761
+ body["BizRegionId"] = request.bizRegionId;
5762
+ }
5763
+ if (!$dara.isNull(request.endDate)) {
5764
+ body["EndDate"] = request.endDate;
5765
+ }
5766
+ if (!$dara.isNull(request.regionId)) {
5767
+ body["RegionId"] = request.regionId;
5768
+ }
5769
+ if (!$dara.isNull(request.startDate)) {
5770
+ body["StartDate"] = request.startDate;
5771
+ }
5772
+ if (!$dara.isNull(request.userId)) {
5773
+ body["UserId"] = request.userId;
5774
+ }
5775
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5776
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5777
+ });
5778
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5779
+ action: "QueryUserAppUsageTimeRank",
5780
+ version: "2021-09-01",
5781
+ protocol: "HTTPS",
5782
+ pathname: "/",
5783
+ method: "POST",
5784
+ authType: "AK",
5785
+ style: "RPC",
5786
+ reqBodyType: "formData",
5787
+ bodyType: "json",
5788
+ });
5789
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryUserAppUsageTimeRankResponse({}));
5790
+ }
5791
+ /**
5792
+ * Queries the ranking of cumulative application usage duration for a specified user within a date range.
5793
+ *
5794
+ * @remarks
5795
+ * Queries the ranking of application usage duration for a specified user within a statistical range. StartDate and EndDate use the yyyyMMdd format. If either parameter is not provided, it defaults to yesterday. Both dates must be within the last 90 days, and the start date cannot be later than the end date. The query range includes the start and end dates. UserId must be set to the ID of the user to be queried. The results are sorted in descending order of cumulative application usage duration.
5796
+ *
5797
+ * @param request - QueryUserAppUsageTimeRankRequest
5798
+ * @returns QueryUserAppUsageTimeRankResponse
5799
+ */
5800
+ async queryUserAppUsageTimeRank(request) {
5801
+ let runtime = new $dara.RuntimeOptions({});
5802
+ return await this.queryUserAppUsageTimeRankWithOptions(request, runtime);
5803
+ }
5804
+ /**
5805
+ * Queries the connection status, last connection time, cumulative usage duration, and session persistence duration of users.
5806
+ *
5807
+ * @remarks
5808
+ * Queries user usage reports. ProductType, StartDate, and EndDate are required for server-side validation, and the time span cannot exceed 60 months. During the query, the start and end times are converted to the `yyyyMMdd` format and aggregated based on a closed interval of natural days. The results are paginated in descending order of cumulative usage duration, with a maximum of 1,500 records per page. You can combine ConnectionStatus, UserId, BizRegionId, and AppInstanceGroupId for filtering.
5809
+ *
5810
+ * @param request - QueryUserUsageReportRequest
5811
+ * @param runtime - runtime options for this request RuntimeOptions
5812
+ * @returns QueryUserUsageReportResponse
5813
+ */
5814
+ async queryUserUsageReportWithOptions(request, runtime) {
5815
+ request.validate();
5816
+ let body = {};
5817
+ if (!$dara.isNull(request.appInstanceGroupId)) {
5818
+ body["AppInstanceGroupId"] = request.appInstanceGroupId;
5819
+ }
5820
+ if (!$dara.isNull(request.bizRegionId)) {
5821
+ body["BizRegionId"] = request.bizRegionId;
5822
+ }
5823
+ if (!$dara.isNull(request.connectionStatus)) {
5824
+ body["ConnectionStatus"] = request.connectionStatus;
5825
+ }
5826
+ if (!$dara.isNull(request.endDate)) {
5827
+ body["EndDate"] = request.endDate;
5828
+ }
5829
+ if (!$dara.isNull(request.pageNumber)) {
5830
+ body["PageNumber"] = request.pageNumber;
5831
+ }
5832
+ if (!$dara.isNull(request.pageSize)) {
5833
+ body["PageSize"] = request.pageSize;
5834
+ }
5835
+ if (!$dara.isNull(request.productType)) {
5836
+ body["ProductType"] = request.productType;
5837
+ }
5838
+ if (!$dara.isNull(request.startDate)) {
5839
+ body["StartDate"] = request.startDate;
5840
+ }
5841
+ if (!$dara.isNull(request.userId)) {
5842
+ body["UserId"] = request.userId;
5843
+ }
5844
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5845
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5846
+ });
5847
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5848
+ action: "QueryUserUsageReport",
5849
+ version: "2021-09-01",
5850
+ protocol: "HTTPS",
5851
+ pathname: "/",
5852
+ method: "POST",
5853
+ authType: "AK",
5854
+ style: "RPC",
5855
+ reqBodyType: "formData",
5856
+ bodyType: "json",
5857
+ });
5858
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryUserUsageReportResponse({}));
5859
+ }
5860
+ /**
5861
+ * Queries the connection status, last connection time, cumulative usage duration, and session persistence duration of users.
5862
+ *
5863
+ * @remarks
5864
+ * Queries user usage reports. ProductType, StartDate, and EndDate are required for server-side validation, and the time span cannot exceed 60 months. During the query, the start and end times are converted to the `yyyyMMdd` format and aggregated based on a closed interval of natural days. The results are paginated in descending order of cumulative usage duration, with a maximum of 1,500 records per page. You can combine ConnectionStatus, UserId, BizRegionId, and AppInstanceGroupId for filtering.
5865
+ *
5866
+ * @param request - QueryUserUsageReportRequest
5867
+ * @returns QueryUserUsageReportResponse
5868
+ */
5869
+ async queryUserUsageReport(request) {
5870
+ let runtime = new $dara.RuntimeOptions({});
5871
+ return await this.queryUserUsageReportWithOptions(request, runtime);
5872
+ }
5074
5873
  /**
5075
5874
  * Removes model groups from a resource group.
5076
5875
  *