@alicloud/apig20240327 10.1.3 → 10.2.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 +90 -0
- package/dist/client.js +281 -21
- package/dist/client.js.map +1 -1
- package/dist/models/ApiKeyIdentityConfig.d.ts +1 -1
- package/dist/models/BatchExportHttpApisRequest.d.ts +54 -0
- package/dist/models/BatchExportHttpApisRequest.js +99 -0
- package/dist/models/BatchExportHttpApisRequest.js.map +1 -0
- package/dist/models/BatchExportHttpApisResponse.d.ts +19 -0
- package/dist/models/BatchExportHttpApisResponse.js +69 -0
- package/dist/models/BatchExportHttpApisResponse.js.map +1 -0
- package/dist/models/BatchExportHttpApisResponseBody.d.ts +46 -0
- package/dist/models/BatchExportHttpApisResponseBody.js +86 -0
- package/dist/models/BatchExportHttpApisResponseBody.js.map +1 -0
- package/dist/models/BatchImportHttpApisRequest.d.ts +81 -0
- package/dist/models/BatchImportHttpApisRequest.js +100 -0
- package/dist/models/BatchImportHttpApisRequest.js.map +1 -0
- package/dist/models/BatchImportHttpApisResponse.d.ts +19 -0
- package/dist/models/BatchImportHttpApisResponse.js +69 -0
- package/dist/models/BatchImportHttpApisResponse.js.map +1 -0
- package/dist/models/BatchImportHttpApisResponseBody.d.ts +46 -0
- package/dist/models/BatchImportHttpApisResponseBody.js +86 -0
- package/dist/models/BatchImportHttpApisResponseBody.js.map +1 -0
- package/dist/models/DeployHttpApiRequest.d.ts +5 -5
- package/dist/models/GetBatchExportTaskRequest.d.ts +13 -0
- package/dist/models/GetBatchExportTaskRequest.js +54 -0
- package/dist/models/GetBatchExportTaskRequest.js.map +1 -0
- package/dist/models/GetBatchExportTaskResponse.d.ts +19 -0
- package/dist/models/GetBatchExportTaskResponse.js +69 -0
- package/dist/models/GetBatchExportTaskResponse.js.map +1 -0
- package/dist/models/GetBatchExportTaskResponseBody.d.ts +160 -0
- package/dist/models/GetBatchExportTaskResponseBody.js +182 -0
- package/dist/models/GetBatchExportTaskResponseBody.js.map +1 -0
- package/dist/models/GetBatchImportTaskRequest.d.ts +13 -0
- package/dist/models/GetBatchImportTaskRequest.js +54 -0
- package/dist/models/GetBatchImportTaskRequest.js.map +1 -0
- package/dist/models/GetBatchImportTaskResponse.d.ts +19 -0
- package/dist/models/GetBatchImportTaskResponse.js +69 -0
- package/dist/models/GetBatchImportTaskResponse.js.map +1 -0
- package/dist/models/GetBatchImportTaskResponseBody.d.ts +515 -0
- package/dist/models/GetBatchImportTaskResponseBody.js +538 -0
- package/dist/models/GetBatchImportTaskResponseBody.js.map +1 -0
- package/dist/models/ListBatchExportTasksRequest.d.ts +53 -0
- package/dist/models/ListBatchExportTasksRequest.js +72 -0
- package/dist/models/ListBatchExportTasksRequest.js.map +1 -0
- package/dist/models/ListBatchExportTasksResponse.d.ts +19 -0
- package/dist/models/ListBatchExportTasksResponse.js +69 -0
- package/dist/models/ListBatchExportTasksResponse.js.map +1 -0
- package/dist/models/ListBatchExportTasksResponseBody.d.ts +119 -0
- package/dist/models/ListBatchExportTasksResponseBody.js +132 -0
- package/dist/models/ListBatchExportTasksResponseBody.js.map +1 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +6 -1
- package/dist/models/QueryConsumerAuthorizationRulesRequest.js +2 -0
- package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -1
- package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +41 -0
- package/dist/models/model.js +98 -15
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +314 -21
- package/src/models/ApiKeyIdentityConfig.ts +1 -1
- package/src/models/BatchExportHttpApisRequest.ts +99 -0
- package/src/models/BatchExportHttpApisResponse.ts +40 -0
- package/src/models/BatchExportHttpApisResponseBody.ts +78 -0
- package/src/models/BatchImportHttpApisRequest.ts +127 -0
- package/src/models/BatchImportHttpApisResponse.ts +40 -0
- package/src/models/BatchImportHttpApisResponseBody.ts +78 -0
- package/src/models/DeployHttpApiRequest.ts +5 -5
- package/src/models/GetBatchExportTaskRequest.ts +24 -0
- package/src/models/GetBatchExportTaskResponse.ts +40 -0
- package/src/models/GetBatchExportTaskResponseBody.ts +261 -0
- package/src/models/GetBatchImportTaskRequest.ts +24 -0
- package/src/models/GetBatchImportTaskResponse.ts +40 -0
- package/src/models/GetBatchImportTaskResponseBody.ts +864 -0
- package/src/models/ListBatchExportTasksRequest.ts +80 -0
- package/src/models/ListBatchExportTasksResponse.ts +40 -0
- package/src/models/ListBatchExportTasksResponseBody.ts +188 -0
- package/src/models/QueryConsumerAuthorizationRulesRequest.ts +8 -1
- package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +1 -1
- package/src/models/model.ts +41 -0
package/src/client.ts
CHANGED
|
@@ -13,31 +13,31 @@ export default class Client extends OpenApi {
|
|
|
13
13
|
super(config);
|
|
14
14
|
this._endpointRule = "regional";
|
|
15
15
|
this._endpointMap = {
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'me-central-1': "apig.me-central-1.aliyuncs.com",
|
|
20
|
-
'eu-west-1': "apig.eu-west-1.aliyuncs.com",
|
|
21
|
-
'eu-central-1': "apig.eu-central-1.aliyuncs.com",
|
|
22
|
-
'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
|
|
23
|
-
'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
|
|
24
|
-
'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
|
|
25
|
-
'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
|
|
26
|
-
'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
|
|
27
|
-
'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
|
|
28
|
-
'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
|
|
29
|
-
'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
|
|
16
|
+
'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
|
|
17
|
+
'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
|
|
18
|
+
'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
|
|
30
19
|
'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
|
|
31
|
-
'cn-
|
|
20
|
+
'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
|
|
21
|
+
'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
|
|
22
|
+
'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
|
|
32
23
|
'cn-beijing': "apig.cn-beijing.aliyuncs.com",
|
|
33
|
-
'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
|
|
34
|
-
'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
|
|
35
|
-
'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
|
|
36
|
-
'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
|
|
37
|
-
'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
|
|
38
|
-
'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
|
|
39
24
|
'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
|
|
40
25
|
'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
|
|
26
|
+
'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
|
|
27
|
+
'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
|
|
28
|
+
'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
|
|
29
|
+
'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
|
|
30
|
+
'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
|
|
31
|
+
'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
|
|
32
|
+
'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
|
|
33
|
+
'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
|
|
34
|
+
'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
|
|
35
|
+
'us-west-1': "apig.us-west-1.aliyuncs.com",
|
|
36
|
+
'us-east-1': "apig.us-east-1.aliyuncs.com",
|
|
37
|
+
'eu-central-1': "apig.eu-central-1.aliyuncs.com",
|
|
38
|
+
'eu-west-1': "apig.eu-west-1.aliyuncs.com",
|
|
39
|
+
'me-east-1': "apig.me-east-1.aliyuncs.com",
|
|
40
|
+
'me-central-1': "apig.me-central-1.aliyuncs.com",
|
|
41
41
|
};
|
|
42
42
|
this.checkConfig(config);
|
|
43
43
|
this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -310,6 +310,144 @@ export default class Client extends OpenApi {
|
|
|
310
310
|
return await this.batchDeleteConsumerAuthorizationRuleWithOptions(request, headers, runtime);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
/**
|
|
314
|
+
* 批量导出HTTP API
|
|
315
|
+
*
|
|
316
|
+
* @param request - BatchExportHttpApisRequest
|
|
317
|
+
* @param headers - map
|
|
318
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
319
|
+
* @returns BatchExportHttpApisResponse
|
|
320
|
+
*/
|
|
321
|
+
async batchExportHttpApisWithOptions(request: $_model.BatchExportHttpApisRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.BatchExportHttpApisResponse> {
|
|
322
|
+
request.validate();
|
|
323
|
+
let body : {[key: string ]: any} = { };
|
|
324
|
+
if (!$dara.isNull(request.apiIds)) {
|
|
325
|
+
body["apiIds"] = request.apiIds;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (!$dara.isNull(request.apiType)) {
|
|
329
|
+
body["apiType"] = request.apiType;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (!$dara.isNull(request.extensionConfig)) {
|
|
333
|
+
body["extensionConfig"] = request.extensionConfig;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (!$dara.isNull(request.format)) {
|
|
337
|
+
body["format"] = request.format;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
341
|
+
body["gatewayId"] = request.gatewayId;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
345
|
+
headers: headers,
|
|
346
|
+
body: OpenApiUtil.parseToMap(body),
|
|
347
|
+
});
|
|
348
|
+
let params = new $OpenApiUtil.Params({
|
|
349
|
+
action: "BatchExportHttpApis",
|
|
350
|
+
version: "2024-03-27",
|
|
351
|
+
protocol: "HTTPS",
|
|
352
|
+
pathname: `/v1/http-apis/batch-export`,
|
|
353
|
+
method: "POST",
|
|
354
|
+
authType: "AK",
|
|
355
|
+
style: "ROA",
|
|
356
|
+
reqBodyType: "json",
|
|
357
|
+
bodyType: "json",
|
|
358
|
+
});
|
|
359
|
+
return $dara.cast<$_model.BatchExportHttpApisResponse>(await this.callApi(params, req, runtime), new $_model.BatchExportHttpApisResponse({}));
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* 批量导出HTTP API
|
|
364
|
+
*
|
|
365
|
+
* @param request - BatchExportHttpApisRequest
|
|
366
|
+
* @returns BatchExportHttpApisResponse
|
|
367
|
+
*/
|
|
368
|
+
async batchExportHttpApis(request: $_model.BatchExportHttpApisRequest): Promise<$_model.BatchExportHttpApisResponse> {
|
|
369
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
370
|
+
let headers : {[key: string ]: string} = { };
|
|
371
|
+
return await this.batchExportHttpApisWithOptions(request, headers, runtime);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* 批量导入HTTP API
|
|
376
|
+
*
|
|
377
|
+
* @param request - BatchImportHttpApisRequest
|
|
378
|
+
* @param headers - map
|
|
379
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
380
|
+
* @returns BatchImportHttpApisResponse
|
|
381
|
+
*/
|
|
382
|
+
async batchImportHttpApisWithOptions(request: $_model.BatchImportHttpApisRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.BatchImportHttpApisResponse> {
|
|
383
|
+
request.validate();
|
|
384
|
+
let body : {[key: string ]: any} = { };
|
|
385
|
+
if (!$dara.isNull(request.allowUpdate)) {
|
|
386
|
+
body["allowUpdate"] = request.allowUpdate;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (!$dara.isNull(request.apiType)) {
|
|
390
|
+
body["apiType"] = request.apiType;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
394
|
+
body["dryRun"] = request.dryRun;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
398
|
+
body["gatewayId"] = request.gatewayId;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
402
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (!$dara.isNull(request.specFileUrl)) {
|
|
406
|
+
body["specFileUrl"] = request.specFileUrl;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (!$dara.isNull(request.specOssConfig)) {
|
|
410
|
+
body["specOssConfig"] = request.specOssConfig;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (!$dara.isNull(request.strategy)) {
|
|
414
|
+
body["strategy"] = request.strategy;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (!$dara.isNull(request.withGatewayExtension)) {
|
|
418
|
+
body["withGatewayExtension"] = request.withGatewayExtension;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
422
|
+
headers: headers,
|
|
423
|
+
body: OpenApiUtil.parseToMap(body),
|
|
424
|
+
});
|
|
425
|
+
let params = new $OpenApiUtil.Params({
|
|
426
|
+
action: "BatchImportHttpApis",
|
|
427
|
+
version: "2024-03-27",
|
|
428
|
+
protocol: "HTTPS",
|
|
429
|
+
pathname: `/v1/http-apis/batch-import`,
|
|
430
|
+
method: "POST",
|
|
431
|
+
authType: "AK",
|
|
432
|
+
style: "ROA",
|
|
433
|
+
reqBodyType: "json",
|
|
434
|
+
bodyType: "json",
|
|
435
|
+
});
|
|
436
|
+
return $dara.cast<$_model.BatchImportHttpApisResponse>(await this.callApi(params, req, runtime), new $_model.BatchImportHttpApisResponse({}));
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* 批量导入HTTP API
|
|
441
|
+
*
|
|
442
|
+
* @param request - BatchImportHttpApisRequest
|
|
443
|
+
* @returns BatchImportHttpApisResponse
|
|
444
|
+
*/
|
|
445
|
+
async batchImportHttpApis(request: $_model.BatchImportHttpApisRequest): Promise<$_model.BatchImportHttpApisResponse> {
|
|
446
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
447
|
+
let headers : {[key: string ]: string} = { };
|
|
448
|
+
return await this.batchImportHttpApisWithOptions(request, headers, runtime);
|
|
449
|
+
}
|
|
450
|
+
|
|
313
451
|
/**
|
|
314
452
|
* Removes consumer group members in batches.
|
|
315
453
|
*
|
|
@@ -3054,6 +3192,84 @@ export default class Client extends OpenApi {
|
|
|
3054
3192
|
return await this.getAiModelProviderWithOptions(modelProviderId, request, headers, runtime);
|
|
3055
3193
|
}
|
|
3056
3194
|
|
|
3195
|
+
/**
|
|
3196
|
+
* 查询批量导出任务
|
|
3197
|
+
*
|
|
3198
|
+
* @param request - GetBatchExportTaskRequest
|
|
3199
|
+
* @param headers - map
|
|
3200
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3201
|
+
* @returns GetBatchExportTaskResponse
|
|
3202
|
+
*/
|
|
3203
|
+
async getBatchExportTaskWithOptions(taskId: string, request: $_model.GetBatchExportTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchExportTaskResponse> {
|
|
3204
|
+
request.validate();
|
|
3205
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3206
|
+
headers: headers,
|
|
3207
|
+
});
|
|
3208
|
+
let params = new $OpenApiUtil.Params({
|
|
3209
|
+
action: "GetBatchExportTask",
|
|
3210
|
+
version: "2024-03-27",
|
|
3211
|
+
protocol: "HTTPS",
|
|
3212
|
+
pathname: `/v1/http-api-batch-export-tasks/${$dara.URL.percentEncode(taskId)}`,
|
|
3213
|
+
method: "GET",
|
|
3214
|
+
authType: "AK",
|
|
3215
|
+
style: "ROA",
|
|
3216
|
+
reqBodyType: "json",
|
|
3217
|
+
bodyType: "json",
|
|
3218
|
+
});
|
|
3219
|
+
return $dara.cast<$_model.GetBatchExportTaskResponse>(await this.callApi(params, req, runtime), new $_model.GetBatchExportTaskResponse({}));
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
/**
|
|
3223
|
+
* 查询批量导出任务
|
|
3224
|
+
*
|
|
3225
|
+
* @param request - GetBatchExportTaskRequest
|
|
3226
|
+
* @returns GetBatchExportTaskResponse
|
|
3227
|
+
*/
|
|
3228
|
+
async getBatchExportTask(taskId: string, request: $_model.GetBatchExportTaskRequest): Promise<$_model.GetBatchExportTaskResponse> {
|
|
3229
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3230
|
+
let headers : {[key: string ]: string} = { };
|
|
3231
|
+
return await this.getBatchExportTaskWithOptions(taskId, request, headers, runtime);
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* 查询批量操作任务
|
|
3236
|
+
*
|
|
3237
|
+
* @param request - GetBatchImportTaskRequest
|
|
3238
|
+
* @param headers - map
|
|
3239
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3240
|
+
* @returns GetBatchImportTaskResponse
|
|
3241
|
+
*/
|
|
3242
|
+
async getBatchImportTaskWithOptions(taskId: string, request: $_model.GetBatchImportTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchImportTaskResponse> {
|
|
3243
|
+
request.validate();
|
|
3244
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3245
|
+
headers: headers,
|
|
3246
|
+
});
|
|
3247
|
+
let params = new $OpenApiUtil.Params({
|
|
3248
|
+
action: "GetBatchImportTask",
|
|
3249
|
+
version: "2024-03-27",
|
|
3250
|
+
protocol: "HTTPS",
|
|
3251
|
+
pathname: `/v1/http-api-batch-import-tasks/${$dara.URL.percentEncode(taskId)}`,
|
|
3252
|
+
method: "GET",
|
|
3253
|
+
authType: "AK",
|
|
3254
|
+
style: "ROA",
|
|
3255
|
+
reqBodyType: "json",
|
|
3256
|
+
bodyType: "json",
|
|
3257
|
+
});
|
|
3258
|
+
return $dara.cast<$_model.GetBatchImportTaskResponse>(await this.callApi(params, req, runtime), new $_model.GetBatchImportTaskResponse({}));
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* 查询批量操作任务
|
|
3263
|
+
*
|
|
3264
|
+
* @param request - GetBatchImportTaskRequest
|
|
3265
|
+
* @returns GetBatchImportTaskResponse
|
|
3266
|
+
*/
|
|
3267
|
+
async getBatchImportTask(taskId: string, request: $_model.GetBatchImportTaskRequest): Promise<$_model.GetBatchImportTaskResponse> {
|
|
3268
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3269
|
+
let headers : {[key: string ]: string} = { };
|
|
3270
|
+
return await this.getBatchImportTaskWithOptions(taskId, request, headers, runtime);
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3057
3273
|
/**
|
|
3058
3274
|
* Retrieves an API consumer.
|
|
3059
3275
|
*
|
|
@@ -4290,6 +4506,79 @@ export default class Client extends OpenApi {
|
|
|
4290
4506
|
return await this.listAiModelProvidersWithOptions(request, headers, runtime);
|
|
4291
4507
|
}
|
|
4292
4508
|
|
|
4509
|
+
/**
|
|
4510
|
+
* 查询批量导出任务列表
|
|
4511
|
+
*
|
|
4512
|
+
* @param request - ListBatchExportTasksRequest
|
|
4513
|
+
* @param headers - map
|
|
4514
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4515
|
+
* @returns ListBatchExportTasksResponse
|
|
4516
|
+
*/
|
|
4517
|
+
async listBatchExportTasksWithOptions(request: $_model.ListBatchExportTasksRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListBatchExportTasksResponse> {
|
|
4518
|
+
request.validate();
|
|
4519
|
+
let query : {[key: string ]: any} = { };
|
|
4520
|
+
if (!$dara.isNull(request.endTime)) {
|
|
4521
|
+
query["endTime"] = request.endTime;
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4524
|
+
if (!$dara.isNull(request.gatewayId)) {
|
|
4525
|
+
query["gatewayId"] = request.gatewayId;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4529
|
+
query["maxResults"] = request.maxResults;
|
|
4530
|
+
}
|
|
4531
|
+
|
|
4532
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4533
|
+
query["nextToken"] = request.nextToken;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4537
|
+
query["pageNumber"] = request.pageNumber;
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4541
|
+
query["pageSize"] = request.pageSize;
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
if (!$dara.isNull(request.startTime)) {
|
|
4545
|
+
query["startTime"] = request.startTime;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
if (!$dara.isNull(request.statuses)) {
|
|
4549
|
+
query["statuses"] = request.statuses;
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4553
|
+
headers: headers,
|
|
4554
|
+
query: OpenApiUtil.query(query),
|
|
4555
|
+
});
|
|
4556
|
+
let params = new $OpenApiUtil.Params({
|
|
4557
|
+
action: "ListBatchExportTasks",
|
|
4558
|
+
version: "2024-03-27",
|
|
4559
|
+
protocol: "HTTPS",
|
|
4560
|
+
pathname: `/v1/http-api-batch-export-tasks`,
|
|
4561
|
+
method: "GET",
|
|
4562
|
+
authType: "AK",
|
|
4563
|
+
style: "ROA",
|
|
4564
|
+
reqBodyType: "json",
|
|
4565
|
+
bodyType: "json",
|
|
4566
|
+
});
|
|
4567
|
+
return $dara.cast<$_model.ListBatchExportTasksResponse>(await this.callApi(params, req, runtime), new $_model.ListBatchExportTasksResponse({}));
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* 查询批量导出任务列表
|
|
4572
|
+
*
|
|
4573
|
+
* @param request - ListBatchExportTasksRequest
|
|
4574
|
+
* @returns ListBatchExportTasksResponse
|
|
4575
|
+
*/
|
|
4576
|
+
async listBatchExportTasks(request: $_model.ListBatchExportTasksRequest): Promise<$_model.ListBatchExportTasksResponse> {
|
|
4577
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4578
|
+
let headers : {[key: string ]: string} = { };
|
|
4579
|
+
return await this.listBatchExportTasksWithOptions(request, headers, runtime);
|
|
4580
|
+
}
|
|
4581
|
+
|
|
4293
4582
|
/**
|
|
4294
4583
|
* Retrieves the list of consumer authorization rules.
|
|
4295
4584
|
*
|
|
@@ -6102,6 +6391,10 @@ export default class Client extends OpenApi {
|
|
|
6102
6391
|
query["consumerGroupId"] = request.consumerGroupId;
|
|
6103
6392
|
}
|
|
6104
6393
|
|
|
6394
|
+
if (!$dara.isNull(request.consumerGroupNameLike)) {
|
|
6395
|
+
query["consumerGroupNameLike"] = request.consumerGroupNameLike;
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6105
6398
|
if (!$dara.isNull(request.consumerId)) {
|
|
6106
6399
|
query["consumerId"] = request.consumerId;
|
|
6107
6400
|
}
|
|
@@ -124,7 +124,7 @@ export class ApiKeyIdentityConfig extends $dara.Model {
|
|
|
124
124
|
apikeySource?: ApiKeyIdentityConfigApikeySource;
|
|
125
125
|
/**
|
|
126
126
|
* @remarks
|
|
127
|
-
* The complete set of API key credential sources. The set contains one to three items. Multiple sources are applicable only to
|
|
127
|
+
* The complete set of API key credential sources. The set contains one to three items. Multiple sources are applicable only to AI gateway Header mode. Query String and non-AI gateway allow only a single source. When submitted together with apikeySource, the latter must be consistent with the compatible projection.
|
|
128
128
|
*/
|
|
129
129
|
apikeySources?: ApiKeyIdentityConfigApikeySources[];
|
|
130
130
|
/**
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class BatchExportHttpApisRequestExtensionConfig extends $dara.Model {
|
|
6
|
+
withAuthConfig?: boolean;
|
|
7
|
+
withAuthConsumer?: boolean;
|
|
8
|
+
withPlugin?: boolean;
|
|
9
|
+
withPolicy?: boolean;
|
|
10
|
+
withService?: boolean;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
withAuthConfig: 'withAuthConfig',
|
|
14
|
+
withAuthConsumer: 'withAuthConsumer',
|
|
15
|
+
withPlugin: 'withPlugin',
|
|
16
|
+
withPolicy: 'withPolicy',
|
|
17
|
+
withService: 'withService',
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static types(): { [key: string]: any } {
|
|
22
|
+
return {
|
|
23
|
+
withAuthConfig: 'boolean',
|
|
24
|
+
withAuthConsumer: 'boolean',
|
|
25
|
+
withPlugin: 'boolean',
|
|
26
|
+
withPolicy: 'boolean',
|
|
27
|
+
withService: 'boolean',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
validate() {
|
|
32
|
+
super.validate();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
constructor(map?: { [key: string]: any }) {
|
|
36
|
+
super(map);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class BatchExportHttpApisRequest extends $dara.Model {
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* This parameter is required.
|
|
44
|
+
*/
|
|
45
|
+
apiIds?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* This parameter is required.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* Http
|
|
52
|
+
*/
|
|
53
|
+
apiType?: string;
|
|
54
|
+
extensionConfig?: BatchExportHttpApisRequestExtensionConfig;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* yaml
|
|
58
|
+
*/
|
|
59
|
+
format?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* gw-xxx
|
|
63
|
+
*/
|
|
64
|
+
gatewayId?: string;
|
|
65
|
+
static names(): { [key: string]: string } {
|
|
66
|
+
return {
|
|
67
|
+
apiIds: 'apiIds',
|
|
68
|
+
apiType: 'apiType',
|
|
69
|
+
extensionConfig: 'extensionConfig',
|
|
70
|
+
format: 'format',
|
|
71
|
+
gatewayId: 'gatewayId',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static types(): { [key: string]: any } {
|
|
76
|
+
return {
|
|
77
|
+
apiIds: { 'type': 'array', 'itemType': 'string' },
|
|
78
|
+
apiType: 'string',
|
|
79
|
+
extensionConfig: BatchExportHttpApisRequestExtensionConfig,
|
|
80
|
+
format: 'string',
|
|
81
|
+
gatewayId: 'string',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
validate() {
|
|
86
|
+
if(Array.isArray(this.apiIds)) {
|
|
87
|
+
$dara.Model.validateArray(this.apiIds);
|
|
88
|
+
}
|
|
89
|
+
if(this.extensionConfig && typeof (this.extensionConfig as any).validate === 'function') {
|
|
90
|
+
(this.extensionConfig as any).validate();
|
|
91
|
+
}
|
|
92
|
+
super.validate();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
constructor(map?: { [key: string]: any }) {
|
|
96
|
+
super(map);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { BatchExportHttpApisResponseBody } from "./BatchExportHttpApisResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class BatchExportHttpApisResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: BatchExportHttpApisResponseBody;
|
|
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: BatchExportHttpApisResponseBody,
|
|
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,78 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class BatchExportHttpApisResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* async-task-xxx
|
|
9
|
+
*/
|
|
10
|
+
taskId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
taskId: 'taskId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
taskId: '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 BatchExportHttpApisResponseBody extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* Ok
|
|
36
|
+
*/
|
|
37
|
+
code?: string;
|
|
38
|
+
data?: BatchExportHttpApisResponseBodyData;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* CE534E1D-FCE4-5930-B784-E055EC1AEE6F
|
|
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: BatchExportHttpApisResponseBodyData,
|
|
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
|
+
|