@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
package/src/client.ts
CHANGED
|
@@ -950,6 +950,10 @@ export default class Client extends OpenApi {
|
|
|
950
950
|
body["gatewayId"] = request.gatewayId;
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
+
if (!$dara.isNull(request.grayMcpServerConfigs)) {
|
|
954
|
+
body["grayMcpServerConfigs"] = request.grayMcpServerConfigs;
|
|
955
|
+
}
|
|
956
|
+
|
|
953
957
|
if (!$dara.isNull(request.match)) {
|
|
954
958
|
body["match"] = request.match;
|
|
955
959
|
}
|
|
@@ -1251,7 +1255,7 @@ export default class Client extends OpenApi {
|
|
|
1251
1255
|
}
|
|
1252
1256
|
|
|
1253
1257
|
/**
|
|
1254
|
-
*
|
|
1258
|
+
* Creates a service version.
|
|
1255
1259
|
*
|
|
1256
1260
|
* @param request - CreateServiceVersionRequest
|
|
1257
1261
|
* @param headers - map
|
|
@@ -1288,7 +1292,7 @@ export default class Client extends OpenApi {
|
|
|
1288
1292
|
}
|
|
1289
1293
|
|
|
1290
1294
|
/**
|
|
1291
|
-
*
|
|
1295
|
+
* Creates a service version.
|
|
1292
1296
|
*
|
|
1293
1297
|
* @param request - CreateServiceVersionRequest
|
|
1294
1298
|
* @returns CreateServiceVersionResponse
|
|
@@ -1299,6 +1303,67 @@ export default class Client extends OpenApi {
|
|
|
1299
1303
|
return await this.createServiceVersionWithOptions(serviceId, request, headers, runtime);
|
|
1300
1304
|
}
|
|
1301
1305
|
|
|
1306
|
+
/**
|
|
1307
|
+
* 创建服务来源
|
|
1308
|
+
*
|
|
1309
|
+
* @param request - CreateSourceRequest
|
|
1310
|
+
* @param headers - map
|
|
1311
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1312
|
+
* @returns CreateSourceResponse
|
|
1313
|
+
*/
|
|
1314
|
+
async createSourceWithOptions(request: $_model.CreateSourceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSourceResponse> {
|
|
1315
|
+
request.validate();
|
|
1316
|
+
let body : {[key: string ]: any} = { };
|
|
1317
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
1318
|
+
body["gatewayId"] = request.gatewayId;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
if (!$dara.isNull(request.k8sSourceConfig)) {
|
|
1322
|
+
body["k8sSourceConfig"] = request.k8sSourceConfig;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
if (!$dara.isNull(request.nacosSourceConfig)) {
|
|
1326
|
+
body["nacosSourceConfig"] = request.nacosSourceConfig;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1330
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if (!$dara.isNull(request.type)) {
|
|
1334
|
+
body["type"] = request.type;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1338
|
+
headers: headers,
|
|
1339
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1340
|
+
});
|
|
1341
|
+
let params = new $OpenApiUtil.Params({
|
|
1342
|
+
action: "CreateSource",
|
|
1343
|
+
version: "2024-03-27",
|
|
1344
|
+
protocol: "HTTPS",
|
|
1345
|
+
pathname: `/v1/sources`,
|
|
1346
|
+
method: "POST",
|
|
1347
|
+
authType: "AK",
|
|
1348
|
+
style: "ROA",
|
|
1349
|
+
reqBodyType: "json",
|
|
1350
|
+
bodyType: "json",
|
|
1351
|
+
});
|
|
1352
|
+
return $dara.cast<$_model.CreateSourceResponse>(await this.callApi(params, req, runtime), new $_model.CreateSourceResponse({}));
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* 创建服务来源
|
|
1357
|
+
*
|
|
1358
|
+
* @param request - CreateSourceRequest
|
|
1359
|
+
* @returns CreateSourceResponse
|
|
1360
|
+
*/
|
|
1361
|
+
async createSource(request: $_model.CreateSourceRequest): Promise<$_model.CreateSourceResponse> {
|
|
1362
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1363
|
+
let headers : {[key: string ]: string} = { };
|
|
1364
|
+
return await this.createSourceWithOptions(request, headers, runtime);
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1302
1367
|
/**
|
|
1303
1368
|
* Deletes a consumer.
|
|
1304
1369
|
*
|
|
@@ -1805,7 +1870,7 @@ export default class Client extends OpenApi {
|
|
|
1805
1870
|
}
|
|
1806
1871
|
|
|
1807
1872
|
/**
|
|
1808
|
-
*
|
|
1873
|
+
* Deletes a service version.
|
|
1809
1874
|
*
|
|
1810
1875
|
* @param headers - map
|
|
1811
1876
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1830,7 +1895,7 @@ export default class Client extends OpenApi {
|
|
|
1830
1895
|
}
|
|
1831
1896
|
|
|
1832
1897
|
/**
|
|
1833
|
-
*
|
|
1898
|
+
* Deletes a service version.
|
|
1834
1899
|
* @returns DeleteServiceVersionResponse
|
|
1835
1900
|
*/
|
|
1836
1901
|
async deleteServiceVersion(serviceId: string, name: string): Promise<$_model.DeleteServiceVersionResponse> {
|
|
@@ -1839,6 +1904,41 @@ export default class Client extends OpenApi {
|
|
|
1839
1904
|
return await this.deleteServiceVersionWithOptions(serviceId, name, headers, runtime);
|
|
1840
1905
|
}
|
|
1841
1906
|
|
|
1907
|
+
/**
|
|
1908
|
+
* 删除服务来源
|
|
1909
|
+
*
|
|
1910
|
+
* @param headers - map
|
|
1911
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1912
|
+
* @returns DeleteSourceResponse
|
|
1913
|
+
*/
|
|
1914
|
+
async deleteSourceWithOptions(sourceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteSourceResponse> {
|
|
1915
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1916
|
+
headers: headers,
|
|
1917
|
+
});
|
|
1918
|
+
let params = new $OpenApiUtil.Params({
|
|
1919
|
+
action: "DeleteSource",
|
|
1920
|
+
version: "2024-03-27",
|
|
1921
|
+
protocol: "HTTPS",
|
|
1922
|
+
pathname: `/v1/sources/${$dara.URL.percentEncode(sourceId)}`,
|
|
1923
|
+
method: "DELETE",
|
|
1924
|
+
authType: "AK",
|
|
1925
|
+
style: "ROA",
|
|
1926
|
+
reqBodyType: "json",
|
|
1927
|
+
bodyType: "json",
|
|
1928
|
+
});
|
|
1929
|
+
return $dara.cast<$_model.DeleteSourceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteSourceResponse({}));
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* 删除服务来源
|
|
1934
|
+
* @returns DeleteSourceResponse
|
|
1935
|
+
*/
|
|
1936
|
+
async deleteSource(sourceId: string): Promise<$_model.DeleteSourceResponse> {
|
|
1937
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1938
|
+
let headers : {[key: string ]: string} = { };
|
|
1939
|
+
return await this.deleteSourceWithOptions(sourceId, headers, runtime);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1842
1942
|
/**
|
|
1843
1943
|
* Deploy HttpApi
|
|
1844
1944
|
*
|
|
@@ -2580,6 +2680,41 @@ export default class Client extends OpenApi {
|
|
|
2580
2680
|
return await this.getServiceWithOptions(serviceId, headers, runtime);
|
|
2581
2681
|
}
|
|
2582
2682
|
|
|
2683
|
+
/**
|
|
2684
|
+
* 获取服务来源
|
|
2685
|
+
*
|
|
2686
|
+
* @param headers - map
|
|
2687
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2688
|
+
* @returns GetSourceResponse
|
|
2689
|
+
*/
|
|
2690
|
+
async getSourceWithOptions(sourceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetSourceResponse> {
|
|
2691
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2692
|
+
headers: headers,
|
|
2693
|
+
});
|
|
2694
|
+
let params = new $OpenApiUtil.Params({
|
|
2695
|
+
action: "GetSource",
|
|
2696
|
+
version: "2024-03-27",
|
|
2697
|
+
protocol: "HTTPS",
|
|
2698
|
+
pathname: `/v1/sources/${$dara.URL.percentEncode(sourceId)}`,
|
|
2699
|
+
method: "GET",
|
|
2700
|
+
authType: "AK",
|
|
2701
|
+
style: "ROA",
|
|
2702
|
+
reqBodyType: "json",
|
|
2703
|
+
bodyType: "json",
|
|
2704
|
+
});
|
|
2705
|
+
return $dara.cast<$_model.GetSourceResponse>(await this.callApi(params, req, runtime), new $_model.GetSourceResponse({}));
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* 获取服务来源
|
|
2710
|
+
* @returns GetSourceResponse
|
|
2711
|
+
*/
|
|
2712
|
+
async getSource(sourceId: string): Promise<$_model.GetSourceResponse> {
|
|
2713
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2714
|
+
let headers : {[key: string ]: string} = { };
|
|
2715
|
+
return await this.getSourceWithOptions(sourceId, headers, runtime);
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2583
2718
|
/**
|
|
2584
2719
|
* Retrieve Tracing Configuration
|
|
2585
2720
|
*
|
|
@@ -4847,6 +4982,10 @@ export default class Client extends OpenApi {
|
|
|
4847
4982
|
body["exposedUriPath"] = request.exposedUriPath;
|
|
4848
4983
|
}
|
|
4849
4984
|
|
|
4985
|
+
if (!$dara.isNull(request.grayMcpServerConfigs)) {
|
|
4986
|
+
body["grayMcpServerConfigs"] = request.grayMcpServerConfigs;
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4850
4989
|
if (!$dara.isNull(request.match)) {
|
|
4851
4990
|
body["match"] = request.match;
|
|
4852
4991
|
}
|
|
@@ -5003,7 +5142,84 @@ export default class Client extends OpenApi {
|
|
|
5003
5142
|
}
|
|
5004
5143
|
|
|
5005
5144
|
/**
|
|
5006
|
-
*
|
|
5145
|
+
* 更新服务
|
|
5146
|
+
*
|
|
5147
|
+
* @param request - UpdateServiceRequest
|
|
5148
|
+
* @param headers - map
|
|
5149
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5150
|
+
* @returns UpdateServiceResponse
|
|
5151
|
+
*/
|
|
5152
|
+
async updateServiceWithOptions(serviceId: string, request: $_model.UpdateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateServiceResponse> {
|
|
5153
|
+
request.validate();
|
|
5154
|
+
let body : {[key: string ]: any} = { };
|
|
5155
|
+
if (!$dara.isNull(request.addresses)) {
|
|
5156
|
+
body["addresses"] = request.addresses;
|
|
5157
|
+
}
|
|
5158
|
+
|
|
5159
|
+
if (!$dara.isNull(request.agentServiceConfig)) {
|
|
5160
|
+
body["agentServiceConfig"] = request.agentServiceConfig;
|
|
5161
|
+
}
|
|
5162
|
+
|
|
5163
|
+
if (!$dara.isNull(request.aiServiceConfig)) {
|
|
5164
|
+
body["aiServiceConfig"] = request.aiServiceConfig;
|
|
5165
|
+
}
|
|
5166
|
+
|
|
5167
|
+
if (!$dara.isNull(request.dnsServers)) {
|
|
5168
|
+
body["dnsServers"] = request.dnsServers;
|
|
5169
|
+
}
|
|
5170
|
+
|
|
5171
|
+
if (!$dara.isNull(request.healthCheckConfig)) {
|
|
5172
|
+
body["healthCheckConfig"] = request.healthCheckConfig;
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
if (!$dara.isNull(request.healthyPanicThreshold)) {
|
|
5176
|
+
body["healthyPanicThreshold"] = request.healthyPanicThreshold;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
if (!$dara.isNull(request.outlierDetectionConfig)) {
|
|
5180
|
+
body["outlierDetectionConfig"] = request.outlierDetectionConfig;
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5183
|
+
if (!$dara.isNull(request.ports)) {
|
|
5184
|
+
body["ports"] = request.ports;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
if (!$dara.isNull(request.protocol)) {
|
|
5188
|
+
body["protocol"] = request.protocol;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5192
|
+
headers: headers,
|
|
5193
|
+
body: OpenApiUtil.parseToMap(body),
|
|
5194
|
+
});
|
|
5195
|
+
let params = new $OpenApiUtil.Params({
|
|
5196
|
+
action: "UpdateService",
|
|
5197
|
+
version: "2024-03-27",
|
|
5198
|
+
protocol: "HTTPS",
|
|
5199
|
+
pathname: `/v1/services/${$dara.URL.percentEncode(serviceId)}`,
|
|
5200
|
+
method: "PUT",
|
|
5201
|
+
authType: "AK",
|
|
5202
|
+
style: "ROA",
|
|
5203
|
+
reqBodyType: "json",
|
|
5204
|
+
bodyType: "json",
|
|
5205
|
+
});
|
|
5206
|
+
return $dara.cast<$_model.UpdateServiceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateServiceResponse({}));
|
|
5207
|
+
}
|
|
5208
|
+
|
|
5209
|
+
/**
|
|
5210
|
+
* 更新服务
|
|
5211
|
+
*
|
|
5212
|
+
* @param request - UpdateServiceRequest
|
|
5213
|
+
* @returns UpdateServiceResponse
|
|
5214
|
+
*/
|
|
5215
|
+
async updateService(serviceId: string, request: $_model.UpdateServiceRequest): Promise<$_model.UpdateServiceResponse> {
|
|
5216
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5217
|
+
let headers : {[key: string ]: string} = { };
|
|
5218
|
+
return await this.updateServiceWithOptions(serviceId, request, headers, runtime);
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Updates a service version.
|
|
5007
5223
|
*
|
|
5008
5224
|
* @param request - UpdateServiceVersionRequest
|
|
5009
5225
|
* @param headers - map
|
|
@@ -5036,7 +5252,7 @@ export default class Client extends OpenApi {
|
|
|
5036
5252
|
}
|
|
5037
5253
|
|
|
5038
5254
|
/**
|
|
5039
|
-
*
|
|
5255
|
+
* Updates a service version.
|
|
5040
5256
|
*
|
|
5041
5257
|
* @param request - UpdateServiceVersionRequest
|
|
5042
5258
|
* @returns UpdateServiceVersionResponse
|
|
@@ -166,6 +166,105 @@ export class CreateMcpServerRequestBackendConfig extends $dara.Model {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
export class CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices extends $dara.Model {
|
|
170
|
+
port?: number;
|
|
171
|
+
protocol?: string;
|
|
172
|
+
serviceId?: string;
|
|
173
|
+
version?: string;
|
|
174
|
+
weight?: number;
|
|
175
|
+
static names(): { [key: string]: string } {
|
|
176
|
+
return {
|
|
177
|
+
port: 'port',
|
|
178
|
+
protocol: 'protocol',
|
|
179
|
+
serviceId: 'serviceId',
|
|
180
|
+
version: 'version',
|
|
181
|
+
weight: 'weight',
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static types(): { [key: string]: any } {
|
|
186
|
+
return {
|
|
187
|
+
port: 'number',
|
|
188
|
+
protocol: 'string',
|
|
189
|
+
serviceId: 'string',
|
|
190
|
+
version: 'string',
|
|
191
|
+
weight: 'number',
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
validate() {
|
|
196
|
+
super.validate();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
constructor(map?: { [key: string]: any }) {
|
|
200
|
+
super(map);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export class CreateMcpServerRequestGrayMcpServerConfigsBackendConfig extends $dara.Model {
|
|
205
|
+
scene?: string;
|
|
206
|
+
services?: CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices[];
|
|
207
|
+
static names(): { [key: string]: string } {
|
|
208
|
+
return {
|
|
209
|
+
scene: 'scene',
|
|
210
|
+
services: 'services',
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
static types(): { [key: string]: any } {
|
|
215
|
+
return {
|
|
216
|
+
scene: 'string',
|
|
217
|
+
services: { 'type': 'array', 'itemType': CreateMcpServerRequestGrayMcpServerConfigsBackendConfigServices },
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
validate() {
|
|
222
|
+
if(Array.isArray(this.services)) {
|
|
223
|
+
$dara.Model.validateArray(this.services);
|
|
224
|
+
}
|
|
225
|
+
super.validate();
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
constructor(map?: { [key: string]: any }) {
|
|
229
|
+
super(map);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export class CreateMcpServerRequestGrayMcpServerConfigs extends $dara.Model {
|
|
234
|
+
backendConfig?: CreateMcpServerRequestGrayMcpServerConfigsBackendConfig;
|
|
235
|
+
match?: HttpRouteMatch;
|
|
236
|
+
routeId?: string;
|
|
237
|
+
static names(): { [key: string]: string } {
|
|
238
|
+
return {
|
|
239
|
+
backendConfig: 'backendConfig',
|
|
240
|
+
match: 'match',
|
|
241
|
+
routeId: 'routeId',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static types(): { [key: string]: any } {
|
|
246
|
+
return {
|
|
247
|
+
backendConfig: CreateMcpServerRequestGrayMcpServerConfigsBackendConfig,
|
|
248
|
+
match: HttpRouteMatch,
|
|
249
|
+
routeId: 'string',
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
validate() {
|
|
254
|
+
if(this.backendConfig && typeof (this.backendConfig as any).validate === 'function') {
|
|
255
|
+
(this.backendConfig as any).validate();
|
|
256
|
+
}
|
|
257
|
+
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
258
|
+
(this.match as any).validate();
|
|
259
|
+
}
|
|
260
|
+
super.validate();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
constructor(map?: { [key: string]: any }) {
|
|
264
|
+
super(map);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
169
268
|
export class CreateMcpServerRequest extends $dara.Model {
|
|
170
269
|
/**
|
|
171
270
|
* @remarks
|
|
@@ -213,6 +312,7 @@ export class CreateMcpServerRequest extends $dara.Model {
|
|
|
213
312
|
* gw-cq7l5s5lhtgi6qac0
|
|
214
313
|
*/
|
|
215
314
|
gatewayId?: string;
|
|
315
|
+
grayMcpServerConfigs?: CreateMcpServerRequestGrayMcpServerConfigs[];
|
|
216
316
|
/**
|
|
217
317
|
* @remarks
|
|
218
318
|
* The route match rule.
|
|
@@ -265,6 +365,7 @@ export class CreateMcpServerRequest extends $dara.Model {
|
|
|
265
365
|
domainIds: 'domainIds',
|
|
266
366
|
exposedUriPath: 'exposedUriPath',
|
|
267
367
|
gatewayId: 'gatewayId',
|
|
368
|
+
grayMcpServerConfigs: 'grayMcpServerConfigs',
|
|
268
369
|
match: 'match',
|
|
269
370
|
mcpStatisticsEnable: 'mcpStatisticsEnable',
|
|
270
371
|
name: 'name',
|
|
@@ -282,6 +383,7 @@ export class CreateMcpServerRequest extends $dara.Model {
|
|
|
282
383
|
domainIds: { 'type': 'array', 'itemType': 'string' },
|
|
283
384
|
exposedUriPath: 'string',
|
|
284
385
|
gatewayId: 'string',
|
|
386
|
+
grayMcpServerConfigs: { 'type': 'array', 'itemType': CreateMcpServerRequestGrayMcpServerConfigs },
|
|
285
387
|
match: HttpRouteMatch,
|
|
286
388
|
mcpStatisticsEnable: 'boolean',
|
|
287
389
|
name: 'string',
|
|
@@ -300,6 +402,9 @@ export class CreateMcpServerRequest extends $dara.Model {
|
|
|
300
402
|
if(Array.isArray(this.domainIds)) {
|
|
301
403
|
$dara.Model.validateArray(this.domainIds);
|
|
302
404
|
}
|
|
405
|
+
if(Array.isArray(this.grayMcpServerConfigs)) {
|
|
406
|
+
$dara.Model.validateArray(this.grayMcpServerConfigs);
|
|
407
|
+
}
|
|
303
408
|
if(this.match && typeof (this.match as any).validate === 'function') {
|
|
304
409
|
(this.match as any).validate();
|
|
305
410
|
}
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The tag key.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -12,6 +14,9 @@ export class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
|
12
14
|
*/
|
|
13
15
|
key?: string;
|
|
14
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The tag value.
|
|
19
|
+
*
|
|
15
20
|
* @example
|
|
16
21
|
* cn-hangzhou-j
|
|
17
22
|
*/
|
|
@@ -42,11 +47,15 @@ export class CreateServiceVersionRequestLabels extends $dara.Model {
|
|
|
42
47
|
export class CreateServiceVersionRequest extends $dara.Model {
|
|
43
48
|
/**
|
|
44
49
|
* @remarks
|
|
50
|
+
* The service tags.
|
|
51
|
+
*
|
|
45
52
|
* This parameter is required.
|
|
46
53
|
*/
|
|
47
54
|
labels?: CreateServiceVersionRequestLabels[];
|
|
48
55
|
/**
|
|
49
56
|
* @remarks
|
|
57
|
+
* The version name.
|
|
58
|
+
*
|
|
50
59
|
* This parameter is required.
|
|
51
60
|
*
|
|
52
61
|
* @example
|
|
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class CreateServiceVersionResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The status code.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* Ok
|
|
9
12
|
*/
|
|
10
13
|
code?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The 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
|
* 0B373A13-9BB8-5068-9C94-AD6D39E6BBA2
|
|
19
28
|
*/
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules extends $dara.Model {
|
|
6
|
+
description?: string;
|
|
7
|
+
portRanges?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* sg-bp14w4fa4j***
|
|
11
|
+
*/
|
|
12
|
+
securityGroupId?: string;
|
|
13
|
+
static names(): { [key: string]: string } {
|
|
14
|
+
return {
|
|
15
|
+
description: 'description',
|
|
16
|
+
portRanges: 'portRanges',
|
|
17
|
+
securityGroupId: 'securityGroupId',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static types(): { [key: string]: any } {
|
|
22
|
+
return {
|
|
23
|
+
description: 'string',
|
|
24
|
+
portRanges: { 'type': 'array', 'itemType': 'string' },
|
|
25
|
+
securityGroupId: 'string',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
validate() {
|
|
30
|
+
if(Array.isArray(this.portRanges)) {
|
|
31
|
+
$dara.Model.validateArray(this.portRanges);
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class CreateSourceRequestK8sSourceConfig extends $dara.Model {
|
|
42
|
+
authorizeSecurityGroupRules?: CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules[];
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* c3fbe6caaaece4062b*****
|
|
46
|
+
*/
|
|
47
|
+
clusterId?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
authorizeSecurityGroupRules: 'authorizeSecurityGroupRules',
|
|
51
|
+
clusterId: 'clusterId',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static types(): { [key: string]: any } {
|
|
56
|
+
return {
|
|
57
|
+
authorizeSecurityGroupRules: { 'type': 'array', 'itemType': CreateSourceRequestK8sSourceConfigAuthorizeSecurityGroupRules },
|
|
58
|
+
clusterId: 'string',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
validate() {
|
|
63
|
+
if(Array.isArray(this.authorizeSecurityGroupRules)) {
|
|
64
|
+
$dara.Model.validateArray(this.authorizeSecurityGroupRules);
|
|
65
|
+
}
|
|
66
|
+
super.validate();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
constructor(map?: { [key: string]: any }) {
|
|
70
|
+
super(map);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class CreateSourceRequestNacosSourceConfig extends $dara.Model {
|
|
75
|
+
/**
|
|
76
|
+
* @example
|
|
77
|
+
* mse-cn-0dw3w***
|
|
78
|
+
*/
|
|
79
|
+
instanceId?: string;
|
|
80
|
+
static names(): { [key: string]: string } {
|
|
81
|
+
return {
|
|
82
|
+
instanceId: 'instanceId',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static types(): { [key: string]: any } {
|
|
87
|
+
return {
|
|
88
|
+
instanceId: 'string',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
validate() {
|
|
93
|
+
super.validate();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
constructor(map?: { [key: string]: any }) {
|
|
97
|
+
super(map);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export class CreateSourceRequest extends $dara.Model {
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* gw-cq7l5s5lhtgi6q***
|
|
105
|
+
*/
|
|
106
|
+
gatewayId?: string;
|
|
107
|
+
k8sSourceConfig?: CreateSourceRequestK8sSourceConfig;
|
|
108
|
+
nacosSourceConfig?: CreateSourceRequestNacosSourceConfig;
|
|
109
|
+
resourceGroupId?: string;
|
|
110
|
+
/**
|
|
111
|
+
* @example
|
|
112
|
+
* MSE_NACOS
|
|
113
|
+
*/
|
|
114
|
+
type?: string;
|
|
115
|
+
static names(): { [key: string]: string } {
|
|
116
|
+
return {
|
|
117
|
+
gatewayId: 'gatewayId',
|
|
118
|
+
k8sSourceConfig: 'k8sSourceConfig',
|
|
119
|
+
nacosSourceConfig: 'nacosSourceConfig',
|
|
120
|
+
resourceGroupId: 'resourceGroupId',
|
|
121
|
+
type: 'type',
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static types(): { [key: string]: any } {
|
|
126
|
+
return {
|
|
127
|
+
gatewayId: 'string',
|
|
128
|
+
k8sSourceConfig: CreateSourceRequestK8sSourceConfig,
|
|
129
|
+
nacosSourceConfig: CreateSourceRequestNacosSourceConfig,
|
|
130
|
+
resourceGroupId: 'string',
|
|
131
|
+
type: 'string',
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
validate() {
|
|
136
|
+
if(this.k8sSourceConfig && typeof (this.k8sSourceConfig as any).validate === 'function') {
|
|
137
|
+
(this.k8sSourceConfig as any).validate();
|
|
138
|
+
}
|
|
139
|
+
if(this.nacosSourceConfig && typeof (this.nacosSourceConfig as any).validate === 'function') {
|
|
140
|
+
(this.nacosSourceConfig as any).validate();
|
|
141
|
+
}
|
|
142
|
+
super.validate();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
constructor(map?: { [key: string]: any }) {
|
|
146
|
+
super(map);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateSourceResponseBody } from "./CreateSourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateSourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateSourceResponseBody;
|
|
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: CreateSourceResponseBody,
|
|
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
|
+
|