@alicloud/apig20240327 11.3.1 → 11.3.3
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 +24 -24
- package/dist/client.js +35 -24
- package/dist/client.js.map +1 -1
- package/dist/models/AddGatewayQuotaRuleRequest.d.ts +16 -16
- package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +6 -11
- package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
- package/dist/models/CreateConsumerRequest.d.ts +16 -4
- package/dist/models/CreateConsumerRequest.js +4 -0
- package/dist/models/CreateConsumerRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRequest.d.ts +28 -14
- package/dist/models/CreateHttpApiRequest.js.map +1 -1
- package/dist/models/CreateHttpApiRouteRequest.d.ts +8 -8
- package/dist/models/CreatePluginAttachmentRequest.d.ts +2 -2
- package/dist/models/CreatePolicyAttachmentRequest.d.ts +2 -2
- package/dist/models/CreatePolicyAttachmentResponseBody.d.ts +1 -1
- package/dist/models/CreatePolicyRequest.d.ts +21 -21
- package/dist/models/DeleteGatewayQuotaRuleResponseBody.d.ts +1 -1
- package/dist/models/DeleteHttpApiRequest.d.ts +9 -1
- package/dist/models/DeleteHttpApiRequest.js +2 -0
- package/dist/models/DeleteHttpApiRequest.js.map +1 -1
- package/dist/models/DeployHttpApiRequest.d.ts +11 -11
- package/dist/models/GetDashboardRequest.d.ts +6 -6
- package/dist/models/GetDashboardResponseBody.d.ts +1 -1
- package/dist/models/GetDashboardShrinkRequest.d.ts +6 -6
- package/dist/models/GetHttpApiOperationResponseBody.d.ts +1 -1
- package/dist/models/GetHttpApiRequest.d.ts +1 -1
- package/dist/models/HttpApiDeployConfig.d.ts +25 -9
- package/dist/models/HttpApiDeployConfig.js +7 -0
- package/dist/models/HttpApiDeployConfig.js.map +1 -1
- package/dist/models/ImportHttpApiRequest.d.ts +14 -9
- package/dist/models/ImportHttpApiRequest.js.map +1 -1
- package/dist/models/ImportHttpApiResponseBody.d.ts +12 -8
- package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
- package/dist/models/ListConsumerAuthorizationRulesRequest.d.ts +1 -1
- package/dist/models/ListConsumerAuthorizationRulesResponseBody.d.ts +2 -4
- package/dist/models/ListConsumerAuthorizationRulesResponseBody.js.map +1 -1
- package/dist/models/ListHttpApiOperationsRequest.d.ts +10 -10
- package/dist/models/ListHttpApiOperationsResponseBody.d.ts +3 -3
- package/dist/models/ListPluginAttachmentsRequest.d.ts +4 -4
- package/dist/models/ListPluginAttachmentsResponseBody.d.ts +7 -7
- package/dist/models/UpdatePluginAttachmentRequest.d.ts +2 -2
- package/package.json +1 -1
- package/src/client.ts +38 -24
- package/src/models/AddGatewayQuotaRuleRequest.ts +16 -16
- package/src/models/AddGatewayQuotaRuleResponseBody.ts +6 -11
- package/src/models/CreateConsumerRequest.ts +20 -4
- package/src/models/CreateHttpApiRequest.ts +28 -14
- package/src/models/CreateHttpApiRouteRequest.ts +8 -8
- package/src/models/CreatePluginAttachmentRequest.ts +2 -2
- package/src/models/CreatePolicyAttachmentRequest.ts +2 -2
- package/src/models/CreatePolicyAttachmentResponseBody.ts +1 -1
- package/src/models/CreatePolicyRequest.ts +21 -21
- package/src/models/DeleteGatewayQuotaRuleResponseBody.ts +1 -1
- package/src/models/DeleteHttpApiRequest.ts +11 -1
- package/src/models/DeployHttpApiRequest.ts +11 -11
- package/src/models/GetDashboardRequest.ts +6 -6
- package/src/models/GetDashboardResponseBody.ts +1 -1
- package/src/models/GetDashboardShrinkRequest.ts +6 -6
- package/src/models/GetHttpApiOperationResponseBody.ts +1 -1
- package/src/models/GetHttpApiRequest.ts +1 -1
- package/src/models/HttpApiDeployConfig.ts +32 -9
- package/src/models/ImportHttpApiRequest.ts +14 -9
- package/src/models/ImportHttpApiResponseBody.ts +12 -8
- package/src/models/ListConsumerAuthorizationRulesRequest.ts +1 -1
- package/src/models/ListConsumerAuthorizationRulesResponseBody.ts +2 -4
- package/src/models/ListHttpApiOperationsRequest.ts +10 -10
- package/src/models/ListHttpApiOperationsResponseBody.ts +3 -3
- package/src/models/ListPluginAttachmentsRequest.ts +4 -4
- package/src/models/ListPluginAttachmentsResponseBody.ts +7 -7
- package/src/models/UpdatePluginAttachmentRequest.ts +2 -2
|
@@ -2,11 +2,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The conflict snapshot hash used to prevent concurrent dirty overwrites during confirmation.
|
|
5
|
+
* The conflict snapshot hash, used to prevent concurrent dirty overwrites during confirmation. Retrieve this value from the response of a previous dry run (dryRun=true).
|
|
6
6
|
*
|
|
7
7
|
* 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.
|
|
8
8
|
*
|
|
9
|
-
* 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.
|
|
9
|
+
* 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. Perform a new dry run to confirm the updated conflicts.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* f8f44dc6cf369a017d56b7197eb4fb5ac4bbb6b09a92b9b41999541fxxxxxxxx
|
|
@@ -14,7 +14,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
14
14
|
conflictHash?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The list of
|
|
17
|
+
* The list of consumer group IDs to bind to the rule. Specify this parameter when subjectType is set to consumer_group. This parameter cannot be specified together with consumerIds.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* group1,group2
|
|
@@ -22,7 +22,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
22
22
|
consumerGroupIds?: string[];
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The list of
|
|
25
|
+
* The list of consumer IDs to bind to the rule. A maximum of 1,000 consumers can be specified in a single request.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* 1001,1002,1003
|
|
@@ -30,7 +30,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
30
30
|
consumerIds?: string[];
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* Specifies whether to perform only a dry run without
|
|
33
|
+
* Specifies whether to perform only a dry run without 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 cannot have another calendar-day quota rule added.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* false
|
|
@@ -38,7 +38,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
38
38
|
dryRun?: boolean;
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
* Specifies whether to allow overwriting
|
|
41
|
+
* Specifies whether to allow overwriting on conflict. If overwriting is allowed, the conflicting subjects (consumers or consumer groups) are unbound from the old rule and bound to the new rule.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* false
|
|
@@ -46,7 +46,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
46
46
|
overwrite?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The period multiplier, which specifies the number of periods after which the quota resets. This parameter is required for custom
|
|
49
|
+
* The period multiplier, which specifies the number of periods after which the quota resets. This parameter is required for custom period rules. Minimum value: 1. Maximum value: 60.
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* 10
|
|
@@ -54,7 +54,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
54
54
|
periodMultiplier?: number;
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
* The period type. For calendar periods, the
|
|
57
|
+
* The period type. For calendar periods, the value can be day, week, or month. For custom periods, only day is supported.
|
|
58
58
|
*
|
|
59
59
|
* This parameter is required.
|
|
60
60
|
*
|
|
@@ -94,11 +94,10 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
94
94
|
ruleName?: string;
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
* The type of the rule
|
|
98
|
-
* - consumer: API consumer.
|
|
99
|
-
* - consumer_group: API consumer group.
|
|
97
|
+
* The subject type of the rule. Valid values:
|
|
100
98
|
*
|
|
101
|
-
*
|
|
99
|
+
* - consumer: API consumer. This is the default value.
|
|
100
|
+
* - consumer_group: API consumer group.
|
|
102
101
|
*
|
|
103
102
|
* @example
|
|
104
103
|
* consumer_group
|
|
@@ -106,7 +105,7 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
106
105
|
subjectType?: string;
|
|
107
106
|
/**
|
|
108
107
|
* @remarks
|
|
109
|
-
* The time zone for calendar
|
|
108
|
+
* The time zone for the calendar period, in UTC+x format.
|
|
110
109
|
*
|
|
111
110
|
* @example
|
|
112
111
|
* UTC+8
|
|
@@ -114,9 +113,10 @@ export declare class AddGatewayQuotaRuleRequest extends $dara.Model {
|
|
|
114
113
|
timezone?: string;
|
|
115
114
|
/**
|
|
116
115
|
* @remarks
|
|
117
|
-
* The reset period
|
|
118
|
-
*
|
|
119
|
-
* -
|
|
116
|
+
* The reset period type. Valid values:
|
|
117
|
+
*
|
|
118
|
+
* - calendar: calendar period. The period starts from the beginning of a calendar day, week, or month.
|
|
119
|
+
* - epoch: custom period. The period starts from the time the rule is applied.
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
122
|
* calendar
|
|
@@ -2,10 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The period type of the existing conflicting rule on the consumer subject.
|
|
6
|
-
* - day: The existing conflicting rule has a daily period.
|
|
7
|
-
* - week: The existing conflicting rule has a weekly period.
|
|
8
|
-
* - month: The existing conflicting rule has a monthly period.
|
|
5
|
+
* The period type of the existing conflicting rule on the consumer subject. A value of day, week, or month indicates that the period of the existing conflicting rule is day, week, or month respectively.
|
|
9
6
|
*
|
|
10
7
|
* @example
|
|
11
8
|
* week
|
|
@@ -13,9 +10,7 @@ export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems ext
|
|
|
13
10
|
conflictPeriodType?: string;
|
|
14
11
|
/**
|
|
15
12
|
* @remarks
|
|
16
|
-
* The type of the existing conflicting rule on the consumer subject.
|
|
17
|
-
* - calendar: The existing conflicting rule uses a calendar period.
|
|
18
|
-
* - epoch: The existing conflicting rule uses a custom period.
|
|
13
|
+
* The type of the existing conflicting rule on the consumer subject. A value of calendar indicates that the existing conflicting rule uses a calendar period. A value of epoch indicates that the existing conflicting rule uses a custom period.
|
|
19
14
|
*
|
|
20
15
|
* @example
|
|
21
16
|
* calendar
|
|
@@ -23,7 +18,7 @@ export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems ext
|
|
|
23
18
|
conflictType?: string;
|
|
24
19
|
/**
|
|
25
20
|
* @remarks
|
|
26
|
-
* The conflicting consumer ID.
|
|
21
|
+
* The conflicting consumer ID. Use subjectId instead.
|
|
27
22
|
*
|
|
28
23
|
* @example
|
|
29
24
|
* cs-xxxxxx
|
|
@@ -31,7 +26,7 @@ export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems ext
|
|
|
31
26
|
consumerId?: string;
|
|
32
27
|
/**
|
|
33
28
|
* @remarks
|
|
34
|
-
* The conflicting consumer name.
|
|
29
|
+
* The conflicting consumer name. Use subjectName instead.
|
|
35
30
|
*
|
|
36
31
|
* @example
|
|
37
32
|
* consumer-a
|
|
@@ -75,7 +70,7 @@ export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreviewItems ext
|
|
|
75
70
|
export declare class AddGatewayQuotaRuleResponseBodyDataConflictPreview extends $dara.Model {
|
|
76
71
|
/**
|
|
77
72
|
* @remarks
|
|
78
|
-
* The conflict
|
|
73
|
+
* The conflict hash.
|
|
79
74
|
*
|
|
80
75
|
* @example
|
|
81
76
|
* f8f44dc6cf369a017d56b7197eb4fb5ac4bbb6b09a92b9b41999541fxxxxxxxx
|
|
@@ -165,7 +160,7 @@ export declare class AddGatewayQuotaRuleResponseBody extends $dara.Model {
|
|
|
165
160
|
data?: AddGatewayQuotaRuleResponseBodyData;
|
|
166
161
|
/**
|
|
167
162
|
* @remarks
|
|
168
|
-
* The
|
|
163
|
+
* The message content.
|
|
169
164
|
*
|
|
170
165
|
* @example
|
|
171
166
|
* success
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddGatewayQuotaRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/AddGatewayQuotaRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uDAAwD,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"AddGatewayQuotaRuleResponseBody.js","sourceRoot":"","sources":["../../src/models/AddGatewayQuotaRuleResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uDAAwD,SAAQ,KAAK,CAAC,KAAK;IAyDtF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,EAAE,oBAAoB;YACxC,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,SAAS,EAAE,WAAW;YACtB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,kBAAkB,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12
12
|
* @remarks
|
|
13
|
-
* The API key authentication
|
|
13
|
+
* The identity configuration for API key authentication.
|
|
14
14
|
*/
|
|
15
15
|
apikeyIdentityConfig?: ApiKeyIdentityConfig;
|
|
16
16
|
/**
|
|
@@ -32,9 +32,8 @@ export declare class CreateConsumerRequest extends $dara.Model {
|
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
34
|
* The gateway type. Valid values:
|
|
35
|
-
*
|
|
36
|
-
* -
|
|
37
|
-
* - AI: a consumer of an AI gateway.
|
|
35
|
+
* - API: a consumer for Cloud-Native API Gateway.
|
|
36
|
+
* - AI: a consumer for AI Gateway.
|
|
38
37
|
*
|
|
39
38
|
* @example
|
|
40
39
|
* API
|
|
@@ -53,6 +52,19 @@ export declare class CreateConsumerRequest extends $dara.Model {
|
|
|
53
52
|
* test
|
|
54
53
|
*/
|
|
55
54
|
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The idempotency token generated by the caller as a globally unique value (UUID recommended), with a maximum length of 64 characters. Within approximately 24 hours after the first successful request, a duplicate request that carries the same ClientToken and identical request parameters directly returns the consumerId from the first creation without creating a new consumer. A request that carries the same ClientToken but different request parameters returns IdempotentParameterMismatch. If the first request is still being processed, IdempotentProcessing is returned. If this parameter is not specified, idempotency control is disabled and the behavior is consistent with earlier versions.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* 5f7a2c1e-9b3d-4e8f-a1c6-0d2b8e4f7a13
|
|
61
|
+
*/
|
|
62
|
+
clientToken?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* Specifies whether to perform only a dry run. If this parameter is set to true, the system performs the same parameter, permission, IAM, resource policy, resource existence, and business rule validations as a real creation request, but does not create the consumer, write to the database, create or delete SecretRef, or produce other side effects such as audit logs. If this parameter is not specified or is set to false, the behavior is consistent with earlier versions.
|
|
66
|
+
*/
|
|
67
|
+
dryRun?: boolean;
|
|
56
68
|
static names(): {
|
|
57
69
|
[key: string]: string;
|
|
58
70
|
};
|
|
@@ -49,6 +49,8 @@ class CreateConsumerRequest extends $dara.Model {
|
|
|
49
49
|
gatewayType: 'gatewayType',
|
|
50
50
|
jwtIdentityConfig: 'jwtIdentityConfig',
|
|
51
51
|
name: 'name',
|
|
52
|
+
clientToken: 'clientToken',
|
|
53
|
+
dryRun: 'dryRun',
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
static types() {
|
|
@@ -60,6 +62,8 @@ class CreateConsumerRequest extends $dara.Model {
|
|
|
60
62
|
gatewayType: 'string',
|
|
61
63
|
jwtIdentityConfig: JwtIdentityConfig_1.JwtIdentityConfig,
|
|
62
64
|
name: 'string',
|
|
65
|
+
clientToken: 'string',
|
|
66
|
+
dryRun: 'boolean',
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateConsumerRequest.js","sourceRoot":"","sources":["../../src/models/CreateConsumerRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6DAA0D;AAC1D,iEAA8D;AAC9D,2DAAwD;AAGxD,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateConsumerRequest.js","sourceRoot":"","sources":["../../src/models/CreateConsumerRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6DAA0D;AAC1D,iEAA8D;AAC9D,2DAAwD;AAGxD,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IA+DpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,mBAAmB,EAAE,qBAAqB;YAC1C,oBAAoB,EAAE,sBAAsB;YAC5C,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,WAA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|
23
23
|
* @remarks
|
|
24
|
-
* The Ingress
|
|
24
|
+
* The Ingress class to listen on.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* mse
|
|
@@ -29,7 +29,7 @@ export declare class CreateHttpApiRequestIngressConfig extends $dara.Model {
|
|
|
29
29
|
ingressClass?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* Specifies whether to update the address in the Ingress
|
|
32
|
+
* Specifies whether to update the address in the Ingress status.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* false
|
|
@@ -67,22 +67,22 @@ export declare class CreateHttpApiRequestIngressConfig extends $dara.Model {
|
|
|
67
67
|
export declare class CreateHttpApiRequest extends $dara.Model {
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* The list of protocols supported by the agent. Required when type is Agent.
|
|
70
|
+
* The list of protocols supported by the agent. Required when type is Agent. This field is not required for other types.
|
|
71
71
|
*/
|
|
72
72
|
agentProtocols?: string[];
|
|
73
73
|
/**
|
|
74
74
|
* @remarks
|
|
75
|
-
* The list of AI API protocols. Required when type is LLM
|
|
75
|
+
* The list of AI API protocols. Required when type is LLM (only one protocol allowed) or Ai (multiple protocols allowed). Not required for other types. Example protocol: OpenAI/v1.
|
|
76
76
|
*/
|
|
77
77
|
aiProtocols?: string[];
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The authentication configuration. Required when enableAuth
|
|
80
|
+
* The authentication configuration. Required when enableAuth is set to true.
|
|
81
81
|
*/
|
|
82
82
|
authConfig?: AuthConfig;
|
|
83
83
|
/**
|
|
84
84
|
* @remarks
|
|
85
|
-
* The
|
|
85
|
+
* The base path of the API. Must start with a forward slash (/), cannot exceed 256 bytes in length, and cannot contain spaces. Required when type is Rest. Optional when type is LLM, Ai, or Agent. Defaults to /.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* /v1
|
|
@@ -98,7 +98,7 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
98
98
|
belongGatewayId?: string;
|
|
99
99
|
/**
|
|
100
100
|
* @remarks
|
|
101
|
-
* The list of deployment configurations for the HTTP API. Required when type is LLM or Ai
|
|
101
|
+
* The list of deployment configurations for the HTTP API. Required when type is LLM or Ai (only one deployment configuration allowed). Not validated at the request level for other types.
|
|
102
102
|
*/
|
|
103
103
|
deployConfigs?: HttpApiDeployConfig[];
|
|
104
104
|
/**
|
|
@@ -111,7 +111,7 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
111
111
|
description?: string;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* Specifies whether to
|
|
114
|
+
* Specifies whether to preview only without executing.
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* true
|
|
@@ -129,7 +129,7 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
129
129
|
enableAuth?: boolean;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The timeout period for waiting for the
|
|
132
|
+
* The timeout period for waiting for the backend to return the first byte.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* 30
|
|
@@ -137,12 +137,20 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
137
137
|
firstByteTimeout?: number;
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* The HTTP Ingress API configuration. Required when type is HttpIngress and cannot be
|
|
140
|
+
* The HTTP Ingress API configuration. Required when type is HttpIngress and cannot be null. Not required for other types.
|
|
141
141
|
*/
|
|
142
142
|
ingressConfig?: CreateHttpApiRequestIngressConfig;
|
|
143
143
|
/**
|
|
144
144
|
* @remarks
|
|
145
|
-
* The AI model category. Optional when type is LLM or Ai. Not required for other types. Valid values:
|
|
145
|
+
* The AI model category. Optional when type is LLM or Ai. Not required for other types. Valid values:
|
|
146
|
+
* - Text: text generation.
|
|
147
|
+
* - Image: image generation.
|
|
148
|
+
* - Audio: audio processing.
|
|
149
|
+
* - Video: video generation.
|
|
150
|
+
* - MultiModal: multimodal.
|
|
151
|
+
* - Embedding: vector embedding.
|
|
152
|
+
* - Rerank: reranking.
|
|
153
|
+
* - Others: others.
|
|
146
154
|
*
|
|
147
155
|
* @example
|
|
148
156
|
* Text
|
|
@@ -150,7 +158,7 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
150
158
|
modelCategory?: string;
|
|
151
159
|
/**
|
|
152
160
|
* @remarks
|
|
153
|
-
* The name of the HTTP API, used to identify the current API resource.
|
|
161
|
+
* The name of the HTTP API, used to identify the current API resource. For example, test-api.
|
|
154
162
|
*
|
|
155
163
|
* This parameter is required.
|
|
156
164
|
*
|
|
@@ -181,7 +189,7 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
181
189
|
resourceGroupId?: string;
|
|
182
190
|
/**
|
|
183
191
|
* @remarks
|
|
184
|
-
* The conflict
|
|
192
|
+
* The conflict resolution strategy for imports.
|
|
185
193
|
*
|
|
186
194
|
* @example
|
|
187
195
|
* ExistFirst
|
|
@@ -189,7 +197,13 @@ export declare class CreateHttpApiRequest extends $dara.Model {
|
|
|
189
197
|
strategy?: string;
|
|
190
198
|
/**
|
|
191
199
|
* @remarks
|
|
192
|
-
* The HTTP API type. Valid values:
|
|
200
|
+
* The HTTP API type. Valid values:
|
|
201
|
+
* - Http: a standard HTTP API.
|
|
202
|
+
* - Rest: a RESTful API.
|
|
203
|
+
* - WebSocket: a WebSocket API.
|
|
204
|
+
* - HttpIngress: an HTTP API accessed through Ingress.
|
|
205
|
+
* - LLM: a large language model API.
|
|
206
|
+
* - Agent: an Agent proxy API.
|
|
193
207
|
*
|
|
194
208
|
* This parameter is required.
|
|
195
209
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateHttpApiRequest.js","sourceRoot":"","sources":["../../src/models/CreateHttpApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAA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AAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,IAAI,CAAC,aAAa,IAAI,OAAQ,IAAI,CAAC,aAAqB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnF,IAAI,CAAC,aAAqB,CAAC,QAAQ,EAAE,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApOD,oDAoOC"}
|
|
@@ -6,7 +6,7 @@ import { HttpDubboTranscoder } from "./HttpDubboTranscoder";
|
|
|
6
6
|
export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dara.Model {
|
|
7
7
|
/**
|
|
8
8
|
* @remarks
|
|
9
|
-
* The service group. Used in
|
|
9
|
+
* The service group. Used in HTTP-to-Dubbo transcoding scenarios.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* DEFAULT_GROUP
|
|
@@ -14,7 +14,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
14
14
|
groupName?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The HTTP-to-Dubbo protocol
|
|
17
|
+
* The HTTP-to-Dubbo protocol transcoding configuration. Only supported for SingleService MSE_NACOS DUBBO backends of HTTP APIs.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* {"dubboServiceName":"com.alibaba.nacos.example.dubbo.service.DemoService","dubboServiceVersion":"1.0.0","dubboServiceGroup":"DEV","methodMapList":[{"dubboMethodName":"sayName","httpMethod":"ALL_GET","methodPath":"/dubbo/sayName","passThroughAllHeaders":"PASS_ALL"}]}
|
|
@@ -22,7 +22,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
22
22
|
httpDubboTranscoder?: HttpDubboTranscoder;
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The target model name. This field is shared by multiple model backend scenarios. The specific routing or model rewrite semantics are determined by backendConfig.scene. This field is required for the SemanticRouter scenario. If not specified
|
|
25
|
+
* The target model name. This field is shared by multiple existing model backend scenarios. The specific routing or model rewrite semantics are determined by backendConfig.scene. This field is required for the SemanticRouter scenario. If this field is not specified for the AiAutoRouter scenario, the default model of the AI service is used.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* qwen-plus
|
|
@@ -30,7 +30,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
30
30
|
modelName?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The service namespace. Used in
|
|
33
|
+
* The service namespace. Used in HTTP-to-Dubbo transcoding scenarios.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* public
|
|
@@ -64,7 +64,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
64
64
|
serviceId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* The service source type. Used in
|
|
67
|
+
* The service source type. Used in HTTP-to-Dubbo transcoding scenarios.
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* MSE_NACOS
|
|
@@ -72,7 +72,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
72
72
|
sourceType?: string;
|
|
73
73
|
/**
|
|
74
74
|
* @remarks
|
|
75
|
-
* The service version. This parameter
|
|
75
|
+
* The service version. This parameter takes effect only in the tag-based scenario.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
* v1
|
|
@@ -80,7 +80,7 @@ export declare class CreateHttpApiRouteRequestBackendConfigServices extends $dar
|
|
|
80
80
|
version?: string;
|
|
81
81
|
/**
|
|
82
82
|
* @remarks
|
|
83
|
-
* The traffic ratio
|
|
83
|
+
* The percentage value of the traffic ratio.
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
86
|
* 49
|
|
@@ -201,7 +201,7 @@ export declare class CreateHttpApiRouteRequest extends $dara.Model {
|
|
|
201
201
|
environmentId?: string;
|
|
202
202
|
/**
|
|
203
203
|
* @remarks
|
|
204
|
-
* The route match
|
|
204
|
+
* The route match rules.
|
|
205
205
|
*/
|
|
206
206
|
match?: HttpRouteMatch;
|
|
207
207
|
/**
|
|
@@ -7,7 +7,7 @@ export declare class CreatePluginAttachmentRequest extends $dara.Model {
|
|
|
7
7
|
attachResourceIds?: string[];
|
|
8
8
|
/**
|
|
9
9
|
* @remarks
|
|
10
|
-
* The resource type to which the plug-in is mounted. Valid values: GatewayRoute, Gateway, GatewayDomain, HttpApi,
|
|
10
|
+
* The resource type to which the plug-in is mounted. Valid values: GatewayRoute, Gateway, GatewayDomain, HttpApi, Operation.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* HttpApi
|
|
@@ -39,7 +39,7 @@ export declare class CreatePluginAttachmentRequest extends $dara.Model {
|
|
|
39
39
|
gatewayId?: string;
|
|
40
40
|
/**
|
|
41
41
|
* @remarks
|
|
42
|
-
* The Base64-encoded content of the
|
|
42
|
+
* The Base64-encoded content of the plug-in configuration.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* cHJlcGVuZDoKLSByb2xlOiBzeXN0ZW0KICBjb250ZW50OiDor7fkvb/nlKjoi7Hor63lm57nrZTpl67popgKYXBwZW5kOgotIHJvbGU6IHVzZXIKICBjb250ZW50OiDmr4/mrKHlm57nrZTlrozpl67popjvvIzlsJ3or5Xov5vooYzlj43pl64K
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreatePolicyAttachmentRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The ID of the resource to
|
|
5
|
+
* The ID of the resource to mount.
|
|
6
6
|
*
|
|
7
7
|
* This parameter is required.
|
|
8
8
|
*
|
|
@@ -12,7 +12,7 @@ export declare class CreatePolicyAttachmentRequest extends $dara.Model {
|
|
|
12
12
|
attachResourceId?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The type of the resource to
|
|
15
|
+
* The type of the resource to mount. Valid values: HttpApi, GatewayRoute, Operation, GatewayService, GatewayServicePort, Gateway, Domain.
|
|
16
16
|
*
|
|
17
17
|
* This parameter is required.
|
|
18
18
|
*
|
|
@@ -4,36 +4,36 @@ export declare class CreatePolicyRequest extends $dara.Model {
|
|
|
4
4
|
* @remarks
|
|
5
5
|
* The policy type. Valid values:
|
|
6
6
|
*
|
|
7
|
-
* - RateLimit:
|
|
8
|
-
* - ConcurrencyLimit:
|
|
9
|
-
* - CircuitBreaker:
|
|
7
|
+
* - RateLimit: Rate limiting. Limits the request rate.
|
|
8
|
+
* - ConcurrencyLimit: Concurrency limiting. Limits the number of concurrent requests.
|
|
9
|
+
* - CircuitBreaker: Circuit breaker. Automatically triggers circuit breaking when backend exceptions occur.
|
|
10
10
|
* - HttpRewrite: HTTP rewrite. Rewrites the request URL or path.
|
|
11
|
-
* - HeaderModify:
|
|
11
|
+
* - HeaderModify: Header modification. Adds, removes, or modifies HTTP request headers.
|
|
12
12
|
* - Cors: Cross-Origin Resource Sharing (CORS). Controls cross-origin requests.
|
|
13
|
-
* - Authentication:
|
|
14
|
-
* - FlowCopy:
|
|
15
|
-
* - Timeout:
|
|
16
|
-
* - Retry:
|
|
17
|
-
* - IpAccessControl: IP access control. Filters requests based on IP whitelists and blacklists.
|
|
18
|
-
* - DirectResponse:
|
|
19
|
-
* - Redirect:
|
|
20
|
-
* - Fallback:
|
|
21
|
-
* - ServiceTls:
|
|
22
|
-
* - ServiceLb:
|
|
23
|
-
* - ServicePortTls:
|
|
13
|
+
* - Authentication: General authentication. A general request authentication policy.
|
|
14
|
+
* - FlowCopy: Traffic mirroring. Copies requests to an additional backend.
|
|
15
|
+
* - Timeout: Timeout. Sets the request timeout period.
|
|
16
|
+
* - Retry: Retry. Automatically retries failed requests.
|
|
17
|
+
* - IpAccessControl: IP access control. Filters requests based on IP address whitelists and blacklists.
|
|
18
|
+
* - DirectResponse: Direct response. Returns a fixed response directly.
|
|
19
|
+
* - Redirect: Redirect. Redirects requests to another address.
|
|
20
|
+
* - Fallback: Fallback. Returns a fallback response when the backend is unavailable.
|
|
21
|
+
* - ServiceTls: Service TLS. Configures TLS for backend services.
|
|
22
|
+
* - ServiceLb: Service load balancing. Configures load balancing for backend services.
|
|
23
|
+
* - ServicePortTls: Service port TLS. Configures TLS for backend service ports.
|
|
24
24
|
* - Waf: Web Application Firewall (WAF). Provides request security protection.
|
|
25
25
|
* - JWTAuth: JWT authentication. Authenticates requests based on JSON Web Tokens (JWT).
|
|
26
26
|
* - OIDCAuth: OIDC authentication. Authenticates requests based on the OpenID Connect (OIDC) protocol.
|
|
27
|
-
* - ExternalZAuth:
|
|
27
|
+
* - ExternalZAuth: External authentication. Integrates with an external authentication service.
|
|
28
28
|
* - AiProxy: AI proxy.
|
|
29
|
-
* - ModelRouter:
|
|
29
|
+
* - ModelRouter: Model router.
|
|
30
30
|
* - AiStatistics: AI statistics.
|
|
31
31
|
* - AiSecurityGuard: AI security guard. Detects the security of AI request and response content.
|
|
32
32
|
* - AiFallback: AI fallback. Falls back to an alternative model when the AI service is unavailable.
|
|
33
|
-
* - ModelMapper:
|
|
33
|
+
* - ModelMapper: Model mapper.
|
|
34
34
|
* - AiTokenRateLimit: AI token rate limiting. Limits the rate based on token consumption.
|
|
35
35
|
* - AiCache: AI cache. Caches AI response results.
|
|
36
|
-
* - DynamicRoute:
|
|
36
|
+
* - DynamicRoute: Dynamic route.
|
|
37
37
|
*
|
|
38
38
|
* This parameter is required.
|
|
39
39
|
*
|
|
@@ -53,10 +53,10 @@ export declare class CreatePolicyRequest extends $dara.Model {
|
|
|
53
53
|
config?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The description.
|
|
56
|
+
* The description of the policy.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
|
-
*
|
|
59
|
+
* Timeout policy
|
|
60
60
|
*/
|
|
61
61
|
description?: string;
|
|
62
62
|
/**
|
|
@@ -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
|
-
*
|
|
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;
|
|
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"}
|