@alicloud/apig20240327 11.2.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 +82 -58
- package/dist/client.js +121 -85
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +20 -14
- package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +14 -9
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/GetDashboardRequest.d.ts +5 -5
- package/dist/models/GetDashboardResponseBody.d.ts +2 -2
- package/dist/models/GetDashboardShrinkRequest.d.ts +5 -5
- package/dist/models/GetGatewayQuotaRuleRequest.d.ts +4 -4
- package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +4 -4
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +19 -3
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js +4 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +75 -5
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +18 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
- package/dist/models/HttpApiApiInfo.d.ts +1 -1
- package/dist/models/HttpApiApiInfoDeployCntMapValue.d.ts +1 -1
- package/dist/models/HttpRoute.d.ts +4 -1
- package/dist/models/HttpRoute.js.map +1 -1
- package/dist/models/ListConsumerGroupQuotaRulesRequest.d.ts +33 -0
- package/dist/models/ListConsumerGroupQuotaRulesRequest.js +64 -0
- package/dist/models/ListConsumerGroupQuotaRulesRequest.js.map +1 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.d.ts +19 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.js +69 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponse.js.map +1 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.d.ts +132 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js +134 -0
- package/dist/models/ListConsumerGroupQuotaRulesResponseBody.js.map +1 -0
- package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +9 -10
- package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
- package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +16 -16
- package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +8 -8
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +12 -12
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +26 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +129 -85
- package/src/models/AddGatewayQuotaRuleRequest.ts +20 -14
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +14 -9
- package/src/models/GetDashboardRequest.ts +5 -5
- package/src/models/GetDashboardResponseBody.ts +2 -2
- package/src/models/GetDashboardShrinkRequest.ts +5 -5
- package/src/models/GetGatewayQuotaRuleRequest.ts +4 -4
- package/src/models/GetGatewayQuotaRuleResponseBody.ts +4 -4
- package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +23 -3
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +93 -5
- package/src/models/HttpApiApiInfo.ts +1 -1
- package/src/models/HttpApiApiInfoDeployCntMapValue.ts +1 -1
- package/src/models/HttpRoute.ts +4 -1
- package/src/models/ListConsumerGroupQuotaRulesRequest.ts +52 -0
- package/src/models/ListConsumerGroupQuotaRulesResponse.ts +40 -0
- package/src/models/ListConsumerGroupQuotaRulesResponseBody.ts +203 -0
- package/src/models/ResetGatewayQuotaRuleRequest.ts +9 -10
- package/src/models/ResetGatewayQuotaRuleResponseBody.ts +16 -16
- package/src/models/UpdateGatewayQuotaRuleRequest.ts +8 -8
- package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +12 -12
- package/src/models/model.ts +5 -0
|
@@ -5,11 +5,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The conflict snapshot hash
|
|
8
|
+
* The conflict snapshot hash used to prevent concurrent dirty overwrites during confirmation. Obtain this value from the response of a previous dry run (dryRun=true).
|
|
9
9
|
*
|
|
10
|
-
* This parameter is not required in the following cases: no conflicts exist, the request is a dry run (dryRun=true), or overwrite
|
|
10
|
+
* This parameter is not required in the following cases: no conflicts exist, the request is a dry run (dryRun=true), or overwrite is set to false.
|
|
11
11
|
*
|
|
12
|
-
* When dryRun
|
|
12
|
+
* When dryRun is set to false and overwrite is set to true, if this parameter is not provided or the value has expired and no longer matches, the backend returns accepted=false with a new conflict preview. In this case, perform a new dry run to confirm the latest conflicts.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* f8f44dc6cf369a017d56b7197eb4fb5ac4bbb6b09a92b9b41999541fxxxxxxxx
|
|
@@ -17,7 +17,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
17
17
|
conflictHash?: string;
|
|
18
18
|
/**
|
|
19
19
|
* @remarks
|
|
20
|
-
* The list of consumer group IDs
|
|
20
|
+
* The list of API consumer group IDs to bind to the rule. This parameter is used when subjectType is set to consumer_group and cannot be specified together with consumerIds.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* group1,group2
|
|
@@ -25,7 +25,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
25
25
|
consumerGroupIds?: string[];
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The list of consumer IDs to bind to the rule. A maximum of
|
|
28
|
+
* The list of API consumer IDs to bind to the rule. A maximum of 1,000 consumers can be specified in a single request.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* 1001,1002,1003
|
|
@@ -33,7 +33,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
33
33
|
consumerIds?: string[];
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* Specifies whether to perform only a dry run without applying the configuration. A dry run checks whether conflicting rules exist on the bound
|
|
36
|
+
* Specifies whether to perform only a dry run without persisting or applying the configuration. A dry run checks whether conflicting rules exist on the bound consumer subjects. For example, a consumer subject that already has a calendar-day quota rule cannot have another calendar-day quota rule added.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* false
|
|
@@ -41,7 +41,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
41
41
|
dryRun?: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* @remarks
|
|
44
|
-
* Specifies whether to allow overwriting when conflicts exist. If overwriting is allowed, the conflicting subjects (consumers) are unbound from the old rule and bound to the new rule.
|
|
44
|
+
* Specifies whether to allow overwriting when conflicts exist. If overwriting is allowed, the conflicting subjects (consumers or consumer groups) are unbound from the old rule and bound to the new rule.
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* false
|
|
@@ -49,7 +49,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
49
49
|
overwrite?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* The period multiplier. This parameter
|
|
52
|
+
* The period multiplier, which specifies the number of periods after which the quota resets. This parameter is required for custom (epoch) period rules. Minimum value: 1. Maximum value: 60.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* 10
|
|
@@ -57,7 +57,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
57
57
|
periodMultiplier?: number;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The period type. For calendar periods,
|
|
60
|
+
* The period type. For calendar periods, the quota can be calculated by day, week, or month. Valid values: day, week, and month. For custom (epoch) periods, only day is supported.
|
|
61
61
|
*
|
|
62
62
|
* This parameter is required.
|
|
63
63
|
*
|
|
@@ -67,7 +67,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
67
67
|
periodType?: string;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* The quota dimension or throttling type. Valid values: token and credit.
|
|
70
|
+
* The quota dimension or throttling type. Valid values: token and credit.
|
|
71
71
|
*
|
|
72
72
|
* This parameter is required.
|
|
73
73
|
*
|
|
@@ -77,7 +77,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
77
77
|
quotaDimension?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The total available quota per period
|
|
80
|
+
* The total available quota per period.
|
|
81
81
|
*
|
|
82
82
|
* This parameter is required.
|
|
83
83
|
*
|
|
@@ -97,7 +97,11 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
97
97
|
ruleName?: string;
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The rule subject
|
|
100
|
+
* The type of the rule subject. Valid values:
|
|
101
|
+
* - consumer: API consumer.
|
|
102
|
+
* - consumer_group: API consumer group.
|
|
103
|
+
*
|
|
104
|
+
* Default value: consumer.
|
|
101
105
|
*
|
|
102
106
|
* @example
|
|
103
107
|
* consumer_group
|
|
@@ -105,7 +109,7 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
105
109
|
subjectType?: string;
|
|
106
110
|
/**
|
|
107
111
|
* @remarks
|
|
108
|
-
* The time zone for
|
|
112
|
+
* The time zone for calendar periods, in UTC+x format.
|
|
109
113
|
*
|
|
110
114
|
* @example
|
|
111
115
|
* UTC+8
|
|
@@ -113,7 +117,9 @@ export class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
113
117
|
timezone?: string;
|
|
114
118
|
/**
|
|
115
119
|
* @remarks
|
|
116
|
-
* The reset period type. Valid values:
|
|
120
|
+
* The reset period alignment type. Valid values:
|
|
121
|
+
* - calendar: The quota resets at the beginning of a calendar day, week, or month.
|
|
122
|
+
* - epoch: The quota resets based on a custom period that starts when the rule takes effect.
|
|
117
123
|
*
|
|
118
124
|
* @example
|
|
119
125
|
* calendar
|
|
@@ -5,7 +5,10 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The period type of the existing conflicting rule on the consumer.
|
|
8
|
+
* The period type of the existing conflicting rule on the consumer subject. Valid values:
|
|
9
|
+
* - day: The existing conflicting rule has a daily period.
|
|
10
|
+
* - week: The existing conflicting rule has a weekly period.
|
|
11
|
+
* - month: The existing conflicting rule has a monthly period.
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
11
14
|
* week
|
|
@@ -13,7 +16,9 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $da
|
|
|
13
16
|
conflictPeriodType?: string;
|
|
14
17
|
/**
|
|
15
18
|
* @remarks
|
|
16
|
-
* The type of the existing conflicting rule on the consumer
|
|
19
|
+
* The type of the existing conflicting rule on the consumer subject. Valid values:
|
|
20
|
+
* - calendar: The existing conflicting rule uses a calendar period.
|
|
21
|
+
* - epoch: The existing conflicting rule uses a custom period.
|
|
17
22
|
*
|
|
18
23
|
* @example
|
|
19
24
|
* calendar
|
|
@@ -21,7 +26,7 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $da
|
|
|
21
26
|
conflictType?: string;
|
|
22
27
|
/**
|
|
23
28
|
* @remarks
|
|
24
|
-
* The consumer ID.
|
|
29
|
+
* The conflicting consumer ID. You can use subjectId instead.
|
|
25
30
|
*
|
|
26
31
|
* @example
|
|
27
32
|
* cs-xxxxxx
|
|
@@ -29,7 +34,7 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $da
|
|
|
29
34
|
consumerId?: string;
|
|
30
35
|
/**
|
|
31
36
|
* @remarks
|
|
32
|
-
* The consumer name.
|
|
37
|
+
* The conflicting consumer name. You can use subjectName instead.
|
|
33
38
|
*
|
|
34
39
|
* @example
|
|
35
40
|
* consumer-a
|
|
@@ -95,7 +100,7 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $da
|
|
|
95
100
|
export class AddGatewayQuotaRuleResponseBodyDataConflictPreview extends $dara.Model {
|
|
96
101
|
/**
|
|
97
102
|
* @remarks
|
|
98
|
-
* The conflict hash.
|
|
103
|
+
* The conflict snapshot hash.
|
|
99
104
|
*
|
|
100
105
|
* @example
|
|
101
106
|
* f8f44dc6cf369a017d56b7197eb4fb5ac4bbb6b09a92b9b41999541fxxxxxxxx
|
|
@@ -103,7 +108,7 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreview extends $dara.Mo
|
|
|
103
108
|
conflictHash?: string;
|
|
104
109
|
/**
|
|
105
110
|
* @remarks
|
|
106
|
-
* The list of conflicting subjects (consumers).
|
|
111
|
+
* The list of conflicting subjects (consumers or consumer groups).
|
|
107
112
|
*/
|
|
108
113
|
items?: AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems[];
|
|
109
114
|
/**
|
|
@@ -145,7 +150,7 @@ export class AddGatewayQuotaRuleResponseBodyDataConflictPreview extends $dara.Mo
|
|
|
145
150
|
export class AddGatewayQuotaRuleResponseBodyData extends $dara.Model {
|
|
146
151
|
/**
|
|
147
152
|
* @remarks
|
|
148
|
-
* Indicates whether the write request is accepted by the system. A value of false typically indicates a retryable scenario such as an unconfirmed conflict overwrite.
|
|
153
|
+
* Indicates whether the write request is accepted by the system. A value of false typically indicates a retryable scenario, such as an unconfirmed conflict overwrite.
|
|
149
154
|
*
|
|
150
155
|
* @example
|
|
151
156
|
* true
|
|
@@ -221,7 +226,7 @@ export class AddGatewayQuotaRuleResponseBody extends $dara.Model {
|
|
|
221
226
|
data?: AddGatewayQuotaRuleResponseBodyData;
|
|
222
227
|
/**
|
|
223
228
|
* @remarks
|
|
224
|
-
* The message
|
|
229
|
+
* The response message.
|
|
225
230
|
*
|
|
226
231
|
* @example
|
|
227
232
|
* success
|
|
@@ -229,7 +234,7 @@ export class AddGatewayQuotaRuleResponseBody extends $dara.Model {
|
|
|
229
234
|
message?: string;
|
|
230
235
|
/**
|
|
231
236
|
* @remarks
|
|
232
|
-
* The
|
|
237
|
+
* The request ID.
|
|
233
238
|
*
|
|
234
239
|
* @example
|
|
235
240
|
* 1234567890
|
|
@@ -36,8 +36,8 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
38
|
* The language. Valid values:
|
|
39
|
-
* - zh: Chinese
|
|
40
|
-
* - en: English
|
|
39
|
+
* - zh: Chinese
|
|
40
|
+
* - en: English
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* zh
|
|
@@ -59,8 +59,8 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
61
|
* The dashboard name. Valid values:
|
|
62
|
-
* - LOG: access log
|
|
63
|
-
* - PLUGIN: plugin log
|
|
62
|
+
* - LOG: access log
|
|
63
|
+
* - PLUGIN: plugin log
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* PLUGIN
|
|
@@ -93,7 +93,7 @@ export class GetDashboardRequest extends $dara.Model {
|
|
|
93
93
|
/**
|
|
94
94
|
* @remarks
|
|
95
95
|
* The dashboard source. Valid values:
|
|
96
|
-
* - SLS: log dashboard
|
|
96
|
+
* - SLS: log dashboard
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
99
|
* SLS
|
|
@@ -81,7 +81,7 @@ export class GetDashboardResponseBody extends $dara.Model {
|
|
|
81
81
|
* The backend error code.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
|
-
*
|
|
84
|
+
* CloudProductInactive.LogDeliveryNotEnabled
|
|
85
85
|
*/
|
|
86
86
|
errorCode?: string;
|
|
87
87
|
/**
|
|
@@ -89,7 +89,7 @@ export class GetDashboardResponseBody extends $dara.Model {
|
|
|
89
89
|
* The error message.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
*
|
|
92
|
+
* SLS log delivery configuration is not enabled.
|
|
93
93
|
*/
|
|
94
94
|
message?: string;
|
|
95
95
|
/**
|
|
@@ -6,8 +6,8 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
8
|
* The language. Valid values:
|
|
9
|
-
* - zh: Chinese
|
|
10
|
-
* - en: English
|
|
9
|
+
* - zh: Chinese
|
|
10
|
+
* - en: English
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* zh
|
|
@@ -29,8 +29,8 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
31
|
* The dashboard name. Valid values:
|
|
32
|
-
* - LOG: access log
|
|
33
|
-
* - PLUGIN: plugin log
|
|
32
|
+
* - LOG: access log
|
|
33
|
+
* - PLUGIN: plugin log
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* PLUGIN
|
|
@@ -63,7 +63,7 @@ export class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
65
|
* The dashboard source. Valid values:
|
|
66
|
-
* - SLS: log dashboard
|
|
66
|
+
* - SLS: log dashboard
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* SLS
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetGatewayQuotaRuleRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The page number
|
|
8
|
+
* The page number.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 1
|
|
@@ -15,7 +15,7 @@ export class GetGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
15
15
|
consumerPageNumber?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The page size
|
|
18
|
+
* The page size.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* 10
|
|
@@ -25,12 +25,12 @@ export class GetGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
25
25
|
consumerPageSize?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* Specifies whether to return the consumer list.
|
|
28
|
+
* Specifies whether to return the API consumer list.
|
|
29
29
|
*/
|
|
30
30
|
withConsumers?: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* Specifies whether to return the general subject list. This parameter applies to both consumer and consumer group rules.
|
|
33
|
+
* Specifies whether to return the general subject list. This parameter applies to both API consumer and API consumer group rules.
|
|
34
34
|
*/
|
|
35
35
|
withSubjects?: boolean;
|
|
36
36
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetGatewayQuotaRuleResponseBodyDataConsumers extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The subject (consumer) ID.
|
|
8
|
+
* The subject (API consumer) ID.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* c-aaa
|
|
@@ -13,7 +13,7 @@ export class GetGatewayQuotaRuleResponseBodyDataConsumers extends $dara.Model {
|
|
|
13
13
|
id?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The subject (consumer) name.
|
|
16
|
+
* The subject (API consumer) name.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* consumer-a
|
|
@@ -103,7 +103,7 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
|
|
|
103
103
|
baseTimestamp?: number;
|
|
104
104
|
/**
|
|
105
105
|
* @remarks
|
|
106
|
-
* The number of consumers associated with the rule.
|
|
106
|
+
* The number of API consumers associated with the rule.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* 20
|
|
@@ -111,7 +111,7 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
|
|
|
111
111
|
consumerCount?: number;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The list of subjects (consumers) bound to this rule.
|
|
114
|
+
* The list of subjects (API consumers) bound to this rule.
|
|
115
115
|
*/
|
|
116
116
|
consumers?: GetGatewayQuotaRuleResponseBodyDataConsumers[];
|
|
117
117
|
/**
|
|
@@ -5,7 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
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;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies whether to filter out zero values.
|
|
9
17
|
*
|
|
10
18
|
* @example
|
|
11
19
|
* true
|
|
@@ -13,7 +21,7 @@ export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
|
13
21
|
filterFailedRequests?: boolean;
|
|
14
22
|
/**
|
|
15
23
|
* @remarks
|
|
16
|
-
* The page number of the detailed consumption (request) records of the
|
|
24
|
+
* The page number of the detailed consumption (request) records of the subject within the cycle.
|
|
17
25
|
*
|
|
18
26
|
* @example
|
|
19
27
|
* 1
|
|
@@ -21,25 +29,37 @@ export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
|
21
29
|
pageNumber?: number;
|
|
22
30
|
/**
|
|
23
31
|
* @remarks
|
|
24
|
-
* The number of detailed consumption (request) records per page for the
|
|
32
|
+
* The number of detailed consumption (request) records per page for the subject within the cycle. Maximum value: 10.
|
|
25
33
|
*
|
|
26
34
|
* @example
|
|
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
|
|
|
@@ -11,6 +11,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
11
11
|
* 10
|
|
12
12
|
*/
|
|
13
13
|
cachedAmount?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The exact value of cached consumption. Supports decimals in credit scenarios.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 10.5
|
|
20
|
+
*/
|
|
21
|
+
cachedAmountDecimal?: number;
|
|
14
22
|
/**
|
|
15
23
|
* @remarks
|
|
16
24
|
* The consumer name.
|
|
@@ -27,6 +35,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
27
35
|
* 120
|
|
28
36
|
*/
|
|
29
37
|
inputAmount?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The exact value of input consumption. Supports decimals in credit scenarios.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 120.5
|
|
44
|
+
*/
|
|
45
|
+
inputAmountDecimal?: number;
|
|
30
46
|
/**
|
|
31
47
|
* @remarks
|
|
32
48
|
* The model name.
|
|
@@ -43,6 +59,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
43
59
|
* 80
|
|
44
60
|
*/
|
|
45
61
|
outputAmount?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The exact value of output consumption. Supports decimals in credit scenarios.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 80.5
|
|
68
|
+
*/
|
|
69
|
+
outputAmountDecimal?: number;
|
|
46
70
|
/**
|
|
47
71
|
* @remarks
|
|
48
72
|
* The request ID.
|
|
@@ -67,29 +91,45 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
67
91
|
* 210
|
|
68
92
|
*/
|
|
69
93
|
usedAmount?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The exact value of total consumption. Supports decimals in credit scenarios.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* 210.5
|
|
100
|
+
*/
|
|
101
|
+
usedAmountDecimal?: number;
|
|
70
102
|
static names(): { [key: string]: string } {
|
|
71
103
|
return {
|
|
72
104
|
cachedAmount: 'cachedAmount',
|
|
105
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
73
106
|
consumer: 'consumer',
|
|
74
107
|
inputAmount: 'inputAmount',
|
|
108
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
75
109
|
model: 'model',
|
|
76
110
|
outputAmount: 'outputAmount',
|
|
111
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
77
112
|
requestId: 'requestId',
|
|
78
113
|
startTime: 'startTime',
|
|
79
114
|
usedAmount: 'usedAmount',
|
|
115
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
80
116
|
};
|
|
81
117
|
}
|
|
82
118
|
|
|
83
119
|
static types(): { [key: string]: any } {
|
|
84
120
|
return {
|
|
85
121
|
cachedAmount: 'number',
|
|
122
|
+
cachedAmountDecimal: 'number',
|
|
86
123
|
consumer: 'string',
|
|
87
124
|
inputAmount: 'number',
|
|
125
|
+
inputAmountDecimal: 'number',
|
|
88
126
|
model: 'string',
|
|
89
127
|
outputAmount: 'number',
|
|
128
|
+
outputAmountDecimal: 'number',
|
|
90
129
|
requestId: 'string',
|
|
91
130
|
startTime: 'string',
|
|
92
131
|
usedAmount: 'number',
|
|
132
|
+
usedAmountDecimal: 'number',
|
|
93
133
|
};
|
|
94
134
|
}
|
|
95
135
|
|
|
@@ -129,7 +169,7 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails extends $dar
|
|
|
129
169
|
pageSize?: number;
|
|
130
170
|
/**
|
|
131
171
|
* @remarks
|
|
132
|
-
* The total number of
|
|
172
|
+
* The total number of entries.
|
|
133
173
|
*
|
|
134
174
|
* @example
|
|
135
175
|
* 100
|
|
@@ -174,6 +214,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
174
214
|
* 20
|
|
175
215
|
*/
|
|
176
216
|
cachedAmount?: number;
|
|
217
|
+
/**
|
|
218
|
+
* @remarks
|
|
219
|
+
* The exact value of total cached consumption. Supports decimals in credit scenarios.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* 20.5
|
|
223
|
+
*/
|
|
224
|
+
cachedAmountDecimal?: number;
|
|
177
225
|
/**
|
|
178
226
|
* @remarks
|
|
179
227
|
* The paginated consumption details.
|
|
@@ -190,6 +238,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
190
238
|
* 300
|
|
191
239
|
*/
|
|
192
240
|
inputAmount?: number;
|
|
241
|
+
/**
|
|
242
|
+
* @remarks
|
|
243
|
+
* The exact value of total input consumption. Supports decimals in credit scenarios.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* 300.5
|
|
247
|
+
*/
|
|
248
|
+
inputAmountDecimal?: number;
|
|
193
249
|
/**
|
|
194
250
|
* @remarks
|
|
195
251
|
* The total output token consumption.
|
|
@@ -198,6 +254,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
198
254
|
* 180
|
|
199
255
|
*/
|
|
200
256
|
outputAmount?: number;
|
|
257
|
+
/**
|
|
258
|
+
* @remarks
|
|
259
|
+
* The exact value of total output consumption. Supports decimals in credit scenarios.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* 180.5
|
|
263
|
+
*/
|
|
264
|
+
outputAmountDecimal?: number;
|
|
201
265
|
/**
|
|
202
266
|
* @remarks
|
|
203
267
|
* Indicates whether the quota limit is exceeded.
|
|
@@ -208,9 +272,15 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
208
272
|
overLimit?: boolean;
|
|
209
273
|
/**
|
|
210
274
|
* @remarks
|
|
211
|
-
* The
|
|
212
|
-
*
|
|
213
|
-
*
|
|
275
|
+
* The quota dimension. Valid values: token and credit.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* token
|
|
279
|
+
*/
|
|
280
|
+
quotaDimension?: string;
|
|
281
|
+
/**
|
|
282
|
+
* @remarks
|
|
283
|
+
* The subject type. Valid values: consumer and consumer_group.
|
|
214
284
|
*
|
|
215
285
|
* @example
|
|
216
286
|
* consumer_group
|
|
@@ -226,35 +296,53 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
226
296
|
totalQuota?: number;
|
|
227
297
|
/**
|
|
228
298
|
* @remarks
|
|
229
|
-
* The total used
|
|
299
|
+
* The total used amount of the subject.
|
|
230
300
|
*
|
|
231
301
|
* @example
|
|
232
302
|
* 500
|
|
233
303
|
*/
|
|
234
304
|
usedAmount?: number;
|
|
305
|
+
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* The exact value of the total used amount of the subject. Supports decimals in credit scenarios.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* 500.5
|
|
311
|
+
*/
|
|
312
|
+
usedAmountDecimal?: number;
|
|
235
313
|
static names(): { [key: string]: string } {
|
|
236
314
|
return {
|
|
237
315
|
cachedAmount: 'cachedAmount',
|
|
316
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
238
317
|
details: 'details',
|
|
239
318
|
inputAmount: 'inputAmount',
|
|
319
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
240
320
|
outputAmount: 'outputAmount',
|
|
321
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
241
322
|
overLimit: 'overLimit',
|
|
323
|
+
quotaDimension: 'quotaDimension',
|
|
242
324
|
subjectType: 'subjectType',
|
|
243
325
|
totalQuota: 'totalQuota',
|
|
244
326
|
usedAmount: 'usedAmount',
|
|
327
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
245
328
|
};
|
|
246
329
|
}
|
|
247
330
|
|
|
248
331
|
static types(): { [key: string]: any } {
|
|
249
332
|
return {
|
|
250
333
|
cachedAmount: 'number',
|
|
334
|
+
cachedAmountDecimal: 'number',
|
|
251
335
|
details: GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails,
|
|
252
336
|
inputAmount: 'number',
|
|
337
|
+
inputAmountDecimal: 'number',
|
|
253
338
|
outputAmount: 'number',
|
|
339
|
+
outputAmountDecimal: 'number',
|
|
254
340
|
overLimit: 'boolean',
|
|
341
|
+
quotaDimension: 'string',
|
|
255
342
|
subjectType: 'string',
|
|
256
343
|
totalQuota: 'number',
|
|
257
344
|
usedAmount: 'number',
|
|
345
|
+
usedAmountDecimal: 'number',
|
|
258
346
|
};
|
|
259
347
|
}
|
|
260
348
|
|
|
@@ -501,7 +501,7 @@ export class HttpApiApiInfo extends $dara.Model {
|
|
|
501
501
|
basePath?: string;
|
|
502
502
|
/**
|
|
503
503
|
* @remarks
|
|
504
|
-
* The API operation
|
|
504
|
+
* The API operation deployment status.
|
|
505
505
|
*/
|
|
506
506
|
deployCntMap?: { [key: string]: HttpApiApiInfoDeployCntMapValue };
|
|
507
507
|
/**
|
package/src/models/HttpRoute.ts
CHANGED
|
@@ -56,6 +56,9 @@ export class HttpRouteDomainInfos extends $dara.Model {
|
|
|
56
56
|
|
|
57
57
|
export class HttpRouteEnvironmentInfoGatewayInfo extends $dara.Model {
|
|
58
58
|
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The gateway instance edition. Valid values: Professional, Serverless, MultiTenantServerless, and Unknown.
|
|
61
|
+
*
|
|
59
62
|
* @example
|
|
60
63
|
* MultiTenantServerless
|
|
61
64
|
*/
|
|
@@ -359,7 +362,7 @@ export class HttpRoute extends $dara.Model {
|
|
|
359
362
|
backend?: Backend;
|
|
360
363
|
/**
|
|
361
364
|
* @remarks
|
|
362
|
-
* Indicates whether the route is a built-in
|
|
365
|
+
* Indicates whether the route is a system built-in route.
|
|
363
366
|
*
|
|
364
367
|
* @example
|
|
365
368
|
* true
|