@alicloud/apig20240327 10.1.4 → 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.
Files changed (76) hide show
  1. package/dist/client.d.ts +90 -0
  2. package/dist/client.js +278 -21
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchExportHttpApisRequest.d.ts +54 -0
  5. package/dist/models/BatchExportHttpApisRequest.js +99 -0
  6. package/dist/models/BatchExportHttpApisRequest.js.map +1 -0
  7. package/dist/models/BatchExportHttpApisResponse.d.ts +19 -0
  8. package/dist/models/BatchExportHttpApisResponse.js +69 -0
  9. package/dist/models/BatchExportHttpApisResponse.js.map +1 -0
  10. package/dist/models/BatchExportHttpApisResponseBody.d.ts +46 -0
  11. package/dist/models/BatchExportHttpApisResponseBody.js +86 -0
  12. package/dist/models/BatchExportHttpApisResponseBody.js.map +1 -0
  13. package/dist/models/BatchImportHttpApisRequest.d.ts +81 -0
  14. package/dist/models/BatchImportHttpApisRequest.js +100 -0
  15. package/dist/models/BatchImportHttpApisRequest.js.map +1 -0
  16. package/dist/models/BatchImportHttpApisResponse.d.ts +19 -0
  17. package/dist/models/BatchImportHttpApisResponse.js +69 -0
  18. package/dist/models/BatchImportHttpApisResponse.js.map +1 -0
  19. package/dist/models/BatchImportHttpApisResponseBody.d.ts +46 -0
  20. package/dist/models/BatchImportHttpApisResponseBody.js +86 -0
  21. package/dist/models/BatchImportHttpApisResponseBody.js.map +1 -0
  22. package/dist/models/DeployHttpApiRequest.d.ts +5 -5
  23. package/dist/models/GetBatchExportTaskRequest.d.ts +13 -0
  24. package/dist/models/GetBatchExportTaskRequest.js +54 -0
  25. package/dist/models/GetBatchExportTaskRequest.js.map +1 -0
  26. package/dist/models/GetBatchExportTaskResponse.d.ts +19 -0
  27. package/dist/models/GetBatchExportTaskResponse.js +69 -0
  28. package/dist/models/GetBatchExportTaskResponse.js.map +1 -0
  29. package/dist/models/GetBatchExportTaskResponseBody.d.ts +160 -0
  30. package/dist/models/GetBatchExportTaskResponseBody.js +182 -0
  31. package/dist/models/GetBatchExportTaskResponseBody.js.map +1 -0
  32. package/dist/models/GetBatchImportTaskRequest.d.ts +13 -0
  33. package/dist/models/GetBatchImportTaskRequest.js +54 -0
  34. package/dist/models/GetBatchImportTaskRequest.js.map +1 -0
  35. package/dist/models/GetBatchImportTaskResponse.d.ts +19 -0
  36. package/dist/models/GetBatchImportTaskResponse.js +69 -0
  37. package/dist/models/GetBatchImportTaskResponse.js.map +1 -0
  38. package/dist/models/GetBatchImportTaskResponseBody.d.ts +515 -0
  39. package/dist/models/GetBatchImportTaskResponseBody.js +538 -0
  40. package/dist/models/GetBatchImportTaskResponseBody.js.map +1 -0
  41. package/dist/models/ListBatchExportTasksRequest.d.ts +53 -0
  42. package/dist/models/ListBatchExportTasksRequest.js +72 -0
  43. package/dist/models/ListBatchExportTasksRequest.js.map +1 -0
  44. package/dist/models/ListBatchExportTasksResponse.d.ts +19 -0
  45. package/dist/models/ListBatchExportTasksResponse.js +69 -0
  46. package/dist/models/ListBatchExportTasksResponse.js.map +1 -0
  47. package/dist/models/ListBatchExportTasksResponseBody.d.ts +119 -0
  48. package/dist/models/ListBatchExportTasksResponseBody.js +132 -0
  49. package/dist/models/ListBatchExportTasksResponseBody.js.map +1 -0
  50. package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +5 -1
  51. package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -1
  52. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +1 -1
  53. package/dist/models/model.d.ts +41 -0
  54. package/dist/models/model.js +98 -15
  55. package/dist/models/model.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/client.ts +310 -21
  58. package/src/models/BatchExportHttpApisRequest.ts +99 -0
  59. package/src/models/BatchExportHttpApisResponse.ts +40 -0
  60. package/src/models/BatchExportHttpApisResponseBody.ts +78 -0
  61. package/src/models/BatchImportHttpApisRequest.ts +127 -0
  62. package/src/models/BatchImportHttpApisResponse.ts +40 -0
  63. package/src/models/BatchImportHttpApisResponseBody.ts +78 -0
  64. package/src/models/DeployHttpApiRequest.ts +5 -5
  65. package/src/models/GetBatchExportTaskRequest.ts +24 -0
  66. package/src/models/GetBatchExportTaskResponse.ts +40 -0
  67. package/src/models/GetBatchExportTaskResponseBody.ts +261 -0
  68. package/src/models/GetBatchImportTaskRequest.ts +24 -0
  69. package/src/models/GetBatchImportTaskResponse.ts +40 -0
  70. package/src/models/GetBatchImportTaskResponseBody.ts +864 -0
  71. package/src/models/ListBatchExportTasksRequest.ts +80 -0
  72. package/src/models/ListBatchExportTasksResponse.ts +40 -0
  73. package/src/models/ListBatchExportTasksResponseBody.ts +188 -0
  74. package/src/models/QueryConsumerAuthorizationRulesRequest.ts +5 -1
  75. package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +1 -1
  76. package/src/models/model.ts +41 -0
