@alicloud/apig20240327 11.3.0 → 11.3.2

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 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 applies only to AI gateways with a version later than 2.1.19.
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 applies only to AI gateways with a version later than 2.1.19.
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
  }
@@ -2550,6 +2523,9 @@ class Client extends openapi_core_1.default {
2550
2523
  async deleteHttpApiWithOptions(httpApiId, request, headers, runtime) {
2551
2524
  request.validate();
2552
2525
  let query = {};
2526
+ if (!$dara.isNull(request.clientToken)) {
2527
+ query["clientToken"] = request.clientToken;
2528
+ }
2553
2529
  if (!$dara.isNull(request.dryRun)) {
2554
2530
  query["dryRun"] = request.dryRun;
2555
2531
  }
@@ -3755,7 +3731,7 @@ class Client extends openapi_core_1.default {
3755
3731
  * 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
3732
  *
3757
3733
  * @remarks
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.
3734
+ * 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
3735
  *
3760
3736
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3761
3737
  * @param headers - map
@@ -3765,6 +3741,9 @@ class Client extends openapi_core_1.default {
3765
3741
  async getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId, ruleId, subjectId, request, headers, runtime) {
3766
3742
  request.validate();
3767
3743
  let query = {};
3744
+ if (!$dara.isNull(request.endTime)) {
3745
+ query["endTime"] = request.endTime;
3746
+ }
3768
3747
  if (!$dara.isNull(request.filterFailedRequests)) {
3769
3748
  query["filterFailedRequests"] = request.filterFailedRequests;
3770
3749
  }
@@ -3774,6 +3753,9 @@ class Client extends openapi_core_1.default {
3774
3753
  if (!$dara.isNull(request.pageSize)) {
3775
3754
  query["pageSize"] = request.pageSize;
3776
3755
  }
3756
+ if (!$dara.isNull(request.startTime)) {
3757
+ query["startTime"] = request.startTime;
3758
+ }
3777
3759
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3778
3760
  headers: headers,
3779
3761
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -3795,7 +3777,7 @@ class Client extends openapi_core_1.default {
3795
3777
  * 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
3778
  *
3797
3779
  * @remarks
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.
3780
+ * 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
3781
  *
3800
3782
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
3801
3783
  * @returns GetGatewayQuotaRuleSubjectUsageResponse