@alicloud/apig20240327 11.3.4 → 11.4.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 +34 -8
- package/dist/client.js +56 -8
- package/dist/client.js.map +1 -1
- package/dist/models/CreateMigrationTaskRequest.d.ts +2 -0
- package/dist/models/CreateMigrationTaskRequest.js.map +1 -1
- package/dist/models/GetDashboardRequest.d.ts +10 -6
- package/dist/models/GetDashboardRequest.js.map +1 -1
- package/dist/models/GetDashboardResponseBody.d.ts +2 -2
- package/dist/models/GetDashboardShrinkRequest.d.ts +10 -6
- package/dist/models/GetDashboardShrinkRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +3 -3
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +9 -9
- package/dist/models/GetGatewayResourceQuotaUsageRequest.d.ts +13 -0
- package/dist/models/GetGatewayResourceQuotaUsageRequest.js +54 -0
- package/dist/models/GetGatewayResourceQuotaUsageRequest.js.map +1 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponse.d.ts +19 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponse.js +69 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponse.js.map +1 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponseBody.d.ts +141 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponseBody.js +122 -0
- package/dist/models/GetGatewayResourceQuotaUsageResponseBody.js.map +1 -0
- package/dist/models/UpdateConsumerAuthorizationRuleResponseBody.d.ts +1 -1
- package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +7 -7
- package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +13 -13
- package/dist/models/UpdateHttpApiRequest.d.ts +10 -2
- package/dist/models/UpdateHttpApiRequest.js +2 -0
- package/dist/models/UpdateHttpApiRequest.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +28 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +59 -8
- package/src/models/CreateMigrationTaskRequest.ts +2 -0
- package/src/models/GetDashboardRequest.ts +10 -6
- package/src/models/GetDashboardResponseBody.ts +2 -2
- package/src/models/GetDashboardShrinkRequest.ts +10 -6
- package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +3 -3
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +9 -9
- package/src/models/GetGatewayResourceQuotaUsageRequest.ts +24 -0
- package/src/models/GetGatewayResourceQuotaUsageResponse.ts +40 -0
- package/src/models/GetGatewayResourceQuotaUsageResponseBody.ts +200 -0
- package/src/models/UpdateConsumerAuthorizationRuleResponseBody.ts +1 -1
- package/src/models/UpdateGatewayQuotaRuleRequest.ts +7 -7
- package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +13 -13
- package/src/models/UpdateHttpApiRequest.ts +12 -2
- package/src/models/model.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateMigrationTaskRequest.js","sourceRoot":"","sources":["../../src/models/CreateMigrationTaskRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateMigrationTaskRequest.js","sourceRoot":"","sources":["../../src/models/CreateMigrationTaskRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IA2CzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,cAAc;YAC5B,aAAa,EAAE,eAAe;YAC9B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,YAAY,EAAE,QAAQ;YACtB,aAAa,EAAE,QAAQ;YACvB,cAAc,EAAE,QAAQ;SACzB,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;AA5ED,gEA4EC"}
|
|
@@ -22,7 +22,7 @@ export declare class GetDashboardRequestFilter extends $dara.Model {
|
|
|
22
22
|
export declare class GetDashboardRequest extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The language. Valid values:
|
|
25
|
+
* The language of the response. Valid values:
|
|
26
26
|
*
|
|
27
27
|
* - zh: Chinese
|
|
28
28
|
* - en: English
|
|
@@ -46,10 +46,12 @@ export declare class GetDashboardRequest extends $dara.Model {
|
|
|
46
46
|
filter?: GetDashboardRequestFilter;
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The dashboard
|
|
49
|
+
* The name of the dashboard. Valid values:
|
|
50
50
|
*
|
|
51
|
-
* - LOG:
|
|
52
|
-
* - PLUGIN:
|
|
51
|
+
* - LOG: Access log.
|
|
52
|
+
* - PLUGIN: Plugin log.
|
|
53
|
+
*
|
|
54
|
+
* > Note: This parameter is required. If this parameter is not specified, the API returns InvalidParameter.IsEmpty (400).
|
|
53
55
|
*
|
|
54
56
|
* @example
|
|
55
57
|
* PLUGIN
|
|
@@ -81,9 +83,11 @@ export declare class GetDashboardRequest extends $dara.Model {
|
|
|
81
83
|
routeId?: string;
|
|
82
84
|
/**
|
|
83
85
|
* @remarks
|
|
84
|
-
* The dashboard
|
|
86
|
+
* The source of the dashboard. Valid values:
|
|
87
|
+
*
|
|
88
|
+
* - SLS: Log dashboard.
|
|
85
89
|
*
|
|
86
|
-
*
|
|
90
|
+
* > Note: This parameter is required. If this parameter is not specified, the API returns InvalidParameter.IsEmpty (400).
|
|
87
91
|
*
|
|
88
92
|
* @example
|
|
89
93
|
* SLS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetDashboardRequest.js","sourceRoot":"","sources":["../../src/models/GetDashboardRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IASxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,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;AA5BD,8DA4BC;AAED,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetDashboardRequest.js","sourceRoot":"","sources":["../../src/models/GetDashboardRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IASxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,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;AA5BD,8DA4BC;AAED,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAkFlD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,eAAe;YAC9B,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,iBAAiB;SACnC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,yBAAyB;YACjC,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,QAAQ;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,QAAQ;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxHD,kDAwHC"}
|
|
@@ -10,7 +10,7 @@ export declare class GetDashboardResponseBodyData extends $dara.Model {
|
|
|
10
10
|
gatewayId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The dashboard
|
|
13
|
+
* The name of the dashboard.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* PLUGIN
|
|
@@ -18,7 +18,7 @@ export declare class GetDashboardResponseBodyData extends $dara.Model {
|
|
|
18
18
|
name?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The dashboard
|
|
21
|
+
* The title of the dashboard.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* APIG Plugin
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class GetDashboardShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The language. Valid values:
|
|
5
|
+
* The language of the response. Valid values:
|
|
6
6
|
*
|
|
7
7
|
* - zh: Chinese
|
|
8
8
|
* - en: English
|
|
@@ -26,10 +26,12 @@ export declare class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
26
26
|
filterShrink?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* The dashboard
|
|
29
|
+
* The name of the dashboard. Valid values:
|
|
30
30
|
*
|
|
31
|
-
* - LOG:
|
|
32
|
-
* - PLUGIN:
|
|
31
|
+
* - LOG: Access log.
|
|
32
|
+
* - PLUGIN: Plugin log.
|
|
33
|
+
*
|
|
34
|
+
* > Note: This parameter is required. If this parameter is not specified, the API returns InvalidParameter.IsEmpty (400).
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
37
|
* PLUGIN
|
|
@@ -61,9 +63,11 @@ export declare class GetDashboardShrinkRequest extends $dara.Model {
|
|
|
61
63
|
routeId?: string;
|
|
62
64
|
/**
|
|
63
65
|
* @remarks
|
|
64
|
-
* The dashboard
|
|
66
|
+
* The source of the dashboard. Valid values:
|
|
67
|
+
*
|
|
68
|
+
* - SLS: Log dashboard.
|
|
65
69
|
*
|
|
66
|
-
*
|
|
70
|
+
* > Note: This parameter is required. If this parameter is not specified, the API returns InvalidParameter.IsEmpty (400).
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
73
|
* SLS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetDashboardShrinkRequest.js","sourceRoot":"","sources":["../../src/models/GetDashboardShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetDashboardShrinkRequest.js","sourceRoot":"","sources":["../../src/models/GetDashboardShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAkFxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,KAAK,EAAE,OAAO;YACd,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,MAAM;YACZ,aAAa,EAAE,eAAe;YAC9B,QAAQ,EAAE,UAAU;YACpB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,iBAAiB;SACnC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,KAAK,EAAE,QAAQ;YACf,YAAY,EAAE,QAAQ;YACtB,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,QAAQ;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,QAAQ;SAC1B,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;AArHD,8DAqHC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The end time for querying consumption record details
|
|
5
|
+
* The end time for querying consumption record details. Specify a UNIX timestamp in seconds. If only this parameter is specified, the system automatically calculates startTime based on the rule cycle.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* 1788425220
|
|
@@ -26,7 +26,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model
|
|
|
26
26
|
pageNumber?: number;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* The number of detailed consumption (request) records
|
|
29
|
+
* The number of entries per page for the detailed consumption (request) records of the subject within the cycle. Maximum value: 10.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* 10
|
|
@@ -34,7 +34,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model
|
|
|
34
34
|
pageSize?: number;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The start time for querying consumption record details
|
|
37
|
+
* The start time for querying consumption record details. Specify a UNIX timestamp in seconds. If only this parameter is specified, the system automatically calculates endTime based on the rule cycle.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* 1788338820
|
|
@@ -10,7 +10,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
10
10
|
cachedAmount?: number;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The exact value of cached consumption.
|
|
13
|
+
* The exact value of cached consumption. Decimals are supported in credit scenarios.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* 10.5
|
|
@@ -34,7 +34,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
34
34
|
inputAmount?: number;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The exact value of input consumption.
|
|
37
|
+
* The exact value of input consumption. Decimals are supported in credit scenarios.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* 120.5
|
|
@@ -58,7 +58,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
58
58
|
outputAmount?: number;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The exact value of output consumption.
|
|
61
|
+
* The exact value of output consumption. Decimals are supported in credit scenarios.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* 80.5
|
|
@@ -90,7 +90,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
90
90
|
usedAmount?: number;
|
|
91
91
|
/**
|
|
92
92
|
* @remarks
|
|
93
|
-
* The exact value of total consumption.
|
|
93
|
+
* The exact value of total consumption. Decimals are supported in credit scenarios.
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* 210.5
|
|
@@ -162,7 +162,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
162
162
|
cachedAmount?: number;
|
|
163
163
|
/**
|
|
164
164
|
* @remarks
|
|
165
|
-
* The exact value of total cached consumption.
|
|
165
|
+
* The exact value of total cached consumption. Decimals are supported in credit scenarios.
|
|
166
166
|
*
|
|
167
167
|
* @example
|
|
168
168
|
* 20.5
|
|
@@ -186,7 +186,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
186
186
|
inputAmount?: number;
|
|
187
187
|
/**
|
|
188
188
|
* @remarks
|
|
189
|
-
* The exact value of total input consumption.
|
|
189
|
+
* The exact value of total input consumption. Decimals are supported in credit scenarios.
|
|
190
190
|
*
|
|
191
191
|
* @example
|
|
192
192
|
* 300.5
|
|
@@ -202,7 +202,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
202
202
|
outputAmount?: number;
|
|
203
203
|
/**
|
|
204
204
|
* @remarks
|
|
205
|
-
* The exact value of total output consumption.
|
|
205
|
+
* The exact value of total output consumption. Decimals are supported in credit scenarios.
|
|
206
206
|
*
|
|
207
207
|
* @example
|
|
208
208
|
* 180.5
|
|
@@ -250,7 +250,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
250
250
|
usedAmount?: number;
|
|
251
251
|
/**
|
|
252
252
|
* @remarks
|
|
253
|
-
* The exact value of the total used amount of the subject.
|
|
253
|
+
* The exact value of the total used amount of the subject. Decimals are supported in credit scenarios.
|
|
254
254
|
*
|
|
255
255
|
* @example
|
|
256
256
|
* 500.5
|
|
@@ -294,7 +294,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBody extends $dara.M
|
|
|
294
294
|
message?: string;
|
|
295
295
|
/**
|
|
296
296
|
* @remarks
|
|
297
|
-
*
|
|
297
|
+
* The request ID.
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
300
|
* 1234567890
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class GetGatewayResourceQuotaUsageRequest extends $dara.Model {
|
|
3
|
+
static names(): {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
static types(): {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
validate(): void;
|
|
10
|
+
constructor(map?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GetGatewayResourceQuotaUsageRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class GetGatewayResourceQuotaUsageRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
static types() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
constructor(map) {
|
|
50
|
+
super(map);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.GetGatewayResourceQuotaUsageRequest = GetGatewayResourceQuotaUsageRequest;
|
|
54
|
+
//# sourceMappingURL=GetGatewayResourceQuotaUsageRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetGatewayResourceQuotaUsageRequest.js","sourceRoot":"","sources":["../../src/models/GetGatewayResourceQuotaUsageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAClE,MAAM,CAAC,KAAK;QACV,OAAO,EACN,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO,EACN,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;AAlBD,kFAkBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { GetGatewayResourceQuotaUsageResponseBody } from "./GetGatewayResourceQuotaUsageResponseBody";
|
|
3
|
+
export declare class GetGatewayResourceQuotaUsageResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: GetGatewayResourceQuotaUsageResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GetGatewayResourceQuotaUsageResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const GetGatewayResourceQuotaUsageResponseBody_1 = require("./GetGatewayResourceQuotaUsageResponseBody");
|
|
40
|
+
class GetGatewayResourceQuotaUsageResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: GetGatewayResourceQuotaUsageResponseBody_1.GetGatewayResourceQuotaUsageResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.GetGatewayResourceQuotaUsageResponse = GetGatewayResourceQuotaUsageResponse;
|
|
69
|
+
//# sourceMappingURL=GetGatewayResourceQuotaUsageResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetGatewayResourceQuotaUsageResponse.js","sourceRoot":"","sources":["../../src/models/GetGatewayResourceQuotaUsageResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yGAAsG;AAGtG,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IAInE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mFAAwC;SAC/C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,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;AAjCD,oFAiCC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class GetGatewayResourceQuotaUsageResponseBodyDataItems extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* true 时返回 used 和 limit;false 时省略二者。CustomPlugin 当前固定为 false,仅表示暂时隐藏配额展示,不影响插件上传、安装或既有配额校验。其他项按网关能力及有效额度判定,不能仅凭本字段推断写入操作是否允许。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
9
|
+
*/
|
|
10
|
+
applicable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* 当前生效的非负整数配额上限,单位与 used 相同,已考虑现有配置、加白及适用的购买额度。仅 applicable=true 时返回,包括合法零值;示例不是所有网关的固定上限。
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 800
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* GATEWAY 表示当前网关;ACCOUNT_GATEWAY_TYPE 表示当前账号、地域及网关类型的范围。仅 CustomPlugin 保留 ACCOUNT_GATEWAY_TYPE 标识;该项当前不读取或返回上限。
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* GATEWAY
|
|
25
|
+
*/
|
|
26
|
+
limitScope?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* 指标标识:Route(路由)、ConsumerAuthorizationRule(消费者授权规则)、McpServer(MCP Server)、Domain(域名)、Service(服务)、ConsumerQuotaRule(消费者配额规则)、K8sServiceSource(K8s 服务来源)、InstalledPlugin(已安装插件)、CustomPlugin(自定义插件)。
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Route
|
|
33
|
+
*/
|
|
34
|
+
quotaKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* 实际占用数量,为非负整数,单位与 quotaKey 对应。仅 applicable=true 时返回;零值为真实零用量,历史超额可大于 limit,不截断。
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 12
|
|
41
|
+
*/
|
|
42
|
+
used?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* GATEWAY 表示当前网关;ACCOUNT_REGION 表示当前账号在当前地域的共享范围。仅 CustomPlugin 保留 ACCOUNT_REGION 标识;该项当前不读取或返回用量。
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* GATEWAY
|
|
49
|
+
*/
|
|
50
|
+
usedScope?: string;
|
|
51
|
+
static names(): {
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
};
|
|
54
|
+
static types(): {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
};
|
|
57
|
+
validate(): void;
|
|
58
|
+
constructor(map?: {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
export declare class GetGatewayResourceQuotaUsageResponseBodyData extends $dara.Model {
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* 本次查询的目标网关唯一标识,与请求路径 gatewayId 一致。
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* gw-d5be0s9q5z6f1234567g
|
|
69
|
+
*/
|
|
70
|
+
gatewayId?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* 固定返回九项,每个 quotaKey 仅出现一次。不适用或暂不展示的项仍保留,applicable=false 且省略 used/limit。不返回剩余额度或百分比;示例数值不是固定默认上限。
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* [{"quotaKey":"Route","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":12,"limit":800},{"quotaKey":"ConsumerAuthorizationRule","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":20,"limit":1000},{"quotaKey":"McpServer","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":false},{"quotaKey":"Domain","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":2,"limit":100},{"quotaKey":"Service","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":5,"limit":800},{"quotaKey":"ConsumerQuotaRule","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":0,"limit":1000},{"quotaKey":"K8sServiceSource","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":1,"limit":3},{"quotaKey":"InstalledPlugin","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":2,"limit":5},{"quotaKey":"CustomPlugin","usedScope":"ACCOUNT_REGION","limitScope":"ACCOUNT_GATEWAY_TYPE","applicable":false}]
|
|
77
|
+
*/
|
|
78
|
+
items?: GetGatewayResourceQuotaUsageResponseBodyDataItems[];
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* 服务端完成本次统计的 UTC 时间,格式为 RFC 3339,可包含小数秒。各来源独立读取,不保证跨来源瞬时原子快照。
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* 2026-09-17T08:00:00Z
|
|
85
|
+
*/
|
|
86
|
+
observedAt?: string;
|
|
87
|
+
static names(): {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
static types(): {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
};
|
|
93
|
+
validate(): void;
|
|
94
|
+
constructor(map?: {
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export declare class GetGatewayResourceQuotaUsageResponseBody extends $dara.Model {
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* 业务响应码。成功时为 Ok;失败时为具体错误码,应结合 HTTP 状态码处理。
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* Ok
|
|
105
|
+
*/
|
|
106
|
+
code?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* 目标网关及其九项资源配额观测结果。示例数值只说明格式,实际有效上限以本次响应为准。
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* {"gatewayId":"gw-d5be0s9q5z6f1234567g","observedAt":"2026-09-17T08:00:00Z","items":[{"quotaKey":"Route","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":12,"limit":800},{"quotaKey":"ConsumerAuthorizationRule","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":20,"limit":1000},{"quotaKey":"McpServer","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":false},{"quotaKey":"Domain","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":2,"limit":100},{"quotaKey":"Service","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":5,"limit":800},{"quotaKey":"ConsumerQuotaRule","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":0,"limit":1000},{"quotaKey":"K8sServiceSource","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":1,"limit":3},{"quotaKey":"InstalledPlugin","usedScope":"GATEWAY","limitScope":"GATEWAY","applicable":true,"used":2,"limit":5},{"quotaKey":"CustomPlugin","usedScope":"ACCOUNT_REGION","limitScope":"ACCOUNT_GATEWAY_TYPE","applicable":false}]}
|
|
113
|
+
*/
|
|
114
|
+
data?: GetGatewayResourceQuotaUsageResponseBodyData;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* 失败时返回的错误说明,成功响应通常省略本字段。示例为错误信息,不是成功响应。
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* The specified gateway does not exist.
|
|
121
|
+
*/
|
|
122
|
+
message?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* 请求的唯一标识,用于排查问题。
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* D0A6A1A0-8793-4C10-AB1A-2C03E770A912
|
|
129
|
+
*/
|
|
130
|
+
requestId?: string;
|
|
131
|
+
static names(): {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
};
|
|
134
|
+
static types(): {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
};
|
|
137
|
+
validate(): void;
|
|
138
|
+
constructor(map?: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
});
|
|
141
|
+
}
|