@alicloud/emr-serverless-spark20230808 1.16.1 → 1.17.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 (109) hide show
  1. package/dist/client.d.ts +150 -0
  2. package/dist/client.js +399 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CancelKyuubiSparkApplicationRequest.d.ts +18 -0
  5. package/dist/models/CancelKyuubiSparkApplicationRequest.js +58 -0
  6. package/dist/models/CancelKyuubiSparkApplicationRequest.js.map +1 -0
  7. package/dist/models/CancelKyuubiSparkApplicationResponse.d.ts +19 -0
  8. package/dist/models/CancelKyuubiSparkApplicationResponse.js +69 -0
  9. package/dist/models/CancelKyuubiSparkApplicationResponse.js.map +1 -0
  10. package/dist/models/CancelKyuubiSparkApplicationResponseBody.d.ts +37 -0
  11. package/dist/models/CancelKyuubiSparkApplicationResponseBody.js +84 -0
  12. package/dist/models/CancelKyuubiSparkApplicationResponseBody.js.map +1 -0
  13. package/dist/models/CreateKyuubiServiceRequest.d.ts +58 -0
  14. package/dist/models/CreateKyuubiServiceRequest.js +74 -0
  15. package/dist/models/CreateKyuubiServiceRequest.js.map +1 -0
  16. package/dist/models/CreateKyuubiServiceResponse.d.ts +19 -0
  17. package/dist/models/CreateKyuubiServiceResponse.js +69 -0
  18. package/dist/models/CreateKyuubiServiceResponse.js.map +1 -0
  19. package/dist/models/CreateKyuubiServiceResponseBody.d.ts +39 -0
  20. package/dist/models/CreateKyuubiServiceResponseBody.js +82 -0
  21. package/dist/models/CreateKyuubiServiceResponseBody.js.map +1 -0
  22. package/dist/models/DeleteKyuubiServiceResponse.d.ts +19 -0
  23. package/dist/models/DeleteKyuubiServiceResponse.js +69 -0
  24. package/dist/models/DeleteKyuubiServiceResponse.js.map +1 -0
  25. package/dist/models/DeleteKyuubiServiceResponseBody.d.ts +23 -0
  26. package/dist/models/DeleteKyuubiServiceResponseBody.js +60 -0
  27. package/dist/models/DeleteKyuubiServiceResponseBody.js.map +1 -0
  28. package/dist/models/GenerateTaskCodesRequest.d.ts +34 -0
  29. package/dist/models/GenerateTaskCodesRequest.js +62 -0
  30. package/dist/models/GenerateTaskCodesRequest.js.map +1 -0
  31. package/dist/models/GenerateTaskCodesResponse.d.ts +19 -0
  32. package/dist/models/GenerateTaskCodesResponse.js +69 -0
  33. package/dist/models/GenerateTaskCodesResponse.js.map +1 -0
  34. package/dist/models/GenerateTaskCodesResponseBody.d.ts +44 -0
  35. package/dist/models/GenerateTaskCodesResponseBody.js +73 -0
  36. package/dist/models/GenerateTaskCodesResponseBody.js.map +1 -0
  37. package/dist/models/GetKyuubiServiceResponse.d.ts +19 -0
  38. package/dist/models/GetKyuubiServiceResponse.js +69 -0
  39. package/dist/models/GetKyuubiServiceResponse.js.map +1 -0
  40. package/dist/models/GetKyuubiServiceResponseBody.d.ts +114 -0
  41. package/dist/models/GetKyuubiServiceResponseBody.js +112 -0
  42. package/dist/models/GetKyuubiServiceResponseBody.js.map +1 -0
  43. package/dist/models/GetRunConfigurationRequest.d.ts +18 -0
  44. package/dist/models/GetRunConfigurationRequest.js +58 -0
  45. package/dist/models/GetRunConfigurationRequest.js.map +1 -0
  46. package/dist/models/GetRunConfigurationResponse.d.ts +19 -0
  47. package/dist/models/GetRunConfigurationResponse.js +69 -0
  48. package/dist/models/GetRunConfigurationResponse.js.map +1 -0
  49. package/dist/models/GetRunConfigurationResponseBody.d.ts +104 -0
  50. package/dist/models/GetRunConfigurationResponseBody.js +140 -0
  51. package/dist/models/GetRunConfigurationResponseBody.js.map +1 -0
  52. package/dist/models/ListCatalogsResponseBody.d.ts +5 -0
  53. package/dist/models/ListCatalogsResponseBody.js +2 -0
  54. package/dist/models/ListCatalogsResponseBody.js.map +1 -1
  55. package/dist/models/ListKyuubiSparkApplicationsResponseBody.d.ts +2 -0
  56. package/dist/models/ListKyuubiSparkApplicationsResponseBody.js +6 -0
  57. package/dist/models/ListKyuubiSparkApplicationsResponseBody.js.map +1 -1
  58. package/dist/models/StartKyuubiServiceResponse.d.ts +19 -0
  59. package/dist/models/StartKyuubiServiceResponse.js +69 -0
  60. package/dist/models/StartKyuubiServiceResponse.js.map +1 -0
  61. package/dist/models/StartKyuubiServiceResponseBody.d.ts +23 -0
  62. package/dist/models/StartKyuubiServiceResponseBody.js +60 -0
  63. package/dist/models/StartKyuubiServiceResponseBody.js.map +1 -0
  64. package/dist/models/StopKyuubiServiceResponse.d.ts +19 -0
  65. package/dist/models/StopKyuubiServiceResponse.js +69 -0
  66. package/dist/models/StopKyuubiServiceResponse.js.map +1 -0
  67. package/dist/models/StopKyuubiServiceResponseBody.d.ts +23 -0
  68. package/dist/models/StopKyuubiServiceResponseBody.js +60 -0
  69. package/dist/models/StopKyuubiServiceResponseBody.js.map +1 -0
  70. package/dist/models/UpdateKyuubiServiceRequest.d.ts +63 -0
  71. package/dist/models/UpdateKyuubiServiceRequest.js +76 -0
  72. package/dist/models/UpdateKyuubiServiceRequest.js.map +1 -0
  73. package/dist/models/UpdateKyuubiServiceResponse.d.ts +19 -0
  74. package/dist/models/UpdateKyuubiServiceResponse.js +69 -0
  75. package/dist/models/UpdateKyuubiServiceResponse.js.map +1 -0
  76. package/dist/models/UpdateKyuubiServiceResponseBody.d.ts +23 -0
  77. package/dist/models/UpdateKyuubiServiceResponseBody.js +60 -0
  78. package/dist/models/UpdateKyuubiServiceResponseBody.js.map +1 -0
  79. package/dist/models/model.d.ts +29 -0
  80. package/dist/models/model.js +64 -6
  81. package/dist/models/model.js.map +1 -1
  82. package/package.json +1 -1
  83. package/src/client.ts +441 -0
  84. package/src/models/CancelKyuubiSparkApplicationRequest.ts +31 -0
  85. package/src/models/CancelKyuubiSparkApplicationResponse.ts +40 -0
  86. package/src/models/CancelKyuubiSparkApplicationResponseBody.ts +67 -0
  87. package/src/models/CreateKyuubiServiceRequest.ts +87 -0
  88. package/src/models/CreateKyuubiServiceResponse.ts +40 -0
  89. package/src/models/CreateKyuubiServiceResponseBody.ts +67 -0
  90. package/src/models/DeleteKyuubiServiceResponse.ts +40 -0
  91. package/src/models/DeleteKyuubiServiceResponseBody.ts +38 -0
  92. package/src/models/GenerateTaskCodesRequest.ts +51 -0
  93. package/src/models/GenerateTaskCodesResponse.ts +40 -0
  94. package/src/models/GenerateTaskCodesResponseBody.ts +72 -0
  95. package/src/models/GetKyuubiServiceResponse.ts +40 -0
  96. package/src/models/GetKyuubiServiceResponseBody.ts +172 -0
  97. package/src/models/GetRunConfigurationRequest.ts +31 -0
  98. package/src/models/GetRunConfigurationResponse.ts +40 -0
  99. package/src/models/GetRunConfigurationResponseBody.ts +171 -0
  100. package/src/models/ListCatalogsResponseBody.ts +7 -0
  101. package/src/models/ListKyuubiSparkApplicationsResponseBody.ts +7 -0
  102. package/src/models/StartKyuubiServiceResponse.ts +40 -0
  103. package/src/models/StartKyuubiServiceResponseBody.ts +38 -0
  104. package/src/models/StopKyuubiServiceResponse.ts +40 -0
  105. package/src/models/StopKyuubiServiceResponseBody.ts +38 -0
  106. package/src/models/UpdateKyuubiServiceRequest.ts +94 -0
  107. package/src/models/UpdateKyuubiServiceResponse.ts +40 -0
  108. package/src/models/UpdateKyuubiServiceResponseBody.ts +38 -0
  109. package/src/models/model.ts +29 -0
