@alicloud/appstream-center20210901 5.11.0 → 5.12.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 (279) hide show
  1. package/dist/client.d.ts +525 -24
  2. package/dist/client.js +1266 -28
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BuilderImageByParentRequest.d.ts +272 -0
  5. package/dist/models/BuilderImageByParentRequest.js +131 -0
  6. package/dist/models/BuilderImageByParentRequest.js.map +1 -0
  7. package/dist/models/BuilderImageByParentResponse.d.ts +19 -0
  8. package/dist/models/BuilderImageByParentResponse.js +69 -0
  9. package/dist/models/BuilderImageByParentResponse.js.map +1 -0
  10. package/dist/models/BuilderImageByParentResponseBody.d.ts +83 -0
  11. package/dist/models/BuilderImageByParentResponseBody.js +92 -0
  12. package/dist/models/BuilderImageByParentResponseBody.js.map +1 -0
  13. package/dist/models/BuilderImageByParentShrinkRequest.d.ts +270 -0
  14. package/dist/models/BuilderImageByParentShrinkRequest.js +128 -0
  15. package/dist/models/BuilderImageByParentShrinkRequest.js.map +1 -0
  16. package/dist/models/CreateAndBindAppRequest.d.ts +79 -0
  17. package/dist/models/CreateAndBindAppRequest.js +70 -0
  18. package/dist/models/CreateAndBindAppRequest.js.map +1 -0
  19. package/dist/models/CreateAndBindAppResponse.d.ts +19 -0
  20. package/dist/models/CreateAndBindAppResponse.js +69 -0
  21. package/dist/models/CreateAndBindAppResponse.js.map +1 -0
  22. package/dist/models/CreateAndBindAppResponseBody.d.ts +91 -0
  23. package/dist/models/CreateAndBindAppResponseBody.js +94 -0
  24. package/dist/models/CreateAndBindAppResponseBody.js.map +1 -0
  25. package/dist/models/DeleteAdaptorRequest.d.ts +53 -0
  26. package/dist/models/DeleteAdaptorRequest.js +66 -0
  27. package/dist/models/DeleteAdaptorRequest.js.map +1 -0
  28. package/dist/models/DeleteAdaptorResponse.d.ts +19 -0
  29. package/dist/models/DeleteAdaptorResponse.js +69 -0
  30. package/dist/models/DeleteAdaptorResponse.js.map +1 -0
  31. package/dist/models/DeleteAdaptorResponseBody.d.ts +47 -0
  32. package/dist/models/DeleteAdaptorResponseBody.js +66 -0
  33. package/dist/models/DeleteAdaptorResponseBody.js.map +1 -0
  34. package/dist/models/DeleteAppRequest.d.ts +29 -0
  35. package/dist/models/DeleteAppRequest.js +60 -0
  36. package/dist/models/DeleteAppRequest.js.map +1 -0
  37. package/dist/models/DeleteAppResponse.d.ts +19 -0
  38. package/dist/models/DeleteAppResponse.js +69 -0
  39. package/dist/models/DeleteAppResponse.js.map +1 -0
  40. package/dist/models/DeleteAppResponseBody.d.ts +47 -0
  41. package/dist/models/DeleteAppResponseBody.js +66 -0
  42. package/dist/models/DeleteAppResponseBody.js.map +1 -0
  43. package/dist/models/DescribeEventsRequest.d.ts +20 -20
  44. package/dist/models/DescribeEventsResponseBody.d.ts +12 -12
  45. package/dist/models/GetAuthCodeRequest.d.ts +100 -0
  46. package/dist/models/GetAuthCodeRequest.js +68 -0
  47. package/dist/models/GetAuthCodeRequest.js.map +1 -0
  48. package/dist/models/GetAuthCodeResponse.d.ts +19 -0
  49. package/dist/models/GetAuthCodeResponse.js +69 -0
  50. package/dist/models/GetAuthCodeResponse.js.map +1 -0
  51. package/dist/models/GetAuthCodeResponseBody.d.ts +136 -0
  52. package/dist/models/GetAuthCodeResponseBody.js +102 -0
  53. package/dist/models/GetAuthCodeResponseBody.js.map +1 -0
  54. package/dist/models/GetResourceModifyPriceRequest.d.ts +56 -0
  55. package/dist/models/GetResourceModifyPriceRequest.js +62 -0
  56. package/dist/models/GetResourceModifyPriceRequest.js.map +1 -0
  57. package/dist/models/GetResourceModifyPriceResponse.d.ts +19 -0
  58. package/dist/models/GetResourceModifyPriceResponse.js +69 -0
  59. package/dist/models/GetResourceModifyPriceResponse.js.map +1 -0
  60. package/dist/models/GetResourceModifyPriceResponseBody.d.ts +184 -0
  61. package/dist/models/GetResourceModifyPriceResponseBody.js +168 -0
  62. package/dist/models/GetResourceModifyPriceResponseBody.js.map +1 -0
  63. package/dist/models/GetResourceQuotaRequest.d.ts +58 -0
  64. package/dist/models/GetResourceQuotaRequest.js +64 -0
  65. package/dist/models/GetResourceQuotaRequest.js.map +1 -0
  66. package/dist/models/GetResourceQuotaResponse.d.ts +19 -0
  67. package/dist/models/GetResourceQuotaResponse.js +69 -0
  68. package/dist/models/GetResourceQuotaResponse.js.map +1 -0
  69. package/dist/models/GetResourceQuotaResponseBody.d.ts +51 -0
  70. package/dist/models/GetResourceQuotaResponseBody.js +64 -0
  71. package/dist/models/GetResourceQuotaResponseBody.js.map +1 -0
  72. package/dist/models/GetTaskRequest.d.ts +74 -0
  73. package/dist/models/GetTaskRequest.js +68 -0
  74. package/dist/models/GetTaskRequest.js.map +1 -0
  75. package/dist/models/GetTaskResponse.d.ts +19 -0
  76. package/dist/models/GetTaskResponse.js +69 -0
  77. package/dist/models/GetTaskResponse.js.map +1 -0
  78. package/dist/models/GetTaskResponseBody.d.ts +346 -0
  79. package/dist/models/GetTaskResponseBody.js +176 -0
  80. package/dist/models/GetTaskResponseBody.js.map +1 -0
  81. package/dist/models/ListAppInstanceTypeRequest.d.ts +163 -0
  82. package/dist/models/ListAppInstanceTypeRequest.js +91 -0
  83. package/dist/models/ListAppInstanceTypeRequest.js.map +1 -0
  84. package/dist/models/ListAppInstanceTypeResponse.d.ts +19 -0
  85. package/dist/models/ListAppInstanceTypeResponse.js +69 -0
  86. package/dist/models/ListAppInstanceTypeResponse.js.map +1 -0
  87. package/dist/models/ListAppInstanceTypeResponseBody.d.ts +229 -0
  88. package/dist/models/ListAppInstanceTypeResponseBody.js +162 -0
  89. package/dist/models/ListAppInstanceTypeResponseBody.js.map +1 -0
  90. package/dist/models/ListAppRequest.d.ts +149 -0
  91. package/dist/models/ListAppRequest.js +86 -0
  92. package/dist/models/ListAppRequest.js.map +1 -0
  93. package/dist/models/ListAppResponse.d.ts +19 -0
  94. package/dist/models/ListAppResponse.js +69 -0
  95. package/dist/models/ListAppResponse.js.map +1 -0
  96. package/dist/models/ListAppResponseBody.d.ts +262 -0
  97. package/dist/models/ListAppResponseBody.js +126 -0
  98. package/dist/models/ListAppResponseBody.js.map +1 -0
  99. package/dist/models/ListAppShrinkRequest.d.ts +149 -0
  100. package/dist/models/ListAppShrinkRequest.js +80 -0
  101. package/dist/models/ListAppShrinkRequest.js.map +1 -0
  102. package/dist/models/ListRegionIdRequest.d.ts +38 -0
  103. package/dist/models/ListRegionIdRequest.js +58 -0
  104. package/dist/models/ListRegionIdRequest.js.map +1 -0
  105. package/dist/models/ListRegionIdResponse.d.ts +19 -0
  106. package/dist/models/ListRegionIdResponse.js +69 -0
  107. package/dist/models/ListRegionIdResponse.js.map +1 -0
  108. package/dist/models/ListRegionIdResponseBody.d.ts +55 -0
  109. package/dist/models/ListRegionIdResponseBody.js +71 -0
  110. package/dist/models/ListRegionIdResponseBody.js.map +1 -0
  111. package/dist/models/ListTaskStepRequest.d.ts +25 -0
  112. package/dist/models/ListTaskStepRequest.js +58 -0
  113. package/dist/models/ListTaskStepRequest.js.map +1 -0
  114. package/dist/models/ListTaskStepResponse.d.ts +19 -0
  115. package/dist/models/ListTaskStepResponse.js +69 -0
  116. package/dist/models/ListTaskStepResponse.js.map +1 -0
  117. package/dist/models/ListTaskStepResponseBody.d.ts +122 -0
  118. package/dist/models/ListTaskStepResponseBody.js +92 -0
  119. package/dist/models/ListTaskStepResponseBody.js.map +1 -0
  120. package/dist/models/ListWuyingServerWorkloadTemplateRequest.d.ts +3 -3
  121. package/dist/models/ListWuyingServerWorkloadTemplateResponseBody.d.ts +5 -5
  122. package/dist/models/ModifyAppInstanceGroupChargeTypeRequest.d.ts +109 -0
  123. package/dist/models/ModifyAppInstanceGroupChargeTypeRequest.js +77 -0
  124. package/dist/models/ModifyAppInstanceGroupChargeTypeRequest.js.map +1 -0
  125. package/dist/models/ModifyAppInstanceGroupChargeTypeResponse.d.ts +19 -0
  126. package/dist/models/ModifyAppInstanceGroupChargeTypeResponse.js +69 -0
  127. package/dist/models/ModifyAppInstanceGroupChargeTypeResponse.js.map +1 -0
  128. package/dist/models/ModifyAppInstanceGroupChargeTypeResponseBody.d.ts +46 -0
  129. package/dist/models/ModifyAppInstanceGroupChargeTypeResponseBody.js +82 -0
  130. package/dist/models/ModifyAppInstanceGroupChargeTypeResponseBody.js.map +1 -0
  131. package/dist/models/ModifyAppInstanceGroupChargeTypeShrinkRequest.d.ts +109 -0
  132. package/dist/models/ModifyAppInstanceGroupChargeTypeShrinkRequest.js +74 -0
  133. package/dist/models/ModifyAppInstanceGroupChargeTypeShrinkRequest.js.map +1 -0
  134. package/dist/models/QueryAppInstanceGroupReportListRequest.d.ts +12 -12
  135. package/dist/models/QueryAppInstanceGroupReportListResponseBody.d.ts +8 -8
  136. package/dist/models/QueryConnectionReportRequest.d.ts +12 -12
  137. package/dist/models/QueryConnectionReportResponseBody.d.ts +7 -7
  138. package/dist/models/QueryDauReportDataRequest.d.ts +17 -15
  139. package/dist/models/QueryDauReportDataRequest.js.map +1 -1
  140. package/dist/models/QueryDauReportDataResponseBody.d.ts +9 -9
  141. package/dist/models/QueryMauReportDataRequest.d.ts +9 -9
  142. package/dist/models/QueryMauReportDataResponseBody.d.ts +5 -5
  143. package/dist/models/QueryNetworkRttReportRequest.d.ts +4 -4
  144. package/dist/models/QueryNetworkRttReportResponseBody.d.ts +5 -5
  145. package/dist/models/QueryNodeReportDataRequest.d.ts +21 -21
  146. package/dist/models/QueryNodeReportDataResponseBody.d.ts +7 -7
  147. package/dist/models/QuerySessionReportDataRequest.d.ts +13 -13
  148. package/dist/models/QuerySessionReportDataResponseBody.d.ts +7 -7
  149. package/dist/models/QueryUserAppUsageAggregateByHourRequest.d.ts +5 -5
  150. package/dist/models/QueryUserAppUsageAggregateByHourResponseBody.d.ts +2 -2
  151. package/dist/models/QueryUserAppUsageTimeRankRequest.d.ts +5 -6
  152. package/dist/models/QueryUserAppUsageTimeRankRequest.js.map +1 -1
  153. package/dist/models/QueryUserAppUsageTimeRankResponseBody.d.ts +5 -5
  154. package/dist/models/QueryUserUsageReportRequest.d.ts +17 -17
  155. package/dist/models/QueryUserUsageReportResponseBody.d.ts +8 -8
  156. package/dist/models/UnbindAppRequest.d.ts +38 -0
  157. package/dist/models/UnbindAppRequest.js +65 -0
  158. package/dist/models/UnbindAppRequest.js.map +1 -0
  159. package/dist/models/UnbindAppResponse.d.ts +19 -0
  160. package/dist/models/UnbindAppResponse.js +69 -0
  161. package/dist/models/UnbindAppResponse.js.map +1 -0
  162. package/dist/models/UnbindAppResponseBody.d.ts +42 -0
  163. package/dist/models/UnbindAppResponseBody.js +64 -0
  164. package/dist/models/UnbindAppResponseBody.js.map +1 -0
  165. package/dist/models/UpdateAdaptorRequest.d.ts +103 -0
  166. package/dist/models/UpdateAdaptorRequest.js +94 -0
  167. package/dist/models/UpdateAdaptorRequest.js.map +1 -0
  168. package/dist/models/UpdateAdaptorResponse.d.ts +19 -0
  169. package/dist/models/UpdateAdaptorResponse.js +69 -0
  170. package/dist/models/UpdateAdaptorResponse.js.map +1 -0
  171. package/dist/models/UpdateAdaptorResponseBody.d.ts +47 -0
  172. package/dist/models/UpdateAdaptorResponseBody.js +66 -0
  173. package/dist/models/UpdateAdaptorResponseBody.js.map +1 -0
  174. package/dist/models/UpdateAdaptorShrinkRequest.d.ts +67 -0
  175. package/dist/models/UpdateAdaptorShrinkRequest.js +68 -0
  176. package/dist/models/UpdateAdaptorShrinkRequest.js.map +1 -0
  177. package/dist/models/UpdateImageRequest.d.ts +83 -0
  178. package/dist/models/UpdateImageRequest.js +75 -0
  179. package/dist/models/UpdateImageRequest.js.map +1 -0
  180. package/dist/models/UpdateImageResponse.d.ts +19 -0
  181. package/dist/models/UpdateImageResponse.js +69 -0
  182. package/dist/models/UpdateImageResponse.js.map +1 -0
  183. package/dist/models/UpdateImageResponseBody.d.ts +47 -0
  184. package/dist/models/UpdateImageResponseBody.js +66 -0
  185. package/dist/models/UpdateImageResponseBody.js.map +1 -0
  186. package/dist/models/UpdateImageTaskRequest.d.ts +115 -0
  187. package/dist/models/UpdateImageTaskRequest.js +70 -0
  188. package/dist/models/UpdateImageTaskRequest.js.map +1 -0
  189. package/dist/models/UpdateImageTaskResponse.d.ts +19 -0
  190. package/dist/models/UpdateImageTaskResponse.js +69 -0
  191. package/dist/models/UpdateImageTaskResponse.js.map +1 -0
  192. package/dist/models/UpdateImageTaskResponseBody.d.ts +47 -0
  193. package/dist/models/UpdateImageTaskResponseBody.js +66 -0
  194. package/dist/models/UpdateImageTaskResponseBody.js.map +1 -0
  195. package/dist/models/model.d.ts +74 -0
  196. package/dist/models/model.js +161 -11
  197. package/dist/models/model.js.map +1 -1
  198. package/package.json +2 -1
  199. package/src/client.ts +1468 -71
  200. package/src/models/BuilderImageByParentRequest.ts +347 -0
  201. package/src/models/BuilderImageByParentResponse.ts +40 -0
  202. package/src/models/BuilderImageByParentResponseBody.ts +121 -0
  203. package/src/models/BuilderImageByParentShrinkRequest.ts +344 -0
  204. package/src/models/CreateAndBindAppRequest.ts +104 -0
  205. package/src/models/CreateAndBindAppResponse.ts +40 -0
  206. package/src/models/CreateAndBindAppResponseBody.ts +131 -0
  207. package/src/models/DeleteAdaptorRequest.ts +74 -0
  208. package/src/models/DeleteAdaptorResponse.ts +40 -0
  209. package/src/models/DeleteAdaptorResponseBody.ts +68 -0
  210. package/src/models/DeleteAppRequest.ts +44 -0
  211. package/src/models/DeleteAppResponse.ts +40 -0
  212. package/src/models/DeleteAppResponseBody.ts +68 -0
  213. package/src/models/DescribeEventsRequest.ts +20 -20
  214. package/src/models/DescribeEventsResponseBody.ts +12 -12
  215. package/src/models/GetAuthCodeRequest.ts +123 -0
  216. package/src/models/GetAuthCodeResponse.ts +40 -0
  217. package/src/models/GetAuthCodeResponseBody.ts +184 -0
  218. package/src/models/GetResourceModifyPriceRequest.ts +73 -0
  219. package/src/models/GetResourceModifyPriceResponse.ts +40 -0
  220. package/src/models/GetResourceModifyPriceResponseBody.ts +271 -0
  221. package/src/models/GetResourceQuotaRequest.ts +77 -0
  222. package/src/models/GetResourceQuotaResponse.ts +40 -0
  223. package/src/models/GetResourceQuotaResponseBody.ts +70 -0
  224. package/src/models/GetTaskRequest.ts +97 -0
  225. package/src/models/GetTaskResponse.ts +40 -0
  226. package/src/models/GetTaskResponseBody.ts +450 -0
  227. package/src/models/ListAppInstanceTypeRequest.ts +209 -0
  228. package/src/models/ListAppInstanceTypeResponse.ts +40 -0
  229. package/src/models/ListAppInstanceTypeResponseBody.ts +319 -0
  230. package/src/models/ListAppRequest.ts +190 -0
  231. package/src/models/ListAppResponse.ts +40 -0
  232. package/src/models/ListAppResponseBody.ts +334 -0
  233. package/src/models/ListAppShrinkRequest.ts +184 -0
  234. package/src/models/ListRegionIdRequest.ts +51 -0
  235. package/src/models/ListRegionIdResponse.ts +40 -0
  236. package/src/models/ListRegionIdResponseBody.ts +81 -0
  237. package/src/models/ListTaskStepRequest.ts +38 -0
  238. package/src/models/ListTaskStepResponse.ts +40 -0
  239. package/src/models/ListTaskStepResponseBody.ts +160 -0
  240. package/src/models/ListWuyingServerWorkloadTemplateRequest.ts +3 -3
  241. package/src/models/ListWuyingServerWorkloadTemplateResponseBody.ts +5 -5
  242. package/src/models/ModifyAppInstanceGroupChargeTypeRequest.ts +141 -0
  243. package/src/models/ModifyAppInstanceGroupChargeTypeResponse.ts +40 -0
  244. package/src/models/ModifyAppInstanceGroupChargeTypeResponseBody.ts +74 -0
  245. package/src/models/ModifyAppInstanceGroupChargeTypeShrinkRequest.ts +138 -0
  246. package/src/models/QueryAppInstanceGroupReportListRequest.ts +12 -12
  247. package/src/models/QueryAppInstanceGroupReportListResponseBody.ts +8 -8
  248. package/src/models/QueryConnectionReportRequest.ts +12 -12
  249. package/src/models/QueryConnectionReportResponseBody.ts +7 -7
  250. package/src/models/QueryDauReportDataRequest.ts +17 -15
  251. package/src/models/QueryDauReportDataResponseBody.ts +9 -9
  252. package/src/models/QueryMauReportDataRequest.ts +9 -9
  253. package/src/models/QueryMauReportDataResponseBody.ts +5 -5
  254. package/src/models/QueryNetworkRttReportRequest.ts +4 -4
  255. package/src/models/QueryNetworkRttReportResponseBody.ts +5 -5
  256. package/src/models/QueryNodeReportDataRequest.ts +21 -21
  257. package/src/models/QueryNodeReportDataResponseBody.ts +7 -7
  258. package/src/models/QuerySessionReportDataRequest.ts +13 -13
  259. package/src/models/QuerySessionReportDataResponseBody.ts +7 -7
  260. package/src/models/QueryUserAppUsageAggregateByHourRequest.ts +5 -5
  261. package/src/models/QueryUserAppUsageAggregateByHourResponseBody.ts +2 -2
  262. package/src/models/QueryUserAppUsageTimeRankRequest.ts +5 -6
  263. package/src/models/QueryUserAppUsageTimeRankResponseBody.ts +5 -5
  264. package/src/models/QueryUserUsageReportRequest.ts +17 -17
  265. package/src/models/QueryUserUsageReportResponseBody.ts +8 -8
  266. package/src/models/UnbindAppRequest.ts +58 -0
  267. package/src/models/UnbindAppResponse.ts +40 -0
  268. package/src/models/UnbindAppResponseBody.ts +61 -0
  269. package/src/models/UpdateAdaptorRequest.ts +143 -0
  270. package/src/models/UpdateAdaptorResponse.ts +40 -0
  271. package/src/models/UpdateAdaptorResponseBody.ts +68 -0
  272. package/src/models/UpdateAdaptorShrinkRequest.ts +90 -0
  273. package/src/models/UpdateImageRequest.ts +113 -0
  274. package/src/models/UpdateImageResponse.ts +40 -0
  275. package/src/models/UpdateImageResponseBody.ts +68 -0
  276. package/src/models/UpdateImageTaskRequest.ts +140 -0
  277. package/src/models/UpdateImageTaskResponse.ts +40 -0
  278. package/src/models/UpdateImageTaskResponseBody.ts +68 -0
  279. package/src/models/model.ts +74 -0
