@alicloud/apig20240327 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  }
@@ -82,6 +82,9 @@ export { CreateHttpApiRouteResponseBodyData } from './CreateHttpApiRouteResponse
82
82
  export { CreateMcpServerRequestAssembledSources } from './CreateMcpServerRequest';
83
83
  export { CreateMcpServerRequestBackendConfigServices } from './CreateMcpServerRequest';
84
84
  export { CreateMcpServerRequestBackendConfig } from './CreateMcpServerRequest';
85
+ export { CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices } from './CreateMcpServerRequest';
86
+ export { CreateMcpServerRequestGrayMcpServerConfigsBackendConfig } from './CreateMcpServerRequest';
87
+ export { CreateMcpServerRequestGrayMcpServerConfigs } from './CreateMcpServerRequest';
85
88
  export { CreateMcpServerResponseBodyData } from './CreateMcpServerResponseBody';
86
89
  export { CreatePluginAttachmentResponseBodyData } from './CreatePluginAttachmentResponseBody';
87
90
  export { CreatePolicyResponseBodyData } from './CreatePolicyResponseBody';
@@ -114,6 +117,9 @@ export { GetGatewayResponseBodyDataZones } from './GetGatewayResponseBody';
114
117
  export { GetGatewayResponseBodyData } from './GetGatewayResponseBody';
115
118
  export { GetMcpServerResponseBodyDataAssembledSources } from './GetMcpServerResponseBody';
116
119
  export { GetMcpServerResponseBodyDataDomainInfos } from './GetMcpServerResponseBody';
120
+ export { GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfigServices } from './GetMcpServerResponseBody';
121
+ export { GetMcpServerResponseBodyDataGrayMcpServerConfigsBackendConfig } from './GetMcpServerResponseBody';
122
+ export { GetMcpServerResponseBodyDataGrayMcpServerConfigs } from './GetMcpServerResponseBody';
117
123
  export { GetMcpServerResponseBodyDataNacosMcpSyncInfo } from './GetMcpServerResponseBody';
118
124
  export { GetMcpServerResponseBodyData } from './GetMcpServerResponseBody';
119
125
  export { GetPluginAttachmentResponseBodyData } from './GetPluginAttachmentResponseBody';
@@ -181,6 +187,9 @@ export { UpdateHttpApiRouteRequestMcpRouteConfig } from './UpdateHttpApiRouteReq
181
187
  export { UpdateMcpServerRequestAssembledSources } from './UpdateMcpServerRequest';
182
188
  export { UpdateMcpServerRequestBackendConfigServices } from './UpdateMcpServerRequest';
183
189
  export { UpdateMcpServerRequestBackendConfig } from './UpdateMcpServerRequest';
190
+ export { UpdateMcpServerRequestGrayMcpServerConfigsBackendConfigServices } from './UpdateMcpServerRequest';
191
+ export { UpdateMcpServerRequestGrayMcpServerConfigsBackendConfig } from './UpdateMcpServerRequest';
192
+ export { UpdateMcpServerRequestGrayMcpServerConfigs } from './UpdateMcpServerRequest';
184
193
  export { UpdateServiceVersionRequestLabels } from './UpdateServiceVersionRequest';
185
194
  export { AgentServiceConfig } from './AgentServiceConfig';
186
195
  export { AiServiceConfig } from './AiServiceConfig';