@databricks/sdk-jobs 0.1.0-dev.2 → 0.1.0-dev.4
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/v2/client.d.ts +20 -20
- package/dist/v2/client.d.ts.map +1 -1
- package/dist/v2/client.js +20 -20
- package/dist/v2/client.js.map +1 -1
- package/dist/v2/index.d.ts +1 -1
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/model.d.ts +401 -349
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +458 -514
- package/dist/v2/model.js.map +1 -1
- package/dist/v2/utils.d.ts.map +1 -1
- package/dist/v2/utils.js +2 -1
- package/dist/v2/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/v2/client.ts +0 -1258
- package/src/v2/index.ts +0 -284
- package/src/v2/model.ts +0 -10251
- package/src/v2/transport.ts +0 -73
- package/src/v2/utils.ts +0 -180
package/dist/v2/model.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
4
|
+
export const AuthenticationMethod = {
|
|
5
|
+
OAUTH: 'OAUTH',
|
|
6
|
+
PAT: 'PAT',
|
|
7
|
+
};
|
|
8
8
|
/**
|
|
9
9
|
* Availability type used for all subsequent nodes past the `first_on_demand` ones.
|
|
10
10
|
*
|
|
11
11
|
* Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
14
|
+
export const AwsAvailability = {
|
|
15
15
|
/** Use spot instances. */
|
|
16
|
-
|
|
16
|
+
SPOT: 'SPOT',
|
|
17
17
|
/** Use on-demand instances. */
|
|
18
|
-
|
|
18
|
+
ON_DEMAND: 'ON_DEMAND',
|
|
19
19
|
/**
|
|
20
20
|
* Preferably use spot instances, but fall back to on-demand instances if spot instances cannot
|
|
21
21
|
* be acquired (e.g., if AWS spot prices are too high).
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
}
|
|
23
|
+
SPOT_WITH_FALLBACK: 'SPOT_WITH_FALLBACK',
|
|
24
|
+
};
|
|
25
25
|
/**
|
|
26
26
|
* Availability type used for all subsequent nodes past the `first_on_demand` ones.
|
|
27
27
|
* Note: If `first_on_demand` is zero, this availability type will be used for the entire cluster.
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
30
|
+
export const AzureAvailability = {
|
|
31
31
|
/** Use spot instances. */
|
|
32
|
-
|
|
32
|
+
SPOT_AZURE: 'SPOT_AZURE',
|
|
33
33
|
/** Use on-demand instances. */
|
|
34
|
-
|
|
34
|
+
ON_DEMAND_AZURE: 'ON_DEMAND_AZURE',
|
|
35
35
|
/**
|
|
36
36
|
* Preferably use spot instances, but fall back to on-demand instances if spot instances cannot
|
|
37
37
|
* be acquired (e.g., if Azure is out of Quota).
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
}
|
|
39
|
+
SPOT_WITH_FALLBACK_AZURE: 'SPOT_WITH_FALLBACK_AZURE',
|
|
40
|
+
};
|
|
41
41
|
/**
|
|
42
42
|
* The kind of compute described by this compute specification.
|
|
43
43
|
*
|
|
@@ -49,23 +49,23 @@ export var AzureAvailability;
|
|
|
49
49
|
*
|
|
50
50
|
* By using the [simple form](https://docs.databricks.com/compute/simple-form.html), your clusters are automatically using `kind = CLASSIC_PREVIEW`.
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
53
|
+
export const ComputeKind = {
|
|
54
|
+
COMPUTE_KIND_UNSPECIFIED: 'COMPUTE_KIND_UNSPECIFIED',
|
|
55
|
+
CLASSIC_PREVIEW: 'CLASSIC_PREVIEW',
|
|
56
|
+
};
|
|
57
57
|
/**
|
|
58
58
|
* Confidential computing technology for GCP instances.
|
|
59
59
|
* Aligns with gcloud's --confidential-compute-type flag and the REST API's
|
|
60
60
|
* confidentialInstanceConfig.confidentialInstanceType field.
|
|
61
61
|
* See: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
64
|
+
export const ConfidentialComputeType = {
|
|
65
|
+
CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED: 'CONFIDENTIAL_COMPUTE_TYPE_UNSPECIFIED',
|
|
66
|
+
CONFIDENTIAL_COMPUTE_TYPE_NONE: 'CONFIDENTIAL_COMPUTE_TYPE_NONE',
|
|
67
|
+
SEV_SNP: 'SEV_SNP',
|
|
68
|
+
};
|
|
69
69
|
/**
|
|
70
70
|
* Data security mode decides what data governance model to use when accessing data
|
|
71
71
|
* from a cluster.
|
|
@@ -87,103 +87,103 @@ export var ConfidentialComputeType;
|
|
|
87
87
|
* * `LEGACY_SINGLE_USER`: This mode is for users migrating from legacy Passthrough on standard clusters.
|
|
88
88
|
* * `LEGACY_SINGLE_USER_STANDARD`: This mode provides a way that doesn’t have UC nor passthrough enabled.
|
|
89
89
|
*/
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
91
|
+
export const DataSecurityMode = {
|
|
92
92
|
/**
|
|
93
93
|
* No security isolation for multiple users sharing the cluster. Data governance features
|
|
94
94
|
* are not available in this mode.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
NONE: 'NONE',
|
|
97
97
|
/** Legacy alias for `DATA_SECURITY_MODE_DEDICATED`. */
|
|
98
|
-
|
|
98
|
+
SINGLE_USER: 'SINGLE_USER',
|
|
99
99
|
/** Legacy alias for `DATA_SECURITY_MODE_STANDARD`. */
|
|
100
|
-
|
|
100
|
+
USER_ISOLATION: 'USER_ISOLATION',
|
|
101
101
|
/** This mode is for users migrating from legacy Table ACL clusters. */
|
|
102
|
-
|
|
102
|
+
LEGACY_TABLE_ACL: 'LEGACY_TABLE_ACL',
|
|
103
103
|
/** This mode is for users migrating from legacy Passthrough on high concurrency clusters. */
|
|
104
|
-
|
|
104
|
+
LEGACY_PASSTHROUGH: 'LEGACY_PASSTHROUGH',
|
|
105
105
|
/** This mode is for users migrating from legacy Passthrough on standard clusters. */
|
|
106
|
-
|
|
106
|
+
LEGACY_SINGLE_USER: 'LEGACY_SINGLE_USER',
|
|
107
107
|
/** This is mode where single user is enforced but no actual security feature enabled. */
|
|
108
|
-
|
|
108
|
+
LEGACY_SINGLE_USER_STANDARD: 'LEGACY_SINGLE_USER_STANDARD',
|
|
109
109
|
/**
|
|
110
110
|
* A secure cluster that can be shared by multiple users. Cluster users are fully isolated
|
|
111
111
|
* so that they cannot see each other's data and credentials. Most data governance features
|
|
112
112
|
* are supported in this mode. But programming languages and cluster features might be limited.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
DATA_SECURITY_MODE_STANDARD: 'DATA_SECURITY_MODE_STANDARD',
|
|
115
115
|
/**
|
|
116
116
|
* A secure cluster that can only be exclusively used by a single user specified in
|
|
117
117
|
* `single_user_name`. Most programming languages, cluster features and data governance
|
|
118
118
|
* features are available in this mode.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
DATA_SECURITY_MODE_DEDICATED: 'DATA_SECURITY_MODE_DEDICATED',
|
|
121
121
|
/**
|
|
122
122
|
* Databricks will choose `DATA_SECURITY_MODE_STANDARD` or `DATA_SECURITY_MODE_DEDICATED`
|
|
123
123
|
* depending on the compute configuration.
|
|
124
124
|
*/
|
|
125
|
-
|
|
126
|
-
}
|
|
125
|
+
DATA_SECURITY_MODE_AUTO: 'DATA_SECURITY_MODE_AUTO',
|
|
126
|
+
};
|
|
127
127
|
/** Response enumeration from calling the dbt platform API, for inclusion in output */
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
129
|
+
export const DbtPlatformRunStatus = {
|
|
130
|
+
DBT_PLATFORM_RUN_STATUS_UNSPECIFIED: 'DBT_PLATFORM_RUN_STATUS_UNSPECIFIED',
|
|
131
|
+
QUEUED: 'QUEUED',
|
|
132
|
+
STARTING: 'STARTING',
|
|
133
|
+
RUNNING: 'RUNNING',
|
|
134
|
+
SUCCESS: 'SUCCESS',
|
|
135
|
+
ERROR: 'ERROR',
|
|
136
|
+
CANCELLED: 'CANCELLED',
|
|
137
|
+
};
|
|
138
138
|
/**
|
|
139
139
|
* All EBS volume types that <Databricks> supports.
|
|
140
140
|
* See https://aws.amazon.com/ebs/details/ for details.
|
|
141
141
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
143
|
+
export const EbsVolumeType = {
|
|
144
144
|
/** Provision extra storage using AWS gp2 EBS volumes. */
|
|
145
|
-
|
|
145
|
+
GENERAL_PURPOSE_SSD: 'GENERAL_PURPOSE_SSD',
|
|
146
146
|
/** Provision extra storage using AWS st1 volumes. */
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
147
|
+
THROUGHPUT_OPTIMIZED_HDD: 'THROUGHPUT_OPTIMIZED_HDD',
|
|
148
|
+
};
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
150
|
+
export const Format = {
|
|
151
|
+
SINGLE_TASK: 'SINGLE_TASK',
|
|
152
|
+
MULTI_TASK: 'MULTI_TASK',
|
|
153
|
+
};
|
|
154
154
|
/**
|
|
155
155
|
* This field determines whether the instance pool will contain preemptible
|
|
156
156
|
* VMs, on-demand VMs, or preemptible VMs with a fallback to on-demand VMs if the former is unavailable.
|
|
157
157
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
159
|
+
export const GcpAvailability = {
|
|
160
|
+
PREEMPTIBLE_GCP: 'PREEMPTIBLE_GCP',
|
|
161
|
+
ON_DEMAND_GCP: 'ON_DEMAND_GCP',
|
|
162
|
+
PREEMPTIBLE_WITH_FALLBACK_GCP: 'PREEMPTIBLE_WITH_FALLBACK_GCP',
|
|
163
|
+
};
|
|
164
164
|
/**
|
|
165
165
|
* HardwareAcceleratorType: The type of hardware accelerator to use for compute workloads.
|
|
166
166
|
* NOTE: This enum is referenced and is intended to be used by other <Databricks> services
|
|
167
167
|
* that need to specify hardware accelerator requirements for AI compute workloads.
|
|
168
168
|
*/
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
170
|
+
export const HardwareAcceleratorType = {
|
|
171
171
|
/** GPU_1xA10: Single A10 GPU configuration. */
|
|
172
|
-
|
|
172
|
+
GPU_1X_A10: 'GPU_1xA10',
|
|
173
173
|
/** GPU_8xH100: 8x H100 GPU configuration. */
|
|
174
|
-
|
|
175
|
-
}
|
|
174
|
+
GPU_8X_H100: 'GPU_8xH100',
|
|
175
|
+
};
|
|
176
176
|
/**
|
|
177
177
|
* Edit mode of the job.
|
|
178
178
|
*
|
|
179
179
|
* * `UI_LOCKED`: The job is in a locked UI state and cannot be modified.
|
|
180
180
|
* * `EDITABLE`: The job is in an editable state and can be modified.
|
|
181
181
|
*/
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
183
|
+
export const JobEditMode = {
|
|
184
|
+
UI_LOCKED: 'UI_LOCKED',
|
|
185
|
+
EDITABLE: 'EDITABLE',
|
|
186
|
+
};
|
|
187
187
|
/**
|
|
188
188
|
* Specifies the health metric that is being evaluated for a particular health rule.
|
|
189
189
|
*
|
|
@@ -193,57 +193,57 @@ export var JobEditMode;
|
|
|
193
193
|
* * `STREAMING_BACKLOG_SECONDS`: An estimate of the maximum consumer delay across all streams. This metric is in Public Preview.
|
|
194
194
|
* * `STREAMING_BACKLOG_FILES`: An estimate of the maximum number of outstanding files across all streams. This metric is in Public Preview.
|
|
195
195
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
196
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
197
|
+
export const JobsHealthMetric = {
|
|
198
|
+
RUN_DURATION_SECONDS: 'RUN_DURATION_SECONDS',
|
|
199
|
+
STREAMING_BACKLOG_BYTES: 'STREAMING_BACKLOG_BYTES',
|
|
200
|
+
STREAMING_BACKLOG_RECORDS: 'STREAMING_BACKLOG_RECORDS',
|
|
201
|
+
STREAMING_BACKLOG_SECONDS: 'STREAMING_BACKLOG_SECONDS',
|
|
202
|
+
STREAMING_BACKLOG_FILES: 'STREAMING_BACKLOG_FILES',
|
|
203
|
+
};
|
|
204
204
|
/** Specifies the operator used to compare the health metric value with the specified threshold. */
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
205
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
206
|
+
export const JobsHealthOperator = {
|
|
207
|
+
GREATER_THAN: 'GREATER_THAN',
|
|
208
|
+
};
|
|
209
209
|
/**
|
|
210
210
|
* The repair history item type. Indicates whether a run is the original run or
|
|
211
211
|
* a repair run.
|
|
212
212
|
*/
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
213
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
214
|
+
export const RepairType = {
|
|
215
|
+
ORIGINAL: 'ORIGINAL',
|
|
216
|
+
REPAIR: 'REPAIR',
|
|
217
|
+
};
|
|
218
218
|
/**
|
|
219
219
|
* The type of a run.
|
|
220
220
|
* * `JOB_RUN`: Normal job run. A run created with :method:jobs/runNow.
|
|
221
221
|
* * `WORKFLOW_RUN`: Workflow run. A run created with [dbutils.notebook.run](/dev-tools/databricks-utils.html#dbutils-workflow).
|
|
222
222
|
* * `SUBMIT_RUN`: Submit run. A run created with :method:jobs/submit.
|
|
223
223
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
224
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
225
|
+
export const RunType = {
|
|
226
|
+
JOB_RUN: 'JOB_RUN',
|
|
227
|
+
WORKFLOW_RUN: 'WORKFLOW_RUN',
|
|
228
|
+
SUBMIT_RUN: 'SUBMIT_RUN',
|
|
229
|
+
};
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
231
|
+
export const RuntimeEngine = {
|
|
232
232
|
/**
|
|
233
233
|
* Default value. In this case, ignore the RUNTIME_ENGINE
|
|
234
234
|
* parameter and do a spark version lookup entirely on the sparkVersion string.
|
|
235
235
|
*/
|
|
236
|
-
|
|
236
|
+
NULL: 'NULL',
|
|
237
237
|
/** Use standard engine */
|
|
238
|
-
|
|
238
|
+
STANDARD: 'STANDARD',
|
|
239
239
|
/** Use Photon engine */
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
240
|
+
PHOTON: 'PHOTON',
|
|
241
|
+
};
|
|
242
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
243
|
+
export const SchedulePauseStatus = {
|
|
244
|
+
UNPAUSED: 'UNPAUSED',
|
|
245
|
+
PAUSED: 'PAUSED',
|
|
246
|
+
};
|
|
247
247
|
/**
|
|
248
248
|
* Optional location type of the SQL file. When set to `WORKSPACE`, the SQL file will be retrieved\
|
|
249
249
|
* from the local <Databricks> workspace. When set to `GIT`, the SQL file will be retrieved from a Git repository
|
|
@@ -252,17 +252,17 @@ export var SchedulePauseStatus;
|
|
|
252
252
|
* * `WORKSPACE`: SQL file is located in <Databricks> workspace.
|
|
253
253
|
* * `GIT`: SQL file is located in cloud Git provider.
|
|
254
254
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
255
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
256
|
+
export const Source = {
|
|
257
|
+
WORKSPACE: 'WORKSPACE',
|
|
258
|
+
GIT: 'GIT',
|
|
259
|
+
};
|
|
260
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
261
|
+
export const StorageMode = {
|
|
262
|
+
DIRECT_QUERY: 'DIRECT_QUERY',
|
|
263
|
+
IMPORT: 'IMPORT',
|
|
264
|
+
DUAL: 'DUAL',
|
|
265
|
+
};
|
|
266
266
|
/**
|
|
267
267
|
* An optional value indicating the condition that determines whether the task should be run once its dependencies have been completed. When omitted, defaults to `ALL_SUCCESS`.
|
|
268
268
|
*
|
|
@@ -274,26 +274,26 @@ export var StorageMode;
|
|
|
274
274
|
* * `AT_LEAST_ONE_FAILED`: At least one dependency failed
|
|
275
275
|
* * `ALL_FAILED`: ALl dependencies have failed
|
|
276
276
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
277
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
278
|
+
export const TaskDependencyType = {
|
|
279
|
+
ALL_SUCCESS: 'ALL_SUCCESS',
|
|
280
|
+
ALL_DONE: 'ALL_DONE',
|
|
281
|
+
NONE_FAILED: 'NONE_FAILED',
|
|
282
|
+
AT_LEAST_ONE_SUCCESS: 'AT_LEAST_ONE_SUCCESS',
|
|
283
|
+
ALL_FAILED: 'ALL_FAILED',
|
|
284
|
+
AT_LEAST_ONE_FAILED: 'AT_LEAST_ONE_FAILED',
|
|
285
|
+
};
|
|
286
286
|
/**
|
|
287
287
|
* task retry mode of the continuous job
|
|
288
288
|
* * NEVER: The failed task will not be retried.
|
|
289
289
|
* * ON_FAILURE: Retry a failed task if at least one other task in the job is still running its first attempt.
|
|
290
290
|
* When this condition is no longer met or the retry limit is reached, the job run is cancelled and a new run is started.
|
|
291
291
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
292
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
293
|
+
export const TaskRetryMode = {
|
|
294
|
+
NEVER: 'NEVER',
|
|
295
|
+
ON_FAILURE: 'ON_FAILURE',
|
|
296
|
+
};
|
|
297
297
|
/**
|
|
298
298
|
* The type of trigger that fired this run.
|
|
299
299
|
*
|
|
@@ -307,121 +307,115 @@ export var TaskRetryMode;
|
|
|
307
307
|
* * `CONTINUOUS_RESTART`: Indicates a run created by user to manually restart a continuous job run.
|
|
308
308
|
* * `MODEL`: Indicates a run that is triggered by a model update.
|
|
309
309
|
*/
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
310
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
311
|
+
export const TriggerType = {
|
|
312
|
+
PERIODIC: 'PERIODIC',
|
|
313
|
+
ONE_TIME: 'ONE_TIME',
|
|
314
|
+
RETRY: 'RETRY',
|
|
315
|
+
RUN_JOB_TASK: 'RUN_JOB_TASK',
|
|
316
|
+
FILE_ARRIVAL: 'FILE_ARRIVAL',
|
|
317
|
+
CONTINUOUS: 'CONTINUOUS',
|
|
318
|
+
TABLE: 'TABLE',
|
|
319
|
+
CONTINUOUS_RESTART: 'CONTINUOUS_RESTART',
|
|
320
|
+
};
|
|
321
321
|
/**
|
|
322
322
|
* * `NOTEBOOK`: Notebook view item.
|
|
323
323
|
* * `DASHBOARD`: Dashboard view item.
|
|
324
324
|
*/
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
325
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
326
|
+
export const ViewType = {
|
|
327
|
+
NOTEBOOK: 'NOTEBOOK',
|
|
328
|
+
DASHBOARD: 'DASHBOARD',
|
|
329
|
+
};
|
|
330
330
|
/**
|
|
331
331
|
* * `CODE`: Code view of the notebook.
|
|
332
332
|
* * `DASHBOARDS`: All dashboard views of the notebook.
|
|
333
333
|
* * `ALL`: All views of the notebook.
|
|
334
334
|
*/
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
342
|
-
export
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
})(AccessControlRequest_JobPermission || (AccessControlRequest_JobPermission = {}));
|
|
335
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
336
|
+
export const ViewsToExport = {
|
|
337
|
+
CODE: 'CODE',
|
|
338
|
+
DASHBOARDS: 'DASHBOARDS',
|
|
339
|
+
ALL: 'ALL',
|
|
340
|
+
};
|
|
341
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
342
|
+
export const AccessControlRequest_JobPermission = {
|
|
343
|
+
CAN_VIEW: 'CAN_VIEW',
|
|
344
|
+
CAN_MANAGE_RUN: 'CAN_MANAGE_RUN',
|
|
345
|
+
IS_OWNER: 'IS_OWNER',
|
|
346
|
+
CAN_MANAGE: 'CAN_MANAGE',
|
|
347
|
+
};
|
|
349
348
|
/** Same alert evaluation state as in redash-v2/api/proto/alertsv2/alerts.proto */
|
|
350
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
351
|
-
export
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
})(AlertEvaluationState_AlertEvaluationState || (AlertEvaluationState_AlertEvaluationState = {}));
|
|
349
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
350
|
+
export const AlertEvaluationState_AlertEvaluationState = {
|
|
351
|
+
ALERT_EVALUATION_STATE_UNSPECIFIED: 'ALERT_EVALUATION_STATE_UNSPECIFIED',
|
|
352
|
+
UNKNOWN: 'UNKNOWN',
|
|
353
|
+
TRIGGERED: 'TRIGGERED',
|
|
354
|
+
OK: 'OK',
|
|
355
|
+
ERROR: 'ERROR',
|
|
356
|
+
};
|
|
359
357
|
/**
|
|
360
358
|
* Copied from elastic-spark-common/api/messages/runs.proto.
|
|
361
359
|
* Using the original definition to remove coupling with jobs API definition
|
|
362
360
|
*/
|
|
363
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
364
|
-
export
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
})(CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState || (CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState = {}));
|
|
361
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
362
|
+
export const CleanRoomTaskRunLifeCycleState_CleanRoomTaskRunLifeCycleState = {
|
|
363
|
+
RUN_LIFE_CYCLE_STATE_UNSPECIFIED: 'RUN_LIFE_CYCLE_STATE_UNSPECIFIED',
|
|
364
|
+
PENDING: 'PENDING',
|
|
365
|
+
RUNNING: 'RUNNING',
|
|
366
|
+
TERMINATING: 'TERMINATING',
|
|
367
|
+
TERMINATED: 'TERMINATED',
|
|
368
|
+
SKIPPED: 'SKIPPED',
|
|
369
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
370
|
+
BLOCKED: 'BLOCKED',
|
|
371
|
+
WAITING_FOR_RETRY: 'WAITING_FOR_RETRY',
|
|
372
|
+
QUEUED: 'QUEUED',
|
|
373
|
+
};
|
|
377
374
|
/**
|
|
378
375
|
* Copied from elastic-spark-common/api/messages/runs.proto.
|
|
379
376
|
* Using the original definition to avoid cyclic dependency.
|
|
380
377
|
*/
|
|
381
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
382
|
-
export
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
CleanRoomTaskRunResultState_CleanRoomTaskRunResultState["UPSTREAM_EVICTED"] = "UPSTREAM_EVICTED";
|
|
378
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
379
|
+
export const CleanRoomTaskRunResultState_CleanRoomTaskRunResultState = {
|
|
380
|
+
RUN_RESULT_STATE_UNSPECIFIED: 'RUN_RESULT_STATE_UNSPECIFIED',
|
|
381
|
+
SUCCESS: 'SUCCESS',
|
|
382
|
+
FAILED: 'FAILED',
|
|
383
|
+
TIMEDOUT: 'TIMEDOUT',
|
|
384
|
+
CANCELED: 'CANCELED',
|
|
385
|
+
MAXIMUM_CONCURRENT_RUNS_REACHED: 'MAXIMUM_CONCURRENT_RUNS_REACHED',
|
|
386
|
+
UPSTREAM_CANCELED: 'UPSTREAM_CANCELED',
|
|
387
|
+
UPSTREAM_FAILED: 'UPSTREAM_FAILED',
|
|
388
|
+
EXCLUDED: 'EXCLUDED',
|
|
389
|
+
EVICTED: 'EVICTED',
|
|
390
|
+
SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
|
|
391
|
+
UPSTREAM_EVICTED: 'UPSTREAM_EVICTED',
|
|
396
392
|
/** 12 is reserved for previously used SUCCESS_WITH_SKIPPED_CELLS */
|
|
397
|
-
|
|
398
|
-
}
|
|
393
|
+
DISABLED: 'DISABLED',
|
|
394
|
+
};
|
|
399
395
|
/**
|
|
400
396
|
* * `EQUAL_TO`, `NOT_EQUAL` operators perform string comparison of their operands. This means that `“12.0” == “12”` will evaluate to `false`.
|
|
401
397
|
* * `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL` operators perform numeric comparison of their operands. `“12.0” >= “12”` will evaluate to `true`, `“10.0” >= “12”` will evaluate to `false`.
|
|
402
398
|
*
|
|
403
399
|
* The boolean comparison to task values can be implemented with operators `EQUAL_TO`, `NOT_EQUAL`. If a task value was set to a boolean value, it will be serialized to `“true”` or `“false”` for the comparison.
|
|
404
400
|
*/
|
|
405
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
406
|
-
export
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
})(ConditionTask_ConditionTaskOperator || (ConditionTask_ConditionTaskOperator = {}));
|
|
401
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
402
|
+
export const ConditionTask_ConditionTaskOperator = {
|
|
403
|
+
EQUAL_TO: 'EQUAL_TO',
|
|
404
|
+
GREATER_THAN: 'GREATER_THAN',
|
|
405
|
+
GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',
|
|
406
|
+
LESS_THAN: 'LESS_THAN',
|
|
407
|
+
LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',
|
|
408
|
+
NOT_EQUAL: 'NOT_EQUAL',
|
|
409
|
+
};
|
|
415
410
|
/**
|
|
416
411
|
* * `BUNDLE`: The job is managed by Databricks Asset Bundle.
|
|
417
412
|
* * `SYSTEM_MANAGED`: The job is managed by <Databricks> and is read-only.
|
|
418
413
|
*/
|
|
419
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
420
|
-
export
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
})(JobDeployment_DeploymentKind || (JobDeployment_DeploymentKind = {}));
|
|
414
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
415
|
+
export const JobDeployment_DeploymentKind = {
|
|
416
|
+
BUNDLE: 'BUNDLE',
|
|
417
|
+
SYSTEM_MANAGED: 'SYSTEM_MANAGED',
|
|
418
|
+
};
|
|
425
419
|
/**
|
|
426
420
|
* Dirty state indicates the job is not fully synced with the job specification
|
|
427
421
|
* in the remote repository.
|
|
@@ -430,53 +424,48 @@ export var JobDeployment_DeploymentKind;
|
|
|
430
424
|
* * `NOT_SYNCED`: The job is not yet synced with the remote job specification. Import the remote job specification from UI to make the job fully synced.
|
|
431
425
|
* * `DISCONNECTED`: The job is temporary disconnected from the remote job specification and is allowed for live edit. Import the remote job specification again from UI to make the job fully synced.
|
|
432
426
|
*/
|
|
433
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
434
|
-
export
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
ModelTriggerConfiguration_ModelTriggerCondition["MODEL_ALIAS_SET"] = "MODEL_ALIAS_SET";
|
|
446
|
-
})(ModelTriggerConfiguration_ModelTriggerCondition || (ModelTriggerConfiguration_ModelTriggerCondition = {}));
|
|
427
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
428
|
+
export const JobSource_DirtyState = {
|
|
429
|
+
NOT_SYNCED: 'NOT_SYNCED',
|
|
430
|
+
DISCONNECTED: 'DISCONNECTED',
|
|
431
|
+
};
|
|
432
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
433
|
+
export const ModelTriggerConfiguration_ModelTriggerCondition = {
|
|
434
|
+
CONDITION_UNSPECIFIED: 'CONDITION_UNSPECIFIED',
|
|
435
|
+
MODEL_CREATED: 'MODEL_CREATED',
|
|
436
|
+
MODEL_VERSION_READY: 'MODEL_VERSION_READY',
|
|
437
|
+
MODEL_ALIAS_SET: 'MODEL_ALIAS_SET',
|
|
438
|
+
};
|
|
447
439
|
/**
|
|
448
440
|
* PerformanceTarget defines how performant (lower latency) or cost efficient the execution of run on serverless compute should be.
|
|
449
441
|
* The performance mode on the job or pipeline should map to a performance setting that is passed to Cluster Manager
|
|
450
442
|
* (see cluster-common PerformanceTarget).
|
|
451
443
|
*/
|
|
452
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
453
|
-
export
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
PeriodicTriggerConfiguration_TimeUnit["WEEKS"] = "WEEKS";
|
|
466
|
-
})(PeriodicTriggerConfiguration_TimeUnit || (PeriodicTriggerConfiguration_TimeUnit = {}));
|
|
444
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
445
|
+
export const PerformanceTarget_PerformanceTarget = {
|
|
446
|
+
PERFORMANCE_TARGET_UNSPECIFIED: 'PERFORMANCE_TARGET_UNSPECIFIED',
|
|
447
|
+
PERFORMANCE_OPTIMIZED: 'PERFORMANCE_OPTIMIZED',
|
|
448
|
+
STANDARD: 'STANDARD',
|
|
449
|
+
};
|
|
450
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
451
|
+
export const PeriodicTriggerConfiguration_TimeUnit = {
|
|
452
|
+
TIME_UNIT_UNSPECIFIED: 'TIME_UNIT_UNSPECIFIED',
|
|
453
|
+
HOURS: 'HOURS',
|
|
454
|
+
DAYS: 'DAYS',
|
|
455
|
+
WEEKS: 'WEEKS',
|
|
456
|
+
};
|
|
467
457
|
/**
|
|
468
458
|
* The reason for queuing the run.
|
|
469
459
|
* * `ACTIVE_RUNS_LIMIT_REACHED`: The run was queued due to reaching the workspace limit of active task runs.
|
|
470
460
|
* * `MAX_CONCURRENT_RUNS_REACHED`: The run was queued due to reaching the per-job limit of concurrent job runs.
|
|
471
461
|
* * `ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED`: The run was queued due to reaching the workspace limit of active run job tasks.
|
|
472
462
|
*/
|
|
473
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
474
|
-
export
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
})(QueueDetailsCode_Code || (QueueDetailsCode_Code = {}));
|
|
463
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
464
|
+
export const QueueDetailsCode_Code = {
|
|
465
|
+
ACTIVE_RUNS_LIMIT_REACHED: 'ACTIVE_RUNS_LIMIT_REACHED',
|
|
466
|
+
MAX_CONCURRENT_RUNS_REACHED: 'MAX_CONCURRENT_RUNS_REACHED',
|
|
467
|
+
ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED: 'ACTIVE_RUN_JOB_TASKS_LIMIT_REACHED',
|
|
468
|
+
};
|
|
480
469
|
/**
|
|
481
470
|
* A value indicating the run's lifecycle state. The possible values are:
|
|
482
471
|
* * `QUEUED`: The run is queued.
|
|
@@ -489,35 +478,33 @@ export var QueueDetailsCode_Code;
|
|
|
489
478
|
* * `BLOCKED`: The run is blocked on an upstream dependency.
|
|
490
479
|
* * `WAITING_FOR_RETRY`: The run is waiting for a retry.
|
|
491
480
|
*/
|
|
492
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
493
|
-
export
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
})(RunLifeCycleState_RunLifeCycleState || (RunLifeCycleState_RunLifeCycleState = {}));
|
|
481
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
482
|
+
export const RunLifeCycleState_RunLifeCycleState = {
|
|
483
|
+
PENDING: 'PENDING',
|
|
484
|
+
RUNNING: 'RUNNING',
|
|
485
|
+
TERMINATING: 'TERMINATING',
|
|
486
|
+
TERMINATED: 'TERMINATED',
|
|
487
|
+
SKIPPED: 'SKIPPED',
|
|
488
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
489
|
+
BLOCKED: 'BLOCKED',
|
|
490
|
+
WAITING_FOR_RETRY: 'WAITING_FOR_RETRY',
|
|
491
|
+
QUEUED: 'QUEUED',
|
|
492
|
+
};
|
|
505
493
|
/** The current state of the run. */
|
|
506
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
507
|
-
export
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
RunLifecycleStateV2_State["TERMINATED"] = "TERMINATED";
|
|
494
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
495
|
+
export const RunLifecycleStateV2_State = {
|
|
496
|
+
BLOCKED: 'BLOCKED',
|
|
497
|
+
PENDING: 'PENDING',
|
|
498
|
+
QUEUED: 'QUEUED',
|
|
499
|
+
RUNNING: 'RUNNING',
|
|
500
|
+
TERMINATING: 'TERMINATING',
|
|
501
|
+
TERMINATED: 'TERMINATED',
|
|
515
502
|
/**
|
|
516
503
|
* Runs in the Waiting state (e.g. cost-optimized runs) are intentionally delayed until an
|
|
517
504
|
* optimal compute scheduling time
|
|
518
505
|
*/
|
|
519
|
-
|
|
520
|
-
}
|
|
506
|
+
WAITING: 'WAITING',
|
|
507
|
+
};
|
|
521
508
|
/**
|
|
522
509
|
* A value indicating the run's result. The possible values are:
|
|
523
510
|
* * `SUCCESS`: The task completed successfully.
|
|
@@ -531,20 +518,19 @@ export var RunLifecycleStateV2_State;
|
|
|
531
518
|
* * `UPSTREAM_CANCELED`: The run was skipped because an upstream task was canceled.
|
|
532
519
|
* * `DISABLED`: The run was skipped because it was disabled explicitly by the user.
|
|
533
520
|
*/
|
|
534
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
535
|
-
export
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
})(RunResultState_RunResultState || (RunResultState_RunResultState = {}));
|
|
521
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
522
|
+
export const RunResultState_RunResultState = {
|
|
523
|
+
SUCCESS: 'SUCCESS',
|
|
524
|
+
FAILED: 'FAILED',
|
|
525
|
+
TIMEDOUT: 'TIMEDOUT',
|
|
526
|
+
CANCELED: 'CANCELED',
|
|
527
|
+
MAXIMUM_CONCURRENT_RUNS_REACHED: 'MAXIMUM_CONCURRENT_RUNS_REACHED',
|
|
528
|
+
UPSTREAM_CANCELED: 'UPSTREAM_CANCELED',
|
|
529
|
+
UPSTREAM_FAILED: 'UPSTREAM_FAILED',
|
|
530
|
+
EXCLUDED: 'EXCLUDED',
|
|
531
|
+
SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
|
|
532
|
+
DISABLED: 'DISABLED',
|
|
533
|
+
};
|
|
548
534
|
/**
|
|
549
535
|
* The state of the SQL alert.
|
|
550
536
|
*
|
|
@@ -552,28 +538,25 @@ export var RunResultState_RunResultState;
|
|
|
552
538
|
* * OK: alert evaluated and did not fulfill trigger conditions
|
|
553
539
|
* * TRIGGERED: alert evaluated and fulfilled trigger conditions
|
|
554
540
|
*/
|
|
555
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
556
|
-
export
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
TableTriggerConfiguration_Condition["ANY_UPDATED"] = "ANY_UPDATED";
|
|
575
|
-
TableTriggerConfiguration_Condition["ALL_UPDATED"] = "ALL_UPDATED";
|
|
576
|
-
})(TableTriggerConfiguration_Condition || (TableTriggerConfiguration_Condition = {}));
|
|
541
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
542
|
+
export const SqlAlertState_SqlAlertState = {
|
|
543
|
+
UNKNOWN: 'UNKNOWN',
|
|
544
|
+
OK: 'OK',
|
|
545
|
+
TRIGGERED: 'TRIGGERED',
|
|
546
|
+
};
|
|
547
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
548
|
+
export const SqlTask_SqlTaskQueryStatus = {
|
|
549
|
+
PENDING: 'PENDING',
|
|
550
|
+
RUNNING: 'RUNNING',
|
|
551
|
+
SUCCESS: 'SUCCESS',
|
|
552
|
+
FAILED: 'FAILED',
|
|
553
|
+
CANCELLED: 'CANCELLED',
|
|
554
|
+
};
|
|
555
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
556
|
+
export const TableTriggerConfiguration_Condition = {
|
|
557
|
+
ANY_UPDATED: 'ANY_UPDATED',
|
|
558
|
+
ALL_UPDATED: 'ALL_UPDATED',
|
|
559
|
+
};
|
|
577
560
|
/**
|
|
578
561
|
* The code indicates why the run was terminated. Additional codes might be introduced in future releases.
|
|
579
562
|
* * `SUCCESS`: The run was completed successfully.
|
|
@@ -603,27 +586,26 @@ export var TableTriggerConfiguration_Condition;
|
|
|
603
586
|
* * `BREAKING_CHANGE`: Run failed because of an intentional breaking change in Spark, but it will be retried with a mitigation config.
|
|
604
587
|
* * `CLUSTER_TERMINATED_BY_USER`: The run failed because the externally managed cluster entered an unusable state, likely due to the user terminating or restarting it outside the jobs service.
|
|
605
588
|
*/
|
|
606
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
607
|
-
export
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
TerminationCode_Code["CANCELED"] = "CANCELED";
|
|
589
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
590
|
+
export const TerminationCode_Code = {
|
|
591
|
+
SUCCESS: 'SUCCESS',
|
|
592
|
+
CANCELED: 'CANCELED',
|
|
611
593
|
/** DriverError represents failures when the driver restarted, or became unhealthy or unreachable during the run. */
|
|
612
|
-
|
|
594
|
+
DRIVER_ERROR: 'DRIVER_ERROR',
|
|
613
595
|
/**
|
|
614
596
|
* ClusterError represents failures due to cluster issues. These include the failures that occur during
|
|
615
597
|
* creation of a new cluster / starting up an existing cluster, cluster issues and timeouts during the job run
|
|
616
598
|
*/
|
|
617
|
-
|
|
599
|
+
CLUSTER_ERROR: 'CLUSTER_ERROR',
|
|
618
600
|
/** Returned if [[ProjectCheckoutInternalRepo]] RPC fails */
|
|
619
|
-
|
|
601
|
+
REPOSITORY_CHECKOUT_FAILED: 'REPOSITORY_CHECKOUT_FAILED',
|
|
620
602
|
/**
|
|
621
603
|
* *
|
|
622
604
|
* InvalidClusterRequest represents failures when the user provides invalid input for a cluster
|
|
623
605
|
* configuration for the run. For example, providing invalid parameter Values in the request/
|
|
624
606
|
* providing a bad request etc
|
|
625
607
|
*/
|
|
626
|
-
|
|
608
|
+
INVALID_CLUSTER_REQUEST: 'INVALID_CLUSTER_REQUEST',
|
|
627
609
|
/**
|
|
628
610
|
* *
|
|
629
611
|
* Returned if an org set a limit for number of their concurrent active runs and the run couldn't start
|
|
@@ -632,24 +614,24 @@ export var TerminationCode_Code;
|
|
|
632
614
|
* It should be looked into how we're handling the scenario where a given job exceeds its own internal concurrency
|
|
633
615
|
* limits.
|
|
634
616
|
*/
|
|
635
|
-
|
|
636
|
-
|
|
617
|
+
WORKSPACE_RUN_LIMIT_EXCEEDED: 'WORKSPACE_RUN_LIMIT_EXCEEDED',
|
|
618
|
+
FEATURE_DISABLED: 'FEATURE_DISABLED',
|
|
637
619
|
/**
|
|
638
620
|
* *
|
|
639
621
|
* ClusterRequestLimitExceeded represents failures when cluster
|
|
640
622
|
* creation, start, and upsize requests for a workspace exceeded the rate limit of
|
|
641
623
|
* [[com.databricks.backend.cluster.ClusterSizeConf.upsizeRefillRatePerMinPerOrg]] nodes per min.
|
|
642
624
|
*/
|
|
643
|
-
|
|
625
|
+
CLUSTER_REQUEST_LIMIT_EXCEEDED: 'CLUSTER_REQUEST_LIMIT_EXCEEDED',
|
|
644
626
|
/**
|
|
645
627
|
* *
|
|
646
628
|
* StorageAccessError represents failures when the access to user's <Databricks> file system fails.
|
|
647
629
|
* For example, misconfiguration on user's side like deleting AWS S3 bucket without cancelling the workspace,
|
|
648
630
|
* their Azure account being disabled, the storage buckets not being found etc.
|
|
649
631
|
*/
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
632
|
+
STORAGE_ACCESS_ERROR: 'STORAGE_ACCESS_ERROR',
|
|
633
|
+
RUN_EXECUTION_ERROR: 'RUN_EXECUTION_ERROR',
|
|
634
|
+
UNAUTHORIZED_ERROR: 'UNAUTHORIZED_ERROR',
|
|
653
635
|
/**
|
|
654
636
|
* *
|
|
655
637
|
* LibraryInstallationError represents failures due to issues related library installation.
|
|
@@ -657,40 +639,39 @@ export var TerminationCode_Code;
|
|
|
657
639
|
* enough permissions to install the library or any cloud dependency/ infrastructure failures during
|
|
658
640
|
* library installation etc
|
|
659
641
|
*/
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
642
|
+
LIBRARY_INSTALLATION_ERROR: 'LIBRARY_INSTALLATION_ERROR',
|
|
643
|
+
MAX_CONCURRENT_RUNS_EXCEEDED: 'MAX_CONCURRENT_RUNS_EXCEEDED',
|
|
644
|
+
MAX_SPARK_CONTEXTS_EXCEEDED: 'MAX_SPARK_CONTEXTS_EXCEEDED',
|
|
645
|
+
RESOURCE_NOT_FOUND: 'RESOURCE_NOT_FOUND',
|
|
646
|
+
INVALID_RUN_CONFIGURATION: 'INVALID_RUN_CONFIGURATION',
|
|
647
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
648
|
+
CLOUD_FAILURE: 'CLOUD_FAILURE',
|
|
649
|
+
MAX_JOB_QUEUE_SIZE_EXCEEDED: 'MAX_JOB_QUEUE_SIZE_EXCEEDED',
|
|
650
|
+
SKIPPED: 'SKIPPED',
|
|
651
|
+
USER_CANCELED: 'USER_CANCELED',
|
|
652
|
+
BUDGET_POLICY_LIMIT_EXCEEDED: 'BUDGET_POLICY_LIMIT_EXCEEDED',
|
|
653
|
+
DISABLED: 'DISABLED',
|
|
672
654
|
/**
|
|
673
655
|
* SuccessWithFailures represents that some child runs failed
|
|
674
656
|
* but the run was ultimately successful.
|
|
675
657
|
*/
|
|
676
|
-
|
|
658
|
+
SUCCESS_WITH_FAILURES: 'SUCCESS_WITH_FAILURES',
|
|
677
659
|
/** Run failed because of an intentional breaking change in Spark, but it will be retried with a mitigation config. */
|
|
678
|
-
|
|
679
|
-
}
|
|
660
|
+
BREAKING_CHANGE: 'BREAKING_CHANGE',
|
|
661
|
+
};
|
|
680
662
|
/**
|
|
681
663
|
* * `SUCCESS`: The run terminated without any issues
|
|
682
664
|
* * `INTERNAL_ERROR`: An error occurred in the <Databricks> platform. Please look at the [status page](https://status.databricks.com/) or contact support if the issue persists.
|
|
683
665
|
* * `CLIENT_ERROR`: The run was terminated because of an error caused by user input or the job configuration.
|
|
684
666
|
* * `CLOUD_FAILURE`: The run was terminated because of an issue with your cloud provider.
|
|
685
667
|
*/
|
|
686
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
687
|
-
export
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
})(TerminationType_Type || (TerminationType_Type = {}));
|
|
668
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
669
|
+
export const TerminationType_Type = {
|
|
670
|
+
SUCCESS: 'SUCCESS',
|
|
671
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
672
|
+
CLIENT_ERROR: 'CLIENT_ERROR',
|
|
673
|
+
CLOUD_FAILURE: 'CLOUD_FAILURE',
|
|
674
|
+
};
|
|
694
675
|
export const unmarshalAdlsgen2InfoSchema = z
|
|
695
676
|
.object({
|
|
696
677
|
destination: z.string().optional(),
|
|
@@ -715,7 +696,7 @@ export const unmarshalAlertTaskSchema = z
|
|
|
715
696
|
}));
|
|
716
697
|
export const unmarshalAlertTaskOutputSchema = z
|
|
717
698
|
.object({
|
|
718
|
-
alert_state: z.
|
|
699
|
+
alert_state: z.string().optional(),
|
|
719
700
|
})
|
|
720
701
|
.transform(d => ({
|
|
721
702
|
alertState: d.alert_state,
|
|
@@ -744,11 +725,11 @@ export const unmarshalAutoScaleSchema = z
|
|
|
744
725
|
export const unmarshalAwsAttributesSchema = z
|
|
745
726
|
.object({
|
|
746
727
|
first_on_demand: z.number().optional(),
|
|
747
|
-
availability: z.
|
|
728
|
+
availability: z.string().optional(),
|
|
748
729
|
zone_id: z.string().optional(),
|
|
749
730
|
instance_profile_arn: z.string().optional(),
|
|
750
731
|
spot_bid_price_percent: z.number().optional(),
|
|
751
|
-
ebs_volume_type: z.
|
|
732
|
+
ebs_volume_type: z.string().optional(),
|
|
752
733
|
ebs_volume_count: z.number().optional(),
|
|
753
734
|
ebs_volume_size: z.number().optional(),
|
|
754
735
|
ebs_volume_iops: z.number().optional(),
|
|
@@ -772,7 +753,7 @@ export const unmarshalAzureAttributesSchema = z
|
|
|
772
753
|
.lazy(() => unmarshalLogAnalyticsInfoSchema)
|
|
773
754
|
.optional(),
|
|
774
755
|
first_on_demand: z.number().optional(),
|
|
775
|
-
availability: z.
|
|
756
|
+
availability: z.string().optional(),
|
|
776
757
|
spot_bid_max_price: z.number().optional(),
|
|
777
758
|
})
|
|
778
759
|
.transform(d => ({
|
|
@@ -839,11 +820,11 @@ export const unmarshalBaseRunSchema = z
|
|
|
839
820
|
overriding_parameters: z
|
|
840
821
|
.lazy(() => unmarshalRunParametersSchema)
|
|
841
822
|
.optional(),
|
|
842
|
-
trigger: z.
|
|
823
|
+
trigger: z.string().optional(),
|
|
843
824
|
trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
|
|
844
825
|
run_name: z.string().optional(),
|
|
845
826
|
run_page_url: z.string().optional(),
|
|
846
|
-
run_type: z.
|
|
827
|
+
run_type: z.string().optional(),
|
|
847
828
|
tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
|
|
848
829
|
description: z.string().optional(),
|
|
849
830
|
attempt_number: z.number().optional(),
|
|
@@ -856,9 +837,7 @@ export const unmarshalBaseRunSchema = z
|
|
|
856
837
|
.transform(v => BigInt(v))
|
|
857
838
|
.optional(),
|
|
858
839
|
has_more: z.boolean().optional(),
|
|
859
|
-
effective_performance_target: z
|
|
860
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
861
|
-
.optional(),
|
|
840
|
+
effective_performance_target: z.string().optional(),
|
|
862
841
|
effective_usage_policy_id: z.string().optional(),
|
|
863
842
|
start_time: z
|
|
864
843
|
.union([z.number(), z.bigint()])
|
|
@@ -925,18 +904,12 @@ export const unmarshalBaseRunSchema = z
|
|
|
925
904
|
runDuration: d.run_duration,
|
|
926
905
|
queueDuration: d.queue_duration,
|
|
927
906
|
}));
|
|
928
|
-
|
|
929
|
-
export const
|
|
930
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
931
|
-
export const unmarshalCancelRunRequest_ResponseSchema = z.object({});
|
|
907
|
+
export const unmarshalCancelAllRunsResponseSchema = z.object({});
|
|
908
|
+
export const unmarshalCancelRunResponseSchema = z.object({});
|
|
932
909
|
export const unmarshalCleanRoomTaskRunStateSchema = z
|
|
933
910
|
.object({
|
|
934
|
-
life_cycle_state: z
|
|
935
|
-
|
|
936
|
-
.optional(),
|
|
937
|
-
result_state: z
|
|
938
|
-
.enum(CleanRoomTaskRunResultState_CleanRoomTaskRunResultState)
|
|
939
|
-
.optional(),
|
|
911
|
+
life_cycle_state: z.string().optional(),
|
|
912
|
+
result_state: z.string().optional(),
|
|
940
913
|
})
|
|
941
914
|
.transform(d => ({
|
|
942
915
|
lifeCycleState: d.life_cycle_state,
|
|
@@ -1054,9 +1027,9 @@ export const unmarshalClusterSpec_NewClusterSchema = z
|
|
|
1054
1027
|
enable_local_disk_encryption: z.boolean().optional(),
|
|
1055
1028
|
driver_instance_pool_id: z.string().optional(),
|
|
1056
1029
|
workload_type: z.lazy(() => unmarshalWorkloadTypeSchema).optional(),
|
|
1057
|
-
data_security_mode: z.
|
|
1058
|
-
runtime_engine: z.
|
|
1059
|
-
kind: z.
|
|
1030
|
+
data_security_mode: z.string().optional(),
|
|
1031
|
+
runtime_engine: z.string().optional(),
|
|
1032
|
+
kind: z.string().optional(),
|
|
1060
1033
|
use_ml_runtime: z.boolean().optional(),
|
|
1061
1034
|
is_single_node: z.boolean().optional(),
|
|
1062
1035
|
remote_disk_throughput: z.number().optional(),
|
|
@@ -1105,7 +1078,7 @@ export const unmarshalClusterSpec_NewClusterSchema = z
|
|
|
1105
1078
|
}));
|
|
1106
1079
|
export const unmarshalComputeSchema = z
|
|
1107
1080
|
.object({
|
|
1108
|
-
hardware_accelerator: z.
|
|
1081
|
+
hardware_accelerator: z.string().optional(),
|
|
1109
1082
|
})
|
|
1110
1083
|
.transform(d => ({
|
|
1111
1084
|
hardwareAccelerator: d.hardware_accelerator,
|
|
@@ -1123,7 +1096,7 @@ export const unmarshalComputeConfigSchema = z
|
|
|
1123
1096
|
}));
|
|
1124
1097
|
export const unmarshalConditionTaskSchema = z
|
|
1125
1098
|
.object({
|
|
1126
|
-
op: z.
|
|
1099
|
+
op: z.string().optional(),
|
|
1127
1100
|
left: z.string().optional(),
|
|
1128
1101
|
right: z.string().optional(),
|
|
1129
1102
|
outcome: z.string().optional(),
|
|
@@ -1136,15 +1109,14 @@ export const unmarshalConditionTaskSchema = z
|
|
|
1136
1109
|
}));
|
|
1137
1110
|
export const unmarshalContinuousSettingsSchema = z
|
|
1138
1111
|
.object({
|
|
1139
|
-
pause_status: z.
|
|
1140
|
-
task_retry_mode: z.
|
|
1112
|
+
pause_status: z.string().optional(),
|
|
1113
|
+
task_retry_mode: z.string().optional(),
|
|
1141
1114
|
})
|
|
1142
1115
|
.transform(d => ({
|
|
1143
1116
|
pauseStatus: d.pause_status,
|
|
1144
1117
|
taskRetryMode: d.task_retry_mode,
|
|
1145
1118
|
}));
|
|
1146
|
-
|
|
1147
|
-
export const unmarshalCreateJobRequest_ResponseSchema = z
|
|
1119
|
+
export const unmarshalCreateJobResponseSchema = z
|
|
1148
1120
|
.object({
|
|
1149
1121
|
job_id: z
|
|
1150
1122
|
.union([z.number(), z.bigint()])
|
|
@@ -1158,7 +1130,7 @@ export const unmarshalCronScheduleSchema = z
|
|
|
1158
1130
|
.object({
|
|
1159
1131
|
quartz_cron_expression: z.string().optional(),
|
|
1160
1132
|
timezone_id: z.string().optional(),
|
|
1161
|
-
pause_status: z.
|
|
1133
|
+
pause_status: z.string().optional(),
|
|
1162
1134
|
})
|
|
1163
1135
|
.transform(d => ({
|
|
1164
1136
|
quartzCronExpression: d.quartz_cron_expression,
|
|
@@ -1209,7 +1181,7 @@ export const unmarshalDbtCloudJobRunStepSchema = z
|
|
|
1209
1181
|
.object({
|
|
1210
1182
|
index: z.number().optional(),
|
|
1211
1183
|
name: z.string().optional(),
|
|
1212
|
-
status: z.
|
|
1184
|
+
status: z.string().optional(),
|
|
1213
1185
|
logs: z.string().optional(),
|
|
1214
1186
|
})
|
|
1215
1187
|
.transform(d => ({
|
|
@@ -1250,7 +1222,7 @@ export const unmarshalDbtPlatformJobRunStepSchema = z
|
|
|
1250
1222
|
.object({
|
|
1251
1223
|
index: z.number().optional(),
|
|
1252
1224
|
name: z.string().optional(),
|
|
1253
|
-
status: z.
|
|
1225
|
+
status: z.string().optional(),
|
|
1254
1226
|
logs: z.string().optional(),
|
|
1255
1227
|
name_truncated: z.boolean().optional(),
|
|
1256
1228
|
logs_truncated: z.boolean().optional(),
|
|
@@ -1295,7 +1267,7 @@ export const unmarshalDbtTaskSchema = z
|
|
|
1295
1267
|
warehouse_id: z.string().optional(),
|
|
1296
1268
|
profiles_directory: z.string().optional(),
|
|
1297
1269
|
catalog: z.string().optional(),
|
|
1298
|
-
source: z.
|
|
1270
|
+
source: z.string().optional(),
|
|
1299
1271
|
})
|
|
1300
1272
|
.transform(d => ({
|
|
1301
1273
|
projectDirectory: d.project_directory,
|
|
@@ -1316,10 +1288,8 @@ export const unmarshalDbtTask_DbtTaskOutputSchema = z
|
|
|
1316
1288
|
artifactsLink: d.artifacts_link,
|
|
1317
1289
|
artifactsHeaders: d.artifacts_headers,
|
|
1318
1290
|
}));
|
|
1319
|
-
|
|
1320
|
-
export const
|
|
1321
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1322
|
-
export const unmarshalDeleteRunRequest_ResponseSchema = z.object({});
|
|
1291
|
+
export const unmarshalDeleteJobResponseSchema = z.object({});
|
|
1292
|
+
export const unmarshalDeleteRunResponseSchema = z.object({});
|
|
1323
1293
|
export const unmarshalDockerBasicAuthSchema = z
|
|
1324
1294
|
.object({
|
|
1325
1295
|
username: z.string().optional(),
|
|
@@ -1340,12 +1310,11 @@ export const unmarshalDockerImageSchema = z
|
|
|
1340
1310
|
? { $case: 'basicAuth', basicAuth: d.basic_auth }
|
|
1341
1311
|
: undefined,
|
|
1342
1312
|
}));
|
|
1343
|
-
|
|
1344
|
-
export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema = z
|
|
1313
|
+
export const unmarshalEnforcePolicyComplianceResponseSchema = z
|
|
1345
1314
|
.object({
|
|
1346
1315
|
has_changes: z.boolean().optional(),
|
|
1347
1316
|
job_cluster_changes: z
|
|
1348
|
-
.array(z.lazy(() =>
|
|
1317
|
+
.array(z.lazy(() => unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema))
|
|
1349
1318
|
.optional(),
|
|
1350
1319
|
settings: z.lazy(() => unmarshalJobSettingsSchema).optional(),
|
|
1351
1320
|
})
|
|
@@ -1355,7 +1324,7 @@ export const unmarshalEnforcePolicyComplianceForJob_ResponseSchema = z
|
|
|
1355
1324
|
settings: d.settings,
|
|
1356
1325
|
}));
|
|
1357
1326
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1358
|
-
export const
|
|
1327
|
+
export const unmarshalEnforcePolicyComplianceResponse_JobClusterSettingsChangeSchema = z
|
|
1359
1328
|
.object({
|
|
1360
1329
|
field: z.string().optional(),
|
|
1361
1330
|
previous_value: z.string().optional(),
|
|
@@ -1381,8 +1350,7 @@ export const unmarshalEnvironmentSchema = z
|
|
|
1381
1350
|
environmentVersion: d.environment_version,
|
|
1382
1351
|
javaDependencies: d.java_dependencies,
|
|
1383
1352
|
}));
|
|
1384
|
-
|
|
1385
|
-
export const unmarshalExportRunRequest_ResponseSchema = z
|
|
1353
|
+
export const unmarshalExportRunResponseSchema = z
|
|
1386
1354
|
.object({
|
|
1387
1355
|
views: z.array(z.lazy(() => unmarshalViewItemSchema)).optional(),
|
|
1388
1356
|
})
|
|
@@ -1423,11 +1391,11 @@ export const unmarshalGcpAttributesSchema = z
|
|
|
1423
1391
|
use_preemptible_executors: z.boolean().optional(),
|
|
1424
1392
|
google_service_account: z.string().optional(),
|
|
1425
1393
|
boot_disk_size: z.number().optional(),
|
|
1426
|
-
availability: z.
|
|
1394
|
+
availability: z.string().optional(),
|
|
1427
1395
|
zone_id: z.string().optional(),
|
|
1428
1396
|
local_ssd_count: z.number().optional(),
|
|
1429
1397
|
first_on_demand: z.number().optional(),
|
|
1430
|
-
confidential_compute_type: z.
|
|
1398
|
+
confidential_compute_type: z.string().optional(),
|
|
1431
1399
|
})
|
|
1432
1400
|
.transform(d => ({
|
|
1433
1401
|
usePreemptibleExecutors: d.use_preemptible_executors,
|
|
@@ -1451,7 +1419,7 @@ export const unmarshalGenAiComputeTaskSchema = z
|
|
|
1451
1419
|
dl_runtime_image: z.string().optional(),
|
|
1452
1420
|
compute: z.lazy(() => unmarshalComputeConfigSchema).optional(),
|
|
1453
1421
|
command: z.string().optional(),
|
|
1454
|
-
source: z.
|
|
1422
|
+
source: z.string().optional(),
|
|
1455
1423
|
training_script_path: z.string().optional(),
|
|
1456
1424
|
yaml_parameters_file_path: z.string().optional(),
|
|
1457
1425
|
yaml_parameters: z.string().optional(),
|
|
@@ -1467,8 +1435,7 @@ export const unmarshalGenAiComputeTaskSchema = z
|
|
|
1467
1435
|
yamlParameters: d.yaml_parameters,
|
|
1468
1436
|
mlflowExperimentName: d.mlflow_experiment_name,
|
|
1469
1437
|
}));
|
|
1470
|
-
|
|
1471
|
-
export const unmarshalGetJobRequest_ResponseSchema = z
|
|
1438
|
+
export const unmarshalGetJobResponseSchema = z
|
|
1472
1439
|
.object({
|
|
1473
1440
|
next_page_token: z.string().optional(),
|
|
1474
1441
|
job_id: z
|
|
@@ -1499,8 +1466,7 @@ export const unmarshalGetJobRequest_ResponseSchema = z
|
|
|
1499
1466
|
effectiveBudgetPolicyId: d.effective_budget_policy_id,
|
|
1500
1467
|
effectiveUsagePolicyId: d.effective_usage_policy_id,
|
|
1501
1468
|
}));
|
|
1502
|
-
|
|
1503
|
-
export const unmarshalGetPolicyComplianceForJob_ResponseSchema = z
|
|
1469
|
+
export const unmarshalGetPolicyComplianceForJobResponseSchema = z
|
|
1504
1470
|
.object({
|
|
1505
1471
|
is_compliant: z.boolean().optional(),
|
|
1506
1472
|
violations: z.record(z.string(), z.string()).optional(),
|
|
@@ -1509,8 +1475,7 @@ export const unmarshalGetPolicyComplianceForJob_ResponseSchema = z
|
|
|
1509
1475
|
isCompliant: d.is_compliant,
|
|
1510
1476
|
violations: d.violations,
|
|
1511
1477
|
}));
|
|
1512
|
-
|
|
1513
|
-
export const unmarshalGetRunOutputRequest_ResponseSchema = z
|
|
1478
|
+
export const unmarshalGetRunOutputResponseSchema = z
|
|
1514
1479
|
.object({
|
|
1515
1480
|
metadata: z.lazy(() => unmarshalRunSchema).optional(),
|
|
1516
1481
|
error: z.string().optional(),
|
|
@@ -1588,8 +1553,7 @@ export const unmarshalGetRunOutputRequest_ResponseSchema = z
|
|
|
1588
1553
|
logsTruncated: d.logs_truncated,
|
|
1589
1554
|
errorTrace: d.error_trace,
|
|
1590
1555
|
}));
|
|
1591
|
-
|
|
1592
|
-
export const unmarshalGetRunRequest_ResponseSchema = z
|
|
1556
|
+
export const unmarshalGetRunResponseSchema = z
|
|
1593
1557
|
.object({
|
|
1594
1558
|
next_page_token: z.string().optional(),
|
|
1595
1559
|
job_id: z
|
|
@@ -1619,11 +1583,11 @@ export const unmarshalGetRunRequest_ResponseSchema = z
|
|
|
1619
1583
|
overriding_parameters: z
|
|
1620
1584
|
.lazy(() => unmarshalRunParametersSchema)
|
|
1621
1585
|
.optional(),
|
|
1622
|
-
trigger: z.
|
|
1586
|
+
trigger: z.string().optional(),
|
|
1623
1587
|
trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
|
|
1624
1588
|
run_name: z.string().optional(),
|
|
1625
1589
|
run_page_url: z.string().optional(),
|
|
1626
|
-
run_type: z.
|
|
1590
|
+
run_type: z.string().optional(),
|
|
1627
1591
|
tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
|
|
1628
1592
|
description: z.string().optional(),
|
|
1629
1593
|
attempt_number: z.number().optional(),
|
|
@@ -1636,9 +1600,7 @@ export const unmarshalGetRunRequest_ResponseSchema = z
|
|
|
1636
1600
|
.transform(v => BigInt(v))
|
|
1637
1601
|
.optional(),
|
|
1638
1602
|
has_more: z.boolean().optional(),
|
|
1639
|
-
effective_performance_target: z
|
|
1640
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
1641
|
-
.optional(),
|
|
1603
|
+
effective_performance_target: z.string().optional(),
|
|
1642
1604
|
effective_usage_policy_id: z.string().optional(),
|
|
1643
1605
|
start_time: z
|
|
1644
1606
|
.union([z.number(), z.bigint()])
|
|
@@ -1776,7 +1738,7 @@ export const unmarshalJobClusterSchema = z
|
|
|
1776
1738
|
}));
|
|
1777
1739
|
export const unmarshalJobDeploymentSchema = z
|
|
1778
1740
|
.object({
|
|
1779
|
-
kind: z.
|
|
1741
|
+
kind: z.string().optional(),
|
|
1780
1742
|
metadata_file_path: z.string().optional(),
|
|
1781
1743
|
deployment_id: z.string().optional(),
|
|
1782
1744
|
version_id: z.string().optional(),
|
|
@@ -1863,20 +1825,20 @@ export const unmarshalJobSettingsSchema = z
|
|
|
1863
1825
|
job_clusters: z.array(z.lazy(() => unmarshalJobClusterSchema)).optional(),
|
|
1864
1826
|
git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
|
|
1865
1827
|
tags: z.record(z.string(), z.string()).optional(),
|
|
1866
|
-
format: z.
|
|
1828
|
+
format: z.string().optional(),
|
|
1867
1829
|
queue: z.lazy(() => unmarshalQueueSettingsSchema).optional(),
|
|
1868
1830
|
parameters: z
|
|
1869
1831
|
.array(z.lazy(() => unmarshalJobLevelParameterSchema))
|
|
1870
1832
|
.optional(),
|
|
1871
1833
|
run_as: z.lazy(() => unmarshalJobRunAsSchema).optional(),
|
|
1872
|
-
edit_mode: z.
|
|
1834
|
+
edit_mode: z.string().optional(),
|
|
1873
1835
|
deployment: z.lazy(() => unmarshalJobDeploymentSchema).optional(),
|
|
1874
1836
|
environments: z
|
|
1875
1837
|
.array(z.lazy(() => unmarshalJobEnvironmentSchema))
|
|
1876
1838
|
.optional(),
|
|
1877
1839
|
budget_policy_id: z.string().optional(),
|
|
1878
1840
|
usage_policy_id: z.string().optional(),
|
|
1879
|
-
performance_target: z.
|
|
1841
|
+
performance_target: z.string().optional(),
|
|
1880
1842
|
max_retries: z.number().optional(),
|
|
1881
1843
|
min_retry_interval_millis: z.number().optional(),
|
|
1882
1844
|
retry_on_timeout: z.boolean().optional(),
|
|
@@ -1917,7 +1879,7 @@ export const unmarshalJobSourceSchema = z
|
|
|
1917
1879
|
.object({
|
|
1918
1880
|
job_config_path: z.string().optional(),
|
|
1919
1881
|
import_from_git_branch: z.string().optional(),
|
|
1920
|
-
dirty_state: z.
|
|
1882
|
+
dirty_state: z.string().optional(),
|
|
1921
1883
|
})
|
|
1922
1884
|
.transform(d => ({
|
|
1923
1885
|
jobConfigPath: d.job_config_path,
|
|
@@ -1931,8 +1893,8 @@ export const unmarshalJobSourceSchema = z
|
|
|
1931
1893
|
}));
|
|
1932
1894
|
export const unmarshalJobsHealthRuleSchema = z
|
|
1933
1895
|
.object({
|
|
1934
|
-
metric: z.
|
|
1935
|
-
op: z.
|
|
1896
|
+
metric: z.string().optional(),
|
|
1897
|
+
op: z.string().optional(),
|
|
1936
1898
|
value: z
|
|
1937
1899
|
.union([z.number(), z.bigint()])
|
|
1938
1900
|
.transform(v => BigInt(v))
|
|
@@ -1995,8 +1957,7 @@ export const unmarshalListJobComplianceForPolicy_JobComplianceSchema = z
|
|
|
1995
1957
|
isCompliant: d.is_compliant,
|
|
1996
1958
|
violations: d.violations,
|
|
1997
1959
|
}));
|
|
1998
|
-
|
|
1999
|
-
export const unmarshalListJobComplianceForPolicy_ResponseSchema = z
|
|
1960
|
+
export const unmarshalListJobComplianceResponseSchema = z
|
|
2000
1961
|
.object({
|
|
2001
1962
|
jobs: z
|
|
2002
1963
|
.array(z.lazy(() => unmarshalListJobComplianceForPolicy_JobComplianceSchema))
|
|
@@ -2009,8 +1970,7 @@ export const unmarshalListJobComplianceForPolicy_ResponseSchema = z
|
|
|
2009
1970
|
nextPageToken: d.next_page_token,
|
|
2010
1971
|
prevPageToken: d.prev_page_token,
|
|
2011
1972
|
}));
|
|
2012
|
-
|
|
2013
|
-
export const unmarshalListJobsRequest_ResponseSchema = z
|
|
1973
|
+
export const unmarshalListJobsResponseSchema = z
|
|
2014
1974
|
.object({
|
|
2015
1975
|
jobs: z.array(z.lazy(() => unmarshalBaseJobSchema)).optional(),
|
|
2016
1976
|
has_more: z.boolean().optional(),
|
|
@@ -2023,8 +1983,7 @@ export const unmarshalListJobsRequest_ResponseSchema = z
|
|
|
2023
1983
|
nextPageToken: d.next_page_token,
|
|
2024
1984
|
prevPageToken: d.prev_page_token,
|
|
2025
1985
|
}));
|
|
2026
|
-
|
|
2027
|
-
export const unmarshalListRunsRequest_ResponseSchema = z
|
|
1986
|
+
export const unmarshalListRunsResponseSchema = z
|
|
2028
1987
|
.object({
|
|
2029
1988
|
runs: z.array(z.lazy(() => unmarshalBaseRunSchema)).optional(),
|
|
2030
1989
|
has_more: z.boolean().optional(),
|
|
@@ -2068,9 +2027,7 @@ export const unmarshalModelTriggerConfigurationSchema = z
|
|
|
2068
2027
|
.object({
|
|
2069
2028
|
securable_name: z.string().optional(),
|
|
2070
2029
|
aliases: z.array(z.string()).optional(),
|
|
2071
|
-
condition: z
|
|
2072
|
-
.enum(ModelTriggerConfiguration_ModelTriggerCondition)
|
|
2073
|
-
.optional(),
|
|
2030
|
+
condition: z.string().optional(),
|
|
2074
2031
|
min_time_between_triggers_seconds: z.number().optional(),
|
|
2075
2032
|
wait_after_last_change_seconds: z.number().optional(),
|
|
2076
2033
|
})
|
|
@@ -2092,7 +2049,7 @@ export const unmarshalNotebookTaskSchema = z
|
|
|
2092
2049
|
.object({
|
|
2093
2050
|
notebook_path: z.string().optional(),
|
|
2094
2051
|
base_parameters: z.record(z.string(), z.string()).optional(),
|
|
2095
|
-
source: z.
|
|
2052
|
+
source: z.string().optional(),
|
|
2096
2053
|
warehouse_id: z.string().optional(),
|
|
2097
2054
|
})
|
|
2098
2055
|
.transform(d => ({
|
|
@@ -2139,7 +2096,7 @@ export const unmarshalOutputSchemaInfoSchema = z
|
|
|
2139
2096
|
export const unmarshalPeriodicTriggerConfigurationSchema = z
|
|
2140
2097
|
.object({
|
|
2141
2098
|
interval: z.number().optional(),
|
|
2142
|
-
unit: z.
|
|
2099
|
+
unit: z.string().optional(),
|
|
2143
2100
|
})
|
|
2144
2101
|
.transform(d => ({
|
|
2145
2102
|
interval: d.interval,
|
|
@@ -2183,8 +2140,8 @@ export const unmarshalPowerBiModelSchema = z
|
|
|
2183
2140
|
.object({
|
|
2184
2141
|
workspace_name: z.string().optional(),
|
|
2185
2142
|
model_name: z.string().optional(),
|
|
2186
|
-
storage_mode: z.
|
|
2187
|
-
authentication_method: z.
|
|
2143
|
+
storage_mode: z.string().optional(),
|
|
2144
|
+
authentication_method: z.string().optional(),
|
|
2188
2145
|
overwrite_existing: z.boolean().optional(),
|
|
2189
2146
|
})
|
|
2190
2147
|
.transform(d => ({
|
|
@@ -2199,7 +2156,7 @@ export const unmarshalPowerBiTableSchema = z
|
|
|
2199
2156
|
name: z.string().optional(),
|
|
2200
2157
|
catalog: z.string().optional(),
|
|
2201
2158
|
schema: z.string().optional(),
|
|
2202
|
-
storage_mode: z.
|
|
2159
|
+
storage_mode: z.string().optional(),
|
|
2203
2160
|
})
|
|
2204
2161
|
.transform(d => ({
|
|
2205
2162
|
name: d.name,
|
|
@@ -2267,7 +2224,7 @@ export const unmarshalPythonWheelTaskSchema = z
|
|
|
2267
2224
|
}));
|
|
2268
2225
|
export const unmarshalQueueDetailsSchema = z
|
|
2269
2226
|
.object({
|
|
2270
|
-
code: z.
|
|
2227
|
+
code: z.string().optional(),
|
|
2271
2228
|
message: z.string().optional(),
|
|
2272
2229
|
})
|
|
2273
2230
|
.transform(d => ({
|
|
@@ -2292,7 +2249,7 @@ export const unmarshalRCranLibrarySchema = z
|
|
|
2292
2249
|
}));
|
|
2293
2250
|
export const unmarshalRepairSchema = z
|
|
2294
2251
|
.object({
|
|
2295
|
-
type: z.
|
|
2252
|
+
type: z.string().optional(),
|
|
2296
2253
|
start_time: z
|
|
2297
2254
|
.union([z.number(), z.bigint()])
|
|
2298
2255
|
.transform(v => BigInt(v))
|
|
@@ -2310,9 +2267,7 @@ export const unmarshalRepairSchema = z
|
|
|
2310
2267
|
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
2311
2268
|
.optional(),
|
|
2312
2269
|
status: z.lazy(() => unmarshalRunStatusSchema).optional(),
|
|
2313
|
-
effective_performance_target: z
|
|
2314
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2315
|
-
.optional(),
|
|
2270
|
+
effective_performance_target: z.string().optional(),
|
|
2316
2271
|
})
|
|
2317
2272
|
.transform(d => ({
|
|
2318
2273
|
type: d.type,
|
|
@@ -2324,8 +2279,7 @@ export const unmarshalRepairSchema = z
|
|
|
2324
2279
|
status: d.status,
|
|
2325
2280
|
effectivePerformanceTarget: d.effective_performance_target,
|
|
2326
2281
|
}));
|
|
2327
|
-
|
|
2328
|
-
export const unmarshalRepairRunRequest_ResponseSchema = z
|
|
2282
|
+
export const unmarshalRepairRunResponseSchema = z
|
|
2329
2283
|
.object({
|
|
2330
2284
|
repair_id: z
|
|
2331
2285
|
.union([z.number(), z.bigint()])
|
|
@@ -2335,8 +2289,7 @@ export const unmarshalRepairRunRequest_ResponseSchema = z
|
|
|
2335
2289
|
.transform(d => ({
|
|
2336
2290
|
repairId: d.repair_id,
|
|
2337
2291
|
}));
|
|
2338
|
-
|
|
2339
|
-
export const unmarshalResetJobRequest_ResponseSchema = z.object({});
|
|
2292
|
+
export const unmarshalResetJobResponseSchema = z.object({});
|
|
2340
2293
|
export const unmarshalResolvedValuesSchema = z
|
|
2341
2294
|
.object({
|
|
2342
2295
|
notebook_task: z
|
|
@@ -2530,11 +2483,11 @@ export const unmarshalRunSchema = z
|
|
|
2530
2483
|
overriding_parameters: z
|
|
2531
2484
|
.lazy(() => unmarshalRunParametersSchema)
|
|
2532
2485
|
.optional(),
|
|
2533
|
-
trigger: z.
|
|
2486
|
+
trigger: z.string().optional(),
|
|
2534
2487
|
trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
|
|
2535
2488
|
run_name: z.string().optional(),
|
|
2536
2489
|
run_page_url: z.string().optional(),
|
|
2537
|
-
run_type: z.
|
|
2490
|
+
run_type: z.string().optional(),
|
|
2538
2491
|
tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
|
|
2539
2492
|
description: z.string().optional(),
|
|
2540
2493
|
attempt_number: z.number().optional(),
|
|
@@ -2547,9 +2500,7 @@ export const unmarshalRunSchema = z
|
|
|
2547
2500
|
.transform(v => BigInt(v))
|
|
2548
2501
|
.optional(),
|
|
2549
2502
|
has_more: z.boolean().optional(),
|
|
2550
|
-
effective_performance_target: z
|
|
2551
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2552
|
-
.optional(),
|
|
2503
|
+
effective_performance_target: z.string().optional(),
|
|
2553
2504
|
effective_usage_policy_id: z.string().optional(),
|
|
2554
2505
|
start_time: z
|
|
2555
2506
|
.union([z.number(), z.bigint()])
|
|
@@ -2667,8 +2618,7 @@ export const unmarshalRunJobTask_RunJobTaskOutputSchema = z
|
|
|
2667
2618
|
.transform(d => ({
|
|
2668
2619
|
runId: d.run_id,
|
|
2669
2620
|
}));
|
|
2670
|
-
|
|
2671
|
-
export const unmarshalRunNowRequest_ResponseSchema = z
|
|
2621
|
+
export const unmarshalRunNowResponseSchema = z
|
|
2672
2622
|
.object({
|
|
2673
2623
|
run_id: z
|
|
2674
2624
|
.union([z.number(), z.bigint()])
|
|
@@ -2706,8 +2656,8 @@ export const unmarshalRunParametersSchema = z
|
|
|
2706
2656
|
}));
|
|
2707
2657
|
export const unmarshalRunStateSchema = z
|
|
2708
2658
|
.object({
|
|
2709
|
-
life_cycle_state: z.
|
|
2710
|
-
result_state: z.
|
|
2659
|
+
life_cycle_state: z.string().optional(),
|
|
2660
|
+
result_state: z.string().optional(),
|
|
2711
2661
|
state_message: z.string().optional(),
|
|
2712
2662
|
user_cancelled_or_timedout: z.boolean().optional(),
|
|
2713
2663
|
queue_reason: z.string().optional(),
|
|
@@ -2721,7 +2671,7 @@ export const unmarshalRunStateSchema = z
|
|
|
2721
2671
|
}));
|
|
2722
2672
|
export const unmarshalRunStatusSchema = z
|
|
2723
2673
|
.object({
|
|
2724
|
-
state: z.
|
|
2674
|
+
state: z.string().optional(),
|
|
2725
2675
|
termination_details: z
|
|
2726
2676
|
.lazy(() => unmarshalTerminationDetailsSchema)
|
|
2727
2677
|
.optional(),
|
|
@@ -2745,13 +2695,11 @@ export const unmarshalRunTaskSchema = z
|
|
|
2745
2695
|
git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
|
|
2746
2696
|
resolved_values: z.lazy(() => unmarshalResolvedValuesSchema).optional(),
|
|
2747
2697
|
status: z.lazy(() => unmarshalRunStatusSchema).optional(),
|
|
2748
|
-
effective_performance_target: z
|
|
2749
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2750
|
-
.optional(),
|
|
2698
|
+
effective_performance_target: z.string().optional(),
|
|
2751
2699
|
task_key: z.string().optional(),
|
|
2752
2700
|
description: z.string().optional(),
|
|
2753
2701
|
depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
|
|
2754
|
-
run_if: z.
|
|
2702
|
+
run_if: z.string().optional(),
|
|
2755
2703
|
timeout_seconds: z.number().optional(),
|
|
2756
2704
|
email_notifications: z
|
|
2757
2705
|
.lazy(() => unmarshalJobEmailNotificationsSchema)
|
|
@@ -3008,7 +2956,7 @@ export const unmarshalSparkPythonTaskSchema = z
|
|
|
3008
2956
|
.object({
|
|
3009
2957
|
python_file: z.string().optional(),
|
|
3010
2958
|
parameters: z.array(z.string()).optional(),
|
|
3011
|
-
source: z.
|
|
2959
|
+
source: z.string().optional(),
|
|
3012
2960
|
})
|
|
3013
2961
|
.transform(d => ({
|
|
3014
2962
|
pythonFile: d.python_file,
|
|
@@ -3060,7 +3008,7 @@ export const unmarshalSqlTask_SqlAlertOutputSchema = z
|
|
|
3060
3008
|
.optional(),
|
|
3061
3009
|
output_link: z.string().optional(),
|
|
3062
3010
|
warehouse_id: z.string().optional(),
|
|
3063
|
-
alert_state: z.
|
|
3011
|
+
alert_state: z.string().optional(),
|
|
3064
3012
|
})
|
|
3065
3013
|
.transform(d => ({
|
|
3066
3014
|
queryText: d.query_text,
|
|
@@ -3087,7 +3035,7 @@ export const unmarshalSqlTask_SqlDashboardWidgetOutputSchema = z
|
|
|
3087
3035
|
widget_id: z.string().optional(),
|
|
3088
3036
|
widget_title: z.string().optional(),
|
|
3089
3037
|
output_link: z.string().optional(),
|
|
3090
|
-
status: z.
|
|
3038
|
+
status: z.string().optional(),
|
|
3091
3039
|
error: z.lazy(() => unmarshalSqlTask_SqlOutputErrorSchema).optional(),
|
|
3092
3040
|
start_time: z
|
|
3093
3041
|
.union([z.number(), z.bigint()])
|
|
@@ -3197,7 +3145,7 @@ export const unmarshalSqlTaskDashboardSchema = z
|
|
|
3197
3145
|
export const unmarshalSqlTaskFileSchema = z
|
|
3198
3146
|
.object({
|
|
3199
3147
|
path: z.string().optional(),
|
|
3200
|
-
source: z.
|
|
3148
|
+
source: z.string().optional(),
|
|
3201
3149
|
})
|
|
3202
3150
|
.transform(d => ({
|
|
3203
3151
|
path: d.path,
|
|
@@ -3224,8 +3172,7 @@ export const unmarshalSqlTaskSubscriptionSchema = z
|
|
|
3224
3172
|
? { $case: 'destinationId', destinationId: d.destination_id }
|
|
3225
3173
|
: undefined,
|
|
3226
3174
|
}));
|
|
3227
|
-
|
|
3228
|
-
export const unmarshalSubmitRunRequest_ResponseSchema = z
|
|
3175
|
+
export const unmarshalSubmitRunResponseSchema = z
|
|
3229
3176
|
.object({
|
|
3230
3177
|
run_id: z
|
|
3231
3178
|
.union([z.number(), z.bigint()])
|
|
@@ -3275,7 +3222,7 @@ export const unmarshalTableTriggerConfigurationSchema = z
|
|
|
3275
3222
|
table_names: z.array(z.string()).optional(),
|
|
3276
3223
|
min_time_between_triggers_seconds: z.number().optional(),
|
|
3277
3224
|
wait_after_last_change_seconds: z.number().optional(),
|
|
3278
|
-
condition: z.
|
|
3225
|
+
condition: z.string().optional(),
|
|
3279
3226
|
})
|
|
3280
3227
|
.transform(d => ({
|
|
3281
3228
|
tableNames: d.table_names,
|
|
@@ -3307,7 +3254,7 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3307
3254
|
.object({
|
|
3308
3255
|
task_key: z.string().optional(),
|
|
3309
3256
|
depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
|
|
3310
|
-
run_if: z.
|
|
3257
|
+
run_if: z.string().optional(),
|
|
3311
3258
|
timeout_seconds: z.number().optional(),
|
|
3312
3259
|
health: z.lazy(() => unmarshalJobsHealthRulesSchema).optional(),
|
|
3313
3260
|
email_notifications: z
|
|
@@ -3477,8 +3424,8 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3477
3424
|
}));
|
|
3478
3425
|
export const unmarshalTerminationDetailsSchema = z
|
|
3479
3426
|
.object({
|
|
3480
|
-
code: z.
|
|
3481
|
-
type: z.
|
|
3427
|
+
code: z.string().optional(),
|
|
3428
|
+
type: z.string().optional(),
|
|
3482
3429
|
message: z.string().optional(),
|
|
3483
3430
|
})
|
|
3484
3431
|
.transform(d => ({
|
|
@@ -3488,7 +3435,7 @@ export const unmarshalTerminationDetailsSchema = z
|
|
|
3488
3435
|
}));
|
|
3489
3436
|
export const unmarshalTriggerSettingsSchema = z
|
|
3490
3437
|
.object({
|
|
3491
|
-
pause_status: z.
|
|
3438
|
+
pause_status: z.string().optional(),
|
|
3492
3439
|
file_arrival: z
|
|
3493
3440
|
.lazy(() => unmarshalFileArrivalTriggerConfigurationSchema)
|
|
3494
3441
|
.optional(),
|
|
@@ -3526,13 +3473,12 @@ export const unmarshalTriggerStateSchema = z
|
|
|
3526
3473
|
? { $case: 'fileArrival', fileArrival: d.file_arrival }
|
|
3527
3474
|
: undefined,
|
|
3528
3475
|
}));
|
|
3529
|
-
|
|
3530
|
-
export const unmarshalUpdateJobRequest_ResponseSchema = z.object({});
|
|
3476
|
+
export const unmarshalUpdateJobResponseSchema = z.object({});
|
|
3531
3477
|
export const unmarshalViewItemSchema = z
|
|
3532
3478
|
.object({
|
|
3533
3479
|
content: z.string().optional(),
|
|
3534
3480
|
name: z.string().optional(),
|
|
3535
|
-
type: z.
|
|
3481
|
+
type: z.string().optional(),
|
|
3536
3482
|
})
|
|
3537
3483
|
.transform(d => ({
|
|
3538
3484
|
content: d.content,
|
|
@@ -3615,7 +3561,7 @@ export const marshalAccessControlRequestSchema = z
|
|
|
3615
3561
|
}),
|
|
3616
3562
|
])
|
|
3617
3563
|
.optional(),
|
|
3618
|
-
permissionLevel: z.
|
|
3564
|
+
permissionLevel: z.string().optional(),
|
|
3619
3565
|
})
|
|
3620
3566
|
.transform(d => ({
|
|
3621
3567
|
...(d.principalName?.$case === 'userName' && {
|
|
@@ -3683,11 +3629,11 @@ export const marshalAutoScaleSchema = z
|
|
|
3683
3629
|
export const marshalAwsAttributesSchema = z
|
|
3684
3630
|
.object({
|
|
3685
3631
|
firstOnDemand: z.number().optional(),
|
|
3686
|
-
availability: z.
|
|
3632
|
+
availability: z.string().optional(),
|
|
3687
3633
|
zoneId: z.string().optional(),
|
|
3688
3634
|
instanceProfileArn: z.string().optional(),
|
|
3689
3635
|
spotBidPricePercent: z.number().optional(),
|
|
3690
|
-
ebsVolumeType: z.
|
|
3636
|
+
ebsVolumeType: z.string().optional(),
|
|
3691
3637
|
ebsVolumeCount: z.number().optional(),
|
|
3692
3638
|
ebsVolumeSize: z.number().optional(),
|
|
3693
3639
|
ebsVolumeIops: z.number().optional(),
|
|
@@ -3709,7 +3655,7 @@ export const marshalAzureAttributesSchema = z
|
|
|
3709
3655
|
.object({
|
|
3710
3656
|
logAnalyticsInfo: z.lazy(() => marshalLogAnalyticsInfoSchema).optional(),
|
|
3711
3657
|
firstOnDemand: z.number().optional(),
|
|
3712
|
-
availability: z.
|
|
3658
|
+
availability: z.string().optional(),
|
|
3713
3659
|
spotBidMaxPrice: z.number().optional(),
|
|
3714
3660
|
})
|
|
3715
3661
|
.transform(d => ({
|
|
@@ -3803,9 +3749,9 @@ export const marshalClusterSpec_NewClusterSchema = z
|
|
|
3803
3749
|
enableLocalDiskEncryption: z.boolean().optional(),
|
|
3804
3750
|
driverInstancePoolId: z.string().optional(),
|
|
3805
3751
|
workloadType: z.lazy(() => marshalWorkloadTypeSchema).optional(),
|
|
3806
|
-
dataSecurityMode: z.
|
|
3807
|
-
runtimeEngine: z.
|
|
3808
|
-
kind: z.
|
|
3752
|
+
dataSecurityMode: z.string().optional(),
|
|
3753
|
+
runtimeEngine: z.string().optional(),
|
|
3754
|
+
kind: z.string().optional(),
|
|
3809
3755
|
useMlRuntime: z.boolean().optional(),
|
|
3810
3756
|
isSingleNode: z.boolean().optional(),
|
|
3811
3757
|
remoteDiskThroughput: z.number().optional(),
|
|
@@ -3858,7 +3804,7 @@ export const marshalClusterSpec_NewClusterSchema = z
|
|
|
3858
3804
|
}));
|
|
3859
3805
|
export const marshalComputeSchema = z
|
|
3860
3806
|
.object({
|
|
3861
|
-
hardwareAccelerator: z.
|
|
3807
|
+
hardwareAccelerator: z.string().optional(),
|
|
3862
3808
|
})
|
|
3863
3809
|
.transform(d => ({
|
|
3864
3810
|
hardware_accelerator: d.hardwareAccelerator,
|
|
@@ -3876,7 +3822,7 @@ export const marshalComputeConfigSchema = z
|
|
|
3876
3822
|
}));
|
|
3877
3823
|
export const marshalConditionTaskSchema = z
|
|
3878
3824
|
.object({
|
|
3879
|
-
op: z.
|
|
3825
|
+
op: z.string().optional(),
|
|
3880
3826
|
left: z.string().optional(),
|
|
3881
3827
|
right: z.string().optional(),
|
|
3882
3828
|
outcome: z.string().optional(),
|
|
@@ -3889,8 +3835,8 @@ export const marshalConditionTaskSchema = z
|
|
|
3889
3835
|
}));
|
|
3890
3836
|
export const marshalContinuousSettingsSchema = z
|
|
3891
3837
|
.object({
|
|
3892
|
-
pauseStatus: z.
|
|
3893
|
-
taskRetryMode: z.
|
|
3838
|
+
pauseStatus: z.string().optional(),
|
|
3839
|
+
taskRetryMode: z.string().optional(),
|
|
3894
3840
|
})
|
|
3895
3841
|
.transform(d => ({
|
|
3896
3842
|
pause_status: d.pauseStatus,
|
|
@@ -3922,18 +3868,18 @@ export const marshalCreateJobRequestSchema = z
|
|
|
3922
3868
|
jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
|
|
3923
3869
|
gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
|
|
3924
3870
|
tags: z.record(z.string(), z.string()).optional(),
|
|
3925
|
-
format: z.
|
|
3871
|
+
format: z.string().optional(),
|
|
3926
3872
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
3927
3873
|
parameters: z
|
|
3928
3874
|
.array(z.lazy(() => marshalJobLevelParameterSchema))
|
|
3929
3875
|
.optional(),
|
|
3930
3876
|
runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
|
|
3931
|
-
editMode: z.
|
|
3877
|
+
editMode: z.string().optional(),
|
|
3932
3878
|
deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
|
|
3933
3879
|
environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
|
|
3934
3880
|
budgetPolicyId: z.string().optional(),
|
|
3935
3881
|
usagePolicyId: z.string().optional(),
|
|
3936
|
-
performanceTarget: z.
|
|
3882
|
+
performanceTarget: z.string().optional(),
|
|
3937
3883
|
maxRetries: z.number().optional(),
|
|
3938
3884
|
minRetryIntervalMillis: z.number().optional(),
|
|
3939
3885
|
retryOnTimeout: z.boolean().optional(),
|
|
@@ -3975,7 +3921,7 @@ export const marshalCronScheduleSchema = z
|
|
|
3975
3921
|
.object({
|
|
3976
3922
|
quartzCronExpression: z.string().optional(),
|
|
3977
3923
|
timezoneId: z.string().optional(),
|
|
3978
|
-
pauseStatus: z.
|
|
3924
|
+
pauseStatus: z.string().optional(),
|
|
3979
3925
|
})
|
|
3980
3926
|
.transform(d => ({
|
|
3981
3927
|
quartz_cron_expression: d.quartzCronExpression,
|
|
@@ -4028,7 +3974,7 @@ export const marshalDbtTaskSchema = z
|
|
|
4028
3974
|
warehouseId: z.string().optional(),
|
|
4029
3975
|
profilesDirectory: z.string().optional(),
|
|
4030
3976
|
catalog: z.string().optional(),
|
|
4031
|
-
source: z.
|
|
3977
|
+
source: z.string().optional(),
|
|
4032
3978
|
})
|
|
4033
3979
|
.transform(d => ({
|
|
4034
3980
|
project_directory: d.projectDirectory,
|
|
@@ -4131,11 +4077,11 @@ export const marshalGcpAttributesSchema = z
|
|
|
4131
4077
|
usePreemptibleExecutors: z.boolean().optional(),
|
|
4132
4078
|
googleServiceAccount: z.string().optional(),
|
|
4133
4079
|
bootDiskSize: z.number().optional(),
|
|
4134
|
-
availability: z.
|
|
4080
|
+
availability: z.string().optional(),
|
|
4135
4081
|
zoneId: z.string().optional(),
|
|
4136
4082
|
localSsdCount: z.number().optional(),
|
|
4137
4083
|
firstOnDemand: z.number().optional(),
|
|
4138
|
-
confidentialComputeType: z.
|
|
4084
|
+
confidentialComputeType: z.string().optional(),
|
|
4139
4085
|
})
|
|
4140
4086
|
.transform(d => ({
|
|
4141
4087
|
use_preemptible_executors: d.usePreemptibleExecutors,
|
|
@@ -4159,7 +4105,7 @@ export const marshalGenAiComputeTaskSchema = z
|
|
|
4159
4105
|
dlRuntimeImage: z.string().optional(),
|
|
4160
4106
|
compute: z.lazy(() => marshalComputeConfigSchema).optional(),
|
|
4161
4107
|
command: z.string().optional(),
|
|
4162
|
-
source: z.
|
|
4108
|
+
source: z.string().optional(),
|
|
4163
4109
|
trainingScriptPath: z.string().optional(),
|
|
4164
4110
|
yamlParametersFilePath: z.string().optional(),
|
|
4165
4111
|
yamlParameters: z.string().optional(),
|
|
@@ -4268,7 +4214,7 @@ export const marshalJobClusterSchema = z
|
|
|
4268
4214
|
}));
|
|
4269
4215
|
export const marshalJobDeploymentSchema = z
|
|
4270
4216
|
.object({
|
|
4271
|
-
kind: z.
|
|
4217
|
+
kind: z.string().optional(),
|
|
4272
4218
|
metadataFilePath: z.string().optional(),
|
|
4273
4219
|
deploymentId: z.string().optional(),
|
|
4274
4220
|
versionId: z.string().optional(),
|
|
@@ -4359,18 +4305,18 @@ export const marshalJobSettingsSchema = z
|
|
|
4359
4305
|
jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
|
|
4360
4306
|
gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
|
|
4361
4307
|
tags: z.record(z.string(), z.string()).optional(),
|
|
4362
|
-
format: z.
|
|
4308
|
+
format: z.string().optional(),
|
|
4363
4309
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
4364
4310
|
parameters: z
|
|
4365
4311
|
.array(z.lazy(() => marshalJobLevelParameterSchema))
|
|
4366
4312
|
.optional(),
|
|
4367
4313
|
runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
|
|
4368
|
-
editMode: z.
|
|
4314
|
+
editMode: z.string().optional(),
|
|
4369
4315
|
deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
|
|
4370
4316
|
environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
|
|
4371
4317
|
budgetPolicyId: z.string().optional(),
|
|
4372
4318
|
usagePolicyId: z.string().optional(),
|
|
4373
|
-
performanceTarget: z.
|
|
4319
|
+
performanceTarget: z.string().optional(),
|
|
4374
4320
|
maxRetries: z.number().optional(),
|
|
4375
4321
|
minRetryIntervalMillis: z.number().optional(),
|
|
4376
4322
|
retryOnTimeout: z.boolean().optional(),
|
|
@@ -4418,7 +4364,7 @@ export const marshalJobSourceSchema = z
|
|
|
4418
4364
|
}),
|
|
4419
4365
|
])
|
|
4420
4366
|
.optional(),
|
|
4421
|
-
dirtyState: z.
|
|
4367
|
+
dirtyState: z.string().optional(),
|
|
4422
4368
|
})
|
|
4423
4369
|
.transform(d => ({
|
|
4424
4370
|
job_config_path: d.jobConfigPath,
|
|
@@ -4429,8 +4375,8 @@ export const marshalJobSourceSchema = z
|
|
|
4429
4375
|
}));
|
|
4430
4376
|
export const marshalJobsHealthRuleSchema = z
|
|
4431
4377
|
.object({
|
|
4432
|
-
metric: z.
|
|
4433
|
-
op: z.
|
|
4378
|
+
metric: z.string().optional(),
|
|
4379
|
+
op: z.string().optional(),
|
|
4434
4380
|
value: z.bigint().optional(),
|
|
4435
4381
|
})
|
|
4436
4382
|
.transform(d => ({
|
|
@@ -4508,9 +4454,7 @@ export const marshalModelTriggerConfigurationSchema = z
|
|
|
4508
4454
|
.object({
|
|
4509
4455
|
securableName: z.string().optional(),
|
|
4510
4456
|
aliases: z.array(z.string()).optional(),
|
|
4511
|
-
condition: z
|
|
4512
|
-
.enum(ModelTriggerConfiguration_ModelTriggerCondition)
|
|
4513
|
-
.optional(),
|
|
4457
|
+
condition: z.string().optional(),
|
|
4514
4458
|
minTimeBetweenTriggersSeconds: z.number().optional(),
|
|
4515
4459
|
waitAfterLastChangeSeconds: z.number().optional(),
|
|
4516
4460
|
})
|
|
@@ -4532,7 +4476,7 @@ export const marshalNotebookTaskSchema = z
|
|
|
4532
4476
|
.object({
|
|
4533
4477
|
notebookPath: z.string().optional(),
|
|
4534
4478
|
baseParameters: z.record(z.string(), z.string()).optional(),
|
|
4535
|
-
source: z.
|
|
4479
|
+
source: z.string().optional(),
|
|
4536
4480
|
warehouseId: z.string().optional(),
|
|
4537
4481
|
})
|
|
4538
4482
|
.transform(d => ({
|
|
@@ -4555,7 +4499,7 @@ export const marshalNotificationSettingsSchema = z
|
|
|
4555
4499
|
export const marshalPeriodicTriggerConfigurationSchema = z
|
|
4556
4500
|
.object({
|
|
4557
4501
|
interval: z.number().optional(),
|
|
4558
|
-
unit: z.
|
|
4502
|
+
unit: z.string().optional(),
|
|
4559
4503
|
})
|
|
4560
4504
|
.transform(d => ({
|
|
4561
4505
|
interval: d.interval,
|
|
@@ -4599,8 +4543,8 @@ export const marshalPowerBiModelSchema = z
|
|
|
4599
4543
|
.object({
|
|
4600
4544
|
workspaceName: z.string().optional(),
|
|
4601
4545
|
modelName: z.string().optional(),
|
|
4602
|
-
storageMode: z.
|
|
4603
|
-
authenticationMethod: z.
|
|
4546
|
+
storageMode: z.string().optional(),
|
|
4547
|
+
authenticationMethod: z.string().optional(),
|
|
4604
4548
|
overwriteExisting: z.boolean().optional(),
|
|
4605
4549
|
})
|
|
4606
4550
|
.transform(d => ({
|
|
@@ -4615,7 +4559,7 @@ export const marshalPowerBiTableSchema = z
|
|
|
4615
4559
|
name: z.string().optional(),
|
|
4616
4560
|
catalog: z.string().optional(),
|
|
4617
4561
|
schema: z.string().optional(),
|
|
4618
|
-
storageMode: z.
|
|
4562
|
+
storageMode: z.string().optional(),
|
|
4619
4563
|
})
|
|
4620
4564
|
.transform(d => ({
|
|
4621
4565
|
name: d.name,
|
|
@@ -4705,7 +4649,7 @@ export const marshalRepairRunRequestSchema = z
|
|
|
4705
4649
|
jobParameters: z.record(z.string(), z.string()).optional(),
|
|
4706
4650
|
rerunAllFailedTasks: z.boolean().optional(),
|
|
4707
4651
|
rerunDependentTasks: z.boolean().optional(),
|
|
4708
|
-
performanceTarget: z.
|
|
4652
|
+
performanceTarget: z.string().optional(),
|
|
4709
4653
|
pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
|
|
4710
4654
|
jarParams: z.array(z.string()).optional(),
|
|
4711
4655
|
notebookParams: z.record(z.string(), z.string()).optional(),
|
|
@@ -4773,7 +4717,7 @@ export const marshalRunNowRequestSchema = z
|
|
|
4773
4717
|
idempotencyToken: z.string().optional(),
|
|
4774
4718
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
4775
4719
|
only: z.array(z.string()).optional(),
|
|
4776
|
-
performanceTarget: z.
|
|
4720
|
+
performanceTarget: z.string().optional(),
|
|
4777
4721
|
pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
|
|
4778
4722
|
jarParams: z.array(z.string()).optional(),
|
|
4779
4723
|
notebookParams: z.record(z.string(), z.string()).optional(),
|
|
@@ -4804,7 +4748,7 @@ export const marshalRunTaskSettingsSchema = z
|
|
|
4804
4748
|
taskKey: z.string().optional(),
|
|
4805
4749
|
description: z.string().optional(),
|
|
4806
4750
|
dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
|
|
4807
|
-
runIf: z.
|
|
4751
|
+
runIf: z.string().optional(),
|
|
4808
4752
|
timeoutSeconds: z.number().optional(),
|
|
4809
4753
|
emailNotifications: z
|
|
4810
4754
|
.lazy(() => marshalJobEmailNotificationsSchema)
|
|
@@ -5037,7 +4981,7 @@ export const marshalSparkPythonTaskSchema = z
|
|
|
5037
4981
|
.object({
|
|
5038
4982
|
pythonFile: z.string().optional(),
|
|
5039
4983
|
parameters: z.array(z.string()).optional(),
|
|
5040
|
-
source: z.
|
|
4984
|
+
source: z.string().optional(),
|
|
5041
4985
|
})
|
|
5042
4986
|
.transform(d => ({
|
|
5043
4987
|
python_file: d.pythonFile,
|
|
@@ -5124,7 +5068,7 @@ export const marshalSqlTaskDashboardSchema = z
|
|
|
5124
5068
|
export const marshalSqlTaskFileSchema = z
|
|
5125
5069
|
.object({
|
|
5126
5070
|
path: z.string().optional(),
|
|
5127
|
-
source: z.
|
|
5071
|
+
source: z.string().optional(),
|
|
5128
5072
|
})
|
|
5129
5073
|
.transform(d => ({
|
|
5130
5074
|
path: d.path,
|
|
@@ -5243,7 +5187,7 @@ export const marshalTableTriggerConfigurationSchema = z
|
|
|
5243
5187
|
tableNames: z.array(z.string()).optional(),
|
|
5244
5188
|
minTimeBetweenTriggersSeconds: z.number().optional(),
|
|
5245
5189
|
waitAfterLastChangeSeconds: z.number().optional(),
|
|
5246
|
-
condition: z.
|
|
5190
|
+
condition: z.string().optional(),
|
|
5247
5191
|
})
|
|
5248
5192
|
.transform(d => ({
|
|
5249
5193
|
table_names: d.tableNames,
|
|
@@ -5264,7 +5208,7 @@ export const marshalTaskSettingsSchema = z
|
|
|
5264
5208
|
.object({
|
|
5265
5209
|
taskKey: z.string().optional(),
|
|
5266
5210
|
dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
|
|
5267
|
-
runIf: z.
|
|
5211
|
+
runIf: z.string().optional(),
|
|
5268
5212
|
timeoutSeconds: z.number().optional(),
|
|
5269
5213
|
health: z.lazy(() => marshalJobsHealthRulesSchema).optional(),
|
|
5270
5214
|
emailNotifications: z
|
|
@@ -5464,7 +5408,7 @@ export const marshalTaskSettingsSchema = z
|
|
|
5464
5408
|
}));
|
|
5465
5409
|
export const marshalTriggerSettingsSchema = z
|
|
5466
5410
|
.object({
|
|
5467
|
-
pauseStatus: z.
|
|
5411
|
+
pauseStatus: z.string().optional(),
|
|
5468
5412
|
configuration: z
|
|
5469
5413
|
.discriminatedUnion('$case', [
|
|
5470
5414
|
z.object({
|