@alicloud/emr-serverless-spark20230808 1.0.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.
@@ -0,0 +1,737 @@
1
+ /**
2
+ *
3
+ */
4
+ import * as $Util from '@alicloud/tea-util';
5
+ import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
+ import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class Artifact extends $tea.Model {
8
+ bizId?: string;
9
+ creator?: number;
10
+ credential?: Credential;
11
+ gmtCreated?: string;
12
+ gmtModified?: string;
13
+ location?: string;
14
+ modifier?: number;
15
+ name?: string;
16
+ static names(): {
17
+ [key: string]: string;
18
+ };
19
+ static types(): {
20
+ [key: string]: any;
21
+ };
22
+ constructor(map?: {
23
+ [key: string]: any;
24
+ });
25
+ }
26
+ export declare class Category extends $tea.Model {
27
+ bizId?: string;
28
+ creator?: number;
29
+ gmtCreated?: string;
30
+ gmtModified?: string;
31
+ modifier?: number;
32
+ name?: string;
33
+ parentBizId?: string;
34
+ type?: string;
35
+ static names(): {
36
+ [key: string]: string;
37
+ };
38
+ static types(): {
39
+ [key: string]: any;
40
+ };
41
+ constructor(map?: {
42
+ [key: string]: any;
43
+ });
44
+ }
45
+ export declare class Configuration extends $tea.Model {
46
+ configFileName?: string;
47
+ configItemKey?: string;
48
+ configItemValue?: string;
49
+ static names(): {
50
+ [key: string]: string;
51
+ };
52
+ static types(): {
53
+ [key: string]: any;
54
+ };
55
+ constructor(map?: {
56
+ [key: string]: any;
57
+ });
58
+ }
59
+ export declare class Credential extends $tea.Model {
60
+ accessId?: string;
61
+ dir?: string;
62
+ expire?: string;
63
+ host?: string;
64
+ policy?: string;
65
+ securityToken?: string;
66
+ signature?: string;
67
+ static names(): {
68
+ [key: string]: string;
69
+ };
70
+ static types(): {
71
+ [key: string]: any;
72
+ };
73
+ constructor(map?: {
74
+ [key: string]: any;
75
+ });
76
+ }
77
+ export declare class JobDriver extends $tea.Model {
78
+ sparkSubmit?: JobDriverSparkSubmit;
79
+ static names(): {
80
+ [key: string]: string;
81
+ };
82
+ static types(): {
83
+ [key: string]: any;
84
+ };
85
+ constructor(map?: {
86
+ [key: string]: any;
87
+ });
88
+ }
89
+ export declare class PrincipalAction extends $tea.Model {
90
+ actionArn?: string;
91
+ principalArn?: string;
92
+ static names(): {
93
+ [key: string]: string;
94
+ };
95
+ static types(): {
96
+ [key: string]: any;
97
+ };
98
+ constructor(map?: {
99
+ [key: string]: any;
100
+ });
101
+ }
102
+ export declare class ReleaseVersionImage extends $tea.Model {
103
+ cpuArchitecture?: string;
104
+ imageId?: string;
105
+ runtimeEngineType?: string;
106
+ static names(): {
107
+ [key: string]: string;
108
+ };
109
+ static types(): {
110
+ [key: string]: any;
111
+ };
112
+ constructor(map?: {
113
+ [key: string]: any;
114
+ });
115
+ }
116
+ export declare class RunLog extends $tea.Model {
117
+ driverStdError?: string;
118
+ driverStdOut?: string;
119
+ static names(): {
120
+ [key: string]: string;
121
+ };
122
+ static types(): {
123
+ [key: string]: any;
124
+ };
125
+ constructor(map?: {
126
+ [key: string]: any;
127
+ });
128
+ }
129
+ export declare class SparkConf extends $tea.Model {
130
+ key?: string;
131
+ value?: string;
132
+ static names(): {
133
+ [key: string]: string;
134
+ };
135
+ static types(): {
136
+ [key: string]: any;
137
+ };
138
+ constructor(map?: {
139
+ [key: string]: any;
140
+ });
141
+ }
142
+ export declare class SqlOutput extends $tea.Model {
143
+ rows?: SqlOutputRows[];
144
+ schema?: SqlOutputSchema;
145
+ static names(): {
146
+ [key: string]: string;
147
+ };
148
+ static types(): {
149
+ [key: string]: any;
150
+ };
151
+ constructor(map?: {
152
+ [key: string]: any;
153
+ });
154
+ }
155
+ export declare class Tag extends $tea.Model {
156
+ key?: string;
157
+ value?: string;
158
+ static names(): {
159
+ [key: string]: string;
160
+ };
161
+ static types(): {
162
+ [key: string]: any;
163
+ };
164
+ constructor(map?: {
165
+ [key: string]: any;
166
+ });
167
+ }
168
+ export declare class Task extends $tea.Model {
169
+ artifactUrl?: string;
170
+ bizId?: string;
171
+ categoryBizId?: string;
172
+ content?: string;
173
+ creator?: number;
174
+ defaultCatalogId?: string;
175
+ defaultDatabase?: string;
176
+ defaultResourceQueueId?: string;
177
+ defaultSqlComputeId?: string;
178
+ extraArtifactIds?: string[];
179
+ gmtCreated?: string;
180
+ gmtModified?: string;
181
+ hasChanged?: boolean;
182
+ hasCommited?: boolean;
183
+ lastRunResourceQueueId?: string;
184
+ modifier?: number;
185
+ name?: string;
186
+ pyFiles?: string[];
187
+ sparkArgs?: string;
188
+ sparkConf?: SparkConf[];
189
+ sparkDriverCores?: number;
190
+ sparkDriverMemory?: number;
191
+ sparkEntrypoint?: string;
192
+ sparkExecutorCores?: number;
193
+ sparkExecutorMemory?: number;
194
+ sparkLogLevel?: string;
195
+ sparkLogPath?: string;
196
+ sparkVersion?: string;
197
+ tags?: {
198
+ [key: string]: string;
199
+ };
200
+ type?: string;
201
+ static names(): {
202
+ [key: string]: string;
203
+ };
204
+ static types(): {
205
+ [key: string]: any;
206
+ };
207
+ constructor(map?: {
208
+ [key: string]: any;
209
+ });
210
+ }
211
+ export declare class TaskInstance extends $tea.Model {
212
+ bizId?: string;
213
+ creator?: number;
214
+ fenixRunId?: string;
215
+ gmtCreated?: string;
216
+ taskBizId?: string;
217
+ taskInfo?: Task;
218
+ taskStatus?: string;
219
+ workspaceBizId?: string;
220
+ static names(): {
221
+ [key: string]: string;
222
+ };
223
+ static types(): {
224
+ [key: string]: any;
225
+ };
226
+ constructor(map?: {
227
+ [key: string]: any;
228
+ });
229
+ }
230
+ export declare class TaskSnapshot extends $tea.Model {
231
+ bizId?: string;
232
+ commiter?: number;
233
+ gmtCreated?: string;
234
+ item?: Task;
235
+ message?: string;
236
+ taskBizId?: string;
237
+ version?: string;
238
+ static names(): {
239
+ [key: string]: string;
240
+ };
241
+ static types(): {
242
+ [key: string]: any;
243
+ };
244
+ constructor(map?: {
245
+ [key: string]: any;
246
+ });
247
+ }
248
+ export declare class Template extends $tea.Model {
249
+ creator?: number;
250
+ gmtCreated?: string;
251
+ gmtModified?: string;
252
+ modifier?: number;
253
+ sparkConf?: SparkConf[];
254
+ sparkDriverCores?: number;
255
+ sparkDriverMemory?: number;
256
+ sparkExecutorCores?: number;
257
+ sparkExecutorMemory?: number;
258
+ sparkLogLevel?: string;
259
+ sparkLogPath?: string;
260
+ sparkVersion?: string;
261
+ templateType?: string;
262
+ static names(): {
263
+ [key: string]: string;
264
+ };
265
+ static types(): {
266
+ [key: string]: any;
267
+ };
268
+ constructor(map?: {
269
+ [key: string]: any;
270
+ });
271
+ }
272
+ export declare class TimeRange extends $tea.Model {
273
+ endTime?: number;
274
+ startTime?: number;
275
+ static names(): {
276
+ [key: string]: string;
277
+ };
278
+ static types(): {
279
+ [key: string]: any;
280
+ };
281
+ constructor(map?: {
282
+ [key: string]: any;
283
+ });
284
+ }
285
+ export declare class CancelJobRunRequest extends $tea.Model {
286
+ regionId?: string;
287
+ static names(): {
288
+ [key: string]: string;
289
+ };
290
+ static types(): {
291
+ [key: string]: any;
292
+ };
293
+ constructor(map?: {
294
+ [key: string]: any;
295
+ });
296
+ }
297
+ export declare class CancelJobRunResponseBody extends $tea.Model {
298
+ jobRunId?: string;
299
+ requestId?: string;
300
+ static names(): {
301
+ [key: string]: string;
302
+ };
303
+ static types(): {
304
+ [key: string]: any;
305
+ };
306
+ constructor(map?: {
307
+ [key: string]: any;
308
+ });
309
+ }
310
+ export declare class CancelJobRunResponse extends $tea.Model {
311
+ headers?: {
312
+ [key: string]: string;
313
+ };
314
+ statusCode?: number;
315
+ body?: CancelJobRunResponseBody;
316
+ static names(): {
317
+ [key: string]: string;
318
+ };
319
+ static types(): {
320
+ [key: string]: any;
321
+ };
322
+ constructor(map?: {
323
+ [key: string]: any;
324
+ });
325
+ }
326
+ export declare class GetJobRunRequest extends $tea.Model {
327
+ regionId?: string;
328
+ static names(): {
329
+ [key: string]: string;
330
+ };
331
+ static types(): {
332
+ [key: string]: any;
333
+ };
334
+ constructor(map?: {
335
+ [key: string]: any;
336
+ });
337
+ }
338
+ export declare class GetJobRunResponseBody extends $tea.Model {
339
+ jobRun?: GetJobRunResponseBodyJobRun;
340
+ requestId?: string;
341
+ static names(): {
342
+ [key: string]: string;
343
+ };
344
+ static types(): {
345
+ [key: string]: any;
346
+ };
347
+ constructor(map?: {
348
+ [key: string]: any;
349
+ });
350
+ }
351
+ export declare class GetJobRunResponse extends $tea.Model {
352
+ headers?: {
353
+ [key: string]: string;
354
+ };
355
+ statusCode?: number;
356
+ body?: GetJobRunResponseBody;
357
+ static names(): {
358
+ [key: string]: string;
359
+ };
360
+ static types(): {
361
+ [key: string]: any;
362
+ };
363
+ constructor(map?: {
364
+ [key: string]: any;
365
+ });
366
+ }
367
+ export declare class ListJobRunsRequest extends $tea.Model {
368
+ creator?: string;
369
+ endTime?: ListJobRunsRequestEndTime;
370
+ jobRunId?: string;
371
+ maxResults?: number;
372
+ name?: string;
373
+ nextToken?: string;
374
+ regionId?: string;
375
+ resourceQueueId?: string;
376
+ startTime?: ListJobRunsRequestStartTime;
377
+ states?: string[];
378
+ tags?: ListJobRunsRequestTags[];
379
+ static names(): {
380
+ [key: string]: string;
381
+ };
382
+ static types(): {
383
+ [key: string]: any;
384
+ };
385
+ constructor(map?: {
386
+ [key: string]: any;
387
+ });
388
+ }
389
+ export declare class ListJobRunsShrinkRequest extends $tea.Model {
390
+ creator?: string;
391
+ endTimeShrink?: string;
392
+ jobRunId?: string;
393
+ maxResults?: number;
394
+ name?: string;
395
+ nextToken?: string;
396
+ regionId?: string;
397
+ resourceQueueId?: string;
398
+ startTimeShrink?: string;
399
+ statesShrink?: string;
400
+ tagsShrink?: string;
401
+ static names(): {
402
+ [key: string]: string;
403
+ };
404
+ static types(): {
405
+ [key: string]: any;
406
+ };
407
+ constructor(map?: {
408
+ [key: string]: any;
409
+ });
410
+ }
411
+ export declare class ListJobRunsResponseBody extends $tea.Model {
412
+ jobRuns?: ListJobRunsResponseBodyJobRuns[];
413
+ maxResults?: number;
414
+ nextToken?: string;
415
+ requestId?: string;
416
+ totalCount?: number;
417
+ static names(): {
418
+ [key: string]: string;
419
+ };
420
+ static types(): {
421
+ [key: string]: any;
422
+ };
423
+ constructor(map?: {
424
+ [key: string]: any;
425
+ });
426
+ }
427
+ export declare class ListJobRunsResponse extends $tea.Model {
428
+ headers?: {
429
+ [key: string]: string;
430
+ };
431
+ statusCode?: number;
432
+ body?: ListJobRunsResponseBody;
433
+ static names(): {
434
+ [key: string]: string;
435
+ };
436
+ static types(): {
437
+ [key: string]: any;
438
+ };
439
+ constructor(map?: {
440
+ [key: string]: any;
441
+ });
442
+ }
443
+ export declare class StartJobRunRequest extends $tea.Model {
444
+ clientToken?: string;
445
+ codeType?: string;
446
+ configurationOverrides?: StartJobRunRequestConfigurationOverrides;
447
+ executionTimeoutSeconds?: number;
448
+ jobDriver?: JobDriver;
449
+ jobId?: string;
450
+ name?: string;
451
+ releaseVersion?: string;
452
+ resourceQueueId?: string;
453
+ tags?: Tag[];
454
+ regionId?: string;
455
+ static names(): {
456
+ [key: string]: string;
457
+ };
458
+ static types(): {
459
+ [key: string]: any;
460
+ };
461
+ constructor(map?: {
462
+ [key: string]: any;
463
+ });
464
+ }
465
+ export declare class StartJobRunResponseBody extends $tea.Model {
466
+ jobRunId?: string;
467
+ requestId?: string;
468
+ static names(): {
469
+ [key: string]: string;
470
+ };
471
+ static types(): {
472
+ [key: string]: any;
473
+ };
474
+ constructor(map?: {
475
+ [key: string]: any;
476
+ });
477
+ }
478
+ export declare class StartJobRunResponse extends $tea.Model {
479
+ headers?: {
480
+ [key: string]: string;
481
+ };
482
+ statusCode?: number;
483
+ body?: StartJobRunResponseBody;
484
+ static names(): {
485
+ [key: string]: string;
486
+ };
487
+ static types(): {
488
+ [key: string]: any;
489
+ };
490
+ constructor(map?: {
491
+ [key: string]: any;
492
+ });
493
+ }
494
+ export declare class JobDriverSparkSubmit extends $tea.Model {
495
+ entryPoint?: string;
496
+ entryPointArguments?: string[];
497
+ sparkSubmitParameters?: string;
498
+ static names(): {
499
+ [key: string]: string;
500
+ };
501
+ static types(): {
502
+ [key: string]: any;
503
+ };
504
+ constructor(map?: {
505
+ [key: string]: any;
506
+ });
507
+ }
508
+ export declare class SqlOutputRows extends $tea.Model {
509
+ values?: string[];
510
+ static names(): {
511
+ [key: string]: string;
512
+ };
513
+ static types(): {
514
+ [key: string]: any;
515
+ };
516
+ constructor(map?: {
517
+ [key: string]: any;
518
+ });
519
+ }
520
+ export declare class SqlOutputSchemaFields extends $tea.Model {
521
+ name?: string;
522
+ nullable?: boolean;
523
+ type?: string;
524
+ static names(): {
525
+ [key: string]: string;
526
+ };
527
+ static types(): {
528
+ [key: string]: any;
529
+ };
530
+ constructor(map?: {
531
+ [key: string]: any;
532
+ });
533
+ }
534
+ export declare class SqlOutputSchema extends $tea.Model {
535
+ fields?: SqlOutputSchemaFields[];
536
+ static names(): {
537
+ [key: string]: string;
538
+ };
539
+ static types(): {
540
+ [key: string]: any;
541
+ };
542
+ constructor(map?: {
543
+ [key: string]: any;
544
+ });
545
+ }
546
+ export declare class GetJobRunResponseBodyJobRunConfigurationOverrides extends $tea.Model {
547
+ configurations?: Configuration[];
548
+ static names(): {
549
+ [key: string]: string;
550
+ };
551
+ static types(): {
552
+ [key: string]: any;
553
+ };
554
+ constructor(map?: {
555
+ [key: string]: any;
556
+ });
557
+ }
558
+ export declare class GetJobRunResponseBodyJobRunStateChangeReason extends $tea.Model {
559
+ code?: string;
560
+ message?: string;
561
+ static names(): {
562
+ [key: string]: string;
563
+ };
564
+ static types(): {
565
+ [key: string]: any;
566
+ };
567
+ constructor(map?: {
568
+ [key: string]: any;
569
+ });
570
+ }
571
+ export declare class GetJobRunResponseBodyJobRun extends $tea.Model {
572
+ codeType?: string;
573
+ configurationOverrides?: GetJobRunResponseBodyJobRunConfigurationOverrides;
574
+ endTime?: number;
575
+ executionTimeoutSeconds?: number;
576
+ jobDriver?: JobDriver;
577
+ jobRunId?: string;
578
+ log?: RunLog;
579
+ name?: string;
580
+ releaseVersion?: string;
581
+ resourceOwnerId?: string;
582
+ resourceQueueId?: string;
583
+ state?: string;
584
+ stateChangeReason?: GetJobRunResponseBodyJobRunStateChangeReason;
585
+ submitTime?: number;
586
+ tags?: Tag[];
587
+ webUI?: string;
588
+ workspaceId?: string;
589
+ static names(): {
590
+ [key: string]: string;
591
+ };
592
+ static types(): {
593
+ [key: string]: any;
594
+ };
595
+ constructor(map?: {
596
+ [key: string]: any;
597
+ });
598
+ }
599
+ export declare class ListJobRunsRequestEndTime extends $tea.Model {
600
+ endTime?: number;
601
+ startTime?: number;
602
+ static names(): {
603
+ [key: string]: string;
604
+ };
605
+ static types(): {
606
+ [key: string]: any;
607
+ };
608
+ constructor(map?: {
609
+ [key: string]: any;
610
+ });
611
+ }
612
+ export declare class ListJobRunsRequestStartTime extends $tea.Model {
613
+ endTime?: number;
614
+ startTime?: number;
615
+ static names(): {
616
+ [key: string]: string;
617
+ };
618
+ static types(): {
619
+ [key: string]: any;
620
+ };
621
+ constructor(map?: {
622
+ [key: string]: any;
623
+ });
624
+ }
625
+ export declare class ListJobRunsRequestTags extends $tea.Model {
626
+ key?: string;
627
+ value?: string;
628
+ static names(): {
629
+ [key: string]: string;
630
+ };
631
+ static types(): {
632
+ [key: string]: any;
633
+ };
634
+ constructor(map?: {
635
+ [key: string]: any;
636
+ });
637
+ }
638
+ export declare class ListJobRunsResponseBodyJobRunsConfigurationOverrides extends $tea.Model {
639
+ configurations?: Configuration[];
640
+ static names(): {
641
+ [key: string]: string;
642
+ };
643
+ static types(): {
644
+ [key: string]: any;
645
+ };
646
+ constructor(map?: {
647
+ [key: string]: any;
648
+ });
649
+ }
650
+ export declare class ListJobRunsResponseBodyJobRunsStateChangeReason extends $tea.Model {
651
+ code?: string;
652
+ message?: string;
653
+ static names(): {
654
+ [key: string]: string;
655
+ };
656
+ static types(): {
657
+ [key: string]: any;
658
+ };
659
+ constructor(map?: {
660
+ [key: string]: any;
661
+ });
662
+ }
663
+ export declare class ListJobRunsResponseBodyJobRuns extends $tea.Model {
664
+ codeType?: string;
665
+ configurationOverrides?: ListJobRunsResponseBodyJobRunsConfigurationOverrides;
666
+ creator?: string;
667
+ endTime?: number;
668
+ executionTimeoutSeconds?: number;
669
+ jobDriver?: JobDriver;
670
+ jobRunId?: string;
671
+ log?: RunLog;
672
+ name?: string;
673
+ releaseVersion?: string;
674
+ state?: string;
675
+ stateChangeReason?: ListJobRunsResponseBodyJobRunsStateChangeReason;
676
+ submitTime?: number;
677
+ tags?: Tag[];
678
+ webUI?: string;
679
+ workspaceId?: string;
680
+ static names(): {
681
+ [key: string]: string;
682
+ };
683
+ static types(): {
684
+ [key: string]: any;
685
+ };
686
+ constructor(map?: {
687
+ [key: string]: any;
688
+ });
689
+ }
690
+ export declare class StartJobRunRequestConfigurationOverridesConfigurations extends $tea.Model {
691
+ configFileName?: string;
692
+ configItemKey?: string;
693
+ configItemValue?: string;
694
+ static names(): {
695
+ [key: string]: string;
696
+ };
697
+ static types(): {
698
+ [key: string]: any;
699
+ };
700
+ constructor(map?: {
701
+ [key: string]: any;
702
+ });
703
+ }
704
+ export declare class StartJobRunRequestConfigurationOverrides extends $tea.Model {
705
+ configurations?: StartJobRunRequestConfigurationOverridesConfigurations[];
706
+ static names(): {
707
+ [key: string]: string;
708
+ };
709
+ static types(): {
710
+ [key: string]: any;
711
+ };
712
+ constructor(map?: {
713
+ [key: string]: any;
714
+ });
715
+ }
716
+ export default class Client extends OpenApi {
717
+ constructor(config: $OpenApi.Config);
718
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
719
+ [key: string]: string;
720
+ }, endpoint: string): string;
721
+ cancelJobRunWithOptions(workspaceId: string, jobRunId: string, request: CancelJobRunRequest, headers: {
722
+ [key: string]: string;
723
+ }, runtime: $Util.RuntimeOptions): Promise<CancelJobRunResponse>;
724
+ cancelJobRun(workspaceId: string, jobRunId: string, request: CancelJobRunRequest): Promise<CancelJobRunResponse>;
725
+ getJobRunWithOptions(workspaceId: string, jobRunId: string, request: GetJobRunRequest, headers: {
726
+ [key: string]: string;
727
+ }, runtime: $Util.RuntimeOptions): Promise<GetJobRunResponse>;
728
+ getJobRun(workspaceId: string, jobRunId: string, request: GetJobRunRequest): Promise<GetJobRunResponse>;
729
+ listJobRunsWithOptions(workspaceId: string, tmpReq: ListJobRunsRequest, headers: {
730
+ [key: string]: string;
731
+ }, runtime: $Util.RuntimeOptions): Promise<ListJobRunsResponse>;
732
+ listJobRuns(workspaceId: string, request: ListJobRunsRequest): Promise<ListJobRunsResponse>;
733
+ startJobRunWithOptions(workspaceId: string, request: StartJobRunRequest, headers: {
734
+ [key: string]: string;
735
+ }, runtime: $Util.RuntimeOptions): Promise<StartJobRunResponse>;
736
+ startJobRun(workspaceId: string, request: StartJobRunRequest): Promise<StartJobRunResponse>;
737
+ }