package/dist/client.js CHANGED
@@ -41,6 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  // This file is auto-generated, don't edit it
43
43
  const $dara = __importStar(require("@darabonba/typescript"));
44
+ const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
44
45
  const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
46
  const openapi_core_2 = require("@alicloud/openapi-core");
46
47
  const $_model = __importStar(require("./models/model"));
@@ -48,6 +49,9 @@ __exportStar(require("./models/model"), exports);
48
49
  class Client extends openapi_core_1.default {
49
50
  constructor(config) {
50
51
  super(config);
52
+ this._productId = "appstream-center";
53
+ let gatewayClient = new gateway_pop_1.default();
54
+ this._spi = gatewayClient;
51
55
  this._endpointRule = "regional";
52
56
  this.checkConfig(config);
53
57
  this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -381,6 +385,124 @@ class Client extends openapi_core_1.default {
381
385
  let runtime = new $dara.RuntimeOptions({});
382
386
  return await this.batchCreateLlmTemplatesWithOptions(request, runtime);
383
387
  }
388
+ /**
389
+ * Creates a custom image based on an existing image and starts an image creation task.
390
+ *
391
+ * @remarks
392
+ * Before you call this operation, make sure that the parent image is available and that an available image distribution record exists in the region where the image is to be created.
393
+ * 1. Call ListImage to obtain the parent image ID.
394
+ * 2. Specify the creation mode, disk capacity, and resource type, and then call this operation.
395
+ * 3. Save the returned ImageId, VersionId, and TaskId.
396
+ * 4. Call GetTask to query the creation progress. **A successful request does not indicate that the image creation is complete.**
397
+ *
398
+ * @param tmpReq - BuilderImageByParentRequest
399
+ * @param runtime - runtime options for this request RuntimeOptions
400
+ * @returns BuilderImageByParentResponse
401
+ */
402
+ async builderImageByParentWithOptions(tmpReq, runtime) {
403
+ tmpReq.validate();
404
+ let request = new $_model.BuilderImageByParentShrinkRequest({});
405
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
406
+ if (!$dara.isNull(tmpReq.propertyMap)) {
407
+ request.propertyMapShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.propertyMap, "PropertyMap", "json");
408
+ }
409
+ let body = {};
410
+ if (!$dara.isNull(request.bizType)) {
411
+ body["BizType"] = request.bizType;
412
+ }
413
+ if (!$dara.isNull(request.dataDiskSize)) {
414
+ body["DataDiskSize"] = request.dataDiskSize;
415
+ }
416
+ if (!$dara.isNull(request.description)) {
417
+ body["Description"] = request.description;
418
+ }
419
+ if (!$dara.isNull(request.distro)) {
420
+ body["Distro"] = request.distro;
421
+ }
422
+ if (!$dara.isNull(request.driverIdList)) {
423
+ body["DriverIdList"] = request.driverIdList;
424
+ }
425
+ if (!$dara.isNull(request.imageCreateMode)) {
426
+ body["ImageCreateMode"] = request.imageCreateMode;
427
+ }
428
+ if (!$dara.isNull(request.imageName)) {
429
+ body["ImageName"] = request.imageName;
430
+ }
431
+ if (!$dara.isNull(request.language)) {
432
+ body["Language"] = request.language;
433
+ }
434
+ if (!$dara.isNull(request.nodeInstanceType)) {
435
+ body["NodeInstanceType"] = request.nodeInstanceType;
436
+ }
437
+ if (!$dara.isNull(request.officeSiteId)) {
438
+ body["OfficeSiteId"] = request.officeSiteId;
439
+ }
440
+ if (!$dara.isNull(request.packageType)) {
441
+ body["PackageType"] = request.packageType;
442
+ }
443
+ if (!$dara.isNull(request.parentImageId)) {
444
+ body["ParentImageId"] = request.parentImageId;
445
+ }
446
+ if (!$dara.isNull(request.performanceType)) {
447
+ body["PerformanceType"] = request.performanceType;
448
+ }
449
+ if (!$dara.isNull(request.productType)) {
450
+ body["ProductType"] = request.productType;
451
+ }
452
+ if (!$dara.isNull(request.propertyMapShrink)) {
453
+ body["PropertyMap"] = request.propertyMapShrink;
454
+ }
455
+ if (!$dara.isNull(request.resourceList)) {
456
+ body["ResourceList"] = request.resourceList;
457
+ }
458
+ if (!$dara.isNull(request.runMode)) {
459
+ body["RunMode"] = request.runMode;
460
+ }
461
+ if (!$dara.isNull(request.sourceRegion)) {
462
+ body["SourceRegion"] = request.sourceRegion;
463
+ }
464
+ if (!$dara.isNull(request.systemDiskSize)) {
465
+ body["SystemDiskSize"] = request.systemDiskSize;
466
+ }
467
+ if (!$dara.isNull(request.vSwitchIdList)) {
468
+ body["VSwitchIdList"] = request.vSwitchIdList;
469
+ }
470
+ if (!$dara.isNull(request.versionName)) {
471
+ body["VersionName"] = request.versionName;
472
+ }
473
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
474
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
475
+ });
476
+ let params = new openapi_core_2.$OpenApiUtil.Params({
477
+ action: "BuilderImageByParent",
478
+ version: "2021-09-01",
479
+ protocol: "HTTPS",
480
+ pathname: "/",
481
+ method: "POST",
482
+ authType: "AK",
483
+ style: "RPC",
484
+ reqBodyType: "formData",
485
+ bodyType: "json",
486
+ });
487
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BuilderImageByParentResponse({}));
488
+ }
489
+ /**
490
+ * Creates a custom image based on an existing image and starts an image creation task.
491
+ *
492
+ * @remarks
493
+ * Before you call this operation, make sure that the parent image is available and that an available image distribution record exists in the region where the image is to be created.
494
+ * 1. Call ListImage to obtain the parent image ID.
495
+ * 2. Specify the creation mode, disk capacity, and resource type, and then call this operation.
496
+ * 3. Save the returned ImageId, VersionId, and TaskId.
497
+ * 4. Call GetTask to query the creation progress. **A successful request does not indicate that the image creation is complete.**
498
+ *
499
+ * @param request - BuilderImageByParentRequest
500
+ * @returns BuilderImageByParentResponse
501
+ */
502
+ async builderImageByParent(request) {
503
+ let runtime = new $dara.RuntimeOptions({});
504
+ return await this.builderImageByParentWithOptions(request, runtime);
505
+ }
384
506
  /**
385
507
  * Configures the model group for a resource group.
386
508
  *
@@ -554,6 +676,71 @@ class Client extends openapi_core_1.default {
554
676
  let runtime = new $dara.RuntimeOptions({});
555
677
  return await this.configRuntimeModelTemplateWithOptions(request, runtime);
556
678
  }
679
+ /**
680
+ * Creates an application and binds it to a specified image version.
681
+ *
682
+ * @remarks
683
+ * Only custom images and community images that can be managed by the current account are supported. If VersionId is omitted, the current active version of the image is used. If specified, the version must belong to the image specified by ImageId.
684
+ * Call ListImage first to select an image. After the application is created, save the returned AppId, AppVersionId, ImageId, and VersionId. To dissociate the application, call UnbindApp.
685
+ *
686
+ * @param request - CreateAndBindAppRequest
687
+ * @param runtime - runtime options for this request RuntimeOptions
688
+ * @returns CreateAndBindAppResponse
689
+ */
690
+ async createAndBindAppWithOptions(request, runtime) {
691
+ request.validate();
692
+ let body = {};
693
+ if (!$dara.isNull(request.appIconUrl)) {
694
+ body["AppIconUrl"] = request.appIconUrl;
695
+ }
696
+ if (!$dara.isNull(request.appName)) {
697
+ body["AppName"] = request.appName;
698
+ }
699
+ if (!$dara.isNull(request.imageId)) {
700
+ body["ImageId"] = request.imageId;
701
+ }
702
+ if (!$dara.isNull(request.originAppType)) {
703
+ body["OriginAppType"] = request.originAppType;
704
+ }
705
+ if (!$dara.isNull(request.port)) {
706
+ body["Port"] = request.port;
707
+ }
708
+ if (!$dara.isNull(request.urlSuffix)) {
709
+ body["UrlSuffix"] = request.urlSuffix;
710
+ }
711
+ if (!$dara.isNull(request.versionId)) {
712
+ body["VersionId"] = request.versionId;
713
+ }
714
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
715
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
716
+ });
717
+ let params = new openapi_core_2.$OpenApiUtil.Params({
718
+ action: "CreateAndBindApp",
719
+ version: "2021-09-01",
720
+ protocol: "HTTPS",
721
+ pathname: "/",
722
+ method: "POST",
723
+ authType: "AK",
724
+ style: "RPC",
725
+ reqBodyType: "formData",
726
+ bodyType: "json",
727
+ });
728
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAndBindAppResponse({}));
729
+ }
730
+ /**
731
+ * Creates an application and binds it to a specified image version.
732
+ *
733
+ * @remarks
734
+ * Only custom images and community images that can be managed by the current account are supported. If VersionId is omitted, the current active version of the image is used. If specified, the version must belong to the image specified by ImageId.
735
+ * Call ListImage first to select an image. After the application is created, save the returned AppId, AppVersionId, ImageId, and VersionId. To dissociate the application, call UnbindApp.
736
+ *
737
+ * @param request - CreateAndBindAppRequest
738
+ * @returns CreateAndBindAppResponse
739
+ */
740
+ async createAndBindApp(request) {
741
+ let runtime = new $dara.RuntimeOptions({});
742
+ return await this.createAndBindAppWithOptions(request, runtime);
743
+ }
557
744
  /**
558
745
  * Creates a delivery group.
559
746
  *
@@ -1282,6 +1469,125 @@ class Client extends openapi_core_1.default {
1282
1469
  let runtime = new $dara.RuntimeOptions({});
1283
1470
  return await this.createWuyingServerWithOptions(request, runtime);
1284
1471
  }
1472
+ /**
1473
+ * Deletes a specified application adapter, or dissociates the adapter from a specified image version.
1474
+ *
1475
+ * @remarks
1476
+ * *Confirm the deletion scope.**
1477
+ * - If both ImageId and VersionId are specified: The adapter is only dissociated from the specified image version.
1478
+ * - If ImageId and VersionId are not both specified: The adapter deletion process is initiated. An adapter cannot be deleted if it is still referenced by multiple images. If the application has other adapters, the application cannot be deleted along with the adapter.
1479
+ * **AdaptorId, AppVersionId, and AppId must be provided together and correspond to the same application adapter.** Verify these identifiers by checking the application and image query results first.
1480
+ *
1481
+ * @param request - DeleteAdaptorRequest
1482
+ * @param runtime - runtime options for this request RuntimeOptions
1483
+ * @returns DeleteAdaptorResponse
1484
+ */
1485
+ async deleteAdaptorWithOptions(request, runtime) {
1486
+ request.validate();
1487
+ let body = {};
1488
+ if (!$dara.isNull(request.adaptorId)) {
1489
+ body["AdaptorId"] = request.adaptorId;
1490
+ }
1491
+ if (!$dara.isNull(request.appId)) {
1492
+ body["AppId"] = request.appId;
1493
+ }
1494
+ if (!$dara.isNull(request.appVersionId)) {
1495
+ body["AppVersionId"] = request.appVersionId;
1496
+ }
1497
+ if (!$dara.isNull(request.imageId)) {
1498
+ body["ImageId"] = request.imageId;
1499
+ }
1500
+ if (!$dara.isNull(request.versionId)) {
1501
+ body["VersionId"] = request.versionId;
1502
+ }
1503
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1504
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1505
+ });
1506
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1507
+ action: "DeleteAdaptor",
1508
+ version: "2021-09-01",
1509
+ protocol: "HTTPS",
1510
+ pathname: "/",
1511
+ method: "POST",
1512
+ authType: "AK",
1513
+ style: "RPC",
1514
+ reqBodyType: "formData",
1515
+ bodyType: "json",
1516
+ });
1517
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAdaptorResponse({}));
1518
+ }
1519
+ /**
1520
+ * Deletes a specified application adapter, or dissociates the adapter from a specified image version.
1521
+ *
1522
+ * @remarks
1523
+ * *Confirm the deletion scope.**
1524
+ * - If both ImageId and VersionId are specified: The adapter is only dissociated from the specified image version.
1525
+ * - If ImageId and VersionId are not both specified: The adapter deletion process is initiated. An adapter cannot be deleted if it is still referenced by multiple images. If the application has other adapters, the application cannot be deleted along with the adapter.
1526
+ * **AdaptorId, AppVersionId, and AppId must be provided together and correspond to the same application adapter.** Verify these identifiers by checking the application and image query results first.
1527
+ *
1528
+ * @param request - DeleteAdaptorRequest
1529
+ * @returns DeleteAdaptorResponse
1530
+ */
1531
+ async deleteAdaptor(request) {
1532
+ let runtime = new $dara.RuntimeOptions({});
1533
+ return await this.deleteAdaptorWithOptions(request, runtime);
1534
+ }
1535
+ /**
1536
+ * Deletes a specified application version, or deletes the entire application and its adapters if the version ID is omitted.
1537
+ *
1538
+ * @remarks
1539
+ * *You must dissociate all image associations from the target application or version before deletion.**
1540
+ * 1. Call ListApp to obtain the AppId and confirm whether the application can be deleted.
1541
+ * 2. Use UnbindApp or DeleteAdaptor to dissociate related image associations.
1542
+ * 3. Specify AppVersionId to delete a single application version, or omit this parameter to delete the entire application.
1543
+ * After an application version is deleted, if the application has no other valid adapters, the application record is also deleted.
1544
+ *
1545
+ * @param request - DeleteAppRequest
1546
+ * @param runtime - runtime options for this request RuntimeOptions
1547
+ * @returns DeleteAppResponse
1548
+ */
1549
+ async deleteAppWithOptions(request, runtime) {
1550
+ request.validate();
1551
+ let body = {};
1552
+ if (!$dara.isNull(request.appId)) {
1553
+ body["AppId"] = request.appId;
1554
+ }
1555
+ if (!$dara.isNull(request.appVersionId)) {
1556
+ body["AppVersionId"] = request.appVersionId;
1557
+ }
1558
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1559
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1560
+ });
1561
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1562
+ action: "DeleteApp",
1563
+ version: "2021-09-01",
1564
+ protocol: "HTTPS",
1565
+ pathname: "/",
1566
+ method: "POST",
1567
+ authType: "AK",
1568
+ style: "RPC",
1569
+ reqBodyType: "formData",
1570
+ bodyType: "json",
1571
+ });
1572
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAppResponse({}));
1573
+ }
1574
+ /**
1575
+ * Deletes a specified application version, or deletes the entire application and its adapters if the version ID is omitted.
1576
+ *
1577
+ * @remarks
1578
+ * *You must dissociate all image associations from the target application or version before deletion.**
1579
+ * 1. Call ListApp to obtain the AppId and confirm whether the application can be deleted.
1580
+ * 2. Use UnbindApp or DeleteAdaptor to dissociate related image associations.
1581
+ * 3. Specify AppVersionId to delete a single application version, or omit this parameter to delete the entire application.
1582
+ * After an application version is deleted, if the application has no other valid adapters, the application record is also deleted.
1583
+ *
1584
+ * @param request - DeleteAppRequest
1585
+ * @returns DeleteAppResponse
1586
+ */
1587
+ async deleteApp(request) {
1588
+ let runtime = new $dara.RuntimeOptions({});
1589
+ return await this.deleteAppWithOptions(request, runtime);
1590
+ }
1285
1591
  /**
1286
1592
  * Deletes a resource-based pay-as-you-go delivery group.
1287
1593
  *
@@ -1673,10 +1979,10 @@ class Client extends openapi_core_1.default {
1673
1979
  return await this.deliverToUserSlsWithOptions(request, runtime);
1674
1980
  }
1675
1981
  /**
1676
- * Queries the resource and session events of the current account within the last 30 days by using paging.
1982
+ * Performs a paged query for the resource and session events of the current account within the last 30 days. Paging is supported.
1677
1983
  *
1678
1984
  * @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`.
1985
+ * Queries the resource and session events of the current account. Both StartTime and EndTime must be specified, and the time range is inclusive. 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, the intersection of the conditions is applied. The results are returned in descending order of the event log time. For pagination, specify PageSize and PageNumber. The current version does not use MaxResults and NextToken.
1680
1986
  *
1681
1987
  * @param request - DescribeEventsRequest
1682
1988
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1750,10 +2056,10 @@ class Client extends openapi_core_1.default {
1750
2056
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeEventsResponse({}));
1751
2057
  }
1752
2058
  /**
1753
- * Queries the resource and session events of the current account within the last 30 days by using paging.
2059
+ * Performs a paged query for the resource and session events of the current account within the last 30 days. Paging is supported.
1754
2060
  *
1755
2061
  * @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`.
2062
+ * Queries the resource and session events of the current account. Both StartTime and EndTime must be specified, and the time range is inclusive. 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, the intersection of the conditions is applied. The results are returned in descending order of the event log time. For pagination, specify PageSize and PageNumber. The current version does not use MaxResults and NextToken.
1757
2063
  *
1758
2064
  * @param request - DescribeEventsRequest
1759
2065
  * @returns DescribeEventsResponse
@@ -1885,6 +2191,74 @@ class Client extends openapi_core_1.default {
1885
2191
  let runtime = new $dara.RuntimeOptions({});
1886
2192
  return await this.getAppInstanceGroupWithOptions(request, runtime);
1887
2193
  }
2194
+ /**
2195
+ * Retrieves the connection authorization code and required resource information for an existing image or application building task.
2196
+ *
2197
+ * @remarks
2198
+ * Before calling this operation, you must create a task, and the building or validation resources corresponding to the task must be available.
2199
+ * 1. Obtain TaskId and the actual TaskType from the response of the task creation operation or GetTask.
2200
+ * 2. Specify ResourceType to obtain the connection information for the building or validation environment.
2201
+ * 3. Use the returned authorization code along with the user, resource group, and application identifiers in the same response for connection.
2202
+ * The authorization code is a sensitive connection credential. Do not record it in public documents or logs. When specifying AppId, you must also specify the matching AppVersionId.
2203
+ *
2204
+ * @param request - GetAuthCodeRequest
2205
+ * @param runtime - runtime options for this request RuntimeOptions
2206
+ * @returns GetAuthCodeResponse
2207
+ */
2208
+ async getAuthCodeWithOptions(request, runtime) {
2209
+ request.validate();
2210
+ let body = {};
2211
+ if (!$dara.isNull(request.appId)) {
2212
+ body["AppId"] = request.appId;
2213
+ }
2214
+ if (!$dara.isNull(request.appVersionId)) {
2215
+ body["AppVersionId"] = request.appVersionId;
2216
+ }
2217
+ if (!$dara.isNull(request.bizRegionId)) {
2218
+ body["BizRegionId"] = request.bizRegionId;
2219
+ }
2220
+ if (!$dara.isNull(request.resourceType)) {
2221
+ body["ResourceType"] = request.resourceType;
2222
+ }
2223
+ if (!$dara.isNull(request.taskId)) {
2224
+ body["TaskId"] = request.taskId;
2225
+ }
2226
+ if (!$dara.isNull(request.taskType)) {
2227
+ body["TaskType"] = request.taskType;
2228
+ }
2229
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2230
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2231
+ });
2232
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2233
+ action: "GetAuthCode",
2234
+ version: "2021-09-01",
2235
+ protocol: "HTTPS",
2236
+ pathname: "/",
2237
+ method: "POST",
2238
+ authType: "AK",
2239
+ style: "RPC",
2240
+ reqBodyType: "formData",
2241
+ bodyType: "json",
2242
+ });
2243
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAuthCodeResponse({}));
2244
+ }
2245
+ /**
2246
+ * Retrieves the connection authorization code and required resource information for an existing image or application building task.
2247
+ *
2248
+ * @remarks
2249
+ * Before calling this operation, you must create a task, and the building or validation resources corresponding to the task must be available.
2250
+ * 1. Obtain TaskId and the actual TaskType from the response of the task creation operation or GetTask.
2251
+ * 2. Specify ResourceType to obtain the connection information for the building or validation environment.
2252
+ * 3. Use the returned authorization code along with the user, resource group, and application identifiers in the same response for connection.
2253
+ * The authorization code is a sensitive connection credential. Do not record it in public documents or logs. When specifying AppId, you must also specify the matching AppVersionId.
2254
+ *
2255
+ * @param request - GetAuthCodeRequest
2256
+ * @returns GetAuthCodeResponse
2257
+ */
2258
+ async getAuthCode(request) {
2259
+ let runtime = new $dara.RuntimeOptions({});
2260
+ return await this.getAuthCodeWithOptions(request, runtime);
2261
+ }
1888
2262
  /**
1889
2263
  * Queries the configuration, status, and authorization statistics of a specified cloud browser group.
1890
2264
  *
@@ -2216,6 +2590,87 @@ class Client extends openapi_core_1.default {
2216
2590
  let runtime = new $dara.RuntimeOptions({});
2217
2591
  return await this.getOtaTaskByTaskIdWithOptions(request, runtime);
2218
2592
  }
2593
+ /**
2594
+ * Queries the pricing and discount information for scaling out a subscription delivery group to a specified total number of nodes.
2595
+ *
2596
+ * @remarks
2597
+ * This operation queries the resource scale-out pricing for an existing delivery group. A successful call returns only a quote and does not create an order or add nodes.
2598
+ * **Before you call this operation, verify the following conditions:**
2599
+ * - The delivery group belongs to the current account and is located in a supported region in the Chinese mainland.
2600
+ * - The product type is Wuying Cloud App or Cloud Browser, and the billing method is subscription and purchased by node. This operation does not apply to browser groups that use the pay-as-you-go billing method or are billed by monthly active users (MAU).
2601
+ * - The order status of the delivery group is normal, a resource node pool is associated, and no paid but ineffective renewal or scale-in orders exist.
2602
+ * - The target total number of nodes is greater than the current number of purchased nodes and does not exceed the node quota for the corresponding region, product, and billing method under the account.
2603
+ * **Parameter relationships:**
2604
+ * - ProductType, AppInstanceGroupId, and Amount are all required parameters and must be specified together.
2605
+ * - ProductType must match the product corresponding to AppInstanceGroupId.
2606
+ * - **Amount is the total number of nodes after the scale-out, not the number of nodes added in this operation.** The region, node specifications, and billing method are determined by the existing delivery group and do not need to be passed separately.
2607
+ * **Call sequence:**
2608
+ * 1. First, confirm the target delivery group and the current number of purchased nodes. For Cloud App Common scenarios, you can first invoke [ListAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/ListAppInstanceGroup) to obtain the identity, and then invoke [GetAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/GetAppInstanceGroup) to query the configuration and NodePool.NodeAmount.
2609
+ * 2. Invoke this operation with the same product type, delivery group identity, and target total number of nodes to read the pricing, coupons, and pricing calculation rules.
2610
+ * 3. After confirming the quote, if you need to execute the scale-out, you can invoke [ModifyNodePoolAmount](https://api.aliyun.com/document/appstream-center/2021-09-01/ModifyNodePoolAmount) and fill in the target total number in NodePool.NodeAmount as required by the operation. **A successful pricing query does not mean that an order has been created or the scale-out has been completed.**
2611
+ * **Example scenario:**
2612
+ * If a cloud app delivery group currently has 1 purchased subscription node and the target is to scale out to 2 nodes, set ProductType to CloudApp, AppInstanceGroupId to the ID of the delivery group, and Amount to 2. Replace the masked resource IDs with the actual values under the current account. The example quantities do not represent default values or quota limits. The pricing examples only illustrate the relationship among the original price, discount amount, and discounted price, and do not represent the fixed selling price of the specifications.
2613
+ *
2614
+ * @param request - GetResourceModifyPriceRequest
2615
+ * @param runtime - runtime options for this request RuntimeOptions
2616
+ * @returns GetResourceModifyPriceResponse
2617
+ */
2618
+ async getResourceModifyPriceWithOptions(request, runtime) {
2619
+ request.validate();
2620
+ let query = {};
2621
+ if (!$dara.isNull(request.amount)) {
2622
+ query["Amount"] = request.amount;
2623
+ }
2624
+ if (!$dara.isNull(request.appInstanceGroupId)) {
2625
+ query["AppInstanceGroupId"] = request.appInstanceGroupId;
2626
+ }
2627
+ if (!$dara.isNull(request.productType)) {
2628
+ query["ProductType"] = request.productType;
2629
+ }
2630
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2631
+ query: openapi_core_2.OpenApiUtil.query(query),
2632
+ });
2633
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2634
+ action: "GetResourceModifyPrice",
2635
+ version: "2021-09-01",
2636
+ protocol: "HTTPS",
2637
+ pathname: "/",
2638
+ method: "POST",
2639
+ authType: "AK",
2640
+ style: "RPC",
2641
+ reqBodyType: "formData",
2642
+ bodyType: "json",
2643
+ });
2644
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetResourceModifyPriceResponse({}));
2645
+ }
2646
+ /**
2647
+ * Queries the pricing and discount information for scaling out a subscription delivery group to a specified total number of nodes.
2648
+ *
2649
+ * @remarks
2650
+ * This operation queries the resource scale-out pricing for an existing delivery group. A successful call returns only a quote and does not create an order or add nodes.
2651
+ * **Before you call this operation, verify the following conditions:**
2652
+ * - The delivery group belongs to the current account and is located in a supported region in the Chinese mainland.
2653
+ * - The product type is Wuying Cloud App or Cloud Browser, and the billing method is subscription and purchased by node. This operation does not apply to browser groups that use the pay-as-you-go billing method or are billed by monthly active users (MAU).
2654
+ * - The order status of the delivery group is normal, a resource node pool is associated, and no paid but ineffective renewal or scale-in orders exist.
2655
+ * - The target total number of nodes is greater than the current number of purchased nodes and does not exceed the node quota for the corresponding region, product, and billing method under the account.
2656
+ * **Parameter relationships:**
2657
+ * - ProductType, AppInstanceGroupId, and Amount are all required parameters and must be specified together.
2658
+ * - ProductType must match the product corresponding to AppInstanceGroupId.
2659
+ * - **Amount is the total number of nodes after the scale-out, not the number of nodes added in this operation.** The region, node specifications, and billing method are determined by the existing delivery group and do not need to be passed separately.
2660
+ * **Call sequence:**
2661
+ * 1. First, confirm the target delivery group and the current number of purchased nodes. For Cloud App Common scenarios, you can first invoke [ListAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/ListAppInstanceGroup) to obtain the identity, and then invoke [GetAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/GetAppInstanceGroup) to query the configuration and NodePool.NodeAmount.
2662
+ * 2. Invoke this operation with the same product type, delivery group identity, and target total number of nodes to read the pricing, coupons, and pricing calculation rules.
2663
+ * 3. After confirming the quote, if you need to execute the scale-out, you can invoke [ModifyNodePoolAmount](https://api.aliyun.com/document/appstream-center/2021-09-01/ModifyNodePoolAmount) and fill in the target total number in NodePool.NodeAmount as required by the operation. **A successful pricing query does not mean that an order has been created or the scale-out has been completed.**
2664
+ * **Example scenario:**
2665
+ * If a cloud app delivery group currently has 1 purchased subscription node and the target is to scale out to 2 nodes, set ProductType to CloudApp, AppInstanceGroupId to the ID of the delivery group, and Amount to 2. Replace the masked resource IDs with the actual values under the current account. The example quantities do not represent default values or quota limits. The pricing examples only illustrate the relationship among the original price, discount amount, and discounted price, and do not represent the fixed selling price of the specifications.
2666
+ *
2667
+ * @param request - GetResourceModifyPriceRequest
2668
+ * @returns GetResourceModifyPriceResponse
2669
+ */
2670
+ async getResourceModifyPrice(request) {
2671
+ let runtime = new $dara.RuntimeOptions({});
2672
+ return await this.getResourceModifyPriceWithOptions(request, runtime);
2673
+ }
2219
2674
  /**
2220
2675
  * Queries the price information of a resource.
2221
2676
  *
@@ -2276,6 +2731,80 @@ class Client extends openapi_core_1.default {
2276
2731
  let runtime = new $dara.RuntimeOptions({});
2277
2732
  return await this.getResourcePriceWithOptions(request, runtime);
2278
2733
  }
2734
+ /**
2735
+ * Queries the maximum quantity quota applicable to the current account for a specified product, resource type, business region, and billing method.
2736
+ *
2737
+ * @remarks
2738
+ * This operation queries the maximum quantity quota. It does not query the used quota, remaining quota, or real-time resource inventory.
2739
+ * **Parameter relationships:**
2740
+ * - `ResourceType` and `ProductType` are required.
2741
+ * - `BizRegionId` and `ChargeType` are optional query conditions and can be specified at the same time. They must be consistent with subsequent purchase or authorization operations.
2742
+ * - If the region or billing method is omitted, the general quota for the corresponding dimension is queried. The quotas of different regions or billing methods are not added together.
2743
+ * - If multiple quotas apply at the same time, the larger limit is returned.
2744
+ * **Call sequence:**
2745
+ * 1. Select the resource type, product, business region, and billing method of the payer based on subsequent business needs.
2746
+ * 2. Invoke this operation to read `Data`. Query `AppInstanceGroup` before creating a delivery group, query `AppAuthUser` before adding an authorized user, and query `PoolNodeAmount` before purchasing or scaling out nodes.
2747
+ * 3. Query the current usage in combination with the resources, and then verify the current operation by using subsequent creation, authorization, or scale-out operations. **This query does not reserve quotas or guarantee the success of subsequent purchases.**
2748
+ * `Data=2147483647` indicates that no smaller quota limit is obtained in this query. It does not mean that the physical inventory is unlimited.
2749
+ *
2750
+ * @param request - GetResourceQuotaRequest
2751
+ * @param runtime - runtime options for this request RuntimeOptions
2752
+ * @returns GetResourceQuotaResponse
2753
+ */
2754
+ async getResourceQuotaWithOptions(request, runtime) {
2755
+ request.validate();
2756
+ let query = {};
2757
+ if (!$dara.isNull(request.bizRegionId)) {
2758
+ query["BizRegionId"] = request.bizRegionId;
2759
+ }
2760
+ if (!$dara.isNull(request.chargeType)) {
2761
+ query["ChargeType"] = request.chargeType;
2762
+ }
2763
+ if (!$dara.isNull(request.productType)) {
2764
+ query["ProductType"] = request.productType;
2765
+ }
2766
+ if (!$dara.isNull(request.resourceType)) {
2767
+ query["ResourceType"] = request.resourceType;
2768
+ }
2769
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2770
+ query: openapi_core_2.OpenApiUtil.query(query),
2771
+ });
2772
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2773
+ action: "GetResourceQuota",
2774
+ version: "2021-09-01",
2775
+ protocol: "HTTPS",
2776
+ pathname: "/",
2777
+ method: "POST",
2778
+ authType: "AK",
2779
+ style: "RPC",
2780
+ reqBodyType: "formData",
2781
+ bodyType: "json",
2782
+ });
2783
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetResourceQuotaResponse({}));
2784
+ }
2785
+ /**
2786
+ * Queries the maximum quantity quota applicable to the current account for a specified product, resource type, business region, and billing method.
2787
+ *
2788
+ * @remarks
2789
+ * This operation queries the maximum quantity quota. It does not query the used quota, remaining quota, or real-time resource inventory.
2790
+ * **Parameter relationships:**
2791
+ * - `ResourceType` and `ProductType` are required.
2792
+ * - `BizRegionId` and `ChargeType` are optional query conditions and can be specified at the same time. They must be consistent with subsequent purchase or authorization operations.
2793
+ * - If the region or billing method is omitted, the general quota for the corresponding dimension is queried. The quotas of different regions or billing methods are not added together.
2794
+ * - If multiple quotas apply at the same time, the larger limit is returned.
2795
+ * **Call sequence:**
2796
+ * 1. Select the resource type, product, business region, and billing method of the payer based on subsequent business needs.
2797
+ * 2. Invoke this operation to read `Data`. Query `AppInstanceGroup` before creating a delivery group, query `AppAuthUser` before adding an authorized user, and query `PoolNodeAmount` before purchasing or scaling out nodes.
2798
+ * 3. Query the current usage in combination with the resources, and then verify the current operation by using subsequent creation, authorization, or scale-out operations. **This query does not reserve quotas or guarantee the success of subsequent purchases.**
2799
+ * `Data=2147483647` indicates that no smaller quota limit is obtained in this query. It does not mean that the physical inventory is unlimited.
2800
+ *
2801
+ * @param request - GetResourceQuotaRequest
2802
+ * @returns GetResourceQuotaResponse
2803
+ */
2804
+ async getResourceQuota(request) {
2805
+ let runtime = new $dara.RuntimeOptions({});
2806
+ return await this.getResourceQuotaWithOptions(request, runtime);
2807
+ }
2279
2808
  /**
2280
2809
  * Queries the renewal price of WUYING Cloud Application resources.
2281
2810
  *
@@ -2443,6 +2972,160 @@ class Client extends openapi_core_1.default {
2443
2972
  let runtime = new $dara.RuntimeOptions({});
2444
2973
  return await this.getRuntimeModelConfigWithOptions(request, runtime);
2445
2974
  }
2975
+ /**
2976
+ * Queries the details of a task by task ID, or by resource information and task category.
2977
+ *
2978
+ * @remarks
2979
+ * Supports two query methods:
2980
+ * - **Query by task ID**: Pass the TaskId parameter. This method takes precedence over querying by resource information.
2981
+ * - **Query by resource**: Omit the TaskId parameter, and pass the EntityId, EntityType, and TaskCategory parameters. You can use the EntityVersionId parameter to specify the resource version.
2982
+ * The API returns the current task status and recorded step information. Determine the overall task result based on the Status parameter. The success of a single step does not indicate the success of the entire task. You can call the ListTaskStep operation to query the names and categories of image creation and application adaptation steps.
2983
+ *
2984
+ * @param request - GetTaskRequest
2985
+ * @param runtime - runtime options for this request RuntimeOptions
2986
+ * @returns GetTaskResponse
2987
+ */
2988
+ async getTaskWithOptions(request, runtime) {
2989
+ request.validate();
2990
+ let body = {};
2991
+ if (!$dara.isNull(request.entityId)) {
2992
+ body["EntityId"] = request.entityId;
2993
+ }
2994
+ if (!$dara.isNull(request.entityType)) {
2995
+ body["EntityType"] = request.entityType;
2996
+ }
2997
+ if (!$dara.isNull(request.entityVersionId)) {
2998
+ body["EntityVersionId"] = request.entityVersionId;
2999
+ }
3000
+ if (!$dara.isNull(request.taskCategory)) {
3001
+ body["TaskCategory"] = request.taskCategory;
3002
+ }
3003
+ if (!$dara.isNull(request.taskId)) {
3004
+ body["TaskId"] = request.taskId;
3005
+ }
3006
+ if (!$dara.isNull(request.taskType)) {
3007
+ body["TaskType"] = request.taskType;
3008
+ }
3009
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3010
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
3011
+ });
3012
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3013
+ action: "GetTask",
3014
+ version: "2021-09-01",
3015
+ protocol: "HTTPS",
3016
+ pathname: "/",
3017
+ method: "POST",
3018
+ authType: "AK",
3019
+ style: "RPC",
3020
+ reqBodyType: "formData",
3021
+ bodyType: "json",
3022
+ });
3023
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTaskResponse({}));
3024
+ }
3025
+ /**
3026
+ * Queries the details of a task by task ID, or by resource information and task category.
3027
+ *
3028
+ * @remarks
3029
+ * Supports two query methods:
3030
+ * - **Query by task ID**: Pass the TaskId parameter. This method takes precedence over querying by resource information.
3031
+ * - **Query by resource**: Omit the TaskId parameter, and pass the EntityId, EntityType, and TaskCategory parameters. You can use the EntityVersionId parameter to specify the resource version.
3032
+ * The API returns the current task status and recorded step information. Determine the overall task result based on the Status parameter. The success of a single step does not indicate the success of the entire task. You can call the ListTaskStep operation to query the names and categories of image creation and application adaptation steps.
3033
+ *
3034
+ * @param request - GetTaskRequest
3035
+ * @returns GetTaskResponse
3036
+ */
3037
+ async getTask(request) {
3038
+ let runtime = new $dara.RuntimeOptions({});
3039
+ return await this.getTaskWithOptions(request, runtime);
3040
+ }
3041
+ /**
3042
+ * Performs a paging query on the valid applications of the current account based on conditions such as the application ID, name, type, and associated product.
3043
+ *
3044
+ * @remarks
3045
+ * When multiple filter conditions are specified simultaneously, they take effect together. AppName supports partial match. When a single-value filter and the corresponding list filter are specified simultaneously, the intersection is used. To avoid empty results, select only one of the formats.
3046
+ * If PageSize is omitted, the value is 10. Query pages sequentially starting from PageNumber 1 until the number of retrieved records reaches Count. Before deleting an application, check Deletable.
3047
+ *
3048
+ * @param tmpReq - ListAppRequest
3049
+ * @param runtime - runtime options for this request RuntimeOptions
3050
+ * @returns ListAppResponse
3051
+ */
3052
+ async listAppWithOptions(tmpReq, runtime) {
3053
+ tmpReq.validate();
3054
+ let request = new $_model.ListAppShrinkRequest({});
3055
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3056
+ if (!$dara.isNull(tmpReq.bizTypeList)) {
3057
+ request.bizTypeListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizTypeList, "BizTypeList", "json");
3058
+ }
3059
+ if (!$dara.isNull(tmpReq.productTypeList)) {
3060
+ request.productTypeListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.productTypeList, "ProductTypeList", "json");
3061
+ }
3062
+ let body = {};
3063
+ if (!$dara.isNull(request.appId)) {
3064
+ body["AppId"] = request.appId;
3065
+ }
3066
+ if (!$dara.isNull(request.appName)) {
3067
+ body["AppName"] = request.appName;
3068
+ }
3069
+ if (!$dara.isNull(request.appType)) {
3070
+ body["AppType"] = request.appType;
3071
+ }
3072
+ if (!$dara.isNull(request.bizType)) {
3073
+ body["BizType"] = request.bizType;
3074
+ }
3075
+ if (!$dara.isNull(request.bizTypeListShrink)) {
3076
+ body["BizTypeList"] = request.bizTypeListShrink;
3077
+ }
3078
+ if (!$dara.isNull(request.originAppType)) {
3079
+ body["OriginAppType"] = request.originAppType;
3080
+ }
3081
+ if (!$dara.isNull(request.osType)) {
3082
+ body["OsType"] = request.osType;
3083
+ }
3084
+ if (!$dara.isNull(request.pageNumber)) {
3085
+ body["PageNumber"] = request.pageNumber;
3086
+ }
3087
+ if (!$dara.isNull(request.pageSize)) {
3088
+ body["PageSize"] = request.pageSize;
3089
+ }
3090
+ if (!$dara.isNull(request.productType)) {
3091
+ body["ProductType"] = request.productType;
3092
+ }
3093
+ if (!$dara.isNull(request.productTypeListShrink)) {
3094
+ body["ProductTypeList"] = request.productTypeListShrink;
3095
+ }
3096
+ if (!$dara.isNull(request.subAppType)) {
3097
+ body["SubAppType"] = request.subAppType;
3098
+ }
3099
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3100
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
3101
+ });
3102
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3103
+ action: "ListApp",
3104
+ version: "2021-09-01",
3105
+ protocol: "HTTPS",
3106
+ pathname: "/",
3107
+ method: "POST",
3108
+ authType: "AK",
3109
+ style: "RPC",
3110
+ reqBodyType: "formData",
3111
+ bodyType: "json",
3112
+ });
3113
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAppResponse({}));
3114
+ }
3115
+ /**
3116
+ * Performs a paging query on the valid applications of the current account based on conditions such as the application ID, name, type, and associated product.
3117
+ *
3118
+ * @remarks
3119
+ * When multiple filter conditions are specified simultaneously, they take effect together. AppName supports partial match. When a single-value filter and the corresponding list filter are specified simultaneously, the intersection is used. To avoid empty results, select only one of the formats.
3120
+ * If PageSize is omitted, the value is 10. Query pages sequentially starting from PageNumber 1 until the number of retrieved records reaches Count. Before deleting an application, check Deletable.
3121
+ *
3122
+ * @param request - ListAppRequest
3123
+ * @returns ListAppResponse
3124
+ */
3125
+ async listApp(request) {
3126
+ let runtime = new $dara.RuntimeOptions({});
3127
+ return await this.listAppWithOptions(request, runtime);
3128
+ }
2446
3129
  /**
2447
3130
  * Queries the details of multiple delivery groups. This operation queries all delivery groups that meet the specified conditions instead of a specific delivery group.
2448
3131
  *
@@ -2523,6 +3206,120 @@ class Client extends openapi_core_1.default {
2523
3206
  let runtime = new $dara.RuntimeOptions({});
2524
3207
  return await this.listAppInstanceGroupWithOptions(request, runtime);
2525
3208
  }
3209
+ /**
3210
+ * Queries the available session instance types for the current account by paging based on the product, region, operating system, and instance type conditions.
3211
+ *
3212
+ * @remarks
3213
+ * This operation is used to select session instance types and does not create resources. The returned results are affected by the available instance types of the account and the business region. An empty result does not indicate a request failure.
3214
+ * **Filtering and pagination:**
3215
+ * - ProductType is required. Explicitly specify BizRegionId, PageNumber, and PageSize.
3216
+ * - If BizRegionId is not provided, the region of the current request is used. You can call [ListRegions](https://api.aliyun.com/document/appstream-center/2021-09-01/ListRegions) to obtain the business region.
3217
+ * - AppInstanceType and AppInstanceTypeList can be specified at the same time. In this case, only the instance types that meet both conditions are returned. Neither parameter overrides the other. The list can contain up to 100 items.
3218
+ * - Instance type family, CPU, memory, GPU memory, operating system, and category conditions are filtered by intersection. The union is not automatically applied.
3219
+ * - PageNumber starts from 1. Use TotalCount, PageSize, and PageNumber to continue pagination until all matching results are read.
3220
+ * **Inventory and subsequent calls:**
3221
+ * - Inventory is queried only when QueryInventory is set to true. If inventory information is not obtained, do not assume that the inventory is 0.
3222
+ * - The inventory reflects the current query result and does not indicate a successful reservation.
3223
+ * - After obtaining the AppInstanceType, you can query the price based on the session instance type parameter requirements of [GetResourcePrice](https://api.aliyun.com/document/appstream-center/2021-09-01/GetResourcePrice).
3224
+ * - The current query does not use AppCenterImageId to filter instance types. Do not use this parameter to determine the compatibility between images and instance types.
3225
+ * Field examples are used to demonstrate how to specify parameters and do not guarantee that the example instance types exist in the selected region or account. The GPU count field does not currently provide values. Use the GPU memory field to understand the instance type.
3226
+ *
3227
+ * @param request - ListAppInstanceTypeRequest
3228
+ * @param runtime - runtime options for this request RuntimeOptions
3229
+ * @returns ListAppInstanceTypeResponse
3230
+ */
3231
+ async listAppInstanceTypeWithOptions(request, runtime) {
3232
+ request.validate();
3233
+ let query = {};
3234
+ if (!$dara.isNull(request.appCenterImageId)) {
3235
+ query["AppCenterImageId"] = request.appCenterImageId;
3236
+ }
3237
+ if (!$dara.isNull(request.appInstanceType)) {
3238
+ query["AppInstanceType"] = request.appInstanceType;
3239
+ }
3240
+ if (!$dara.isNull(request.appInstanceTypeFamily)) {
3241
+ query["AppInstanceTypeFamily"] = request.appInstanceTypeFamily;
3242
+ }
3243
+ if (!$dara.isNull(request.appInstanceTypeList)) {
3244
+ query["AppInstanceTypeList"] = request.appInstanceTypeList;
3245
+ }
3246
+ if (!$dara.isNull(request.bizRegionId)) {
3247
+ query["BizRegionId"] = request.bizRegionId;
3248
+ }
3249
+ if (!$dara.isNull(request.category)) {
3250
+ query["Category"] = request.category;
3251
+ }
3252
+ if (!$dara.isNull(request.chargeType)) {
3253
+ query["ChargeType"] = request.chargeType;
3254
+ }
3255
+ if (!$dara.isNull(request.cpu)) {
3256
+ query["Cpu"] = request.cpu;
3257
+ }
3258
+ if (!$dara.isNull(request.gpuMemory)) {
3259
+ query["GpuMemory"] = request.gpuMemory;
3260
+ }
3261
+ if (!$dara.isNull(request.language)) {
3262
+ query["Language"] = request.language;
3263
+ }
3264
+ if (!$dara.isNull(request.memory)) {
3265
+ query["Memory"] = request.memory;
3266
+ }
3267
+ if (!$dara.isNull(request.osType)) {
3268
+ query["OsType"] = request.osType;
3269
+ }
3270
+ if (!$dara.isNull(request.pageNumber)) {
3271
+ query["PageNumber"] = request.pageNumber;
3272
+ }
3273
+ if (!$dara.isNull(request.pageSize)) {
3274
+ query["PageSize"] = request.pageSize;
3275
+ }
3276
+ if (!$dara.isNull(request.productType)) {
3277
+ query["ProductType"] = request.productType;
3278
+ }
3279
+ if (!$dara.isNull(request.queryInventory)) {
3280
+ query["QueryInventory"] = request.queryInventory;
3281
+ }
3282
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3283
+ query: openapi_core_2.OpenApiUtil.query(query),
3284
+ });
3285
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3286
+ action: "ListAppInstanceType",
3287
+ version: "2021-09-01",
3288
+ protocol: "HTTPS",
3289
+ pathname: "/",
3290
+ method: "POST",
3291
+ authType: "AK",
3292
+ style: "RPC",
3293
+ reqBodyType: "formData",
3294
+ bodyType: "json",
3295
+ });
3296
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAppInstanceTypeResponse({}));
3297
+ }
3298
+ /**
3299
+ * Queries the available session instance types for the current account by paging based on the product, region, operating system, and instance type conditions.
3300
+ *
3301
+ * @remarks
3302
+ * This operation is used to select session instance types and does not create resources. The returned results are affected by the available instance types of the account and the business region. An empty result does not indicate a request failure.
3303
+ * **Filtering and pagination:**
3304
+ * - ProductType is required. Explicitly specify BizRegionId, PageNumber, and PageSize.
3305
+ * - If BizRegionId is not provided, the region of the current request is used. You can call [ListRegions](https://api.aliyun.com/document/appstream-center/2021-09-01/ListRegions) to obtain the business region.
3306
+ * - AppInstanceType and AppInstanceTypeList can be specified at the same time. In this case, only the instance types that meet both conditions are returned. Neither parameter overrides the other. The list can contain up to 100 items.
3307
+ * - Instance type family, CPU, memory, GPU memory, operating system, and category conditions are filtered by intersection. The union is not automatically applied.
3308
+ * - PageNumber starts from 1. Use TotalCount, PageSize, and PageNumber to continue pagination until all matching results are read.
3309
+ * **Inventory and subsequent calls:**
3310
+ * - Inventory is queried only when QueryInventory is set to true. If inventory information is not obtained, do not assume that the inventory is 0.
3311
+ * - The inventory reflects the current query result and does not indicate a successful reservation.
3312
+ * - After obtaining the AppInstanceType, you can query the price based on the session instance type parameter requirements of [GetResourcePrice](https://api.aliyun.com/document/appstream-center/2021-09-01/GetResourcePrice).
3313
+ * - The current query does not use AppCenterImageId to filter instance types. Do not use this parameter to determine the compatibility between images and instance types.
3314
+ * Field examples are used to demonstrate how to specify parameters and do not guarantee that the example instance types exist in the selected region or account. The GPU count field does not currently provide values. Use the GPU memory field to understand the instance type.
3315
+ *
3316
+ * @param request - ListAppInstanceTypeRequest
3317
+ * @returns ListAppInstanceTypeResponse
3318
+ */
3319
+ async listAppInstanceType(request) {
3320
+ let runtime = new $dara.RuntimeOptions({});
3321
+ return await this.listAppInstanceTypeWithOptions(request, runtime);
3322
+ }
2526
3323
  /**
2527
3324
  * Queries the details of session instances in a delivery group, including instance IDs, instance statuses, creation time, update time, session statuses, and public IP addresses of primary network interface controllers (NICs).
2528
3325
  *
@@ -4179,12 +4976,59 @@ class Client extends openapi_core_1.default {
4179
4976
  * 3. To authorize users for a specific application by application, pass the returned `AppInstanceGroupId`, `AppId`, and the same `ProductType` to [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~). To view delivery group details, pass `AppInstanceGroupId` and `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
4180
4977
  * The masked identities in the examples are for format demonstration purposes. Replace them with your actual identities when you invoke the operation.
4181
4978
  *
4182
- * @param request - ListPublishedAppsRequest
4183
- * @returns ListPublishedAppsResponse
4979
+ * @param request - ListPublishedAppsRequest
4980
+ * @returns ListPublishedAppsResponse
4981
+ */
4982
+ async listPublishedApps(request) {
4983
+ let runtime = new $dara.RuntimeOptions({});
4984
+ return await this.listPublishedAppsWithOptions(request, runtime);
4985
+ }
4986
+ /**
4987
+ * Queries the list of region IDs available for image services under a specified product for the current account.
4988
+ *
4989
+ * @remarks
4990
+ * The returned results are affected by the available region configurations of the account and the product type. If ProductType is omitted, the query defaults to CloudApp.
4991
+ * This operation returns the regions available for image services. You cannot use this information to determine whether a specific image has been distributed to these regions. Before you create or distribute an image based on a parent image, you must also check the region information of the destination image.
4992
+ *
4993
+ * @param request - ListRegionIdRequest
4994
+ * @param runtime - runtime options for this request RuntimeOptions
4995
+ * @returns ListRegionIdResponse
4996
+ */
4997
+ async listRegionIdWithOptions(request, runtime) {
4998
+ request.validate();
4999
+ let body = {};
5000
+ if (!$dara.isNull(request.productType)) {
5001
+ body["ProductType"] = request.productType;
5002
+ }
5003
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5004
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5005
+ });
5006
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5007
+ action: "ListRegionId",
5008
+ version: "2021-09-01",
5009
+ protocol: "HTTPS",
5010
+ pathname: "/",
5011
+ method: "POST",
5012
+ authType: "AK",
5013
+ style: "RPC",
5014
+ reqBodyType: "formData",
5015
+ bodyType: "json",
5016
+ });
5017
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRegionIdResponse({}));
5018
+ }
5019
+ /**
5020
+ * Queries the list of region IDs available for image services under a specified product for the current account.
5021
+ *
5022
+ * @remarks
5023
+ * The returned results are affected by the available region configurations of the account and the product type. If ProductType is omitted, the query defaults to CloudApp.
5024
+ * This operation returns the regions available for image services. You cannot use this information to determine whether a specific image has been distributed to these regions. Before you create or distribute an image based on a parent image, you must also check the region information of the destination image.
5025
+ *
5026
+ * @param request - ListRegionIdRequest
5027
+ * @returns ListRegionIdResponse
4184
5028
  */
