@alicloud/apig20240327 11.1.0 → 11.3.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 (200) hide show
  1. package/dist/client.d.ts +228 -36
  2. package/dist/client.js +511 -36
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddGatewayQuotaRuleRequest.d.ts +26 -17
  5. package/dist/models/AddGatewayQuotaRuleRequest.js +2 -0
  6. package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
  7. package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +36 -7
  8. package/dist/models/AddGatewayQuotaRuleResponseBody.js +6 -0
  9. package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
  10. package/dist/models/AiPluginStatus.d.ts +1 -1
  11. package/dist/models/CreateGatewayRequest.d.ts +11 -11
  12. package/dist/models/CreateGatewayResponseBody.d.ts +1 -1
  13. package/dist/models/DeployHttpApiRequest.d.ts +10 -10
  14. package/dist/models/DeployHttpApiResponseBody.d.ts +1 -1
  15. package/dist/models/GetDashboardRequest.d.ts +5 -5
  16. package/dist/models/GetDashboardResponseBody.d.ts +2 -2
  17. package/dist/models/GetDashboardShrinkRequest.d.ts +5 -5
  18. package/dist/models/GetGatewayQuotaRuleRequest.d.ts +8 -3
  19. package/dist/models/GetGatewayQuotaRuleRequest.js +2 -0
  20. package/dist/models/GetGatewayQuotaRuleRequest.js.map +1 -1
  21. package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +63 -6
  22. package/dist/models/GetGatewayQuotaRuleResponseBody.js +33 -1
  23. package/dist/models/GetGatewayQuotaRuleResponseBody.js.map +1 -1
  24. package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +3 -3
  25. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +27 -1
  26. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +6 -0
  27. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
  28. package/dist/models/HttpApiApiInfo.d.ts +32 -55
  29. package/dist/models/HttpApiApiInfo.js.map +1 -1
  30. package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
  31. package/dist/models/HttpRoute.d.ts +39 -36
  32. package/dist/models/HttpRoute.js.map +1 -1
  33. package/dist/models/ListConsumerGroupQuotaRulesRequest.d.ts +33 -0
  34. package/dist/models/ListConsumerGroupQuotaRulesRequest.js +64 -0
  35. package/dist/models/ListConsumerGroupQuotaRulesRequest.js.map +1 -0
  36. package/dist/models/ListConsumerGroupQuotaRulesResponse.d.ts +19 -0
  37. package/dist/models/ListConsumerGroupQuotaRulesResponse.js +69 -0
  38. package/dist/models/ListConsumerGroupQuotaRulesResponse.js.map +1 -0
  39. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.d.ts +132 -0
  40. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js +134 -0
  41. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js.map +1 -0
  42. package/dist/models/ListExternalServicesRequest.d.ts +3 -8
  43. package/dist/models/ListExternalServicesRequest.js.map +1 -1
  44. package/dist/models/ListExternalServicesResponseBody.d.ts +1 -1
  45. package/dist/models/ListHttpApiRoutesRequest.d.ts +5 -5
  46. package/dist/models/ListPluginWorkspaceRequest.d.ts +18 -0
  47. package/dist/models/ListPluginWorkspaceRequest.js +58 -0
  48. package/dist/models/ListPluginWorkspaceRequest.js.map +1 -0
  49. package/dist/models/ListPluginWorkspaceResponse.d.ts +19 -0
  50. package/dist/models/ListPluginWorkspaceResponse.js +69 -0
  51. package/dist/models/ListPluginWorkspaceResponse.js.map +1 -0
  52. package/dist/models/ListPluginWorkspaceResponseBody.d.ts +64 -0
  53. package/dist/models/ListPluginWorkspaceResponseBody.js +92 -0
  54. package/dist/models/ListPluginWorkspaceResponseBody.js.map +1 -0
  55. package/dist/models/ListRiskCheckResultsRequest.d.ts +33 -0
  56. package/dist/models/ListRiskCheckResultsRequest.js +64 -0
  57. package/dist/models/ListRiskCheckResultsRequest.js.map +1 -0
  58. package/dist/models/ListRiskCheckResultsResponse.d.ts +19 -0
  59. package/dist/models/ListRiskCheckResultsResponse.js +69 -0
  60. package/dist/models/ListRiskCheckResultsResponse.js.map +1 -0
  61. package/dist/models/ListRiskCheckResultsResponseBody.d.ts +71 -0
  62. package/dist/models/ListRiskCheckResultsResponseBody.js +100 -0
  63. package/dist/models/ListRiskCheckResultsResponseBody.js.map +1 -0
  64. package/dist/models/ListSourcesRequest.d.ts +55 -0
  65. package/dist/models/ListSourcesRequest.js +66 -0
  66. package/dist/models/ListSourcesRequest.js.map +1 -0
  67. package/dist/models/ListSourcesResponse.d.ts +19 -0
  68. package/dist/models/ListSourcesResponse.js +69 -0
  69. package/dist/models/ListSourcesResponse.js.map +1 -0
  70. package/dist/models/ListSourcesResponseBody.d.ts +208 -0
  71. package/dist/models/ListSourcesResponseBody.js +178 -0
  72. package/dist/models/ListSourcesResponseBody.js.map +1 -0
  73. package/dist/models/ListSyncMcpserverRequest.d.ts +28 -0
  74. package/dist/models/ListSyncMcpserverRequest.js +62 -0
  75. package/dist/models/ListSyncMcpserverRequest.js.map +1 -0
  76. package/dist/models/ListSyncMcpserverResponse.d.ts +19 -0
  77. package/dist/models/ListSyncMcpserverResponse.js +69 -0
  78. package/dist/models/ListSyncMcpserverResponse.js.map +1 -0
  79. package/dist/models/ListSyncMcpserverResponseBody.d.ts +46 -0
  80. package/dist/models/ListSyncMcpserverResponseBody.js +94 -0
  81. package/dist/models/ListSyncMcpserverResponseBody.js.map +1 -0
  82. package/dist/models/ListTagResourcesRequest.d.ts +4 -4
  83. package/dist/models/ListTagResourcesResponseBody.d.ts +1 -1
  84. package/dist/models/ListTagResourcesShrinkRequest.d.ts +4 -4
  85. package/dist/models/RefreshPluginOauthCodeRequest.d.ts +18 -0
  86. package/dist/models/RefreshPluginOauthCodeRequest.js +58 -0
  87. package/dist/models/RefreshPluginOauthCodeRequest.js.map +1 -0
  88. package/dist/models/RefreshPluginOauthCodeResponse.d.ts +19 -0
  89. package/dist/models/RefreshPluginOauthCodeResponse.js +69 -0
  90. package/dist/models/RefreshPluginOauthCodeResponse.js.map +1 -0
  91. package/dist/models/RefreshPluginOauthCodeResponseBody.d.ts +31 -0
  92. package/dist/models/RefreshPluginOauthCodeResponseBody.js +62 -0
  93. package/dist/models/RefreshPluginOauthCodeResponseBody.js.map +1 -0
  94. package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +6 -6
  95. package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +40 -14
  96. package/dist/models/ResetGatewayQuotaRuleResponseBody.js +6 -0
  97. package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
  98. package/dist/models/RunPluginPipelineRequest.d.ts +13 -0
  99. package/dist/models/RunPluginPipelineRequest.js +54 -0
  100. package/dist/models/RunPluginPipelineRequest.js.map +1 -0
  101. package/dist/models/RunPluginPipelineResponse.d.ts +19 -0
  102. package/dist/models/RunPluginPipelineResponse.js +69 -0
  103. package/dist/models/RunPluginPipelineResponse.js.map +1 -0
  104. package/dist/models/RunPluginPipelineResponseBody.d.ts +31 -0
  105. package/dist/models/RunPluginPipelineResponseBody.js +62 -0
  106. package/dist/models/RunPluginPipelineResponseBody.js.map +1 -0
  107. package/dist/models/UpdateAuthorizationRuleRequest.d.ts +14 -0
  108. package/dist/models/UpdateAuthorizationRuleRequest.js +61 -0
  109. package/dist/models/UpdateAuthorizationRuleRequest.js.map +1 -0
  110. package/dist/models/UpdateAuthorizationRuleResponse.d.ts +19 -0
  111. package/dist/models/UpdateAuthorizationRuleResponse.js +69 -0
  112. package/dist/models/UpdateAuthorizationRuleResponse.js.map +1 -0
  113. package/dist/models/UpdateAuthorizationRuleResponseBody.d.ts +31 -0
  114. package/dist/models/UpdateAuthorizationRuleResponseBody.js +62 -0
  115. package/dist/models/UpdateAuthorizationRuleResponseBody.js.map +1 -0
  116. package/dist/models/UpdateGatewayElasticPolicyRequest.d.ts +97 -0
  117. package/dist/models/UpdateGatewayElasticPolicyRequest.js +140 -0
  118. package/dist/models/UpdateGatewayElasticPolicyRequest.js.map +1 -0
  119. package/dist/models/UpdateGatewayElasticPolicyResponse.d.ts +19 -0
  120. package/dist/models/UpdateGatewayElasticPolicyResponse.js +69 -0
  121. package/dist/models/UpdateGatewayElasticPolicyResponse.js.map +1 -0
  122. package/dist/models/UpdateGatewayElasticPolicyResponseBody.d.ts +31 -0
  123. package/dist/models/UpdateGatewayElasticPolicyResponseBody.js +62 -0
  124. package/dist/models/UpdateGatewayElasticPolicyResponseBody.js.map +1 -0
  125. package/dist/models/UpdateGatewayLoadBalancerRequest.d.ts +125 -0
  126. package/dist/models/UpdateGatewayLoadBalancerRequest.js +168 -0
  127. package/dist/models/UpdateGatewayLoadBalancerRequest.js.map +1 -0
  128. package/dist/models/UpdateGatewayLoadBalancerResponse.d.ts +19 -0
  129. package/dist/models/UpdateGatewayLoadBalancerResponse.js +69 -0
  130. package/dist/models/UpdateGatewayLoadBalancerResponse.js.map +1 -0
  131. package/dist/models/UpdateGatewayLoadBalancerResponseBody.d.ts +118 -0
  132. package/dist/models/UpdateGatewayLoadBalancerResponseBody.js +135 -0
  133. package/dist/models/UpdateGatewayLoadBalancerResponseBody.js.map +1 -0
  134. package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +7 -7
  135. package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +35 -11
  136. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js +6 -0
  137. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js.map +1 -1
  138. package/dist/models/model.d.ts +49 -0
  139. package/dist/models/model.js +119 -20
  140. package/dist/models/model.js.map +1 -1
  141. package/package.json +1 -1
  142. package/src/client.ts +556 -36
  143. package/src/models/AddGatewayQuotaRuleRequest.ts +28 -17
  144. package/src/models/AddGatewayQuotaRuleResponseBody.ts +42 -7
  145. package/src/models/AiPluginStatus.ts +1 -1
  146. package/src/models/CreateGatewayRequest.ts +11 -11
  147. package/src/models/CreateGatewayResponseBody.ts +1 -1
  148. package/src/models/DeployHttpApiRequest.ts +10 -10
  149. package/src/models/DeployHttpApiResponseBody.ts +1 -1
  150. package/src/models/GetDashboardRequest.ts +5 -5
  151. package/src/models/GetDashboardResponseBody.ts +2 -2
  152. package/src/models/GetDashboardShrinkRequest.ts +5 -5
  153. package/src/models/GetGatewayQuotaRuleRequest.ts +10 -3
  154. package/src/models/GetGatewayQuotaRuleResponseBody.ts +86 -6
  155. package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +3 -3
  156. package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +33 -1
  157. package/src/models/HttpApiApiInfo.ts +32 -55
  158. package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
  159. package/src/models/HttpRoute.ts +39 -36
  160. package/src/models/ListConsumerGroupQuotaRulesRequest.ts +52 -0
  161. package/src/models/ListConsumerGroupQuotaRulesResponse.ts +40 -0
  162. package/src/models/ListConsumerGroupQuotaRulesResponseBody.ts +203 -0
  163. package/src/models/ListExternalServicesRequest.ts +3 -8
  164. package/src/models/ListExternalServicesResponseBody.ts +1 -1
  165. package/src/models/ListHttpApiRoutesRequest.ts +5 -5
  166. package/src/models/ListPluginWorkspaceRequest.ts +31 -0
  167. package/src/models/ListPluginWorkspaceResponse.ts +40 -0
  168. package/src/models/ListPluginWorkspaceResponseBody.ts +102 -0
  169. package/src/models/ListRiskCheckResultsRequest.ts +52 -0
  170. package/src/models/ListRiskCheckResultsResponse.ts +40 -0
  171. package/src/models/ListRiskCheckResultsResponseBody.ts +116 -0
  172. package/src/models/ListSourcesRequest.ts +76 -0
  173. package/src/models/ListSourcesResponse.ts +40 -0
  174. package/src/models/ListSourcesResponseBody.ts +305 -0
  175. package/src/models/ListSyncMcpserverRequest.ts +45 -0
  176. package/src/models/ListSyncMcpserverResponse.ts +40 -0
  177. package/src/models/ListSyncMcpserverResponseBody.ts +86 -0
  178. package/src/models/ListTagResourcesRequest.ts +4 -4
  179. package/src/models/ListTagResourcesResponseBody.ts +1 -1
  180. package/src/models/ListTagResourcesShrinkRequest.ts +4 -4
  181. package/src/models/RefreshPluginOauthCodeRequest.ts +31 -0
  182. package/src/models/RefreshPluginOauthCodeResponse.ts +40 -0
  183. package/src/models/RefreshPluginOauthCodeResponseBody.ts +48 -0
  184. package/src/models/ResetGatewayQuotaRuleRequest.ts +6 -6
  185. package/src/models/ResetGatewayQuotaRuleResponseBody.ts +46 -14
  186. package/src/models/RunPluginPipelineRequest.ts +24 -0
  187. package/src/models/RunPluginPipelineResponse.ts +40 -0
  188. package/src/models/RunPluginPipelineResponseBody.ts +48 -0
  189. package/src/models/UpdateAuthorizationRuleRequest.ts +30 -0
  190. package/src/models/UpdateAuthorizationRuleResponse.ts +40 -0
  191. package/src/models/UpdateAuthorizationRuleResponseBody.ts +48 -0
  192. package/src/models/UpdateGatewayElasticPolicyRequest.ts +165 -0
  193. package/src/models/UpdateGatewayElasticPolicyResponse.ts +40 -0
  194. package/src/models/UpdateGatewayElasticPolicyResponseBody.ts +48 -0
  195. package/src/models/UpdateGatewayLoadBalancerRequest.ts +212 -0
  196. package/src/models/UpdateGatewayLoadBalancerResponse.ts +40 -0
  197. package/src/models/UpdateGatewayLoadBalancerResponseBody.ts +190 -0
  198. package/src/models/UpdateGatewayQuotaRuleRequest.ts +7 -7
  199. package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +41 -11
  200. package/src/models/model.ts +49 -0
