@alicloud/apig20240327 11.2.0 → 11.3.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.
Files changed (61) hide show
  1. package/dist/client.d.ts +82 -58
  2. package/dist/client.js +121 -85
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddGatewayQuotaRuleRequest.d.ts +20 -14
  5. package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
  6. package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +14 -9
  7. package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
  8. package/dist/models/GetDashboardRequest.d.ts +5 -5
  9. package/dist/models/GetDashboardResponseBody.d.ts +2 -2
  10. package/dist/models/GetDashboardShrinkRequest.d.ts +5 -5
  11. package/dist/models/GetGatewayQuotaRuleRequest.d.ts +4 -4
  12. package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +4 -4
  13. package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +19 -3
  14. package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js +4 -0
  15. package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js.map +1 -1
  16. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +75 -5
  17. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +18 -0
  18. package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
  19. package/dist/models/HttpApiApiInfo.d.ts +1 -1
  20. package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
  21. package/dist/models/HttpRoute.d.ts +4 -1
  22. package/dist/models/HttpRoute.js.map +1 -1
  23. package/dist/models/ListConsumerGroupQuotaRulesRequest.d.ts +33 -0
  24. package/dist/models/ListConsumerGroupQuotaRulesRequest.js +64 -0
  25. package/dist/models/ListConsumerGroupQuotaRulesRequest.js.map +1 -0
  26. package/dist/models/ListConsumerGroupQuotaRulesResponse.d.ts +19 -0
  27. package/dist/models/ListConsumerGroupQuotaRulesResponse.js +69 -0
  28. package/dist/models/ListConsumerGroupQuotaRulesResponse.js.map +1 -0
  29. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.d.ts +132 -0
  30. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js +134 -0
  31. package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js.map +1 -0
  32. package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +9 -10
  33. package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
  34. package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +16 -16
  35. package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +8 -8
  36. package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +12 -12
  37. package/dist/models/model.d.ts +5 -0
  38. package/dist/models/model.js +26 -16
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +129 -85
  42. package/src/models/AddGatewayQuotaRuleRequest.ts +20 -14
  43. package/src/models/AddGatewayQuotaRuleResponseBody.ts +14 -9
  44. package/src/models/GetDashboardRequest.ts +5 -5
  45. package/src/models/GetDashboardResponseBody.ts +2 -2
  46. package/src/models/GetDashboardShrinkRequest.ts +5 -5
  47. package/src/models/GetGatewayQuotaRuleRequest.ts +4 -4
  48. package/src/models/GetGatewayQuotaRuleResponseBody.ts +4 -4
  49. package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +23 -3
  50. package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +93 -5
  51. package/src/models/HttpApiApiInfo.ts +1 -1
  52. package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
  53. package/src/models/HttpRoute.ts +4 -1
  54. package/src/models/ListConsumerGroupQuotaRulesRequest.ts +52 -0
  55. package/src/models/ListConsumerGroupQuotaRulesResponse.ts +40 -0
  56. package/src/models/ListConsumerGroupQuotaRulesResponseBody.ts +203 -0
  57. package/src/models/ResetGatewayQuotaRuleRequest.ts +9 -10
  58. package/src/models/ResetGatewayQuotaRuleResponseBody.ts +16 -16
  59. package/src/models/UpdateGatewayQuotaRuleRequest.ts +8 -8
  60. package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +12 -12
  61. package/src/models/model.ts +5 -0
