@alicloud/emr-serverless-spark20230808 1.6.0 → 1.7.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 +304 -11
- package/dist/client.js +298 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +478 -11
package/dist/client.d.ts
CHANGED
|
@@ -9,12 +9,14 @@ export declare class Artifact extends $tea.Model {
|
|
|
9
9
|
* This parameter is required.
|
|
10
10
|
*/
|
|
11
11
|
bizId?: string;
|
|
12
|
+
catagoryBizId?: string;
|
|
12
13
|
/**
|
|
13
14
|
* @remarks
|
|
14
15
|
* This parameter is required.
|
|
15
16
|
*/
|
|
16
17
|
creator?: number;
|
|
17
18
|
credential?: Credential;
|
|
19
|
+
fullPath?: string[];
|
|
18
20
|
/**
|
|
19
21
|
* @remarks
|
|
20
22
|
* This parameter is required.
|
|
@@ -307,11 +309,13 @@ export declare class Task extends $tea.Model {
|
|
|
307
309
|
* This parameter is required.
|
|
308
310
|
*/
|
|
309
311
|
creator?: number;
|
|
312
|
+
credential?: TaskCredential;
|
|
310
313
|
defaultCatalogId?: string;
|
|
311
314
|
defaultDatabase?: string;
|
|
312
315
|
defaultResourceQueueId?: string;
|
|
313
316
|
defaultSqlComputeId?: string;
|
|
314
317
|
deploymentId?: string;
|
|
318
|
+
environmentId?: string;
|
|
315
319
|
extraArtifactIds?: string[];
|
|
316
320
|
extraSparkSubmitParams?: string;
|
|
317
321
|
files?: string[];
|
|
@@ -708,7 +712,7 @@ export declare class CreateSqlStatementRequest extends $tea.Model {
|
|
|
708
712
|
limit?: number;
|
|
709
713
|
/**
|
|
710
714
|
* @remarks
|
|
711
|
-
* The SQL
|
|
715
|
+
* The SQL session ID. You can create an SQL session in the workspace created in EMR Serverless Spark.
|
|
712
716
|
*
|
|
713
717
|
* @example
|
|
714
718
|
* sc-dfahdfjafhajd****
|
|
@@ -831,6 +835,58 @@ export declare class GetJobRunResponse extends $tea.Model {
|
|
|
831
835
|
[key: string]: any;
|
|
832
836
|
});
|
|
833
837
|
}
|
|
838
|
+
export declare class GetSessionClusterRequest extends $tea.Model {
|
|
839
|
+
/**
|
|
840
|
+
* @example
|
|
841
|
+
* cn-hangzhou
|
|
842
|
+
*/
|
|
843
|
+
regionId?: string;
|
|
844
|
+
static names(): {
|
|
845
|
+
[key: string]: string;
|
|
846
|
+
};
|
|
847
|
+
static types(): {
|
|
848
|
+
[key: string]: any;
|
|
849
|
+
};
|
|
850
|
+
constructor(map?: {
|
|
851
|
+
[key: string]: any;
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
export declare class GetSessionClusterResponseBody extends $tea.Model {
|
|
855
|
+
/**
|
|
856
|
+
* @remarks
|
|
857
|
+
* 请求ID。
|
|
858
|
+
*
|
|
859
|
+
* @example
|
|
860
|
+
* DD6B1B2A-5837-5237-ABE4-FF0C8944****
|
|
861
|
+
*/
|
|
862
|
+
requestId?: string;
|
|
863
|
+
sessionCluster?: GetSessionClusterResponseBodySessionCluster;
|
|
864
|
+
static names(): {
|
|
865
|
+
[key: string]: string;
|
|
866
|
+
};
|
|
867
|
+
static types(): {
|
|
868
|
+
[key: string]: any;
|
|
869
|
+
};
|
|
870
|
+
constructor(map?: {
|
|
871
|
+
[key: string]: any;
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
export declare class GetSessionClusterResponse extends $tea.Model {
|
|
875
|
+
headers?: {
|
|
876
|
+
[key: string]: string;
|
|
877
|
+
};
|
|
878
|
+
statusCode?: number;
|
|
879
|
+
body?: GetSessionClusterResponseBody;
|
|
880
|
+
static names(): {
|
|
881
|
+
[key: string]: string;
|
|
882
|
+
};
|
|
883
|
+
static types(): {
|
|
884
|
+
[key: string]: any;
|
|
885
|
+
};
|
|
886
|
+
constructor(map?: {
|
|
887
|
+
[key: string]: any;
|
|
888
|
+
});
|
|
889
|
+
}
|
|
834
890
|
export declare class GetSqlStatementRequest extends $tea.Model {
|
|
835
891
|
/**
|
|
836
892
|
* @remarks
|
|
@@ -893,12 +949,16 @@ export declare class GetSqlStatementResponse extends $tea.Model {
|
|
|
893
949
|
export declare class GrantRoleToUsersRequest extends $tea.Model {
|
|
894
950
|
/**
|
|
895
951
|
* @remarks
|
|
896
|
-
* The Alibaba Cloud Resource Name (ARN) of the role.
|
|
952
|
+
* The Alibaba Cloud Resource Name (ARN) of the RAM role.
|
|
897
953
|
*
|
|
898
954
|
* @example
|
|
899
955
|
* acs:emr::w-975bcfda9625****:role/Owner
|
|
900
956
|
*/
|
|
901
957
|
roleArn?: string;
|
|
958
|
+
/**
|
|
959
|
+
* @remarks
|
|
960
|
+
* The user ARNs.
|
|
961
|
+
*/
|
|
902
962
|
userArns?: string[];
|
|
903
963
|
/**
|
|
904
964
|
* @remarks
|
|
@@ -2146,6 +2206,25 @@ export declare class SqlOutputSchema extends $tea.Model {
|
|
|
2146
2206
|
[key: string]: any;
|
|
2147
2207
|
});
|
|
2148
2208
|
}
|
|
2209
|
+
export declare class TaskCredential extends $tea.Model {
|
|
2210
|
+
accessId?: string;
|
|
2211
|
+
accessUrl?: string;
|
|
2212
|
+
expire?: number;
|
|
2213
|
+
host?: string;
|
|
2214
|
+
path?: string;
|
|
2215
|
+
policy?: string;
|
|
2216
|
+
securityToken?: string;
|
|
2217
|
+
signature?: string;
|
|
2218
|
+
static names(): {
|
|
2219
|
+
[key: string]: string;
|
|
2220
|
+
};
|
|
2221
|
+
static types(): {
|
|
2222
|
+
[key: string]: any;
|
|
2223
|
+
};
|
|
2224
|
+
constructor(map?: {
|
|
2225
|
+
[key: string]: any;
|
|
2226
|
+
});
|
|
2227
|
+
}
|
|
2149
2228
|
export declare class CreateSqlStatementResponseBodyData extends $tea.Model {
|
|
2150
2229
|
/**
|
|
2151
2230
|
* @remarks
|
|
@@ -2235,6 +2314,7 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
|
|
|
2235
2314
|
* 1684119314000
|
|
2236
2315
|
*/
|
|
2237
2316
|
endTime?: number;
|
|
2317
|
+
environmentId?: string;
|
|
2238
2318
|
/**
|
|
2239
2319
|
* @remarks
|
|
2240
2320
|
* The timeout period of the job.
|
|
@@ -2346,6 +2426,198 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
|
|
|
2346
2426
|
[key: string]: any;
|
|
2347
2427
|
});
|
|
2348
2428
|
}
|
|
2429
|
+
export declare class GetSessionClusterResponseBodySessionClusterApplicationConfigs extends $tea.Model {
|
|
2430
|
+
/**
|
|
2431
|
+
* @example
|
|
2432
|
+
* spark-defaults.conf
|
|
2433
|
+
*/
|
|
2434
|
+
configFileName?: string;
|
|
2435
|
+
/**
|
|
2436
|
+
* @example
|
|
2437
|
+
* spark.app.name
|
|
2438
|
+
*/
|
|
2439
|
+
configItemKey?: string;
|
|
2440
|
+
/**
|
|
2441
|
+
* @example
|
|
2442
|
+
* test
|
|
2443
|
+
*/
|
|
2444
|
+
configItemValue?: string;
|
|
2445
|
+
static names(): {
|
|
2446
|
+
[key: string]: string;
|
|
2447
|
+
};
|
|
2448
|
+
static types(): {
|
|
2449
|
+
[key: string]: any;
|
|
2450
|
+
};
|
|
2451
|
+
constructor(map?: {
|
|
2452
|
+
[key: string]: any;
|
|
2453
|
+
});
|
|
2454
|
+
}
|
|
2455
|
+
export declare class GetSessionClusterResponseBodySessionClusterAutoStartConfiguration extends $tea.Model {
|
|
2456
|
+
/**
|
|
2457
|
+
* @example
|
|
2458
|
+
* false
|
|
2459
|
+
*/
|
|
2460
|
+
enable?: boolean;
|
|
2461
|
+
static names(): {
|
|
2462
|
+
[key: string]: string;
|
|
2463
|
+
};
|
|
2464
|
+
static types(): {
|
|
2465
|
+
[key: string]: any;
|
|
2466
|
+
};
|
|
2467
|
+
constructor(map?: {
|
|
2468
|
+
[key: string]: any;
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
export declare class GetSessionClusterResponseBodySessionClusterAutoStopConfiguration extends $tea.Model {
|
|
2472
|
+
/**
|
|
2473
|
+
* @example
|
|
2474
|
+
* false
|
|
2475
|
+
*/
|
|
2476
|
+
enable?: boolean;
|
|
2477
|
+
/**
|
|
2478
|
+
* @example
|
|
2479
|
+
* 60
|
|
2480
|
+
*/
|
|
2481
|
+
idleTimeoutMinutes?: number;
|
|
2482
|
+
static names(): {
|
|
2483
|
+
[key: string]: string;
|
|
2484
|
+
};
|
|
2485
|
+
static types(): {
|
|
2486
|
+
[key: string]: any;
|
|
2487
|
+
};
|
|
2488
|
+
constructor(map?: {
|
|
2489
|
+
[key: string]: any;
|
|
2490
|
+
});
|
|
2491
|
+
}
|
|
2492
|
+
export declare class GetSessionClusterResponseBodySessionClusterStateChangeReason extends $tea.Model {
|
|
2493
|
+
/**
|
|
2494
|
+
* @example
|
|
2495
|
+
* 1000000
|
|
2496
|
+
*/
|
|
2497
|
+
code?: string;
|
|
2498
|
+
/**
|
|
2499
|
+
* @example
|
|
2500
|
+
* ok
|
|
2501
|
+
*/
|
|
2502
|
+
message?: string;
|
|
2503
|
+
static names(): {
|
|
2504
|
+
[key: string]: string;
|
|
2505
|
+
};
|
|
2506
|
+
static types(): {
|
|
2507
|
+
[key: string]: any;
|
|
2508
|
+
};
|
|
2509
|
+
constructor(map?: {
|
|
2510
|
+
[key: string]: any;
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
export declare class GetSessionClusterResponseBodySessionCluster extends $tea.Model {
|
|
2514
|
+
applicationConfigs?: GetSessionClusterResponseBodySessionClusterApplicationConfigs[];
|
|
2515
|
+
autoStartConfiguration?: GetSessionClusterResponseBodySessionClusterAutoStartConfiguration;
|
|
2516
|
+
autoStopConfiguration?: GetSessionClusterResponseBodySessionClusterAutoStopConfiguration;
|
|
2517
|
+
/**
|
|
2518
|
+
* @example
|
|
2519
|
+
* esr-2.2(Java Runtime)
|
|
2520
|
+
*/
|
|
2521
|
+
displayReleaseVersion?: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* @example
|
|
2524
|
+
* your.domain.com
|
|
2525
|
+
*/
|
|
2526
|
+
domain?: string;
|
|
2527
|
+
domainInner?: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* @example
|
|
2530
|
+
* TSK-xxxxxxxx
|
|
2531
|
+
*/
|
|
2532
|
+
draftId?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* @example
|
|
2535
|
+
* env-cpv569tlhtgndjl86t40
|
|
2536
|
+
*/
|
|
2537
|
+
envId?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* @example
|
|
2540
|
+
* false
|
|
2541
|
+
*/
|
|
2542
|
+
fusion?: boolean;
|
|
2543
|
+
gmtCreate?: number;
|
|
2544
|
+
/**
|
|
2545
|
+
* @example
|
|
2546
|
+
* SQL
|
|
2547
|
+
*/
|
|
2548
|
+
kind?: string;
|
|
2549
|
+
/**
|
|
2550
|
+
* @example
|
|
2551
|
+
* test
|
|
2552
|
+
*/
|
|
2553
|
+
name?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* @remarks
|
|
2556
|
+
* 作业实例名称。
|
|
2557
|
+
*
|
|
2558
|
+
* @example
|
|
2559
|
+
* jobName
|
|
2560
|
+
*/
|
|
2561
|
+
queueName?: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* @example
|
|
2564
|
+
* esr-2.2(Java Runtime)
|
|
2565
|
+
*/
|
|
2566
|
+
releaseVersion?: string;
|
|
2567
|
+
/**
|
|
2568
|
+
* @remarks
|
|
2569
|
+
* 交互式作业会话id。
|
|
2570
|
+
*
|
|
2571
|
+
* @example
|
|
2572
|
+
* 1234abcd-12ab-34cd-56ef-1234567890ab
|
|
2573
|
+
*/
|
|
2574
|
+
sessionClusterId?: string;
|
|
2575
|
+
startTime?: number;
|
|
2576
|
+
/**
|
|
2577
|
+
* @remarks
|
|
2578
|
+
* 作业状态。
|
|
2579
|
+
*
|
|
2580
|
+
* @example
|
|
2581
|
+
* Running
|
|
2582
|
+
*/
|
|
2583
|
+
state?: string;
|
|
2584
|
+
stateChangeReason?: GetSessionClusterResponseBodySessionClusterStateChangeReason;
|
|
2585
|
+
/**
|
|
2586
|
+
* @remarks
|
|
2587
|
+
* 任务实例ID。
|
|
2588
|
+
*
|
|
2589
|
+
* @example
|
|
2590
|
+
* jr-231231
|
|
2591
|
+
*/
|
|
2592
|
+
userId?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* @example
|
|
2595
|
+
* user1
|
|
2596
|
+
*/
|
|
2597
|
+
userName?: string;
|
|
2598
|
+
/**
|
|
2599
|
+
* @example
|
|
2600
|
+
* https://spark-ui/link
|
|
2601
|
+
*/
|
|
2602
|
+
webUI?: string;
|
|
2603
|
+
/**
|
|
2604
|
+
* @remarks
|
|
2605
|
+
* 工作空间id。
|
|
2606
|
+
*
|
|
2607
|
+
* @example
|
|
2608
|
+
* w-1234abcd
|
|
2609
|
+
*/
|
|
2610
|
+
workspaceId?: string;
|
|
2611
|
+
static names(): {
|
|
2612
|
+
[key: string]: string;
|
|
2613
|
+
};
|
|
2614
|
+
static types(): {
|
|
2615
|
+
[key: string]: any;
|
|
2616
|
+
};
|
|
2617
|
+
constructor(map?: {
|
|
2618
|
+
[key: string]: any;
|
|
2619
|
+
});
|
|
2620
|
+
}
|
|
2349
2621
|
export declare class GetSqlStatementResponseBodyDataSqlOutputs extends $tea.Model {
|
|
2350
2622
|
/**
|
|
2351
2623
|
* @remarks
|
|
@@ -2822,7 +3094,7 @@ export declare class ListSessionClustersResponseBodySessionClustersApplicationCo
|
|
|
2822
3094
|
configFileName?: string;
|
|
2823
3095
|
/**
|
|
2824
3096
|
* @remarks
|
|
2825
|
-
* The key of the configuration
|
|
3097
|
+
* The key of the configuration.
|
|
2826
3098
|
*
|
|
2827
3099
|
* @example
|
|
2828
3100
|
* spark.app.name
|
|
@@ -2830,7 +3102,7 @@ export declare class ListSessionClustersResponseBodySessionClustersApplicationCo
|
|
|
2830
3102
|
configItemKey?: string;
|
|
2831
3103
|
/**
|
|
2832
3104
|
* @remarks
|
|
2833
|
-
* The
|
|
3105
|
+
* The configuration value.
|
|
2834
3106
|
*
|
|
2835
3107
|
* @example
|
|
2836
3108
|
* test_application
|
|
@@ -2941,6 +3213,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
|
|
|
2941
3213
|
*/
|
|
2942
3214
|
displayReleaseVersion?: string;
|
|
2943
3215
|
domain?: string;
|
|
3216
|
+
domainInner?: string;
|
|
2944
3217
|
/**
|
|
2945
3218
|
* @remarks
|
|
2946
3219
|
* The ID of the job that is associated with the session.
|
|
@@ -2957,6 +3230,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
|
|
|
2957
3230
|
* false
|
|
2958
3231
|
*/
|
|
2959
3232
|
fusion?: boolean;
|
|
3233
|
+
gmtCreate?: number;
|
|
2960
3234
|
/**
|
|
2961
3235
|
* @remarks
|
|
2962
3236
|
* The session type.
|
|
@@ -3003,6 +3277,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
|
|
|
3003
3277
|
* sc-123131
|
|
3004
3278
|
*/
|
|
3005
3279
|
sessionClusterId?: string;
|
|
3280
|
+
startTime?: number;
|
|
3006
3281
|
/**
|
|
3007
3282
|
* @remarks
|
|
3008
3283
|
* The status of the session.
|
|
@@ -3026,7 +3301,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
|
|
|
3026
3301
|
userId?: string;
|
|
3027
3302
|
/**
|
|
3028
3303
|
* @remarks
|
|
3029
|
-
* The
|
|
3304
|
+
* The username.
|
|
3030
3305
|
*
|
|
3031
3306
|
* @example
|
|
3032
3307
|
* test_user
|
|
@@ -3534,6 +3809,24 @@ export default class Client extends OpenApi {
|
|
|
3534
3809
|
* @returns GetJobRunResponse
|
|
3535
3810
|
*/
|
|
3536
3811
|
getJobRun(workspaceId: string, jobRunId: string, request: GetJobRunRequest): Promise<GetJobRunResponse>;
|
|
3812
|
+
/**
|
|
3813
|
+
* 查询SessionCluster集群
|
|
3814
|
+
*
|
|
3815
|
+
* @param request - GetSessionClusterRequest
|
|
3816
|
+
* @param headers - map
|
|
3817
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3818
|
+
* @returns GetSessionClusterResponse
|
|
3819
|
+
*/
|
|
3820
|
+
getSessionClusterWithOptions(workspaceId: string, sessionClusterId: string, request: GetSessionClusterRequest, headers: {
|
|
3821
|
+
[key: string]: string;
|
|
3822
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetSessionClusterResponse>;
|
|
3823
|
+
/**
|
|
3824
|
+
* 查询SessionCluster集群
|
|
3825
|
+
*
|
|
3826
|
+
* @param request - GetSessionClusterRequest
|
|
3827
|
+
* @returns GetSessionClusterResponse
|
|
3828
|
+
*/
|
|
3829
|
+
getSessionCluster(workspaceId: string, sessionClusterId: string, request: GetSessionClusterRequest): Promise<GetSessionClusterResponse>;
|
|
3537
3830
|
/**
|
|
3538
3831
|
* Queries the status of an SQL query task.
|
|
3539
3832
|
*
|
|
@@ -3589,7 +3882,7 @@ export default class Client extends OpenApi {
|
|
|
3589
3882
|
*/
|
|
3590
3883
|
listJobRuns(workspaceId: string, request: ListJobRunsRequest): Promise<ListJobRunsResponse>;
|
|
3591
3884
|
/**
|
|
3592
|
-
*
|
|
3885
|
+
* Obtains the log content.
|
|
3593
3886
|
*
|
|
3594
3887
|
* @param request - ListLogContentsRequest
|
|
3595
3888
|
* @param headers - map
|
|
@@ -3600,7 +3893,7 @@ export default class Client extends OpenApi {
|
|
|
3600
3893
|
[key: string]: string;
|
|
3601
3894
|
}, runtime: $Util.RuntimeOptions): Promise<ListLogContentsResponse>;
|
|
3602
3895
|
/**
|
|
3603
|
-
*
|
|
3896
|
+
* Obtains the log content.
|
|
3604
3897
|
*
|
|
3605
3898
|
* @param request - ListLogContentsRequest
|
|
3606
3899
|
* @returns ListLogContentsResponse
|
|
@@ -3625,7 +3918,7 @@ export default class Client extends OpenApi {
|
|
|
3625
3918
|
*/
|
|
3626
3919
|
listReleaseVersions(request: ListReleaseVersionsRequest): Promise<ListReleaseVersionsResponse>;
|
|
3627
3920
|
/**
|
|
3628
|
-
* Queries
|
|
3921
|
+
* Queries the list of sessions.
|
|
3629
3922
|
*
|
|
3630
3923
|
* @param request - ListSessionClustersRequest
|
|
3631
3924
|
* @param headers - map
|
|
@@ -3636,14 +3929,14 @@ export default class Client extends OpenApi {
|
|
|
3636
3929
|
[key: string]: string;
|
|
3637
3930
|
}, runtime: $Util.RuntimeOptions): Promise<ListSessionClustersResponse>;
|
|
3638
3931
|
/**
|
|
3639
|
-
* Queries
|
|
3932
|
+
* Queries the list of sessions.
|
|
3640
3933
|
*
|
|
3641
3934
|
* @param request - ListSessionClustersRequest
|
|
3642
3935
|
* @returns ListSessionClustersResponse
|
|
3643
3936
|
*/
|
|
3644
3937
|
listSessionClusters(workspaceId: string, request: ListSessionClustersRequest): Promise<ListSessionClustersResponse>;
|
|
3645
3938
|
/**
|
|
3646
|
-
*
|
|
3939
|
+
* Queries the list of queues in a Spark workspace.
|
|
3647
3940
|
*
|
|
3648
3941
|
* @param request - ListWorkspaceQueuesRequest
|
|
3649
3942
|
* @param headers - map
|
|
@@ -3654,7 +3947,7 @@ export default class Client extends OpenApi {
|
|
|
3654
3947
|
[key: string]: string;
|
|
3655
3948
|
}, runtime: $Util.RuntimeOptions): Promise<ListWorkspaceQueuesResponse>;
|
|
3656
3949
|
/**
|
|
3657
|
-
*
|
|
3950
|
+
* Queries the list of queues in a Spark workspace.
|
|
3658
3951
|
*
|
|
3659
3952
|
* @param request - ListWorkspaceQueuesRequest
|
|
3660
3953
|
* @returns ListWorkspaceQueuesResponse
|