@alicloud/apig20240327 5.6.1 → 5.7.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.
package/dist/client.d.ts CHANGED
@@ -950,6 +950,21 @@ export default class Client extends OpenApi {
950
950
  * @returns GetResourceOverviewResponse
951
951
  */
952
952
  getResourceOverview(request: $_model.GetResourceOverviewRequest): Promise<$_model.GetResourceOverviewResponse>;
953
+ /**
954
+ * 查询密钥
955
+ *
956
+ * @param headers - map
957
+ * @param runtime - runtime options for this request RuntimeOptions
958
+ * @returns GetSecretResponse
959
+ */
960
+ getSecretWithOptions(secretId: string, headers: {
961
+ [key: string]: string;
962
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetSecretResponse>;
963
+ /**
964
+ * 查询密钥
965
+ * @returns GetSecretResponse
966
+ */
967
+ getSecret(secretId: string): Promise<$_model.GetSecretResponse>;
953
968
  /**
954
969
  * 查询密钥值
955
970
  *
package/dist/client.js CHANGED
@@ -2520,6 +2520,39 @@ class Client extends openapi_core_1.default {
2520
2520
  let headers = {};
2521
2521
  return await this.getResourceOverviewWithOptions(request, headers, runtime);
2522
2522
  }
2523
+ /**
2524
+ * 查询密钥
2525
+ *
2526
+ * @param headers - map
2527
+ * @param runtime - runtime options for this request RuntimeOptions
2528
+ * @returns GetSecretResponse
2529
+ */
2530
+ async getSecretWithOptions(secretId, headers, runtime) {
2531
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2532
+ headers: headers,
2533
+ });
2534
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2535
+ action: "GetSecret",
2536
+ version: "2024-03-27",
2537
+ protocol: "HTTPS",
2538
+ pathname: `/v1/secrets/${$dara.URL.percentEncode(secretId)}`,
2539
+ method: "GET",
2540
+ authType: "AK",
2541
+ style: "ROA",
2542
+ reqBodyType: "json",
2543
+ bodyType: "json",
2544
+ });
2545
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSecretResponse({}));
2546
+ }
2547
+ /**
2548
+ * 查询密钥
2549
+ * @returns GetSecretResponse
2550
+ */
2551
+ async getSecret(secretId) {
2552
+ let runtime = new $dara.RuntimeOptions({});
2553
+ let headers = {};
2554
+ return await this.getSecretWithOptions(secretId, headers, runtime);
2555
+ }
2523
2556
  /**
2524
2557
  * 查询密钥值
2525
2558
  *
@@ -4817,6 +4850,9 @@ class Client extends openapi_core_1.default {
4817
4850
  if (!$dara.isNull(request.name)) {
4818
4851
  body["name"] = request.name;
4819
4852
  }
4853
+ if (!$dara.isNull(request.policyConfigs)) {
4854
+ body["policyConfigs"] = request.policyConfigs;
4855
+ }
4820
4856
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4821
4857
  headers: headers,
4822
4858
  body: openapi_core_2.OpenApiUtil.parseToMap(body),