@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.
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class DeleteHttpApiRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API cannot be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
5
+ * The idempotence token. If you call this operation multiple times for the same HTTP API by using the same clientToken value and the same delete request parameters, the result of the first successful call is returned.
6
+ *
7
+ * @example
8
+ * delete-http-api-client-token-001
9
+ */
10
+ clientToken?: string;
11
+ /**
12
+ * @remarks
13
+ * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API can be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
6
14
  */
7
15
  dryRun?: boolean;
8
16
  static names(): {
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class DeleteHttpApiRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ clientToken: 'clientToken',
42
43
  dryRun: 'dryRun',
43
44
  };
44
45
  }
45
46
  static types() {
46
47
  return {
48
+ clientToken: 'string',
47
49
  dryRun: 'boolean',
48
50
  };
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteHttpApiRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHttpApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAMnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzBD,oDAyBC"}
1
+ {"version":3,"file":"DeleteHttpApiRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHttpApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAcnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,oDAmCC"}
@@ -1,5 +1,13 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The end time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates startTime based on the rule cycle.
6
+ *
7
+ * @example
8
+ * 1788425220
9
+ */
10
+ endTime?: number;
3
11
  /**
4
12
  * @remarks
5
13
  * Specifies whether to filter out zero values.
@@ -24,6 +32,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model
24
32
  * 10
25
33
  */
26
34
  pageSize?: number;
35
+ /**
36
+ * @remarks
37
+ * The start time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates endTime based on the rule cycle.
38
+ *
39
+ * @example
40
+ * 1788338820
41
+ */
42
+ startTime?: number;
27
43
  static names(): {
28
44
  [key: string]: string;
29
45
  };
@@ -39,16 +39,20 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ endTime: 'endTime',
42
43
  filterFailedRequests: 'filterFailedRequests',
43
44
  pageNumber: 'pageNumber',
44
45
  pageSize: 'pageSize',
46
+ startTime: 'startTime',
45
47
  };
46
48
  }
47
49
  static types() {
48
50
  return {
51
+ endTime: 'number',
49
52
  filterFailedRequests: 'boolean',
50
53
  pageNumber: 'number',
51
54
  pageSize: 'number',
55
+ startTime: 'number',
52
56
  };
53
57
  }
54
58
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"GetGatewayQuotaRuleSubjectUsageRequest.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAyBrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,oBAAoB,EAAE,sBAAsB;YAC5C,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,oBAAoB,EAAE,SAAS;YAC/B,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,wFAgDC"}
1
+ {"version":3,"file":"GetGatewayQuotaRuleSubjectUsageRequest.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAyCrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,oBAAoB,EAAE,sBAAsB;YAC5C,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,oBAAoB,EAAE,SAAS;YAC/B,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,wFAoEC"}
@@ -8,6 +8,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
8
8
  * 10
9
9
  */
10
10
  cachedAmount?: number;
11
+ /**
12
+ * @remarks
13
+ * The exact value of cached consumption. Supports decimals in credit scenarios.
14
+ *
15
+ * @example
16
+ * 10.5
17
+ */
18
+ cachedAmountDecimal?: number;
11
19
  /**
12
20
  * @remarks
13
21
  * The consumer name.
@@ -24,6 +32,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
24
32
  * 120
25
33
  */
26
34
  inputAmount?: number;
35
+ /**
36
+ * @remarks
37
+ * The exact value of input consumption. Supports decimals in credit scenarios.
38
+ *
39
+ * @example
40
+ * 120.5
41
+ */
42
+ inputAmountDecimal?: number;
27
43
  /**
28
44
  * @remarks
29
45
  * The model name.
@@ -40,6 +56,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
40
56
  * 80
41
57
  */
42
58
  outputAmount?: number;
59
+ /**
60
+ * @remarks
61
+ * The exact value of output consumption. Supports decimals in credit scenarios.
62
+ *
63
+ * @example
64
+ * 80.5
65
+ */
66
+ outputAmountDecimal?: number;
43
67
  /**
44
68
  * @remarks
45
69
  * The request ID.
@@ -64,6 +88,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
64
88
  * 210
65
89
  */
