@alicloud/apig20240327 9.0.0 → 9.1.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 (67) hide show
  1. package/dist/client.d.ts +32 -14
  2. package/dist/client.js +65 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddGatewaySecurityGroupRuleRequest.d.ts +2 -2
  5. package/dist/models/AddGatewaySecurityGroupRuleResponseBody.d.ts +2 -2
  6. package/dist/models/BatchDeleteConsumerAuthorizationRuleRequest.d.ts +1 -1
  7. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponseBody.d.ts +2 -2
  8. package/dist/models/CreateHttpApiRequest.d.ts +32 -25
  9. package/dist/models/CreateHttpApiRequest.js.map +1 -1
  10. package/dist/models/CreateHttpApiResponseBody.d.ts +5 -5
  11. package/dist/models/GetConsumerAuthorizationRuleResponseBody.d.ts +1 -1
  12. package/dist/models/GetConsumerResponseBody.d.ts +14 -44
  13. package/dist/models/GetConsumerResponseBody.js.map +1 -1
  14. package/dist/models/GetMcpServerResponseBody.d.ts +57 -46
  15. package/dist/models/GetMcpServerResponseBody.js.map +1 -1
  16. package/dist/models/GetTraceConfigRequest.d.ts +4 -1
  17. package/dist/models/GetTraceConfigRequest.js.map +1 -1
  18. package/dist/models/GetTraceConfigResponseBody.d.ts +15 -12
  19. package/dist/models/GetTraceConfigResponseBody.js.map +1 -1
  20. package/dist/models/HttpApiApiInfo.d.ts +1 -8
  21. package/dist/models/HttpApiApiInfo.js +2 -2
  22. package/dist/models/HttpApiApiInfo.js.map +1 -1
  23. package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +0 -7
  24. package/dist/models/HttpApiApiInfoDeployCntMapValue.js +1 -1
  25. package/dist/models/HttpApiApiInfoDeployCntMapValue.js.map +1 -1
  26. package/dist/models/ImportHttpApiRequest.d.ts +2 -2
  27. package/dist/models/ImportHttpApiResponseBody.d.ts +4 -4
  28. package/dist/models/JwtIdentityConfig.d.ts +45 -13
  29. package/dist/models/JwtIdentityConfig.js +31 -1
  30. package/dist/models/JwtIdentityConfig.js.map +1 -1
  31. package/dist/models/ListConsumerQuotaRulesRequest.d.ts +33 -0
  32. package/dist/models/ListConsumerQuotaRulesRequest.js +64 -0
  33. package/dist/models/ListConsumerQuotaRulesRequest.js.map +1 -0
  34. package/dist/models/ListConsumerQuotaRulesResponse.d.ts +19 -0
  35. package/dist/models/ListConsumerQuotaRulesResponse.js +69 -0
  36. package/dist/models/ListConsumerQuotaRulesResponse.js.map +1 -0
  37. package/dist/models/ListConsumerQuotaRulesResponseBody.d.ts +132 -0
  38. package/dist/models/ListConsumerQuotaRulesResponseBody.js +134 -0
  39. package/dist/models/ListConsumerQuotaRulesResponseBody.js.map +1 -0
  40. package/dist/models/ListDomainsRequest.d.ts +3 -1
  41. package/dist/models/ListDomainsRequest.js.map +1 -1
  42. package/dist/models/model.d.ts +6 -0
  43. package/dist/models/model.js +30 -17
  44. package/dist/models/model.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/client.ts +71 -14
  47. package/src/models/AddGatewaySecurityGroupRuleRequest.ts +2 -2
  48. package/src/models/AddGatewaySecurityGroupRuleResponseBody.ts +2 -2
  49. package/src/models/BatchDeleteConsumerAuthorizationRuleRequest.ts +1 -1
  50. package/src/models/BatchDeleteConsumerAuthorizationRuleResponseBody.ts +2 -2
  51. package/src/models/CreateHttpApiRequest.ts +32 -25
  52. package/src/models/CreateHttpApiResponseBody.ts +5 -5
  53. package/src/models/GetConsumerAuthorizationRuleResponseBody.ts +1 -1
  54. package/src/models/GetConsumerResponseBody.ts +14 -44
  55. package/src/models/GetMcpServerResponseBody.ts +57 -46
  56. package/src/models/GetTraceConfigRequest.ts +4 -1
  57. package/src/models/GetTraceConfigResponseBody.ts +15 -12
  58. package/src/models/HttpApiApiInfo.ts +3 -10
  59. package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -8
  60. package/src/models/ImportHttpApiRequest.ts +2 -2
  61. package/src/models/ImportHttpApiResponseBody.ts +4 -4
  62. package/src/models/JwtIdentityConfig.ts +66 -13
  63. package/src/models/ListConsumerQuotaRulesRequest.ts +52 -0
  64. package/src/models/ListConsumerQuotaRulesResponse.ts +40 -0
  65. package/src/models/ListConsumerQuotaRulesResponseBody.ts +203 -0
  66. package/src/models/ListDomainsRequest.ts +3 -1
  67. package/src/models/model.ts +6 -0
