@alicloud/apig20240327 11.3.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.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +8 -29
- package/dist/client.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +16 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js +4 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +74 -4
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +18 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -29
- package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +20 -0
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +92 -4
package/dist/client.d.ts
CHANGED
|
@@ -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
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
1420
|
+
* 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.
|
|
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
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
1434
|
+
* 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.
|
|
1435
1435
|
*
|
|
1436
1436
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
1437
1437
|
* @returns GetGatewayQuotaRuleSubjectUsageResponse
|
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
|
}
|
|
@@ -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
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
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
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
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
|