@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/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
  *
@@ -2550,6 +2795,41 @@ export default class Client extends OpenApi {
2550
2795
  return await this.startJobRunWithOptions(workspaceId, request, headers, runtime);
2551
2796
  }
2552
2797
 
2798
+ /**
2799
+ * StartKyuubiService
2800
+ *
2801
+ * @param headers - map
2802
+ * @param runtime - runtime options for this request RuntimeOptions
2803
+ * @returns StartKyuubiServiceResponse
2804
+ */
2805
+ async startKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.StartKyuubiServiceResponse> {
2806
+ let req = new $OpenApiUtil.OpenApiRequest({
2807
+ headers: headers,
2808
+ });
2809
+ let params = new $OpenApiUtil.Params({
2810
+ action: "StartKyuubiService",
2811
+ version: "2023-08-08",
2812
+ protocol: "HTTPS",
2813
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/start`,
2814
+ method: "POST",
2815
+ authType: "AK",
2816
+ style: "ROA",
2817
+ reqBodyType: "json",
2818
+ bodyType: "json",
2819
+ });
2820
+ return $dara.cast<$_model.StartKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.StartKyuubiServiceResponse({}));
2821
+ }
2822
+
2823
+ /**
2824
+ * StartKyuubiService
2825
+ * @returns StartKyuubiServiceResponse
2826
+ */
2827
+ async startKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StartKyuubiServiceResponse> {
2828
+ let runtime = new $dara.RuntimeOptions({ });
2829
+ let headers : {[key: string ]: string} = { };
2830
+ return await this.startKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
2831
+ }
2832
+
2553
2833
  /**
2554
2834
  * 启动livy compute
2555
2835
  *
@@ -2735,6 +3015,41 @@ export default class Client extends OpenApi {
2735
3015
  return await this.startSessionClusterWithOptions(workspaceId, request, headers, runtime);
2736
3016
  }
2737
3017
 
3018
+ /**
3019
+ * StopKyuubiService
3020
+ *
3021
+ * @param headers - map
3022
+ * @param runtime - runtime options for this request RuntimeOptions
3023
+ * @returns StopKyuubiServiceResponse
3024
+ */
3025
+ async stopKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.StopKyuubiServiceResponse> {
3026
+ let req = new $OpenApiUtil.OpenApiRequest({
3027
+ headers: headers,
3028
+ });
3029
+ let params = new $OpenApiUtil.Params({
3030
+ action: "StopKyuubiService",
3031
+ version: "2023-08-08",
3032
+ protocol: "HTTPS",
3033
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}/stop`,
3034
+ method: "POST",
3035
+ authType: "AK",
3036
+ style: "ROA",
3037
+ reqBodyType: "json",
3038
+ bodyType: "json",
3039
+ });
3040
+ return $dara.cast<$_model.StopKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.StopKyuubiServiceResponse({}));
3041
+ }
3042
+
3043
+ /**
3044
+ * StopKyuubiService
3045
+ * @returns StopKyuubiServiceResponse
3046
+ */
3047
+ async stopKyuubiService(workspaceId: string, kyuubiServiceId: string): Promise<$_model.StopKyuubiServiceResponse> {
3048
+ let runtime = new $dara.RuntimeOptions({ });
3049
+ let headers : {[key: string ]: string} = { };
3050
+ return await this.stopKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, headers, runtime);
3051
+ }
3052
+
2738
3053
  /**
2739
3054
  * 停止livy compute
2740
3055
  *
@@ -2880,6 +3195,87 @@ export default class Client extends OpenApi {
2880
3195
  return await this.terminateSqlStatementWithOptions(workspaceId, statementId, request, headers, runtime);
2881
3196
  }
2882
3197
 
3198
+ /**
3199
+ * UpdateKyuubiService
3200
+ *
3201
+ * @param request - UpdateKyuubiServiceRequest
3202
+ * @param headers - map
3203
+ * @param runtime - runtime options for this request RuntimeOptions
3204
+ * @returns UpdateKyuubiServiceResponse
3205
+ */
3206
+ async updateKyuubiServiceWithOptions(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateKyuubiServiceResponse> {
3207
+ request.validate();
3208
+ let body : {[key: string ]: any} = { };
3209
+ if (!$dara.isNull(request.computeInstance)) {
3210
+ body["computeInstance"] = request.computeInstance;
3211
+ }
3212
+
3213
+ if (!$dara.isNull(request.kyuubiConfigs)) {
3214
+ body["kyuubiConfigs"] = request.kyuubiConfigs;
3215
+ }
3216
+
3217
+ if (!$dara.isNull(request.kyuubiReleaseVersion)) {
3218
+ body["kyuubiReleaseVersion"] = request.kyuubiReleaseVersion;
3219
+ }
3220
+
3221
+ if (!$dara.isNull(request.name)) {
3222
+ body["name"] = request.name;
3223
+ }
3224
+
3225
+ if (!$dara.isNull(request.publicEndpointEnabled)) {
3226
+ body["publicEndpointEnabled"] = request.publicEndpointEnabled;
3227
+ }
3228
+
3229
+ if (!$dara.isNull(request.queue)) {
3230
+ body["queue"] = request.queue;
3231
+ }
3232
+
3233
+ if (!$dara.isNull(request.releaseVersion)) {
3234
+ body["releaseVersion"] = request.releaseVersion;
3235
+ }
3236
+
3237
+ if (!$dara.isNull(request.replica)) {
3238
+ body["replica"] = request.replica;
3239
+ }
3240
+
3241
+ if (!$dara.isNull(request.restart)) {
3242
+ body["restart"] = request.restart;
3243
+ }
3244
+
3245
+ if (!$dara.isNull(request.sparkConfigs)) {
3246
+ body["sparkConfigs"] = request.sparkConfigs;
3247
+ }
3248
+
3249
+ let req = new $OpenApiUtil.OpenApiRequest({
3250
+ headers: headers,
3251
+ body: OpenApiUtil.parseToMap(body),
3252
+ });
3253
+ let params = new $OpenApiUtil.Params({
3254
+ action: "UpdateKyuubiService",
3255
+ version: "2023-08-08",
3256
+ protocol: "HTTPS",
3257
+ pathname: `/api/v1/kyuubi/${$dara.URL.percentEncode(workspaceId)}/${$dara.URL.percentEncode(kyuubiServiceId)}`,
3258
+ method: "PUT",
3259
+ authType: "AK",
3260
+ style: "ROA",
3261
+ reqBodyType: "json",
3262
+ bodyType: "json",
3263
+ });
3264
+ return $dara.cast<$_model.UpdateKyuubiServiceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateKyuubiServiceResponse({}));
3265
+ }
3266
+
3267
+ /**
3268
+ * UpdateKyuubiService
3269
+ *
3270
+ * @param request - UpdateKyuubiServiceRequest
3271
+ * @returns UpdateKyuubiServiceResponse
3272
+ */
3273
+ async updateKyuubiService(workspaceId: string, kyuubiServiceId: string, request: $_model.UpdateKyuubiServiceRequest): Promise<$_model.UpdateKyuubiServiceResponse> {
3274
+ let runtime = new $dara.RuntimeOptions({ });
3275
+ let headers : {[key: string ]: string} = { };
3276
+ return await this.updateKyuubiServiceWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime);
3277
+ }
3278
+
2883
3279
  /**
2884
3280
  * 更新kyuubi的token
2885
3281
  *
@@ -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
+
@@ -0,0 +1,87 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateKyuubiServiceRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 2c8g
9
+ */
10
+ computeInstance?: string;
11
+ /**
12
+ * @example
13
+ * [{\\"key\\":\\"kyuubi.engine.share.level\\",\\"value\\":\\"USER\\"}]
14
+ */
15
+ kyuubiConfigs?: string;
16
+ /**
17
+ * @example
18
+ * 1.9.2-0.0.2
19
+ */
20
+ kyuubiReleaseVersion?: string;
21
+ /**
22
+ * @example
23
+ * dev_serverless_spark
24
+ */
25
+ name?: string;
26
+ /**
27
+ * @example
28
+ * true
29
+ */
30
+ publicEndpointEnabled?: boolean;
31
+ /**
32
+ * @example
33
+ * dev_queue
34
+ */
35
+ queue?: string;
36
+ /**
37
+ * @example
38
+ * esr-4.6.0 (Spark 3.5.2, Scala 2.12)
39
+ */
40
+ releaseVersion?: string;
41
+ /**
42
+ * @example
43
+ * 3
44
+ */
45
+ replica?: number;
46
+ /**
47
+ * @example
48
+ * [{\\"key\\":\\"spark.app.name\\",\\"value\\":\\"test\\"}]
49
+ */
50
+ sparkConfigs?: string;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ computeInstance: 'computeInstance',
54
+ kyuubiConfigs: 'kyuubiConfigs',
55
+ kyuubiReleaseVersion: 'kyuubiReleaseVersion',
56
+ name: 'name',
57
+ publicEndpointEnabled: 'publicEndpointEnabled',
58
+ queue: 'queue',
59
+ releaseVersion: 'releaseVersion',
60
+ replica: 'replica',
61
+ sparkConfigs: 'sparkConfigs',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ computeInstance: 'string',
68
+ kyuubiConfigs: 'string',
69
+ kyuubiReleaseVersion: 'string',
70
+ name: 'string',
71
+ publicEndpointEnabled: 'boolean',
72
+ queue: 'string',
73
+ releaseVersion: 'string',
74
+ replica: 'number',
75
+ sparkConfigs: 'string',
76
+ };
77
+ }
78
+
79
+ validate() {
80
+ super.validate();
81
+ }
82
+
83
+ constructor(map?: { [key: string]: any }) {
84
+ super(map);
85
+ }
86
+ }
87
+