@alicloud/emr-serverless-spark20230808 1.18.0 → 1.19.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.
- package/dist/client.d.ts +124 -4
- package/dist/client.js +325 -4
- package/dist/client.js.map +1 -1
- package/dist/models/Category.d.ts +42 -0
- package/dist/models/Category.js.map +1 -1
- package/dist/models/Configuration.d.ts +21 -0
- package/dist/models/Configuration.js.map +1 -1
- package/dist/models/CreateRayClusterRequest.d.ts +129 -0
- package/dist/models/CreateRayClusterRequest.js +136 -0
- package/dist/models/CreateRayClusterRequest.js.map +1 -0
- package/dist/models/CreateRayClusterResponse.d.ts +19 -0
- package/dist/models/CreateRayClusterResponse.js +69 -0
- package/dist/models/CreateRayClusterResponse.js.map +1 -0
- package/dist/models/CreateRayClusterResponseBody.d.ts +23 -0
- package/dist/models/CreateRayClusterResponseBody.js +60 -0
- package/dist/models/CreateRayClusterResponseBody.js.map +1 -0
- package/dist/models/CreateWorkspaceRequest.d.ts +5 -0
- package/dist/models/CreateWorkspaceRequest.js +2 -0
- package/dist/models/CreateWorkspaceRequest.js.map +1 -1
- package/dist/models/DeleteRayClusterResponse.d.ts +19 -0
- package/dist/models/DeleteRayClusterResponse.js +69 -0
- package/dist/models/DeleteRayClusterResponse.js.map +1 -0
- package/dist/models/DeleteRayClusterResponseBody.d.ts +18 -0
- package/dist/models/DeleteRayClusterResponseBody.js +58 -0
- package/dist/models/DeleteRayClusterResponseBody.js.map +1 -0
- package/dist/models/GetRayClusterResponse.d.ts +19 -0
- package/dist/models/GetRayClusterResponse.js +69 -0
- package/dist/models/GetRayClusterResponse.js.map +1 -0
- package/dist/models/GetRayClusterResponseBody.d.ts +292 -0
- package/dist/models/GetRayClusterResponseBody.js +218 -0
- package/dist/models/GetRayClusterResponseBody.js.map +1 -0
- package/dist/models/JobDriver.d.ts +22 -0
- package/dist/models/JobDriver.js.map +1 -1
- package/dist/models/ListRayClusterRequest.d.ts +23 -0
- package/dist/models/ListRayClusterRequest.js +60 -0
- package/dist/models/ListRayClusterRequest.js.map +1 -0
- package/dist/models/ListRayClusterResponse.d.ts +19 -0
- package/dist/models/ListRayClusterResponse.js +69 -0
- package/dist/models/ListRayClusterResponse.js.map +1 -0
- package/dist/models/ListRayClusterResponseBody.d.ts +222 -0
- package/dist/models/ListRayClusterResponseBody.js +190 -0
- package/dist/models/ListRayClusterResponseBody.js.map +1 -0
- package/dist/models/ListWorkspacesRequest.d.ts +13 -0
- package/dist/models/ListWorkspacesRequest.js +2 -0
- package/dist/models/ListWorkspacesRequest.js.map +1 -1
- package/dist/models/ListWorkspacesResponseBody.d.ts +5 -0
- package/dist/models/ListWorkspacesResponseBody.js +2 -0
- package/dist/models/ListWorkspacesResponseBody.js.map +1 -1
- package/dist/models/ListWorkspacesShrinkRequest.d.ts +5 -0
- package/dist/models/ListWorkspacesShrinkRequest.js +2 -0
- package/dist/models/ListWorkspacesShrinkRequest.js.map +1 -1
- package/dist/models/PrincipalAction.d.ts +7 -1
- package/dist/models/PrincipalAction.js.map +1 -1
- package/dist/models/RunLog.d.ts +28 -0
- package/dist/models/RunLog.js.map +1 -1
- package/dist/models/SparkConf.d.ts +10 -0
- package/dist/models/SparkConf.js.map +1 -1
- package/dist/models/StartRayClusterRequest.d.ts +18 -0
- package/dist/models/StartRayClusterRequest.js +58 -0
- package/dist/models/StartRayClusterRequest.js.map +1 -0
- package/dist/models/StartRayClusterResponse.d.ts +19 -0
- package/dist/models/StartRayClusterResponse.js +69 -0
- package/dist/models/StartRayClusterResponse.js.map +1 -0
- package/dist/models/StartRayClusterResponseBody.d.ts +18 -0
- package/dist/models/StartRayClusterResponseBody.js +58 -0
- package/dist/models/StartRayClusterResponseBody.js.map +1 -0
- package/dist/models/StopRayClusterRequest.d.ts +18 -0
- package/dist/models/StopRayClusterRequest.js +58 -0
- package/dist/models/StopRayClusterRequest.js.map +1 -0
- package/dist/models/StopRayClusterResponse.d.ts +19 -0
- package/dist/models/StopRayClusterResponse.js +69 -0
- package/dist/models/StopRayClusterResponse.js.map +1 -0
- package/dist/models/StopRayClusterResponseBody.d.ts +18 -0
- package/dist/models/StopRayClusterResponseBody.js +58 -0
- package/dist/models/StopRayClusterResponseBody.js.map +1 -0
- package/dist/models/Tag.d.ts +2 -2
- package/dist/models/TaskInstance.d.ts +53 -0
- package/dist/models/TaskInstance.js.map +1 -1
- package/dist/models/Template.d.ts +80 -0
- package/dist/models/Template.js.map +1 -1
- package/dist/models/TimeRange.d.ts +2 -2
- package/dist/models/UpdateRayClusterRequest.d.ts +129 -0
- package/dist/models/UpdateRayClusterRequest.js +136 -0
- package/dist/models/UpdateRayClusterRequest.js.map +1 -0
- package/dist/models/UpdateRayClusterResponse.d.ts +19 -0
- package/dist/models/UpdateRayClusterResponse.js +69 -0
- package/dist/models/UpdateRayClusterResponse.js.map +1 -0
- package/dist/models/UpdateRayClusterResponseBody.d.ts +23 -0
- package/dist/models/UpdateRayClusterResponseBody.js +60 -0
- package/dist/models/UpdateRayClusterResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +29 -0
- package/dist/models/model.js +65 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +359 -4
- package/src/models/Category.ts +42 -0
- package/src/models/Configuration.ts +21 -0
- package/src/models/CreateRayClusterRequest.ts +202 -0
- package/src/models/CreateRayClusterResponse.ts +40 -0
- package/src/models/CreateRayClusterResponseBody.ts +38 -0
- package/src/models/CreateWorkspaceRequest.ts +7 -0
- package/src/models/DeleteRayClusterResponse.ts +40 -0
- package/src/models/DeleteRayClusterResponseBody.ts +31 -0
- package/src/models/GetRayClusterResponse.ts +40 -0
- package/src/models/GetRayClusterResponseBody.ts +438 -0
- package/src/models/JobDriver.ts +22 -0
- package/src/models/ListRayClusterRequest.ts +38 -0
- package/src/models/ListRayClusterResponse.ts +40 -0
- package/src/models/ListRayClusterResponseBody.ts +340 -0
- package/src/models/ListWorkspacesRequest.ts +15 -0
- package/src/models/ListWorkspacesResponseBody.ts +7 -0
- package/src/models/ListWorkspacesShrinkRequest.ts +7 -0
- package/src/models/PrincipalAction.ts +7 -1
- package/src/models/RunLog.ts +28 -0
- package/src/models/SparkConf.ts +10 -0
- package/src/models/StartRayClusterRequest.ts +31 -0
- package/src/models/StartRayClusterResponse.ts +40 -0
- package/src/models/StartRayClusterResponseBody.ts +31 -0
- package/src/models/StopRayClusterRequest.ts +31 -0
- package/src/models/StopRayClusterResponse.ts +40 -0
- package/src/models/StopRayClusterResponseBody.ts +31 -0
- package/src/models/Tag.ts +2 -2
- package/src/models/TaskInstance.ts +53 -0
- package/src/models/Template.ts +80 -0
- package/src/models/TimeRange.ts +2 -2
- package/src/models/UpdateRayClusterRequest.ts +202 -0
- package/src/models/UpdateRayClusterResponse.ts +40 -0
- package/src/models/UpdateRayClusterResponseBody.ts +38 -0
- package/src/models/model.ts +29 -0
package/dist/client.d.ts
CHANGED
|
@@ -152,6 +152,24 @@ export default class Client extends OpenApi {
|
|
|
152
152
|
* @returns CreateProcessDefinitionWithScheduleResponse
|
|
153
153
|
*/
|
|
154
154
|
createProcessDefinitionWithSchedule(bizId: string, request: $_model.CreateProcessDefinitionWithScheduleRequest): Promise<$_model.CreateProcessDefinitionWithScheduleResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* 创建Ray集群
|
|
157
|
+
*
|
|
158
|
+
* @param request - CreateRayClusterRequest
|
|
159
|
+
* @param headers - map
|
|
160
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
161
|
+
* @returns CreateRayClusterResponse
|
|
162
|
+
*/
|
|
163
|
+
createRayClusterWithOptions(workspaceId: string, request: $_model.CreateRayClusterRequest, headers: {
|
|
164
|
+
[key: string]: string;
|
|
165
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateRayClusterResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* 创建Ray集群
|
|
168
|
+
*
|
|
169
|
+
* @param request - CreateRayClusterRequest
|
|
170
|
+
* @returns CreateRayClusterResponse
|
|
171
|
+
*/
|
|
172
|
+
createRayCluster(workspaceId: string, request: $_model.CreateRayClusterRequest): Promise<$_model.CreateRayClusterResponse>;
|
|
155
173
|
/**
|
|
156
174
|
* Creates a session.
|
|
157
175
|
*
|
|
@@ -275,6 +293,21 @@ export default class Client extends OpenApi {
|
|
|
275
293
|
* @returns DeleteLivyComputeTokenResponse
|
|
276
294
|
*/
|
|
277
295
|
deleteLivyComputeToken(workspaceBizId: string, livyComputeId: string, tokenId: string, request: $_model.DeleteLivyComputeTokenRequest): Promise<$_model.DeleteLivyComputeTokenResponse>;
|
|
296
|
+
/**
|
|
297
|
+
* 删除Ray集群
|
|
298
|
+
*
|
|
299
|
+
* @param headers - map
|
|
300
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
301
|
+
* @returns DeleteRayClusterResponse
|
|
302
|
+
*/
|
|
303
|
+
deleteRayClusterWithOptions(workspaceId: string, clusterId: string, headers: {
|
|
304
|
+
[key: string]: string;
|
|
305
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteRayClusterResponse>;
|
|
306
|
+
/**
|
|
307
|
+
* 删除Ray集群
|
|
308
|
+
* @returns DeleteRayClusterResponse
|
|
309
|
+
*/
|
|
310
|
+
deleteRayCluster(workspaceId: string, clusterId: string): Promise<$_model.DeleteRayClusterResponse>;
|
|
278
311
|
/**
|
|
279
312
|
* Modifies the queue of a workspace.
|
|
280
313
|
*
|
|
@@ -434,6 +467,21 @@ export default class Client extends OpenApi {
|
|
|
434
467
|
* @returns GetLivyComputeTokenResponse
|
|
435
468
|
*/
|
|
436
469
|
getLivyComputeToken(workspaceBizId: string, livyComputeId: string, tokenId: string, request: $_model.GetLivyComputeTokenRequest): Promise<$_model.GetLivyComputeTokenResponse>;
|
|
470
|
+
/**
|
|
471
|
+
* 获取Ray集群
|
|
472
|
+
*
|
|
473
|
+
* @param headers - map
|
|
474
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
475
|
+
* @returns GetRayClusterResponse
|
|
476
|
+
*/
|
|
477
|
+
getRayClusterWithOptions(workspaceId: string, clusterId: string, headers: {
|
|
478
|
+
[key: string]: string;
|
|
479
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetRayClusterResponse>;
|
|
480
|
+
/**
|
|
481
|
+
* 获取Ray集群
|
|
482
|
+
* @returns GetRayClusterResponse
|
|
483
|
+
*/
|
|
484
|
+
getRayCluster(workspaceId: string, clusterId: string): Promise<$_model.GetRayClusterResponse>;
|
|
437
485
|
/**
|
|
438
486
|
* 获取任务配置
|
|
439
487
|
*
|
|
@@ -579,7 +627,7 @@ export default class Client extends OpenApi {
|
|
|
579
627
|
*/
|
|
580
628
|
listJobRuns(workspaceId: string, request: $_model.ListJobRunsRequest): Promise<$_model.ListJobRunsResponse>;
|
|
581
629
|
/**
|
|
582
|
-
*
|
|
630
|
+
* Gets the list of KyuubiServers
|
|
583
631
|
*
|
|
584
632
|
* @param headers - map
|
|
585
633
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -589,7 +637,7 @@ export default class Client extends OpenApi {
|
|
|
589
637
|
[key: string]: string;
|
|
590
638
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListKyuubiServicesResponse>;
|
|
591
639
|
/**
|
|
592
|
-
*
|
|
640
|
+
* Gets the list of KyuubiServers
|
|
593
641
|
* @returns ListKyuubiServicesResponse
|
|
594
642
|
*/
|
|
595
643
|
listKyuubiServices(workspaceId: string): Promise<$_model.ListKyuubiServicesResponse>;
|
|
@@ -630,7 +678,7 @@ export default class Client extends OpenApi {
|
|
|
630
678
|
*/
|
|
631
679
|
listKyuubiToken(workspaceId: string, kyuubiServiceId: string, request: $_model.ListKyuubiTokenRequest): Promise<$_model.ListKyuubiTokenResponse>;
|
|
632
680
|
/**
|
|
633
|
-
*
|
|
681
|
+
* List the Livy Gateway.
|
|
634
682
|
*
|
|
635
683
|
* @param request - ListLivyComputeRequest
|
|
636
684
|
* @param headers - map
|
|
@@ -641,7 +689,7 @@ export default class Client extends OpenApi {
|
|
|
641
689
|
[key: string]: string;
|
|
642
690
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListLivyComputeResponse>;
|
|
643
691
|
/**
|
|
644
|
-
*
|
|
692
|
+
* List the Livy Gateway.
|
|
645
693
|
*
|
|
646
694
|
* @param request - ListLivyComputeRequest
|
|
647
695
|
* @returns ListLivyComputeResponse
|
|
@@ -719,6 +767,24 @@ export default class Client extends OpenApi {
|
|
|
719
767
|
* @returns ListMembersResponse
|
|
720
768
|
*/
|
|
721
769
|
listMembers(workspaceId: string, request: $_model.ListMembersRequest): Promise<$_model.ListMembersResponse>;
|
|
770
|
+
/**
|
|
771
|
+
* 列出Ray集群
|
|
772
|
+
*
|
|
773
|
+
* @param request - ListRayClusterRequest
|
|
774
|
+
* @param headers - map
|
|
775
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
776
|
+
* @returns ListRayClusterResponse
|
|
777
|
+
*/
|
|
778
|
+
listRayClusterWithOptions(workspaceId: string, request: $_model.ListRayClusterRequest, headers: {
|
|
779
|
+
[key: string]: string;
|
|
780
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListRayClusterResponse>;
|
|
781
|
+
/**
|
|
782
|
+
* 列出Ray集群
|
|
783
|
+
*
|
|
784
|
+
* @param request - ListRayClusterRequest
|
|
785
|
+
* @returns ListRayClusterResponse
|
|
786
|
+
*/
|
|
787
|
+
listRayCluster(workspaceId: string, request: $_model.ListRayClusterRequest): Promise<$_model.ListRayClusterResponse>;
|
|
722
788
|
/**
|
|
723
789
|
* Queries the list of published versions of E-MapReduce (EMR) Serverless Spark.
|
|
724
790
|
*
|
|
@@ -914,6 +980,24 @@ export default class Client extends OpenApi {
|
|
|
914
980
|
* @returns StartProcessInstanceResponse
|
|
915
981
|
*/
|
|
916
982
|
startProcessInstance(bizId: string, request: $_model.StartProcessInstanceRequest): Promise<$_model.StartProcessInstanceResponse>;
|
|
983
|
+
/**
|
|
984
|
+
* 启动Ray集群
|
|
985
|
+
*
|
|
986
|
+
* @param request - StartRayClusterRequest
|
|
987
|
+
* @param headers - map
|
|
988
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
989
|
+
* @returns StartRayClusterResponse
|
|
990
|
+
*/
|
|
991
|
+
startRayClusterWithOptions(workspaceId: string, clusterId: string, request: $_model.StartRayClusterRequest, headers: {
|
|
992
|
+
[key: string]: string;
|
|
993
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.StartRayClusterResponse>;
|
|
994
|
+
/**
|
|
995
|
+
* 启动Ray集群
|
|
996
|
+
*
|
|
997
|
+
* @param request - StartRayClusterRequest
|
|
998
|
+
* @returns StartRayClusterResponse
|
|
999
|
+
*/
|
|
1000
|
+
startRayCluster(workspaceId: string, clusterId: string, request: $_model.StartRayClusterRequest): Promise<$_model.StartRayClusterResponse>;
|
|
917
1001
|
/**
|
|
918
1002
|
* Starts a session.
|
|
919
1003
|
*
|
|
@@ -965,6 +1049,24 @@ export default class Client extends OpenApi {
|
|
|
965
1049
|
* @returns StopLivyComputeResponse
|
|
966
1050
|
*/
|
|
967
1051
|
stopLivyCompute(workspaceBizId: string, livyComputeId: string, request: $_model.StopLivyComputeRequest): Promise<$_model.StopLivyComputeResponse>;
|
|
1052
|
+
/**
|
|
1053
|
+
* 停止Ray集群
|
|
1054
|
+
*
|
|
1055
|
+
* @param request - StopRayClusterRequest
|
|
1056
|
+
* @param headers - map
|
|
1057
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1058
|
+
* @returns StopRayClusterResponse
|
|
1059
|
+
*/
|
|
1060
|
+
stopRayClusterWithOptions(workspaceId: string, clusterId: string, request: $_model.StopRayClusterRequest, headers: {
|
|
1061
|
+
[key: string]: string;
|
|
1062
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.StopRayClusterResponse>;
|
|
1063
|
+
/**
|
|
1064
|
+
* 停止Ray集群
|
|
1065
|
+
*
|
|
1066
|
+
* @param request - StopRayClusterRequest
|
|
1067
|
+
* @returns StopRayClusterResponse
|
|
1068
|
+
*/
|
|
1069
|
+
stopRayCluster(workspaceId: string, clusterId: string, request: $_model.StopRayClusterRequest): Promise<$_model.StopRayClusterResponse>;
|
|
968
1070
|
/**
|
|
969
1071
|
* Stops a session.
|
|
970
1072
|
*
|
|
@@ -1073,4 +1175,22 @@ export default class Client extends OpenApi {
|
|
|
1073
1175
|
* @returns UpdateProcessDefinitionWithScheduleResponse
|
|
1074
1176
|
*/
|
|
1075
1177
|
updateProcessDefinitionWithSchedule(bizId: string, code: string, request: $_model.UpdateProcessDefinitionWithScheduleRequest): Promise<$_model.UpdateProcessDefinitionWithScheduleResponse>;
|
|
1178
|
+
/**
|
|
1179
|
+
* 更新Ray集群
|
|
1180
|
+
*
|
|
1181
|
+
* @param request - UpdateRayClusterRequest
|
|
1182
|
+
* @param headers - map
|
|
1183
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1184
|
+
* @returns UpdateRayClusterResponse
|
|
1185
|
+
*/
|
|
1186
|
+
updateRayClusterWithOptions(workspaceId: string, clusterId: string, request: $_model.UpdateRayClusterRequest, headers: {
|
|
1187
|
+
[key: string]: string;
|
|
1188
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateRayClusterResponse>;
|
|
1189
|
+
/**
|
|
1190
|
+
* 更新Ray集群
|
|
1191
|
+
*
|
|
1192
|
+
* @param request - UpdateRayClusterRequest
|
|
1193
|
+
* @returns UpdateRayClusterResponse
|
|
1194
|
+
*/
|
|
1195
|
+
updateRayCluster(workspaceId: string, clusterId: string, request: $_model.UpdateRayClusterRequest): Promise<$_model.UpdateRayClusterResponse>;
|
|
1076
1196
|
}
|
package/dist/client.js
CHANGED
|
@@ -566,6 +566,66 @@ class Client extends openapi_core_1.default {
|
|
|
566
566
|
let headers = {};
|
|
567
567
|
return await this.createProcessDefinitionWithScheduleWithOptions(bizId, request, headers, runtime);
|
|
568
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* 创建Ray集群
|
|
571
|
+
*
|
|
572
|
+
* @param request - CreateRayClusterRequest
|
|
573
|
+
* @param headers - map
|
|
574
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
575
|
+
* @returns CreateRayClusterResponse
|
|
576
|
+
*/
|
|
577
|
+
async createRayClusterWithOptions(workspaceId, request, headers, runtime) {
|
|
578
|
+
request.validate();
|
|
579
|
+
let body = {};
|
|
580
|
+
if (!$dara.isNull(request.description)) {
|
|
581
|
+
body["description"] = request.description;
|
|
582
|
+
}
|
|
583
|
+
if (!$dara.isNull(request.displayReleaseVersion)) {
|
|
584
|
+
body["displayReleaseVersion"] = request.displayReleaseVersion;
|
|
585
|
+
}
|
|
586
|
+
if (!$dara.isNull(request.extraParam)) {
|
|
587
|
+
body["extraParam"] = request.extraParam;
|
|
588
|
+
}
|
|
589
|
+
if (!$dara.isNull(request.headSpec)) {
|
|
590
|
+
body["headSpec"] = request.headSpec;
|
|
591
|
+
}
|
|
592
|
+
if (!$dara.isNull(request.name)) {
|
|
593
|
+
body["name"] = request.name;
|
|
594
|
+
}
|
|
595
|
+
if (!$dara.isNull(request.networkServiceName)) {
|
|
596
|
+
body["networkServiceName"] = request.networkServiceName;
|
|
597
|
+
}
|
|
598
|
+
if (!$dara.isNull(request.workerSpec)) {
|
|
599
|
+
body["workerSpec"] = request.workerSpec;
|
|
600
|
+
}
|
|
601
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
602
|
+
headers: headers,
|
|
603
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
604
|
+
});
|
|
605
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
606
|
+
action: "CreateRayCluster",
|
|
607
|
+
version: "2023-08-08",
|
|
608
|
+
protocol: "HTTPS",
|
|
609
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster`,
|
|
610
|
+
method: "POST",
|
|
611
|
+
authType: "AK",
|
|
612
|
+
style: "ROA",
|
|
613
|
+
reqBodyType: "json",
|
|
614
|
+
bodyType: "json",
|
|
615
|
+
});
|
|
616
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRayClusterResponse({}));
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* 创建Ray集群
|
|
620
|
+
*
|
|
621
|
+
* @param request - CreateRayClusterRequest
|
|
622
|
+
* @returns CreateRayClusterResponse
|
|
623
|
+
*/
|
|
624
|
+
async createRayCluster(workspaceId, request) {
|
|
625
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
626
|
+
let headers = {};
|
|
627
|
+
return await this.createRayClusterWithOptions(workspaceId, request, headers, runtime);
|
|
628
|
+
}
|
|
569
629
|
/**
|
|
570
630
|
* Creates a session.
|
|
571
631
|
*
|
|
@@ -762,6 +822,9 @@ class Client extends openapi_core_1.default {
|
|
|
762
822
|
if (!$dara.isNull(request.releaseType)) {
|
|
763
823
|
body["releaseType"] = request.releaseType;
|
|
764
824
|
}
|
|
825
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
826
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
827
|
+
}
|
|
765
828
|
if (!$dara.isNull(request.resourceSpec)) {
|
|
766
829
|
body["resourceSpec"] = request.resourceSpec;
|
|
767
830
|
}
|
|
@@ -959,6 +1022,39 @@ class Client extends openapi_core_1.default {
|
|
|
959
1022
|
let headers = {};
|
|
960
1023
|
return await this.deleteLivyComputeTokenWithOptions(workspaceBizId, livyComputeId, tokenId, request, headers, runtime);
|
|
961
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* 删除Ray集群
|
|
1027
|
+
*
|
|
1028
|
+
* @param headers - map
|
|
1029
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1030
|
+
* @returns DeleteRayClusterResponse
|
|
1031
|
+
*/
|
|
1032
|
+
async deleteRayClusterWithOptions(workspaceId, clusterId, headers, runtime) {
|
|
1033
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1034
|
+
headers: headers,
|
|
1035
|
+
});
|
|
1036
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1037
|
+
action: "DeleteRayCluster",
|
|
1038
|
+
version: "2023-08-08",
|
|
1039
|
+
protocol: "HTTPS",
|
|
1040
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster/${$dara.URL.percentEncode(clusterId)}`,
|
|
1041
|
+
method: "DELETE",
|
|
1042
|
+
authType: "AK",
|
|
1043
|
+
style: "ROA",
|
|
1044
|
+
reqBodyType: "json",
|
|
1045
|
+
bodyType: "json",
|
|
1046
|
+
});
|
|
1047
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteRayClusterResponse({}));
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* 删除Ray集群
|
|
1051
|
+
* @returns DeleteRayClusterResponse
|
|
1052
|
+
*/
|
|
1053
|
+
async deleteRayCluster(workspaceId, clusterId) {
|
|
1054
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1055
|
+
let headers = {};
|
|
1056
|
+
return await this.deleteRayClusterWithOptions(workspaceId, clusterId, headers, runtime);
|
|
1057
|
+
}
|
|
962
1058
|
/**
|
|
963
1059
|
* Modifies the queue of a workspace.
|
|
964
1060
|
*
|
|
@@ -1357,6 +1453,39 @@ class Client extends openapi_core_1.default {
|
|
|
1357
1453
|
let headers = {};
|
|
1358
1454
|
return await this.getLivyComputeTokenWithOptions(workspaceBizId, livyComputeId, tokenId, request, headers, runtime);
|
|
1359
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
* 获取Ray集群
|
|
1458
|
+
*
|
|
1459
|
+
* @param headers - map
|
|
1460
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1461
|
+
* @returns GetRayClusterResponse
|
|
1462
|
+
*/
|
|
1463
|
+
async getRayClusterWithOptions(workspaceId, clusterId, headers, runtime) {
|
|
1464
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1465
|
+
headers: headers,
|
|
1466
|
+
});
|
|
1467
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1468
|
+
action: "GetRayCluster",
|
|
1469
|
+
version: "2023-08-08",
|
|
1470
|
+
protocol: "HTTPS",
|
|
1471
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster/${$dara.URL.percentEncode(clusterId)}`,
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
authType: "AK",
|
|
1474
|
+
style: "ROA",
|
|
1475
|
+
reqBodyType: "json",
|
|
1476
|
+
bodyType: "json",
|
|
1477
|
+
});
|
|
1478
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRayClusterResponse({}));
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* 获取Ray集群
|
|
1482
|
+
* @returns GetRayClusterResponse
|
|
1483
|
+
*/
|
|
1484
|
+
async getRayCluster(workspaceId, clusterId) {
|
|
1485
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1486
|
+
let headers = {};
|
|
1487
|
+
return await this.getRayClusterWithOptions(workspaceId, clusterId, headers, runtime);
|
|
1488
|
+
}
|
|
1360
1489
|
/**
|
|
1361
1490
|
* 获取任务配置
|
|
1362
1491
|
*
|
|
@@ -1782,7 +1911,7 @@ class Client extends openapi_core_1.default {
|
|
|
1782
1911
|
return await this.listJobRunsWithOptions(workspaceId, request, headers, runtime);
|
|
1783
1912
|
}
|
|
1784
1913
|
/**
|
|
1785
|
-
*
|
|
1914
|
+
* Gets the list of KyuubiServers
|
|
1786
1915
|
*
|
|
1787
1916
|
* @param headers - map
|
|
1788
1917
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1806,7 +1935,7 @@ class Client extends openapi_core_1.default {
|
|
|
1806
1935
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListKyuubiServicesResponse({}));
|
|
1807
1936
|
}
|
|
1808
1937
|
/**
|
|
1809
|
-
*
|
|
1938
|
+
* Gets the list of KyuubiServers
|
|
1810
1939
|
* @returns ListKyuubiServicesResponse
|
|
1811
1940
|
*/
|
|
1812
1941
|
async listKyuubiServices(workspaceId) {
|
|
@@ -1931,7 +2060,7 @@ class Client extends openapi_core_1.default {
|
|
|
1931
2060
|
return await this.listKyuubiTokenWithOptions(workspaceId, kyuubiServiceId, request, headers, runtime);
|
|
1932
2061
|
}
|
|
1933
2062
|
/**
|
|
1934
|
-
*
|
|
2063
|
+
* List the Livy Gateway.
|
|
1935
2064
|
*
|
|
1936
2065
|
* @param request - ListLivyComputeRequest
|
|
1937
2066
|
* @param headers - map
|
|
@@ -1965,7 +2094,7 @@ class Client extends openapi_core_1.default {
|
|
|
1965
2094
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListLivyComputeResponse({}));
|
|
1966
2095
|
}
|
|
1967
2096
|
/**
|
|
1968
|
-
*
|
|
2097
|
+
* List the Livy Gateway.
|
|
1969
2098
|
*
|
|
1970
2099
|
* @param request - ListLivyComputeRequest
|
|
1971
2100
|
* @returns ListLivyComputeResponse
|
|
@@ -2164,6 +2293,51 @@ class Client extends openapi_core_1.default {
|
|
|
2164
2293
|
let headers = {};
|
|
2165
2294
|
return await this.listMembersWithOptions(workspaceId, request, headers, runtime);
|
|
2166
2295
|
}
|
|
2296
|
+
/**
|
|
2297
|
+
* 列出Ray集群
|
|
2298
|
+
*
|
|
2299
|
+
* @param request - ListRayClusterRequest
|
|
2300
|
+
* @param headers - map
|
|
2301
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2302
|
+
* @returns ListRayClusterResponse
|
|
2303
|
+
*/
|
|
2304
|
+
async listRayClusterWithOptions(workspaceId, request, headers, runtime) {
|
|
2305
|
+
request.validate();
|
|
2306
|
+
let query = {};
|
|
2307
|
+
if (!$dara.isNull(request.pageNum)) {
|
|
2308
|
+
query["pageNum"] = request.pageNum;
|
|
2309
|
+
}
|
|
2310
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2311
|
+
query["pageSize"] = request.pageSize;
|
|
2312
|
+
}
|
|
2313
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2314
|
+
headers: headers,
|
|
2315
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2316
|
+
});
|
|
2317
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2318
|
+
action: "ListRayCluster",
|
|
2319
|
+
version: "2023-08-08",
|
|
2320
|
+
protocol: "HTTPS",
|
|
2321
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster`,
|
|
2322
|
+
method: "GET",
|
|
2323
|
+
authType: "AK",
|
|
2324
|
+
style: "ROA",
|
|
2325
|
+
reqBodyType: "json",
|
|
2326
|
+
bodyType: "json",
|
|
2327
|
+
});
|
|
2328
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRayClusterResponse({}));
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* 列出Ray集群
|
|
2332
|
+
*
|
|
2333
|
+
* @param request - ListRayClusterRequest
|
|
2334
|
+
* @returns ListRayClusterResponse
|
|
2335
|
+
*/
|
|
2336
|
+
async listRayCluster(workspaceId, request) {
|
|
2337
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2338
|
+
let headers = {};
|
|
2339
|
+
return await this.listRayClusterWithOptions(workspaceId, request, headers, runtime);
|
|
2340
|
+
}
|
|
2167
2341
|
/**
|
|
2168
2342
|
* Queries the list of published versions of E-MapReduce (EMR) Serverless Spark.
|
|
2169
2343
|
*
|
|
@@ -2441,6 +2615,9 @@ class Client extends openapi_core_1.default {
|
|
|
2441
2615
|
if (!$dara.isNull(request.regionId)) {
|
|
2442
2616
|
query["regionId"] = request.regionId;
|
|
2443
2617
|
}
|
|
2618
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
2619
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
2620
|
+
}
|
|
2444
2621
|
if (!$dara.isNull(request.state)) {
|
|
2445
2622
|
query["state"] = request.state;
|
|
2446
2623
|
}
|
|
@@ -2755,6 +2932,48 @@ class Client extends openapi_core_1.default {
|
|
|
2755
2932
|
let headers = {};
|
|
2756
2933
|
return await this.startProcessInstanceWithOptions(bizId, request, headers, runtime);
|
|
2757
2934
|
}
|
|
2935
|
+
/**
|
|
2936
|
+
* 启动Ray集群
|
|
2937
|
+
*
|
|
2938
|
+
* @param request - StartRayClusterRequest
|
|
2939
|
+
* @param headers - map
|
|
2940
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2941
|
+
* @returns StartRayClusterResponse
|
|
2942
|
+
*/
|
|
2943
|
+
async startRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime) {
|
|
2944
|
+
request.validate();
|
|
2945
|
+
let body = {};
|
|
2946
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
2947
|
+
body["clientToken"] = request.clientToken;
|
|
2948
|
+
}
|
|
2949
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2950
|
+
headers: headers,
|
|
2951
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2952
|
+
});
|
|
2953
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2954
|
+
action: "StartRayCluster",
|
|
2955
|
+
version: "2023-08-08",
|
|
2956
|
+
protocol: "HTTPS",
|
|
2957
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster/${$dara.URL.percentEncode(clusterId)}/start`,
|
|
2958
|
+
method: "POST",
|
|
2959
|
+
authType: "AK",
|
|
2960
|
+
style: "ROA",
|
|
2961
|
+
reqBodyType: "json",
|
|
2962
|
+
bodyType: "json",
|
|
2963
|
+
});
|
|
2964
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartRayClusterResponse({}));
|
|
2965
|
+
}
|
|
2966
|
+
/**
|
|
2967
|
+
* 启动Ray集群
|
|
2968
|
+
*
|
|
2969
|
+
* @param request - StartRayClusterRequest
|
|
2970
|
+
* @returns StartRayClusterResponse
|
|
2971
|
+
*/
|
|
2972
|
+
async startRayCluster(workspaceId, clusterId, request) {
|
|
2973
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2974
|
+
let headers = {};
|
|
2975
|
+
return await this.startRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime);
|
|
2976
|
+
}
|
|
2758
2977
|
/**
|
|
2759
2978
|
* Starts a session.
|
|
2760
2979
|
*
|
|
@@ -2880,6 +3099,48 @@ class Client extends openapi_core_1.default {
|
|
|
2880
3099
|
let headers = {};
|
|
2881
3100
|
return await this.stopLivyComputeWithOptions(workspaceBizId, livyComputeId, request, headers, runtime);
|
|
2882
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* 停止Ray集群
|
|
3104
|
+
*
|
|
3105
|
+
* @param request - StopRayClusterRequest
|
|
3106
|
+
* @param headers - map
|
|
3107
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3108
|
+
* @returns StopRayClusterResponse
|
|
3109
|
+
*/
|
|
3110
|
+
async stopRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime) {
|
|
3111
|
+
request.validate();
|
|
3112
|
+
let body = {};
|
|
3113
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
3114
|
+
body["instanceId"] = request.instanceId;
|
|
3115
|
+
}
|
|
3116
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3117
|
+
headers: headers,
|
|
3118
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3119
|
+
});
|
|
3120
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3121
|
+
action: "StopRayCluster",
|
|
3122
|
+
version: "2023-08-08",
|
|
3123
|
+
protocol: "HTTPS",
|
|
3124
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster/${$dara.URL.percentEncode(clusterId)}/stop`,
|
|
3125
|
+
method: "POST",
|
|
3126
|
+
authType: "AK",
|
|
3127
|
+
style: "ROA",
|
|
3128
|
+
reqBodyType: "json",
|
|
3129
|
+
bodyType: "json",
|
|
3130
|
+
});
|
|
3131
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopRayClusterResponse({}));
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* 停止Ray集群
|
|
3135
|
+
*
|
|
3136
|
+
* @param request - StopRayClusterRequest
|
|
3137
|
+
* @returns StopRayClusterResponse
|
|
3138
|
+
*/
|
|
3139
|
+
async stopRayCluster(workspaceId, clusterId, request) {
|
|
3140
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3141
|
+
let headers = {};
|
|
3142
|
+
return await this.stopRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime);
|
|
3143
|
+
}
|
|
2883
3144
|
/**
|
|
2884
3145
|
* Stops a session.
|
|
2885
3146
|
*
|
|
@@ -3296,6 +3557,66 @@ class Client extends openapi_core_1.default {
|
|
|
3296
3557
|
let headers = {};
|
|
3297
3558
|
return await this.updateProcessDefinitionWithScheduleWithOptions(bizId, code, request, headers, runtime);
|
|
3298
3559
|
}
|
|
3560
|
+
/**
|
|
3561
|
+
* 更新Ray集群
|
|
3562
|
+
*
|
|
3563
|
+
* @param request - UpdateRayClusterRequest
|
|
3564
|
+
* @param headers - map
|
|
3565
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3566
|
+
* @returns UpdateRayClusterResponse
|
|
3567
|
+
*/
|
|
3568
|
+
async updateRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime) {
|
|
3569
|
+
request.validate();
|
|
3570
|
+
let body = {};
|
|
3571
|
+
if (!$dara.isNull(request.description)) {
|
|
3572
|
+
body["description"] = request.description;
|
|
3573
|
+
}
|
|
3574
|
+
if (!$dara.isNull(request.displayReleaseVersion)) {
|
|
3575
|
+
body["displayReleaseVersion"] = request.displayReleaseVersion;
|
|
3576
|
+
}
|
|
3577
|
+
if (!$dara.isNull(request.extraParam)) {
|
|
3578
|
+
body["extraParam"] = request.extraParam;
|
|
3579
|
+
}
|
|
3580
|
+
if (!$dara.isNull(request.headSpec)) {
|
|
3581
|
+
body["headSpec"] = request.headSpec;
|
|
3582
|
+
}
|
|
3583
|
+
if (!$dara.isNull(request.name)) {
|
|
3584
|
+
body["name"] = request.name;
|
|
3585
|
+
}
|
|
3586
|
+
if (!$dara.isNull(request.networkServiceName)) {
|
|
3587
|
+
body["networkServiceName"] = request.networkServiceName;
|
|
3588
|
+
}
|
|
3589
|
+
if (!$dara.isNull(request.workerSpec)) {
|
|
3590
|
+
body["workerSpec"] = request.workerSpec;
|
|
3591
|
+
}
|
|
3592
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3593
|
+
headers: headers,
|
|
3594
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3595
|
+
});
|
|
3596
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3597
|
+
action: "UpdateRayCluster",
|
|
3598
|
+
version: "2023-08-08",
|
|
3599
|
+
protocol: "HTTPS",
|
|
3600
|
+
pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/rayCluster/${$dara.URL.percentEncode(clusterId)}`,
|
|
3601
|
+
method: "POST",
|
|
3602
|
+
authType: "AK",
|
|
3603
|
+
style: "ROA",
|
|
3604
|
+
reqBodyType: "json",
|
|
3605
|
+
bodyType: "json",
|
|
3606
|
+
});
|
|
3607
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateRayClusterResponse({}));
|
|
3608
|
+
}
|
|
3609
|
+
/**
|
|
3610
|
+
* 更新Ray集群
|
|
3611
|
+
*
|
|
3612
|
+
* @param request - UpdateRayClusterRequest
|
|
3613
|
+
* @returns UpdateRayClusterResponse
|
|
3614
|
+
*/
|
|
3615
|
+
async updateRayCluster(workspaceId, clusterId, request) {
|
|
3616
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3617
|
+
let headers = {};
|
|
3618
|
+
return await this.updateRayClusterWithOptions(workspaceId, clusterId, request, headers, runtime);
|
|
3619
|
+
}
|
|
3299
3620
|
}
|
|
3300
3621
|
exports.default = Client;
|
|
3301
3622
|
//# sourceMappingURL=client.js.map
|