package/dist/client.d.ts CHANGED
@@ -102,6 +102,42 @@ export default class Client extends OpenApi {
102
102
  * @returns BatchDeleteConsumerAuthorizationRuleResponse
103
103
  */
104
104
  batchDeleteConsumerAuthorizationRule(request: $_model.BatchDeleteConsumerAuthorizationRuleRequest): Promise<$_model.BatchDeleteConsumerAuthorizationRuleResponse>;
105
+ /**
106
+ * 批量导出HTTP API
107
+ *
108
+ * @param request - BatchExportHttpApisRequest
109
+ * @param headers - map
110
+ * @param runtime - runtime options for this request RuntimeOptions
111
+ * @returns BatchExportHttpApisResponse
112
+ */
113
+ batchExportHttpApisWithOptions(request: $_model.BatchExportHttpApisRequest, headers: {
114
+ [key: string]: string;
115
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchExportHttpApisResponse>;
116
+ /**
117
+ * 批量导出HTTP API
118
+ *
119
+ * @param request - BatchExportHttpApisRequest
120
+ * @returns BatchExportHttpApisResponse
121
+ */
122
+ batchExportHttpApis(request: $_model.BatchExportHttpApisRequest): Promise<$_model.BatchExportHttpApisResponse>;
123
+ /**
124
+ * 批量导入HTTP API
125
+ *
126
+ * @param request - BatchImportHttpApisRequest
127
+ * @param headers - map
128
+ * @param runtime - runtime options for this request RuntimeOptions
129
+ * @returns BatchImportHttpApisResponse
130
+ */
131
+ batchImportHttpApisWithOptions(request: $_model.BatchImportHttpApisRequest, headers: {
132
+ [key: string]: string;
133
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.BatchImportHttpApisResponse>;
134
+ /**
135
+ * 批量导入HTTP API
136
+ *
137
+ * @param request - BatchImportHttpApisRequest
138
+ * @returns BatchImportHttpApisResponse
139
+ */
140
+ batchImportHttpApis(request: $_model.BatchImportHttpApisRequest): Promise<$_model.BatchImportHttpApisResponse>;
105
141
  /**
106
142
  * Removes consumer group members in batches.
107
143
  *
@@ -1037,6 +1073,42 @@ export default class Client extends OpenApi {
1037
1073
  * @returns GetAiModelProviderResponse
1038
1074
  */
1039
1075
  getAiModelProvider(modelProviderId: string, request: $_model.GetAiModelProviderRequest): Promise<$_model.GetAiModelProviderResponse>;
1076
+ /**
1077
+ * 查询批量导出任务
1078
+ *
1079
+ * @param request - GetBatchExportTaskRequest
1080
+ * @param headers - map
1081
+ * @param runtime - runtime options for this request RuntimeOptions
1082
+ * @returns GetBatchExportTaskResponse
1083
+ */
1084
+ getBatchExportTaskWithOptions(taskId: string, request: $_model.GetBatchExportTaskRequest, headers: {
1085
+ [key: string]: string;
1086
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchExportTaskResponse>;
1087
+ /**
1088
+ * 查询批量导出任务
1089
+ *
1090
+ * @param request - GetBatchExportTaskRequest
1091
+ * @returns GetBatchExportTaskResponse
1092
+ */
1093
+ getBatchExportTask(taskId: string, request: $_model.GetBatchExportTaskRequest): Promise<$_model.GetBatchExportTaskResponse>;
1094
+ /**
1095
+ * 查询批量操作任务
1096
+ *
1097
+ * @param request - GetBatchImportTaskRequest
1098
+ * @param headers - map
1099
+ * @param runtime - runtime options for this request RuntimeOptions
1100
+ * @returns GetBatchImportTaskResponse
1101
+ */
1102
+ getBatchImportTaskWithOptions(taskId: string, request: $_model.GetBatchImportTaskRequest, headers: {
1103
+ [key: string]: string;
1104
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetBatchImportTaskResponse>;
1105
+ /**
1106
+ * 查询批量操作任务
1107
+ *
1108
+ * @param request - GetBatchImportTaskRequest
1109
+ * @returns GetBatchImportTaskResponse
1110
+ */
1111
+ getBatchImportTask(taskId: string, request: $_model.GetBatchImportTaskRequest): Promise<$_model.GetBatchImportTaskResponse>;
1040
1112
  /**
1041
1113
  * Retrieves an API consumer.
1042
1114
  *
@@ -1515,6 +1587,24 @@ export default class Client extends OpenApi {
1515
1587
  * @returns ListAiModelProvidersResponse
1516
1588
  */
1517
1589
  listAiModelProviders(request: $_model.ListAiModelProvidersRequest): Promise<$_model.ListAiModelProvidersResponse>;
1590
+ /**
1591
+ * 查询批量导出任务列表
1592
+ *
1593
+ * @param request - ListBatchExportTasksRequest
1594
+ * @param headers - map
1595
+ * @param runtime - runtime options for this request RuntimeOptions
1596
+ * @returns ListBatchExportTasksResponse
1597
+ */
1598
+ listBatchExportTasksWithOptions(request: $_model.ListBatchExportTasksRequest, headers: {
1599
+ [key: string]: string;
1600
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListBatchExportTasksResponse>;
1601
+ /**
1602
+ * 查询批量导出任务列表
1603
+ *
1604
+ * @param request - ListBatchExportTasksRequest
1605
+ * @returns ListBatchExportTasksResponse
1606
+ */
1607
+ listBatchExportTasks(request: $_model.ListBatchExportTasksRequest): Promise<$_model.ListBatchExportTasksResponse>;
1518
1608
  /**
1519
1609
  * Retrieves the list of consumer authorization rules.
1520
1610
  *
package/dist/client.js CHANGED
@@ -50,31 +50,31 @@ class Client extends openapi_core_1.default {
50
50
  super(config);
51
51
  this._endpointRule = "regional";
52
52
  this._endpointMap = {
53
- 'us-west-1': "apig.us-west-1.aliyuncs.com",
54
- 'us-east-1': "apig.us-east-1.aliyuncs.com",
55
- 'me-east-1': "apig.me-east-1.aliyuncs.com",
56
- 'me-central-1': "apig.me-central-1.aliyuncs.com",
57
- 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
58
- 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
59
- 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
60
- 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
61
- 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
62
- 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
63
- 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
64
- 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
65
- 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
66
- 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
53
+ 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
54
+ 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
55
+ 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
67
56
  'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
68
- 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
57
+ 'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
58
+ 'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
59
+ 'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
69
60
  'cn-beijing': "apig.cn-beijing.aliyuncs.com",
70
- 'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
71
- 'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
72
- 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
73
- 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
74
- 'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
75
- 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
76
61
  'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
77
62
  'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
63
+ 'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
64
+ 'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
65
+ 'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
66
+ 'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
67
+ 'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
68
+ 'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
69
+ 'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
70
+ 'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
71
+ 'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
72
+ 'us-west-1': "apig.us-west-1.aliyuncs.com",
73
+ 'us-east-1': "apig.us-east-1.aliyuncs.com",
74
+ 'eu-central-1': "apig.eu-central-1.aliyuncs.com",
75
+ 'eu-west-1': "apig.eu-west-1.aliyuncs.com",
76
+ 'me-east-1': "apig.me-east-1.aliyuncs.com",
77
+ 'me-central-1': "apig.me-central-1.aliyuncs.com",
78
78
  };
79
79
  this.checkConfig(config);
80
80
  this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -317,6 +317,126 @@ class Client extends openapi_core_1.default {
317
317
  let headers = {};
318
318
  return await this.batchDeleteConsumerAuthorizationRuleWithOptions(request, headers, runtime);
319
319
  }
320
+ /**
321
+ * 批量导出HTTP API
322
+ *
323
+ * @param request - BatchExportHttpApisRequest
324
+ * @param headers - map
325
+ * @param runtime - runtime options for this request RuntimeOptions
326
+ * @returns BatchExportHttpApisResponse
327
+ */
328
+ async batchExportHttpApisWithOptions(request, headers, runtime) {
329
+ request.validate();
330
+ let body = {};
331
+ if (!$dara.isNull(request.apiIds)) {
332
+ body["apiIds"] = request.apiIds;
333
+ }
334
+ if (!$dara.isNull(request.apiType)) {
335
+ body["apiType"] = request.apiType;
336
+ }
337
+ if (!$dara.isNull(request.extensionConfig)) {
338
+ body["extensionConfig"] = request.extensionConfig;
339
+ }
340
+ if (!$dara.isNull(request.format)) {
341
+ body["format"] = request.format;
342
+ }
343
+ if (!$dara.isNull(request.gatewayId)) {
344
+ body["gatewayId"] = request.gatewayId;
345
+ }
346
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
347
+ headers: headers,
348
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
349
+ });
350
+ let params = new openapi_core_2.$OpenApiUtil.Params({
351
+ action: "BatchExportHttpApis",
352
+ version: "2024-03-27",
353
+ protocol: "HTTPS",
354
+ pathname: `/v1/http-apis/batch-export`,
355
+ method: "POST",
356
+ authType: "AK",
357
+ style: "ROA",
358
+ reqBodyType: "json",
359
+ bodyType: "json",
360
+ });
361
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchExportHttpApisResponse({}));
362
+ }
363
+ /**
364
+ * 批量导出HTTP API
365
+ *
366
+ * @param request - BatchExportHttpApisRequest
367
+ * @returns BatchExportHttpApisResponse
368
+ */
369
+ async batchExportHttpApis(request) {
370
+ let runtime = new $dara.RuntimeOptions({});
371
+ let headers = {};
372
+ return await this.batchExportHttpApisWithOptions(request, headers, runtime);
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, headers, runtime) {
383
+ request.validate();
384
+ let body = {};
385
+ if (!$dara.isNull(request.allowUpdate)) {
386
+ body["allowUpdate"] = request.allowUpdate;
387
+ }
388
+ if (!$dara.isNull(request.apiType)) {
389
+ body["apiType"] = request.apiType;
390
+ }
391
+ if (!$dara.isNull(request.dryRun)) {
392
+ body["dryRun"] = request.dryRun;
393
+ }
394
+ if (!$dara.isNull(request.gatewayId)) {
395
+ body["gatewayId"] = request.gatewayId;
396
+ }
397
+ if (!$dara.isNull(request.resourceGroupId)) {
398
+ body["resourceGroupId"] = request.resourceGroupId;
399
+ }
400
+ if (!$dara.isNull(request.specFileUrl)) {
401
+ body["specFileUrl"] = request.specFileUrl;
402
+ }
403
+ if (!$dara.isNull(request.specOssConfig)) {
404
+ body["specOssConfig"] = request.specOssConfig;
405
+ }
406
+ if (!$dara.isNull(request.strategy)) {
407
+ body["strategy"] = request.strategy;
408
+ }
409
+ if (!$dara.isNull(request.withGatewayExtension)) {
410
+ body["withGatewayExtension"] = request.withGatewayExtension;
411
+ }
412
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
413
+ headers: headers,
414
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
415
+ });
416
+ let params = new openapi_core_2.$OpenApiUtil.Params({
417
+ action: "BatchImportHttpApis",
418
+ version: "2024-03-27",
419
+ protocol: "HTTPS",
420
+ pathname: `/v1/http-apis/batch-import`,
421
+ method: "POST",
422
+ authType: "AK",
423
+ style: "ROA",
424
+ reqBodyType: "json",
425
+ bodyType: "json",
426
+ });
427
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchImportHttpApisResponse({}));
428
+ }
429
+ /**
430
+ * 批量导入HTTP API
431
+ *
432
+ * @param request - BatchImportHttpApisRequest
433
+ * @returns BatchImportHttpApisResponse
434
+ */
435
+ async batchImportHttpApis(request) {
436
+ let runtime = new $dara.RuntimeOptions({});
437
+ let headers = {};
438
+ return await this.batchImportHttpApisWithOptions(request, headers, runtime);
439
+ }
320
440
  /**
321
441
  * Removes consumer group members in batches.
322
442
  *
@@ -2789,6 +2909,80 @@ class Client extends openapi_core_1.default {
2789
2909
  let headers = {};
2790
2910
  return await this.getAiModelProviderWithOptions(modelProviderId, request, headers, runtime);
2791
2911
  }
2912
+ /**
2913
+ * 查询批量导出任务
2914
+ *
2915
+ * @param request - GetBatchExportTaskRequest
2916
+ * @param headers - map
2917
+ * @param runtime - runtime options for this request RuntimeOptions
2918
+ * @returns GetBatchExportTaskResponse
2919
+ */
2920
+ async getBatchExportTaskWithOptions(taskId, request, headers, runtime) {
2921
+ request.validate();
2922
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2923
+ headers: headers,
2924
+ });
2925
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2926
+ action: "GetBatchExportTask",
2927
+ version: "2024-03-27",
2928
+ protocol: "HTTPS",
2929
+ pathname: `/v1/http-api-batch-export-tasks/${$dara.URL.percentEncode(taskId)}`,
2930
+ method: "GET",
2931
+ authType: "AK",
2932
+ style: "ROA",
2933
+ reqBodyType: "json",
2934
+ bodyType: "json",
2935
+ });
2936
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBatchExportTaskResponse({}));
2937
+ }
2938
+ /**
2939
+ * 查询批量导出任务
2940
+ *
2941
+ * @param request - GetBatchExportTaskRequest
2942
+ * @returns GetBatchExportTaskResponse
2943
+ */
2944
+ async getBatchExportTask(taskId, request) {
2945
+ let runtime = new $dara.RuntimeOptions({});
2946
+ let headers = {};
2947
+ return await this.getBatchExportTaskWithOptions(taskId, request, headers, runtime);
2948
+ }
2949
+ /**
2950
+ * 查询批量操作任务
2951
+ *
2952
+ * @param request - GetBatchImportTaskRequest
2953
+ * @param headers - map
2954
+ * @param runtime - runtime options for this request RuntimeOptions
2955
+ * @returns GetBatchImportTaskResponse
2956
+ */
2957
+ async getBatchImportTaskWithOptions(taskId, request, headers, runtime) {
2958
+ request.validate();
2959
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2960
+ headers: headers,
2961
+ });
2962
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2963
+ action: "GetBatchImportTask",
2964
+ version: "2024-03-27",
2965
+ protocol: "HTTPS",
2966
+ pathname: `/v1/http-api-batch-import-tasks/${$dara.URL.percentEncode(taskId)}`,
2967
+ method: "GET",
2968
+ authType: "AK",
2969
+ style: "ROA",
2970
+ reqBodyType: "json",
2971
+ bodyType: "json",
2972
+ });
2973
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetBatchImportTaskResponse({}));
2974
+ }
2975
+ /**
2976
+ * 查询批量操作任务
2977
+ *
2978
+ * @param request - GetBatchImportTaskRequest
2979
+ * @returns GetBatchImportTaskResponse
2980
+ */
2981
+ async getBatchImportTask(taskId, request) {
2982
+ let runtime = new $dara.RuntimeOptions({});
2983
+ let headers = {};
2984
+ return await this.getBatchImportTaskWithOptions(taskId, request, headers, runtime);
2985
+ }
2792
2986
  /**
2793
2987
  * Retrieves an API consumer.
2794
2988
  *
@@ -3926,6 +4120,69 @@ class Client extends openapi_core_1.default {
3926
4120
  let headers = {};
3927
4121
  return await this.listAiModelProvidersWithOptions(request, headers, runtime);
3928
4122
  }
4123
+ /**
4124
+ * 查询批量导出任务列表
4125
+ *
4126
+ * @param request - ListBatchExportTasksRequest
4127
+ * @param headers - map
4128
+ * @param runtime - runtime options for this request RuntimeOptions
4129
+ * @returns ListBatchExportTasksResponse
4130
+ */
4131
+ async listBatchExportTasksWithOptions(request, headers, runtime) {
4132
+ request.validate();
4133
+ let query = {};
4134
+ if (!$dara.isNull(request.endTime)) {
4135
+ query["endTime"] = request.endTime;
4136
+ }
4137
+ if (!$dara.isNull(request.gatewayId)) {
4138
+ query["gatewayId"] = request.gatewayId;
4139
+ }
4140
+ if (!$dara.isNull(request.maxResults)) {
4141
+ query["maxResults"] = request.maxResults;
4142
+ }
4143
+ if (!$dara.isNull(request.nextToken)) {
4144
+ query["nextToken"] = request.nextToken;
4145
+ }
4146
+ if (!$dara.isNull(request.pageNumber)) {
4147
+ query["pageNumber"] = request.pageNumber;
4148
+ }
4149
+ if (!$dara.isNull(request.pageSize)) {
4150
+ query["pageSize"] = request.pageSize;
4151
+ }
4152
+ if (!$dara.isNull(request.startTime)) {
4153
+ query["startTime"] = request.startTime;
4154
+ }
4155
+ if (!$dara.isNull(request.statuses)) {
4156
+ query["statuses"] = request.statuses;
4157
+ }
4158
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4159
+ headers: headers,
4160
+ query: openapi_core_2.OpenApiUtil.query(query),
4161
+ });
4162
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4163
+ action: "ListBatchExportTasks",
4164
+ version: "2024-03-27",
4165
+ protocol: "HTTPS",
4166
+ pathname: `/v1/http-api-batch-export-tasks`,
4167
+ method: "GET",
4168
+ authType: "AK",
4169
+ style: "ROA",
4170
+ reqBodyType: "json",
4171
+ bodyType: "json",
4172
+ });
4173
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBatchExportTasksResponse({}));
4174
+ }
4175
+ /**
4176
+ * 查询批量导出任务列表
4177
+ *
4178
+ * @param request - ListBatchExportTasksRequest
4179
+ * @returns ListBatchExportTasksResponse
4180
+ */
4181
+ async listBatchExportTasks(request) {
4182
+ let runtime = new $dara.RuntimeOptions({});
4183
+ let headers = {};
4184
+ return await this.listBatchExportTasksWithOptions(request, headers, runtime);
4185
+ }
3929
4186
  /**
3930
4187
  * Retrieves the list of consumer authorization rules.
3931
4188
  *