@alicloud/emr-serverless-spark20230808 1.6.0 → 1.8.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 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 compute ID. You can create an SQL compute in the workspace created in EMR Serverless Spark.
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
@@ -890,15 +946,96 @@ export declare class GetSqlStatementResponse extends $tea.Model {
890
946
  [key: string]: any;
891
947
  });
892
948
  }
949
+ export declare class GetTemplateRequest extends $tea.Model {
950
+ /**
951
+ * @example
952
+ * cn-hangzhou
953
+ */
954
+ regionId?: string;
955
+ /**
956
+ * @example
957
+ * TASK
958
+ */
959
+ templateType?: string;
960
+ static names(): {
961
+ [key: string]: string;
962
+ };
963
+ static types(): {
964
+ [key: string]: any;
965
+ };
966
+ constructor(map?: {
967
+ [key: string]: any;
968
+ });
969
+ }
970
+ export declare class GetTemplateResponseBody extends $tea.Model {
971
+ data?: Template;
972
+ /**
973
+ * @example
974
+ * 040003
975
+ */
976
+ errorCode?: string;
977
+ /**
978
+ * @example
979
+ * InvalidUser.NotFound
980
+ */
981
+ errorMessage?: string;
982
+ /**
983
+ * @remarks
984
+ * Id of the request
985
+ *
986
+ * @example
987
+ * 200
988
+ */
989
+ httpStatusCode?: string;
990
+ /**
991
+ * @example
992
+ * 484D9DDA-300D-525E-AF7A-0CCCA5C64A7A
993
+ */
994
+ requestId?: string;
995
+ /**
996
+ * @example
997
+ * True
998
+ */
999
+ success?: boolean;
1000
+ static names(): {
1001
+ [key: string]: string;
1002
+ };
1003
+ static types(): {
1004
+ [key: string]: any;
1005
+ };
1006
+ constructor(map?: {
1007
+ [key: string]: any;
1008
+ });
1009
+ }
1010
+ export declare class GetTemplateResponse extends $tea.Model {
1011
+ headers?: {
1012
+ [key: string]: string;
1013
+ };
1014
+ statusCode?: number;
1015
+ body?: GetTemplateResponseBody;
1016
+ static names(): {
1017
+ [key: string]: string;
1018
+ };
1019
+ static types(): {
1020
+ [key: string]: any;
1021
+ };
1022
+ constructor(map?: {
1023
+ [key: string]: any;
1024
+ });
1025
+ }
893
1026
  export declare class GrantRoleToUsersRequest extends $tea.Model {
894
1027
  /**
895
1028
  * @remarks
896
- * The Alibaba Cloud Resource Name (ARN) of the role.
1029
+ * The Alibaba Cloud Resource Name (ARN) of the RAM role.
897
1030
  *
898
1031
  * @example
899
1032
  * acs:emr::w-975bcfda9625****:role/Owner
900
1033
  */
901
1034
  roleArn?: string;
1035
+ /**
1036
+ * @remarks
1037
+ * The user ARNs.
1038
+ */
902
1039
  userArns?: string[];
903
1040
  /**
904
1041
  * @remarks
@@ -2146,6 +2283,25 @@ export declare class SqlOutputSchema extends $tea.Model {
2146
2283
  [key: string]: any;
2147
2284
  });
2148
2285
  }
2286
+ export declare class TaskCredential extends $tea.Model {
2287
+ accessId?: string;
2288
+ accessUrl?: string;
2289
+ expire?: number;
2290
+ host?: string;
2291
+ path?: string;
2292
+ policy?: string;
2293
+ securityToken?: string;
2294
+ signature?: string;
2295
+ static names(): {
2296
+ [key: string]: string;
2297
+ };
2298
+ static types(): {
2299
+ [key: string]: any;
2300
+ };
2301
+ constructor(map?: {
2302
+ [key: string]: any;
2303
+ });
2304
+ }
2149
2305
  export declare class CreateSqlStatementResponseBodyData extends $tea.Model {
2150
2306
  /**
2151
2307
  * @remarks
@@ -2235,6 +2391,7 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
2235
2391
  * 1684119314000
2236
2392
  */
2237
2393
  endTime?: number;
2394
+ environmentId?: string;
2238
2395
  /**
2239
2396
  * @remarks
2240
2397
  * The timeout period of the job.
@@ -2346,6 +2503,198 @@ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
2346
2503
  [key: string]: any;
2347
2504
  });
2348
2505
  }
2506
+ export declare class GetSessionClusterResponseBodySessionClusterApplicationConfigs extends $tea.Model {
2507
+ /**
2508
+ * @example
2509
+ * spark-defaults.conf
2510
+ */
2511
+ configFileName?: string;
2512
+ /**
2513
+ * @example
2514
+ * spark.app.name
2515
+ */
2516
+ configItemKey?: string;
2517
+ /**
2518
+ * @example
2519
+ * test
2520
+ */
2521
+ configItemValue?: string;
2522
+ static names(): {
2523
+ [key: string]: string;
2524
+ };
2525
+ static types(): {
2526
+ [key: string]: any;
2527
+ };
2528
+ constructor(map?: {
2529
+ [key: string]: any;
2530
+ });
2531
+ }
2532
+ export declare class GetSessionClusterResponseBodySessionClusterAutoStartConfiguration extends $tea.Model {
2533
+ /**
2534
+ * @example
2535
+ * false
2536
+ */
2537
+ enable?: boolean;
2538
+ static names(): {
2539
+ [key: string]: string;
2540
+ };
2541
+ static types(): {
2542
+ [key: string]: any;
2543
+ };
2544
+ constructor(map?: {
2545
+ [key: string]: any;
2546
+ });
2547
+ }
2548
+ export declare class GetSessionClusterResponseBodySessionClusterAutoStopConfiguration extends $tea.Model {
2549
+ /**
2550
+ * @example
2551
+ * false
2552
+ */
2553
+ enable?: boolean;
2554
+ /**
2555
+ * @example
2556
+ * 60
2557
+ */
2558
+ idleTimeoutMinutes?: number;
2559
+ static names(): {
2560
+ [key: string]: string;
2561
+ };
2562
+ static types(): {
2563
+ [key: string]: any;
2564
+ };
2565
+ constructor(map?: {
2566
+ [key: string]: any;
2567
+ });
2568
+ }
2569
+ export declare class GetSessionClusterResponseBodySessionClusterStateChangeReason extends $tea.Model {
2570
+ /**
2571
+ * @example
2572
+ * 1000000
2573
+ */
2574
+ code?: string;
2575
+ /**
2576
+ * @example
2577
+ * ok
2578
+ */
2579
+ message?: string;
2580
+ static names(): {
2581
+ [key: string]: string;
2582
+ };
2583
+ static types(): {
2584
+ [key: string]: any;
2585
+ };
2586
+ constructor(map?: {
2587
+ [key: string]: any;
2588
+ });
2589
+ }
2590
+ export declare class GetSessionClusterResponseBodySessionCluster extends $tea.Model {
2591
+ applicationConfigs?: GetSessionClusterResponseBodySessionClusterApplicationConfigs[];
2592
+ autoStartConfiguration?: GetSessionClusterResponseBodySessionClusterAutoStartConfiguration;
2593
+ autoStopConfiguration?: GetSessionClusterResponseBodySessionClusterAutoStopConfiguration;
2594
+ /**
2595
+ * @example
2596
+ * esr-2.2(Java Runtime)
2597
+ */
2598
+ displayReleaseVersion?: string;
2599
+ /**
2600
+ * @example
2601
+ * your.domain.com
2602
+ */
2603
+ domain?: string;
2604
+ domainInner?: string;
2605
+ /**
2606
+ * @example
2607
+ * TSK-xxxxxxxx
2608
+ */
2609
+ draftId?: string;
2610
+ /**
2611
+ * @example
2612
+ * env-cpv569tlhtgndjl86t40
2613
+ */
2614
+ envId?: string;
2615
+ /**
2616
+ * @example
2617
+ * false
2618
+ */
2619
+ fusion?: boolean;
2620
+ gmtCreate?: number;
2621
+ /**
2622
+ * @example
2623
+ * SQL
2624
+ */
2625
+ kind?: string;
2626
+ /**
2627
+ * @example
2628
+ * test
2629
+ */
2630
+ name?: string;
2631
+ /**
2632
+ * @remarks
2633
+ * 作业实例名称。
2634
+ *
2635
+ * @example
2636
+ * jobName
2637
+ */
2638
+ queueName?: string;
2639
+ /**
2640
+ * @example
2641
+ * esr-2.2(Java Runtime)
2642
+ */
2643
+ releaseVersion?: string;
2644
+ /**
2645
+ * @remarks
2646
+ * 交互式作业会话id。
2647
+ *
2648
+ * @example
2649
+ * 1234abcd-12ab-34cd-56ef-1234567890ab
2650
+ */
2651
+ sessionClusterId?: string;
2652
+ startTime?: number;
2653
+ /**
2654
+ * @remarks
2655
+ * 作业状态。
2656
+ *
2657
+ * @example
2658
+ * Running
2659
+ */
2660
+ state?: string;
2661
+ stateChangeReason?: GetSessionClusterResponseBodySessionClusterStateChangeReason;
2662
+ /**
2663
+ * @remarks
2664
+ * 任务实例ID。
2665
+ *
2666
+ * @example
2667
+ * jr-231231
2668
+ */
2669
+ userId?: string;
2670
+ /**
2671
+ * @example
2672
+ * user1
2673
+ */
2674
+ userName?: string;
2675
+ /**
2676
+ * @example
2677
+ * https://spark-ui/link
2678
+ */
2679
+ webUI?: string;
2680
+ /**
2681
+ * @remarks
2682
+ * 工作空间id。
2683
+ *
2684
+ * @example
2685
+ * w-1234abcd
2686
+ */
2687
+ workspaceId?: string;
2688
+ static names(): {
2689
+ [key: string]: string;
2690
+ };
2691
+ static types(): {
2692
+ [key: string]: any;
2693
+ };
2694
+ constructor(map?: {
2695
+ [key: string]: any;
2696
+ });
2697
+ }
2349
2698
  export declare class GetSqlStatementResponseBodyDataSqlOutputs extends $tea.Model {
2350
2699
  /**
2351
2700
  * @remarks
@@ -2822,7 +3171,7 @@ export declare class ListSessionClustersResponseBodySessionClustersApplicationCo
2822
3171
  configFileName?: string;
2823
3172
  /**
2824
3173
  * @remarks
2825
- * The key of the configuration item.
3174
+ * The key of the configuration.
2826
3175
  *
2827
3176
  * @example
2828
3177
  * spark.app.name
@@ -2830,7 +3179,7 @@ export declare class ListSessionClustersResponseBodySessionClustersApplicationCo
2830
3179
  configItemKey?: string;
2831
3180
  /**
2832
3181
  * @remarks
2833
- * The value of the configuration item.
3182
+ * The configuration value.
2834
3183
  *
2835
3184
  * @example
2836
3185
  * test_application
@@ -2941,6 +3290,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
2941
3290
  */
2942
3291
  displayReleaseVersion?: string;
2943
3292
  domain?: string;
3293
+ domainInner?: string;
2944
3294
  /**
2945
3295
  * @remarks
2946
3296
  * The ID of the job that is associated with the session.
@@ -2957,6 +3307,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
2957
3307
  * false
2958
3308
  */
2959
3309
  fusion?: boolean;
3310
+ gmtCreate?: number;
2960
3311
  /**
2961
3312
  * @remarks
2962
3313
  * The session type.
@@ -3003,6 +3354,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
3003
3354
  * sc-123131
3004
3355
  */
3005
3356
  sessionClusterId?: string;
3357
+ startTime?: number;
3006
3358
  /**
3007
3359
  * @remarks
3008
3360
  * The status of the session.
@@ -3026,7 +3378,7 @@ export declare class ListSessionClustersResponseBodySessionClusters extends $tea
3026
3378
  userId?: string;
3027
3379
  /**
3028
3380
  * @remarks
3029
- * The name of the user.
3381
+ * The username.
3030
3382
  *
3031
3383
  * @example
3032
3384
  * test_user
@@ -3534,6 +3886,24 @@ export default class Client extends OpenApi {
3534
3886
  * @returns GetJobRunResponse
3535
3887
  */
3536
3888
  getJobRun(workspaceId: string, jobRunId: string, request: GetJobRunRequest): Promise<GetJobRunResponse>;
3889
+ /**
3890
+ * 查询SessionCluster集群
3891
+ *
3892
+ * @param request - GetSessionClusterRequest
3893
+ * @param headers - map
3894
+ * @param runtime - runtime options for this request RuntimeOptions
3895
+ * @returns GetSessionClusterResponse
3896
+ */
3897
+ getSessionClusterWithOptions(workspaceId: string, sessionClusterId: string, request: GetSessionClusterRequest, headers: {
3898
+ [key: string]: string;
3899
+ }, runtime: $Util.RuntimeOptions): Promise<GetSessionClusterResponse>;
3900
+ /**
3901
+ * 查询SessionCluster集群
3902
+ *
3903
+ * @param request - GetSessionClusterRequest
3904
+ * @returns GetSessionClusterResponse
3905
+ */
3906
+ getSessionCluster(workspaceId: string, sessionClusterId: string, request: GetSessionClusterRequest): Promise<GetSessionClusterResponse>;
3537
3907
  /**
3538
3908
  * Queries the status of an SQL query task.
3539
3909
  *
@@ -3552,6 +3922,24 @@ export default class Client extends OpenApi {
3552
3922
  * @returns GetSqlStatementResponse
3553
3923
  */
3554
3924
  getSqlStatement(workspaceId: string, statementId: string, request: GetSqlStatementRequest): Promise<GetSqlStatementResponse>;
3925
+ /**
3926
+ * 获取任务模板
3927
+ *
3928
+ * @param request - GetTemplateRequest
3929
+ * @param headers - map
3930
+ * @param runtime - runtime options for this request RuntimeOptions
3931
+ * @returns GetTemplateResponse
3932
+ */
3933
+ getTemplateWithOptions(workspaceBizId: string, request: GetTemplateRequest, headers: {
3934
+ [key: string]: string;
3935
+ }, runtime: $Util.RuntimeOptions): Promise<GetTemplateResponse>;
3936
+ /**
3937
+ * 获取任务模板
3938
+ *
3939
+ * @param request - GetTemplateRequest
3940
+ * @returns GetTemplateResponse
3941
+ */
3942
+ getTemplate(workspaceBizId: string, request: GetTemplateRequest): Promise<GetTemplateResponse>;
3555
3943
  /**
3556
3944
  * Assigns a specified role to users.
3557
3945
  *
@@ -3589,7 +3977,7 @@ export default class Client extends OpenApi {
3589
3977
  */
3590
3978
  listJobRuns(workspaceId: string, request: ListJobRunsRequest): Promise<ListJobRunsResponse>;
3591
3979
  /**
3592
- * 获取日志内容
3980
+ * Obtains the log content.
3593
3981
  *
3594
3982
  * @param request - ListLogContentsRequest
3595
3983
  * @param headers - map
@@ -3600,7 +3988,7 @@ export default class Client extends OpenApi {
3600
3988
  [key: string]: string;
3601
3989
  }, runtime: $Util.RuntimeOptions): Promise<ListLogContentsResponse>;
3602
3990
  /**
3603
- * 获取日志内容
3991
+ * Obtains the log content.
3604
3992
  *
3605
3993
  * @param request - ListLogContentsRequest
3606
3994
  * @returns ListLogContentsResponse
@@ -3625,7 +4013,7 @@ export default class Client extends OpenApi {
3625
4013
  */
3626
4014
  listReleaseVersions(request: ListReleaseVersionsRequest): Promise<ListReleaseVersionsResponse>;
3627
4015
  /**
3628
- * Queries a list of sessions.
4016
+ * Queries the list of sessions.
3629
4017
  *
3630
4018
  * @param request - ListSessionClustersRequest
3631
4019
  * @param headers - map
@@ -3636,14 +4024,14 @@ export default class Client extends OpenApi {
3636
4024
  [key: string]: string;
3637
4025
  }, runtime: $Util.RuntimeOptions): Promise<ListSessionClustersResponse>;
3638
4026
  /**
3639
- * Queries a list of sessions.
4027
+ * Queries the list of sessions.
3640
4028
  *
3641
4029
  * @param request - ListSessionClustersRequest
3642
4030
  * @returns ListSessionClustersResponse
3643
4031
  */
3644
4032
  listSessionClusters(workspaceId: string, request: ListSessionClustersRequest): Promise<ListSessionClustersResponse>;
3645
4033
  /**
3646
- * 查看工作空间队列列表
4034
+ * Queries the list of queues in a Spark workspace.
3647
4035
  *
3648
4036
  * @param request - ListWorkspaceQueuesRequest
3649
4037
  * @param headers - map
@@ -3654,7 +4042,7 @@ export default class Client extends OpenApi {
3654
4042
  [key: string]: string;
3655
4043
  }, runtime: $Util.RuntimeOptions): Promise<ListWorkspaceQueuesResponse>;
3656
4044
  /**
3657
- * 查看工作空间队列列表
4045
+ * Queries the list of queues in a Spark workspace.
3658
4046
  *
3659
4047
  * @param request - ListWorkspaceQueuesRequest
3660
4048
  * @returns ListWorkspaceQueuesResponse