@alicloud/emr-serverless-spark20230808 1.16.1 → 1.17.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 +132 -0
  2. package/dist/client.js +357 -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/StartKyuubiServiceResponse.d.ts +19 -0
  44. package/dist/models/StartKyuubiServiceResponse.js +69 -0
  45. package/dist/models/StartKyuubiServiceResponse.js.map +1 -0
  46. package/dist/models/StartKyuubiServiceResponseBody.d.ts +23 -0
  47. package/dist/models/StartKyuubiServiceResponseBody.js +60 -0
  48. package/dist/models/StartKyuubiServiceResponseBody.js.map +1 -0
  49. package/dist/models/StopKyuubiServiceResponse.d.ts +19 -0
  50. package/dist/models/StopKyuubiServiceResponse.js +69 -0
  51. package/dist/models/StopKyuubiServiceResponse.js.map +1 -0
  52. package/dist/models/StopKyuubiServiceResponseBody.d.ts +23 -0
  53. package/dist/models/StopKyuubiServiceResponseBody.js +60 -0
  54. package/dist/models/StopKyuubiServiceResponseBody.js.map +1 -0
  55. package/dist/models/UpdateKyuubiServiceRequest.d.ts +63 -0
  56. package/dist/models/UpdateKyuubiServiceRequest.js +76 -0
  57. package/dist/models/UpdateKyuubiServiceRequest.js.map +1 -0
  58. package/dist/models/UpdateKyuubiServiceResponse.d.ts +19 -0
  59. package/dist/models/UpdateKyuubiServiceResponse.js +69 -0
  60. package/dist/models/UpdateKyuubiServiceResponse.js.map +1 -0
  61. package/dist/models/UpdateKyuubiServiceResponseBody.d.ts +23 -0
  62. package/dist/models/UpdateKyuubiServiceResponseBody.js +60 -0
  63. package/dist/models/UpdateKyuubiServiceResponseBody.js.map +1 -0
  64. package/dist/models/model.d.ts +23 -0
  65. package/dist/models/model.js +52 -6
  66. package/dist/models/model.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/client.ts +396 -0
  69. package/src/models/CancelKyuubiSparkApplicationRequest.ts +31 -0
  70. package/src/models/CancelKyuubiSparkApplicationResponse.ts +40 -0
  71. package/src/models/CancelKyuubiSparkApplicationResponseBody.ts +67 -0
  72. package/src/models/CreateKyuubiServiceRequest.ts +87 -0
  73. package/src/models/CreateKyuubiServiceResponse.ts +40 -0
  74. package/src/models/CreateKyuubiServiceResponseBody.ts +67 -0
  75. package/src/models/DeleteKyuubiServiceResponse.ts +40 -0
  76. package/src/models/DeleteKyuubiServiceResponseBody.ts +38 -0
  77. package/src/models/GenerateTaskCodesRequest.ts +51 -0
  78. package/src/models/GenerateTaskCodesResponse.ts +40 -0
  79. package/src/models/GenerateTaskCodesResponseBody.ts +72 -0
  80. package/src/models/GetKyuubiServiceResponse.ts +40 -0
  81. package/src/models/GetKyuubiServiceResponseBody.ts +172 -0
  82. package/src/models/StartKyuubiServiceResponse.ts +40 -0
  83. package/src/models/StartKyuubiServiceResponseBody.ts +38 -0
  84. package/src/models/StopKyuubiServiceResponse.ts +40 -0
  85. package/src/models/StopKyuubiServiceResponseBody.ts +38 -0
  86. package/src/models/UpdateKyuubiServiceRequest.ts +94 -0
  87. package/src/models/UpdateKyuubiServiceResponse.ts +40 -0
  88. package/src/models/UpdateKyuubiServiceResponseBody.ts +38 -0
  89. package/src/models/model.ts +23 -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
  *