package/dist/client.js CHANGED
@@ -112,12 +112,12 @@ class Client extends openapi_core_1.default {
112
112
  * Creates a gateway quota throttling rule.
113
113
  *
114
114
  * @remarks
115
- * Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
115
+ * Creates a consumer-based or consumer group-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.21 or later.
116
116
  * >
117
117
  * > Recommended call sequence:
118
118
  * > - Step 1: Perform a dry run to check for rule conflicts.
119
119
  * > - - Set dryRun to true.
120
- * > - - The response contains a conflict preview with a conflictHash value.
120
+ * > - - The response returns a conflict preview that contains the conflictHash value.
121
121
  * > - Step 2: Submit the request after confirmation.
122
122
  * > - - No conflicts: Set dryRun to false and overwrite to false.
123
123
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
@@ -160,6 +160,9 @@ class Client extends openapi_core_1.default {
160
160
  if (!$dara.isNull(request.ruleName)) {
161
161
  body["ruleName"] = request.ruleName;
162
162
  }
163
+ if (!$dara.isNull(request.subjectType)) {
164
+ body["subjectType"] = request.subjectType;
165
+ }
163
166
  if (!$dara.isNull(request.timezone)) {
164
167
  body["timezone"] = request.timezone;
165
168
  }
@@ -187,12 +190,12 @@ class Client extends openapi_core_1.default {
187
190
  * Creates a gateway quota throttling rule.
188
191
  *
189
192
  * @remarks
190
- * Creates a consumer-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.19 or later.
193
+ * Creates a consumer-based or consumer group-based quota rule for an AI gateway. This operation takes effect only on AI gateways of version 2.1.21 or later.
191
194
  * >
192
195
  * > Recommended call sequence:
193
196
  * > - Step 1: Perform a dry run to check for rule conflicts.
194
197
  * > - - Set dryRun to true.
195
- * > - - The response contains a conflict preview with a conflictHash value.
198
+ * > - - The response returns a conflict preview that contains the conflictHash value.
196
199
  * > - Step 2: Submit the request after confirmation.
197
200
  * > - - No conflicts: Set dryRun to false and overwrite to false.
198
201
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
@@ -2455,7 +2458,7 @@ class Client extends openapi_core_1.default {
2455
2458
  * Deletes a quota throttling rule from a gateway.
2456
2459
  *
2457
2460
  * @remarks
2458
- * Deletes a consumer-based quota rule from an AI gateway. This operation takes effect only for AI gateways of version 2.1.19 or later.
2461
+ * 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.
2459
2462
  *
2460
2463
  * @param request - DeleteGatewayQuotaRuleRequest
2461
2464
  * @param headers - map
@@ -2484,7 +2487,7 @@ class Client extends openapi_core_1.default {
2484
2487
  * Deletes a quota throttling rule from a gateway.
2485
2488
  *
2486
2489
  * @remarks
2487
- * Deletes a consumer-based quota rule from an AI gateway. This operation takes effect only for AI gateways of version 2.1.19 or later.
2490
+ * 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.
2488
2491
  *
2489
2492
  * @param request - DeleteGatewayQuotaRuleRequest
2490
2493
  * @returns DeleteGatewayQuotaRuleResponse
@@ -3039,6 +3042,9 @@ class Client extends openapi_core_1.default {
3039
3042
  /**
3040
3043
  * Publishes an MCP server.
3041
3044
  *
3045
+ * @remarks
3046
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
3047
+ *
3042
3048
  * @param headers - map
3043
3049
  * @param runtime - runtime options for this request RuntimeOptions
3044
3050
  * @returns DeployMcpServerResponse
@@ -3062,6 +3068,9 @@ class Client extends openapi_core_1.default {
3062
3068
  }
3063
3069
  /**
3064
3070
  * Publishes an MCP server.
3071
+ *
3072
+ * @remarks
3073
+ * Before deployment, the MCP server must have domainIds configured through CreateMcpServer or UpdateMcpServer. Call GetMcpServer to confirm the domain name bindng status.
3065
3074
  * @returns DeployMcpServerResponse
3066
3075
  */
3067
3076
  async deployMcpServer(mcpServerId) {
@@ -3686,10 +3695,10 @@ class Client extends openapi_core_1.default {
3686
3695
  return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
3687
3696
  }
3688
3697
  /**
3689
- * Queries the details of a gateway quota rate limiting rule.
3698
+ * Queries the details of a gateway quota throttling rule.
3690
3699
  *
3691
3700
  * @remarks
3692
- * Queries the details of a consumer quota rule on an AI gateway.
3701
+ * Queries a specific API consumer quota rule on an AI gateway.
3693
3702
  *
3694
3703
  * @param request - GetGatewayQuotaRuleRequest
3695
3704
  * @param headers - map
@@ -3708,6 +3717,9 @@ class Client extends openapi_core_1.default {
3708
3717
  if (!$dara.isNull(request.withConsumers)) {
3709
3718
  query["withConsumers"] = request.withConsumers;
3710
3719
  }
3720
+ if (!$dara.isNull(request.withSubjects)) {
3721
+ query["withSubjects"] = request.withSubjects;
3722
+ }
3711
3723
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3712
3724
  headers: headers,
3713
3725
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -3726,10 +3738,10 @@ class Client extends openapi_core_1.default {
3726
3738
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayQuotaRuleResponse({}));
3727
3739
  }
3728
3740
  /**
3729
- * Queries the details of a gateway quota rate limiting rule.
3741
+ * Queries the details of a gateway quota throttling rule.
3730
3742
  *
3731
3743
  * @remarks
3732
- * Queries the details of a consumer quota rule on an AI gateway.
3744
+ * Queries a specific API consumer quota rule on an AI gateway.
3733
3745
  *
3734
3746
  * @param request - GetGatewayQuotaRuleRequest
3735
3747
  * @returns GetGatewayQuotaRuleResponse
@@ -3743,7 +3755,7 @@ class Client extends openapi_core_1.default {
3743
3755
  * Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
3744
3756
  *
3745
3757
  * @remarks
3746
- * This operation retrieves the usage details of a consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3758
+ * Queries the usage details of a specific subject under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3747
3759
  *
3748
3760
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3749
3761
  * @param headers - map
@@ -3783,7 +3795,7 @@ class Client extends openapi_core_1.default {
3783
3795
  * Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
3784
3796
  *
3785
3797
  * @remarks
3786
- * This operation retrieves the usage details of a consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3798
+ * Queries the usage details of a specific subject under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3787
3799
  *
3788
3800
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3789
3801
  * @returns GetGatewayQuotaRuleSubjectUsageResponse
@@ -4968,6 +4980,63 @@ class Client extends openapi_core_1.default {
4968
4980
  let headers = {};
4969
4981
  return await this.listConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
4970
4982
  }
4983
+ /**
4984
+ * 查询消费者组配额限流规则列表
4985
+ *
4986
+ * @remarks
4987
+ * 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
4988
+ *
4989
+ * @param request - ListConsumerGroupQuotaRulesRequest
4990
+ * @param headers - map
4991
+ * @param runtime - runtime options for this request RuntimeOptions
4992
+ * @returns ListConsumerGroupQuotaRulesResponse
4993
+ */
4994
+ async listConsumerGroupQuotaRulesWithOptions(consumerGroupId, request, headers, runtime) {
4995
+ request.validate();
4996
+ let query = {};
4997
+ if (!$dara.isNull(request.gatewayId)) {
4998
+ query["gatewayId"] = request.gatewayId;
4999
+ }
5000
+ if (!$dara.isNull(request.keyword)) {
5001
+ query["keyword"] = request.keyword;
5002
+ }
5003
+ if (!$dara.isNull(request.pageNumber)) {
5004
+ query["pageNumber"] = request.pageNumber;
5005
+ }
5006
+ if (!$dara.isNull(request.pageSize)) {
5007
+ query["pageSize"] = request.pageSize;
5008
+ }
5009
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5010
+ headers: headers,
5011
+ query: openapi_core_2.OpenApiUtil.query(query),
5012
+ });
5013
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5014
+ action: "ListConsumerGroupQuotaRules",
5015
+ version: "2024-03-27",
5016
+ protocol: "HTTPS",
5017
+ pathname: `/v1/consumer-groups/${$dara.URL.percentEncode(consumerGroupId)}/quota-rules`,
5018
+ method: "GET",
5019
+ authType: "AK",
5020
+ style: "ROA",
5021
+ reqBodyType: "json",
5022
+ bodyType: "json",
5023
+ });
5024
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerGroupQuotaRulesResponse({}));
5025
+ }
5026
+ /**
5027
+ * 查询消费者组配额限流规则列表
5028
+ *
5029
+ * @remarks
5030
+ * 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
5031
+ *
5032
+ * @param request - ListConsumerGroupQuotaRulesRequest
5033
+ * @returns ListConsumerGroupQuotaRulesResponse
5034
+ */
5035
+ async listConsumerGroupQuotaRules(consumerGroupId, request) {
5036
+ let runtime = new $dara.RuntimeOptions({});
5037
+ let headers = {};
5038
+ return await this.listConsumerGroupQuotaRulesWithOptions(consumerGroupId, request, headers, runtime);
5039
+ }
4971
5040
  /**
4972
5041
  * Queries the list of consumer groups.
4973
5042
  *
@@ -5250,7 +5319,7 @@ class Client extends openapi_core_1.default {
5250
5319
  return await this.listEnvironmentsWithOptions(request, headers, runtime);
5251
5320
  }
5252
5321
  /**
5253
- * Retrieves the external service information of a gateway.
5322
+ * Retrieves external service information for a gateway.
5254
5323
  *
5255
5324
  * @remarks
5256
5325
  * This operation supports creating multiple services.
@@ -5296,7 +5365,7 @@ class Client extends openapi_core_1.default {
5296
5365
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListExternalServicesResponse({}));
5297
5366
  }
5298
5367
  /**
5299
- * Retrieves the external service information of a gateway.
5368
+ * Retrieves external service information for a gateway.
5300
5369
  *
5301
5370
  * @remarks
5302
5371
  * This operation supports creating multiple services.
@@ -5539,10 +5608,10 @@ class Client extends openapi_core_1.default {
5539
5608
  return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
5540
5609
  }
5541
5610
  /**
5542
- * Queries the list of consumer quota rules bound to a gateway.
5611
+ * Queries the list of FinOps quota rules bound to a gateway.
5543
5612
  *
5544
5613
  * @remarks
5545
- * Queries the list of consumer quota rules bound to a gateway.
5614
+ * Queries the list of FinOps quota rules bound to a gateway.
5546
5615
  *
5547
5616
  * @param request - ListGatewayQuotaRulesRequest
5548
5617
  * @param headers - map
@@ -5585,10 +5654,10 @@ class Client extends openapi_core_1.default {
5585
5654
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
5586
5655
  }
5587
5656
  /**
5588
- * Queries the list of consumer quota rules bound to a gateway.
5657
+ * Queries the list of FinOps quota rules bound to a gateway.
5589
5658
  *
5590
5659
  * @remarks
5591
- * Queries the list of consumer quota rules bound to a gateway.
5660
+ * Queries the list of FinOps quota rules bound to a gateway.
5592
5661
  *
5593
5662
  * @param request - ListGatewayQuotaRulesRequest
5594
5663
  * @returns ListGatewayQuotaRulesResponse
@@ -6418,6 +6487,48 @@ class Client extends openapi_core_1.default {
6418
6487
  let headers = {};
6419
6488
  return await this.listPluginRepositoriesWithOptions(request, headers, runtime);
6420
6489
  }
6490
+ /**
6491
+ * 获取用户插件webide工作空间列表
6492
+ *
6493
+ * @param request - ListPluginWorkspaceRequest
6494
+ * @param headers - map
6495
+ * @param runtime - runtime options for this request RuntimeOptions
6496
+ * @returns ListPluginWorkspaceResponse
6497
+ */
6498
+ async listPluginWorkspaceWithOptions(request, headers, runtime) {
6499
+ request.validate();
6500
+ let query = {};
6501
+ if (!$dara.isNull(request.gatewayType)) {
6502
+ query["gatewayType"] = request.gatewayType;
6503
+ }
6504
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6505
+ headers: headers,
6506
+ query: openapi_core_2.OpenApiUtil.query(query),
6507
+ });
6508
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6509
+ action: "ListPluginWorkspace",
6510
+ version: "2024-03-27",
6511
+ protocol: "HTTPS",
6512
+ pathname: `/v1/plugin-workspaces`,
6513
+ method: "GET",
6514
+ authType: "AK",
6515
+ style: "ROA",
6516
+ reqBodyType: "json",
6517
+ bodyType: "json",
6518
+ });
6519
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPluginWorkspaceResponse({}));
6520
+ }
6521
+ /**
6522
+ * 获取用户插件webide工作空间列表
6523
+ *
6524
+ * @param request - ListPluginWorkspaceRequest
6525
+ * @returns ListPluginWorkspaceResponse
6526
+ */
6527
+ async listPluginWorkspace(request) {
6528
+ let runtime = new $dara.RuntimeOptions({});
6529
+ let headers = {};
6530
+ return await this.listPluginWorkspaceWithOptions(request, headers, runtime);
6531
+ }
6421
6532
  /**
6422
6533
  * Retrieves a list of plugins.
6423
6534
  *
@@ -6604,6 +6715,57 @@ class Client extends openapi_core_1.default {
6604
6715
  let headers = {};
6605
6716
  return await this.listPolicyClassesWithOptions(request, headers, runtime);
6606
6717
  }
6718
+ /**
6719
+ * 查询风险检测结果
6720
+ *
6721
+ * @param request - ListRiskCheckResultsRequest
6722
+ * @param headers - map
6723
+ * @param runtime - runtime options for this request RuntimeOptions
6724
+ * @returns ListRiskCheckResultsResponse
6725
+ */
6726
+ async listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime) {
6727
+ request.validate();
6728
+ let query = {};
6729
+ if (!$dara.isNull(request.maxResults)) {
6730
+ query["maxResults"] = request.maxResults;
6731
+ }
6732
+ if (!$dara.isNull(request.nextToken)) {
6733
+ query["nextToken"] = request.nextToken;
6734
+ }
6735
+ if (!$dara.isNull(request.pageNumber)) {
6736
+ query["pageNumber"] = request.pageNumber;
6737
+ }
6738
+ if (!$dara.isNull(request.pageSize)) {
6739
+ query["pageSize"] = request.pageSize;
6740
+ }
6741
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6742
+ headers: headers,
6743
+ query: openapi_core_2.OpenApiUtil.query(query),
6744
+ });
6745
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6746
+ action: "ListRiskCheckResults",
6747
+ version: "2024-03-27",
6748
+ protocol: "HTTPS",
6749
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/risk-check/results`,
6750
+ method: "GET",
6751
+ authType: "AK",
6752
+ style: "ROA",
6753
+ reqBodyType: "json",
6754
+ bodyType: "json",
6755
+ });
6756
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRiskCheckResultsResponse({}));
6757
+ }
6758
+ /**
6759
+ * 查询风险检测结果
6760
+ *
6761
+ * @param request - ListRiskCheckResultsRequest
6762
+ * @returns ListRiskCheckResultsResponse
6763
+ */
6764
+ async listRiskCheckResults(gatewayId, request) {
6765
+ let runtime = new $dara.RuntimeOptions({});
6766
+ let headers = {};
6767
+ return await this.listRiskCheckResultsWithOptions(gatewayId, request, headers, runtime);
6768
+ }
6607
6769
  /**
6608
6770
  * Lists secret references.
6609
6771
  *
@@ -6772,6 +6934,60 @@ class Client extends openapi_core_1.default {
6772
6934
  let headers = {};
6773
6935
  return await this.listServicesWithOptions(request, headers, runtime);
6774
6936
  }
6937
+ /**
6938
+ * Queries sources.
6939
+ *
6940
+ * @param request - ListSourcesRequest
6941
+ * @param headers - map
6942
+ * @param runtime - runtime options for this request RuntimeOptions
6943
+ * @returns ListSourcesResponse
6944
+ */
6945
+ async listSourcesWithOptions(request, headers, runtime) {
6946
+ request.validate();
6947
+ let query = {};
6948
+ if (!$dara.isNull(request.gatewayId)) {
6949
+ query["gatewayId"] = request.gatewayId;
6950
+ }
6951
+ if (!$dara.isNull(request.pageNumber)) {
6952
+ query["pageNumber"] = request.pageNumber;
6953
+ }
6954
+ if (!$dara.isNull(request.pageSize)) {
6955
+ query["pageSize"] = request.pageSize;
6956
+ }
6957
+ if (!$dara.isNull(request.resourceGroupId)) {
6958
+ query["resourceGroupId"] = request.resourceGroupId;
6959
+ }
6960
+ if (!$dara.isNull(request.type)) {
6961
+ query["type"] = request.type;
6962
+ }
6963
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6964
+ headers: headers,
6965
+ query: openapi_core_2.OpenApiUtil.query(query),
6966
+ });
6967
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6968
+ action: "ListSources",
6969
+ version: "2024-03-27",
6970
+ protocol: "HTTPS",
6971
+ pathname: `/v1/sources`,
6972
+ method: "GET",
6973
+ authType: "AK",
6974
+ style: "ROA",
6975
+ reqBodyType: "json",
6976
+ bodyType: "json",
6977
+ });
6978
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSourcesResponse({}));
6979
+ }
6980
+ /**
6981
+ * Queries sources.
6982
+ *
6983
+ * @param request - ListSourcesRequest
6984
+ * @returns ListSourcesResponse
6985
+ */
6986
+ async listSources(request) {
6987
+ let runtime = new $dara.RuntimeOptions({});
6988
+ let headers = {};
6989
+ return await this.listSourcesWithOptions(request, headers, runtime);
6990
+ }
6775
6991
  /**
6776
6992
  * Retrieves a list of certificates.
6777
6993
  *
@@ -6823,6 +7039,54 @@ class Client extends openapi_core_1.default {
6823
7039
  let headers = {};
6824
7040
  return await this.listSslCertsWithOptions(request, headers, runtime);
6825
7041
  }
7042
+ /**
7043
+ * 查询已同步的MCP Server列表
7044
+ *
7045
+ * @param request - ListSyncMCPServerRequest
7046
+ * @param headers - map
7047
+ * @param runtime - runtime options for this request RuntimeOptions
7048
+ * @returns ListSyncMCPServerResponse
7049
+ */
7050
+ async listSyncMCPServerWithOptions(request, headers, runtime) {
7051
+ request.validate();
7052
+ let query = {};
7053
+ if (!$dara.isNull(request.gatewayId)) {
7054
+ query["gatewayId"] = request.gatewayId;
7055
+ }
7056
+ if (!$dara.isNull(request.namespace)) {
7057
+ query["namespace"] = request.namespace;
7058
+ }
7059
+ if (!$dara.isNull(request.sourceId)) {
7060
+ query["sourceId"] = request.sourceId;
7061
+ }
7062
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7063
+ headers: headers,
7064
+ query: openapi_core_2.OpenApiUtil.query(query),
7065
+ });
7066
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7067
+ action: "ListSyncMCPServer",
7068
+ version: "2024-03-27",
7069
+ protocol: "HTTPS",
7070
+ pathname: `/v1/mcp-servers/sync-mcp-server/list`,
7071
+ method: "GET",
7072
+ authType: "AK",
7073
+ style: "ROA",
7074
+ reqBodyType: "json",
7075
+ bodyType: "json",
7076
+ });
7077
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListSyncMCPServerResponse({}));
7078
+ }
7079
+ /**
7080
+ * 查询已同步的MCP Server列表
7081
+ *
7082
+ * @param request - ListSyncMCPServerRequest
7083
+ * @returns ListSyncMCPServerResponse
7084
+ */
7085
+ async listSyncMCPServer(request) {
7086
+ let runtime = new $dara.RuntimeOptions({});
7087
+ let headers = {};
7088
+ return await this.listSyncMCPServerWithOptions(request, headers, runtime);
7089
+ }
6826
7090
  /**
6827
7091
  * Retrieves the list of resource labels.
6828
7092
  *
@@ -7005,6 +7269,48 @@ class Client extends openapi_core_1.default {
7005
7269
  let headers = {};
7006
7270
  return await this.queryConsumerAuthorizationRulesWithOptions(request, headers, runtime);
7007
7271
  }
7272
+ /**
7273
+ * 刷新插件托管仓库的oauth code
7274
+ *
7275
+ * @param request - RefreshPluginOAuthCodeRequest
7276
+ * @param headers - map
7277
+ * @param runtime - runtime options for this request RuntimeOptions
7278
+ * @returns RefreshPluginOAuthCodeResponse
7279
+ */
7280
+ async refreshPluginOAuthCodeWithOptions(request, headers, runtime) {
7281
+ request.validate();
7282
+ let body = {};
7283
+ if (!$dara.isNull(request.code)) {
7284
+ body["code"] = request.code;
7285
+ }
7286
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7287
+ headers: headers,
7288
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7289
+ });
7290
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7291
+ action: "RefreshPluginOAuthCode",
7292
+ version: "2024-03-27",
7293
+ protocol: "HTTPS",
7294
+ pathname: `/v1/plugin-oauth-codes`,
7295
+ method: "POST",
7296
+ authType: "AK",
7297
+ style: "ROA",
7298
+ reqBodyType: "json",
7299
+ bodyType: "json",
7300
+ });
7301
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RefreshPluginOAuthCodeResponse({}));
7302
+ }
7303
+ /**
7304
+ * 刷新插件托管仓库的oauth code
7305
+ *
7306
+ * @param request - RefreshPluginOAuthCodeRequest
7307
+ * @returns RefreshPluginOAuthCodeResponse
7308
+ */
7309
+ async refreshPluginOAuthCode(request) {
7310
+ let runtime = new $dara.RuntimeOptions({});
7311
+ let headers = {};
7312
+ return await this.refreshPluginOAuthCodeWithOptions(request, headers, runtime);
7313
+ }
7008
7314
  /**
7009
7315
  * Deletes an API consumer authorization rule.
7010
7316
  *
@@ -7042,13 +7348,13 @@ class Client extends openapi_core_1.default {
7042
7348
  * Resets a quota throttling rule on a gateway.
7043
7349
  *
7044
7350
  * @remarks
7045
- * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
7351
+ * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways of version 2.1.21 or later. Resetting clears the historical usage of consumption subjects on the rule.
7046
7352
  * >
7047
- * > Recommended call sequence:
7353
+ * > Recommended call logic:
7048
7354
  * > - 1. Perform a dry run to check for rule conflicts.
7049
7355
  * > - - Set dryRun to true.
7050
- * > - - The response contains a conflict preview with conflictHash.
7051
- * > - 2. Submit the request after confirmation.
7356
+ * > - - The response contains a conflict preview with a conflictHash value.
7357
+ * > - 2. Confirm and submit the request.
7052
7358
  * > - - No conflicts: Set dryRun to false and overwrite to false.
7053
7359
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7054
7360
  *
@@ -7105,13 +7411,13 @@ class Client extends openapi_core_1.default {
7105
7411
  * Resets a quota throttling rule on a gateway.
7106
7412
  *
7107
7413
  * @remarks
7108
- * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways running version 2.1.19 or later. Resetting a rule clears the historical usage of consumers associated with the rule.
7414
+ * Resets a quota throttling rule on a gateway. This operation takes effect only on AI gateways of version 2.1.21 or later. Resetting clears the historical usage of consumption subjects on the rule.
7109
7415
  * >
7110
- * > Recommended call sequence:
7416
+ * > Recommended call logic:
7111
7417
  * > - 1. Perform a dry run to check for rule conflicts.
7112
7418
  * > - - Set dryRun to true.
7113
- * > - - The response contains a conflict preview with conflictHash.
7114
- * > - 2. Submit the request after confirmation.
7419
+ * > - - The response contains a conflict preview with a conflictHash value.
7420
+ * > - 2. Confirm and submit the request.
7115
7421
  * > - - No conflicts: Set dryRun to false and overwrite to false.
7116
7422
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7117
7423
  *
@@ -7156,6 +7462,43 @@ class Client extends openapi_core_1.default {
7156
7462
  let headers = {};
7157
7463
  return await this.restartGatewayWithOptions(gatewayId, headers, runtime);
7158
7464
  }
7465
+ /**
7466
+ * 插件工作空间运行流水线
7467
+ *
7468
+ * @param request - RunPluginPipelineRequest
7469
+ * @param headers - map
7470
+ * @param runtime - runtime options for this request RuntimeOptions
7471
+ * @returns RunPluginPipelineResponse
7472
+ */
7473
+ async runPluginPipelineWithOptions(workspaceId, request, headers, runtime) {
7474
+ request.validate();
7475
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7476
+ headers: headers,
7477
+ });
7478
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7479
+ action: "RunPluginPipeline",
7480
+ version: "2024-03-27",
7481
+ protocol: "HTTPS",
7482
+ pathname: `/v1/plugin-workspaces/${$dara.URL.percentEncode(workspaceId)}/pipeline-run`,
7483
+ method: "POST",
7484
+ authType: "AK",
7485
+ style: "ROA",
7486
+ reqBodyType: "json",
7487
+ bodyType: "json",
7488
+ });
7489
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunPluginPipelineResponse({}));
7490
+ }
7491
+ /**
7492
+ * 插件工作空间运行流水线
7493
+ *
7494
+ * @param request - RunPluginPipelineRequest
7495
+ * @returns RunPluginPipelineResponse
7496
+ */
7497
+ async runPluginPipeline(workspaceId, request) {
7498
+ let runtime = new $dara.RuntimeOptions({});
7499
+ let headers = {};
7500
+ return await this.runPluginPipelineWithOptions(workspaceId, request, headers, runtime);
7501
+ }
7159
7502
  /**
7160
7503
  * Syncs an external MCP server.
7161
7504
  *
@@ -7596,6 +7939,48 @@ class Client extends openapi_core_1.default {
7596
7939
  let headers = {};
7597
7940
  return await this.updateAndAttachPolicyWithOptions(policyId, request, headers, runtime);
7598
7941
  }
7942
+ /**
7943
+ * 更新消费者授权规则
7944
+ *
7945
+ * @param request - UpdateAuthorizationRuleRequest
7946
+ * @param headers - map
7947
+ * @param runtime - runtime options for this request RuntimeOptions
7948
+ * @returns UpdateAuthorizationRuleResponse
7949
+ */
7950
+ async updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime) {
7951
+ request.validate();
7952
+ let body = {};
7953
+ if (!$dara.isNull(request.resources)) {
7954
+ body["resources"] = request.resources;
7955
+ }
7956
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7957
+ headers: headers,
7958
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7959
+ });
7960
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7961
+ action: "UpdateAuthorizationRule",
7962
+ version: "2024-03-27",
7963
+ protocol: "HTTPS",
7964
+ pathname: `/v1/authorization-rules/${$dara.URL.percentEncode(consumerAuthorizationRuleId)}`,
7965
+ method: "PUT",
7966
+ authType: "AK",
7967
+ style: "ROA",
7968
+ reqBodyType: "json",
7969
+ bodyType: "json",
7970
+ });
7971
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAuthorizationRuleResponse({}));
7972
+ }
7973
+ /**
7974
+ * 更新消费者授权规则
7975
+ *
7976
+ * @param request - UpdateAuthorizationRuleRequest
7977
+ * @returns UpdateAuthorizationRuleResponse
7978
+ */
7979
+ async updateAuthorizationRule(consumerAuthorizationRuleId, request) {
7980
+ let runtime = new $dara.RuntimeOptions({});
7981
+ let headers = {};
7982
+ return await this.updateAuthorizationRuleWithOptions(consumerAuthorizationRuleId, request, headers, runtime);
7983
+ }
7599
7984
  /**
7600
7985
  * Updates a consumer.
7601
7986
  *
@@ -7877,6 +8262,48 @@ class Client extends openapi_core_1.default {
7877
8262
  let headers = {};
7878
8263
  return await this.updateEnvironmentWithOptions(environmentId, request, headers, runtime);
7879
8264
  }
8265
+ /**
8266
+ * 更新网关弹性策略
8267
+ *
8268
+ * @param request - UpdateGatewayElasticPolicyRequest
8269
+ * @param headers - map
8270
+ * @param runtime - runtime options for this request RuntimeOptions
8271
+ * @returns UpdateGatewayElasticPolicyResponse
8272
+ */
8273
+ async updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime) {
8274
+ request.validate();
8275
+ let body = {};
8276
+ if (!$dara.isNull(request.elasticPolicy)) {
8277
+ body["elasticPolicy"] = request.elasticPolicy;
8278
+ }
8279
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8280
+ headers: headers,
8281
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8282
+ });
8283
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8284
+ action: "UpdateGatewayElasticPolicy",
8285
+ version: "2024-03-27",
8286
+ protocol: "HTTPS",
8287
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/elastic-policy`,
8288
+ method: "POST",
8289
+ authType: "AK",
8290
+ style: "ROA",
8291
+ reqBodyType: "json",
8292
+ bodyType: "json",
8293
+ });
8294
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayElasticPolicyResponse({}));
8295
+ }
8296
+ /**
8297
+ * 更新网关弹性策略
8298
+ *
8299
+ * @param request - UpdateGatewayElasticPolicyRequest
8300
+ * @returns UpdateGatewayElasticPolicyResponse
8301
+ */
8302
+ async updateGatewayElasticPolicy(gatewayId, request) {
8303
+ let runtime = new $dara.RuntimeOptions({});
8304
+ let headers = {};
8305
+ return await this.updateGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
8306
+ }
7880
8307
  /**
7881
8308
  * Updates the attribute parameters of a gateway.
7882
8309
  *
@@ -7919,6 +8346,54 @@ class Client extends openapi_core_1.default {
7919
8346
  let headers = {};
7920
8347
  return await this.updateGatewayFeatureWithOptions(gatewayId, name, request, headers, runtime);
7921
8348
  }
8349
+ /**
8350
+ * 更新网关负载均衡器
8351
+ *
8352
+ * @param request - UpdateGatewayLoadBalancerRequest
8353
+ * @param headers - map
8354
+ * @param runtime - runtime options for this request RuntimeOptions
8355
+ * @returns UpdateGatewayLoadBalancerResponse
8356
+ */
8357
+ async updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime) {
8358
+ request.validate();
8359
+ let body = {};
8360
+ if (!$dara.isNull(request.loadBalancerDTO)) {
8361
+ body["loadBalancerDTO"] = request.loadBalancerDTO;
8362
+ }
8363
+ if (!$dara.isNull(request.option)) {
8364
+ body["option"] = request.option;
8365
+ }
8366
+ if (!$dara.isNull(request.ports)) {
8367
+ body["ports"] = request.ports;
8368
+ }
8369
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8370
+ headers: headers,
8371
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8372
+ });
8373
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8374
+ action: "UpdateGatewayLoadBalancer",
8375
+ version: "2024-03-27",
8376
+ protocol: "HTTPS",
8377
+ pathname: `/v1/gateways/${$dara.URL.percentEncode(gatewayId)}/update-load-balancer`,
8378
+ method: "POST",
8379
+ authType: "AK",
8380
+ style: "ROA",
8381
+ reqBodyType: "json",
8382
+ bodyType: "json",
8383
+ });
8384
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayLoadBalancerResponse({}));
8385
+ }
8386
+ /**
8387
+ * 更新网关负载均衡器
8388
+ *
8389
+ * @param request - UpdateGatewayLoadBalancerRequest
8390
+ * @returns UpdateGatewayLoadBalancerResponse
8391
+ */
8392
+ async updateGatewayLoadBalancer(gatewayId, request) {
8393
+ let runtime = new $dara.RuntimeOptions({});
8394
+ let headers = {};
8395
+ return await this.updateGatewayLoadBalancerWithOptions(gatewayId, request, headers, runtime);
8396
+ }
7922
8397
  /**
7923
8398
  * 修改网关运维时间
7924
8399
  *
@@ -8012,12 +8487,12 @@ class Client extends openapi_core_1.default {
8012
8487
  * Edits a quota throttling rule on a gateway.
8013
8488
  *
8014
8489
  * @remarks
8015
- * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.19. Editing a rule preserves the historical usage of consumers on the rule.
8016
- * > Recommended call logic:
8490
+ * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.21. Editing a rule preserves the historical usage of consumer principals bound to the rule.
8491
+ * > Recommended call sequence:
8017
8492
  * > - Step 1: Perform a dry run to check for rule conflicts.
8018
8493
  * > - - Set dryRun to true.
8019
- * > - - The response contains a conflict preview with conflictHash.
8020
- * > - Step 2: Submit the request after confirmation.
8494
+ * > - - The response returns a conflict preview that contains conflictHash.
8495
+ * > - Step 2: Confirm and submit the request.
8021
8496
  * > - - No conflicts: Set dryRun to false and overwrite to false.
8022
8497
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8023
8498
  *
@@ -8074,12 +8549,12 @@ class Client extends openapi_core_1.default {
8074
8549
  * Edits a quota throttling rule on a gateway.
8075
8550
  *
8076
8551
  * @remarks
8077
- * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.19. Editing a rule preserves the historical usage of consumers on the rule.
8078
- * > Recommended call logic:
8552
+ * Edits a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.21. Editing a rule preserves the historical usage of consumer principals bound to the rule.
8553
+ * > Recommended call sequence:
8079
8554
  * > - Step 1: Perform a dry run to check for rule conflicts.
8080
8555
  * > - - Set dryRun to true.
8081
- * > - - The response contains a conflict preview with conflictHash.
8082
- * > - Step 2: Submit the request after confirmation.
8556
+ * > - - The response returns a conflict preview that contains conflictHash.
8557
+ * > - Step 2: Confirm and submit the request.
8083
8558
  * > - - No conflicts: Set dryRun to false and overwrite to false.
8084
8559
  * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8085
8560
  *
@@ -8095,7 +8570,7 @@ class Client extends openapi_core_1.default {
8095
8570
  * Enables or disables a quota throttling rule for a gateway.
8096
8571
  *
8097
8572
  * @remarks
8098
- * Enables or disables a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19.
8573
+ * Enables or disables a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.21.
8099
8574
  *
8100
8575
  * @param request - UpdateGatewayQuotaRuleStatusRequest
8101
8576
  * @param headers - map
@@ -8132,7 +8607,7 @@ class Client extends openapi_core_1.default {
8132
8607
  * Enables or disables a quota throttling rule for a gateway.
8133
8608
  *
8134
8609
  * @remarks
8135
- * Enables or disables a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19.
8610
+ * Enables or disables a quota rule on a gateway. This operation takes effect only on AI gateways with a version later than 2.1.21.
8136
8611
  *
8137
8612
  * @param request - UpdateGatewayQuotaRuleStatusRequest
8138
8613
  * @returns UpdateGatewayQuotaRuleStatusResponse