@alicloud/dms20250414 1.10.0 → 1.10.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.
Files changed (37) hide show
  1. package/dist/client.d.ts +4 -4
  2. package/dist/client.js +37 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAirflowRequest.d.ts +13 -6
  5. package/dist/models/CreateAirflowRequest.js +12 -0
  6. package/dist/models/CreateAirflowRequest.js.map +1 -1
  7. package/dist/models/CreateAirflowResponseBody.d.ts +14 -0
  8. package/dist/models/CreateAirflowResponseBody.js +17 -0
  9. package/dist/models/CreateAirflowResponseBody.js.map +1 -1
  10. package/dist/models/CreateAirflowShrinkRequest.d.ts +134 -0
  11. package/dist/models/CreateAirflowShrinkRequest.js +96 -0
  12. package/dist/models/CreateAirflowShrinkRequest.js.map +1 -0
  13. package/dist/models/DataMountInfo.d.ts +17 -0
  14. package/dist/models/DataMountInfo.js +64 -0
  15. package/dist/models/DataMountInfo.js.map +1 -0
  16. package/dist/models/UpdateAirflowRequest.d.ts +8 -0
  17. package/dist/models/UpdateAirflowRequest.js +10 -0
  18. package/dist/models/UpdateAirflowRequest.js.map +1 -1
  19. package/dist/models/UpdateAirflowResponseBody.d.ts +13 -0
  20. package/dist/models/UpdateAirflowResponseBody.js +12 -0
  21. package/dist/models/UpdateAirflowResponseBody.js.map +1 -1
  22. package/dist/models/UpdateAirflowShrinkRequest.d.ts +81 -0
  23. package/dist/models/UpdateAirflowShrinkRequest.js +84 -0
  24. package/dist/models/UpdateAirflowShrinkRequest.js.map +1 -0
  25. package/dist/models/model.d.ts +3 -0
  26. package/dist/models/model.js +12 -6
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +46 -6
  30. package/src/models/CreateAirflowRequest.ts +24 -6
  31. package/src/models/CreateAirflowResponseBody.ts +30 -0
  32. package/src/models/CreateAirflowShrinkRequest.ts +185 -0
  33. package/src/models/DataMountInfo.ts +36 -0
  34. package/src/models/UpdateAirflowRequest.ts +17 -0
  35. package/src/models/UpdateAirflowResponseBody.ts +24 -0
  36. package/src/models/UpdateAirflowShrinkRequest.ts +120 -0
  37. package/src/models/model.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -71,11 +71,11 @@ export default class Client extends OpenApi {
71
71
  /**
72
72
  * 创建Airflow
73
73
  *
74
- * @param request - CreateAirflowRequest
74
+ * @param tmpReq - CreateAirflowRequest
75
75
  * @param runtime - runtime options for this request RuntimeOptions
76
76
  * @returns CreateAirflowResponse
77
77
  */
78
- createAirflowWithOptions(request: $_model.CreateAirflowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAirflowResponse>;
78
+ createAirflowWithOptions(tmpReq: $_model.CreateAirflowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAirflowResponse>;
79
79
  /**
80
80
  * 创建Airflow
81
81
  *
@@ -919,11 +919,11 @@ export default class Client extends OpenApi {
919
919
  /**
920
920
  * 更新UpdateAirflow
921
921
  *
922
- * @param request - UpdateAirflowRequest
922
+ * @param tmpReq - UpdateAirflowRequest
923
923
  * @param runtime - runtime options for this request RuntimeOptions
924
924
  * @returns UpdateAirflowResponse
925
925
  */
926
- updateAirflowWithOptions(request: $_model.UpdateAirflowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAirflowResponse>;
926
+ updateAirflowWithOptions(tmpReq: $_model.UpdateAirflowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAirflowResponse>;
927
927
  /**
928
928
  * 更新UpdateAirflow
929
929
  *
package/dist/client.js CHANGED
@@ -317,16 +317,24 @@ class Client extends openapi_core_1.default {
317
317
  /**
318
318
  * 创建Airflow
319
319
  *
320
- * @param request - CreateAirflowRequest
320
+ * @param tmpReq - CreateAirflowRequest
321
321
  * @param runtime - runtime options for this request RuntimeOptions
322
322
  * @returns CreateAirflowResponse
323
323
  */
324
- async createAirflowWithOptions(request, runtime) {
325
- request.validate();
324
+ async createAirflowWithOptions(tmpReq, runtime) {
325
+ tmpReq.validate();
326
+ let request = new $_model.CreateAirflowShrinkRequest({});
327
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
328
+ if (!$dara.isNull(tmpReq.dataMountInfoList)) {
329
+ request.dataMountInfoListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.dataMountInfoList, "DataMountInfoList", "json");
330
+ }
326
331
  let query = {};
327
332
  if (!$dara.isNull(request.airflowName)) {
328
333
  query["AirflowName"] = request.airflowName;
329
334
  }
335
+ if (!$dara.isNull(request.airflowVersion)) {
336
+ query["AirflowVersion"] = request.airflowVersion;
337
+ }
330
338
  if (!$dara.isNull(request.appSpec)) {
331
339
  query["AppSpec"] = request.appSpec;
332
340
  }
@@ -336,9 +344,18 @@ class Client extends openapi_core_1.default {
336
344
  if (!$dara.isNull(request.dagsDir)) {
337
345
  query["DagsDir"] = request.dagsDir;
338
346
  }
347
+ if (!$dara.isNull(request.dataMountInfoListShrink)) {
348
+ query["DataMountInfoList"] = request.dataMountInfoListShrink;
349
+ }
339
350
  if (!$dara.isNull(request.description)) {
340
351
  query["Description"] = request.description;
341
352
  }
353
+ if (!$dara.isNull(request.enableServerless)) {
354
+ query["EnableServerless"] = request.enableServerless;
355
+ }
356
+ if (!$dara.isNull(request.gracefulShutdownTimeout)) {
357
+ query["GracefulShutdownTimeout"] = request.gracefulShutdownTimeout;
358
+ }
342
359
  if (!$dara.isNull(request.ossBucketName)) {
343
360
  query["OssBucketName"] = request.ossBucketName;
344
361
  }
@@ -3436,12 +3453,17 @@ class Client extends openapi_core_1.default {
3436
3453
  /**
3437
3454
  * 更新UpdateAirflow
3438
3455
  *
3439
- * @param request - UpdateAirflowRequest
3456
+ * @param tmpReq - UpdateAirflowRequest
3440
3457
  * @param runtime - runtime options for this request RuntimeOptions
3441
3458
  * @returns UpdateAirflowResponse
3442
3459
  */
3443
- async updateAirflowWithOptions(request, runtime) {
3444
- request.validate();
3460
+ async updateAirflowWithOptions(tmpReq, runtime) {
3461
+ tmpReq.validate();
3462
+ let request = new $_model.UpdateAirflowShrinkRequest({});
3463
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3464
+ if (!$dara.isNull(tmpReq.dataMountInfoList)) {
3465
+ request.dataMountInfoListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.dataMountInfoList, "DataMountInfoList", "json");
3466
+ }
3445
3467
  let query = {};
3446
3468
  if (!$dara.isNull(request.airflowId)) {
3447
3469
  query["AirflowId"] = request.airflowId;
@@ -3458,9 +3480,18 @@ class Client extends openapi_core_1.default {
3458
3480
  if (!$dara.isNull(request.dagsDir)) {
3459
3481
  query["DagsDir"] = request.dagsDir;
3460
3482
  }
3483
+ if (!$dara.isNull(request.dataMountInfoListShrink)) {
3484
+ query["DataMountInfoList"] = request.dataMountInfoListShrink;
3485
+ }
3461
3486
  if (!$dara.isNull(request.description)) {
3462
3487
  query["Description"] = request.description;
3463
3488
  }
3489
+ if (!$dara.isNull(request.enableServerless)) {
3490
+ query["EnableServerless"] = request.enableServerless;
3491
+ }
3492
+ if (!$dara.isNull(request.gracefulShutdownTimeout)) {
3493
+ query["GracefulShutdownTimeout"] = request.gracefulShutdownTimeout;
3494
+ }
3464
3495
  if (!$dara.isNull(request.pluginsDir)) {
3465
3496
  query["PluginsDir"] = request.pluginsDir;
3466
3497
  }