package/dist/client.d.ts CHANGED
@@ -44,6 +44,42 @@ export default class Client extends OpenApi {
44
44
  * @returns CancelJobRunResponse
45
45
  */
46
46
  cancelJobRun(workspaceId: string, jobRunId: string, request: $_model.CancelJobRunRequest): Promise<$_model.CancelJobRunResponse>;
47
+ /**
48
+ * CancelKyuubiSparkApplication
49
+ *
50
+ * @param request - CancelKyuubiSparkApplicationRequest
51
+ * @param headers - map
52
+ * @param runtime - runtime options for this request RuntimeOptions
53
+ * @returns CancelKyuubiSparkApplicationResponse
54
+ */
55
+ cancelKyuubiSparkApplicationWithOptions(workspaceId: string, kyuubiServiceId: string, applicationId: string, request: $_model.CancelKyuubiSparkApplicationRequest, headers: {
56
+ [key: string]: string;
57
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.CancelKyuubiSparkApplicationResponse>;
58
+ /**
59
+ * CancelKyuubiSparkApplication
60
+ *
61
+ * @param request - CancelKyuubiSparkApplicationRequest
62
+ * @returns CancelKyuubiSparkApplicationResponse
63
+ */
64
+ cancelKyuubiSparkApplication(workspaceId: string, kyuubiServiceId: string, applicationId: string, request: $_model.CancelKyuubiSparkApplicationRequest): Promise<$_model.CancelKyuubiSparkApplicationResponse>;
65
+ /**
66
+ * CreateKyuubiService
67
+ *
68
+ * @param request - CreateKyuubiServiceRequest
69
+ * @param headers - map
70
+ * @param runtime - runtime options for this request RuntimeOptions
71
+ * @returns CreateKyuubiServiceResponse
72
+ */
73
+ createKyuubiServiceWithOptions(workspaceId: string, request: $_model.CreateKyuubiServiceRequest, headers: {
74
+ [key: string]: string;
75
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateKyuubiServiceResponse>;
76
+ /**
77
+ * CreateKyuubiService
78
+ *
79
+ * @param request - CreateKyuubiServiceRequest
80
+ * @returns CreateKyuubiServiceResponse
81
+ */
82
+ createKyuubiService(workspaceId: string, request: $_model.CreateKyuubiServiceRequest): Promise<$_model.CreateKyuubiServiceResponse>;
47
83
  /**
48
84
  * 创建kyuubi的token
49
85
  *
@@ -170,6 +206,21 @@ export default class Client extends OpenApi {
170
206
  * @returns CreateWorkspaceResponse
171
207
  */
172
208
  createWorkspace(request: $_model.CreateWorkspaceRequest): Promise<$_model.CreateWorkspaceResponse>;
209
+ /**
210
+ * DeleteKyuubiService
211
+ *
212
+ * @param headers - map
213
+ * @param runtime - runtime options for this request RuntimeOptions
214
+ * @returns DeleteKyuubiServiceResponse
215
+ */
216
+ deleteKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
217
+ [key: string]: string;
218
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteKyuubiServiceResponse>;
219
+ /**
220
+ * DeleteKyuubiService
221
+ * @returns DeleteKyuubiServiceResponse
222
+ */
223
+ deleteKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.DeleteKyuubiServiceResponse>;
173
224
  /**
174
225
  * 删除compute的token
175
226
  *
@@ -242,6 +293,24 @@ export default class Client extends OpenApi {
242
293
  * @returns EditWorkspaceQueueResponse
243
294
  */
244
295
  editWorkspaceQueue(request: $_model.EditWorkspaceQueueRequest): Promise<$_model.EditWorkspaceQueueResponse>;
296
+ /**
297
+ * 上线工作流及其调度
298
+ *
299
+ * @param request - GenerateTaskCodesRequest
300
+ * @param headers - map
301
+ * @param runtime - runtime options for this request RuntimeOptions
302
+ * @returns GenerateTaskCodesResponse
303
+ */
304
+ generateTaskCodesWithOptions(bizId: string, request: $_model.GenerateTaskCodesRequest, headers: {
305
+ [key: string]: string;
306
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GenerateTaskCodesResponse>;
307
+ /**
308
+ * 上线工作流及其调度
309
+ *
310
+ * @param request - GenerateTaskCodesRequest
311
+ * @returns GenerateTaskCodesResponse
312
+ */
313
+ generateTaskCodes(bizId: string, request: $_model.GenerateTaskCodesRequest): Promise<$_model.GenerateTaskCodesResponse>;
245
314
  /**
246
315
  * Queries the number of CU-hours consumed by a queue during a specified cycle.
247
316
  *
@@ -296,6 +365,21 @@ export default class Client extends OpenApi {
296
365
  * @returns GetJobRunResponse
297
366
  */
298
367
  getJobRun(workspaceId: string, jobRunId: string, request: $_model.GetJobRunRequest): Promise<$_model.GetJobRunResponse>;
368
+ /**
369
+ * GetKyuubiService
370
+ *
371
+ * @param headers - map
372
+ * @param runtime - runtime options for this request RuntimeOptions
373
+ * @returns GetKyuubiServiceResponse
374
+ */
375
+ getKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
376
+ [key: string]: string;
377
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetKyuubiServiceResponse>;
378
+ /**
379
+ * GetKyuubiService
380
+ * @returns GetKyuubiServiceResponse
381
+ */
382
+ getKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.GetKyuubiServiceResponse>;
299
383
  /**
300
384
  * 获取compute的token
301
385
  *
@@ -350,6 +434,24 @@ export default class Client extends OpenApi {
350
434
  * @returns GetLivyComputeTokenResponse
351
435
  */
352
436
  getLivyComputeToken(workspaceBizId: string, livyComputeId: string, tokenId: string, request: $_model.GetLivyComputeTokenRequest): Promise<$_model.GetLivyComputeTokenResponse>;
437
+ /**
438
+ * 获取任务配置
439
+ *
440
+ * @param request - GetRunConfigurationRequest
441
+ * @param headers - map
442
+ * @param runtime - runtime options for this request RuntimeOptions
443
+ * @returns GetRunConfigurationResponse
444
+ */
445
+ getRunConfigurationWithOptions(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest, headers: {
446
+ [key: string]: string;
447
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.GetRunConfigurationResponse>;
448
+ /**
449
+ * 获取任务配置
450
+ *
451
+ * @param request - GetRunConfigurationRequest
452
+ * @returns GetRunConfigurationResponse
453
+ */
454
+ getRunConfiguration(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest): Promise<$_model.GetRunConfigurationResponse>;
353
455
  /**
354
456
  * Queries the information about a session.
355
457
  *
@@ -743,6 +845,21 @@ export default class Client extends OpenApi {
743
845
  * @returns StartJobRunResponse
744
846
  */
745
847
  startJobRun(workspaceId: string, request: $_model.StartJobRunRequest): Promise<$_model.StartJobRunResponse>;
848
+ /**
849
+ * StartKyuubiService
850
+ *
851
+ * @param headers - map
852
+ * @param runtime - runtime options for this request RuntimeOptions
853
+ * @returns StartKyuubiServiceResponse
854
+ */
855
+ startKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
856
+ [key: string]: string;
857
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.StartKyuubiServiceResponse>;
858
+ /**
859
+ * StartKyuubiService
860
+ * @returns StartKyuubiServiceResponse
861
+ */
862
+ startKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StartKyuubiServiceResponse>;
746
863
  /**
747
864
  * 启动livy compute
748
865
  *
@@ -797,6 +914,21 @@ export default class Client extends OpenApi {
797
914
  * @returns StartSessionClusterResponse
798
915
  */
799
916
  startSessionCluster(workspaceId: string, request: $_model.StartSessionClusterRequest): Promise<$_model.StartSessionClusterResponse>;
917
+ /**
918
+ * StopKyuubiService
919
+ *
920
+ * @param headers - map
921
+ * @param runtime - runtime options for this request RuntimeOptions
922
+ * @returns StopKyuubiServiceResponse
923
+ */
924
+ stopKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
925
+ [key: string]: string;
926
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.StopKyuubiServiceResponse>;
927
+ /**
928
+ * StopKyuubiService
929
+ * @returns StopKyuubiServiceResponse
930
+ */
931
+ stopKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StopKyuubiServiceResponse>;
800
932
  /**
801
933
  * 停止livy compute
802
934
  *
@@ -851,6 +983,24 @@ export default class Client extends OpenApi {
851
983
  * @returns TerminateSqlStatementResponse
852
984
  */
853
985
  terminateSqlStatement(workspaceId: string, statementId: string, request: $_model.TerminateSqlStatementRequest): Promise<$_model.TerminateSqlStatementResponse>;
986
+ /**
987
+ * UpdateKyuubiService
988
+ *
989
+ * @param request - UpdateKyuubiServiceRequest
990
+ * @param headers - map
991
+ * @param runtime - runtime options for this request RuntimeOptions
992
+ * @returns UpdateKyuubiServiceResponse
993
+ */
994
+ updateKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest, headers: {
995
+ [key: string]: string;
996
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateKyuubiServiceResponse>;
997
+ /**
998
+ * UpdateKyuubiService
999
+ *
1000
+ * @param request - UpdateKyuubiServiceRequest
1001
+ * @returns UpdateKyuubiServiceResponse
1002
+ */
1003
+ updateKyuubiService(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest): Promise<$_model.UpdateKyuubiServiceResponse>;
854
1004
  /**
855
1005
  * 更新kyuubi的token
856
1006
  *
package/dist/client.js CHANGED
@@ -153,6 +153,114 @@ class Client extends openapi_core_1.default {
153
153
  let headers = {};
154
154
  return await this.cancelJobRunWithOptions(workspaceId, jobRunId, request, headers, runtime);
155
155
  }
156
+ /**
157
+ * CancelKyuubiSparkApplication
158
+ *
159
+ * @param request - CancelKyuubiSparkApplicationRequest
160
+ * @param headers - map
161
+ * @param runtime - runtime options for this request RuntimeOptions
162
+ * @returns CancelKyuubiSparkApplicationResponse
163
+ */
164
+ async cancelKyuubiSparkApplicationWithOptions(workspaceId, kyuubiServiceId, applicationId, request, headers, runtime) {
165
+ request.validate();
166
+ let query = {};
167
+ if (!$dara.isNull(request.regionId)) {
168
+ query["regionId"] = request.regionId;
169
+ }
170
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
171
+ headers: headers,
172
+ query: openapi_core_2.OpenApiUtil.query(query),
173
+ });
174
+ let params = new openapi_core_2.$OpenApiUtil.Params({
175
+ action: "CancelKyuubiSparkApplication",
176
+ version: "2023-08-08",
177
+ protocol: "HTTPS",
178
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/application/${$dara.URL.percentEncode(applicationId)}`,
179
+ method: "DELETE",
180
+ authType: "AK",
181
+ style: "ROA",
182
+ reqBodyType: "json",
183
+ bodyType: "json",
184
+ });
185
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CancelKyuubiSparkApplicationResponse({}));
186
+ }
187
+ /**
188
+ * CancelKyuubiSparkApplication
189
+ *
190
+ * @param request - CancelKyuubiSparkApplicationRequest
191
+ * @returns CancelKyuubiSparkApplicationResponse
192
+ */
193
+ async cancelKyuubiSparkApplication(workspaceId, kyuubiServiceId, applicationId, request) {
194
+ let runtime = new $dara.RuntimeOptions({});
195
+ let headers = {};
196
+ return await this.cancelKyuubiSparkApplicationWithOptions(workspaceId, kyuubiServiceId, applicationId, request, headers, runtime);
197
+ }
198
+ /**
199
+ * CreateKyuubiService
200
+ *
201
+ * @param request - CreateKyuubiServiceRequest
202
+ * @param headers - map
203
+ * @param runtime - runtime options for this request RuntimeOptions
204
+ * @returns CreateKyuubiServiceResponse
205
+ */
206
+ async createKyuubiServiceWithOptions(workspaceId, request, headers, runtime) {
207
+ request.validate();
208
+ let body = {};
209
+ if (!$dara.isNull(request.computeInstance)) {
210
+ body["computeInstance"] = request.computeInstance;
211
+ }
212
+ if (!$dara.isNull(request.kyuubiConfigs)) {
213
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
214
+ }
215
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
216
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
217
+ }
218
+ if (!$dara.isNull(request.name)) {
219
+ body["name"] = request.name;
220
+ }
221
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
222
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
223
+ }
224
+ if (!$dara.isNull(request.queue)) {
225
+ body["queue"] = request.queue;
226
+ }
227
+ if (!$dara.isNull(request.releaseVersion)) {
228
+ body["releaseVersion"] = request.releaseVersion;
229
+ }
230
+ if (!$dara.isNull(request.replica)) {
231
+ body["replica"] = request.replica;
232
+ }
233
+ if (!$dara.isNull(request.sparkConfigs)) {
234
+ body["sparkConfigs"] = request.sparkConfigs;
235
+ }
236
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
237
+ headers: headers,
238
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
239
+ });
240
+ let params = new openapi_core_2.$OpenApiUtil.Params({
241
+ action: "CreateKyuubiService",
242
+ version: "2023-08-08",
243
+ protocol: "HTTPS",
244
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}`,
245
+ method: "POST",
246
+ authType: "AK",
247
+ style: "ROA",
248
+ reqBodyType: "json",
249
+ bodyType: "json",
250
+ });
251
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateKyuubiServiceResponse({}));
252
+ }
253
+ /**
254
+ * CreateKyuubiService
255
+ *
256
+ * @param request - CreateKyuubiServiceRequest
257
+ * @returns CreateKyuubiServiceResponse
258
+ */
259
+ async createKyuubiService(workspaceId, request) {
260
+ let runtime = new $dara.RuntimeOptions({});
261
+ let headers = {};
262
+ return await this.createKyuubiServiceWithOptions(workspaceId, request, headers, runtime);
263
+ }
156
264
  /**
157
265
  * 创建kyuubi的token
158
266
  *
@@ -692,6 +800,39 @@ class Client extends openapi_core_1.default {
692
800
  let headers = {};
693
801
  return await this.createWorkspaceWithOptions(request, headers, runtime);
694
802
  }
803
+ /**
804
+ * DeleteKyuubiService
805
+ *
806
+ * @param headers - map
807
+ * @param runtime - runtime options for this request RuntimeOptions
808
+ * @returns DeleteKyuubiServiceResponse
809
+ */
810
+ async deleteKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
811
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
812
+ headers: headers,
813
+ });
814
+ let params = new openapi_core_2.$OpenApiUtil.Params({
815
+ action: "DeleteKyuubiService",
816
+ version: "2023-08-08",
817
+ protocol: "HTTPS",
818
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
819
+ method: "DELETE",
820
+ authType: "AK",
821
+ style: "ROA",
822
+ reqBodyType: "json",
823
+ bodyType: "json",
824
+ });
825
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteKyuubiServiceResponse({}));
826
+ }
827
+ /**
828
+ * DeleteKyuubiService
829
+ * @returns DeleteKyuubiServiceResponse
830
+ */
831
+ async deleteKyuubiService(workspaceId, kyuubiServiceId) {
832
+ let runtime = new $dara.RuntimeOptions({});
833
+ let headers = {};
834
+ return await this.deleteKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
835
+ }
695
836
  /**
696
837
  * 删除compute的token
697
838
  *
@@ -874,6 +1015,54 @@ class Client extends openapi_core_1.default {
874
1015
  let headers = {};
875
1016
  return await this.editWorkspaceQueueWithOptions(request, headers, runtime);
876
1017
  }
1018
+ /**
1019
+ * 上线工作流及其调度
1020
+ *
1021
+ * @param request - GenerateTaskCodesRequest
1022
+ * @param headers - map
1023
+ * @param runtime - runtime options for this request RuntimeOptions
1024
+ * @returns GenerateTaskCodesResponse
1025
+ */
1026
+ async generateTaskCodesWithOptions(bizId, request, headers, runtime) {
1027
+ request.validate();
1028
+ let query = {};
1029
+ if (!$dara.isNull(request.genNum)) {
1030
+ query["genNum"] = request.genNum;
1031
+ }
1032
+ if (!$dara.isNull(request.productNamespace)) {
1033
+ query["productNamespace"] = request.productNamespace;
1034
+ }
1035
+ if (!$dara.isNull(request.regionId)) {
1036
+ query["regionId"] = request.regionId;
1037
+ }
1038
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1039
+ headers: headers,
1040
+ query: openapi_core_2.OpenApiUtil.query(query),
1041
+ });
1042
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1043
+ action: "GenerateTaskCodes",
1044
+ version: "2023-08-08",
1045
+ protocol: "HTTPS",
1046
+ pathname: `/dolphinscheduler/projects/${$dara.URL.percentEncode(bizId)}/task-definition/gen-task-codes`,
1047
+ method: "GET",
1048
+ authType: "AK",
1049
+ style: "ROA",
1050
+ reqBodyType: "json",
1051
+ bodyType: "json",
1052
+ });
1053
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GenerateTaskCodesResponse({}));
1054
+ }
1055
+ /**
1056
+ * 上线工作流及其调度
1057
+ *
1058
+ * @param request - GenerateTaskCodesRequest
1059
+ * @returns GenerateTaskCodesResponse
1060
+ */
1061
+ async generateTaskCodes(bizId, request) {
1062
+ let runtime = new $dara.RuntimeOptions({});
1063
+ let headers = {};
1064
+ return await this.generateTaskCodesWithOptions(bizId, request, headers, runtime);
1065
+ }
877
1066
  /**
878
1067
  * Queries the number of CU-hours consumed by a queue during a specified cycle.
879
1068
  *
@@ -1009,6 +1198,39 @@ class Client extends openapi_core_1.default {
1009
1198
  let headers = {};
1010
1199
  return await this.getJobRunWithOptions(workspaceId, jobRunId, request, headers, runtime);
1011
1200
  }
1201
+ /**
1202
+ * GetKyuubiService
1203
+ *
1204
+ * @param headers - map
1205
+ * @param runtime - runtime options for this request RuntimeOptions
1206
+ * @returns GetKyuubiServiceResponse
1207
+ */
1208
+ async getKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
1209
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1210
+ headers: headers,
1211
+ });
1212
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1213
+ action: "GetKyuubiService",
1214
+ version: "2023-08-08",
1215
+ protocol: "HTTPS",
1216
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
1217
+ method: "GET",
1218
+ authType: "AK",
1219
+ style: "ROA",
1220
+ reqBodyType: "json",
1221
+ bodyType: "json",
1222
+ });
1223
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetKyuubiServiceResponse({}));
1224
+ }
1225
+ /**
1226
+ * GetKyuubiService
1227
+ * @returns GetKyuubiServiceResponse
1228
+ */
1229
+ async getKyuubiService(workspaceId, kyuubiServiceId) {
1230
+ let runtime = new $dara.RuntimeOptions({});
1231
+ let headers = {};
1232
+ return await this.getKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
1233
+ }
1012
1234
  /**
1013
1235
  * 获取compute的token
1014
1236
  *
@@ -1135,6 +1357,48 @@ class Client extends openapi_core_1.default {
1135
1357
  let headers = {};
1136
1358
  return await this.getLivyComputeTokenWithOptions(workspaceBizId, livyComputeId, tokenId, request, headers, runtime);
1137
1359
  }
1360
+ /**
1361
+ * 获取任务配置
1362
+ *
1363
+ * @param request - GetRunConfigurationRequest
1364
+ * @param headers - map
1365
+ * @param runtime - runtime options for this request RuntimeOptions
1366
+ * @returns GetRunConfigurationResponse
1367
+ */
1368
+ async getRunConfigurationWithOptions(workspaceId, runId, request, headers, runtime) {
1369
+ request.validate();
1370
+ let query = {};
1371
+ if (!$dara.isNull(request.regionId)) {
1372
+ query["regionId"] = request.regionId;
1373
+ }
1374
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1375
+ headers: headers,
1376
+ query: openapi_core_2.OpenApiUtil.query(query),
1377
+ });
1378
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1379
+ action: "GetRunConfiguration",
1380
+ version: "2023-08-08",
1381
+ protocol: "HTTPS",
1382
+ pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/runs/${$dara.URL.percentEncode(runId)}/action/getRunConfiguration`,
1383
+ method: "GET",
1384
+ authType: "AK",
1385
+ style: "ROA",
1386
+ reqBodyType: "json",
1387
+ bodyType: "json",
1388
+ });
1389
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRunConfigurationResponse({}));
1390
+ }
1391
+ /**
1392
+ * 获取任务配置
1393
+ *
1394
+ * @param request - GetRunConfigurationRequest
1395
+ * @returns GetRunConfigurationResponse
1396
+ */
1397
+ async getRunConfiguration(workspaceId, runId, request) {
1398
+ let runtime = new $dara.RuntimeOptions({});
1399
+ let headers = {};
1400
+ return await this.getRunConfigurationWithOptions(workspaceId, runId, request, headers, runtime);
1401
+ }
1138
1402
  /**
1139
1403
  * Queries the information about a session.
1140
1404
  *
@@ -2296,6 +2560,39 @@ class Client extends openapi_core_1.default {
2296
2560
  let headers = {};
2297
2561
  return await this.startJobRunWithOptions(workspaceId, request, headers, runtime);
2298
2562
  }
2563
+ /**
2564
+ * StartKyuubiService
2565
+ *
2566
+ * @param headers - map
2567
+ * @param runtime - runtime options for this request RuntimeOptions
2568
+ * @returns StartKyuubiServiceResponse
2569
+ */
2570
+ async startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
2571
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2572
+ headers: headers,
2573
+ });
2574
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2575
+ action: "StartKyuubiService",
2576
+ version: "2023-08-08",
2577
+ protocol: "HTTPS",
2578
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/start`,
2579
+ method: "POST",
2580
+ authType: "AK",
2581
+ style: "ROA",
2582
+ reqBodyType: "json",
2583
+ bodyType: "json",
2584
+ });
2585
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartKyuubiServiceResponse({}));
2586
+ }
2587
+ /**
2588
+ * StartKyuubiService
2589
+ * @returns StartKyuubiServiceResponse
2590
+ */
2591
+ async startKyuubiService(workspaceId, kyuubiServiceId) {
2592
+ let runtime = new $dara.RuntimeOptions({});
2593
+ let headers = {};
2594
+ return await this.startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2595
+ }
2299
2596
  /**
2300
2597
  * 启动livy compute
2301
2598
  *
@@ -2460,6 +2757,39 @@ class Client extends openapi_core_1.default {
2460
2757
  let headers = {};
2461
2758
  return await this.startSessionClusterWithOptions(workspaceId, request, headers, runtime);
2462
2759
  }
2760
+ /**
2761
+ * StopKyuubiService
2762
+ *
2763
+ * @param headers - map
2764
+ * @param runtime - runtime options for this request RuntimeOptions
2765
+ * @returns StopKyuubiServiceResponse
2766
+ */
2767
+ async stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
2768
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2769
+ headers: headers,
2770
+ });
2771
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2772
+ action: "StopKyuubiService",
2773
+ version: "2023-08-08",
2774
+ protocol: "HTTPS",
2775
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/stop`,
2776
+ method: "POST",
2777
+ authType: "AK",
2778
+ style: "ROA",
2779
+ reqBodyType: "json",
2780
+ bodyType: "json",
2781
+ });
2782
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopKyuubiServiceResponse({}));
2783
+ }
2784
+ /**
2785
+ * StopKyuubiService
2786
+ * @returns StopKyuubiServiceResponse
2787
+ */
2788
+ async stopKyuubiService(workspaceId, kyuubiServiceId) {
2789
+ let runtime = new $dara.RuntimeOptions({});
2790
+ let headers = {};
2791
+ return await this.stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2792
+ }
2463
2793
  /**
2464
2794
  * 停止livy compute
2465
2795
  *
@@ -2594,6 +2924,75 @@ class Client extends openapi_core_1.default {
2594
2924
  let headers = {};
2595
2925
  return await this.terminateSqlStatementWithOptions(workspaceId, statementId, request, headers, runtime);
2596
2926
  }
2927
+ /**
2928
+ * UpdateKyuubiService
2929
+ *
2930
+ * @param request - UpdateKyuubiServiceRequest
2931
+ * @param headers - map
2932
+ * @param runtime - runtime options for this request RuntimeOptions
2933
+ * @returns UpdateKyuubiServiceResponse
2934
+ */
2935
+ async updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime) {
2936
+ request.validate();
2937
+ let body = {};
2938
+ if (!$dara.isNull(request.computeInstance)) {
2939
+ body["computeInstance"] = request.computeInstance;
2940
+ }
2941
+ if (!$dara.isNull(request.kyuubiConfigs)) {
2942
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
2943
+ }
2944
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
2945
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
2946
+ }
2947
+ if (!$dara.isNull(request.name)) {
2948
+ body["name"] = request.name;
2949
+ }
2950
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
2951
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
2952
+ }
2953
+ if (!$dara.isNull(request.queue)) {
2954
+ body["queue"] = request.queue;
2955
+ }
2956
+ if (!$dara.isNull(request.releaseVersion)) {
2957
+ body["releaseVersion"] = request.releaseVersion;
2958
+ }
2959
+ if (!$dara.isNull(request.replica)) {
2960
+ body["replica"] = request.replica;
2961
+ }
2962
+ if (!$dara.isNull(request.restart)) {
2963
+ body["restart"] = request.restart;
2964
+ }
2965
+ if (!$dara.isNull(request.sparkConfigs)) {
2966
+ body["sparkConfigs"] = request.sparkConfigs;
2967
+ }
2968
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2969
+ headers: headers,
2970
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2971
+ });
2972
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2973
+ action: "UpdateKyuubiService",
2974
+ version: "2023-08-08",
2975
+ protocol: "HTTPS",
2976
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
2977
+ method: "PUT",
2978
+ authType: "AK",
2979
+ style: "ROA",
2980
+ reqBodyType: "json",
2981
+ bodyType: "json",
2982
+ });
2983
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateKyuubiServiceResponse({}));
2984
+ }
2985
+ /**
2986
+ * UpdateKyuubiService
2987
+ *
2988
+ * @param request - UpdateKyuubiServiceRequest
2989
+ * @returns UpdateKyuubiServiceResponse
2990
+ */
2991
+ async updateKyuubiService(workspaceId, kyuubiServiceId, request) {
2992
+ let runtime = new $dara.RuntimeOptions({});
2993
+ let headers = {};
2994
+ return await this.updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime);
2995
+ }
2597
2996
  /**
2598
2997
  * 更新kyuubi的token
2599
2998
  *