@alicloud/emr-serverless-spark20230808 1.17.0 → 1.17.1

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.
Files changed (29) hide show
  1. package/dist/client.d.ts +18 -0
  2. package/dist/client.js +42 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/GetRunConfigurationRequest.d.ts +18 -0
  5. package/dist/models/GetRunConfigurationRequest.js +58 -0
  6. package/dist/models/GetRunConfigurationRequest.js.map +1 -0
  7. package/dist/models/GetRunConfigurationResponse.d.ts +19 -0
  8. package/dist/models/GetRunConfigurationResponse.js +69 -0
  9. package/dist/models/GetRunConfigurationResponse.js.map +1 -0
  10. package/dist/models/GetRunConfigurationResponseBody.d.ts +104 -0
  11. package/dist/models/GetRunConfigurationResponseBody.js +140 -0
  12. package/dist/models/GetRunConfigurationResponseBody.js.map +1 -0
  13. package/dist/models/ListCatalogsResponseBody.d.ts +5 -0
  14. package/dist/models/ListCatalogsResponseBody.js +2 -0
  15. package/dist/models/ListCatalogsResponseBody.js.map +1 -1
  16. package/dist/models/ListKyuubiSparkApplicationsResponseBody.d.ts +2 -0
  17. package/dist/models/ListKyuubiSparkApplicationsResponseBody.js +6 -0
  18. package/dist/models/ListKyuubiSparkApplicationsResponseBody.js.map +1 -1
  19. package/dist/models/model.d.ts +6 -0
  20. package/dist/models/model.js +18 -6
  21. package/dist/models/model.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/client.ts +45 -0
  24. package/src/models/GetRunConfigurationRequest.ts +31 -0
  25. package/src/models/GetRunConfigurationResponse.ts +40 -0
  26. package/src/models/GetRunConfigurationResponseBody.ts +171 -0
  27. package/src/models/ListCatalogsResponseBody.ts +7 -0
  28. package/src/models/ListKyuubiSparkApplicationsResponseBody.ts +7 -0
  29. package/src/models/model.ts +6 -0
package/src/client.ts CHANGED
@@ -1491,6 +1491,51 @@ export default class Client extends OpenApi {
1491
1491
  return await this.getLivyComputeTokenWithOptions(workspaceBizId, livyComputeId, tokenId, request, headers, runtime);
1492
1492
  }
1493
1493
 
