@alicloud/apig20240327 5.2.0 → 5.3.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 +72 -6
- package/dist/client.js +198 -6
- package/dist/client.js.map +1 -1
- package/dist/models/CreateMcpServerRequest.d.ts +47 -0
- package/dist/models/CreateMcpServerRequest.js +86 -1
- package/dist/models/CreateMcpServerRequest.js.map +1 -1
- package/dist/models/CreateServiceVersionRequest.d.ts +9 -0
- package/dist/models/CreateServiceVersionRequest.js.map +1 -1
- package/dist/models/CreateServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/CreateServiceVersionResponseBody.js.map +1 -1
- package/dist/models/CreateSourceRequest.d.ts +80 -0
- package/dist/models/CreateSourceRequest.js +141 -0
- package/dist/models/CreateSourceRequest.js.map +1 -0
- package/dist/models/CreateSourceResponse.d.ts +19 -0
- package/dist/models/CreateSourceResponse.js +69 -0
- package/dist/models/CreateSourceResponse.js.map +1 -0
- package/dist/models/CreateSourceResponseBody.d.ts +46 -0
- package/dist/models/CreateSourceResponseBody.js +86 -0
- package/dist/models/CreateSourceResponseBody.js.map +1 -0
- package/dist/models/DeleteServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/DeleteServiceVersionResponseBody.js.map +1 -1
- package/dist/models/DeleteSourceResponse.d.ts +19 -0
- package/dist/models/DeleteSourceResponse.js +69 -0
- package/dist/models/DeleteSourceResponse.js.map +1 -0
- package/dist/models/DeleteSourceResponseBody.d.ts +28 -0
- package/dist/models/DeleteSourceResponseBody.js +62 -0
- package/dist/models/DeleteSourceResponseBody.js.map +1 -0
- package/dist/models/GetMcpServerResponseBody.d.ts +47 -0
- package/dist/models/GetMcpServerResponseBody.js +86 -1
- package/dist/models/GetMcpServerResponseBody.js.map +1 -1
- package/dist/models/GetSourceResponse.d.ts +19 -0
- package/dist/models/GetSourceResponse.js +69 -0
- package/dist/models/GetSourceResponse.js.map +1 -0
- package/dist/models/GetSourceResponseBody.d.ts +125 -0
- package/dist/models/GetSourceResponseBody.js +150 -0
- package/dist/models/GetSourceResponseBody.js.map +1 -0
- package/dist/models/UpdateMcpServerRequest.d.ts +47 -0
- package/dist/models/UpdateMcpServerRequest.js +86 -1
- package/dist/models/UpdateMcpServerRequest.js.map +1 -1
- package/dist/models/UpdateServiceRequest.d.ts +113 -0
- package/dist/models/UpdateServiceRequest.js +185 -0
- package/dist/models/UpdateServiceRequest.js.map +1 -0
- package/dist/models/UpdateServiceResponse.d.ts +19 -0
- package/dist/models/UpdateServiceResponse.js +69 -0
- package/dist/models/UpdateServiceResponse.js.map +1 -0
- package/dist/models/UpdateServiceResponseBody.d.ts +28 -0
- package/dist/models/UpdateServiceResponseBody.js +62 -0
- package/dist/models/UpdateServiceResponseBody.js.map +1 -0
- package/dist/models/UpdateServiceVersionRequest.d.ts +7 -0
- package/dist/models/UpdateServiceVersionRequest.js.map +1 -1
- package/dist/models/UpdateServiceVersionResponseBody.d.ts +9 -0
- package/dist/models/UpdateServiceVersionResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +29 -0
- package/dist/models/model.js +76 -17
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +222 -6
- package/src/models/CreateMcpServerRequest.ts +105 -0
- package/src/models/CreateServiceVersionRequest.ts +9 -0
- package/src/models/CreateServiceVersionResponseBody.ts +9 -0
- package/src/models/CreateSourceRequest.ts +149 -0
- package/src/models/CreateSourceResponse.ts +40 -0
- package/src/models/CreateSourceResponseBody.ts +78 -0
- package/src/models/DeleteServiceVersionResponseBody.ts +9 -0
- package/src/models/DeleteSourceResponse.ts +40 -0
- package/src/models/DeleteSourceResponseBody.ts +45 -0
- package/src/models/GetMcpServerResponseBody.ts +105 -0
- package/src/models/GetSourceResponse.ts +40 -0
- package/src/models/GetSourceResponseBody.ts +203 -0
- package/src/models/UpdateMcpServerRequest.ts +105 -0
- package/src/models/UpdateServiceRequest.ts +224 -0
- package/src/models/UpdateServiceResponse.ts +40 -0
- package/src/models/UpdateServiceResponseBody.ts +45 -0
- package/src/models/UpdateServiceVersionRequest.ts +7 -0
- package/src/models/UpdateServiceVersionResponseBody.ts +9 -0
- package/src/models/model.ts +29 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateSourceResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* src-crdddallhtgt***
|
|
9
|
+
*/
|
|
10
|
+
sourceId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
sourceId: 'sourceId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
sourceId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class CreateSourceResponseBody extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* Ok
|
|
36
|
+
*/
|
|
37
|
+
code?: string;
|
|
38
|
+
data?: CreateSourceResponseBodyData;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* 393E2630-DBE7-5221-AB35-9E740675491A
|
|
47
|
+
*/
|
|
48
|
+
requestId?: string;
|
|
49
|
+
static names(): { [key: string]: string } {
|
|
50
|
+
return {
|
|
51
|
+
code: 'code',
|
|
52
|
+
data: 'data',
|
|
53
|
+
message: 'message',
|
|
54
|
+
requestId: 'requestId',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static types(): { [key: string]: any } {
|
|
59
|
+
return {
|
|
60
|
+
code: 'string',
|
|
61
|
+
data: CreateSourceResponseBodyData,
|
|
62
|
+
message: 'string',
|
|
63
|
+
requestId: 'string',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
validate() {
|
|
68
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
69
|
+
(this.data as any).validate();
|
|
70
|
+
}
|
|
71
|
+
super.validate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DeleteServiceVersionResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The status code returned.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* Ok
|
|
9
12
|
*/
|
|
10
13
|
code?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The response message returned.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* success
|
|
14
20
|
*/
|
|
15
21
|
message?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The request ID.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* A1994B10-C6A8-58FA-8347-6A08B0D4EFDE
|
|
19
28
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteSourceResponseBody } from "./DeleteSourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteSourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteSourceResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteSourceResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteSourceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Ok
|
|
9
|
+
*/
|
|
10
|
+
code?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* success
|
|
14
|
+
*/
|
|
15
|
+
message?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4
|
|
19
|
+
*/
|
|
20
|
+
requestId?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
code: 'code',
|
|
24
|
+
message: 'message',
|
|
25
|
+
requestId: 'requestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
code: 'string',
|
|
32
|
+
message: 'string',
|
|
33
|
+
requestId: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -104,6 +104,105 @@ export class GetMcpServerResponseBodyDataDomainInfos extends $dara.Model {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
export class GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfigServices extends $dara.Model {
|
|
108
|
+
port?: number;
|
|
109
|
+
protocol?: string;
|
|
110
|
+
serviceId?: string;
|
|
111
|
+
version?: string;
|
|
112
|
+
weight?: number;
|
|
113
|
+
static names(): { [key: string]: string } {
|
|
114
|
+
return {
|
|
115
|
+
port: 'port',
|
|
116
|
+
protocol: 'protocol',
|
|
117
|
+
serviceId: 'serviceId',
|
|
118
|
+
version: 'version',
|
|
119
|
+
weight: 'weight',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
port: 'number',
|
|
126
|
+
protocol: 'string',
|
|
127
|
+
serviceId: 'string',
|
|
128
|
+
version: 'string',
|
|
129
|
+
weight: 'number',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
validate() {
|
|
134
|
+
super.validate();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
constructor(map?: { [key: string]: any }) {
|
|
138
|
+
super(map);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export class GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfig extends $dara.Model {
|
|
143
|
+
scene?: string;
|
|
144
|
+
services?: GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfigServices[];
|
|
145
|
+
static names(): { [key: string]: string } {
|
|
146
|
+
return {
|
|
147
|
+
scene: 'scene',
|
|
148
|
+
services: 'services',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static types(): { [key: string]: any } {
|
|
153
|
+
return {
|
|
154
|
+
scene: 'string',
|
|
155
|
+
services: { 'type': 'array', 'itemType': GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfigServices },
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
validate() {
|
|
160
|
+
if(Array.isArray(this.services)) {
|
|
161
|
+
$dara.Model.validateArray(this.services);
|
|
162
|
+
}
|
|
163
|
+
super.validate();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
constructor(map?: { [key: string]: any }) {
|
|
167
|
+
super(map);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export class GetMcpServerResponseBodyDataGrayMcpServerConfigs extends $dara.Model {
|
|
172
|
+
backendConfig?: GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfig;
|
|
173
|
+
match?: HttpRouteMatch;
|
|
174
|
+
routeId?: string;
|
|
175
|
+
static names(): { [key: string]: string } {
|
|
176
|
+
return {
|
|
177
|
+
backendConfig: 'backendConfig',
|
|
178
|
+
match: 'match',
|
|
179
|
+
routeId: 'routeId',
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
static types(): { [key: string]: any } {
|
|
184
|
+
return {
|
|
185
|
+
backendConfig: GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfig,
|
|
186
|
+
match: HttpRouteMatch,
|
|
187
|
+
routeId: 'string',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
validate() {
|
|
192
|
+
if(this.backendConfig && typeof (this.backendConfig as any).validate === 'function') {
|
|
193
|
+
(this.backendConfig as any).validate();
|
|
194
|
+
}
|
|
195
|
+
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
196
|
+
(this.match as any).validate();
|
|
197
|
+
}
|
|
198
|
+
super.validate();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
constructor(map?: { [key: string]: any }) {
|
|
202
|
+
super(map);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
107
206
|
export class GetMcpServerResponseBodyDataNacosMcpSyncInfo extends $dara.Model {
|
|
108
207
|
/**
|
|
109
208
|
* @remarks
|
|
@@ -226,6 +325,7 @@ export class GetMcpServerResponseBodyData extends $dara.Model {
|
|
|
226
325
|
* gw-cq2vundlhtg***
|
|
227
326
|
*/
|
|
228
327
|
gatewayId?: string;
|
|
328
|
+
grayMcpServerConfigs?: GetMcpServerResponseBodyDataGrayMcpServerConfigs[];
|
|
229
329
|
/**
|
|
230
330
|
* @remarks
|
|
231
331
|
* The route match rule.
|
|
@@ -320,6 +420,7 @@ export class GetMcpServerResponseBodyData extends $dara.Model {
|
|
|
320
420
|
environmentId: 'environmentId',
|
|
321
421
|
exposedUriPath: 'exposedUriPath',
|
|
322
422
|
gatewayId: 'gatewayId',
|
|
423
|
+
grayMcpServerConfigs: 'grayMcpServerConfigs',
|
|
323
424
|
match: 'match',
|
|
324
425
|
mcpServerConfig: 'mcpServerConfig',
|
|
325
426
|
mcpServerConfigPluginAttachmentId: 'mcpServerConfigPluginAttachmentId',
|
|
@@ -346,6 +447,7 @@ export class GetMcpServerResponseBodyData extends $dara.Model {
|
|
|
346
447
|
environmentId: 'string',
|
|
347
448
|
exposedUriPath: 'string',
|
|
348
449
|
gatewayId: 'string',
|
|
450
|
+
grayMcpServerConfigs: { 'type': 'array', 'itemType': GetMcpServerResponseBodyDataGrayMcpServerConfigs },
|
|
349
451
|
match: HttpRouteMatch,
|
|
350
452
|
mcpServerConfig: 'string',
|
|
351
453
|
mcpServerConfigPluginAttachmentId: 'string',
|
|
@@ -373,6 +475,9 @@ export class GetMcpServerResponseBodyData extends $dara.Model {
|
|
|
373
475
|
if(Array.isArray(this.domainInfos)) {
|
|
374
476
|
$dara.Model.validateArray(this.domainInfos);
|
|
375
477
|
}
|
|
478
|
+
if(Array.isArray(this.grayMcpServerConfigs)) {
|
|
479
|
+
$dara.Model.validateArray(this.grayMcpServerConfigs);
|
|
480
|
+
}
|
|
376
481
|
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
377
482
|
(this.match as any).validate();
|
|
378
483
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetSourceResponseBody } from "./GetSourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetSourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetSourceResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: GetSourceResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetSourceResponseBodyDataK8SSourceInfo extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* c2d290b2d8b5d4935864cace5f0173f31
|
|
9
|
+
*/
|
|
10
|
+
clusterId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
clusterId: 'clusterId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
clusterId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class GetSourceResponseBodyDataNacosSourceInfo extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* mse
|
|
36
|
+
*/
|
|
37
|
+
address?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* fluss-cn-w7k4hann601
|
|
41
|
+
*/
|
|
42
|
+
clusterId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* hgprecn-cn-cfn47q7oh001
|
|
46
|
+
*/
|
|
47
|
+
instanceId?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
address: 'address',
|
|
51
|
+
clusterId: 'clusterId',
|
|
52
|
+
instanceId: 'instanceId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
address: 'string',
|
|
59
|
+
clusterId: 'string',
|
|
60
|
+
instanceId: 'string',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validate() {
|
|
65
|
+
super.validate();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class GetSourceResponseBodyData extends $dara.Model {
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* 1719386834548
|
|
77
|
+
*/
|
|
78
|
+
createTimestamp?: number;
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* gw-cq2vundlhtg***
|
|
82
|
+
*/
|
|
83
|
+
gatewayId?: string;
|
|
84
|
+
k8SSourceInfo?: GetSourceResponseBodyDataK8SSourceInfo;
|
|
85
|
+
nacosSourceInfo?: GetSourceResponseBodyDataNacosSourceInfo;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* import-test
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* rg-aekz4us4iruleja
|
|
94
|
+
*/
|
|
95
|
+
resourceGroupId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* src-crdddallhtgt***
|
|
99
|
+
*/
|
|
100
|
+
sourceId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @example
|
|
103
|
+
* K8S
|
|
104
|
+
*/
|
|
105
|
+
type?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @example
|
|
108
|
+
* 1719386834548
|
|
109
|
+
*/
|
|
110
|
+
updateTimestamp?: number;
|
|
111
|
+
static names(): { [key: string]: string } {
|
|
112
|
+
return {
|
|
113
|
+
createTimestamp: 'createTimestamp',
|
|
114
|
+
gatewayId: 'gatewayId',
|
|
115
|
+
k8SSourceInfo: 'k8SSourceInfo',
|
|
116
|
+
nacosSourceInfo: 'nacosSourceInfo',
|
|
117
|
+
name: 'name',
|
|
118
|
+
resourceGroupId: 'resourceGroupId',
|
|
119
|
+
sourceId: 'sourceId',
|
|
120
|
+
type: 'type',
|
|
121
|
+
updateTimestamp: 'updateTimestamp',
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static types(): { [key: string]: any } {
|
|
126
|
+
return {
|
|
127
|
+
createTimestamp: 'number',
|
|
128
|
+
gatewayId: 'string',
|
|
129
|
+
k8SSourceInfo: GetSourceResponseBodyDataK8SSourceInfo,
|
|
130
|
+
nacosSourceInfo: GetSourceResponseBodyDataNacosSourceInfo,
|
|
131
|
+
name: 'string',
|
|
132
|
+
resourceGroupId: 'string',
|
|
133
|
+
sourceId: 'string',
|
|
134
|
+
type: 'string',
|
|
135
|
+
updateTimestamp: 'number',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
validate() {
|
|
140
|
+
if(this.k8SSourceInfo && typeof (this.k8SSourceInfo as any).validate === 'function') {
|
|
141
|
+
(this.k8SSourceInfo as any).validate();
|
|
142
|
+
}
|
|
143
|
+
if(this.nacosSourceInfo && typeof (this.nacosSourceInfo as any).validate === 'function') {
|
|
144
|
+
(this.nacosSourceInfo as any).validate();
|
|
145
|
+
}
|
|
146
|
+
super.validate();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
constructor(map?: { [key: string]: any }) {
|
|
150
|
+
super(map);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export class GetSourceResponseBody extends $dara.Model {
|
|
155
|
+
/**
|
|
156
|
+
* @example
|
|
157
|
+
* Ok
|
|
158
|
+
*/
|
|
159
|
+
code?: string;
|
|
160
|
+
data?: GetSourceResponseBodyData;
|
|
161
|
+
/**
|
|
162
|
+
* @example
|
|
163
|
+
* success
|
|
164
|
+
*/
|
|
165
|
+
message?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* Id of the request
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* DE10E3C0-A676-5169-812D-6610AACBFAFF
|
|
172
|
+
*/
|
|
173
|
+
requestId?: string;
|
|
174
|
+
static names(): { [key: string]: string } {
|
|
175
|
+
return {
|
|
176
|
+
code: 'code',
|
|
177
|
+
data: 'data',
|
|
178
|
+
message: 'message',
|
|
179
|
+
requestId: 'requestId',
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
static types(): { [key: string]: any } {
|
|
184
|
+
return {
|
|
185
|
+
code: 'string',
|
|
186
|
+
data: GetSourceResponseBodyData,
|
|
187
|
+
message: 'string',
|
|
188
|
+
requestId: 'string',
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
validate() {
|
|
193
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
194
|
+
(this.data as any).validate();
|
|
195
|
+
}
|
|
196
|
+
super.validate();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
constructor(map?: { [key: string]: any }) {
|
|
200
|
+
super(map);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
@@ -167,6 +167,105 @@ export class UpdateMcpServerRequestBackendConfig extends $dara.Model {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export class UpdateMcpServerRequestGrayMcpServerConfigsBackendConfigServices extends $dara.Model {
|
|
171
|
+
port?: number;
|
|
172
|
+
protocol?: string;
|
|
173
|
+
serviceId?: string;
|
|
174
|
+
version?: string;
|
|
175
|
+
weight?: number;
|
|
176
|
+
static names(): { [key: string]: string } {
|
|
177
|
+
return {
|
|
178
|
+
port: 'port',
|
|
179
|
+
protocol: 'protocol',
|
|
180
|
+
serviceId: 'serviceId',
|
|
181
|
+
version: 'version',
|
|
182
|
+
weight: 'weight',
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static types(): { [key: string]: any } {
|
|
187
|
+
return {
|
|
188
|
+
port: 'number',
|
|
189
|
+
protocol: 'string',
|
|
190
|
+
serviceId: 'string',
|
|
191
|
+
version: 'string',
|
|
192
|
+
weight: 'number',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
validate() {
|
|
197
|
+
super.validate();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
constructor(map?: { [key: string]: any }) {
|
|
201
|
+
super(map);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export class UpdateMcpServerRequestGrayMcpServerConfigsBackendConfig extends $dara.Model {
|
|
206
|
+
scene?: string;
|
|
207
|
+
services?: UpdateMcpServerRequestGrayMcpServerConfigsBackendConfigServices[];
|
|
208
|
+
static names(): { [key: string]: string } {
|
|
209
|
+
return {
|
|
210
|
+
scene: 'scene',
|
|
211
|
+
services: 'services',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static types(): { [key: string]: any } {
|
|
216
|
+
return {
|
|
217
|
+
scene: 'string',
|
|
218
|
+
services: { 'type': 'array', 'itemType': UpdateMcpServerRequestGrayMcpServerConfigsBackendConfigServices },
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
validate() {
|
|
223
|
+
if(Array.isArray(this.services)) {
|
|
224
|
+
$dara.Model.validateArray(this.services);
|
|
225
|
+
}
|
|
226
|
+
super.validate();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
constructor(map?: { [key: string]: any }) {
|
|
230
|
+
super(map);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export class UpdateMcpServerRequestGrayMcpServerConfigs extends $dara.Model {
|
|
235
|
+
backendConfig?: UpdateMcpServerRequestGrayMcpServerConfigsBackendConfig;
|
|
236
|
+
match?: HttpRouteMatch;
|
|
237
|
+
routeId?: string;
|
|
238
|
+
static names(): { [key: string]: string } {
|
|
239
|
+
return {
|
|
240
|
+
backendConfig: 'backendConfig',
|
|
241
|
+
match: 'match',
|
|
242
|
+
routeId: 'routeId',
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
static types(): { [key: string]: any } {
|
|
247
|
+
return {
|
|
248
|
+
backendConfig: UpdateMcpServerRequestGrayMcpServerConfigsBackendConfig,
|
|
249
|
+
match: HttpRouteMatch,
|
|
250
|
+
routeId: 'string',
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
validate() {
|
|
255
|
+
if(this.backendConfig && typeof (this.backendConfig as any).validate === 'function') {
|
|
256
|
+
(this.backendConfig as any).validate();
|
|
257
|
+
}
|
|
258
|
+
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
259
|
+
(this.match as any).validate();
|
|
260
|
+
}
|
|
261
|
+
super.validate();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
constructor(map?: { [key: string]: any }) {
|
|
265
|
+
super(map);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
170
269
|
export class UpdateMcpServerRequest extends $dara.Model {
|
|
171
270
|
/**
|
|
172
271
|
* @remarks
|
|
@@ -201,6 +300,7 @@ export class UpdateMcpServerRequest extends $dara.Model {
|
|
|
201
300
|
* /sse
|
|
202
301
|
*/
|
|
203
302
|
exposedUriPath?: string;
|
|
303
|
+
grayMcpServerConfigs?: UpdateMcpServerRequestGrayMcpServerConfigs[];
|
|
204
304
|
/**
|
|
205
305
|
* @remarks
|
|
206
306
|
* The route match rule.
|
|
@@ -242,6 +342,7 @@ export class UpdateMcpServerRequest extends $dara.Model {
|
|
|
242
342
|
description: 'description',
|
|
243
343
|
domainIds: 'domainIds',
|
|
244
344
|
exposedUriPath: 'exposedUriPath',
|
|
345
|
+
grayMcpServerConfigs: 'grayMcpServerConfigs',
|
|
245
346
|
match: 'match',
|
|
246
347
|
mcpStatisticsEnable: 'mcpStatisticsEnable',
|
|
247
348
|
protocol: 'protocol',
|
|
@@ -257,6 +358,7 @@ export class UpdateMcpServerRequest extends $dara.Model {
|
|
|
257
358
|
description: 'string',
|
|
258
359
|
domainIds: { 'type': 'array', 'itemType': 'string' },
|
|
259
360
|
exposedUriPath: 'string',
|
|
361
|
+
grayMcpServerConfigs: { 'type': 'array', 'itemType': UpdateMcpServerRequestGrayMcpServerConfigs },
|
|
260
362
|
match: HttpRouteMatch,
|
|
261
363
|
mcpStatisticsEnable: 'boolean',
|
|
262
364
|
protocol: 'string',
|
|
@@ -274,6 +376,9 @@ export class UpdateMcpServerRequest extends $dara.Model {
|
|
|
274
376
|
if(Array.isArray(this.domainIds)) {
|
|
275
377
|
$dara.Model.validateArray(this.domainIds);
|
|
276
378
|
}
|
|
379
|
+
if(Array.isArray(this.grayMcpServerConfigs)) {
|
|
380
|
+
$dara.Model.validateArray(this.grayMcpServerConfigs);
|
|
381
|
+
}
|
|
277
382
|
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
278
383
|
(this.match as any).validate();
|
|
279
384
|
}
|