@alicloud/apig20240327 11.3.2 → 11.3.4

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 (79) hide show
  1. package/dist/client.d.ts +20 -20
  2. package/dist/client.js +33 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddGatewayQuotaRuleRequest.d.ts +16 -16
  5. package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +6 -11
  6. package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
  7. package/dist/models/CreateConsumerRequest.d.ts +16 -4
  8. package/dist/models/CreateConsumerRequest.js +4 -0
  9. package/dist/models/CreateConsumerRequest.js.map +1 -1
  10. package/dist/models/CreateHttpApiRequest.d.ts +35 -13
  11. package/dist/models/CreateHttpApiRequest.js +2 -0
  12. package/dist/models/CreateHttpApiRequest.js.map +1 -1
  13. package/dist/models/CreateHttpApiRouteRequest.d.ts +10 -10
  14. package/dist/models/CreatePluginAttachmentRequest.d.ts +2 -2
  15. package/dist/models/CreatePolicyAttachmentRequest.d.ts +2 -2
  16. package/dist/models/CreatePolicyAttachmentResponseBody.d.ts +1 -1
  17. package/dist/models/CreatePolicyRequest.d.ts +21 -21
  18. package/dist/models/DeleteGatewayQuotaRuleResponseBody.d.ts +1 -1
  19. package/dist/models/DeployHttpApiRequest.d.ts +11 -11
  20. package/dist/models/GetConsumerAuthorizationRuleResponseBody.d.ts +2 -3
  21. package/dist/models/GetConsumerAuthorizationRuleResponseBody.js.map +1 -1
  22. package/dist/models/GetDashboardRequest.d.ts +3 -0
  23. package/dist/models/GetDashboardRequest.js.map +1 -1
  24. package/dist/models/GetDashboardResponseBody.d.ts +1 -1
  25. package/dist/models/GetDashboardShrinkRequest.d.ts +3 -0
  26. package/dist/models/GetDashboardShrinkRequest.js.map +1 -1
  27. package/dist/models/GetHttpApiRequest.d.ts +1 -1
  28. package/dist/models/HttpApiDeployConfig.d.ts +25 -9
  29. package/dist/models/HttpApiDeployConfig.js +7 -0
  30. package/dist/models/HttpApiDeployConfig.js.map +1 -1
  31. package/dist/models/ImportHttpApiRequest.d.ts +14 -9
  32. package/dist/models/ImportHttpApiRequest.js.map +1 -1
  33. package/dist/models/ImportHttpApiResponseBody.d.ts +12 -8
  34. package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
  35. package/dist/models/ListConsumerAuthorizationRulesRequest.d.ts +1 -1
  36. package/dist/models/ListConsumerAuthorizationRulesResponseBody.d.ts +2 -4
  37. package/dist/models/ListConsumerAuthorizationRulesResponseBody.js.map +1 -1
  38. package/dist/models/ListHttpApiOperationsRequest.d.ts +10 -10
  39. package/dist/models/ListHttpApiOperationsResponseBody.d.ts +3 -3
  40. package/dist/models/ListHttpApisRequest.d.ts +9 -9
  41. package/dist/models/ListPluginAttachmentsRequest.d.ts +4 -4
  42. package/dist/models/ListPluginAttachmentsResponseBody.d.ts +7 -7
  43. package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +6 -6
  44. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +8 -10
  45. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.js.map +1 -1
  46. package/dist/models/UpdateHttpApiRequest.d.ts +5 -5
  47. package/dist/models/UpdatePluginAttachmentRequest.d.ts +2 -2
  48. package/package.json +1 -1
  49. package/src/client.ts +36 -20
  50. package/src/models/AddGatewayQuotaRuleRequest.ts +16 -16
  51. package/src/models/AddGatewayQuotaRuleResponseBody.ts +6 -11
  52. package/src/models/CreateConsumerRequest.ts +20 -4
  53. package/src/models/CreateHttpApiRequest.ts +37 -13
  54. package/src/models/CreateHttpApiRouteRequest.ts +10 -10
  55. package/src/models/CreatePluginAttachmentRequest.ts +2 -2
  56. package/src/models/CreatePolicyAttachmentRequest.ts +2 -2
  57. package/src/models/CreatePolicyAttachmentResponseBody.ts +1 -1
  58. package/src/models/CreatePolicyRequest.ts +21 -21
  59. package/src/models/DeleteGatewayQuotaRuleResponseBody.ts +1 -1
  60. package/src/models/DeployHttpApiRequest.ts +11 -11
  61. package/src/models/GetConsumerAuthorizationRuleResponseBody.ts +2 -3
  62. package/src/models/GetDashboardRequest.ts +3 -0
  63. package/src/models/GetDashboardResponseBody.ts +1 -1
  64. package/src/models/GetDashboardShrinkRequest.ts +3 -0
  65. package/src/models/GetHttpApiRequest.ts +1 -1
  66. package/src/models/HttpApiDeployConfig.ts +32 -9
  67. package/src/models/ImportHttpApiRequest.ts +14 -9
  68. package/src/models/ImportHttpApiResponseBody.ts +12 -8
  69. package/src/models/ListConsumerAuthorizationRulesRequest.ts +1 -1
  70. package/src/models/ListConsumerAuthorizationRulesResponseBody.ts +2 -4
  71. package/src/models/ListHttpApiOperationsRequest.ts +10 -10
  72. package/src/models/ListHttpApiOperationsResponseBody.ts +3 -3
  73. package/src/models/ListHttpApisRequest.ts +9 -9
  74. package/src/models/ListPluginAttachmentsRequest.ts +4 -4
  75. package/src/models/ListPluginAttachmentsResponseBody.ts +7 -7
  76. package/src/models/QueryConsumerAuthorizationRulesRequest.ts +6 -6
  77. package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +8 -10
  78. package/src/models/UpdateHttpApiRequest.ts +5 -5
  79. package/src/models/UpdatePluginAttachmentRequest.ts +2 -2
