@alicloud/emr-serverless-spark20230808 1.3.0 → 1.4.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 +228 -0
- package/dist/client.js +388 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +461 -0
package/dist/client.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ export declare class Task extends $tea.Model {
|
|
|
190
190
|
defaultDatabase?: string;
|
|
191
191
|
defaultResourceQueueId?: string;
|
|
192
192
|
defaultSqlComputeId?: string;
|
|
193
|
+
deploymentId?: string;
|
|
193
194
|
extraArtifactIds?: string[];
|
|
194
195
|
extraSparkSubmitParams?: string;
|
|
195
196
|
files?: string[];
|
|
@@ -197,6 +198,7 @@ export declare class Task extends $tea.Model {
|
|
|
197
198
|
gmtModified?: string;
|
|
198
199
|
hasChanged?: boolean;
|
|
199
200
|
hasCommited?: boolean;
|
|
201
|
+
isStreaming?: boolean;
|
|
200
202
|
jars?: string[];
|
|
201
203
|
lastRunResourceQueueId?: string;
|
|
202
204
|
modifier?: number;
|
|
@@ -211,6 +213,7 @@ export declare class Task extends $tea.Model {
|
|
|
211
213
|
sparkExecutorMemory?: number;
|
|
212
214
|
sparkLogLevel?: string;
|
|
213
215
|
sparkLogPath?: string;
|
|
216
|
+
sparkSubmitClause?: string;
|
|
214
217
|
sparkVersion?: string;
|
|
215
218
|
tags?: {
|
|
216
219
|
[key: string]: string;
|
|
@@ -383,6 +386,52 @@ export declare class CancelJobRunResponse extends $tea.Model {
|
|
|
383
386
|
[key: string]: any;
|
|
384
387
|
});
|
|
385
388
|
}
|
|
389
|
+
export declare class CreateSqlStatementRequest extends $tea.Model {
|
|
390
|
+
codeContent?: string;
|
|
391
|
+
defaultCatalog?: string;
|
|
392
|
+
defaultDatabase?: string;
|
|
393
|
+
limit?: number;
|
|
394
|
+
sqlComputeId?: string;
|
|
395
|
+
regionId?: string;
|
|
396
|
+
static names(): {
|
|
397
|
+
[key: string]: string;
|
|
398
|
+
};
|
|
399
|
+
static types(): {
|
|
400
|
+
[key: string]: any;
|
|
401
|
+
};
|
|
402
|
+
constructor(map?: {
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
export declare class CreateSqlStatementResponseBody extends $tea.Model {
|
|
407
|
+
data?: CreateSqlStatementResponseBodyData;
|
|
408
|
+
requestId?: string;
|
|
409
|
+
static names(): {
|
|
410
|
+
[key: string]: string;
|
|
411
|
+
};
|
|
412
|
+
static types(): {
|
|
413
|
+
[key: string]: any;
|
|
414
|
+
};
|
|
415
|
+
constructor(map?: {
|
|
416
|
+
[key: string]: any;
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
export declare class CreateSqlStatementResponse extends $tea.Model {
|
|
420
|
+
headers?: {
|
|
421
|
+
[key: string]: string;
|
|
422
|
+
};
|
|
423
|
+
statusCode?: number;
|
|
424
|
+
body?: CreateSqlStatementResponseBody;
|
|
425
|
+
static names(): {
|
|
426
|
+
[key: string]: string;
|
|
427
|
+
};
|
|
428
|
+
static types(): {
|
|
429
|
+
[key: string]: any;
|
|
430
|
+
};
|
|
431
|
+
constructor(map?: {
|
|
432
|
+
[key: string]: any;
|
|
433
|
+
});
|
|
434
|
+
}
|
|
386
435
|
export declare class GetJobRunRequest extends $tea.Model {
|
|
387
436
|
regionId?: string;
|
|
388
437
|
static names(): {
|
|
@@ -424,6 +473,47 @@ export declare class GetJobRunResponse extends $tea.Model {
|
|
|
424
473
|
[key: string]: any;
|
|
425
474
|
});
|
|
426
475
|
}
|
|
476
|
+
export declare class GetSqlStatementRequest extends $tea.Model {
|
|
477
|
+
regionId?: string;
|
|
478
|
+
static names(): {
|
|
479
|
+
[key: string]: string;
|
|
480
|
+
};
|
|
481
|
+
static types(): {
|
|
482
|
+
[key: string]: any;
|
|
483
|
+
};
|
|
484
|
+
constructor(map?: {
|
|
485
|
+
[key: string]: any;
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
export declare class GetSqlStatementResponseBody extends $tea.Model {
|
|
489
|
+
data?: GetSqlStatementResponseBodyData;
|
|
490
|
+
requestId?: string;
|
|
491
|
+
static names(): {
|
|
492
|
+
[key: string]: string;
|
|
493
|
+
};
|
|
494
|
+
static types(): {
|
|
495
|
+
[key: string]: any;
|
|
496
|
+
};
|
|
497
|
+
constructor(map?: {
|
|
498
|
+
[key: string]: any;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
export declare class GetSqlStatementResponse extends $tea.Model {
|
|
502
|
+
headers?: {
|
|
503
|
+
[key: string]: string;
|
|
504
|
+
};
|
|
505
|
+
statusCode?: number;
|
|
506
|
+
body?: GetSqlStatementResponseBody;
|
|
507
|
+
static names(): {
|
|
508
|
+
[key: string]: string;
|
|
509
|
+
};
|
|
510
|
+
static types(): {
|
|
511
|
+
[key: string]: any;
|
|
512
|
+
};
|
|
513
|
+
constructor(map?: {
|
|
514
|
+
[key: string]: any;
|
|
515
|
+
});
|
|
516
|
+
}
|
|
427
517
|
export declare class GrantRoleToUsersRequest extends $tea.Model {
|
|
428
518
|
roleArn?: string;
|
|
429
519
|
userArns?: string[];
|
|
@@ -469,6 +559,7 @@ export declare class GrantRoleToUsersResponse extends $tea.Model {
|
|
|
469
559
|
export declare class ListJobRunsRequest extends $tea.Model {
|
|
470
560
|
creator?: string;
|
|
471
561
|
endTime?: ListJobRunsRequestEndTime;
|
|
562
|
+
jobRunDeploymentId?: string;
|
|
472
563
|
jobRunId?: string;
|
|
473
564
|
maxResults?: number;
|
|
474
565
|
name?: string;
|
|
@@ -491,6 +582,7 @@ export declare class ListJobRunsRequest extends $tea.Model {
|
|
|
491
582
|
export declare class ListJobRunsShrinkRequest extends $tea.Model {
|
|
492
583
|
creator?: string;
|
|
493
584
|
endTimeShrink?: string;
|
|
585
|
+
jobRunDeploymentId?: string;
|
|
494
586
|
jobRunId?: string;
|
|
495
587
|
maxResults?: number;
|
|
496
588
|
name?: string;
|
|
@@ -781,6 +873,46 @@ export declare class StartJobRunResponse extends $tea.Model {
|
|
|
781
873
|
[key: string]: any;
|
|
782
874
|
});
|
|
783
875
|
}
|
|
876
|
+
export declare class TerminateSqlStatementRequest extends $tea.Model {
|
|
877
|
+
regionId?: string;
|
|
878
|
+
static names(): {
|
|
879
|
+
[key: string]: string;
|
|
880
|
+
};
|
|
881
|
+
static types(): {
|
|
882
|
+
[key: string]: any;
|
|
883
|
+
};
|
|
884
|
+
constructor(map?: {
|
|
885
|
+
[key: string]: any;
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
export declare class TerminateSqlStatementResponseBody extends $tea.Model {
|
|
889
|
+
requestId?: string;
|
|
890
|
+
static names(): {
|
|
891
|
+
[key: string]: string;
|
|
892
|
+
};
|
|
893
|
+
static types(): {
|
|
894
|
+
[key: string]: any;
|
|
895
|
+
};
|
|
896
|
+
constructor(map?: {
|
|
897
|
+
[key: string]: any;
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
export declare class TerminateSqlStatementResponse extends $tea.Model {
|
|
901
|
+
headers?: {
|
|
902
|
+
[key: string]: string;
|
|
903
|
+
};
|
|
904
|
+
statusCode?: number;
|
|
905
|
+
body?: TerminateSqlStatementResponseBody;
|
|
906
|
+
static names(): {
|
|
907
|
+
[key: string]: string;
|
|
908
|
+
};
|
|
909
|
+
static types(): {
|
|
910
|
+
[key: string]: any;
|
|
911
|
+
};
|
|
912
|
+
constructor(map?: {
|
|
913
|
+
[key: string]: any;
|
|
914
|
+
});
|
|
915
|
+
}
|
|
784
916
|
export declare class ConfigurationOverridesConfigurations extends $tea.Model {
|
|
785
917
|
configFileName?: string;
|
|
786
918
|
configItemKey?: string;
|
|
@@ -847,6 +979,18 @@ export declare class SqlOutputSchema extends $tea.Model {
|
|
|
847
979
|
[key: string]: any;
|
|
848
980
|
});
|
|
849
981
|
}
|
|
982
|
+
export declare class CreateSqlStatementResponseBodyData extends $tea.Model {
|
|
983
|
+
statementId?: string;
|
|
984
|
+
static names(): {
|
|
985
|
+
[key: string]: string;
|
|
986
|
+
};
|
|
987
|
+
static types(): {
|
|
988
|
+
[key: string]: any;
|
|
989
|
+
};
|
|
990
|
+
constructor(map?: {
|
|
991
|
+
[key: string]: any;
|
|
992
|
+
});
|
|
993
|
+
}
|
|
850
994
|
export declare class GetJobRunResponseBodyJobRunConfigurationOverrides extends $tea.Model {
|
|
851
995
|
configurations?: Configuration[];
|
|
852
996
|
static names(): {
|
|
@@ -900,6 +1044,36 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
|
|
|
900
1044
|
[key: string]: any;
|
|
901
1045
|
});
|
|
902
1046
|
}
|
|
1047
|
+
export declare class GetSqlStatementResponseBodyDataSqlOutputs extends $tea.Model {
|
|
1048
|
+
rows?: string;
|
|
1049
|
+
schema?: string;
|
|
1050
|
+
static names(): {
|
|
1051
|
+
[key: string]: string;
|
|
1052
|
+
};
|
|
1053
|
+
static types(): {
|
|
1054
|
+
[key: string]: any;
|
|
1055
|
+
};
|
|
1056
|
+
constructor(map?: {
|
|
1057
|
+
[key: string]: any;
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
export declare class GetSqlStatementResponseBodyData extends $tea.Model {
|
|
1061
|
+
executionTime?: number[];
|
|
1062
|
+
sqlErrorCode?: string;
|
|
1063
|
+
sqlErrorMessage?: string;
|
|
1064
|
+
sqlOutputs?: GetSqlStatementResponseBodyDataSqlOutputs[];
|
|
1065
|
+
state?: string;
|
|
1066
|
+
statementId?: string;
|
|
1067
|
+
static names(): {
|
|
1068
|
+
[key: string]: string;
|
|
1069
|
+
};
|
|
1070
|
+
static types(): {
|
|
1071
|
+
[key: string]: any;
|
|
1072
|
+
};
|
|
1073
|
+
constructor(map?: {
|
|
1074
|
+
[key: string]: any;
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
903
1077
|
export declare class ListJobRunsRequestEndTime extends $tea.Model {
|
|
904
1078
|
endTime?: number;
|
|
905
1079
|
startTime?: number;
|
|
@@ -1234,6 +1408,24 @@ export default class Client extends OpenApi {
|
|
|
1234
1408
|
* @return CancelJobRunResponse
|
|
1235
1409
|
*/
|
|
1236
1410
|
cancelJobRun(workspaceId: string, jobRunId: string, request: CancelJobRunRequest): Promise<CancelJobRunResponse>;
|
|
1411
|
+
/**
|
|
1412
|
+
* @summary 使用session运行SQL
|
|
1413
|
+
*
|
|
1414
|
+
* @param request CreateSqlStatementRequest
|
|
1415
|
+
* @param headers map
|
|
1416
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1417
|
+
* @return CreateSqlStatementResponse
|
|
1418
|
+
*/
|
|
1419
|
+
createSqlStatementWithOptions(workspaceId: string, request: CreateSqlStatementRequest, headers: {
|
|
1420
|
+
[key: string]: string;
|
|
1421
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateSqlStatementResponse>;
|
|
1422
|
+
/**
|
|
1423
|
+
* @summary 使用session运行SQL
|
|
1424
|
+
*
|
|
1425
|
+
* @param request CreateSqlStatementRequest
|
|
1426
|
+
* @return CreateSqlStatementResponse
|
|
1427
|
+
*/
|
|
1428
|
+
createSqlStatement(workspaceId: string, request: CreateSqlStatementRequest): Promise<CreateSqlStatementResponse>;
|
|
1237
1429
|
/**
|
|
1238
1430
|
* @summary 获取任务
|
|
1239
1431
|
*
|
|
@@ -1252,6 +1444,24 @@ export default class Client extends OpenApi {
|
|
|
1252
1444
|
* @return GetJobRunResponse
|
|
1253
1445
|
*/
|
|
1254
1446
|
getJobRun(workspaceId: string, jobRunId: string, request: GetJobRunRequest): Promise<GetJobRunResponse>;
|
|
1447
|
+
/**
|
|
1448
|
+
* @summary 获取Sql Statement状态
|
|
1449
|
+
*
|
|
1450
|
+
* @param request GetSqlStatementRequest
|
|
1451
|
+
* @param headers map
|
|
1452
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1453
|
+
* @return GetSqlStatementResponse
|
|
1454
|
+
*/
|
|
1455
|
+
getSqlStatementWithOptions(workspaceId: string, statementId: string, request: GetSqlStatementRequest, headers: {
|
|
1456
|
+
[key: string]: string;
|
|
1457
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetSqlStatementResponse>;
|
|
1458
|
+
/**
|
|
1459
|
+
* @summary 获取Sql Statement状态
|
|
1460
|
+
*
|
|
1461
|
+
* @param request GetSqlStatementRequest
|
|
1462
|
+
* @return GetSqlStatementResponse
|
|
1463
|
+
*/
|
|
1464
|
+
getSqlStatement(workspaceId: string, statementId: string, request: GetSqlStatementRequest): Promise<GetSqlStatementResponse>;
|
|
1255
1465
|
/**
|
|
1256
1466
|
* @summary 给用户授权Role列表
|
|
1257
1467
|
*
|
|
@@ -1378,4 +1588,22 @@ export default class Client extends OpenApi {
|
|
|
1378
1588
|
* @return StartJobRunResponse
|
|
1379
1589
|
*/
|
|
1380
1590
|
startJobRun(workspaceId: string, request: StartJobRunRequest): Promise<StartJobRunResponse>;
|
|
1591
|
+
/**
|
|
1592
|
+
* @summary 终止 session statement
|
|
1593
|
+
*
|
|
1594
|
+
* @param request TerminateSqlStatementRequest
|
|
1595
|
+
* @param headers map
|
|
1596
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1597
|
+
* @return TerminateSqlStatementResponse
|
|
1598
|
+
*/
|
|
1599
|
+
terminateSqlStatementWithOptions(workspaceId: string, statementId: string, request: TerminateSqlStatementRequest, headers: {
|
|
1600
|
+
[key: string]: string;
|
|
1601
|
+
}, runtime: $Util.RuntimeOptions): Promise<TerminateSqlStatementResponse>;
|
|
1602
|
+
/**
|
|
1603
|
+
* @summary 终止 session statement
|
|
1604
|
+
*
|
|
1605
|
+
* @param request TerminateSqlStatementRequest
|
|
1606
|
+
* @return TerminateSqlStatementResponse
|
|
1607
|
+
*/
|
|
1608
|
+
terminateSqlStatement(workspaceId: string, statementId: string, request: TerminateSqlStatementRequest): Promise<TerminateSqlStatementResponse>;
|
|
1381
1609
|
}
|