@alicloud/apig20240327 9.0.0 → 9.1.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 +24 -6
- package/dist/client.js +57 -6
- package/dist/client.js.map +1 -1
- package/dist/models/GetConsumerResponseBody.d.ts +14 -44
- package/dist/models/GetConsumerResponseBody.js.map +1 -1
- package/dist/models/GetMcpServerResponseBody.d.ts +57 -46
- package/dist/models/GetMcpServerResponseBody.js.map +1 -1
- package/dist/models/JwtIdentityConfig.d.ts +45 -13
- package/dist/models/JwtIdentityConfig.js +31 -1
- package/dist/models/JwtIdentityConfig.js.map +1 -1
- package/dist/models/ListConsumerQuotaRulesRequest.d.ts +33 -0
- package/dist/models/ListConsumerQuotaRulesRequest.js +64 -0
- package/dist/models/ListConsumerQuotaRulesRequest.js.map +1 -0
- package/dist/models/ListConsumerQuotaRulesResponse.d.ts +19 -0
- package/dist/models/ListConsumerQuotaRulesResponse.js +69 -0
- package/dist/models/ListConsumerQuotaRulesResponse.js.map +1 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.d.ts +132 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.js +134 -0
- package/dist/models/ListConsumerQuotaRulesResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +30 -17
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +63 -6
- package/src/models/GetConsumerResponseBody.ts +14 -44
- package/src/models/GetMcpServerResponseBody.ts +57 -46
- package/src/models/JwtIdentityConfig.ts +66 -13
- package/src/models/ListConsumerQuotaRulesRequest.ts +52 -0
- package/src/models/ListConsumerQuotaRulesResponse.ts +40 -0
- package/src/models/ListConsumerQuotaRulesResponseBody.ts +203 -0
- package/src/models/model.ts +6 -0
package/dist/client.d.ts
CHANGED
|
@@ -798,7 +798,7 @@ export default class Client extends OpenApi {
|
|
|
798
798
|
*/
|
|
799
799
|
exportHttpApi(httpApiId: string, request: $_model.ExportHttpApiRequest): Promise<$_model.ExportHttpApiResponse>;
|
|
800
800
|
/**
|
|
801
|
-
*
|
|
801
|
+
* Retrieves an API consumer.
|
|
802
802
|
*
|
|
803
803
|
* @param headers - map
|
|
804
804
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -808,7 +808,7 @@ export default class Client extends OpenApi {
|
|
|
808
808
|
[key: string]: string;
|
|
809
809
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetConsumerResponse>;
|
|
810
810
|
/**
|
|
811
|
-
*
|
|
811
|
+
* Retrieves an API consumer.
|
|
812
812
|
* @returns GetConsumerResponse
|
|
813
813
|
*/
|
|
814
814
|
getConsumer(consumerId: string): Promise<$_model.GetConsumerResponse>;
|
|
@@ -994,10 +994,10 @@ export default class Client extends OpenApi {
|
|
|
994
994
|
*/
|
|
995
995
|
getHttpApiRoute(httpApiId: string, routeId: string): Promise<$_model.GetHttpApiRouteResponse>;
|
|
996
996
|
/**
|
|
997
|
-
* Get
|
|
997
|
+
* Get MCP Server.
|
|
998
998
|
*
|
|
999
999
|
* @remarks
|
|
1000
|
-
*
|
|
1000
|
+
* The API supports creating multiple services.
|
|
1001
1001
|
*
|
|
1002
1002
|
* @param headers - map
|
|
1003
1003
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1007,10 +1007,10 @@ export default class Client extends OpenApi {
|
|
|
1007
1007
|
[key: string]: string;
|
|
1008
1008
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetMcpServerResponse>;
|
|
1009
1009
|
/**
|
|
1010
|
-
* Get
|
|
1010
|
+
* Get MCP Server.
|
|
1011
1011
|
*
|
|
1012
1012
|
* @remarks
|
|
1013
|
-
*
|
|
1013
|
+
* The API supports creating multiple services.
|
|
1014
1014
|
* @returns GetMcpServerResponse
|
|
1015
1015
|
*/
|
|
1016
1016
|
getMcpServer(mcpServerId: string): Promise<$_model.GetMcpServerResponse>;
|
|
@@ -1221,6 +1221,24 @@ export default class Client extends OpenApi {
|
|
|
1221
1221
|
* @returns ListConsumerAuthorizationRulesResponse
|
|
1222
1222
|
*/
|
|
1223
1223
|
listConsumerAuthorizationRules(consumerId: string, request: $_model.ListConsumerAuthorizationRulesRequest): Promise<$_model.ListConsumerAuthorizationRulesResponse>;
|
|
1224
|
+
/**
|
|
1225
|
+
* 查询消费者配额限流规则列表
|
|
1226
|
+
*
|
|
1227
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
1228
|
+
* @param headers - map
|
|
1229
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1230
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
1231
|
+
*/
|
|
1232
|
+
listConsumerQuotaRulesWithOptions(consumerId: string, request: $_model.ListConsumerQuotaRulesRequest, headers: {
|
|
1233
|
+
[key: string]: string;
|
|
1234
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListConsumerQuotaRulesResponse>;
|
|
1235
|
+
/**
|
|
1236
|
+
* 查询消费者配额限流规则列表
|
|
1237
|
+
*
|
|
1238
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
1239
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
1240
|
+
*/
|
|
1241
|
+
listConsumerQuotaRules(consumerId: string, request: $_model.ListConsumerQuotaRulesRequest): Promise<$_model.ListConsumerQuotaRulesResponse>;
|
|
1224
1242
|
/**
|
|
1225
1243
|
* Queries a list of consumers.
|
|
1226
1244
|
*
|
package/dist/client.js
CHANGED
|
@@ -2221,7 +2221,7 @@ class Client extends openapi_core_1.default {
|
|
|
2221
2221
|
return await this.exportHttpApiWithOptions(httpApiId, request, headers, runtime);
|
|
2222
2222
|
}
|
|
2223
2223
|
/**
|
|
2224
|
-
*
|
|
2224
|
+
* Retrieves an API consumer.
|
|
2225
2225
|
*
|
|
2226
2226
|
* @param headers - map
|
|
2227
2227
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2245,7 +2245,7 @@ class Client extends openapi_core_1.default {
|
|
|
2245
2245
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetConsumerResponse({}));
|
|
2246
2246
|
}
|
|
2247
2247
|
/**
|
|
2248
|
-
*
|
|
2248
|
+
* Retrieves an API consumer.
|
|
2249
2249
|
* @returns GetConsumerResponse
|
|
2250
2250
|
*/
|
|
2251
2251
|
async getConsumer(consumerId) {
|
|
@@ -2687,10 +2687,10 @@ class Client extends openapi_core_1.default {
|
|
|
2687
2687
|
return await this.getHttpApiRouteWithOptions(httpApiId, routeId, headers, runtime);
|
|
2688
2688
|
}
|
|
2689
2689
|
/**
|
|
2690
|
-
* Get
|
|
2690
|
+
* Get MCP Server.
|
|
2691
2691
|
*
|
|
2692
2692
|
* @remarks
|
|
2693
|
-
*
|
|
2693
|
+
* The API supports creating multiple services.
|
|
2694
2694
|
*
|
|
2695
2695
|
* @param headers - map
|
|
2696
2696
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2714,10 +2714,10 @@ class Client extends openapi_core_1.default {
|
|
|
2714
2714
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetMcpServerResponse({}));
|
|
2715
2715
|
}
|
|
2716
2716
|
/**
|
|
2717
|
-
* Get
|
|
2717
|
+
* Get MCP Server.
|
|
2718
2718
|
*
|
|
2719
2719
|
* @remarks
|
|
2720
|
-
*
|
|
2720
|
+
* The API supports creating multiple services.
|
|
2721
2721
|
* @returns GetMcpServerResponse
|
|
2722
2722
|
*/
|
|
2723
2723
|
async getMcpServer(mcpServerId) {
|
|
@@ -3226,6 +3226,57 @@ class Client extends openapi_core_1.default {
|
|
|
3226
3226
|
let headers = {};
|
|
3227
3227
|
return await this.listConsumerAuthorizationRulesWithOptions(consumerId, request, headers, runtime);
|
|
3228
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* 查询消费者配额限流规则列表
|
|
3231
|
+
*
|
|
3232
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
3233
|
+
* @param headers - map
|
|
3234
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3235
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
3236
|
+
*/
|
|
3237
|
+
async listConsumerQuotaRulesWithOptions(consumerId, request, headers, runtime) {
|
|
3238
|
+
request.validate();
|
|
3239
|
+
let query = {};
|
|
3240
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
3241
|
+
query["gatewayId"] = request.gatewayId;
|
|
3242
|
+
}
|
|
3243
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3244
|
+
query["keyword"] = request.keyword;
|
|
3245
|
+
}
|
|
3246
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3247
|
+
query["pageNumber"] = request.pageNumber;
|
|
3248
|
+
}
|
|
3249
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3250
|
+
query["pageSize"] = request.pageSize;
|
|
3251
|
+
}
|
|
3252
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3253
|
+
headers: headers,
|
|
3254
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3255
|
+
});
|
|
3256
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3257
|
+
action: "ListConsumerQuotaRules",
|
|
3258
|
+
version: "2024-03-27",
|
|
3259
|
+
protocol: "HTTPS",
|
|
3260
|
+
pathname: `/v1/consumers/${$dara.URL.percentEncode(consumerId)}/quota-rules`,
|
|
3261
|
+
method: "GET",
|
|
3262
|
+
authType: "AK",
|
|
3263
|
+
style: "ROA",
|
|
3264
|
+
reqBodyType: "json",
|
|
3265
|
+
bodyType: "json",
|
|
3266
|
+
});
|
|
3267
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListConsumerQuotaRulesResponse({}));
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* 查询消费者配额限流规则列表
|
|
3271
|
+
*
|
|
3272
|
+
* @param request - ListConsumerQuotaRulesRequest
|
|
3273
|
+
* @returns ListConsumerQuotaRulesResponse
|
|
3274
|
+
*/
|
|
3275
|
+
async listConsumerQuotaRules(consumerId, request) {
|
|
3276
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3277
|
+
let headers = {};
|
|
3278
|
+
return await this.listConsumerQuotaRulesWithOptions(consumerId, request, headers, runtime);
|
|
3279
|
+
}
|
|
3229
3280
|
/**
|
|
3230
3281
|
* Queries a list of consumers.
|
|
3231
3282
|
*
|