66
90
  usedAmount?: number;
91
+ /**
92
+ * @remarks
93
+ * The exact value of total consumption. Supports decimals in credit scenarios.
94
+ *
95
+ * @example
96
+ * 210.5
97
+ */
98
+ usedAmountDecimal?: number;
67
99
  static names(): {
68
100
  [key: string]: string;
69
101
  };
@@ -102,7 +134,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails exte
102
134
  pageSize?: number;
103
135
  /**
104
136
  * @remarks
105
- * The total number of records.
137
+ * The total number of entries.
106
138
  *
107
139
  * @example
108
140
  * 100
@@ -128,6 +160,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
128
160
  * 20
129
161
  */
130
162
  cachedAmount?: number;
163
+ /**
164
+ * @remarks
165
+ * The exact value of total cached consumption. Supports decimals in credit scenarios.
166
+ *
167
+ * @example
168
+ * 20.5
169
+ */
170
+ cachedAmountDecimal?: number;
131
171
  /**
132
172
  * @remarks
133
173
  * The paginated consumption details.
@@ -144,6 +184,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
144
184
  * 300
145
185
  */
146
186
  inputAmount?: number;
187
+ /**
188
+ * @remarks
189
+ * The exact value of total input consumption. Supports decimals in credit scenarios.
190
+ *
191
+ * @example
192
+ * 300.5
193
+ */
194
+ inputAmountDecimal?: number;
147
195
  /**
148
196
  * @remarks
149
197
  * The total output token consumption.
@@ -152,6 +200,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
152
200
  * 180
153
201
  */
154
202
  outputAmount?: number;
203
+ /**
204
+ * @remarks
205
+ * The exact value of total output consumption. Supports decimals in credit scenarios.
206
+ *
207
+ * @example
208
+ * 180.5
209
+ */
210
+ outputAmountDecimal?: number;
155
211
  /**
156
212
  * @remarks
157
213
  * Indicates whether the quota limit is exceeded.
@@ -162,9 +218,15 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
162
218
  overLimit?: boolean;
163
219
  /**
164
220
  * @remarks
165
- * The subject type. Valid values:
166
- * - consumer
167
- * - consumer_group
221
+ * The quota dimension. Valid values: token and credit.
222
+ *
223
+ * @example
224
+ * token
225
+ */
226
+ quotaDimension?: string;
227
+ /**
228
+ * @remarks
229
+ * The subject type. Valid values: consumer and consumer_group.
168
230
  *
169
231
  * @example
170
232
  * consumer_group
@@ -186,6 +248,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
186
248
  * 500
187
249
  */
188
250
  usedAmount?: number;
251
+ /**
252
+ * @remarks
253
+ * The exact value of the total used amount of the subject. Supports decimals in credit scenarios.
254
+ *
255
+ * @example
256
+ * 500.5
257
+ */
258
+ usedAmountDecimal?: number;
189
259
  static names(): {
190
260
  [key: string]: string;
191
261
  };
@@ -40,25 +40,33 @@ class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends $dara.
40
40
  static names() {
41
41
  return {
42
42
  cachedAmount: 'cachedAmount',
43
+ cachedAmountDecimal: 'cachedAmountDecimal',
43
44
  consumer: 'consumer',
44
45
  inputAmount: 'inputAmount',
46
+ inputAmountDecimal: 'inputAmountDecimal',
45
47
  model: 'model',
46
48
  outputAmount: 'outputAmount',
49
+ outputAmountDecimal: 'outputAmountDecimal',
47
50
  requestId: 'requestId',
48
51
  startTime: 'startTime',
49
52
  usedAmount: 'usedAmount',
53
+ usedAmountDecimal: 'usedAmountDecimal',
50
54
  };
51
55
  }
52
56
  static types() {
53
57
  return {
54
58
  cachedAmount: 'number',
59
+ cachedAmountDecimal: 'number',
55
60
  consumer: 'string',
56
61
  inputAmount: 'number',
62
+ inputAmountDecimal: 'number',
57
63
  model: 'string',
58
64
  outputAmount: 'number',
65
+ outputAmountDecimal: 'number',
59
66
  requestId: 'string',
60
67
  startTime: 'string',
61
68
  usedAmount: 'number',
69
+ usedAmountDecimal: 'number',
62
70
  };
63
71
  }
