@alicloud/green20220926 1.6.7 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -713,6 +713,21 @@ export default class Client extends OpenApi {
713
713
  * @returns GetOssCheckTaskInfoResponse
714
714
  */
715
715
  getOssCheckTaskInfo(request: $_model.GetOssCheckTaskInfoRequest): Promise<$_model.GetOssCheckTaskInfoResponse>;
716
+ /**
717
+ * 测试特性配置
718
+ *
719
+ * @param request - GetPromptTestResultRequest
720
+ * @param runtime - runtime options for this request RuntimeOptions
721
+ * @returns GetPromptTestResultResponse
722
+ */
723
+ getPromptTestResultWithOptions(request: $_model.GetPromptTestResultRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPromptTestResultResponse>;
724
+ /**
725
+ * 测试特性配置
726
+ *
727
+ * @param request - GetPromptTestResultRequest
728
+ * @returns GetPromptTestResultResponse
729
+ */
730
+ getPromptTestResult(request: $_model.GetPromptTestResultRequest): Promise<$_model.GetPromptTestResultResponse>;
716
731
  /**
717
732
  * User OSS Check Task Pending Inspection Information
718
733
  *
package/dist/client.js CHANGED
@@ -2508,6 +2508,57 @@ class Client extends openapi_core_1.default {
2508
2508
  let runtime = new $dara.RuntimeOptions({});
2509
2509
  return await this.getOssCheckTaskInfoWithOptions(request, runtime);
2510
2510
  }
2511
+ /**
2512
+ * 测试特性配置
2513
+ *
2514
+ * @param request - GetPromptTestResultRequest
2515
+ * @param runtime - runtime options for this request RuntimeOptions
2516
+ * @returns GetPromptTestResultResponse
2517
+ */
2518
+ async getPromptTestResultWithOptions(request, runtime) {
2519
+ request.validate();
2520
+ let query = {};
2521
+ if (!$dara.isNull(request.config)) {
2522
+ query["Config"] = request.config;
2523
+ }
2524
+ if (!$dara.isNull(request.resourceType)) {
2525
+ query["ResourceType"] = request.resourceType;
2526
+ }
2527
+ if (!$dara.isNull(request.serviceCode)) {
2528
+ query["ServiceCode"] = request.serviceCode;
2529
+ }
2530
+ if (!$dara.isNull(request.text)) {
2531
+ query["Text"] = request.text;
2532
+ }
2533
+ if (!$dara.isNull(request.type)) {
2534
+ query["Type"] = request.type;
2535
+ }
2536
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2537
+ query: openapi_core_2.OpenApiUtil.query(query),
2538
+ });
2539
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2540
+ action: "GetPromptTestResult",
2541
+ version: "2022-09-26",
2542
+ protocol: "HTTPS",
2543
+ pathname: "/",
2544
+ method: "POST",
2545
+ authType: "AK",
2546
+ style: "RPC",
2547
+ reqBodyType: "formData",
2548
+ bodyType: "json",
2549
+ });
2550
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPromptTestResultResponse({}));
2551
+ }
2552
+ /**
2553
+ * 测试特性配置
2554
+ *
2555
+ * @param request - GetPromptTestResultRequest
2556
+ * @returns GetPromptTestResultResponse
2557
+ */
2558
+ async getPromptTestResult(request) {
2559
+ let runtime = new $dara.RuntimeOptions({});
2560
+ return await this.getPromptTestResultWithOptions(request, runtime);
2561
+ }
2511
2562
  /**
2512
2563
  * User OSS Check Task Pending Inspection Information
2513
2564
  *