@alicloud/emr-serverless-spark20230808 1.2.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 +348 -0
- package/dist/client.js +600 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +716 -7
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;
|
|
@@ -300,6 +303,48 @@ export declare class TimeRange extends $tea.Model {
|
|
|
300
303
|
[key: string]: any;
|
|
301
304
|
});
|
|
302
305
|
}
|
|
306
|
+
export declare class AddMembersRequest extends $tea.Model {
|
|
307
|
+
memberArns?: string[];
|
|
308
|
+
workspaceId?: string;
|
|
309
|
+
regionId?: string;
|
|
310
|
+
static names(): {
|
|
311
|
+
[key: string]: string;
|
|
312
|
+
};
|
|
313
|
+
static types(): {
|
|
314
|
+
[key: string]: any;
|
|
315
|
+
};
|
|
316
|
+
constructor(map?: {
|
|
317
|
+
[key: string]: any;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
export declare class AddMembersResponseBody extends $tea.Model {
|
|
321
|
+
requestId?: string;
|
|
322
|
+
static names(): {
|
|
323
|
+
[key: string]: string;
|
|
324
|
+
};
|
|
325
|
+
static types(): {
|
|
326
|
+
[key: string]: any;
|
|
327
|
+
};
|
|
328
|
+
constructor(map?: {
|
|
329
|
+
[key: string]: any;
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
export declare class AddMembersResponse extends $tea.Model {
|
|
333
|
+
headers?: {
|
|
334
|
+
[key: string]: string;
|
|
335
|
+
};
|
|
336
|
+
statusCode?: number;
|
|
337
|
+
body?: AddMembersResponseBody;
|
|
338
|
+
static names(): {
|
|
339
|
+
[key: string]: string;
|
|
340
|
+
};
|
|
341
|
+
static types(): {
|
|
342
|
+
[key: string]: any;
|
|
343
|
+
};
|
|
344
|
+
constructor(map?: {
|
|
345
|
+
[key: string]: any;
|
|
346
|
+
});
|
|
347
|
+
}
|
|
303
348
|
export declare class CancelJobRunRequest extends $tea.Model {
|
|
304
349
|
regionId?: string;
|
|
305
350
|
static names(): {
|
|
@@ -341,6 +386,52 @@ export declare class CancelJobRunResponse extends $tea.Model {
|
|
|
341
386
|
[key: string]: any;
|
|
342
387
|
});
|
|
343
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
|
+
}
|
|
344
435
|
export declare class GetJobRunRequest extends $tea.Model {
|
|
345
436
|
regionId?: string;
|
|
346
437
|
static names(): {
|
|
@@ -382,9 +473,93 @@ export declare class GetJobRunResponse extends $tea.Model {
|
|
|
382
473
|
[key: string]: any;
|
|
383
474
|
});
|
|
384
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
|
+
}
|
|
517
|
+
export declare class GrantRoleToUsersRequest extends $tea.Model {
|
|
518
|
+
roleArn?: string;
|
|
519
|
+
userArns?: string[];
|
|
520
|
+
regionId?: string;
|
|
521
|
+
static names(): {
|
|
522
|
+
[key: string]: string;
|
|
523
|
+
};
|
|
524
|
+
static types(): {
|
|
525
|
+
[key: string]: any;
|
|
526
|
+
};
|
|
527
|
+
constructor(map?: {
|
|
528
|
+
[key: string]: any;
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
export declare class GrantRoleToUsersResponseBody extends $tea.Model {
|
|
532
|
+
requestId?: string;
|
|
533
|
+
static names(): {
|
|
534
|
+
[key: string]: string;
|
|
535
|
+
};
|
|
536
|
+
static types(): {
|
|
537
|
+
[key: string]: any;
|
|
538
|
+
};
|
|
539
|
+
constructor(map?: {
|
|
540
|
+
[key: string]: any;
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
export declare class GrantRoleToUsersResponse extends $tea.Model {
|
|
544
|
+
headers?: {
|
|
545
|
+
[key: string]: string;
|
|
546
|
+
};
|
|
547
|
+
statusCode?: number;
|
|
548
|
+
body?: GrantRoleToUsersResponseBody;
|
|
549
|
+
static names(): {
|
|
550
|
+
[key: string]: string;
|
|
551
|
+
};
|
|
552
|
+
static types(): {
|
|
553
|
+
[key: string]: any;
|
|
554
|
+
};
|
|
555
|
+
constructor(map?: {
|
|
556
|
+
[key: string]: any;
|
|
557
|
+
});
|
|
558
|
+
}
|
|
385
559
|
export declare class ListJobRunsRequest extends $tea.Model {
|
|
386
560
|
creator?: string;
|
|
387
561
|
endTime?: ListJobRunsRequestEndTime;
|
|
562
|
+
jobRunDeploymentId?: string;
|
|
388
563
|
jobRunId?: string;
|
|
389
564
|
maxResults?: number;
|
|
390
565
|
name?: string;
|
|
@@ -407,6 +582,7 @@ export declare class ListJobRunsRequest extends $tea.Model {
|
|
|
407
582
|
export declare class ListJobRunsShrinkRequest extends $tea.Model {
|
|
408
583
|
creator?: string;
|
|
409
584
|
endTimeShrink?: string;
|
|
585
|
+
jobRunDeploymentId?: string;
|
|
410
586
|
jobRunId?: string;
|
|
411
587
|
maxResults?: number;
|
|
412
588
|
name?: string;
|
|
@@ -697,6 +873,46 @@ export declare class StartJobRunResponse extends $tea.Model {
|
|
|
697
873
|
[key: string]: any;
|
|
698
874
|
});
|
|
699
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
|
+
}
|
|
700
916
|
export declare class ConfigurationOverridesConfigurations extends $tea.Model {
|
|
701
917
|
configFileName?: string;
|
|
702
918
|
configItemKey?: string;
|
|
@@ -763,6 +979,18 @@ export declare class SqlOutputSchema extends $tea.Model {
|
|
|
763
979
|
[key: string]: any;
|
|
764
980
|
});
|
|
765
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
|
+
}
|
|
766
994
|
export declare class GetJobRunResponseBodyJobRunConfigurationOverrides extends $tea.Model {
|
|
767
995
|
configurations?: Configuration[];
|
|
768
996
|
static names(): {
|
|
@@ -816,6 +1044,36 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
|
|
|
816
1044
|
[key: string]: any;
|
|
817
1045
|
});
|
|
818
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
|
+
}
|
|
819
1077
|
export declare class ListJobRunsRequestEndTime extends $tea.Model {
|
|
820
1078
|
endTime?: number;
|
|
821
1079
|
startTime?: number;
|
|
@@ -1114,6 +1372,24 @@ export default class Client extends OpenApi {
|
|
|
1114
1372
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
1115
1373
|
[key: string]: string;
|
|
1116
1374
|
}, endpoint: string): string;
|
|
1375
|
+
/**
|
|
1376
|
+
* @summary 添加用户
|
|
1377
|
+
*
|
|
1378
|
+
* @param request AddMembersRequest
|
|
1379
|
+
* @param headers map
|
|
1380
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1381
|
+
* @return AddMembersResponse
|
|
1382
|
+
*/
|
|
1383
|
+
addMembersWithOptions(request: AddMembersRequest, headers: {
|
|
1384
|
+
[key: string]: string;
|
|
1385
|
+
}, runtime: $Util.RuntimeOptions): Promise<AddMembersResponse>;
|
|
1386
|
+
/**
|
|
1387
|
+
* @summary 添加用户
|
|
1388
|
+
*
|
|
1389
|
+
* @param request AddMembersRequest
|
|
1390
|
+
* @return AddMembersResponse
|
|
1391
|
+
*/
|
|
1392
|
+
addMembers(request: AddMembersRequest): Promise<AddMembersResponse>;
|
|
1117
1393
|
/**
|
|
1118
1394
|
* @summary 取消jobRun作业
|
|
1119
1395
|
*
|
|
@@ -1132,6 +1408,24 @@ export default class Client extends OpenApi {
|
|
|
1132
1408
|
* @return CancelJobRunResponse
|
|
1133
1409
|
*/
|
|
1134
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>;
|
|
1135
1429
|
/**
|
|
1136
1430
|
* @summary 获取任务
|
|
1137
1431
|
*
|
|
@@ -1150,6 +1444,42 @@ export default class Client extends OpenApi {
|
|
|
1150
1444
|
* @return GetJobRunResponse
|
|
1151
1445
|
*/
|
|
1152
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>;
|
|
1465
|
+
/**
|
|
1466
|
+
* @summary 给用户授权Role列表
|
|
1467
|
+
*
|
|
1468
|
+
* @param request GrantRoleToUsersRequest
|
|
1469
|
+
* @param headers map
|
|
1470
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1471
|
+
* @return GrantRoleToUsersResponse
|
|
1472
|
+
*/
|
|
1473
|
+
grantRoleToUsersWithOptions(request: GrantRoleToUsersRequest, headers: {
|
|
1474
|
+
[key: string]: string;
|
|
1475
|
+
}, runtime: $Util.RuntimeOptions): Promise<GrantRoleToUsersResponse>;
|
|
1476
|
+
/**
|
|
1477
|
+
* @summary 给用户授权Role列表
|
|
1478
|
+
*
|
|
1479
|
+
* @param request GrantRoleToUsersRequest
|
|
1480
|
+
* @return GrantRoleToUsersResponse
|
|
1481
|
+
*/
|
|
1482
|
+
grantRoleToUsers(request: GrantRoleToUsersRequest): Promise<GrantRoleToUsersResponse>;
|
|
1153
1483
|
/**
|
|
1154
1484
|
* @summary 查询run列表
|
|
1155
1485
|
*
|
|
@@ -1258,4 +1588,22 @@ export default class Client extends OpenApi {
|
|
|
1258
1588
|
* @return StartJobRunResponse
|
|
1259
1589
|
*/
|
|
1260
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>;
|
|
1261
1609
|
}
|