package/dist/client.d.ts CHANGED
@@ -17,8 +17,8 @@ export default class Client extends OpenApi {
17
17
  * > Recommended call sequence:
18
18
  * > - Step 1: Perform a dry run to check for rule conflicts.
19
19
  * > - - Set dryRun to true.
20
- * > - - The response returns a conflict preview that contains the conflictHash value.
21
- * > - Step 2: Submit the request after confirmation.
20
+ * > - - The response returns a conflict preview that contains conflictHash.
21
+ * > - Step 2: Submit the rule after confirmation.
22
22
  * > - - No conflicts: Set dryRun to false and overwrite to false.
23
23
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
24
24
  *
@@ -39,8 +39,8 @@ export default class Client extends OpenApi {
39
39
  * > Recommended call sequence:
40
40
  * > - Step 1: Perform a dry run to check for rule conflicts.
41
41
  * > - - Set dryRun to true.
42
- * > - - The response returns a conflict preview that contains the conflictHash value.
43
- * > - Step 2: Submit the request after confirmation.
42
+ * > - - The response returns a conflict preview that contains conflictHash.
43
+ * > - Step 2: Submit the rule after confirmation.
44
44
  * > - - No conflicts: Set dryRun to false and overwrite to false.
45
45
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
46
46
  *
@@ -587,7 +587,7 @@ export default class Client extends OpenApi {
587
587
  */
588
588
  createPolicy(request: $_model.CreatePolicyRequest): Promise<$_model.CreatePolicyResponse>;
589
589
  /**
590
- * Creates a policy attachment to a resource.
590
+ * Creates a policy resource mount.
591
591
  *
592
592
  * @param request - CreatePolicyAttachmentRequest
593
593
  * @param headers - map
@@ -598,7 +598,7 @@ export default class Client extends OpenApi {
598
598
  [key: string]: string;
599
599
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePolicyAttachmentResponse>;
600
600
  /**
601
- * Creates a policy attachment to a resource.
601
+ * Creates a policy resource mount.
602
602
  *
603
603
  * @param request - CreatePolicyAttachmentRequest
604
604
  * @returns CreatePolicyAttachmentResponse
@@ -834,10 +834,10 @@ export default class Client extends OpenApi {
834
834
  */
835
835
  deleteGateway(gatewayId: string): Promise<$_model.DeleteGatewayResponse>;
836
836
  /**
837
- * Deletes a quota throttling rule from a gateway.
837
+ * Deletes a quota throttling rule for a gateway.
838
838
  *
839
839
  * @remarks
840
- * This operation deletes a consumer-based or consumer group-based quota rule from an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
840
+ * Deletes a quota rule based on an API consumer or consumer group from an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
841
841
  *
842
842
  * @param request - DeleteGatewayQuotaRuleRequest
843
843
  * @param headers - map
@@ -848,10 +848,10 @@ export default class Client extends OpenApi {
848
848
  [key: string]: string;
849
849
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteGatewayQuotaRuleResponse>;
850
850
  /**
851
- * Deletes a quota throttling rule from a gateway.
851
+ * Deletes a quota throttling rule for a gateway.
852
852
  *
853
853
  * @remarks
854
- * This operation deletes a consumer-based or consumer group-based quota rule from an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
854
+ * Deletes a quota rule based on an API consumer or consumer group from an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
855
855
  *
856
856
  * @param request - DeleteGatewayQuotaRuleRequest
857
857
  * @returns DeleteGatewayQuotaRuleResponse
@@ -1438,7 +1438,7 @@ export default class Client extends OpenApi {
1438
1438
  */
1439
1439
  getGatewayQuotaRuleSubjectUsage(gatewayId: string, ruleId: string, subjectId: string, request: $_model.GetGatewayQuotaRuleSubjectUsageRequest): Promise<$_model.GetGatewayQuotaRuleSubjectUsageResponse>;
1440
1440
  /**
1441
- * Retrieves HTTP API information.
1441
+ * Retrieves the information of an HTTP API.
1442
1442
  *
1443
1443
  * @param request - GetHttpApiRequest
1444
1444
  * @param headers - map
@@ -1449,7 +1449,7 @@ export default class Client extends OpenApi {
1449
1449
  [key: string]: string;
1450
1450
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetHttpApiResponse>;
1451
1451
  /**
1452
- * Retrieves HTTP API information.
1452
+ * Retrieves the information of an HTTP API.
1453
1453
  *
1454
1454
  * @param request - GetHttpApiRequest
1455
1455
  * @returns GetHttpApiResponse
@@ -1750,7 +1750,7 @@ export default class Client extends OpenApi {
1750
1750
  */
1751
1751
  getTraceConfig(gatewayId: string, request: $_model.GetTraceConfigRequest): Promise<$_model.GetTraceConfigResponse>;
1752
1752
  /**
1753
- * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
1753
+ * Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
1754
1754
  *
1755
1755
  * @param request - ImportHttpApiRequest
1756
1756
  * @param headers - map
@@ -1761,7 +1761,7 @@ export default class Client extends OpenApi {
1761
1761
  [key: string]: string;
1762
1762
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ImportHttpApiResponse>;
1763
1763
  /**
1764
- * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
1764
+ * Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
1765
1765
  *
1766
1766
  * @param request - ImportHttpApiRequest
1767
1767
  * @returns ImportHttpApiResponse
@@ -1869,7 +1869,7 @@ export default class Client extends OpenApi {
1869
1869
  */
1870
1870
  listBatchExportTasks(request: $_model.ListBatchExportTasksRequest): Promise<$_model.ListBatchExportTasksResponse>;
1871
1871
  /**
1872
- * Retrieves the list of consumer authorization rules.
1872
+ * Retrieves a list of consumer authorization rules.
1873
1873
  *
1874
1874
  * @param request - ListConsumerAuthorizationRulesRequest
1875
1875
  * @param headers - map
@@ -1880,7 +1880,7 @@ export default class Client extends OpenApi {
1880
1880
  [key: string]: string;
1881
1881
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListConsumerAuthorizationRulesResponse>;
1882
1882
  /**
1883
- * Retrieves the list of consumer authorization rules.
1883
+ * Retrieves a list of consumer authorization rules.
1884
1884
  *
1885
1885
  * @param request - ListConsumerAuthorizationRulesRequest
1886
1886
  * @returns ListConsumerAuthorizationRulesResponse
@@ -2344,7 +2344,7 @@ export default class Client extends OpenApi {
2344
2344
  */
2345
2345
  listMseNacosSources(gatewayId: string, request: $_model.ListMseNacosSourcesRequest): Promise<$_model.ListMseNacosSourcesResponse>;
2346
2346
  /**
2347
- * Retrieves the list of plugin mounts.
2347
+ * Retrieves the plug-in mount list.
2348
2348
  *
2349
2349
  * @param request - ListPluginAttachmentsRequest
2350
2350
  * @param headers - map
@@ -2355,7 +2355,7 @@ export default class Client extends OpenApi {
2355
2355
  [key: string]: string;
2356
2356
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ListPluginAttachmentsResponse>;
2357
2357
  /**
2358
- * Retrieves the list of plugin mounts.
2358
+ * Retrieves the plug-in mount list.
2359
2359
  *
2360
2360
  * @param request - ListPluginAttachmentsRequest
2361
2361
  * @returns ListPluginAttachmentsResponse
@@ -2969,7 +2969,7 @@ export default class Client extends OpenApi {
2969
2969
  * Updates a consumer authorization rule.
2970
2970
  *
2971
2971
  * @remarks
2972
- * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
2972
+ * This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
2973
2973
  *
2974
2974
  * @param request - UpdateConsumerAuthorizationRuleRequest
2975
2975
  * @param headers - map
@@ -2983,7 +2983,7 @@ export default class Client extends OpenApi {
2983
2983
  * Updates a consumer authorization rule.
2984
2984
  *
2985
2985
  * @remarks
2986
- * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
2986
+ * This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
2987
2987
  *
2988
2988
  * @param request - UpdateConsumerAuthorizationRuleRequest
2989
2989
  * @returns UpdateConsumerAuthorizationRuleResponse
package/dist/client.js CHANGED
@@ -90,8 +90,8 @@ class Client extends openapi_core_1.default {
90
90
  * > Recommended call sequence:
91
91
  * > - Step 1: Perform a dry run to check for rule conflicts.
92
92
  * > - - Set dryRun to true.
93
- * > - - The response returns a conflict preview that contains the conflictHash value.
94
- * > - Step 2: Submit the request after confirmation.
93
+ * > - - The response returns a conflict preview that contains conflictHash.
94
+ * > - Step 2: Submit the rule after confirmation.
95
95
  * > - - No conflicts: Set dryRun to false and overwrite to false.
96
96
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
97
97
  *
@@ -168,8 +168,8 @@ class Client extends openapi_core_1.default {
168
168
  * > Recommended call sequence:
169
169
  * > - Step 1: Perform a dry run to check for rule conflicts.
170
170
  * > - - Set dryRun to true.
171
- * > - - The response returns a conflict preview that contains the conflictHash value.
172
- * > - Step 2: Submit the request after confirmation.
171
+ * > - - The response returns a conflict preview that contains conflictHash.
172
+ * > - Step 2: Submit the rule after confirmation.
173
173
  * > - - No conflicts: Set dryRun to false and overwrite to false.
174
174
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
175
175
  *
@@ -774,6 +774,13 @@ class Client extends openapi_core_1.default {
774
774
  */
775
775
  async createConsumerWithOptions(request, headers, runtime) {
776
776
  request.validate();
777
+ let query = {};
778
+ if (!$dara.isNull(request.clientToken)) {
779
+ query["clientToken"] = request.clientToken;
780
+ }
781
+ if (!$dara.isNull(request.dryRun)) {
782
+ query["dryRun"] = request.dryRun;
783
+ }
777
784
  let body = {};
778
785
  if (!$dara.isNull(request.akSkIdentityConfigs)) {
779
786
  body["akSkIdentityConfigs"] = request.akSkIdentityConfigs;
@@ -798,6 +805,7 @@ class Client extends openapi_core_1.default {
798
805
  }
799
806
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
800
807
  headers: headers,
808
+ query: openapi_core_2.OpenApiUtil.query(query),
801
809
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
802
810
  });
803
811
  let params = new openapi_core_2.$OpenApiUtil.Params({
@@ -1220,6 +1228,10 @@ class Client extends openapi_core_1.default {
1220
1228
  */
1221
1229
  async createHttpApiWithOptions(request, headers, runtime) {
1222
1230
  request.validate();
1231
+ let query = {};
1232
+ if (!$dara.isNull(request.clientToken)) {
1233
+ query["clientToken"] = request.clientToken;
1234
+ }
1223
1235
  let body = {};
1224
1236
  if (!$dara.isNull(request.agentProtocols)) {
1225
1237
  body["agentProtocols"] = request.agentProtocols;
@@ -1280,6 +1292,7 @@ class Client extends openapi_core_1.default {
1280
1292
  }
1281
1293
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1282
1294
  headers: headers,
1295
+ query: openapi_core_2.OpenApiUtil.query(query),
1283
1296
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
1284
1297
  });
1285
1298
  let params = new openapi_core_2.$OpenApiUtil.Params({
@@ -1838,7 +1851,7 @@ class Client extends openapi_core_1.default {
1838
1851
  return await this.createPolicyWithOptions(request, headers, runtime);
1839
1852
  }
1840
1853
  /**
1841
- * Creates a policy attachment to a resource.
1854
+ * Creates a policy resource mount.
1842
1855
  *
1843
1856
  * @param request - CreatePolicyAttachmentRequest
1844
1857
  * @param headers - map
@@ -1881,7 +1894,7 @@ class Client extends openapi_core_1.default {
1881
1894
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePolicyAttachmentResponse({}));
1882
1895
  }
1883
1896
  /**
1884
- * Creates a policy attachment to a resource.
1897
+ * Creates a policy resource mount.
1885
1898
  *
1886
1899
  * @param request - CreatePolicyAttachmentRequest
1887
1900
  * @returns CreatePolicyAttachmentResponse
@@ -2428,10 +2441,10 @@ class Client extends openapi_core_1.default {
2428
2441
  return await this.deleteGatewayWithOptions(gatewayId, headers, runtime);
2429
2442
  }
2430
2443
  /**
2431
- * Deletes a quota throttling rule from a gateway.
2444
+ * Deletes a quota throttling rule for a gateway.
2432
2445
  *
2433
2446
  * @remarks
2434
- * This operation deletes a consumer-based or consumer group-based quota rule from an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
2447
+ * Deletes a quota rule based on an API consumer or consumer group from an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
2435
2448
  *
2436
2449
  * @param request - DeleteGatewayQuotaRuleRequest
2437
2450
  * @param headers - map
@@ -2457,10 +2470,10 @@ class Client extends openapi_core_1.default {
2457
2470
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteGatewayQuotaRuleResponse({}));
2458
2471
  }
2459
2472
  /**
2460
- * Deletes a quota throttling rule from a gateway.
2473
+ * Deletes a quota throttling rule for a gateway.
2461
2474
  *
2462
2475
  * @remarks
2463
- * This operation deletes a consumer-based or consumer group-based quota rule from an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
2476
+ * Deletes a quota rule based on an API consumer or consumer group from an AI gateway. This operation only takes effect on AI gateways with a version later than 2.1.19.
2464
2477
  *
2465
2478
  * @param request - DeleteGatewayQuotaRuleRequest
2466
2479
  * @returns DeleteGatewayQuotaRuleResponse
@@ -3788,7 +3801,7 @@ class Client extends openapi_core_1.default {
3788
3801
  return await this.getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId, ruleId, subjectId, request, headers, runtime);
3789
3802
  }
3790
3803
  /**
3791
- * Retrieves HTTP API information.
3804
+ * Retrieves the information of an HTTP API.
3792
3805
  *
3793
3806
  * @param request - GetHttpApiRequest
3794
3807
  * @param headers - map
@@ -3819,7 +3832,7 @@ class Client extends openapi_core_1.default {
3819
3832
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetHttpApiResponse({}));
3820
3833
  }
3821
3834
  /**
3822
- * Retrieves HTTP API information.
3835
+ * Retrieves the information of an HTTP API.
3823
3836
  *
3824
3837
  * @param request - GetHttpApiRequest
3825
3838
  * @returns GetHttpApiResponse
@@ -4452,7 +4465,7 @@ class Client extends openapi_core_1.default {
4452
4465
  return await this.getTraceConfigWithOptions(gatewayId, request, headers, runtime);
4453
4466
  }
4454
4467
  /**
4455
- * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
4468
+ * Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
4456
4469
  *
4457
4470
  * @param request - ImportHttpApiRequest
4458
4471
  * @param headers - map
@@ -4522,7 +4535,7 @@ class Client extends openapi_core_1.default {
4522
4535
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImportHttpApiResponse({}));
4523
4536
  }
4524
4537
  /**
4525
- * Imports an HTTP API. You can import an OpenAPI 2.0 or OpenAPI 3.0.x definition file as a REST API.
4538
+ * Imports an HTTP API. Supports importing OpenAPI 2.0 and OpenAPI 3.0.x definition files as REST-type APIs.
4526
4539
  *
4527
4540
  * @param request - ImportHttpApiRequest
4528
4541
  * @returns ImportHttpApiResponse
@@ -4867,7 +4880,7 @@ class Client extends openapi_core_1.default {
4867
4880
  return await this.listBatchExportTasksWithOptions(request, headers, runtime);
4868
4881
  }
4869
4882
  /**
4870
- * Retrieves the list of consumer authorization rules.
4883
+ * Retrieves a list of consumer authorization rules.
4871
4884
  *
4872
4885
  * @param request - ListConsumerAuthorizationRulesRequest
4873
4886
  * @param headers - map
@@ -4904,7 +4917,7 @@ class Client extends openapi_core_1.default {
4904
4917
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerAuthorizationRulesResponse({}));
4905
4918
  }
4906
4919
  /**
4907
- * Retrieves the list of consumer authorization rules.
4920
+ * Retrieves a list of consumer authorization rules.
4908
4921
  *
4909
4922
  * @param request - ListConsumerAuthorizationRulesRequest
4910
4923
  * @returns ListConsumerAuthorizationRulesResponse
@@ -6289,7 +6302,7 @@ class Client extends openapi_core_1.default {
6289
6302
  return await this.listMseNacosSourcesWithOptions(gatewayId, request, headers, runtime);
6290
6303
  }
6291
6304
  /**
6292
- * Retrieves the list of plugin mounts.
6305
+ * Retrieves the plug-in mount list.
6293
6306
  *
6294
6307
  * @param request - ListPluginAttachmentsRequest
6295
6308
  * @param headers - map
@@ -6344,7 +6357,7 @@ class Client extends openapi_core_1.default {
6344
6357
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginAttachmentsResponse({}));
6345
6358
  }
6346
6359
  /**
6347
- * Retrieves the list of plugin mounts.
6360
+ * Retrieves the plug-in mount list.
6348
6361
  *
6349
6362
  * @param request - ListPluginAttachmentsRequest
6350
6363
  * @returns ListPluginAttachmentsResponse
@@ -8021,7 +8034,7 @@ class Client extends openapi_core_1.default {
8021
8034
  * Updates a consumer authorization rule.
8022
8035
  *
8023
8036
  * @remarks
8024
- * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
8037
+ * This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
8025
8038
  *
8026
8039
  * @param request - UpdateConsumerAuthorizationRuleRequest
8027
8040
  * @param headers - map
@@ -8061,7 +8074,7 @@ class Client extends openapi_core_1.default {
8061
8074
  * Updates a consumer authorization rule.
8062
8075
  *
8063
8076
  * @remarks
8064
- * 该 API 已被 UpdateAuthorizationRule 替代,新路径为 /v1/authorization-rules/{consumerAuthorizationRuleId}
8077
+ * This API has been replaced by UpdateAuthorizationRule. The new operation path is /v1/authorization-rules/{consumerAuthorizationRuleId}. When calling the new operation, you only need to provide consumerAuthorizationRuleId in the path and the resources array in the request body. The consumerId parameter is no longer required.
8065
8078
  *
8066
8079
  * @param request - UpdateConsumerAuthorizationRuleRequest
8067
8080
  * @returns UpdateConsumerAuthorizationRuleResponse