64
72
  validate() {
@@ -101,25 +109,35 @@ class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model {
101
109
  static names() {
102
110
  return {
103
111
  cachedAmount: 'cachedAmount',
112
+ cachedAmountDecimal: 'cachedAmountDecimal',
104
113
  details: 'details',
105
114
  inputAmount: 'inputAmount',
115
+ inputAmountDecimal: 'inputAmountDecimal',
106
116
  outputAmount: 'outputAmount',
117
+ outputAmountDecimal: 'outputAmountDecimal',
107
118
  overLimit: 'overLimit',
119
+ quotaDimension: 'quotaDimension',
108
120
  subjectType: 'subjectType',
109
121
  totalQuota: 'totalQuota',
110
122
  usedAmount: 'usedAmount',
123
+ usedAmountDecimal: 'usedAmountDecimal',
111
124
  };
112
125
  }
113
126
  static types() {
114
127
  return {
115
128
  cachedAmount: 'number',
129
+ cachedAmountDecimal: 'number',
116
130
  details: GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails,
117
131
  inputAmount: 'number',
132
+ inputAmountDecimal: 'number',
118
133
  outputAmount: 'number',
134
+ outputAmountDecimal: 'number',
119
135
  overLimit: 'boolean',
136
+ quotaDimension: 'string',
120
137
  subjectType: 'string',
121
138
  totalQuota: 'number',
122
139
  usedAmount: 'number',
140
+ usedAmountDecimal: 'number',
123
141
  };
124
142
  }
125
143
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"GetGatewayQuotaRuleSubjectUsageResponseBody.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts"],"names":[],"mappings":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ACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,+CAA+C;YACrD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,kGA6DC"}
1
+ {"version":3,"file":"GetGatewayQuotaRuleSubjectUsageResponseBody.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2DAA4D,SAAQ,KAAK,CAAC,KAAK;IAiG1F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,cAAc;YAC5B,mBAAmB,EAAE,qBAAqB;YAC1C,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,aAAa;YAC1B,kBAAkB,EAAE,oBAAoB;YACxC,KAAK,EAAE,OAAO;YACd,YAAY,EAAE,cAAc;YAC5B,mBAAmB,EAAE,qBAAqB;YAC1C,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;YACxB,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,YAAY,EAAE,QAAQ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O,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,+CAA+C;YACrD,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,kGA6DC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/apig20240327",
3
- "version": "11.3.0",
3
+ "version": "11.3.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -12,33 +12,6 @@ export default class Client extends OpenApi {
12
12
  constructor(config: $OpenApiUtil.Config) {
13
13
  super(config);
14
14
  this._endpointRule = "regional";
15
- this._endpointMap = {
16
- 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
17
- 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
18
- 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
19
- 'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
20
- 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
21
- 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
22
- 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
23
- 'cn-beijing': "apig.cn-beijing.aliyuncs.com",
24
- 'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
25
- 'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
26
- 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
27
- 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
28
- 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
29
- 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
30
- 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
31
- 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
32
- 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
33
- 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
34
- 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
35
- 'us-west-1': "apig.us-west-1.aliyuncs.com",
36
- 'us-east-1': "apig.us-east-1.aliyuncs.com",
37
- 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
38
- 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
39
- 'me-east-1': "apig.me-east-1.aliyuncs.com",
40
- 'me-central-1': "apig.me-central-1.aliyuncs.com",
41
- };
42
15
  this.checkConfig(config);
43
16
  this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
44
17
  }
@@ -2800,6 +2773,10 @@ export default class Client extends OpenApi {
2800
2773
  async deleteHttpApiWithOptions(httpApiId: string, request: $_model.DeleteHttpApiRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHttpApiResponse> {
2801
2774
  request.validate();
2802
2775
  let query : {[key: string ]: any} = { };
2776
+ if (!$dara.isNull(request.clientToken)) {
2777
+ query["clientToken"] = request.clientToken;
2778
+ }
2779
+
2803
2780
  if (!$dara.isNull(request.dryRun)) {
2804
2781
  query["dryRun"] = request.dryRun;
2805
2782
  }
@@ -4093,7 +4070,7 @@ export default class Client extends OpenApi {
4093
4070
  * 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.
4094
4071
  *
4095
4072
  * @remarks
4096
- * 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.
4073
+ * 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.
4097
4074
  *
4098
4075
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
4099
4076
  * @param headers - map
@@ -4103,6 +4080,10 @@ export default class Client extends OpenApi {
4103
4080
  async getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId: string, ruleId: string, subjectId: string, request: $_model.GetGatewayQuotaRuleSubjectUsageRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetGatewayQuotaRuleSubjectUsageResponse> {
4104
4081
  request.validate();
4105
4082
  let query : {[key: string ]: any} = { };
4083
+ if (!$dara.isNull(request.endTime)) {
4084
+ query["endTime"] = request.endTime;
4085
+ }
4086
+
4106
4087
  if (!$dara.isNull(request.filterFailedRequests)) {
4107
4088
  query["filterFailedRequests"] = request.filterFailedRequests;
4108
4089
  }
@@ -4115,6 +4096,10 @@ export default class Client extends OpenApi {
4115
4096
  query["pageSize"] = request.pageSize;
4116
4097
  }
4117
4098
 
4099
+ if (!$dara.isNull(request.startTime)) {
4100
+ query["startTime"] = request.startTime;
4101
+ }
4102
+
4118
4103
  let req = new $OpenApiUtil.OpenApiRequest({
4119
4104
  headers: headers,
4120
4105
  query: OpenApiUtil.query(query),
@@ -4137,7 +4122,7 @@ export default class Client extends OpenApi {
4137
4122
  * 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.
4138
4123
  *
4139
4124
  * @remarks
4140
- * 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.
4125
+ * 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.
4141
4126
  *
4142
4127
  * @param request - GetGatewayQuotaRuleSubjectUsageRequest
4143
4128
  * @returns GetGatewayQuotaRuleSubjectUsageResponse
@@ -5,17 +5,27 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DeleteHttpApiRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API cannot be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
8
+ * The idempotence token. If you call this operation multiple times for the same HTTP API by using the same clientToken value and the same delete request parameters, the result of the first successful call is returned.
9
+ *
10
+ * @example
11
+ * delete-http-api-client-token-001
12
+ */
13
+ clientToken?: string;
14
+ /**
15
+ * @remarks
16
+ * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API can be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
9
17
  */
10
18
  dryRun?: boolean;
11
19
  static names(): { [key: string]: string } {
12
20
  return {
21
+ clientToken: 'clientToken',
13
22
  dryRun: 'dryRun',
14
23
  };
15
24
  }
16
25
 
17
26
  static types(): { [key: string]: any } {
18
27
  return {
28
+ clientToken: 'string',
19
29
  dryRun: 'boolean',
20
30
  };
21
31
  }
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The end time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates startTime based on the rule cycle.
9
+ *
10
+ * @example
11
+ * 1788425220
12
+ */
13
+ endTime?: number;
6
14
  /**
7
15
  * @remarks
8
16
  * Specifies whether to filter out zero values.
@@ -27,19 +35,31 @@ export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
27
35
  * 10
28
36
  */
29
37
  pageSize?: number;
38
+ /**
39
+ * @remarks
40
+ * The start time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates endTime based on the rule cycle.
41
+ *
42
+ * @example
43
+ * 1788338820
44
+ */
45
+ startTime?: number;
30
46
  static names(): { [key: string]: string } {
31
47
  return {
48
+ endTime: 'endTime',
32
49
  filterFailedRequests: 'filterFailedRequests',
33
50
  pageNumber: 'pageNumber',
34
51
  pageSize: 'pageSize',
52
+ startTime: 'startTime',
35
53
  };
36
54
  }
37
55
 
38
56
  static types(): { [key: string]: any } {
39
57
  return {
58
+ endTime: 'number',
40
59
  filterFailedRequests: 'boolean',
41
60
  pageNumber: 'number',
42
61
  pageSize: 'number',
62
+ startTime: 'number',
43
63
  };
44
64
  }
45
65