package/dist/client.d.ts CHANGED
@@ -49,7 +49,7 @@ export default class Client extends OpenApi {
49
49
  */
50
50
  addGatewayQuotaRule(gatewayId: string, request: $_model.AddGatewayQuotaRuleRequest): Promise<$_model.AddGatewayQuotaRuleResponse>;
51
51
  /**
52
- * Adds a security group that authorizes an instance to access services.
52
+ * Authorizes a security group to allow gateway access to services.
53
53
  *
54
54
  * @param request - AddGatewaySecurityGroupRuleRequest
55
55
  * @param headers - map
@@ -60,14 +60,14 @@ export default class Client extends OpenApi {
60
60
  [key: string]: string;
61
61
  }, runtime: $dara.RuntimeOptions): Promise<$_model.AddGatewaySecurityGroupRuleResponse>;
62
62
  /**
63
- * Adds a security group that authorizes an instance to access services.
63
+ * Authorizes a security group to allow gateway access to services.
64
64
  *
65
65
  * @param request - AddGatewaySecurityGroupRuleRequest
66
66
  * @returns AddGatewaySecurityGroupRuleResponse
67
67
  */
68
68
  addGatewaySecurityGroupRule(gatewayId: string, request: $_model.AddGatewaySecurityGroupRuleRequest): Promise<$_model.AddGatewaySecurityGroupRuleResponse>;
69
69
  /**
70
- * Removes consumer authentication rules.
70
+ * Revokes API consumer authorization rules in batches.
71
71
  *
72
72
  * @param request - BatchDeleteConsumerAuthorizationRuleRequest
73
73
  * @param headers - map
@@ -78,7 +78,7 @@ export default class Client extends OpenApi {
78
78
  [key: string]: string;
79
79
  }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchDeleteConsumerAuthorizationRuleResponse>;
80
80
  /**
81
- * Removes consumer authentication rules.
81
+ * Revokes API consumer authorization rules in batches.
82
82
  *
83
83
  * @param request - BatchDeleteConsumerAuthorizationRuleRequest
84
84
  * @returns BatchDeleteConsumerAuthorizationRuleResponse
@@ -233,7 +233,7 @@ export default class Client extends OpenApi {
233
233
  */
234
234
  createGateway(request: $_model.CreateGatewayRequest): Promise<$_model.CreateGatewayResponse>;
235
235
  /**
236
- * $.parameters[0].schema.properties.ingressConfig.example
236
+ * Creates an HTTP API.
237
237
  *
238
238
  * @param request - CreateHttpApiRequest
239
239
  * @param headers - map
@@ -244,7 +244,7 @@ export default class Client extends OpenApi {
244
244
  [key: string]: string;
245
245
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateHttpApiResponse>;
246
246
  /**
247
- * $.parameters[0].schema.properties.ingressConfig.example
247
+ * Creates an HTTP API.
248
248
  *
249
249
  * @param request - CreateHttpApiRequest
250
250
  * @returns CreateHttpApiResponse
@@ -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
- * Obtains the information of a consumer.
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
- * Obtains the information of a consumer.
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 the MCP server.
997
+ * Get MCP Server.
998
998
  *
999
999
  * @remarks
1000
- * This API supports creating multiple services.
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 the MCP server.
1010
+ * Get MCP Server.
1011
1011
  *
1012
1012
  * @remarks
1013
- * This API supports creating multiple services.
1013
+ * The API supports creating multiple services.
1014
1014
  * @returns GetMcpServerResponse
1015
1015
  */
1016
1016
  getMcpServer(mcpServerId: string): Promise<$_model.GetMcpServerResponse>;
@@ -1150,7 +1150,7 @@ export default class Client extends OpenApi {
1150
1150
  */
1151
1151
  getSource(sourceId: string): Promise<$_model.GetSourceResponse>;
1152
1152
  /**
1153
- * Queries the tracing configurations of a Cloud-native API Gateway instance.
1153
+ * Retrieves the Tracing Analysis configuration.
1154
1154
  *
1155
1155
  * @param request - GetTraceConfigRequest
1156
1156
  * @param headers - map
@@ -1161,7 +1161,7 @@ export default class Client extends OpenApi {
1161
1161
  [key: string]: string;
1162
1162
  }, runtime: $dara.RuntimeOptions): Promise<$_model.GetTraceConfigResponse>;
1163
1163
  /**
1164
- * Queries the tracing configurations of a Cloud-native API Gateway instance.
1164
+ * Retrieves the Tracing Analysis configuration.
1165
1165
  *
1166
1166
  * @param request - GetTraceConfigRequest
1167
1167
  * @returns GetTraceConfigResponse
@@ -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
@@ -186,7 +186,7 @@ class Client extends openapi_core_1.default {
186
186
  return await this.addGatewayQuotaRuleWithOptions(gatewayId, request, headers, runtime);
187
187
  }
188
188
  /**
189
- * Adds a security group that authorizes an instance to access services.
189
+ * Authorizes a security group to allow gateway access to services.
190
190
  *
191
191
  * @param request - AddGatewaySecurityGroupRuleRequest
192
192
  * @param headers - map
@@ -223,7 +223,7 @@ class Client extends openapi_core_1.default {
223
223
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddGatewaySecurityGroupRuleResponse({}));
224
224
  }
225
225
  /**
226
- * Adds a security group that authorizes an instance to access services.
226
+ * Authorizes a security group to allow gateway access to services.
227
227
  *
228
228
  * @param request - AddGatewaySecurityGroupRuleRequest
229
229
  * @returns AddGatewaySecurityGroupRuleResponse
@@ -234,7 +234,7 @@ class Client extends openapi_core_1.default {
234
234
  return await this.addGatewaySecurityGroupRuleWithOptions(gatewayId, request, headers, runtime);
235
235
  }
236
236
  /**
237
- * Removes consumer authentication rules.
237
+ * Revokes API consumer authorization rules in batches.
238
238
  *
239
239
  * @param request - BatchDeleteConsumerAuthorizationRuleRequest
240
240
  * @param headers - map
@@ -265,7 +265,7 @@ class Client extends openapi_core_1.default {
265
265
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchDeleteConsumerAuthorizationRuleResponse({}));
266
266
  }
267
267
  /**
268
- * Removes consumer authentication rules.
268
+ * Revokes API consumer authorization rules in batches.
269
269
  *
270
270
  * @param request - BatchDeleteConsumerAuthorizationRuleRequest
271
271
  * @returns BatchDeleteConsumerAuthorizationRuleResponse
@@ -758,7 +758,7 @@ class Client extends openapi_core_1.default {
758
758
  return await this.createGatewayWithOptions(request, headers, runtime);
759
759
  }
760
760
  /**
761
- * $.parameters[0].schema.properties.ingressConfig.example
761
+ * Creates an HTTP API.
762
762
  *
763
763
  * @param request - CreateHttpApiRequest
764
764
  * @param headers - map
@@ -843,7 +843,7 @@ class Client extends openapi_core_1.default {
843
843
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateHttpApiResponse({}));
844
844
  }
845
845
  /**
846
- * $.parameters[0].schema.properties.ingressConfig.example
846
+ * Creates an HTTP API.
847
847
  *
848
848
  * @param request - CreateHttpApiRequest
849
849
  * @returns CreateHttpApiResponse
@@ -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
- * Obtains the information of a consumer.
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
- * Obtains the information of a consumer.
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 the MCP server.
2690
+ * Get MCP Server.
2691
2691
  *
2692
2692
  * @remarks
2693
- * This API supports creating multiple services.
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 the MCP server.
2717
+ * Get MCP Server.
2718
2718
  *
2719
2719
  * @remarks
2720
- * This API supports creating multiple services.
2720
+ * The API supports creating multiple services.
2721
2721
  * @returns GetMcpServerResponse
2722
2722
  */
2723
2723
  async getMcpServer(mcpServerId) {
@@ -3011,7 +3011,7 @@ class Client extends openapi_core_1.default {
3011
3011
  return await this.getSourceWithOptions(sourceId, headers, runtime);
3012
3012
  }
3013
3013
  /**
3014
- * Queries the tracing configurations of a Cloud-native API Gateway instance.
3014
+ * Retrieves the Tracing Analysis configuration.
3015
3015
  *
3016
3016
  * @param request - GetTraceConfigRequest
3017
3017
  * @param headers - map
@@ -3042,7 +3042,7 @@ class Client extends openapi_core_1.default {
3042
3042
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetTraceConfigResponse({}));
3043
3043
  }
3044
3044
  /**
3045
- * Queries the tracing configurations of a Cloud-native API Gateway instance.
3045
+ * Retrieves the Tracing Analysis configuration.
3046
3046
  *
3047
3047
  * @param request - GetTraceConfigRequest
3048
3048
  * @returns GetTraceConfigResponse
@@ -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
  *