@@ -743,6 +827,21 @@ export default class Client extends OpenApi {
743
827
  * @returns StartJobRunResponse
744
828
  */
745
829
  startJobRun(workspaceId: string, request: $_model.StartJobRunRequest): Promise<$_model.StartJobRunResponse>;
830
+ /**
831
+ * StartKyuubiService
832
+ *
833
+ * @param headers - map
834
+ * @param runtime - runtime options for this request RuntimeOptions
835
+ * @returns StartKyuubiServiceResponse
836
+ */
837
+ startKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
838
+ [key: string]: string;
839
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.StartKyuubiServiceResponse>;
840
+ /**
841
+ * StartKyuubiService
842
+ * @returns StartKyuubiServiceResponse
843
+ */
844
+ startKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StartKyuubiServiceResponse>;
746
845
  /**
747
846
  * 启动livy compute
748
847
  *
@@ -797,6 +896,21 @@ export default class Client extends OpenApi {
797
896
  * @returns StartSessionClusterResponse
798
897
  */
799
898
  startSessionCluster(workspaceId: string, request: $_model.StartSessionClusterRequest): Promise<$_model.StartSessionClusterResponse>;
899
+ /**
900
+ * StopKyuubiService
901
+ *
902
+ * @param headers - map
903
+ * @param runtime - runtime options for this request RuntimeOptions
904
+ * @returns StopKyuubiServiceResponse
905
+ */
906
+ stopKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {
907
+ [key: string]: string;
908
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.StopKyuubiServiceResponse>;
909
+ /**
910
+ * StopKyuubiService
911
+ * @returns StopKyuubiServiceResponse
912
+ */
913
+ stopKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StopKyuubiServiceResponse>;
800
914
  /**
801
915
  * 停止livy compute
802
916
  *
@@ -851,6 +965,24 @@ export default class Client extends OpenApi {
851
965
  * @returns TerminateSqlStatementResponse
852
966
  */
853
967
  terminateSqlStatement(workspaceId: string, statementId: string, request: $_model.TerminateSqlStatementRequest): Promise<$_model.TerminateSqlStatementResponse>;
968
+ /**
969
+ * UpdateKyuubiService
970
+ *
971
+ * @param request - UpdateKyuubiServiceRequest
972
+ * @param headers - map
973
+ * @param runtime - runtime options for this request RuntimeOptions
974
+ * @returns UpdateKyuubiServiceResponse
975
+ */
976
+ updateKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest, headers: {
977
+ [key: string]: string;
978
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateKyuubiServiceResponse>;
979
+ /**
980
+ * UpdateKyuubiService
981
+ *
982
+ * @param request - UpdateKyuubiServiceRequest
983
+ * @returns UpdateKyuubiServiceResponse
984
+ */
985
+ updateKyuubiService(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest): Promise<$_model.UpdateKyuubiServiceResponse>;
854
986
  /**
855
987
  * 更新kyuubi的token
856
988
  *
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
  *
@@ -2296,6 +2518,39 @@ class Client extends openapi_core_1.default {
2296
2518
  let headers = {};
2297
2519
  return await this.startJobRunWithOptions(workspaceId, request, headers, runtime);
2298
2520
  }
2521
+ /**
2522
+ * StartKyuubiService
2523
+ *
2524
+ * @param headers - map
2525
+ * @param runtime - runtime options for this request RuntimeOptions
2526
+ * @returns StartKyuubiServiceResponse
2527
+ */
2528
+ async startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
2529
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2530
+ headers: headers,
2531
+ });
2532
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2533
+ action: "StartKyuubiService",
2534
+ version: "2023-08-08",
2535
+ protocol: "HTTPS",
2536
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/start`,
2537
+ method: "POST",
2538
+ authType: "AK",
2539
+ style: "ROA",
2540
+ reqBodyType: "json",
2541
+ bodyType: "json",
2542
+ });
2543
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartKyuubiServiceResponse({}));
2544
+ }
2545
+ /**
2546
+ * StartKyuubiService
2547
+ * @returns StartKyuubiServiceResponse
2548
+ */
2549
+ async startKyuubiService(workspaceId, kyuubiServiceId) {
2550
+ let runtime = new $dara.RuntimeOptions({});
2551
+ let headers = {};
2552
+ return await this.startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2553
+ }
2299
2554
  /**
2300
2555
  * 启动livy compute
2301
2556
  *
@@ -2460,6 +2715,39 @@ class Client extends openapi_core_1.default {
2460
2715
  let headers = {};
2461
2716
  return await this.startSessionClusterWithOptions(workspaceId, request, headers, runtime);
2462
2717
  }
2718
+ /**
2719
+ * StopKyuubiService
2720
+ *
2721
+ * @param headers - map
2722
+ * @param runtime - runtime options for this request RuntimeOptions
2723
+ * @returns StopKyuubiServiceResponse
2724
+ */
2725
+ async stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime) {
2726
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2727
+ headers: headers,
2728
+ });
2729
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2730
+ action: "StopKyuubiService",
2731
+ version: "2023-08-08",
2732
+ protocol: "HTTPS",
2733
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/stop`,
2734
+ method: "POST",
2735
+ authType: "AK",
2736
+ style: "ROA",
2737
+ reqBodyType: "json",
2738
+ bodyType: "json",
2739
+ });
2740
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopKyuubiServiceResponse({}));
2741
+ }
2742
+ /**
2743
+ * StopKyuubiService
2744
+ * @returns StopKyuubiServiceResponse
2745
+ */
2746
+ async stopKyuubiService(workspaceId, kyuubiServiceId) {
2747
+ let runtime = new $dara.RuntimeOptions({});
2748
+ let headers = {};
2749
+ return await this.stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2750
+ }
2463
2751
  /**
2464
2752
  * 停止livy compute
2465
2753
  *
@@ -2594,6 +2882,75 @@ class Client extends openapi_core_1.default {
2594
2882
  let headers = {};
2595
2883
  return await this.terminateSqlStatementWithOptions(workspaceId, statementId, request, headers, runtime);
2596
2884
  }
2885
+ /**
2886
+ * UpdateKyuubiService
2887
+ *
2888
+ * @param request - UpdateKyuubiServiceRequest
2889
+ * @param headers - map
2890
+ * @param runtime - runtime options for this request RuntimeOptions
2891
+ * @returns UpdateKyuubiServiceResponse
2892
+ */
2893
+ async updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime) {
2894
+ request.validate();
2895
+ let body = {};
2896
+ if (!$dara.isNull(request.computeInstance)) {
2897
+ body["computeInstance"] = request.computeInstance;
2898
+ }
2899
+ if (!$dara.isNull(request.kyuubiConfigs)) {
2900
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
2901
+ }
2902
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
2903
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
2904
+ }
2905
+ if (!$dara.isNull(request.name)) {
2906
+ body["name"] = request.name;
2907
+ }
2908
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
2909
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
2910
+ }
2911
+ if (!$dara.isNull(request.queue)) {
2912
+ body["queue"] = request.queue;
2913
+ }
2914
+ if (!$dara.isNull(request.releaseVersion)) {
2915
+ body["releaseVersion"] = request.releaseVersion;
2916
+ }
2917
+ if (!$dara.isNull(request.replica)) {
2918
+ body["replica"] = request.replica;
2919
+ }
2920
+ if (!$dara.isNull(request.restart)) {
2921
+ body["restart"] = request.restart;
2922
+ }
2923
+ if (!$dara.isNull(request.sparkConfigs)) {
2924
+ body["sparkConfigs"] = request.sparkConfigs;
2925
+ }
2926
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2927
+ headers: headers,
2928
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2929
+ });
2930
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2931
+ action: "UpdateKyuubiService",
2932
+ version: "2023-08-08",
2933
+ protocol: "HTTPS",
2934
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
2935
+ method: "PUT",
2936
+ authType: "AK",
2937
+ style: "ROA",
2938
+ reqBodyType: "json",
2939
+ bodyType: "json",
2940
+ });
2941
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateKyuubiServiceResponse({}));
2942
+ }
2943
+ /**
2944
+ * UpdateKyuubiService
2945
+ *
2946
+ * @param request - UpdateKyuubiServiceRequest
2947
+ * @returns UpdateKyuubiServiceResponse
2948
+ */
2949
+ async updateKyuubiService(workspaceId, kyuubiServiceId, request) {
2950
+ let runtime = new $dara.RuntimeOptions({});
2951
+ let headers = {};
2952
+ return await this.updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime);
2953
+ }
2597
2954
  /**
2598
2955
  * 更新kyuubi的token
2599
2956
  *