@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/src/client.ts CHANGED
@@ -129,6 +129,128 @@ export default class Client extends OpenApi {
129
129
  return await this.cancelJobRunWithOptions(workspaceId, jobRunId, request, headers, runtime);
130
130
  }
131
131
 
132
+ /**
133
+ * CancelKyuubiSparkApplication
134
+ *
135
+ * @param request - CancelKyuubiSparkApplicationRequest
136
+ * @param headers - map
137
+ * @param runtime - runtime options for this request RuntimeOptions
138
+ * @returns CancelKyuubiSparkApplicationResponse
139
+ */
140
+ async cancelKyuubiSparkApplicationWithOptions(workspaceId: string, kyuubiServiceId: string, applicationId: string, request: $_model.CancelKyuubiSparkApplicationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CancelKyuubiSparkApplicationResponse> {
141
+ request.validate();
142
+ let query : {[key: string ]: any} = { };
143
+ if (!$dara.isNull(request.regionId)) {
144
+ query["regionId"] = request.regionId;
145
+ }
146
+
147
+ let req = new $OpenApiUtil.OpenApiRequest({
148
+ headers: headers,
149
+ query: OpenApiUtil.query(query),
150
+ });
151
+ let params = new $OpenApiUtil.Params({
152
+ action: "CancelKyuubiSparkApplication",
153
+ version: "2023-08-08",
154
+ protocol: "HTTPS",
155
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/application/${$dara.URL.percentEncode(applicationId)}`,
156
+ method: "DELETE",
157
+ authType: "AK",
158
+ style: "ROA",
159
+ reqBodyType: "json",
160
+ bodyType: "json",
161
+ });
162
+ return $dara.cast<$_model.CancelKyuubiSparkApplicationResponse>(await this.callApi(params, req, runtime), new $_model.CancelKyuubiSparkApplicationResponse({}));
163
+ }
164
+
165
+ /**
166
+ * CancelKyuubiSparkApplication
167
+ *
168
+ * @param request - CancelKyuubiSparkApplicationRequest
169
+ * @returns CancelKyuubiSparkApplicationResponse
170
+ */
171
+ async cancelKyuubiSparkApplication(workspaceId: string, kyuubiServiceId: string, applicationId: string, request: $_model.CancelKyuubiSparkApplicationRequest): Promise<$_model.CancelKyuubiSparkApplicationResponse> {
172
+ let runtime = new $dara.RuntimeOptions({ });
173
+ let headers : {[key: string ]: string} = { };
174
+ return await this.cancelKyuubiSparkApplicationWithOptions(workspaceId, kyuubiServiceId, applicationId, request, headers, runtime);
175
+ }
176
+
177
+ /**
178
+ * CreateKyuubiService
179
+ *
180
+ * @param request - CreateKyuubiServiceRequest
181
+ * @param headers - map
182
+ * @param runtime - runtime options for this request RuntimeOptions
183
+ * @returns CreateKyuubiServiceResponse
184
+ */
185
+ async createKyuubiServiceWithOptions(workspaceId: string, request: $_model.CreateKyuubiServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateKyuubiServiceResponse> {
186
+ request.validate();
187
+ let body : {[key: string ]: any} = { };
188
+ if (!$dara.isNull(request.computeInstance)) {
189
+ body["computeInstance"] = request.computeInstance;
190
+ }
191
+
192
+ if (!$dara.isNull(request.kyuubiConfigs)) {
193
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
194
+ }
195
+
196
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
197
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
198
+ }
199
+
200
+ if (!$dara.isNull(request.name)) {
201
+ body["name"] = request.name;
202
+ }
203
+
204
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
205
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
206
+ }
207
+
208
+ if (!$dara.isNull(request.queue)) {
209
+ body["queue"] = request.queue;
210
+ }
211
+
212
+ if (!$dara.isNull(request.releaseVersion)) {
213
+ body["releaseVersion"] = request.releaseVersion;
214
+ }
215
+
216
+ if (!$dara.isNull(request.replica)) {
217
+ body["replica"] = request.replica;
218
+ }
219
+
220
+ if (!$dara.isNull(request.sparkConfigs)) {
221
+ body["sparkConfigs"] = request.sparkConfigs;
222
+ }
223
+
224
+ let req = new $OpenApiUtil.OpenApiRequest({
225
+ headers: headers,
226
+ body: OpenApiUtil.parseToMap(body),
227
+ });
228
+ let params = new $OpenApiUtil.Params({
229
+ action: "CreateKyuubiService",
230
+ version: "2023-08-08",
231
+ protocol: "HTTPS",
232
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}`,
233
+ method: "POST",
234
+ authType: "AK",
235
+ style: "ROA",
236
+ reqBodyType: "json",
237
+ bodyType: "json",
238
+ });
239
+ return $dara.cast<$_model.CreateKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.CreateKyuubiServiceResponse({}));
240
+ }
241
+
242
+ /**
243
+ * CreateKyuubiService
244
+ *
245
+ * @param request - CreateKyuubiServiceRequest
246
+ * @returns CreateKyuubiServiceResponse
247
+ */
248
+ async createKyuubiService(workspaceId: string, request: $_model.CreateKyuubiServiceRequest): Promise<$_model.CreateKyuubiServiceResponse> {
249
+ let runtime = new $dara.RuntimeOptions({ });
250
+ let headers : {[key: string ]: string} = { };
251
+ return await this.createKyuubiServiceWithOptions(workspaceId, request, headers, runtime);
252
+ }
253
+
132
254
  /**
133
255
  * 创建kyuubi的token
134
256
  *
@@ -766,6 +888,41 @@ export default class Client extends OpenApi {
766
888
  return await this.createWorkspaceWithOptions(request, headers, runtime);
767
889
  }
768
890
 
891
+ /**
892
+ * DeleteKyuubiService
893
+ *
894
+ * @param headers - map
895
+ * @param runtime - runtime options for this request RuntimeOptions
896
+ * @returns DeleteKyuubiServiceResponse
897
+ */
898
+ async deleteKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteKyuubiServiceResponse> {
899
+ let req = new $OpenApiUtil.OpenApiRequest({
900
+ headers: headers,
901
+ });
902
+ let params = new $OpenApiUtil.Params({
903
+ action: "DeleteKyuubiService",
904
+ version: "2023-08-08",
905
+ protocol: "HTTPS",
906
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
907
+ method: "DELETE",
908
+ authType: "AK",
909
+ style: "ROA",
910
+ reqBodyType: "json",
911
+ bodyType: "json",
912
+ });
913
+ return $dara.cast<$_model.DeleteKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteKyuubiServiceResponse({}));
914
+ }
915
+
916
+ /**
917
+ * DeleteKyuubiService
918
+ * @returns DeleteKyuubiServiceResponse
919
+ */
920
+ async deleteKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.DeleteKyuubiServiceResponse> {
921
+ let runtime = new $dara.RuntimeOptions({ });
922
+ let headers : {[key: string ]: string} = { };
923
+ return await this.deleteKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
924
+ }
925
+
769
926
  /**
770
927
  * 删除compute的token
771
928
  *
@@ -964,6 +1121,59 @@ export default class Client extends OpenApi {
964
1121
  return await this.editWorkspaceQueueWithOptions(request, headers, runtime);
965
1122
  }
966
1123
 
1124
+ /**
1125
+ * 上线工作流及其调度
1126
+ *
1127
+ * @param request - GenerateTaskCodesRequest
1128
+ * @param headers - map
1129
+ * @param runtime - runtime options for this request RuntimeOptions
1130
+ * @returns GenerateTaskCodesResponse
1131
+ */
1132
+ async generateTaskCodesWithOptions(bizId: string, request: $_model.GenerateTaskCodesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GenerateTaskCodesResponse> {
1133
+ request.validate();
1134
+ let query : {[key: string ]: any} = { };
1135
+ if (!$dara.isNull(request.genNum)) {
1136
+ query["genNum"] = request.genNum;
1137
+ }
1138
+
1139
+ if (!$dara.isNull(request.productNamespace)) {
1140
+ query["productNamespace"] = request.productNamespace;
1141
+ }
1142
+
1143
+ if (!$dara.isNull(request.regionId)) {
1144
+ query["regionId"] = request.regionId;
1145
+ }
1146
+
1147
+ let req = new $OpenApiUtil.OpenApiRequest({
1148
+ headers: headers,
1149
+ query: OpenApiUtil.query(query),
1150
+ });
1151
+ let params = new $OpenApiUtil.Params({
1152
+ action: "GenerateTaskCodes",
1153
+ version: "2023-08-08",
1154
+ protocol: "HTTPS",
1155
+ pathname: `/dolphinscheduler/projects/${$dara.URL.percentEncode(bizId)}/task-definition/gen-task-codes`,
1156
+ method: "GET",
1157
+ authType: "AK",
1158
+ style: "ROA",
1159
+ reqBodyType: "json",
1160
+ bodyType: "json",
1161
+ });
1162
+ return $dara.cast<$_model.GenerateTaskCodesResponse>(await this.callApi(params, req, runtime), new $_model.GenerateTaskCodesResponse({}));
1163
+ }
1164
+
1165
+ /**
1166
+ * 上线工作流及其调度
1167
+ *
1168
+ * @param request - GenerateTaskCodesRequest
1169
+ * @returns GenerateTaskCodesResponse
1170
+ */
1171
+ async generateTaskCodes(bizId: string, request: $_model.GenerateTaskCodesRequest): Promise<$_model.GenerateTaskCodesResponse> {
1172
+ let runtime = new $dara.RuntimeOptions({ });
1173
+ let headers : {[key: string ]: string} = { };
1174
+ return await this.generateTaskCodesWithOptions(bizId, request, headers, runtime);
1175
+ }
1176
+
967
1177
  /**
968
1178
  * Queries the number of CU-hours consumed by a queue during a specified cycle.
969
1179
  *
@@ -1111,6 +1321,41 @@ export default class Client extends OpenApi {
1111
1321
  return await this.getJobRunWithOptions(workspaceId, jobRunId, request, headers, runtime);
1112
1322
  }
1113
1323
 
1324
+ /**
1325
+ * GetKyuubiService
1326
+ *
1327
+ * @param headers - map
1328
+ * @param runtime - runtime options for this request RuntimeOptions
1329
+ * @returns GetKyuubiServiceResponse
1330
+ */
1331
+ async getKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetKyuubiServiceResponse> {
1332
+ let req = new $OpenApiUtil.OpenApiRequest({
1333
+ headers: headers,
1334
+ });
1335
+ let params = new $OpenApiUtil.Params({
1336
+ action: "GetKyuubiService",
1337
+ version: "2023-08-08",
1338
+ protocol: "HTTPS",
1339
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
1340
+ method: "GET",
1341
+ authType: "AK",
1342
+ style: "ROA",
1343
+ reqBodyType: "json",
1344
+ bodyType: "json",
1345
+ });
1346
+ return $dara.cast<$_model.GetKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetKyuubiServiceResponse({}));
1347
+ }
1348
+
1349
+ /**
1350
+ * GetKyuubiService
1351
+ * @returns GetKyuubiServiceResponse
1352
+ */
1353
+ async getKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.GetKyuubiServiceResponse> {
1354
+ let runtime = new $dara.RuntimeOptions({ });
1355
+ let headers : {[key: string ]: string} = { };
1356
+ return await this.getKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
1357
+ }
1358
+
1114
1359
  /**
1115
1360
  * 获取compute的token
1116
1361
  *
@@ -1246,6 +1491,51 @@ export default class Client extends OpenApi {
1246
1491
  return await this.getLivyComputeTokenWithOptions(workspaceBizId, livyComputeId, tokenId, request, headers, runtime);
1247
1492
  }
1248
1493
 
1494
+ /**
1495
+ * 获取任务配置
1496
+ *
1497
+ * @param request - GetRunConfigurationRequest
1498
+ * @param headers - map
1499
+ * @param runtime - runtime options for this request RuntimeOptions
1500
+ * @returns GetRunConfigurationResponse
1501
+ */
1502
+ async getRunConfigurationWithOptions(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetRunConfigurationResponse> {
1503
+ request.validate();
1504
+ let query : {[key: string ]: any} = { };
1505
+ if (!$dara.isNull(request.regionId)) {
1506
+ query["regionId"] = request.regionId;
1507
+ }
1508
+
1509
+ let req = new $OpenApiUtil.OpenApiRequest({
1510
+ headers: headers,
1511
+ query: OpenApiUtil.query(query),
1512
+ });
1513
+ let params = new $OpenApiUtil.Params({
1514
+ action: "GetRunConfiguration",
1515
+ version: "2023-08-08",
1516
+ protocol: "HTTPS",
1517
+ pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/runs/${$dara.URL.percentEncode(runId)}/action/getRunConfiguration`,
1518
+ method: "GET",
1519
+ authType: "AK",
1520
+ style: "ROA",
1521
+ reqBodyType: "json",
1522
+ bodyType: "json",
1523
+ });
1524
+ return $dara.cast<$_model.GetRunConfigurationResponse>(await this.callApi(params, req, runtime), new $_model.GetRunConfigurationResponse({}));
1525
+ }
1526
+
1527
+ /**
1528
+ * 获取任务配置
1529
+ *
1530
+ * @param request - GetRunConfigurationRequest
1531
+ * @returns GetRunConfigurationResponse
1532
+ */
1533
+ async getRunConfiguration(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest): Promise<$_model.GetRunConfigurationResponse> {
1534
+ let runtime = new $dara.RuntimeOptions({ });
1535
+ let headers : {[key: string ]: string} = { };
1536
+ return await this.getRunConfigurationWithOptions(workspaceId, runId, request, headers, runtime);
1537
+ }
1538
+
1249
1539
  /**
1250
1540
  * Queries the information about a session.
1251
1541
  *
@@ -2550,6 +2840,41 @@ export default class Client extends OpenApi {
2550
2840
  return await this.startJobRunWithOptions(workspaceId, request, headers, runtime);
2551
2841
  }
2552
2842
 
2843
+ /**
2844
+ * StartKyuubiService
2845
+ *
2846
+ * @param headers - map
2847
+ * @param runtime - runtime options for this request RuntimeOptions
2848
+ * @returns StartKyuubiServiceResponse
2849
+ */
2850
+ async startKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.StartKyuubiServiceResponse> {
2851
+ let req = new $OpenApiUtil.OpenApiRequest({
2852
+ headers: headers,
2853
+ });
2854
+ let params = new $OpenApiUtil.Params({
2855
+ action: "StartKyuubiService",
2856
+ version: "2023-08-08",
2857
+ protocol: "HTTPS",
2858
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/start`,
2859
+ method: "POST",
2860
+ authType: "AK",
2861
+ style: "ROA",
2862
+ reqBodyType: "json",
2863
+ bodyType: "json",
2864
+ });
2865
+ return $dara.cast<$_model.StartKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.StartKyuubiServiceResponse({}));
2866
+ }
2867
+
2868
+ /**
2869
+ * StartKyuubiService
2870
+ * @returns StartKyuubiServiceResponse
2871
+ */
2872
+ async startKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StartKyuubiServiceResponse> {
2873
+ let runtime = new $dara.RuntimeOptions({ });
2874
+ let headers : {[key: string ]: string} = { };
2875
+ return await this.startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2876
+ }
2877
+
2553
2878
  /**
2554
2879
  * 启动livy compute
2555
2880
  *
@@ -2735,6 +3060,41 @@ export default class Client extends OpenApi {
2735
3060
  return await this.startSessionClusterWithOptions(workspaceId, request, headers, runtime);
2736
3061
  }
2737
3062
 
3063
+ /**
3064
+ * StopKyuubiService
3065
+ *
3066
+ * @param headers - map
3067
+ * @param runtime - runtime options for this request RuntimeOptions
3068
+ * @returns StopKyuubiServiceResponse
3069
+ */
3070
+ async stopKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.StopKyuubiServiceResponse> {
3071
+ let req = new $OpenApiUtil.OpenApiRequest({
3072
+ headers: headers,
3073
+ });
3074
+ let params = new $OpenApiUtil.Params({
3075
+ action: "StopKyuubiService",
3076
+ version: "2023-08-08",
3077
+ protocol: "HTTPS",
3078
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/stop`,
3079
+ method: "POST",
3080
+ authType: "AK",
3081
+ style: "ROA",
3082
+ reqBodyType: "json",
3083
+ bodyType: "json",
3084
+ });
3085
+ return $dara.cast<$_model.StopKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.StopKyuubiServiceResponse({}));
3086
+ }
3087
+
3088
+ /**
3089
+ * StopKyuubiService
3090
+ * @returns StopKyuubiServiceResponse
3091
+ */
3092
+ async stopKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StopKyuubiServiceResponse> {
3093
+ let runtime = new $dara.RuntimeOptions({ });
3094
+ let headers : {[key: string ]: string} = { };
3095
+ return await this.stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
3096
+ }
3097
+
2738
3098
  /**
2739
3099
  * 停止livy compute
2740
3100
  *
@@ -2880,6 +3240,87 @@ export default class Client extends OpenApi {
2880
3240
  return await this.terminateSqlStatementWithOptions(workspaceId, statementId, request, headers, runtime);
2881
3241
  }
2882
3242
 
3243
+ /**
3244
+ * UpdateKyuubiService
3245
+ *
3246
+ * @param request - UpdateKyuubiServiceRequest
3247
+ * @param headers - map
3248
+ * @param runtime - runtime options for this request RuntimeOptions
3249
+ * @returns UpdateKyuubiServiceResponse
3250
+ */
3251
+ async updateKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateKyuubiServiceResponse> {
3252
+ request.validate();
3253
+ let body : {[key: string ]: any} = { };
3254
+ if (!$dara.isNull(request.computeInstance)) {
3255
+ body["computeInstance"] = request.computeInstance;
3256
+ }
3257
+
3258
+ if (!$dara.isNull(request.kyuubiConfigs)) {
3259
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
3260
+ }
3261
+
3262
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
3263
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
3264
+ }
3265
+
3266
+ if (!$dara.isNull(request.name)) {
3267
+ body["name"] = request.name;
3268
+ }
3269
+
3270
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
3271
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
3272
+ }
3273
+
3274
+ if (!$dara.isNull(request.queue)) {
3275
+ body["queue"] = request.queue;
3276
+ }
3277
+
3278
+ if (!$dara.isNull(request.releaseVersion)) {
3279
+ body["releaseVersion"] = request.releaseVersion;
3280
+ }
3281
+
3282
+ if (!$dara.isNull(request.replica)) {
3283
+ body["replica"] = request.replica;
3284
+ }
3285
+
3286
+ if (!$dara.isNull(request.restart)) {
3287
+ body["restart"] = request.restart;
3288
+ }
3289
+
3290
+ if (!$dara.isNull(request.sparkConfigs)) {
3291
+ body["sparkConfigs"] = request.sparkConfigs;
3292
+ }
3293
+
3294
+ let req = new $OpenApiUtil.OpenApiRequest({
3295
+ headers: headers,
3296
+ body: OpenApiUtil.parseToMap(body),
3297
+ });
3298
+ let params = new $OpenApiUtil.Params({
3299
+ action: "UpdateKyuubiService",
3300
+ version: "2023-08-08",
3301
+ protocol: "HTTPS",
3302
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
3303
+ method: "PUT",
3304
+ authType: "AK",
3305
+ style: "ROA",
3306
+ reqBodyType: "json",
3307
+ bodyType: "json",
3308
+ });
3309
+ return $dara.cast<$_model.UpdateKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateKyuubiServiceResponse({}));
3310
+ }
3311
+
3312
+ /**
3313
+ * UpdateKyuubiService
3314
+ *
3315
+ * @param request - UpdateKyuubiServiceRequest
3316
+ * @returns UpdateKyuubiServiceResponse
3317
+ */
3318
+ async updateKyuubiService(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest): Promise<$_model.UpdateKyuubiServiceResponse> {
3319
+ let runtime = new $dara.RuntimeOptions({ });
3320
+ let headers : {[key: string ]: string} = { };
3321
+ return await this.updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime);
3322
+ }
3323
+
2883
3324
  /**
2884
3325
  * 更新kyuubi的token
2885
3326
  *
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CancelKyuubiSparkApplicationRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cn-hangzhou
9
+ */
10
+ regionId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ regionId: 'regionId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ regionId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CancelKyuubiSparkApplicationResponseBody } from "./CancelKyuubiSparkApplicationResponseBody";
4
+
5
+
6
+ export class CancelKyuubiSparkApplicationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CancelKyuubiSparkApplicationResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CancelKyuubiSparkApplicationResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,67 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CancelKyuubiSparkApplicationResponseBodyBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * spark-339f844005b6404c95f9f7c7a13b****
9
+ */
10
+ applicationId?: string;
11
+ success?: boolean;
12
+ static names(): { [key: string]: string } {
13
+ return {
14
+ applicationId: 'applicationId',
15
+ success: 'success',
16
+ };
17
+ }
18
+
19
+ static types(): { [key: string]: any } {
20
+ return {
21
+ applicationId: 'string',
22
+ success: 'boolean',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class CancelKyuubiSparkApplicationResponseBody extends $dara.Model {
36
+ body?: CancelKyuubiSparkApplicationResponseBodyBody;
37
+ /**
38
+ * @example
39
+ * DD6B1B2A-5837-5237-ABE4-FF0C8944****
40
+ */
41
+ requestId?: string;
42
+ static names(): { [key: string]: string } {
43
+ return {
44
+ body: 'body',
45
+ requestId: 'requestId',
46
+ };
47
+ }
48
+
49
+ static types(): { [key: string]: any } {
50
+ return {
51
+ body: CancelKyuubiSparkApplicationResponseBodyBody,
52
+ requestId: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ if(this.body && typeof (this.body as any).validate === 'function') {
58
+ (this.body as any).validate();
59
+ }
60
+ super.validate();
61
+ }
62
+
63
+ constructor(map?: { [key: string]: any }) {
64
+ super(map);
65
+ }
66
+ }
67
+