1494
+ /**
1495
+ * 获取任务配置
1496
+ *
1497
+ * @param request - GetRunConfigurationRequest
1498
+ * @param headers - map
1499
+ * @param runtime - runtime options for this request RuntimeOptions
1500
+ * @returns GetRunConfigurationResponse
1501
+ */
1502
+ async getRunConfigurationWithOptions(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetRunConfigurationResponse> {
1503
+ request.validate();
1504
+ let query : {[key: string ]: any} = { };
1505
+ if (!$dara.isNull(request.regionId)) {
1506
+ query["regionId"] = request.regionId;
1507
+ }
1508
+
1509
+ let req = new $OpenApiUtil.OpenApiRequest({
1510
+ headers: headers,
1511
+ query: OpenApiUtil.query(query),
1512
+ });
1513
+ let params = new $OpenApiUtil.Params({
1514
+ action: "GetRunConfiguration",
1515
+ version: "2023-08-08",
1516
+ protocol: "HTTPS",
1517
+ pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/runs/${$dara.URL.percentEncode(runId)}/action/getRunConfiguration`,
1518
+ method: "GET",
1519
+ authType: "AK",
1520
+ style: "ROA",
1521
+ reqBodyType: "json",
1522
+ bodyType: "json",
1523
+ });
1524
+ return $dara.cast<$_model.GetRunConfigurationResponse>(await this.callApi(params, req, runtime), new $_model.GetRunConfigurationResponse({}));
1525
+ }
1526
+
1527
+ /**
1528
+ * 获取任务配置
1529
+ *
1530
+ * @param request - GetRunConfigurationRequest
1531
+ * @returns GetRunConfigurationResponse
1532
+ */
1533
+ async getRunConfiguration(workspaceId: string, runId: string, request: $_model.GetRunConfigurationRequest): Promise<$_model.GetRunConfigurationResponse> {
1534
+ let runtime = new $dara.RuntimeOptions({ });
1535
+ let headers : {[key: string ]: string} = { };
1536
+ return await this.getRunConfigurationWithOptions(workspaceId, runId, request, headers, runtime);
1537
+ }
1538
+
1494
1539
  /**
1495
1540
  * Queries the information about a session.
1496
1541
  *
@@ -0,0 +1,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetRunConfigurationRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * cn-hangzhou
9
+ */
10
+ regionId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ regionId: 'regionId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ regionId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetRunConfigurationResponseBody } from "./GetRunConfigurationResponseBody";
4
+
5
+
6
+ export class GetRunConfigurationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetRunConfigurationResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: GetRunConfigurationResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,171 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Tag } from "./Tag";
4
+
5
+
6
+ export class GetRunConfigurationResponseBodyRunConfigurationApplicationConfigs extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * 应用配置文件名。 应用配置文件名。 ```spark-defaults.conf```
10
+ *
11
+ * @example
12
+ * spark-defaults.conf
13
+ */
14
+ configFileName?: string;
15
+ /**
16
+ * @remarks
17
+ * 配置项键。 配置项键。 ```dfs.namenode.checkpoint.period```
18
+ *
19
+ * @example
20
+ * spark.driver.cores
21
+ */
22
+ configItemKey?: string;
23
+ /**
24
+ * @remarks
25
+ * 配置项值。 配置项值。 ```3600s```
26
+ *
27
+ * @example
28
+ * 2
29
+ */
30
+ configItemValue?: string;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ configFileName: 'configFileName',
34
+ configItemKey: 'configItemKey',
35
+ configItemValue: 'configItemValue',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ configFileName: 'string',
42
+ configItemKey: 'string',
43
+ configItemValue: 'string',
44
+ };
45
+ }
46
+
47
+ validate() {
48
+ super.validate();
49
+ }
50
+
51
+ constructor(map?: { [key: string]: any }) {
52
+ super(map);
53
+ }
54
+ }
55
+
56
+ export class GetRunConfigurationResponseBodyRunConfigurationLogConfig extends $dara.Model {
57
+ /**
58
+ * @example
59
+ * INFO
60
+ */
61
+ logLevel?: string;
62
+ /**
63
+ * @example
64
+ * oss://test
65
+ */
66
+ logPath?: string;
67
+ static names(): { [key: string]: string } {
68
+ return {
69
+ logLevel: 'LogLevel',
70
+ logPath: 'LogPath',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ logLevel: 'string',
77
+ logPath: 'string',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ super.validate();
83
+ }
84
+
85
+ constructor(map?: { [key: string]: any }) {
86
+ super(map);
87
+ }
88
+ }
89
+
90
+ export class GetRunConfigurationResponseBodyRunConfiguration extends $dara.Model {
91
+ /**
92
+ * @remarks
93
+ * 应用配置项
94
+ */
95
+ applicationConfigs?: GetRunConfigurationResponseBodyRunConfigurationApplicationConfigs[];
96
+ logConfig?: GetRunConfigurationResponseBodyRunConfigurationLogConfig;
97
+ /**
98
+ * @remarks
99
+ * 运行配置。
100
+ */
101
+ runtimeConfigs?: Tag[];
102
+ static names(): { [key: string]: string } {
103
+ return {
104
+ applicationConfigs: 'applicationConfigs',
105
+ logConfig: 'logConfig',
106
+ runtimeConfigs: 'runtimeConfigs',
107
+ };
108
+ }
109
+
110
+ static types(): { [key: string]: any } {
111
+ return {
112
+ applicationConfigs: { 'type': 'array', 'itemType': GetRunConfigurationResponseBodyRunConfigurationApplicationConfigs },
113
+ logConfig: GetRunConfigurationResponseBodyRunConfigurationLogConfig,
114
+ runtimeConfigs: { 'type': 'array', 'itemType': Tag },
115
+ };
116
+ }
117
+
118
+ validate() {
119
+ if(Array.isArray(this.applicationConfigs)) {
120
+ $dara.Model.validateArray(this.applicationConfigs);
121
+ }
122
+ if(this.logConfig && typeof (this.logConfig as any).validate === 'function') {
123
+ (this.logConfig as any).validate();
124
+ }
125
+ if(Array.isArray(this.runtimeConfigs)) {
126
+ $dara.Model.validateArray(this.runtimeConfigs);
127
+ }
128
+ super.validate();
129
+ }
130
+
131
+ constructor(map?: { [key: string]: any }) {
132
+ super(map);
133
+ }
134
+ }
135
+
136
+ export class GetRunConfigurationResponseBody extends $dara.Model {
137
+ /**
138
+ * @remarks
139
+ * 请求ID。
140
+ *
141
+ * @example
142
+ * DD6B1B2A-5837-5237-ABE4-FF0C8944****
143
+ */
144
+ requestId?: string;
145
+ runConfiguration?: GetRunConfigurationResponseBodyRunConfiguration;
146
+ static names(): { [key: string]: string } {
147
+ return {
148
+ requestId: 'requestId',
149
+ runConfiguration: 'runConfiguration',
150
+ };
151
+ }
152
+
153
+ static types(): { [key: string]: any } {
154
+ return {
155
+ requestId: 'string',
156
+ runConfiguration: GetRunConfigurationResponseBodyRunConfiguration,
157
+ };
158
+ }
159
+
160
+ validate() {
161
+ if(this.runConfiguration && typeof (this.runConfiguration as any).validate === 'function') {
162
+ (this.runConfiguration as any).validate();
163
+ }
164
+ super.validate();
165
+ }
166
+
167
+ constructor(map?: { [key: string]: any }) {
168
+ super(map);
169
+ }
170
+ }
171
+
@@ -3,6 +3,11 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListCatalogsResponseBodyCatalogs extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * alias
9
+ */
10
+ alias?: string;
6
11
  /**
7
12
  * @remarks
8
13
  * regionId。
@@ -48,6 +53,7 @@ export class ListCatalogsResponseBodyCatalogs extends $dara.Model {
48
53
  workspaceId?: string;
49
54
  static names(): { [key: string]: string } {
50
55
  return {
56
+ alias: 'alias',
51
57
  catalogId: 'catalogId',
52
58
  catalogProvider: 'catalogProvider',
53
59
  catalogType: 'catalogType',
@@ -62,6 +68,7 @@ export class ListCatalogsResponseBodyCatalogs extends $dara.Model {
62
68
 
63
69
  static types(): { [key: string]: any } {
64
70
  return {
71
+ alias: 'string',
65
72
  catalogId: 'string',
66
73
  catalogProvider: 'string',
67
74
  catalogType: 'string',
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
3
  import { RunLog } from "./RunLog";
4
+ import { Tag } from "./Tag";
4
5
 
5
6
 
6
7
  export class ListKyuubiSparkApplicationsResponseBodyApplications extends $dara.Model {
@@ -88,6 +89,7 @@ export class ListKyuubiSparkApplicationsResponseBodyApplications extends $dara.M
88
89
  * STARTING
89
90
  */
90
91
  state?: string;
92
+ tags?: Tag[];
91
93
  /**
92
94
  * @remarks
93
95
  * The total number of CPU cores allocated to the job multiplied by the running duration (seconds).
@@ -115,6 +117,7 @@ export class ListKyuubiSparkApplicationsResponseBodyApplications extends $dara.M
115
117
  runLog: 'runLog',
116
118
  startTime: 'startTime',
117
119
  state: 'state',
120
+ tags: 'tags',
118
121
  vcoreSeconds: 'vcoreSeconds',
119
122
  webUI: 'webUI',
120
123
  };
@@ -134,6 +137,7 @@ export class ListKyuubiSparkApplicationsResponseBodyApplications extends $dara.M
134
137
  runLog: RunLog,
135
138
  startTime: 'string',
136
139
  state: 'string',
140
+ tags: { 'type': 'array', 'itemType': Tag },
137
141
  vcoreSeconds: 'number',
138
142
  webUI: 'string',
139
143
  };
@@ -143,6 +147,9 @@ export class ListKyuubiSparkApplicationsResponseBodyApplications extends $dara.M
143
147
  if(this.runLog && typeof (this.runLog as any).validate === 'function') {
144
148
  (this.runLog as any).validate();
145
149
  }
150
+ if(Array.isArray(this.tags)) {
151
+ $dara.Model.validateArray(this.tags);
152
+ }
146
153
  super.validate();
147
154
  }
148
155
 
@@ -40,6 +40,9 @@ export { GetLivyComputeResponseBodyDataAutoStopConfiguration } from './GetLivyCo
40
40
  export { GetLivyComputeResponseBodyData } from './GetLivyComputeResponseBody';
41
41
  export { GetLivyComputeTokenResponseBodyDataAutoExpireConfiguration } from './GetLivyComputeTokenResponseBody';
42
42
  export { GetLivyComputeTokenResponseBodyData } from './GetLivyComputeTokenResponseBody';
43
+ export { GetRunConfigurationResponseBodyRunConfigurationApplicationConfigs } from './GetRunConfigurationResponseBody';
44
+ export { GetRunConfigurationResponseBodyRunConfigurationLogConfig } from './GetRunConfigurationResponseBody';
45
+ export { GetRunConfigurationResponseBodyRunConfiguration } from './GetRunConfigurationResponseBody';
43
46
  export { GetSessionClusterResponseBodySessionClusterApplicationConfigs } from './GetSessionClusterResponseBody';
44
47
  export { GetSessionClusterResponseBodySessionClusterAutoStartConfiguration } from './GetSessionClusterResponseBody';
45
48
  export { GetSessionClusterResponseBodySessionClusterAutoStopConfiguration } from './GetSessionClusterResponseBody';
@@ -188,6 +191,9 @@ export { GetLivyComputeResponse } from './GetLivyComputeResponse';
188
191
  export { GetLivyComputeTokenRequest } from './GetLivyComputeTokenRequest';
189
192
  export { GetLivyComputeTokenResponseBody } from './GetLivyComputeTokenResponseBody';
190
193
  export { GetLivyComputeTokenResponse } from './GetLivyComputeTokenResponse';
194
+ export { GetRunConfigurationRequest } from './GetRunConfigurationRequest';
195
+ export { GetRunConfigurationResponseBody } from './GetRunConfigurationResponseBody';
196
+ export { GetRunConfigurationResponse } from './GetRunConfigurationResponse';
191
197
  export { GetSessionClusterRequest } from './GetSessionClusterRequest';
192
198
  export { GetSessionClusterResponseBody } from './GetSessionClusterResponseBody';
193
199
  export { GetSessionClusterResponse } from './GetSessionClusterResponse';