package/dist/client.js CHANGED
@@ -69,33 +69,6 @@ class Client extends openapi_core_1.default {
69
69
  constructor(config) {
70
70
  super(config);
71
71
  this._endpointRule = "regional";
72
- this._endpointMap = {
73
- 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
74
- 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
75
- 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
76
- 'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
77
- 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
78
- 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
79
- 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
80
- 'cn-beijing': "apig.cn-beijing.aliyuncs.com",
81
- 'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
82
- 'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
83
- 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
84
- 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
85
- 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
86
- 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
87
- 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
88
- 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
89
- 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
90
- 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
91
- 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
92
- 'us-west-1': "apig.us-west-1.aliyuncs.com",
93
- 'us-east-1': "apig.us-east-1.aliyuncs.com",
94
- 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
95
- 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
96
- 'me-east-1': "apig.me-east-1.aliyuncs.com",
97
- 'me-central-1': "apig.me-central-1.aliyuncs.com",
98
- };
99
72
  this.checkConfig(config);
100
73
  this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
101
74
  }
@@ -112,15 +85,15 @@ class Client extends openapi_core_1.default {
112
85
  * Creates a gateway quota throttling rule.
113
86
  *
114
87
  * @remarks
115
- * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
88
+ * 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
89
  * >
117
- * > Recommended call logic:
118
- * > - 1. Perform a dry run to check for rule conflicts.
119
- * > - - Set dryRun=true.
120
- * > - - The response contains a conflict preview with conflictHash.
121
- * > - 2. Submit the request after confirmation.
122
- * > - - No conflicts: dryRun=false, overwrite=false.
123
- * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
90
+ * > Recommended call sequence:
91
+ * > - Step 1: Perform a dry run to check for rule conflicts.
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.
95
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
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.
124
97
  *
125
98
  * @param request - AddGatewayQuotaRuleRequest
126
99
  * @param headers - map
@@ -190,15 +163,15 @@ class Client extends openapi_core_1.default {
190
163
  * Creates a gateway quota throttling rule.
191
164
  *
192
165
  * @remarks
193
- * Creates a consumer-based quota rule for an AI gateway. This operation applies only to AI gateways running version 2.1.19 or later.
166
+ * 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.
194
167
  * >
195
- * > Recommended call logic:
196
- * > - 1. Perform a dry run to check for rule conflicts.
197
- * > - - Set dryRun=true.
198
- * > - - The response contains a conflict preview with conflictHash.
199
- * > - 2. Submit the request after confirmation.
200
- * > - - No conflicts: dryRun=false, overwrite=false.
201
- * > - - Conflicts exist and you confirm overwrite: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
168
+ * > Recommended call sequence:
169
+ * > - Step 1: Perform a dry run to check for rule conflicts.
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.
173
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
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.
202
175
  *
203
176
  * @param request - AddGatewayQuotaRuleRequest
204
177
  * @returns AddGatewayQuotaRuleResponse
@@ -2458,7 +2431,7 @@ class Client extends openapi_core_1.default {
2458
2431
  * Deletes a quota throttling rule from a gateway.
2459
2432
  *
2460
2433
  * @remarks
2461
- * 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.
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.
2462
2435
  *
2463
2436
  * @param request - DeleteGatewayQuotaRuleRequest
2464
2437
  * @param headers - map
@@ -2487,7 +2460,7 @@ class Client extends openapi_core_1.default {
2487
2460
  * Deletes a quota throttling rule from a gateway.
2488
2461
  *
2489
2462
  * @remarks
2490
- * 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.
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.
2491
2464
  *
2492
2465
  * @param request - DeleteGatewayQuotaRuleRequest
2493
2466
  * @returns DeleteGatewayQuotaRuleResponse
@@ -3695,10 +3668,10 @@ class Client extends openapi_core_1.default {
3695
3668
  return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
3696
3669
  }
3697
3670
  /**
3698
- * Queries the details of a gateway quota rate limiting rule.
3671
+ * Queries the details of a gateway quota throttling rule.
3699
3672
  *
3700
3673
  * @remarks
3701
- * Queries the details of a consumer quota rule on an AI gateway.
3674
+ * Queries a specific API consumer quota rule on an AI gateway.
3702
3675
  *
3703
3676
  * @param request - GetGatewayQuotaRuleRequest
3704
3677
  * @param headers - map
@@ -3738,10 +3711,10 @@ class Client extends openapi_core_1.default {
3738
3711
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayQuotaRuleResponse({}));
3739
3712
  }
3740
3713
  /**
3741
- * Queries the details of a gateway quota rate limiting rule.
3714
+ * Queries the details of a gateway quota throttling rule.
3742
3715
  *
3743
3716
  * @remarks
3744
- * Queries the details of a consumer quota rule on an AI gateway.
3717
+ * Queries a specific API consumer quota rule on an AI gateway.
3745
3718
  *
3746
3719
  * @param request - GetGatewayQuotaRuleRequest
3747
3720
  * @returns GetGatewayQuotaRuleResponse
@@ -3755,7 +3728,7 @@ class Client extends openapi_core_1.default {
3755
3728
  * 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.
3756
3729
  *
3757
3730
  * @remarks
3758
- * Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3731
+ * Queries the usage details of a specific subject under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
3759
3732
  *
3760
3733
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3761
3734
  * @param headers - map
@@ -3765,6 +3738,9 @@ class Client extends openapi_core_1.default {
3765
3738
  async getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId, ruleId, subjectId, request, headers, runtime) {
3766
3739
  request.validate();
3767
3740
  let query = {};
3741
+ if (!$dara.isNull(request.endTime)) {
3742
+ query["endTime"] = request.endTime;
3743
+ }
3768
3744
  if (!$dara.isNull(request.filterFailedRequests)) {
3769
3745
  query["filterFailedRequests"] = request.filterFailedRequests;
3770
3746
  }
@@ -3774,6 +3750,9 @@ class Client extends openapi_core_1.default {
3774
3750
  if (!$dara.isNull(request.pageSize)) {
3775
3751
  query["pageSize"] = request.pageSize;
3776
3752
  }
3753
+ if (!$dara.isNull(request.startTime)) {
3754
+ query["startTime"] = request.startTime;
3755
+ }
3777
3756
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3778
3757
  headers: headers,
3779
3758
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -3795,7 +3774,7 @@ class Client extends openapi_core_1.default {
3795
3774
  * 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.
3796
3775
  *
3797
3776
  * @remarks
3798
- * Retrieves the usage details of a specific consumer under a quota rule. This operation applies only to AI gateways with a version later than 2.1.19.
3777
+ * Queries the usage details of a specific subject under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
3799
3778
  *
3800
3779
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3801
3780
  * @returns GetGatewayQuotaRuleSubjectUsageResponse
@@ -4980,6 +4959,63 @@ class Client extends openapi_core_1.default {
4980
4959
  let headers = {};
4981
4960
  return await this.listConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
4982
4961
  }
4962
+ /**
4963
+ * 查询消费者组配额限流规则列表
4964
+ *
4965
+ * @remarks
4966
+ * 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
4967
+ *
4968
+ * @param request - ListConsumerGroupQuotaRulesRequest
4969
+ * @param headers - map
4970
+ * @param runtime - runtime options for this request RuntimeOptions
4971
+ * @returns ListConsumerGroupQuotaRulesResponse
4972
+ */
4973
+ async listConsumerGroupQuotaRulesWithOptions(consumerGroupId, request, headers, runtime) {
4974
+ request.validate();
4975
+ let query = {};
4976
+ if (!$dara.isNull(request.gatewayId)) {
4977
+ query["gatewayId"] = request.gatewayId;
4978
+ }
4979
+ if (!$dara.isNull(request.keyword)) {
4980
+ query["keyword"] = request.keyword;
4981
+ }
4982
+ if (!$dara.isNull(request.pageNumber)) {
4983
+ query["pageNumber"] = request.pageNumber;
4984
+ }
4985
+ if (!$dara.isNull(request.pageSize)) {
4986
+ query["pageSize"] = request.pageSize;
4987
+ }
4988
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4989
+ headers: headers,
4990
+ query: openapi_core_2.OpenApiUtil.query(query),
4991
+ });
4992
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4993
+ action: "ListConsumerGroupQuotaRules",
4994
+ version: "2024-03-27",
4995
+ protocol: "HTTPS",
4996
+ pathname: `/v1/consumer-groups/${$dara.URL.percentEncode(consumerGroupId)}/quota-rules`,
4997
+ method: "GET",
4998
+ authType: "AK",
4999
+ style: "ROA",
5000
+ reqBodyType: "json",
5001
+ bodyType: "json",
5002
+ });
5003
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerGroupQuotaRulesResponse({}));
5004
+ }
5005
+ /**
5006
+ * 查询消费者组配额限流规则列表
5007
+ *
5008
+ * @remarks
5009
+ * 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
5010
+ *
5011
+ * @param request - ListConsumerGroupQuotaRulesRequest
5012
+ * @returns ListConsumerGroupQuotaRulesResponse
5013
+ */
5014
+ async listConsumerGroupQuotaRules(consumerGroupId, request) {
5015
+ let runtime = new $dara.RuntimeOptions({});
5016
+ let headers = {};
5017
+ return await this.listConsumerGroupQuotaRulesWithOptions(consumerGroupId, request, headers, runtime);
5018
+ }
4983
5019
  /**
4984
5020
  * Queries the list of consumer groups.
4985
5021
  *
@@ -5551,10 +5587,10 @@ class Client extends openapi_core_1.default {
5551
5587
  return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
5552
5588
  }
5553
5589
  /**
5554
- * Queries the list of consumer quota rules bound to a gateway.
5590
+ * Queries the list of FinOps quota rules bound to a gateway.
5555
5591
  *
5556
5592
  * @remarks
5557
- * Queries the list of consumer quota rules bound to a gateway.
5593
+ * Queries the list of FinOps quota rules bound to a gateway.
5558
5594
  *
5559
5595
  * @param request - ListGatewayQuotaRulesRequest
5560
5596
  * @param headers - map
@@ -5597,10 +5633,10 @@ class Client extends openapi_core_1.default {
5597
5633
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
5598
5634
  }
5599
5635
  /**
5600
- * Queries the list of consumer quota rules bound to a gateway.
5636
+ * Queries the list of FinOps quota rules bound to a gateway.
5601
5637
  *
5602
5638
  * @remarks
5603
- * Queries the list of consumer quota rules bound to a gateway.
5639
+ * Queries the list of FinOps quota rules bound to a gateway.
5604
5640
  *
5605
5641
  * @param request - ListGatewayQuotaRulesRequest
5606
5642
  * @returns ListGatewayQuotaRulesResponse
@@ -7291,15 +7327,15 @@ class Client extends openapi_core_1.default {
7291
7327
  * Resets a quota throttling rule on a gateway.
7292
7328
  *
7293
7329
  * @remarks
7294
- * Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
7330
+ * 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.
7295
7331
  * >
7296
7332
  * > Recommended call logic:
7297
7333
  * > - 1. Perform a dry run to check for rule conflicts.
7298
- * > - - Set dryRun=true.
7299
- * > - - The response contains a conflict preview with conflictHash.
7300
- * > - 2. Submit the request after confirmation.
7301
- * > - - No conflict: dryRun=false, overwrite=false.
7302
- * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
7334
+ * > - - Set dryRun to true.
7335
+ * > - - The response contains a conflict preview with a conflictHash value.
7336
+ * > - 2. Confirm and submit the request.
7337
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
7338
+ * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7303
7339
  *
7304
7340
  * @param request - ResetGatewayQuotaRuleRequest
7305
7341
  * @param headers - map
@@ -7354,15 +7390,15 @@ class Client extends openapi_core_1.default {
7354
7390
  * Resets a quota throttling rule on a gateway.
7355
7391
  *
7356
7392
  * @remarks
7357
- * Resets a quota throttling rule on a gateway. This operation only takes effect for AI gateways with versions later than 2.1.19. Resetting clears the historical usage of consumers on the rule.
7393
+ * 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.
7358
7394
  * >
7359
7395
  * > Recommended call logic:
7360
7396
  * > - 1. Perform a dry run to check for rule conflicts.
7361
- * > - - Set dryRun=true.
7362
- * > - - The response contains a conflict preview with conflictHash.
7363
- * > - 2. Submit the request after confirmation.
7364
- * > - - No conflict: dryRun=false, overwrite=false.
7365
- * > - - Conflict exists and overwrite confirmed: dryRun=false, overwrite=true, conflictHash=<value returned in the previous step>
7397
+ * > - - Set dryRun to true.
7398
+ * > - - The response contains a conflict preview with a conflictHash value.
7399
+ * > - 2. Confirm and submit the request.
7400
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
7401
+ * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
7366
7402
  *
7367
7403
  * @param request - ResetGatewayQuotaRuleRequest
7368
7404
  * @returns ResetGatewayQuotaRuleResponse
@@ -8427,17 +8463,17 @@ class Client extends openapi_core_1.default {
8427
8463
  return await this.updateGatewayNameWithOptions(gatewayId, request, headers, runtime);
8428
8464
  }
8429
8465
  /**
8430
- * Edits a quota rate-limiting rule on a gateway.
8466
+ * Edits a quota throttling rule on a gateway.
8431
8467
  *
8432
8468
  * @remarks
8433
- * Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
8434
- * > Recommended call logic:
8435
- * > - 1. Perform a dry run to check for rule conflicts.
8469
+ * 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.
8470
+ * > Recommended call sequence:
8471
+ * > - Step 1: Perform a dry run to check for rule conflicts.
8436
8472
  * > - - Set dryRun to true.
8437
- * > - - The response contains a conflict preview with conflictHash.
8438
- * > - 2. Submit the request after confirmation.
8439
- * > - - No conflict: Set dryRun to false and overwrite to false.
8440
- * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8473
+ * > - - The response returns a conflict preview that contains conflictHash.
8474
+ * > - Step 2: Confirm and submit the request.
8475
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
8476
+ * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8441
8477
  *
8442
8478
  * @param request - UpdateGatewayQuotaRuleRequest
8443
8479
  * @param headers - map
@@ -8489,17 +8525,17 @@ class Client extends openapi_core_1.default {
8489
8525
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayQuotaRuleResponse({}));
8490
8526
  }
8491
8527
  /**
8492
- * Edits a quota rate-limiting rule on a gateway.
8528
+ * Edits a quota throttling rule on a gateway.
8493
8529
  *
8494
8530
  * @remarks
8495
- * Edits a quota rule on a gateway. This operation takes effect only for AI gateways with a version later than 2.1.19. Editing preserves the historical usage of consumers on the rule.
8496
- * > Recommended call logic:
8497
- * > - 1. Perform a dry run to check for rule conflicts.
8531
+ * 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.
8532
+ * > Recommended call sequence:
8533
+ * > - Step 1: Perform a dry run to check for rule conflicts.
8498
8534
  * > - - Set dryRun to true.
8499
- * > - - The response contains a conflict preview with conflictHash.
8500
- * > - 2. Submit the request after confirmation.
8501
- * > - - No conflict: Set dryRun to false and overwrite to false.
8502
- * > - - Conflict exists and overwrite confirmed: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8535
+ * > - - The response returns a conflict preview that contains conflictHash.
8536
+ * > - Step 2: Confirm and submit the request.
8537
+ * > - - No conflicts: Set dryRun to false and overwrite to false.
8538
+ * > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
8503
8539
  *
8504
8540
  * @param request - UpdateGatewayQuotaRuleRequest
8505
8541
  * @returns UpdateGatewayQuotaRuleResponse
@@ -8513,7 +8549,7 @@ class Client extends openapi_core_1.default {
8513
8549
  * Enables or disables a quota throttling rule for a gateway.
8514
8550
  *
8515
8551
  * @remarks
8516
- * 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.
8552
+ * 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.
8517
8553
  *
8518
8554
  * @param request - UpdateGatewayQuotaRuleStatusRequest
8519
8555
  * @param headers - map
@@ -8550,7 +8586,7 @@ class Client extends openapi_core_1.default {
8550
8586
  * Enables or disables a quota throttling rule for a gateway.
8551
8587
  *
8552
8588
  * @remarks
8553
- * 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.
8589
+ * 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.
8554
8590
  *
8555
8591
  * @param request - UpdateGatewayQuotaRuleStatusRequest
8556
8592
  * @returns UpdateGatewayQuotaRuleStatusResponse