@alicloud/dataworks-public20240518 7.1.3 → 7.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 (89) hide show
  1. package/dist/client.d.ts +42 -4
  2. package/dist/client.js +128 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDataSourceRequest.d.ts +1 -1
  5. package/dist/models/CreateWorkflowInstancesRequest.d.ts +7 -7
  6. package/dist/models/CreateWorkflowInstancesRequestDefaultRunProperties.d.ts +13 -8
  7. package/dist/models/CreateWorkflowInstancesRequestDefaultRunProperties.js.map +1 -1
  8. package/dist/models/CreateWorkflowInstancesRequestDefaultRunPropertiesAnalysis.d.ts +2 -2
  9. package/dist/models/CreateWorkflowInstancesRequestDefaultRunPropertiesRunPolicy.d.ts +3 -3
  10. package/dist/models/CreateWorkflowInstancesRequestPeriods.d.ts +5 -5
  11. package/dist/models/CreateWorkflowInstancesRequestPeriodsBizDates.d.ts +2 -2
  12. package/dist/models/CreateWorkflowInstancesShrinkRequest.d.ts +7 -7
  13. package/dist/models/GetRerunWorkflowInstancesResultRequest.d.ts +21 -0
  14. package/dist/models/GetRerunWorkflowInstancesResultRequest.js +58 -0
  15. package/dist/models/GetRerunWorkflowInstancesResultRequest.js.map +1 -0
  16. package/dist/models/GetRerunWorkflowInstancesResultResponse.d.ts +19 -0
  17. package/dist/models/GetRerunWorkflowInstancesResultResponse.js +69 -0
  18. package/dist/models/GetRerunWorkflowInstancesResultResponse.js.map +1 -0
  19. package/dist/models/GetRerunWorkflowInstancesResultResponseBody.d.ts +20 -0
  20. package/dist/models/GetRerunWorkflowInstancesResultResponseBody.js +64 -0
  21. package/dist/models/GetRerunWorkflowInstancesResultResponseBody.js.map +1 -0
  22. package/dist/models/GetRerunWorkflowInstancesResultResponseBodyResult.d.ts +19 -0
  23. package/dist/models/GetRerunWorkflowInstancesResultResponseBodyResult.js +60 -0
  24. package/dist/models/GetRerunWorkflowInstancesResultResponseBodyResult.js.map +1 -0
  25. package/dist/models/GetSchemaRequest.d.ts +6 -0
  26. package/dist/models/GetSchemaRequest.js.map +1 -1
  27. package/dist/models/GetTaskInstanceResponseBodyTaskInstance.d.ts +2 -0
  28. package/dist/models/GetTaskInstanceResponseBodyTaskInstance.js +4 -0
  29. package/dist/models/GetTaskInstanceResponseBodyTaskInstance.js.map +1 -1
  30. package/dist/models/ListNodesRequest.d.ts +7 -11
  31. package/dist/models/ListNodesRequest.js.map +1 -1
  32. package/dist/models/ListResourcesRequest.d.ts +1 -1
  33. package/dist/models/ListResourcesResponseBodyPagingInfo.d.ts +1 -1
  34. package/dist/models/ListResourcesResponseBodyPagingInfoResources.d.ts +1 -1
  35. package/dist/models/ListTaskInstancesResponseBodyPagingInfoTaskInstances.d.ts +3 -0
  36. package/dist/models/ListTaskInstancesResponseBodyPagingInfoTaskInstances.js +6 -0
  37. package/dist/models/ListTaskInstancesResponseBodyPagingInfoTaskInstances.js.map +1 -1
  38. package/dist/models/RerunWorkflowInstancesRequest.d.ts +67 -0
  39. package/dist/models/RerunWorkflowInstancesRequest.js +85 -0
  40. package/dist/models/RerunWorkflowInstancesRequest.js.map +1 -0
  41. package/dist/models/RerunWorkflowInstancesRequestFilter.d.ts +26 -0
  42. package/dist/models/RerunWorkflowInstancesRequestFilter.js +75 -0
  43. package/dist/models/RerunWorkflowInstancesRequestFilter.js.map +1 -0
  44. package/dist/models/RerunWorkflowInstancesResponse.d.ts +19 -0
  45. package/dist/models/RerunWorkflowInstancesResponse.js +69 -0
  46. package/dist/models/RerunWorkflowInstancesResponse.js.map +1 -0
  47. package/dist/models/RerunWorkflowInstancesResponseBody.d.ts +23 -0
  48. package/dist/models/RerunWorkflowInstancesResponseBody.js +60 -0
  49. package/dist/models/RerunWorkflowInstancesResponseBody.js.map +1 -0
  50. package/dist/models/RerunWorkflowInstancesShrinkRequest.d.ts +66 -0
  51. package/dist/models/RerunWorkflowInstancesShrinkRequest.js +78 -0
  52. package/dist/models/RerunWorkflowInstancesShrinkRequest.js.map +1 -0
  53. package/dist/models/UpdateBusinessRequest.d.ts +11 -5
  54. package/dist/models/UpdateBusinessRequest.js.map +1 -1
  55. package/dist/models/UpdateBusinessResponseBody.d.ts +2 -2
  56. package/dist/models/UpdateDataSourceRequest.d.ts +1 -1
  57. package/dist/models/model.d.ts +9 -0
  58. package/dist/models/model.js +42 -23
  59. package/dist/models/model.js.map +1 -1
  60. package/package.json +1 -1
  61. package/src/client.ts +146 -4
  62. package/src/models/CreateDataSourceRequest.ts +1 -1
  63. package/src/models/CreateWorkflowInstancesRequest.ts +7 -7
  64. package/src/models/CreateWorkflowInstancesRequestDefaultRunProperties.ts +13 -8
  65. package/src/models/CreateWorkflowInstancesRequestDefaultRunPropertiesAnalysis.ts +2 -2
  66. package/src/models/CreateWorkflowInstancesRequestDefaultRunPropertiesRunPolicy.ts +3 -3
  67. package/src/models/CreateWorkflowInstancesRequestPeriods.ts +5 -5
  68. package/src/models/CreateWorkflowInstancesRequestPeriodsBizDates.ts +2 -2
  69. package/src/models/CreateWorkflowInstancesShrinkRequest.ts +7 -7
  70. package/src/models/GetRerunWorkflowInstancesResultRequest.ts +34 -0
  71. package/src/models/GetRerunWorkflowInstancesResultResponse.ts +40 -0
  72. package/src/models/GetRerunWorkflowInstancesResultResponseBody.ts +38 -0
  73. package/src/models/GetRerunWorkflowInstancesResultResponseBodyResult.ts +34 -0
  74. package/src/models/GetSchemaRequest.ts +6 -0
  75. package/src/models/GetTaskInstanceResponseBodyTaskInstance.ts +6 -0
  76. package/src/models/ListNodesRequest.ts +7 -11
  77. package/src/models/ListResourcesRequest.ts +1 -1
  78. package/src/models/ListResourcesResponseBodyPagingInfo.ts +1 -1
  79. package/src/models/ListResourcesResponseBodyPagingInfoResources.ts +1 -1
  80. package/src/models/ListTaskInstancesResponseBodyPagingInfoTaskInstances.ts +9 -0
  81. package/src/models/RerunWorkflowInstancesRequest.ts +106 -0
  82. package/src/models/RerunWorkflowInstancesRequestFilter.ts +56 -0
  83. package/src/models/RerunWorkflowInstancesResponse.ts +40 -0
  84. package/src/models/RerunWorkflowInstancesResponseBody.ts +38 -0
  85. package/src/models/RerunWorkflowInstancesShrinkRequest.ts +99 -0
  86. package/src/models/UpdateBusinessRequest.ts +11 -5
  87. package/src/models/UpdateBusinessResponseBody.ts +2 -2
  88. package/src/models/UpdateDataSourceRequest.ts +1 -1
  89. package/src/models/model.ts +9 -0
