@alicloud/apig20240327 11.2.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.
- package/dist/client.d.ts +82 -58
- package/dist/client.js +115 -58
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +20 -14
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +14 -9
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/GetDashboardRequest.d.ts +5 -5
- package/dist/models/GetDashboardResponseBody.d.ts +2 -2
- package/dist/models/GetDashboardShrinkRequest.d.ts +5 -5
- package/dist/models/GetGatewayQuotaRuleRequest.d.ts +4 -4
- package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +4 -4
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +3 -3
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +1 -1
- package/dist/models/HttpApiApiInfo.d.ts +1 -1
- package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
- package/dist/models/HttpRoute.d.ts +4 -1
- package/dist/models/HttpRoute.js.map +1 -1
- package/dist/models/ListConsumerGroupQuotaRulesRequest.d.ts +33 -0
- package/dist/models/ListConsumerGroupQuotaRulesRequest.js +64 -0
- package/dist/models/ListConsumerGroupQuotaRulesRequest.js.map +1 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.d.ts +19 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.js +69 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.js.map +1 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.d.ts +132 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js +134 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js.map +1 -0
- package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +9 -10
- package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +16 -16
- package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +8 -8
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +12 -12
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +26 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +121 -58
- package/src/models/AddGatewayQuotaRuleRequest.ts +20 -14
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +14 -9
- package/src/models/GetDashboardRequest.ts +5 -5
- package/src/models/GetDashboardResponseBody.ts +2 -2
- package/src/models/GetDashboardShrinkRequest.ts +5 -5
- package/src/models/GetGatewayQuotaRuleRequest.ts +4 -4
- package/src/models/GetGatewayQuotaRuleResponseBody.ts +4 -4
- package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +3 -3
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +1 -1
- package/src/models/HttpApiApiInfo.ts +1 -1
- package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
- package/src/models/HttpRoute.ts +4 -1
- package/src/models/ListConsumerGroupQuotaRulesRequest.ts +52 -0
- package/src/models/ListConsumerGroupQuotaRulesResponse.ts +40 -0
- package/src/models/ListConsumerGroupQuotaRulesResponseBody.ts +203 -0
- package/src/models/ResetGatewayQuotaRuleRequest.ts +9 -10
- package/src/models/ResetGatewayQuotaRuleResponseBody.ts +16 -16
- package/src/models/UpdateGatewayQuotaRuleRequest.ts +8 -8
- package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +12 -12
- package/src/models/model.ts +5 -0
package/dist/client.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ export default class Client extends OpenApi {
|
|
|
12
12
|
* Creates a gateway quota throttling rule.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Creates a consumer-based quota rule for an AI gateway. This operation
|
|
15
|
+
* 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.
|
|
16
16
|
* >
|
|
17
|
-
* > Recommended call
|
|
18
|
-
* > - 1
|
|
19
|
-
* > - - Set dryRun
|
|
20
|
-
* > - - The response
|
|
21
|
-
* > - 2
|
|
22
|
-
* > - - No conflicts: dryRun
|
|
23
|
-
* > - - Conflicts exist and you confirm overwrite: dryRun
|
|
17
|
+
* > Recommended call sequence:
|
|
18
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
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.
|
|
22
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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
|
*
|
|
25
25
|
* @param request - AddGatewayQuotaRuleRequest
|
|
26
26
|
* @param headers - map
|
|
@@ -34,15 +34,15 @@ export default class Client extends OpenApi {
|
|
|
34
34
|
* Creates a gateway quota throttling rule.
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* Creates a consumer-based quota rule for an AI gateway. This operation
|
|
37
|
+
* 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.
|
|
38
38
|
* >
|
|
39
|
-
* > Recommended call
|
|
40
|
-
* > - 1
|
|
41
|
-
* > - - Set dryRun
|
|
42
|
-
* > - - The response
|
|
43
|
-
* > - 2
|
|
44
|
-
* > - - No conflicts: dryRun
|
|
45
|
-
* > - - Conflicts exist and you confirm overwrite: dryRun
|
|
39
|
+
* > Recommended call sequence:
|
|
40
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
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.
|
|
44
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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
|
*
|
|
47
47
|
* @param request - AddGatewayQuotaRuleRequest
|
|
48
48
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -837,7 +837,7 @@ export default class Client extends OpenApi {
|
|
|
837
837
|
* Deletes a quota throttling rule from a gateway.
|
|
838
838
|
*
|
|
839
839
|
* @remarks
|
|
840
|
-
*
|
|
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.
|
|
841
841
|
*
|
|
842
842
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
843
843
|
* @param headers - map
|
|
@@ -851,7 +851,7 @@ export default class Client extends OpenApi {
|
|
|
851
851
|
* Deletes a quota throttling rule from a gateway.
|
|
852
852
|
*
|
|
853
853
|
* @remarks
|
|
854
|
-
*
|
|
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.
|
|
855
855
|
*
|
|
856
856
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
857
857
|
* @returns DeleteGatewayQuotaRuleResponse
|
|
@@ -1390,10 +1390,10 @@ export default class Client extends OpenApi {
|
|
|
1390
1390
|
*/
|
|
1391
1391
|
getGatewayElasticPolicy(gatewayId: string, request: $_model.GetGatewayElasticPolicyRequest): Promise<$_model.GetGatewayElasticPolicyResponse>;
|
|
1392
1392
|
/**
|
|
1393
|
-
* Queries the details of a gateway quota
|
|
1393
|
+
* Queries the details of a gateway quota throttling rule.
|
|
1394
1394
|
*
|
|
1395
1395
|
* @remarks
|
|
1396
|
-
* Queries
|
|
1396
|
+
* Queries a specific API consumer quota rule on an AI gateway.
|
|
1397
1397
|
*
|
|
1398
1398
|
* @param request - GetGatewayQuotaRuleRequest
|
|
1399
1399
|
* @param headers - map
|
|
@@ -1404,10 +1404,10 @@ export default class Client extends OpenApi {
|
|
|
1404
1404
|
[key: string]: string;
|
|
1405
1405
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetGatewayQuotaRuleResponse>;
|
|
1406
1406
|
/**
|
|
1407
|
-
* Queries the details of a gateway quota
|
|
1407
|
+
* Queries the details of a gateway quota throttling rule.
|
|
1408
1408
|
*
|
|
1409
1409
|
* @remarks
|
|
1410
|
-
* Queries
|
|
1410
|
+
* Queries a specific API consumer quota rule on an AI gateway.
|
|
1411
1411
|
*
|
|
1412
1412
|
* @param request - GetGatewayQuotaRuleRequest
|
|
1413
1413
|
* @returns GetGatewayQuotaRuleResponse
|
|
@@ -1417,7 +1417,7 @@ export default class Client extends OpenApi {
|
|
|
1417
1417
|
* 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.
|
|
1418
1418
|
*
|
|
1419
1419
|
* @remarks
|
|
1420
|
-
*
|
|
1420
|
+
* 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.
|
|
1421
1421
|
*
|
|
1422
1422
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
1423
1423
|
* @param headers - map
|
|
@@ -1431,7 +1431,7 @@ export default class Client extends OpenApi {
|
|
|
1431
1431
|
* 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.
|
|
1432
1432
|
*
|
|
1433
1433
|
* @remarks
|
|
1434
|
-
*
|
|
1434
|
+
* 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.
|
|
1435
1435
|
*
|
|
1436
1436
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
1437
1437
|
* @returns GetGatewayQuotaRuleSubjectUsageResponse
|
|
@@ -1904,6 +1904,30 @@ export default class Client extends OpenApi {
|
|
|
1904
1904
|
* @returns ListConsumerGroupConsumersResponse
|
|
1905
1905
|
*/
|
|
1906
1906
|
listConsumerGroupConsumers(consumerGroupId: string, request: $_model.ListConsumerGroupConsumersRequest): Promise<$_model.ListConsumerGroupConsumersResponse>;
|
|
1907
|
+
/**
|
|
1908
|
+
* 查询消费者组配额限流规则列表
|
|
1909
|
+
*
|
|
1910
|
+
* @remarks
|
|
1911
|
+
* 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
|
|
1912
|
+
*
|
|
1913
|
+
* @param request - ListConsumerGroupQuotaRulesRequest
|
|
1914
|
+
* @param headers - map
|
|
1915
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1916
|
+
* @returns ListConsumerGroupQuotaRulesResponse
|
|
1917
|
+
*/
|
|
1918
|
+
listConsumerGroupQuotaRulesWithOptions(consumerGroupId: string, request: $_model.ListConsumerGroupQuotaRulesRequest, headers: {
|
|
1919
|
+
[key: string]: string;
|
|
1920
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListConsumerGroupQuotaRulesResponse>;
|
|
1921
|
+
/**
|
|
1922
|
+
* 查询消费者组配额限流规则列表
|
|
1923
|
+
*
|
|
1924
|
+
* @remarks
|
|
1925
|
+
* 查询指定消费者组直接绑定的配额规则,不展开组内消费者个人绑定的规则;无直接绑定关系时返回空列表。
|
|
1926
|
+
*
|
|
1927
|
+
* @param request - ListConsumerGroupQuotaRulesRequest
|
|
1928
|
+
* @returns ListConsumerGroupQuotaRulesResponse
|
|
1929
|
+
*/
|
|
1930
|
+
listConsumerGroupQuotaRules(consumerGroupId: string, request: $_model.ListConsumerGroupQuotaRulesRequest): Promise<$_model.ListConsumerGroupQuotaRulesResponse>;
|
|
1907
1931
|
/**
|
|
1908
1932
|
* Queries the list of consumer groups.
|
|
1909
1933
|
*
|
|
@@ -2110,10 +2134,10 @@ export default class Client extends OpenApi {
|
|
|
2110
2134
|
*/
|
|
2111
2135
|
listGatewayLoadBalancers(gatewayId: string, request: $_model.ListGatewayLoadBalancersRequest): Promise<$_model.ListGatewayLoadBalancersResponse>;
|
|
2112
2136
|
/**
|
|
2113
|
-
* Queries the list of
|
|
2137
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
2114
2138
|
*
|
|
2115
2139
|
* @remarks
|
|
2116
|
-
* Queries the list of
|
|
2140
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
2117
2141
|
*
|
|
2118
2142
|
* @param request - ListGatewayQuotaRulesRequest
|
|
2119
2143
|
* @param headers - map
|
|
@@ -2124,10 +2148,10 @@ export default class Client extends OpenApi {
|
|
|
2124
2148
|
[key: string]: string;
|
|
2125
2149
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayQuotaRulesResponse>;
|
|
2126
2150
|
/**
|
|
2127
|
-
* Queries the list of
|
|
2151
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
2128
2152
|
*
|
|
2129
2153
|
* @remarks
|
|
2130
|
-
* Queries the list of
|
|
2154
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
2131
2155
|
*
|
|
2132
2156
|
* @param request - ListGatewayQuotaRulesRequest
|
|
2133
2157
|
* @returns ListGatewayQuotaRulesResponse
|
|
@@ -2680,15 +2704,15 @@ export default class Client extends OpenApi {
|
|
|
2680
2704
|
* Resets a quota throttling rule on a gateway.
|
|
2681
2705
|
*
|
|
2682
2706
|
* @remarks
|
|
2683
|
-
* Resets a quota throttling rule on a gateway. This operation
|
|
2707
|
+
* 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.
|
|
2684
2708
|
* >
|
|
2685
2709
|
* > Recommended call logic:
|
|
2686
2710
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
2687
|
-
* > - - Set dryRun
|
|
2688
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
2689
|
-
* > - 2.
|
|
2690
|
-
* > - - No
|
|
2691
|
-
* > - -
|
|
2711
|
+
* > - - Set dryRun to true.
|
|
2712
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
2713
|
+
* > - 2. Confirm and submit the request.
|
|
2714
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
2715
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
2692
2716
|
*
|
|
2693
2717
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
2694
2718
|
* @param headers - map
|
|
@@ -2702,15 +2726,15 @@ export default class Client extends OpenApi {
|
|
|
2702
2726
|
* Resets a quota throttling rule on a gateway.
|
|
2703
2727
|
*
|
|
2704
2728
|
* @remarks
|
|
2705
|
-
* Resets a quota throttling rule on a gateway. This operation
|
|
2729
|
+
* 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.
|
|
2706
2730
|
* >
|
|
2707
2731
|
* > Recommended call logic:
|
|
2708
2732
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
2709
|
-
* > - - Set dryRun
|
|
2710
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
2711
|
-
* > - 2.
|
|
2712
|
-
* > - - No
|
|
2713
|
-
* > - -
|
|
2733
|
+
* > - - Set dryRun to true.
|
|
2734
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
2735
|
+
* > - 2. Confirm and submit the request.
|
|
2736
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
2737
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
2714
2738
|
*
|
|
2715
2739
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
2716
2740
|
* @returns ResetGatewayQuotaRuleResponse
|
|
@@ -3124,17 +3148,17 @@ export default class Client extends OpenApi {
|
|
|
3124
3148
|
*/
|
|
3125
3149
|
updateGatewayName(gatewayId: string, request: $_model.UpdateGatewayNameRequest): Promise<$_model.UpdateGatewayNameResponse>;
|
|
3126
3150
|
/**
|
|
3127
|
-
* Edits a quota
|
|
3151
|
+
* Edits a quota throttling rule on a gateway.
|
|
3128
3152
|
*
|
|
3129
3153
|
* @remarks
|
|
3130
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
3131
|
-
* > Recommended call
|
|
3132
|
-
* > - 1
|
|
3154
|
+
* 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.
|
|
3155
|
+
* > Recommended call sequence:
|
|
3156
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
3133
3157
|
* > - - Set dryRun to true.
|
|
3134
|
-
* > - - The response
|
|
3135
|
-
* > - 2
|
|
3136
|
-
* > - - No
|
|
3137
|
-
* > - -
|
|
3158
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
3159
|
+
* > - Step 2: Confirm and submit the request.
|
|
3160
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
3161
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
3138
3162
|
*
|
|
3139
3163
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
3140
3164
|
* @param headers - map
|
|
@@ -3145,17 +3169,17 @@ export default class Client extends OpenApi {
|
|
|
3145
3169
|
[key: string]: string;
|
|
3146
3170
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateGatewayQuotaRuleResponse>;
|
|
3147
3171
|
/**
|
|
3148
|
-
* Edits a quota
|
|
3172
|
+
* Edits a quota throttling rule on a gateway.
|
|
3149
3173
|
*
|
|
3150
3174
|
* @remarks
|
|
3151
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
3152
|
-
* > Recommended call
|
|
3153
|
-
* > - 1
|
|
3175
|
+
* 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.
|
|
3176
|
+
* > Recommended call sequence:
|
|
3177
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
3154
3178
|
* > - - Set dryRun to true.
|
|
3155
|
-
* > - - The response
|
|
3156
|
-
* > - 2
|
|
3157
|
-
* > - - No
|
|
3158
|
-
* > - -
|
|
3179
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
3180
|
+
* > - Step 2: Confirm and submit the request.
|
|
3181
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
3182
|
+
* > - - Conflicts exist and you confirm the overwrite: Set dryRun to false, overwrite to true, and conflictHash to the value returned in the previous step.
|
|
3159
3183
|
*
|
|
3160
3184
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
3161
3185
|
* @returns UpdateGatewayQuotaRuleResponse
|
|
@@ -3165,7 +3189,7 @@ export default class Client extends OpenApi {
|
|
|
3165
3189
|
* Enables or disables a quota throttling rule for a gateway.
|
|
3166
3190
|
*
|
|
3167
3191
|
* @remarks
|
|
3168
|
-
* Enables or disables a quota rule on a gateway. This operation takes effect only
|
|
3192
|
+
* 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.
|
|
3169
3193
|
*
|
|
3170
3194
|
* @param request - UpdateGatewayQuotaRuleStatusRequest
|
|
3171
3195
|
* @param headers - map
|
|
@@ -3179,7 +3203,7 @@ export default class Client extends OpenApi {
|
|
|
3179
3203
|
* Enables or disables a quota throttling rule for a gateway.
|
|
3180
3204
|
*
|
|
3181
3205
|
* @remarks
|
|
3182
|
-
* Enables or disables a quota rule on a gateway. This operation takes effect only
|
|
3206
|
+
* 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.
|
|
3183
3207
|
*
|
|
3184
3208
|
* @param request - UpdateGatewayQuotaRuleStatusRequest
|
|
3185
3209
|
* @returns UpdateGatewayQuotaRuleStatusResponse
|
package/dist/client.js
CHANGED
|
@@ -112,15 +112,15 @@ 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
|
|
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
|
-
* > Recommended call
|
|
118
|
-
* > - 1
|
|
119
|
-
* > - - Set dryRun
|
|
120
|
-
* > - - The response
|
|
121
|
-
* > - 2
|
|
122
|
-
* > - - No conflicts: dryRun
|
|
123
|
-
* > - - Conflicts exist and you confirm overwrite: dryRun
|
|
117
|
+
* > Recommended call sequence:
|
|
118
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
119
|
+
* > - - Set dryRun to true.
|
|
120
|
+
* > - - The response returns a conflict preview that contains the conflictHash value.
|
|
121
|
+
* > - Step 2: Submit the request after confirmation.
|
|
122
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
124
124
|
*
|
|
125
125
|
* @param request - AddGatewayQuotaRuleRequest
|
|
126
126
|
* @param headers - map
|
|
@@ -190,15 +190,15 @@ class Client extends openapi_core_1.default {
|
|
|
190
190
|
* Creates a gateway quota throttling rule.
|
|
191
191
|
*
|
|
192
192
|
* @remarks
|
|
193
|
-
* Creates a consumer-based quota rule for an AI gateway. This operation
|
|
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.
|
|
194
194
|
* >
|
|
195
|
-
* > Recommended call
|
|
196
|
-
* > - 1
|
|
197
|
-
* > - - Set dryRun
|
|
198
|
-
* > - - The response
|
|
199
|
-
* > - 2
|
|
200
|
-
* > - - No conflicts: dryRun
|
|
201
|
-
* > - - Conflicts exist and you confirm overwrite: dryRun
|
|
195
|
+
* > Recommended call sequence:
|
|
196
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
197
|
+
* > - - Set dryRun to true.
|
|
198
|
+
* > - - The response returns a conflict preview that contains the conflictHash value.
|
|
199
|
+
* > - Step 2: Submit the request after confirmation.
|
|
200
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
202
202
|
*
|
|
203
203
|
* @param request - AddGatewayQuotaRuleRequest
|
|
204
204
|
* @returns AddGatewayQuotaRuleResponse
|
|
@@ -2458,7 +2458,7 @@ class Client extends openapi_core_1.default {
|
|
|
2458
2458
|
* Deletes a quota throttling rule from a gateway.
|
|
2459
2459
|
*
|
|
2460
2460
|
* @remarks
|
|
2461
|
-
*
|
|
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.
|
|
2462
2462
|
*
|
|
2463
2463
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
2464
2464
|
* @param headers - map
|
|
@@ -2487,7 +2487,7 @@ class Client extends openapi_core_1.default {
|
|
|
2487
2487
|
* Deletes a quota throttling rule from a gateway.
|
|
2488
2488
|
*
|
|
2489
2489
|
* @remarks
|
|
2490
|
-
*
|
|
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.
|
|
2491
2491
|
*
|
|
2492
2492
|
* @param request - DeleteGatewayQuotaRuleRequest
|
|
2493
2493
|
* @returns DeleteGatewayQuotaRuleResponse
|
|
@@ -3695,10 +3695,10 @@ class Client extends openapi_core_1.default {
|
|
|
3695
3695
|
return await this.getGatewayElasticPolicyWithOptions(gatewayId, request, headers, runtime);
|
|
3696
3696
|
}
|
|
3697
3697
|
/**
|
|
3698
|
-
* Queries the details of a gateway quota
|
|
3698
|
+
* Queries the details of a gateway quota throttling rule.
|
|
3699
3699
|
*
|
|
3700
3700
|
* @remarks
|
|
3701
|
-
* Queries
|
|
3701
|
+
* Queries a specific API consumer quota rule on an AI gateway.
|
|
3702
3702
|
*
|
|
3703
3703
|
* @param request - GetGatewayQuotaRuleRequest
|
|
3704
3704
|
* @param headers - map
|
|
@@ -3738,10 +3738,10 @@ class Client extends openapi_core_1.default {
|
|
|
3738
3738
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGatewayQuotaRuleResponse({}));
|
|
3739
3739
|
}
|
|
3740
3740
|
/**
|
|
3741
|
-
* Queries the details of a gateway quota
|
|
3741
|
+
* Queries the details of a gateway quota throttling rule.
|
|
3742
3742
|
*
|
|
3743
3743
|
* @remarks
|
|
3744
|
-
* Queries
|
|
3744
|
+
* Queries a specific API consumer quota rule on an AI gateway.
|
|
3745
3745
|
*
|
|
3746
3746
|
* @param request - GetGatewayQuotaRuleRequest
|
|
3747
3747
|
* @returns GetGatewayQuotaRuleResponse
|
|
@@ -3755,7 +3755,7 @@ class Client extends openapi_core_1.default {
|
|
|
3755
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.
|
|
3756
3756
|
*
|
|
3757
3757
|
* @remarks
|
|
3758
|
-
*
|
|
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.
|
|
3759
3759
|
*
|
|
3760
3760
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
3761
3761
|
* @param headers - map
|
|
@@ -3795,7 +3795,7 @@ class Client extends openapi_core_1.default {
|
|
|
3795
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.
|
|
3796
3796
|
*
|
|
3797
3797
|
* @remarks
|
|
3798
|
-
*
|
|
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.
|
|
3799
3799
|
*
|
|
3800
3800
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
3801
3801
|
* @returns GetGatewayQuotaRuleSubjectUsageResponse
|
|
@@ -4980,6 +4980,63 @@ class Client extends openapi_core_1.default {
|
|
|
4980
4980
|
let headers = {};
|
|
4981
4981
|
return await this.listConsumerGroupConsumersWithOptions(consumerGroupId, request, headers, runtime);
|
|
4982
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
|
+
}
|
|
4983
5040
|
/**
|
|
4984
5041
|
* Queries the list of consumer groups.
|
|
4985
5042
|
*
|
|
@@ -5551,10 +5608,10 @@ class Client extends openapi_core_1.default {
|
|
|
5551
5608
|
return await this.listGatewayLoadBalancersWithOptions(gatewayId, request, headers, runtime);
|
|
5552
5609
|
}
|
|
5553
5610
|
/**
|
|
5554
|
-
* Queries the list of
|
|
5611
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
5555
5612
|
*
|
|
5556
5613
|
* @remarks
|
|
5557
|
-
* Queries the list of
|
|
5614
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
5558
5615
|
*
|
|
5559
5616
|
* @param request - ListGatewayQuotaRulesRequest
|
|
5560
5617
|
* @param headers - map
|
|
@@ -5597,10 +5654,10 @@ class Client extends openapi_core_1.default {
|
|
|
5597
5654
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGatewayQuotaRulesResponse({}));
|
|
5598
5655
|
}
|
|
5599
5656
|
/**
|
|
5600
|
-
* Queries the list of
|
|
5657
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
5601
5658
|
*
|
|
5602
5659
|
* @remarks
|
|
5603
|
-
* Queries the list of
|
|
5660
|
+
* Queries the list of FinOps quota rules bound to a gateway.
|
|
5604
5661
|
*
|
|
5605
5662
|
* @param request - ListGatewayQuotaRulesRequest
|
|
5606
5663
|
* @returns ListGatewayQuotaRulesResponse
|
|
@@ -7291,15 +7348,15 @@ class Client extends openapi_core_1.default {
|
|
|
7291
7348
|
* Resets a quota throttling rule on a gateway.
|
|
7292
7349
|
*
|
|
7293
7350
|
* @remarks
|
|
7294
|
-
* Resets a quota throttling rule on a gateway. This operation
|
|
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.
|
|
7295
7352
|
* >
|
|
7296
7353
|
* > Recommended call logic:
|
|
7297
7354
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
7298
|
-
* > - - Set dryRun
|
|
7299
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
7300
|
-
* > - 2.
|
|
7301
|
-
* > - - No
|
|
7302
|
-
* > - -
|
|
7355
|
+
* > - - Set dryRun to true.
|
|
7356
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
7357
|
+
* > - 2. Confirm and submit the request.
|
|
7358
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
7303
7360
|
*
|
|
7304
7361
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
7305
7362
|
* @param headers - map
|
|
@@ -7354,15 +7411,15 @@ class Client extends openapi_core_1.default {
|
|
|
7354
7411
|
* Resets a quota throttling rule on a gateway.
|
|
7355
7412
|
*
|
|
7356
7413
|
* @remarks
|
|
7357
|
-
* Resets a quota throttling rule on a gateway. This operation
|
|
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.
|
|
7358
7415
|
* >
|
|
7359
7416
|
* > Recommended call logic:
|
|
7360
7417
|
* > - 1. Perform a dry run to check for rule conflicts.
|
|
7361
|
-
* > - - Set dryRun
|
|
7362
|
-
* > - - The response contains a conflict preview with conflictHash.
|
|
7363
|
-
* > - 2.
|
|
7364
|
-
* > - - No
|
|
7365
|
-
* > - -
|
|
7418
|
+
* > - - Set dryRun to true.
|
|
7419
|
+
* > - - The response contains a conflict preview with a conflictHash value.
|
|
7420
|
+
* > - 2. Confirm and submit the request.
|
|
7421
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
7366
7423
|
*
|
|
7367
7424
|
* @param request - ResetGatewayQuotaRuleRequest
|
|
7368
7425
|
* @returns ResetGatewayQuotaRuleResponse
|
|
@@ -8427,17 +8484,17 @@ class Client extends openapi_core_1.default {
|
|
|
8427
8484
|
return await this.updateGatewayNameWithOptions(gatewayId, request, headers, runtime);
|
|
8428
8485
|
}
|
|
8429
8486
|
/**
|
|
8430
|
-
* Edits a quota
|
|
8487
|
+
* Edits a quota throttling rule on a gateway.
|
|
8431
8488
|
*
|
|
8432
8489
|
* @remarks
|
|
8433
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
8434
|
-
* > Recommended call
|
|
8435
|
-
* > - 1
|
|
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:
|
|
8492
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
8436
8493
|
* > - - Set dryRun to true.
|
|
8437
|
-
* > - - The response
|
|
8438
|
-
* > - 2
|
|
8439
|
-
* > - - No
|
|
8440
|
-
* > - -
|
|
8494
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
8495
|
+
* > - Step 2: Confirm and submit the request.
|
|
8496
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
8441
8498
|
*
|
|
8442
8499
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
8443
8500
|
* @param headers - map
|
|
@@ -8489,17 +8546,17 @@ class Client extends openapi_core_1.default {
|
|
|
8489
8546
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGatewayQuotaRuleResponse({}));
|
|
8490
8547
|
}
|
|
8491
8548
|
/**
|
|
8492
|
-
* Edits a quota
|
|
8549
|
+
* Edits a quota throttling rule on a gateway.
|
|
8493
8550
|
*
|
|
8494
8551
|
* @remarks
|
|
8495
|
-
* Edits a quota rule on a gateway. This operation takes effect only
|
|
8496
|
-
* > Recommended call
|
|
8497
|
-
* > - 1
|
|
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:
|
|
8554
|
+
* > - Step 1: Perform a dry run to check for rule conflicts.
|
|
8498
8555
|
* > - - Set dryRun to true.
|
|
8499
|
-
* > - - The response
|
|
8500
|
-
* > - 2
|
|
8501
|
-
* > - - No
|
|
8502
|
-
* > - -
|
|
8556
|
+
* > - - The response returns a conflict preview that contains conflictHash.
|
|
8557
|
+
* > - Step 2: Confirm and submit the request.
|
|
8558
|
+
* > - - No conflicts: Set dryRun to false and overwrite to false.
|
|
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.
|
|
8503
8560
|
*
|
|
8504
8561
|
* @param request - UpdateGatewayQuotaRuleRequest
|
|
8505
8562
|
* @returns UpdateGatewayQuotaRuleResponse
|
|
@@ -8513,7 +8570,7 @@ class Client extends openapi_core_1.default {
|
|
|
8513
8570
|
* Enables or disables a quota throttling rule for a gateway.
|
|
8514
8571
|
*
|
|
8515
8572
|
* @remarks
|
|
8516
|
-
* Enables or disables a quota rule on a gateway. This operation takes effect only
|
|
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.
|
|
8517
8574
|
*
|
|
8518
8575
|
* @param request - UpdateGatewayQuotaRuleStatusRequest
|
|
8519
8576
|
* @param headers - map
|
|
@@ -8550,7 +8607,7 @@ class Client extends openapi_core_1.default {
|
|
|
8550
8607
|
* Enables or disables a quota throttling rule for a gateway.
|
|
8551
8608
|
*
|
|
8552
8609
|
* @remarks
|
|
8553
|
-
* Enables or disables a quota rule on a gateway. This operation takes effect only
|
|
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.
|
|
8554
8611
|
*
|
|
8555
8612
|
* @param request - UpdateGatewayQuotaRuleStatusRequest
|
|
8556
8613
|
* @returns UpdateGatewayQuotaRuleStatusResponse
|