@alicloud/emr-serverless-spark20230808 1.24.0 → 1.25.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.
- package/dist/client.d.ts +38 -2
- package/dist/client.js +119 -3
- package/dist/client.js.map +1 -1
- package/dist/models/GetCacheClusterRequest.d.ts +3 -0
- package/dist/models/GetCacheClusterRequest.js.map +1 -1
- package/dist/models/GetCacheClusterResponseBody.d.ts +7 -0
- package/dist/models/GetCacheClusterResponseBody.js.map +1 -1
- package/dist/models/GetRayLogRequest.d.ts +29 -0
- package/dist/models/GetRayLogRequest.js +60 -0
- package/dist/models/GetRayLogRequest.js.map +1 -0
- package/dist/models/GetRayLogResponse.d.ts +19 -0
- package/dist/models/GetRayLogResponse.js +69 -0
- package/dist/models/GetRayLogResponse.js.map +1 -0
- package/dist/models/GetRayLogResponseBody.d.ts +62 -0
- package/dist/models/GetRayLogResponseBody.js +86 -0
- package/dist/models/GetRayLogResponseBody.js.map +1 -0
- package/dist/models/ListRayLogsRequest.d.ts +57 -0
- package/dist/models/ListRayLogsRequest.js +66 -0
- package/dist/models/ListRayLogsRequest.js.map +1 -0
- package/dist/models/ListRayLogsResponse.d.ts +19 -0
- package/dist/models/ListRayLogsResponse.js +69 -0
- package/dist/models/ListRayLogsResponse.js.map +1 -0
- package/dist/models/ListRayLogsResponseBody.d.ts +167 -0
- package/dist/models/ListRayLogsResponseBody.js +130 -0
- package/dist/models/ListRayLogsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +26 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +130 -3
- package/src/models/GetCacheClusterRequest.ts +3 -0
- package/src/models/GetCacheClusterResponseBody.ts +7 -0
- package/src/models/GetRayLogRequest.ts +44 -0
- package/src/models/GetRayLogResponse.ts +40 -0
- package/src/models/GetRayLogResponseBody.ts +94 -0
- package/src/models/ListRayLogsRequest.ts +78 -0
- package/src/models/ListRayLogsResponse.ts +40 -0
- package/src/models/ListRayLogsResponseBody.ts +234 -0
- package/src/models/model.ts +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -435,7 +435,7 @@ export default class Client extends OpenApi {
|
|
|
435
435
|
*/
|
|
436
436
|
getAICenterState(workspaceId: string, request: $_model.GetAICenterStateRequest): Promise<$_model.GetAICenterStateResponse>;
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* Retrieves the details of a Cache cluster.
|
|
439
439
|
*
|
|
440
440
|
* @param request - GetCacheClusterRequest
|
|
441
441
|
* @param headers - map
|
|
@@ -446,7 +446,7 @@ export default class Client extends OpenApi {
|
|
|
446
446
|
[key: string]: string;
|
|
447
447
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetCacheClusterResponse>;
|
|
448
448
|
/**
|
|
449
|
-
*
|
|
449
|
+
* Retrieves the details of a Cache cluster.
|
|
450
450
|
*
|
|
451
451
|
* @param request - GetCacheClusterRequest
|
|
452
452
|
* @returns GetCacheClusterResponse
|
|
@@ -608,6 +608,24 @@ export default class Client extends OpenApi {
|
|
|
608
608
|
* @returns GetRayJobResponse
|
|
609
609
|
*/
|
|
610
610
|
getRayJob(workspaceId: string, submissionId: string, request: $_model.GetRayJobRequest): Promise<$_model.GetRayJobResponse>;
|
|
611
|
+
/**
|
|
612
|
+
* Retrieves the log of a Ray job.
|
|
613
|
+
*
|
|
614
|
+
* @param request - GetRayLogRequest
|
|
615
|
+
* @param headers - map
|
|
616
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
617
|
+
* @returns GetRayLogResponse
|
|
618
|
+
*/
|
|
619
|
+
getRayLogWithOptions(workspaceId: string, instanceId: string, request: $_model.GetRayLogRequest, headers: {
|
|
620
|
+
[key: string]: string;
|
|
621
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetRayLogResponse>;
|
|
622
|
+
/**
|
|
623
|
+
* Retrieves the log of a Ray job.
|
|
624
|
+
*
|
|
625
|
+
* @param request - GetRayLogRequest
|
|
626
|
+
* @returns GetRayLogResponse
|
|
627
|
+
*/
|
|
628
|
+
getRayLog(workspaceId: string, instanceId: string, request: $_model.GetRayLogRequest): Promise<$_model.GetRayLogResponse>;
|
|
611
629
|
/**
|
|
612
630
|
* Retrieves the configuration of a Spark job.
|
|
613
631
|
*
|
|
@@ -965,6 +983,24 @@ export default class Client extends OpenApi {
|
|
|
965
983
|
* @returns ListRayJobResponse
|
|
966
984
|
*/
|
|
967
985
|
listRayJob(workspaceId: string, request: $_model.ListRayJobRequest): Promise<$_model.ListRayJobResponse>;
|
|
986
|
+
/**
|
|
987
|
+
* Lists Ray logs.
|
|
988
|
+
*
|
|
989
|
+
* @param request - ListRayLogsRequest
|
|
990
|
+
* @param headers - map
|
|
991
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
992
|
+
* @returns ListRayLogsResponse
|
|
993
|
+
*/
|
|
994
|
+
listRayLogsWithOptions(workspaceId: string, instanceId: string, request: $_model.ListRayLogsRequest, headers: {
|
|
995
|
+
[key: string]: string;
|
|
996
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListRayLogsResponse>;
|
|
997
|
+
/**
|
|
998
|
+
* Lists Ray logs.
|
|
999
|
+
*
|
|
1000
|
+
* @param request - ListRayLogsRequest
|
|
1001
|
+
* @returns ListRayLogsResponse
|
|
1002
|
+
*/
|
|
1003
|
+
listRayLogs(workspaceId: string, instanceId: string, request: $_model.ListRayLogsRequest): Promise<$_model.ListRayLogsResponse>;
|
|
968
1004
|
/**
|
|
969
1005
|
* Retrieves a list of release versions.
|
|
970
1006
|
*
|
package/dist/client.js
CHANGED
|
@@ -48,7 +48,24 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
48
|
class Client extends openapi_core_1.default {
|
|
49
49
|
constructor(config) {
|
|
50
50
|
super(config);
|
|
51
|
-
this._endpointRule = "";
|
|
51
|
+
this._endpointRule = "regional";
|
|
52
|
+
this._endpointMap = {
|
|
53
|
+
'us-west-1': "emr-serverless-spark.us-west-1.aliyuncs.com",
|
|
54
|
+
'us-east-1': "emr-serverless-spark.us-east-1.aliyuncs.com",
|
|
55
|
+
'na-south-1': "emr-serverless-spark.na-south-1.aliyuncs.com",
|
|
56
|
+
'eu-central-1': "emr-serverless-spark.eu-central-1.aliyuncs.com",
|
|
57
|
+
'cn-zhangjiakou': "emr-serverless-spark.cn-zhangjiakou.aliyuncs.com",
|
|
58
|
+
'cn-wulanchabu': "emr-serverless-spark.cn-wulanchabu.aliyuncs.com",
|
|
59
|
+
'cn-shenzhen': "emr-serverless-spark.cn-shenzhen.aliyuncs.com",
|
|
60
|
+
'cn-shanghai': "emr-serverless-spark.cn-shanghai.aliyuncs.com",
|
|
61
|
+
'cn-hongkong': "emr-serverless-spark.cn-hongkong.aliyuncs.com",
|
|
62
|
+
'cn-hangzhou': "emr-serverless-spark.cn-hangzhou.aliyuncs.com",
|
|
63
|
+
'cn-chengdu': "emr-serverless-spark.cn-chengdu.aliyuncs.com",
|
|
64
|
+
'cn-beijing': "emr-serverless-spark.cn-beijing.aliyuncs.com",
|
|
65
|
+
'ap-southeast-5': "emr-serverless-spark.ap-southeast-5.aliyuncs.com",
|
|
66
|
+
'ap-southeast-1': "emr-serverless-spark.ap-southeast-1.aliyuncs.com",
|
|
67
|
+
'ap-northeast-1': "emr-serverless-spark.ap-northeast-1.aliyuncs.com",
|
|
68
|
+
};
|
|
52
69
|
this.checkConfig(config);
|
|
53
70
|
this._endpoint = this.getEndpoint("emr-serverless-spark", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
54
71
|
}
|
|
@@ -1396,7 +1413,7 @@ class Client extends openapi_core_1.default {
|
|
|
1396
1413
|
return await this.getAICenterStateWithOptions(workspaceId, request, headers, runtime);
|
|
1397
1414
|
}
|
|
1398
1415
|
/**
|
|
1399
|
-
*
|
|
1416
|
+
* Retrieves the details of a Cache cluster.
|
|
1400
1417
|
*
|
|
1401
1418
|
* @param request - GetCacheClusterRequest
|
|
1402
1419
|
* @param headers - map
|
|
@@ -1427,7 +1444,7 @@ class Client extends openapi_core_1.default {
|
|
|
1427
1444
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCacheClusterResponse({}));
|
|
1428
1445
|
}
|
|
1429
1446
|
/**
|
|
1430
|
-
*
|
|
1447
|
+
* Retrieves the details of a Cache cluster.
|
|
1431
1448
|
*
|
|
1432
1449
|
* @param request - GetCacheClusterRequest
|
|
1433
1450
|
* @returns GetCacheClusterResponse
|
|
@@ -1801,6 +1818,51 @@ class Client extends openapi_core_1.default {
|
|
|
1801
1818
|
let headers = {};
|
|
1802
1819
|
return await this.getRayJobWithOptions(workspaceId, submissionId, request, headers, runtime);
|
|
1803
1820
|
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Retrieves the log of a Ray job.
|
|
1823
|
+
*
|
|
1824
|
+
* @param request - GetRayLogRequest
|
|
1825
|
+
* @param headers - map
|
|
1826
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1827
|
+
* @returns GetRayLogResponse
|
|
1828
|
+
*/
|
|
1829
|
+
async getRayLogWithOptions(workspaceId, instanceId, request, headers, runtime) {
|
|
1830
|
+
request.validate();
|
|
1831
|
+
let query = {};
|
|
1832
|
+
if (!$dara.isNull(request.bucketName)) {
|
|
1833
|
+
query["bucketName"] = request.bucketName;
|
|
1834
|
+
}
|
|
1835
|
+
if (!$dara.isNull(request.path)) {
|
|
1836
|
+
query["path"] = request.path;
|
|
1837
|
+
}
|
|
1838
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1839
|
+
headers: headers,
|
|
1840
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1841
|
+
});
|
|
1842
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1843
|
+
action: "GetRayLog",
|
|
1844
|
+
version: "2023-08-08",
|
|
1845
|
+
protocol: "HTTPS",
|
|
1846
|
+
pathname: `/api/interactive/v1/workspace/${$dara.URL.percentEncode(workspaceId)}/ray/${$dara.URL.percentEncode(instanceId)}/log`,
|
|
1847
|
+
method: "GET",
|
|
1848
|
+
authType: "AK",
|
|
1849
|
+
style: "ROA",
|
|
1850
|
+
reqBodyType: "json",
|
|
1851
|
+
bodyType: "json",
|
|
1852
|
+
});
|
|
1853
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRayLogResponse({}));
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Retrieves the log of a Ray job.
|
|
1857
|
+
*
|
|
1858
|
+
* @param request - GetRayLogRequest
|
|
1859
|
+
* @returns GetRayLogResponse
|
|
1860
|
+
*/
|
|
1861
|
+
async getRayLog(workspaceId, instanceId, request) {
|
|
1862
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1863
|
+
let headers = {};
|
|
1864
|
+
return await this.getRayLogWithOptions(workspaceId, instanceId, request, headers, runtime);
|
|
1865
|
+
}
|
|
1804
1866
|
/**
|
|
1805
1867
|
* Retrieves the configuration of a Spark job.
|
|
1806
1868
|
*
|
|
@@ -2820,6 +2882,60 @@ class Client extends openapi_core_1.default {
|
|
|
2820
2882
|
let headers = {};
|
|
2821
2883
|
return await this.listRayJobWithOptions(workspaceId, request, headers, runtime);
|
|
2822
2884
|
}
|
|
2885
|
+
/**
|
|
2886
|
+
* Lists Ray logs.
|
|
2887
|
+
*
|
|
2888
|
+
* @param request - ListRayLogsRequest
|
|
2889
|
+
* @param headers - map
|
|
2890
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2891
|
+
* @returns ListRayLogsResponse
|
|
2892
|
+
*/
|
|
2893
|
+
async listRayLogsWithOptions(workspaceId, instanceId, request, headers, runtime) {
|
|
2894
|
+
request.validate();
|
|
2895
|
+
let query = {};
|
|
2896
|
+
if (!$dara.isNull(request.bucketName)) {
|
|
2897
|
+
query["bucketName"] = request.bucketName;
|
|
2898
|
+
}
|
|
2899
|
+
if (!$dara.isNull(request.delimiter)) {
|
|
2900
|
+
query["delimiter"] = request.delimiter;
|
|
2901
|
+
}
|
|
2902
|
+
if (!$dara.isNull(request.marker)) {
|
|
2903
|
+
query["marker"] = request.marker;
|
|
2904
|
+
}
|
|
2905
|
+
if (!$dara.isNull(request.maxKeys)) {
|
|
2906
|
+
query["maxKeys"] = request.maxKeys;
|
|
2907
|
+
}
|
|
2908
|
+
if (!$dara.isNull(request.prefix)) {
|
|
2909
|
+
query["prefix"] = request.prefix;
|
|
2910
|
+
}
|
|
2911
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2912
|
+
headers: headers,
|
|
2913
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2914
|
+
});
|
|
2915
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2916
|
+
action: "ListRayLogs",
|
|
2917
|
+
version: "2023-08-08",
|
|
2918
|
+
protocol: "HTTPS",
|
|
2919
|
+
pathname: `/api/interactive/v1/workspace/${$dara.URL.percentEncode(workspaceId)}/ray/${$dara.URL.percentEncode(instanceId)}/logs`,
|
|
2920
|
+
method: "GET",
|
|
2921
|
+
authType: "AK",
|
|
2922
|
+
style: "ROA",
|
|
2923
|
+
reqBodyType: "json",
|
|
2924
|
+
bodyType: "json",
|
|
2925
|
+
});
|
|
2926
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListRayLogsResponse({}));
|
|
2927
|
+
}
|
|
2928
|
+
/**
|
|
2929
|
+
* Lists Ray logs.
|
|
2930
|
+
*
|
|
2931
|
+
* @param request - ListRayLogsRequest
|
|
2932
|
+
* @returns ListRayLogsResponse
|
|
2933
|
+
*/
|
|
2934
|
+
async listRayLogs(workspaceId, instanceId, request) {
|
|
2935
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2936
|
+
let headers = {};
|
|
2937
|
+
return await this.listRayLogsWithOptions(workspaceId, instanceId, request, headers, runtime);
|
|
2938
|
+
}
|
|
2823
2939
|
/**
|
|
2824
2940
|
* Retrieves a list of release versions.
|
|
2825
2941
|
*
|