package/dist/client.d.ts CHANGED
@@ -612,7 +612,7 @@ export default class Client extends OpenApi {
612
612
  */
613
613
  createWorkflowDefinition(request: $_model.CreateWorkflowDefinitionRequest): Promise<$_model.CreateWorkflowDefinitionResponse>;
614
614
  /**
615
- * 创建工作流实例
615
+ * Creates a workflow instance, such as a data backfill workflow instance, based on configurations.
616
616
  *
617
617
  * @param tmpReq - CreateWorkflowInstancesRequest
618
618
  * @param runtime - runtime options for this request RuntimeOptions
@@ -620,7 +620,7 @@ export default class Client extends OpenApi {
620
620
  */
621
621
  createWorkflowInstancesWithOptions(tmpReq: $_model.CreateWorkflowInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateWorkflowInstancesResponse>;
622
622
  /**
623
- * 创建工作流实例
623
+ * Creates a workflow instance, such as a data backfill workflow instance, based on configurations.
624
624
  *
625
625
  * @param request - CreateWorkflowInstancesRequest
626
626
  * @returns CreateWorkflowInstancesResponse
@@ -1728,6 +1728,21 @@ export default class Client extends OpenApi {
1728
1728
  * @returns GetProjectRoleResponse
1729
1729
  */
1730
1730
  getProjectRole(request: $_model.GetProjectRoleRequest): Promise<$_model.GetProjectRoleResponse>;
1731
+ /**
1732
+ * 查询异步重跑工作流实例的结果
1733
+ *
1734
+ * @param request - GetRerunWorkflowInstancesResultRequest
1735
+ * @param runtime - runtime options for this request RuntimeOptions
1736
+ * @returns GetRerunWorkflowInstancesResultResponse
1737
+ */
1738
+ getRerunWorkflowInstancesResultWithOptions(request: $_model.GetRerunWorkflowInstancesResultRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetRerunWorkflowInstancesResultResponse>;
1739
+ /**
1740
+ * 查询异步重跑工作流实例的结果
1741
+ *
1742
+ * @param request - GetRerunWorkflowInstancesResultRequest
1743
+ * @returns GetRerunWorkflowInstancesResultResponse
1744
+ */
1745
+ getRerunWorkflowInstancesResult(request: $_model.GetRerunWorkflowInstancesResultRequest): Promise<$_model.GetRerunWorkflowInstancesResultResponse>;
1731
1746
  /**
1732
1747
  * Queries the information about a file resource.
1733
1748
  *
@@ -1786,7 +1801,11 @@ export default class Client extends OpenApi {
1786
1801
  */
1787
1802
  getRoute(request: $_model.GetRouteRequest): Promise<$_model.GetRouteResponse>;
1788
1803
  /**
1789
- * 获取模式详情
1804
+ * Queries the information about a schema in Data Map. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
1805
+ *
1806
+ * @remarks
1807
+ * 1. This API operation is available for all DataWorks editions.
1808
+ * 2. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
1790
1809
  *
1791
1810
  * @param request - GetSchemaRequest
1792
1811
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1794,7 +1813,11 @@ export default class Client extends OpenApi {
1794
1813
  */
1795
1814
  getSchemaWithOptions(request: $_model.GetSchemaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetSchemaResponse>;
1796
1815
  /**
1797
- * 获取模式详情
1816
+ * Queries the information about a schema in Data Map. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
1817
+ *
1818
+ * @remarks
1819
+ * 1. This API operation is available for all DataWorks editions.
1820
+ * 2. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
1798
1821
  *
1799
1822
  * @param request - GetSchemaRequest
1800
1823
  * @returns GetSchemaResponse
@@ -3144,6 +3167,21 @@ export default class Client extends OpenApi {
3144
3167
  * @returns RerunTaskInstancesResponse
3145
3168
  */
3146
3169
  rerunTaskInstances(request: $_model.RerunTaskInstancesRequest): Promise<$_model.RerunTaskInstancesResponse>;
3170
+ /**
3171
+ * 重跑工作流实例
3172
+ *
3173
+ * @param tmpReq - RerunWorkflowInstancesRequest
3174
+ * @param runtime - runtime options for this request RuntimeOptions
3175
+ * @returns RerunWorkflowInstancesResponse
3176
+ */
3177
+ rerunWorkflowInstancesWithOptions(tmpReq: $_model.RerunWorkflowInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RerunWorkflowInstancesResponse>;
3178
+ /**
3179
+ * 重跑工作流实例
3180
+ *
3181
+ * @param request - RerunWorkflowInstancesRequest
3182
+ * @returns RerunWorkflowInstancesResponse
3183
+ */
3184
+ rerunWorkflowInstances(request: $_model.RerunWorkflowInstancesRequest): Promise<$_model.RerunWorkflowInstancesResponse>;
3147
3185
  /**
3148
3186
  * Resumes multiple suspended instances at a time.
3149
3187
  *
package/dist/client.js CHANGED
@@ -2209,7 +2209,7 @@ class Client extends openapi_core_1.default {
2209
2209
  return await this.createWorkflowDefinitionWithOptions(request, runtime);
2210
2210
  }
2211
2211
  /**
2212
- * 创建工作流实例
2212
+ * Creates a workflow instance, such as a data backfill workflow instance, based on configurations.
2213
2213
  *
2214
2214
  * @param tmpReq - CreateWorkflowInstancesRequest
2215
2215
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2276,7 +2276,7 @@ class Client extends openapi_core_1.default {
2276
2276
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateWorkflowInstancesResponse({}));
2277
2277
  }
2278
2278
  /**
2279
- * 创建工作流实例
2279
+ * Creates a workflow instance, such as a data backfill workflow instance, based on configurations.
2280
2280
  *
2281
2281
  * @param request - CreateWorkflowInstancesRequest
2282
2282
  * @returns CreateWorkflowInstancesResponse
@@ -4978,6 +4978,45 @@ class Client extends openapi_core_1.default {
4978
4978
  let runtime = new $dara.RuntimeOptions({});
4979
4979
  return await this.getProjectRoleWithOptions(request, runtime);
4980
4980
  }
4981
+ /**
4982
+ * 查询异步重跑工作流实例的结果
4983
+ *
4984
+ * @param request - GetRerunWorkflowInstancesResultRequest
4985
+ * @param runtime - runtime options for this request RuntimeOptions
4986
+ * @returns GetRerunWorkflowInstancesResultResponse
4987
+ */
4988
+ async getRerunWorkflowInstancesResultWithOptions(request, runtime) {
4989
+ request.validate();
4990
+ let query = {};
4991
+ if (!$dara.isNull(request.operationId)) {
4992
+ query["OperationId"] = request.operationId;
4993
+ }
4994
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4995
+ query: openapi_core_2.OpenApiUtil.query(query),
4996
+ });
4997
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4998
+ action: "GetRerunWorkflowInstancesResult",
4999
+ version: "2024-05-18",
5000
+ protocol: "HTTPS",
5001
+ pathname: "/",
5002
+ method: "POST",
5003
+ authType: "AK",
5004
+ style: "RPC",
5005
+ reqBodyType: "formData",
5006
+ bodyType: "json",
5007
+ });
5008
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRerunWorkflowInstancesResultResponse({}));
5009
+ }
5010
+ /**
5011
+ * 查询异步重跑工作流实例的结果
5012
+ *
5013
+ * @param request - GetRerunWorkflowInstancesResultRequest
5014
+ * @returns GetRerunWorkflowInstancesResultResponse
5015
+ */
5016
+ async getRerunWorkflowInstancesResult(request) {
5017
+ let runtime = new $dara.RuntimeOptions({});
5018
+ return await this.getRerunWorkflowInstancesResultWithOptions(request, runtime);
5019
+ }
4981
5020
  /**
4982
5021
  * Queries the information about a file resource.
4983
5022
  *
@@ -5099,7 +5138,11 @@ class Client extends openapi_core_1.default {
5099
5138
  return await this.getRouteWithOptions(request, runtime);
5100
5139
  }
5101
5140
  /**
5102
- * 获取模式详情
5141
+ * Queries the information about a schema in Data Map. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
5142
+ *
5143
+ * @remarks
5144
+ * 1. This API operation is available for all DataWorks editions.
5145
+ * 2. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
5103
5146
  *
5104
5147
  * @param request - GetSchemaRequest
5105
5148
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5125,7 +5168,11 @@ class Client extends openapi_core_1.default {
5125
5168
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSchemaResponse({}));
5126
5169
  }
5127
5170
  /**
5128
- * 获取模式详情
5171
+ * Queries the information about a schema in Data Map. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
5172
+ *
5173
+ * @remarks
5174
+ * 1. This API operation is available for all DataWorks editions.
5175
+ * 2. You can call this API operation to query the information only about MaxCompute and Hologres schemas.
5129
5176
  *
5130
5177
  * @param request - GetSchemaRequest
5131
5178
  * @returns GetSchemaResponse
@@ -8804,6 +8851,83 @@ class Client extends openapi_core_1.default {
8804
8851
  let runtime = new $dara.RuntimeOptions({});
8805
8852
  return await this.rerunTaskInstancesWithOptions(request, runtime);
8806
8853
  }
8854
+ /**
8855
+ * 重跑工作流实例
8856
+ *
8857
+ * @param tmpReq - RerunWorkflowInstancesRequest
8858
+ * @param runtime - runtime options for this request RuntimeOptions
8859
+ * @returns RerunWorkflowInstancesResponse
8860
+ */
8861
+ async rerunWorkflowInstancesWithOptions(tmpReq, runtime) {
8862
+ tmpReq.validate();
8863
+ let request = new $_model.RerunWorkflowInstancesShrinkRequest({});
8864
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8865
+ if (!$dara.isNull(tmpReq.filter)) {
8866
+ request.filterShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.filter, "Filter", "json");
8867
+ }
8868
+ if (!$dara.isNull(tmpReq.ids)) {
8869
+ request.idsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ids, "Ids", "json");
8870
+ }
8871
+ let body = {};
8872
+ if (!$dara.isNull(request.bizdate)) {
8873
+ body["Bizdate"] = request.bizdate;
8874
+ }
8875
+ if (!$dara.isNull(request.endTriggerTime)) {
8876
+ body["EndTriggerTime"] = request.endTriggerTime;
8877
+ }
8878
+ if (!$dara.isNull(request.envType)) {
8879
+ body["EnvType"] = request.envType;
8880
+ }
8881
+ if (!$dara.isNull(request.filterShrink)) {
8882
+ body["Filter"] = request.filterShrink;
8883
+ }
8884
+ if (!$dara.isNull(request.idsShrink)) {
8885
+ body["Ids"] = request.idsShrink;
8886
+ }
8887
+ if (!$dara.isNull(request.name)) {
8888
+ body["Name"] = request.name;
8889
+ }
8890
+ if (!$dara.isNull(request.projectId)) {
8891
+ body["ProjectId"] = request.projectId;
8892
+ }
8893
+ if (!$dara.isNull(request.startTriggerTime)) {
8894
+ body["StartTriggerTime"] = request.startTriggerTime;
8895
+ }
8896
+ if (!$dara.isNull(request.status)) {
8897
+ body["Status"] = request.status;
8898
+ }
8899
+ if (!$dara.isNull(request.type)) {
8900
+ body["Type"] = request.type;
8901
+ }
8902
+ if (!$dara.isNull(request.workflowId)) {
8903
+ body["WorkflowId"] = request.workflowId;
8904
+ }
8905
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8906
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8907
+ });
8908
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8909
+ action: "RerunWorkflowInstances",
8910
+ version: "2024-05-18",
8911
+ protocol: "HTTPS",
8912
+ pathname: "/",
8913
+ method: "POST",
8914
+ authType: "AK",
8915
+ style: "RPC",
8916
+ reqBodyType: "formData",
8917
+ bodyType: "json",
8918
+ });
8919
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RerunWorkflowInstancesResponse({}));
8920
+ }
8921
+ /**
8922
+ * 重跑工作流实例
8923
+ *
8924
+ * @param request - RerunWorkflowInstancesRequest
8925
+ * @returns RerunWorkflowInstancesResponse
8926
+ */
8927
+ async rerunWorkflowInstances(request) {
8928
+ let runtime = new $dara.RuntimeOptions({});
8929
+ return await this.rerunWorkflowInstancesWithOptions(request, runtime);
8930
+ }
8807
8931
  /**
8808
8932
  * Resumes multiple suspended instances at a time.
8809
8933
  *