4185
- async listPublishedApps(request) {
5029
+ async listRegionId(request) {
4186
5030
  let runtime = new $dara.RuntimeOptions({});
4187
- return await this.listPublishedAppsWithOptions(request, runtime);
5031
+ return await this.listRegionIdWithOptions(request, runtime);
4188
5032
  }
4189
5033
  /**
4190
5034
  * Queries the regions supported by WUYING Cloud Application.
@@ -4382,6 +5226,53 @@ class Client extends openapi_core_1.default {
4382
5226
  let runtime = new $dara.RuntimeOptions({});
4383
5227
  return await this.listTagResourcesWithOptions(request, runtime);
4384
5228
  }
5229
+ /**
5230
+ * Queries the step identifiers, step categories, and interaction methods for application adaptation or image creation tasks.
5231
+ *
5232
+ * @remarks
5233
+ * Returns application adaptation steps when Type is set to ADAPTOR, and image creation steps when Type is set to IMAGE.
5234
+ * This operation returns step definitions, not the actual progress of a specific task. Read the step definitions first, and then combine them with the current step and step status returned by GetTask to display the task progress. The step sets vary across different task types. Do not treat the step index as a completion percentage.
5235
+ *
5236
+ * @param request - ListTaskStepRequest
5237
+ * @param runtime - runtime options for this request RuntimeOptions
5238
+ * @returns ListTaskStepResponse
5239
+ */
5240
+ async listTaskStepWithOptions(request, runtime) {
5241
+ request.validate();
5242
+ let query = {};
5243
+ if (!$dara.isNull(request.type)) {
5244
+ query["Type"] = request.type;
5245
+ }
5246
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5247
+ query: openapi_core_2.OpenApiUtil.query(query),
5248
+ });
5249
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5250
+ action: "ListTaskStep",
5251
+ version: "2021-09-01",
5252
+ protocol: "HTTPS",
5253
+ pathname: "/",
5254
+ method: "POST",
5255
+ authType: "AK",
5256
+ style: "RPC",
5257
+ reqBodyType: "formData",
5258
+ bodyType: "json",
5259
+ });
5260
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTaskStepResponse({}));
5261
+ }
5262
+ /**
5263
+ * Queries the step identifiers, step categories, and interaction methods for application adaptation or image creation tasks.
5264
+ *
5265
+ * @remarks
5266
+ * Returns application adaptation steps when Type is set to ADAPTOR, and image creation steps when Type is set to IMAGE.
5267
+ * This operation returns step definitions, not the actual progress of a specific task. Read the step definitions first, and then combine them with the current step and step status returned by GetTask to display the task progress. The step sets vary across different task types. Do not treat the step index as a completion percentage.
5268
+ *
5269
+ * @param request - ListTaskStepRequest
5270
+ * @returns ListTaskStepResponse
5271
+ */
5272
+ async listTaskStep(request) {
5273
+ let runtime = new $dara.RuntimeOptions({});
5274
+ return await this.listTaskStepWithOptions(request, runtime);
5275
+ }
4385
5276
  /**
4386
5277
  * Queries the configuration information of an administrator account, such as whether resource expiration reminders are enabled.
4387
5278
  *
@@ -4519,10 +5410,10 @@ class Client extends openapi_core_1.default {
4519
5410
  return await this.listWuyingServerWithOptions(request, runtime);
4520
5411
  }
4521
5412
  /**
4522
- * Queries the available Wuying Workstation workload templates for a specified virtual node pool.
5413
+ * Queries the Wuying Workstation workload templates available for a specified virtual node pool.
4523
5414
  *
4524
5415
  * @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.
5416
+ * Queries the workload templates available for a specified virtual node pool. Before calling this operation, call [ListWuyingServer](~~ListWuyingServer~~) to obtain the `VirtualNodePoolId` of the current account. The operation verifies the ownership of the node pool and returns up to 100 records sorted by template configuration order. The template content is Base64-encoded after being encoded in UTF-8. You must decode the Base64 string before use. The current version does not use `MaxResults` and `NextToken` for pagination.
4526
5417
  *
4527
5418
  * @param request - ListWuyingServerWorkloadTemplateRequest
4528
5419
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4557,10 +5448,10 @@ class Client extends openapi_core_1.default {
4557
5448
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListWuyingServerWorkloadTemplateResponse({}));
4558
5449
  }
4559
5450
  /**
4560
- * Queries the available Wuying Workstation workload templates for a specified virtual node pool.
5451
+ * Queries the Wuying Workstation workload templates available for a specified virtual node pool.
4561
5452
  *
4562
5453
  * @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.
5454
+ * Queries the workload templates available for a specified virtual node pool. Before calling this operation, call [ListWuyingServer](~~ListWuyingServer~~) to obtain the `VirtualNodePoolId` of the current account. The operation verifies the ownership of the node pool and returns up to 100 records sorted by template configuration order. The template content is Base64-encoded after being encoded in UTF-8. You must decode the Base64 string before use. The current version does not use `MaxResults` and `NextToken` for pagination.
4564
5455
  *
4565
5456
  * @param request - ListWuyingServerWorkloadTemplateRequest
4566
5457
  * @returns ListWuyingServerWorkloadTemplateResponse
@@ -4775,6 +5666,102 @@ class Client extends openapi_core_1.default {
4775
5666
  let runtime = new $dara.RuntimeOptions({});
4776
5667
  return await this.modifyAppInstanceGroupAttributeWithOptions(request, runtime);
4777
5668
  }
5669
+ /**
5670
+ * Changes the billing method of a specified delivery group to the target billing method and returns the ID of the billing conversion task to be created.
5671
+ *
5672
+ * @remarks
5673
+ * This operation performs billing method conversion, which may create orders and trigger subsequent billing changes. **A successful response or a returned task ID does not indicate that the new billing method has taken effect.**
5674
+ * **Before you begin:**
5675
+ * - The resources belong to the current account, and the product and business region match those in the request. Only one delivery group can be specified per request.
5676
+ * - The target billing method must be different from the current one, and the target resource specifications must support the corresponding sales and Billable methods.
5677
+ * - Delivery groups that have been added to a valid collection cannot be converted to a different billing method individually.
5678
+ * - Multiple delivery groups created in the same batch of orders cannot be converted to different Billable methods separately.
5679
+ * **Parameter relationships and call sequence:**
5680
+ * 1. Query the resource details first to confirm the product, business region, and current `ChargeType`. You can use [GetAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/GetAppInstanceGroup) to query cloud application delivery groups.
5681
+ * 2. Explicitly specify the target `ChargeType`. If you need to purchase a subscription, specify the purchase duration by combining `Period` and `PeriodUnit`. The period combination must comply with the sales rules currently supported by the resource.
5682
+ * 3. Set `AutoPay` based on whether automatic payment is allowed. If auto-renewal is involved, explicitly set `AutoRenew`.
5683
+ * 4. After the call, save the returned `AppInstanceGroupModel.TaskId`. If there are unpaid orders, complete the payment first, and then query the resource details again to confirm that the billing method has been changed.
5684
+ * This operation does not accept an expiration time parameter. Do not pass the expiration time from other operations into this request. The task examples only illustrate the purpose of the ID and do not define a fixed prefix or length for actual task IDs.
5685
+ *
5686
+ * @param tmpReq - ModifyAppInstanceGroupChargeTypeRequest
5687
+ * @param runtime - runtime options for this request RuntimeOptions
5688
+ * @returns ModifyAppInstanceGroupChargeTypeResponse
5689
+ */
5690
+ async modifyAppInstanceGroupChargeTypeWithOptions(tmpReq, runtime) {
5691
+ tmpReq.validate();
5692
+ let request = new $_model.ModifyAppInstanceGroupChargeTypeShrinkRequest({});
5693
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5694
+ if (!$dara.isNull(tmpReq.appInstanceGroupIds)) {
5695
+ request.appInstanceGroupIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.appInstanceGroupIds, "AppInstanceGroupIds", "json");
5696
+ }
5697
+ let body = {};
5698
+ if (!$dara.isNull(request.appInstanceGroupIdsShrink)) {
5699
+ body["AppInstanceGroupIds"] = request.appInstanceGroupIdsShrink;
5700
+ }
5701
+ if (!$dara.isNull(request.autoPay)) {
5702
+ body["AutoPay"] = request.autoPay;
5703
+ }
5704
+ if (!$dara.isNull(request.autoRenew)) {
5705
+ body["AutoRenew"] = request.autoRenew;
5706
+ }
5707
+ if (!$dara.isNull(request.bizRegionId)) {
5708
+ body["BizRegionId"] = request.bizRegionId;
5709
+ }
5710
+ if (!$dara.isNull(request.chargeType)) {
5711
+ body["ChargeType"] = request.chargeType;
5712
+ }
5713
+ if (!$dara.isNull(request.period)) {
5714
+ body["Period"] = request.period;
5715
+ }
5716
+ if (!$dara.isNull(request.periodUnit)) {
5717
+ body["PeriodUnit"] = request.periodUnit;
5718
+ }
5719
+ if (!$dara.isNull(request.productType)) {
5720
+ body["ProductType"] = request.productType;
5721
+ }
5722
+ if (!$dara.isNull(request.promotionId)) {
5723
+ body["PromotionId"] = request.promotionId;
5724
+ }
5725
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5726
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5727
+ });
5728
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5729
+ action: "ModifyAppInstanceGroupChargeType",
5730
+ version: "2021-09-01",
5731
+ protocol: "HTTPS",
5732
+ pathname: "/",
5733
+ method: "POST",
5734
+ authType: "AK",
5735
+ style: "RPC",
5736
+ reqBodyType: "formData",
5737
+ bodyType: "json",
5738
+ });
5739
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyAppInstanceGroupChargeTypeResponse({}));
5740
+ }
5741
+ /**
5742
+ * Changes the billing method of a specified delivery group to the target billing method and returns the ID of the billing conversion task to be created.
5743
+ *
5744
+ * @remarks
5745
+ * This operation performs billing method conversion, which may create orders and trigger subsequent billing changes. **A successful response or a returned task ID does not indicate that the new billing method has taken effect.**
5746
+ * **Before you begin:**
5747
+ * - The resources belong to the current account, and the product and business region match those in the request. Only one delivery group can be specified per request.
5748
+ * - The target billing method must be different from the current one, and the target resource specifications must support the corresponding sales and Billable methods.
5749
+ * - Delivery groups that have been added to a valid collection cannot be converted to a different billing method individually.
5750
+ * - Multiple delivery groups created in the same batch of orders cannot be converted to different Billable methods separately.
5751
+ * **Parameter relationships and call sequence:**
5752
+ * 1. Query the resource details first to confirm the product, business region, and current `ChargeType`. You can use [GetAppInstanceGroup](https://api.aliyun.com/document/appstream-center/2021-09-01/GetAppInstanceGroup) to query cloud application delivery groups.
5753
+ * 2. Explicitly specify the target `ChargeType`. If you need to purchase a subscription, specify the purchase duration by combining `Period` and `PeriodUnit`. The period combination must comply with the sales rules currently supported by the resource.
5754
+ * 3. Set `AutoPay` based on whether automatic payment is allowed. If auto-renewal is involved, explicitly set `AutoRenew`.
5755
+ * 4. After the call, save the returned `AppInstanceGroupModel.TaskId`. If there are unpaid orders, complete the payment first, and then query the resource details again to confirm that the billing method has been changed.
5756
+ * This operation does not accept an expiration time parameter. Do not pass the expiration time from other operations into this request. The task examples only illustrate the purpose of the ID and do not define a fixed prefix or length for actual task IDs.
5757
+ *
5758
+ * @param request - ModifyAppInstanceGroupChargeTypeRequest
5759
+ * @returns ModifyAppInstanceGroupChargeTypeResponse
5760
+ */
5761
+ async modifyAppInstanceGroupChargeType(request) {
5762
+ let runtime = new $dara.RuntimeOptions({});
5763
+ return await this.modifyAppInstanceGroupChargeTypeWithOptions(request, runtime);
5764
+ }
4778
5765
  /**
4779
5766
  * Modifies the display policy of a delivery group, including settings such as frame rate, resolution, and protocol type.
4780
5767
  *
@@ -5223,10 +6210,10 @@ class Client extends openapi_core_1.default {
5223
6210
  return await this.pageListAppInstanceGroupUserWithOptions(request, runtime);
5224
6211
  }
5225
6212
  /**
5226
- * Queries delivery group reports by region, delivery group, status, user authorization relationship, or statistical date.
6213
+ * Queries app instance group reports by region, app instance group, status, user authorization relationship, or statistical date.
5227
6214
  *
5228
6215
  * @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.
6216
+ * Queries the IDs, names, and statuses of app instance groups in app instance group reports. You can call [ListRegions](~~ListRegions~~) to obtain the business regions and then call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the app instance groups. `AppInstanceGroupId` matches the exact ID, and `AppInstanceGroupName` filters by inclusion. If multiple filter conditions are specified at the same time, the intersection is used. When filtering by date, `StatDate` specifies a single day, and `StartDate` and `EndDate` must be specified in pairs to represent a closed interval. If both a single day and an interval are specified, the results must meet both conditions. Before using `EndUserId`, make sure that the user has a valid authorization relationship.
5230
6217
  *
5231
6218
  * @param request - QueryAppInstanceGroupReportListRequest
5232
6219
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5285,10 +6272,10 @@ class Client extends openapi_core_1.default {
5285
6272
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryAppInstanceGroupReportListResponse({}));
5286
6273
  }
5287
6274
  /**
5288
- * Queries delivery group reports by region, delivery group, status, user authorization relationship, or statistical date.
6275
+ * Queries app instance group reports by region, app instance group, status, user authorization relationship, or statistical date.
5289
6276
  *
5290
6277
  * @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.
6278
+ * Queries the IDs, names, and statuses of app instance groups in app instance group reports. You can call [ListRegions](~~ListRegions~~) to obtain the business regions and then call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the app instance groups. `AppInstanceGroupId` matches the exact ID, and `AppInstanceGroupName` filters by inclusion. If multiple filter conditions are specified at the same time, the intersection is used. When filtering by date, `StatDate` specifies a single day, and `StartDate` and `EndDate` must be specified in pairs to represent a closed interval. If both a single day and an interval are specified, the results must meet both conditions. Before using `EndUserId`, make sure that the user has a valid authorization relationship.
5292
6279
  *
5293
6280
  * @param request - QueryAppInstanceGroupReportListRequest
5294
6281
  * @returns QueryAppInstanceGroupReportListResponse
@@ -5301,7 +6288,7 @@ class Client extends openapi_core_1.default {
5301
6288
  * 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
6289
  *
5303
6290
  * @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.
6291
+ * Queries connection statistical reports. Before you invoke this operation, you can invoke [ListRegions](~~ListRegions~~) and [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the `BizRegionId` and `AppInstanceGroupId` parameters. The `ProductType`, `StartDate`, and `EndDate` parameters 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
6292
  *
5306
6293
  * @param request - QueryConnectionReportRequest
5307
6294
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5351,7 +6338,7 @@ class Client extends openapi_core_1.default {
5351
6338
  * 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
6339
  *
5353
6340
  * @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.
6341
+ * Queries connection statistical reports. Before you invoke this operation, you can invoke [ListRegions](~~ListRegions~~) and [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the `BizRegionId` and `AppInstanceGroupId` parameters. The `ProductType`, `StartDate`, and `EndDate` parameters 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
6342
  *
5356
6343
  * @param request - QueryConnectionReportRequest
5357
6344
  * @returns QueryConnectionReportResponse
@@ -5364,7 +6351,7 @@ class Client extends openapi_core_1.default {
5364
6351
  * Queries the number of daily active users and streaming daily active users by date.
5365
6352
  *
5366
6353
  * @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.
6354
+ * 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 down the scope. If neither is specified, the query returns aggregated data for all business regions. Results are returned in pages, with a maximum of 1,500 records per page.
5368
6355
  *
5369
6356
  * @param request - QueryDauReportDataRequest
5370
6357
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5414,7 +6401,7 @@ class Client extends openapi_core_1.default {
5414
6401
  * Queries the number of daily active users and streaming daily active users by date.
5415
6402
  *
5416
6403
  * @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.
6404
+ * 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 down the scope. If neither is specified, the query returns aggregated data for all business regions. Results are returned in pages, with a maximum of 1,500 records per page.
5418
6405
  *
5419
6406
  * @param request - QueryDauReportDataRequest
5420
6407
  * @returns QueryDauReportDataResponse
@@ -5553,7 +6540,7 @@ class Client extends openapi_core_1.default {
5553
6540
  * Queries the total number of nodes, the number of subscription nodes, and the number of pay-as-you-go nodes by statistical granularity.
5554
6541
  *
5555
6542
  * @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.
6543
+ * Queries node 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 entries per page.
5557
6544
  *
5558
6545
  * @param request - QueryNodeReportDataRequest
5559
6546
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5606,7 +6593,7 @@ class Client extends openapi_core_1.default {
5606
6593
  * Queries the total number of nodes, the number of subscription nodes, and the number of pay-as-you-go nodes by statistical granularity.
5607
6594
  *
5608
6595
  * @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.
6596
+ * Queries node 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 entries per page.
5610
6597
  *
5611
6598
  * @param request - QueryNodeReportDataRequest
5612
6599
  * @returns QueryNodeReportDataResponse
@@ -5685,7 +6672,7 @@ class Client extends openapi_core_1.default {
5685
6672
  * 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
6673
  *
5687
6674
  * @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.
6675
+ * 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 query. A maximum of the top five applications by usage duration are returned for each hour.
5689
6676
  *
5690
6677
  * @param request - QueryUserAppUsageAggregateByHourRequest
5691
6678
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5732,7 +6719,7 @@ class Client extends openapi_core_1.default {
5732
6719
  * 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
6720
  *
5734
6721
  * @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.
6722
+ * 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 query. A maximum of the top five applications by usage duration are returned for each hour.
5736
6723
  *
5737
6724
  * @param request - QueryUserAppUsageAggregateByHourRequest
5738
6725
  * @returns QueryUserAppUsageAggregateByHourResponse
@@ -5745,7 +6732,7 @@ class Client extends openapi_core_1.default {
5745
6732
  * Queries the ranking of cumulative application usage duration for a specified user within a date range.
5746
6733
  *
5747
6734
  * @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.
6735
+ * 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
6736
  *
5750
6737
  * @param request - QueryUserAppUsageTimeRankRequest
5751
6738
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5792,7 +6779,7 @@ class Client extends openapi_core_1.default {
5792
6779
  * Queries the ranking of cumulative application usage duration for a specified user within a date range.
5793
6780
  *
5794
6781
  * @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.
6782
+ * 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
6783
  *
5797
6784
  * @param request - QueryUserAppUsageTimeRankRequest
5798
6785
  * @returns QueryUserAppUsageTimeRankResponse
@@ -5805,7 +6792,7 @@ class Client extends openapi_core_1.default {
5805
6792
  * Queries the connection status, last connection time, cumulative usage duration, and session persistence duration of users.
5806
6793
  *
5807
6794
  * @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.
6795
+ * 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 `yyyyMMdd` and aggregated by natural days in a closed interval. 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
6796
  *
5810
6797
  * @param request - QueryUserUsageReportRequest
5811
6798
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5861,7 +6848,7 @@ class Client extends openapi_core_1.default {
5861
6848
  * Queries the connection status, last connection time, cumulative usage duration, and session persistence duration of users.
5862
6849
  *
5863
6850
  * @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.
6851
+ * 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 `yyyyMMdd` and aggregated by natural days in a closed interval. 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
6852
  *
5866
6853
  * @param request - QueryUserUsageReportRequest
5867
6854
  * @returns QueryUserUsageReportResponse
@@ -6582,6 +7569,59 @@ class Client extends openapi_core_1.default {
6582
7569
  let runtime = new $dara.RuntimeOptions({});
6583
7570
  return await this.unbindWithOptions(request, runtime);
6584
7571
  }
7572
+ /**
7573
+ * Dissociates multiple applications from a specified image version.
7574
+ *
7575
+ * @remarks
7576
+ * This operation supports only custom images and community images that the current account can manage. If you omit VersionId, the current effective version is used. If you specify VersionId, it must belong to the image specified by ImageId. Verify the associations between the applications and the version by querying the image before you submit AppIdList. **Dissociating applications does not directly delete the application records.** To delete an application, call DeleteApp.
7577
+ *
7578
+ * @param request - UnbindAppRequest
7579
+ * @param runtime - runtime options for this request RuntimeOptions
7580
+ * @returns UnbindAppResponse
7581
+ */
7582
+ async unbindAppWithOptions(request, runtime) {
7583
+ request.validate();
7584
+ let body = {};
7585
+ let bodyFlat = {};
7586
+ if (!$dara.isNull(request.appIdList)) {
7587
+ bodyFlat["AppIdList"] = request.appIdList;
7588
+ }
7589
+ if (!$dara.isNull(request.imageId)) {
7590
+ body["ImageId"] = request.imageId;
7591
+ }
7592
+ if (!$dara.isNull(request.versionId)) {
7593
+ body["VersionId"] = request.versionId;
7594
+ }
7595
+ body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
7596
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7597
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7598
+ });
7599
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7600
+ action: "UnbindApp",
7601
+ version: "2021-09-01",
7602
+ protocol: "HTTPS",
7603
+ pathname: "/",
7604
+ method: "POST",
7605
+ authType: "AK",
7606
+ style: "RPC",
7607
+ reqBodyType: "formData",
7608
+ bodyType: "json",
7609
+ });
7610
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UnbindAppResponse({}));
7611
+ }
7612
+ /**
7613
+ * Dissociates multiple applications from a specified image version.
7614
+ *
7615
+ * @remarks
7616
+ * This operation supports only custom images and community images that the current account can manage. If you omit VersionId, the current effective version is used. If you specify VersionId, it must belong to the image specified by ImageId. Verify the associations between the applications and the version by querying the image before you submit AppIdList. **Dissociating applications does not directly delete the application records.** To delete an application, call DeleteApp.
7617
+ *
7618
+ * @param request - UnbindAppRequest
7619
+ * @returns UnbindAppResponse
7620
+ */
7621
+ async unbindApp(request) {
7622
+ let runtime = new $dara.RuntimeOptions({});
7623
+ return await this.unbindAppWithOptions(request, runtime);
7624
+ }
6585
7625
  /**
6586
7626
  * Unbinds tags from cloud resources in a unified manner.
6587
7627
  *
@@ -6720,6 +7760,73 @@ class Client extends openapi_core_1.default {
6720
7760
  let runtime = new $dara.RuntimeOptions({});
6721
7761
  return await this.untagResourcesWithOptions(request, runtime);
6722
7762
  }
7763
+ /**
7764
+ * Modifies the runtime parameters, optimization configurations, and user configurations of a specified application adapter.
7765
+ *
7766
+ * @remarks
7767
+ * The AdaptorId must correspond to a valid application adapter manageable by the current account. Pass only the configurations that need to be modified in this request.
7768
+ * SilenceParam is used for application startup parameters. UserConfig is used for application runtime configurations. **This operation does not support modifying application scripts or executable file paths through AppScript or ExecuteFileAddress. Do not pass these two parameters.**
7769
+ *
7770
+ * @param tmpReq - UpdateAdaptorRequest
7771
+ * @param runtime - runtime options for this request RuntimeOptions
7772
+ * @returns UpdateAdaptorResponse
7773
+ */
7774
+ async updateAdaptorWithOptions(tmpReq, runtime) {
7775
+ tmpReq.validate();
7776
+ let request = new $_model.UpdateAdaptorShrinkRequest({});
7777
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
7778
+ if (!$dara.isNull(tmpReq.userConfig)) {
7779
+ request.userConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userConfig, "UserConfig", "json");
7780
+ }
7781
+ let body = {};
7782
+ if (!$dara.isNull(request.adaptorId)) {
7783
+ body["AdaptorId"] = request.adaptorId;
7784
+ }
7785
+ if (!$dara.isNull(request.appScript)) {
7786
+ body["AppScript"] = request.appScript;
7787
+ }
7788
+ if (!$dara.isNull(request.executeFileAddress)) {
7789
+ body["ExecuteFileAddress"] = request.executeFileAddress;
7790
+ }
7791
+ if (!$dara.isNull(request.optimizeParam)) {
7792
+ body["OptimizeParam"] = request.optimizeParam;
7793
+ }
7794
+ if (!$dara.isNull(request.silenceParam)) {
7795
+ body["SilenceParam"] = request.silenceParam;
7796
+ }
7797
+ if (!$dara.isNull(request.userConfigShrink)) {
7798
+ body["UserConfig"] = request.userConfigShrink;
7799
+ }
7800
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7801
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7802
+ });
7803
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7804
+ action: "UpdateAdaptor",
7805
+ version: "2021-09-01",
7806
+ protocol: "HTTPS",
7807
+ pathname: "/",
7808
+ method: "POST",
7809
+ authType: "AK",
7810
+ style: "RPC",
7811
+ reqBodyType: "formData",
7812
+ bodyType: "json",
7813
+ });
7814
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAdaptorResponse({}));
7815
+ }
7816
+ /**
7817
+ * Modifies the runtime parameters, optimization configurations, and user configurations of a specified application adapter.
7818
+ *
7819
+ * @remarks
7820
+ * The AdaptorId must correspond to a valid application adapter manageable by the current account. Pass only the configurations that need to be modified in this request.
7821
+ * SilenceParam is used for application startup parameters. UserConfig is used for application runtime configurations. **This operation does not support modifying application scripts or executable file paths through AppScript or ExecuteFileAddress. Do not pass these two parameters.**
7822
+ *
7823
+ * @param request - UpdateAdaptorRequest
7824
+ * @returns UpdateAdaptorResponse
7825
+ */
7826
+ async updateAdaptor(request) {
7827
+ let runtime = new $dara.RuntimeOptions({});
7828
+ return await this.updateAdaptorWithOptions(request, runtime);
7829
+ }
6723
7830
  /**
6724
7831
  * Updates the image of a delivery group.
6725
7832
  *
@@ -6778,6 +7885,137 @@ class Client extends openapi_core_1.default {
6778
7885
  let runtime = new $dara.RuntimeOptions({});
6779
7886
  return await this.updateAppInstanceGroupImageWithOptions(request, runtime);
6780
7887
  }
7888
+ /**
7889
+ * Modifies the name, description, version information, and associated application adaptations of an image.
7890
+ *
7891
+ * @remarks
7892
+ * You can only modify images that are owned by the current account and allow modifications. Modifying images shared with the current account is not supported.
7893
+ * You must provide at least one of ImageId and VersionId. If both are provided, they must point to the same image. If VersionId is omitted, the current effective version of the image is used. Passing a non-empty AdaptorIdList updates the application adaptation relationships of the selected version based on the complete list. Make sure to include the adaptations that you still want to retain.
7894
+ *
7895
+ * @param request - UpdateImageRequest
7896
+ * @param runtime - runtime options for this request RuntimeOptions
7897
+ * @returns UpdateImageResponse
7898
+ */
7899
+ async updateImageWithOptions(request, runtime) {
7900
+ request.validate();
7901
+ let body = {};
7902
+ if (!$dara.isNull(request.adaptorIdList)) {
7903
+ body["AdaptorIdList"] = request.adaptorIdList;
7904
+ }
7905
+ if (!$dara.isNull(request.description)) {
7906
+ body["Description"] = request.description;
7907
+ }
7908
+ if (!$dara.isNull(request.distro)) {
7909
+ body["Distro"] = request.distro;
7910
+ }
7911
+ if (!$dara.isNull(request.imageId)) {
7912
+ body["ImageId"] = request.imageId;
7913
+ }
7914
+ if (!$dara.isNull(request.imageName)) {
7915
+ body["ImageName"] = request.imageName;
7916
+ }
7917
+ if (!$dara.isNull(request.language)) {
7918
+ body["Language"] = request.language;
7919
+ }
7920
+ if (!$dara.isNull(request.versionId)) {
7921
+ body["VersionId"] = request.versionId;
7922
+ }
7923
+ if (!$dara.isNull(request.versionName)) {
7924
+ body["VersionName"] = request.versionName;
7925
+ }
7926
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7927
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7928
+ });
7929
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7930
+ action: "UpdateImage",
7931
+ version: "2021-09-01",
7932
+ protocol: "HTTPS",
7933
+ pathname: "/",
7934
+ method: "POST",
7935
+ authType: "AK",
7936
+ style: "RPC",
7937
+ reqBodyType: "formData",
7938
+ bodyType: "json",
7939
+ });
7940
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateImageResponse({}));
7941
+ }
7942
+ /**
7943
+ * Modifies the name, description, version information, and associated application adaptations of an image.
7944
+ *
7945
+ * @remarks
7946
+ * You can only modify images that are owned by the current account and allow modifications. Modifying images shared with the current account is not supported.
7947
+ * You must provide at least one of ImageId and VersionId. If both are provided, they must point to the same image. If VersionId is omitted, the current effective version of the image is used. Passing a non-empty AdaptorIdList updates the application adaptation relationships of the selected version based on the complete list. Make sure to include the adaptations that you still want to retain.
7948
+ *
7949
+ * @param request - UpdateImageRequest
7950
+ * @returns UpdateImageResponse
7951
+ */
7952
+ async updateImage(request) {
7953
+ let runtime = new $dara.RuntimeOptions({});
7954
+ return await this.updateImageWithOptions(request, runtime);
7955
+ }
7956
+ /**
7957
+ * Sends a status update request for an existing image creation task to the corresponding creation resource.
7958
+ *
7959
+ * @remarks
7960
+ * The task must exist before you call this operation, and the corresponding creation resource and resource node must be available. TaskType must match the actual type of the task. **This operation does not support modifying the task step, image version, or destination region by using TaskStep, VersionId, or BizRegionId. Do not pass these three parameters.** A successful request only indicates that this status update call is completed. To query the final status of the task, call GetTask.
7961
+ *
7962
+ * @param request - UpdateImageTaskRequest
7963
+ * @param runtime - runtime options for this request RuntimeOptions
7964
+ * @returns UpdateImageTaskResponse
7965
+ */
7966
+ async updateImageTaskWithOptions(request, runtime) {
7967
+ request.validate();
7968
+ let body = {};
7969
+ if (!$dara.isNull(request.bizRegionId)) {
7970
+ body["BizRegionId"] = request.bizRegionId;
7971
+ }
7972
+ if (!$dara.isNull(request.code)) {
7973
+ body["Code"] = request.code;
7974
+ }
7975
+ if (!$dara.isNull(request.status)) {
7976
+ body["Status"] = request.status;
7977
+ }
7978
+ if (!$dara.isNull(request.taskId)) {
7979
+ body["TaskId"] = request.taskId;
7980
+ }
7981
+ if (!$dara.isNull(request.taskStep)) {
7982
+ body["TaskStep"] = request.taskStep;
7983
+ }
7984
+ if (!$dara.isNull(request.taskType)) {
7985
+ body["TaskType"] = request.taskType;
7986
+ }
7987
+ if (!$dara.isNull(request.versionId)) {
7988
+ body["VersionId"] = request.versionId;
7989
+ }
7990
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7991
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7992
+ });
7993
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7994
+ action: "UpdateImageTask",
7995
+ version: "2021-09-01",
7996
+ protocol: "HTTPS",
7997
+ pathname: "/",
7998
+ method: "POST",
7999
+ authType: "AK",
8000
+ style: "RPC",
8001
+ reqBodyType: "formData",
8002
+ bodyType: "json",
8003
+ });
8004
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateImageTaskResponse({}));
8005
+ }
8006
+ /**
8007
+ * Sends a status update request for an existing image creation task to the corresponding creation resource.
8008
+ *
8009
+ * @remarks
8010
+ * The task must exist before you call this operation, and the corresponding creation resource and resource node must be available. TaskType must match the actual type of the task. **This operation does not support modifying the task step, image version, or destination region by using TaskStep, VersionId, or BizRegionId. Do not pass these three parameters.** A successful request only indicates that this status update call is completed. To query the final status of the task, call GetTask.
8011
+ *
8012
+ * @param request - UpdateImageTaskRequest
8013
+ * @returns UpdateImageTaskResponse
8014
+ */
8015
+ async updateImageTask(request) {
8016
+ let runtime = new $dara.RuntimeOptions({});
8017
+ return await this.updateImageTaskWithOptions(request, runtime);
8018
+ }
6781
8019
  /**
6782
8020
  * Updates a model provider template.
6783
8021
  *