@databricks/sdk-jobs 0.1.0-dev.3 → 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/model.d.ts +345 -293
- package/dist/v2/model.d.ts.map +1 -1
- package/dist/v2/model.js +437 -474
- 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 +4 -5
- package/src/v2/client.ts +0 -1249
- package/src/v2/index.ts +0 -284
- package/src/v2/model.ts +0 -10210
- 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()])
|
|
@@ -929,12 +908,8 @@ export const unmarshalCancelAllRunsResponseSchema = z.object({});
|
|
|
929
908
|
export const unmarshalCancelRunResponseSchema = z.object({});
|
|
930
909
|
export const unmarshalCleanRoomTaskRunStateSchema = z
|
|
931
910
|
.object({
|
|
932
|
-
life_cycle_state: z
|
|
933
|
-
|
|
934
|
-
.optional(),
|
|
935
|
-
result_state: z
|
|
936
|
-
.enum(CleanRoomTaskRunResultState_CleanRoomTaskRunResultState)
|
|
937
|
-
.optional(),
|
|
911
|
+
life_cycle_state: z.string().optional(),
|
|
912
|
+
result_state: z.string().optional(),
|
|
938
913
|
})
|
|
939
914
|
.transform(d => ({
|
|
940
915
|
lifeCycleState: d.life_cycle_state,
|
|
@@ -1052,9 +1027,9 @@ export const unmarshalClusterSpec_NewClusterSchema = z
|
|
|
1052
1027
|
enable_local_disk_encryption: z.boolean().optional(),
|
|
1053
1028
|
driver_instance_pool_id: z.string().optional(),
|
|
1054
1029
|
workload_type: z.lazy(() => unmarshalWorkloadTypeSchema).optional(),
|
|
1055
|
-
data_security_mode: z.
|
|
1056
|
-
runtime_engine: z.
|
|
1057
|
-
kind: z.
|
|
1030
|
+
data_security_mode: z.string().optional(),
|
|
1031
|
+
runtime_engine: z.string().optional(),
|
|
1032
|
+
kind: z.string().optional(),
|
|
1058
1033
|
use_ml_runtime: z.boolean().optional(),
|
|
1059
1034
|
is_single_node: z.boolean().optional(),
|
|
1060
1035
|
remote_disk_throughput: z.number().optional(),
|
|
@@ -1103,7 +1078,7 @@ export const unmarshalClusterSpec_NewClusterSchema = z
|
|
|
1103
1078
|
}));
|
|
1104
1079
|
export const unmarshalComputeSchema = z
|
|
1105
1080
|
.object({
|
|
1106
|
-
hardware_accelerator: z.
|
|
1081
|
+
hardware_accelerator: z.string().optional(),
|
|
1107
1082
|
})
|
|
1108
1083
|
.transform(d => ({
|
|
1109
1084
|
hardwareAccelerator: d.hardware_accelerator,
|
|
@@ -1121,7 +1096,7 @@ export const unmarshalComputeConfigSchema = z
|
|
|
1121
1096
|
}));
|
|
1122
1097
|
export const unmarshalConditionTaskSchema = z
|
|
1123
1098
|
.object({
|
|
1124
|
-
op: z.
|
|
1099
|
+
op: z.string().optional(),
|
|
1125
1100
|
left: z.string().optional(),
|
|
1126
1101
|
right: z.string().optional(),
|
|
1127
1102
|
outcome: z.string().optional(),
|
|
@@ -1134,8 +1109,8 @@ export const unmarshalConditionTaskSchema = z
|
|
|
1134
1109
|
}));
|
|
1135
1110
|
export const unmarshalContinuousSettingsSchema = z
|
|
1136
1111
|
.object({
|
|
1137
|
-
pause_status: z.
|
|
1138
|
-
task_retry_mode: z.
|
|
1112
|
+
pause_status: z.string().optional(),
|
|
1113
|
+
task_retry_mode: z.string().optional(),
|
|
1139
1114
|
})
|
|
1140
1115
|
.transform(d => ({
|
|
1141
1116
|
pauseStatus: d.pause_status,
|
|
@@ -1155,7 +1130,7 @@ export const unmarshalCronScheduleSchema = z
|
|
|
1155
1130
|
.object({
|
|
1156
1131
|
quartz_cron_expression: z.string().optional(),
|
|
1157
1132
|
timezone_id: z.string().optional(),
|
|
1158
|
-
pause_status: z.
|
|
1133
|
+
pause_status: z.string().optional(),
|
|
1159
1134
|
})
|
|
1160
1135
|
.transform(d => ({
|
|
1161
1136
|
quartzCronExpression: d.quartz_cron_expression,
|
|
@@ -1206,7 +1181,7 @@ export const unmarshalDbtCloudJobRunStepSchema = z
|
|
|
1206
1181
|
.object({
|
|
1207
1182
|
index: z.number().optional(),
|
|
1208
1183
|
name: z.string().optional(),
|
|
1209
|
-
status: z.
|
|
1184
|
+
status: z.string().optional(),
|
|
1210
1185
|
logs: z.string().optional(),
|
|
1211
1186
|
})
|
|
1212
1187
|
.transform(d => ({
|
|
@@ -1247,7 +1222,7 @@ export const unmarshalDbtPlatformJobRunStepSchema = z
|
|
|
1247
1222
|
.object({
|
|
1248
1223
|
index: z.number().optional(),
|
|
1249
1224
|
name: z.string().optional(),
|
|
1250
|
-
status: z.
|
|
1225
|
+
status: z.string().optional(),
|
|
1251
1226
|
logs: z.string().optional(),
|
|
1252
1227
|
name_truncated: z.boolean().optional(),
|
|
1253
1228
|
logs_truncated: z.boolean().optional(),
|
|
@@ -1292,7 +1267,7 @@ export const unmarshalDbtTaskSchema = z
|
|
|
1292
1267
|
warehouse_id: z.string().optional(),
|
|
1293
1268
|
profiles_directory: z.string().optional(),
|
|
1294
1269
|
catalog: z.string().optional(),
|
|
1295
|
-
source: z.
|
|
1270
|
+
source: z.string().optional(),
|
|
1296
1271
|
})
|
|
1297
1272
|
.transform(d => ({
|
|
1298
1273
|
projectDirectory: d.project_directory,
|
|
@@ -1416,11 +1391,11 @@ export const unmarshalGcpAttributesSchema = z
|
|
|
1416
1391
|
use_preemptible_executors: z.boolean().optional(),
|
|
1417
1392
|
google_service_account: z.string().optional(),
|
|
1418
1393
|
boot_disk_size: z.number().optional(),
|
|
1419
|
-
availability: z.
|
|
1394
|
+
availability: z.string().optional(),
|
|
1420
1395
|
zone_id: z.string().optional(),
|
|
1421
1396
|
local_ssd_count: z.number().optional(),
|
|
1422
1397
|
first_on_demand: z.number().optional(),
|
|
1423
|
-
confidential_compute_type: z.
|
|
1398
|
+
confidential_compute_type: z.string().optional(),
|
|
1424
1399
|
})
|
|
1425
1400
|
.transform(d => ({
|
|
1426
1401
|
usePreemptibleExecutors: d.use_preemptible_executors,
|
|
@@ -1444,7 +1419,7 @@ export const unmarshalGenAiComputeTaskSchema = z
|
|
|
1444
1419
|
dl_runtime_image: z.string().optional(),
|
|
1445
1420
|
compute: z.lazy(() => unmarshalComputeConfigSchema).optional(),
|
|
1446
1421
|
command: z.string().optional(),
|
|
1447
|
-
source: z.
|
|
1422
|
+
source: z.string().optional(),
|
|
1448
1423
|
training_script_path: z.string().optional(),
|
|
1449
1424
|
yaml_parameters_file_path: z.string().optional(),
|
|
1450
1425
|
yaml_parameters: z.string().optional(),
|
|
@@ -1608,11 +1583,11 @@ export const unmarshalGetRunResponseSchema = z
|
|
|
1608
1583
|
overriding_parameters: z
|
|
1609
1584
|
.lazy(() => unmarshalRunParametersSchema)
|
|
1610
1585
|
.optional(),
|
|
1611
|
-
trigger: z.
|
|
1586
|
+
trigger: z.string().optional(),
|
|
1612
1587
|
trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
|
|
1613
1588
|
run_name: z.string().optional(),
|
|
1614
1589
|
run_page_url: z.string().optional(),
|
|
1615
|
-
run_type: z.
|
|
1590
|
+
run_type: z.string().optional(),
|
|
1616
1591
|
tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
|
|
1617
1592
|
description: z.string().optional(),
|
|
1618
1593
|
attempt_number: z.number().optional(),
|
|
@@ -1625,9 +1600,7 @@ export const unmarshalGetRunResponseSchema = z
|
|
|
1625
1600
|
.transform(v => BigInt(v))
|
|
1626
1601
|
.optional(),
|
|
1627
1602
|
has_more: z.boolean().optional(),
|
|
1628
|
-
effective_performance_target: z
|
|
1629
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
1630
|
-
.optional(),
|
|
1603
|
+
effective_performance_target: z.string().optional(),
|
|
1631
1604
|
effective_usage_policy_id: z.string().optional(),
|
|
1632
1605
|
start_time: z
|
|
1633
1606
|
.union([z.number(), z.bigint()])
|
|
@@ -1765,7 +1738,7 @@ export const unmarshalJobClusterSchema = z
|
|
|
1765
1738
|
}));
|
|
1766
1739
|
export const unmarshalJobDeploymentSchema = z
|
|
1767
1740
|
.object({
|
|
1768
|
-
kind: z.
|
|
1741
|
+
kind: z.string().optional(),
|
|
1769
1742
|
metadata_file_path: z.string().optional(),
|
|
1770
1743
|
deployment_id: z.string().optional(),
|
|
1771
1744
|
version_id: z.string().optional(),
|
|
@@ -1852,20 +1825,20 @@ export const unmarshalJobSettingsSchema = z
|
|
|
1852
1825
|
job_clusters: z.array(z.lazy(() => unmarshalJobClusterSchema)).optional(),
|
|
1853
1826
|
git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
|
|
1854
1827
|
tags: z.record(z.string(), z.string()).optional(),
|
|
1855
|
-
format: z.
|
|
1828
|
+
format: z.string().optional(),
|
|
1856
1829
|
queue: z.lazy(() => unmarshalQueueSettingsSchema).optional(),
|
|
1857
1830
|
parameters: z
|
|
1858
1831
|
.array(z.lazy(() => unmarshalJobLevelParameterSchema))
|
|
1859
1832
|
.optional(),
|
|
1860
1833
|
run_as: z.lazy(() => unmarshalJobRunAsSchema).optional(),
|
|
1861
|
-
edit_mode: z.
|
|
1834
|
+
edit_mode: z.string().optional(),
|
|
1862
1835
|
deployment: z.lazy(() => unmarshalJobDeploymentSchema).optional(),
|
|
1863
1836
|
environments: z
|
|
1864
1837
|
.array(z.lazy(() => unmarshalJobEnvironmentSchema))
|
|
1865
1838
|
.optional(),
|
|
1866
1839
|
budget_policy_id: z.string().optional(),
|
|
1867
1840
|
usage_policy_id: z.string().optional(),
|
|
1868
|
-
performance_target: z.
|
|
1841
|
+
performance_target: z.string().optional(),
|
|
1869
1842
|
max_retries: z.number().optional(),
|
|
1870
1843
|
min_retry_interval_millis: z.number().optional(),
|
|
1871
1844
|
retry_on_timeout: z.boolean().optional(),
|
|
@@ -1906,7 +1879,7 @@ export const unmarshalJobSourceSchema = z
|
|
|
1906
1879
|
.object({
|
|
1907
1880
|
job_config_path: z.string().optional(),
|
|
1908
1881
|
import_from_git_branch: z.string().optional(),
|
|
1909
|
-
dirty_state: z.
|
|
1882
|
+
dirty_state: z.string().optional(),
|
|
1910
1883
|
})
|
|
1911
1884
|
.transform(d => ({
|
|
1912
1885
|
jobConfigPath: d.job_config_path,
|
|
@@ -1920,8 +1893,8 @@ export const unmarshalJobSourceSchema = z
|
|
|
1920
1893
|
}));
|
|
1921
1894
|
export const unmarshalJobsHealthRuleSchema = z
|
|
1922
1895
|
.object({
|
|
1923
|
-
metric: z.
|
|
1924
|
-
op: z.
|
|
1896
|
+
metric: z.string().optional(),
|
|
1897
|
+
op: z.string().optional(),
|
|
1925
1898
|
value: z
|
|
1926
1899
|
.union([z.number(), z.bigint()])
|
|
1927
1900
|
.transform(v => BigInt(v))
|
|
@@ -2054,9 +2027,7 @@ export const unmarshalModelTriggerConfigurationSchema = z
|
|
|
2054
2027
|
.object({
|
|
2055
2028
|
securable_name: z.string().optional(),
|
|
2056
2029
|
aliases: z.array(z.string()).optional(),
|
|
2057
|
-
condition: z
|
|
2058
|
-
.enum(ModelTriggerConfiguration_ModelTriggerCondition)
|
|
2059
|
-
.optional(),
|
|
2030
|
+
condition: z.string().optional(),
|
|
2060
2031
|
min_time_between_triggers_seconds: z.number().optional(),
|
|
2061
2032
|
wait_after_last_change_seconds: z.number().optional(),
|
|
2062
2033
|
})
|
|
@@ -2078,7 +2049,7 @@ export const unmarshalNotebookTaskSchema = z
|
|
|
2078
2049
|
.object({
|
|
2079
2050
|
notebook_path: z.string().optional(),
|
|
2080
2051
|
base_parameters: z.record(z.string(), z.string()).optional(),
|
|
2081
|
-
source: z.
|
|
2052
|
+
source: z.string().optional(),
|
|
2082
2053
|
warehouse_id: z.string().optional(),
|
|
2083
2054
|
})
|
|
2084
2055
|
.transform(d => ({
|
|
@@ -2125,7 +2096,7 @@ export const unmarshalOutputSchemaInfoSchema = z
|
|
|
2125
2096
|
export const unmarshalPeriodicTriggerConfigurationSchema = z
|
|
2126
2097
|
.object({
|
|
2127
2098
|
interval: z.number().optional(),
|
|
2128
|
-
unit: z.
|
|
2099
|
+
unit: z.string().optional(),
|
|
2129
2100
|
})
|
|
2130
2101
|
.transform(d => ({
|
|
2131
2102
|
interval: d.interval,
|
|
@@ -2169,8 +2140,8 @@ export const unmarshalPowerBiModelSchema = z
|
|
|
2169
2140
|
.object({
|
|
2170
2141
|
workspace_name: z.string().optional(),
|
|
2171
2142
|
model_name: z.string().optional(),
|
|
2172
|
-
storage_mode: z.
|
|
2173
|
-
authentication_method: z.
|
|
2143
|
+
storage_mode: z.string().optional(),
|
|
2144
|
+
authentication_method: z.string().optional(),
|
|
2174
2145
|
overwrite_existing: z.boolean().optional(),
|
|
2175
2146
|
})
|
|
2176
2147
|
.transform(d => ({
|
|
@@ -2185,7 +2156,7 @@ export const unmarshalPowerBiTableSchema = z
|
|
|
2185
2156
|
name: z.string().optional(),
|
|
2186
2157
|
catalog: z.string().optional(),
|
|
2187
2158
|
schema: z.string().optional(),
|
|
2188
|
-
storage_mode: z.
|
|
2159
|
+
storage_mode: z.string().optional(),
|
|
2189
2160
|
})
|
|
2190
2161
|
.transform(d => ({
|
|
2191
2162
|
name: d.name,
|
|
@@ -2253,7 +2224,7 @@ export const unmarshalPythonWheelTaskSchema = z
|
|
|
2253
2224
|
}));
|
|
2254
2225
|
export const unmarshalQueueDetailsSchema = z
|
|
2255
2226
|
.object({
|
|
2256
|
-
code: z.
|
|
2227
|
+
code: z.string().optional(),
|
|
2257
2228
|
message: z.string().optional(),
|
|
2258
2229
|
})
|
|
2259
2230
|
.transform(d => ({
|
|
@@ -2278,7 +2249,7 @@ export const unmarshalRCranLibrarySchema = z
|
|
|
2278
2249
|
}));
|
|
2279
2250
|
export const unmarshalRepairSchema = z
|
|
2280
2251
|
.object({
|
|
2281
|
-
type: z.
|
|
2252
|
+
type: z.string().optional(),
|
|
2282
2253
|
start_time: z
|
|
2283
2254
|
.union([z.number(), z.bigint()])
|
|
2284
2255
|
.transform(v => BigInt(v))
|
|
@@ -2296,9 +2267,7 @@ export const unmarshalRepairSchema = z
|
|
|
2296
2267
|
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
2297
2268
|
.optional(),
|
|
2298
2269
|
status: z.lazy(() => unmarshalRunStatusSchema).optional(),
|
|
2299
|
-
effective_performance_target: z
|
|
2300
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2301
|
-
.optional(),
|
|
2270
|
+
effective_performance_target: z.string().optional(),
|
|
2302
2271
|
})
|
|
2303
2272
|
.transform(d => ({
|
|
2304
2273
|
type: d.type,
|
|
@@ -2514,11 +2483,11 @@ export const unmarshalRunSchema = z
|
|
|
2514
2483
|
overriding_parameters: z
|
|
2515
2484
|
.lazy(() => unmarshalRunParametersSchema)
|
|
2516
2485
|
.optional(),
|
|
2517
|
-
trigger: z.
|
|
2486
|
+
trigger: z.string().optional(),
|
|
2518
2487
|
trigger_info: z.lazy(() => unmarshalRunTriggerInfoSchema).optional(),
|
|
2519
2488
|
run_name: z.string().optional(),
|
|
2520
2489
|
run_page_url: z.string().optional(),
|
|
2521
|
-
run_type: z.
|
|
2490
|
+
run_type: z.string().optional(),
|
|
2522
2491
|
tasks: z.array(z.lazy(() => unmarshalRunTaskSchema)).optional(),
|
|
2523
2492
|
description: z.string().optional(),
|
|
2524
2493
|
attempt_number: z.number().optional(),
|
|
@@ -2531,9 +2500,7 @@ export const unmarshalRunSchema = z
|
|
|
2531
2500
|
.transform(v => BigInt(v))
|
|
2532
2501
|
.optional(),
|
|
2533
2502
|
has_more: z.boolean().optional(),
|
|
2534
|
-
effective_performance_target: z
|
|
2535
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2536
|
-
.optional(),
|
|
2503
|
+
effective_performance_target: z.string().optional(),
|
|
2537
2504
|
effective_usage_policy_id: z.string().optional(),
|
|
2538
2505
|
start_time: z
|
|
2539
2506
|
.union([z.number(), z.bigint()])
|
|
@@ -2689,8 +2656,8 @@ export const unmarshalRunParametersSchema = z
|
|
|
2689
2656
|
}));
|
|
2690
2657
|
export const unmarshalRunStateSchema = z
|
|
2691
2658
|
.object({
|
|
2692
|
-
life_cycle_state: z.
|
|
2693
|
-
result_state: z.
|
|
2659
|
+
life_cycle_state: z.string().optional(),
|
|
2660
|
+
result_state: z.string().optional(),
|
|
2694
2661
|
state_message: z.string().optional(),
|
|
2695
2662
|
user_cancelled_or_timedout: z.boolean().optional(),
|
|
2696
2663
|
queue_reason: z.string().optional(),
|
|
@@ -2704,7 +2671,7 @@ export const unmarshalRunStateSchema = z
|
|
|
2704
2671
|
}));
|
|
2705
2672
|
export const unmarshalRunStatusSchema = z
|
|
2706
2673
|
.object({
|
|
2707
|
-
state: z.
|
|
2674
|
+
state: z.string().optional(),
|
|
2708
2675
|
termination_details: z
|
|
2709
2676
|
.lazy(() => unmarshalTerminationDetailsSchema)
|
|
2710
2677
|
.optional(),
|
|
@@ -2728,13 +2695,11 @@ export const unmarshalRunTaskSchema = z
|
|
|
2728
2695
|
git_source: z.lazy(() => unmarshalGitSourceSchema).optional(),
|
|
2729
2696
|
resolved_values: z.lazy(() => unmarshalResolvedValuesSchema).optional(),
|
|
2730
2697
|
status: z.lazy(() => unmarshalRunStatusSchema).optional(),
|
|
2731
|
-
effective_performance_target: z
|
|
2732
|
-
.enum(PerformanceTarget_PerformanceTarget)
|
|
2733
|
-
.optional(),
|
|
2698
|
+
effective_performance_target: z.string().optional(),
|
|
2734
2699
|
task_key: z.string().optional(),
|
|
2735
2700
|
description: z.string().optional(),
|
|
2736
2701
|
depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
|
|
2737
|
-
run_if: z.
|
|
2702
|
+
run_if: z.string().optional(),
|
|
2738
2703
|
timeout_seconds: z.number().optional(),
|
|
2739
2704
|
email_notifications: z
|
|
2740
2705
|
.lazy(() => unmarshalJobEmailNotificationsSchema)
|
|
@@ -2991,7 +2956,7 @@ export const unmarshalSparkPythonTaskSchema = z
|
|
|
2991
2956
|
.object({
|
|
2992
2957
|
python_file: z.string().optional(),
|
|
2993
2958
|
parameters: z.array(z.string()).optional(),
|
|
2994
|
-
source: z.
|
|
2959
|
+
source: z.string().optional(),
|
|
2995
2960
|
})
|
|
2996
2961
|
.transform(d => ({
|
|
2997
2962
|
pythonFile: d.python_file,
|
|
@@ -3043,7 +3008,7 @@ export const unmarshalSqlTask_SqlAlertOutputSchema = z
|
|
|
3043
3008
|
.optional(),
|
|
3044
3009
|
output_link: z.string().optional(),
|
|
3045
3010
|
warehouse_id: z.string().optional(),
|
|
3046
|
-
alert_state: z.
|
|
3011
|
+
alert_state: z.string().optional(),
|
|
3047
3012
|
})
|
|
3048
3013
|
.transform(d => ({
|
|
3049
3014
|
queryText: d.query_text,
|
|
@@ -3070,7 +3035,7 @@ export const unmarshalSqlTask_SqlDashboardWidgetOutputSchema = z
|
|
|
3070
3035
|
widget_id: z.string().optional(),
|
|
3071
3036
|
widget_title: z.string().optional(),
|
|
3072
3037
|
output_link: z.string().optional(),
|
|
3073
|
-
status: z.
|
|
3038
|
+
status: z.string().optional(),
|
|
3074
3039
|
error: z.lazy(() => unmarshalSqlTask_SqlOutputErrorSchema).optional(),
|
|
3075
3040
|
start_time: z
|
|
3076
3041
|
.union([z.number(), z.bigint()])
|
|
@@ -3180,7 +3145,7 @@ export const unmarshalSqlTaskDashboardSchema = z
|
|
|
3180
3145
|
export const unmarshalSqlTaskFileSchema = z
|
|
3181
3146
|
.object({
|
|
3182
3147
|
path: z.string().optional(),
|
|
3183
|
-
source: z.
|
|
3148
|
+
source: z.string().optional(),
|
|
3184
3149
|
})
|
|
3185
3150
|
.transform(d => ({
|
|
3186
3151
|
path: d.path,
|
|
@@ -3257,7 +3222,7 @@ export const unmarshalTableTriggerConfigurationSchema = z
|
|
|
3257
3222
|
table_names: z.array(z.string()).optional(),
|
|
3258
3223
|
min_time_between_triggers_seconds: z.number().optional(),
|
|
3259
3224
|
wait_after_last_change_seconds: z.number().optional(),
|
|
3260
|
-
condition: z.
|
|
3225
|
+
condition: z.string().optional(),
|
|
3261
3226
|
})
|
|
3262
3227
|
.transform(d => ({
|
|
3263
3228
|
tableNames: d.table_names,
|
|
@@ -3289,7 +3254,7 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3289
3254
|
.object({
|
|
3290
3255
|
task_key: z.string().optional(),
|
|
3291
3256
|
depends_on: z.array(z.lazy(() => unmarshalTaskDependencySchema)).optional(),
|
|
3292
|
-
run_if: z.
|
|
3257
|
+
run_if: z.string().optional(),
|
|
3293
3258
|
timeout_seconds: z.number().optional(),
|
|
3294
3259
|
health: z.lazy(() => unmarshalJobsHealthRulesSchema).optional(),
|
|
3295
3260
|
email_notifications: z
|
|
@@ -3459,8 +3424,8 @@ export const unmarshalTaskSettingsSchema = z
|
|
|
3459
3424
|
}));
|
|
3460
3425
|
export const unmarshalTerminationDetailsSchema = z
|
|
3461
3426
|
.object({
|
|
3462
|
-
code: z.
|
|
3463
|
-
type: z.
|
|
3427
|
+
code: z.string().optional(),
|
|
3428
|
+
type: z.string().optional(),
|
|
3464
3429
|
message: z.string().optional(),
|
|
3465
3430
|
})
|
|
3466
3431
|
.transform(d => ({
|
|
@@ -3470,7 +3435,7 @@ export const unmarshalTerminationDetailsSchema = z
|
|
|
3470
3435
|
}));
|
|
3471
3436
|
export const unmarshalTriggerSettingsSchema = z
|
|
3472
3437
|
.object({
|
|
3473
|
-
pause_status: z.
|
|
3438
|
+
pause_status: z.string().optional(),
|
|
3474
3439
|
file_arrival: z
|
|
3475
3440
|
.lazy(() => unmarshalFileArrivalTriggerConfigurationSchema)
|
|
3476
3441
|
.optional(),
|
|
@@ -3513,7 +3478,7 @@ export const unmarshalViewItemSchema = z
|
|
|
3513
3478
|
.object({
|
|
3514
3479
|
content: z.string().optional(),
|
|
3515
3480
|
name: z.string().optional(),
|
|
3516
|
-
type: z.
|
|
3481
|
+
type: z.string().optional(),
|
|
3517
3482
|
})
|
|
3518
3483
|
.transform(d => ({
|
|
3519
3484
|
content: d.content,
|
|
@@ -3596,7 +3561,7 @@ export const marshalAccessControlRequestSchema = z
|
|
|
3596
3561
|
}),
|
|
3597
3562
|
])
|
|
3598
3563
|
.optional(),
|
|
3599
|
-
permissionLevel: z.
|
|
3564
|
+
permissionLevel: z.string().optional(),
|
|
3600
3565
|
})
|
|
3601
3566
|
.transform(d => ({
|
|
3602
3567
|
...(d.principalName?.$case === 'userName' && {
|
|
@@ -3664,11 +3629,11 @@ export const marshalAutoScaleSchema = z
|
|
|
3664
3629
|
export const marshalAwsAttributesSchema = z
|
|
3665
3630
|
.object({
|
|
3666
3631
|
firstOnDemand: z.number().optional(),
|
|
3667
|
-
availability: z.
|
|
3632
|
+
availability: z.string().optional(),
|
|
3668
3633
|
zoneId: z.string().optional(),
|
|
3669
3634
|
instanceProfileArn: z.string().optional(),
|
|
3670
3635
|
spotBidPricePercent: z.number().optional(),
|
|
3671
|
-
ebsVolumeType: z.
|
|
3636
|
+
ebsVolumeType: z.string().optional(),
|
|
3672
3637
|
ebsVolumeCount: z.number().optional(),
|
|
3673
3638
|
ebsVolumeSize: z.number().optional(),
|
|
3674
3639
|
ebsVolumeIops: z.number().optional(),
|
|
@@ -3690,7 +3655,7 @@ export const marshalAzureAttributesSchema = z
|
|
|
3690
3655
|
.object({
|
|
3691
3656
|
logAnalyticsInfo: z.lazy(() => marshalLogAnalyticsInfoSchema).optional(),
|
|
3692
3657
|
firstOnDemand: z.number().optional(),
|
|
3693
|
-
availability: z.
|
|
3658
|
+
availability: z.string().optional(),
|
|
3694
3659
|
spotBidMaxPrice: z.number().optional(),
|
|
3695
3660
|
})
|
|
3696
3661
|
.transform(d => ({
|
|
@@ -3784,9 +3749,9 @@ export const marshalClusterSpec_NewClusterSchema = z
|
|
|
3784
3749
|
enableLocalDiskEncryption: z.boolean().optional(),
|
|
3785
3750
|
driverInstancePoolId: z.string().optional(),
|
|
3786
3751
|
workloadType: z.lazy(() => marshalWorkloadTypeSchema).optional(),
|
|
3787
|
-
dataSecurityMode: z.
|
|
3788
|
-
runtimeEngine: z.
|
|
3789
|
-
kind: z.
|
|
3752
|
+
dataSecurityMode: z.string().optional(),
|
|
3753
|
+
runtimeEngine: z.string().optional(),
|
|
3754
|
+
kind: z.string().optional(),
|
|
3790
3755
|
useMlRuntime: z.boolean().optional(),
|
|
3791
3756
|
isSingleNode: z.boolean().optional(),
|
|
3792
3757
|
remoteDiskThroughput: z.number().optional(),
|
|
@@ -3839,7 +3804,7 @@ export const marshalClusterSpec_NewClusterSchema = z
|
|
|
3839
3804
|
}));
|
|
3840
3805
|
export const marshalComputeSchema = z
|
|
3841
3806
|
.object({
|
|
3842
|
-
hardwareAccelerator: z.
|
|
3807
|
+
hardwareAccelerator: z.string().optional(),
|
|
3843
3808
|
})
|
|
3844
3809
|
.transform(d => ({
|
|
3845
3810
|
hardware_accelerator: d.hardwareAccelerator,
|
|
@@ -3857,7 +3822,7 @@ export const marshalComputeConfigSchema = z
|
|
|
3857
3822
|
}));
|
|
3858
3823
|
export const marshalConditionTaskSchema = z
|
|
3859
3824
|
.object({
|
|
3860
|
-
op: z.
|
|
3825
|
+
op: z.string().optional(),
|
|
3861
3826
|
left: z.string().optional(),
|
|
3862
3827
|
right: z.string().optional(),
|
|
3863
3828
|
outcome: z.string().optional(),
|
|
@@ -3870,8 +3835,8 @@ export const marshalConditionTaskSchema = z
|
|
|
3870
3835
|
}));
|
|
3871
3836
|
export const marshalContinuousSettingsSchema = z
|
|
3872
3837
|
.object({
|
|
3873
|
-
pauseStatus: z.
|
|
3874
|
-
taskRetryMode: z.
|
|
3838
|
+
pauseStatus: z.string().optional(),
|
|
3839
|
+
taskRetryMode: z.string().optional(),
|
|
3875
3840
|
})
|
|
3876
3841
|
.transform(d => ({
|
|
3877
3842
|
pause_status: d.pauseStatus,
|
|
@@ -3903,18 +3868,18 @@ export const marshalCreateJobRequestSchema = z
|
|
|
3903
3868
|
jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
|
|
3904
3869
|
gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
|
|
3905
3870
|
tags: z.record(z.string(), z.string()).optional(),
|
|
3906
|
-
format: z.
|
|
3871
|
+
format: z.string().optional(),
|
|
3907
3872
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
3908
3873
|
parameters: z
|
|
3909
3874
|
.array(z.lazy(() => marshalJobLevelParameterSchema))
|
|
3910
3875
|
.optional(),
|
|
3911
3876
|
runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
|
|
3912
|
-
editMode: z.
|
|
3877
|
+
editMode: z.string().optional(),
|
|
3913
3878
|
deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
|
|
3914
3879
|
environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
|
|
3915
3880
|
budgetPolicyId: z.string().optional(),
|
|
3916
3881
|
usagePolicyId: z.string().optional(),
|
|
3917
|
-
performanceTarget: z.
|
|
3882
|
+
performanceTarget: z.string().optional(),
|
|
3918
3883
|
maxRetries: z.number().optional(),
|
|
3919
3884
|
minRetryIntervalMillis: z.number().optional(),
|
|
3920
3885
|
retryOnTimeout: z.boolean().optional(),
|
|
@@ -3956,7 +3921,7 @@ export const marshalCronScheduleSchema = z
|
|
|
3956
3921
|
.object({
|
|
3957
3922
|
quartzCronExpression: z.string().optional(),
|
|
3958
3923
|
timezoneId: z.string().optional(),
|
|
3959
|
-
pauseStatus: z.
|
|
3924
|
+
pauseStatus: z.string().optional(),
|
|
3960
3925
|
})
|
|
3961
3926
|
.transform(d => ({
|
|
3962
3927
|
quartz_cron_expression: d.quartzCronExpression,
|
|
@@ -4009,7 +3974,7 @@ export const marshalDbtTaskSchema = z
|
|
|
4009
3974
|
warehouseId: z.string().optional(),
|
|
4010
3975
|
profilesDirectory: z.string().optional(),
|
|
4011
3976
|
catalog: z.string().optional(),
|
|
4012
|
-
source: z.
|
|
3977
|
+
source: z.string().optional(),
|
|
4013
3978
|
})
|
|
4014
3979
|
.transform(d => ({
|
|
4015
3980
|
project_directory: d.projectDirectory,
|
|
@@ -4112,11 +4077,11 @@ export const marshalGcpAttributesSchema = z
|
|
|
4112
4077
|
usePreemptibleExecutors: z.boolean().optional(),
|
|
4113
4078
|
googleServiceAccount: z.string().optional(),
|
|
4114
4079
|
bootDiskSize: z.number().optional(),
|
|
4115
|
-
availability: z.
|
|
4080
|
+
availability: z.string().optional(),
|
|
4116
4081
|
zoneId: z.string().optional(),
|
|
4117
4082
|
localSsdCount: z.number().optional(),
|
|
4118
4083
|
firstOnDemand: z.number().optional(),
|
|
4119
|
-
confidentialComputeType: z.
|
|
4084
|
+
confidentialComputeType: z.string().optional(),
|
|
4120
4085
|
})
|
|
4121
4086
|
.transform(d => ({
|
|
4122
4087
|
use_preemptible_executors: d.usePreemptibleExecutors,
|
|
@@ -4140,7 +4105,7 @@ export const marshalGenAiComputeTaskSchema = z
|
|
|
4140
4105
|
dlRuntimeImage: z.string().optional(),
|
|
4141
4106
|
compute: z.lazy(() => marshalComputeConfigSchema).optional(),
|
|
4142
4107
|
command: z.string().optional(),
|
|
4143
|
-
source: z.
|
|
4108
|
+
source: z.string().optional(),
|
|
4144
4109
|
trainingScriptPath: z.string().optional(),
|
|
4145
4110
|
yamlParametersFilePath: z.string().optional(),
|
|
4146
4111
|
yamlParameters: z.string().optional(),
|
|
@@ -4249,7 +4214,7 @@ export const marshalJobClusterSchema = z
|
|
|
4249
4214
|
}));
|
|
4250
4215
|
export const marshalJobDeploymentSchema = z
|
|
4251
4216
|
.object({
|
|
4252
|
-
kind: z.
|
|
4217
|
+
kind: z.string().optional(),
|
|
4253
4218
|
metadataFilePath: z.string().optional(),
|
|
4254
4219
|
deploymentId: z.string().optional(),
|
|
4255
4220
|
versionId: z.string().optional(),
|
|
@@ -4340,18 +4305,18 @@ export const marshalJobSettingsSchema = z
|
|
|
4340
4305
|
jobClusters: z.array(z.lazy(() => marshalJobClusterSchema)).optional(),
|
|
4341
4306
|
gitSource: z.lazy(() => marshalGitSourceSchema).optional(),
|
|
4342
4307
|
tags: z.record(z.string(), z.string()).optional(),
|
|
4343
|
-
format: z.
|
|
4308
|
+
format: z.string().optional(),
|
|
4344
4309
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
4345
4310
|
parameters: z
|
|
4346
4311
|
.array(z.lazy(() => marshalJobLevelParameterSchema))
|
|
4347
4312
|
.optional(),
|
|
4348
4313
|
runAs: z.lazy(() => marshalJobRunAsSchema).optional(),
|
|
4349
|
-
editMode: z.
|
|
4314
|
+
editMode: z.string().optional(),
|
|
4350
4315
|
deployment: z.lazy(() => marshalJobDeploymentSchema).optional(),
|
|
4351
4316
|
environments: z.array(z.lazy(() => marshalJobEnvironmentSchema)).optional(),
|
|
4352
4317
|
budgetPolicyId: z.string().optional(),
|
|
4353
4318
|
usagePolicyId: z.string().optional(),
|
|
4354
|
-
performanceTarget: z.
|
|
4319
|
+
performanceTarget: z.string().optional(),
|
|
4355
4320
|
maxRetries: z.number().optional(),
|
|
4356
4321
|
minRetryIntervalMillis: z.number().optional(),
|
|
4357
4322
|
retryOnTimeout: z.boolean().optional(),
|
|
@@ -4399,7 +4364,7 @@ export const marshalJobSourceSchema = z
|
|
|
4399
4364
|
}),
|
|
4400
4365
|
])
|
|
4401
4366
|
.optional(),
|
|
4402
|
-
dirtyState: z.
|
|
4367
|
+
dirtyState: z.string().optional(),
|
|
4403
4368
|
})
|
|
4404
4369
|
.transform(d => ({
|
|
4405
4370
|
job_config_path: d.jobConfigPath,
|
|
@@ -4410,8 +4375,8 @@ export const marshalJobSourceSchema = z
|
|
|
4410
4375
|
}));
|
|
4411
4376
|
export const marshalJobsHealthRuleSchema = z
|
|
4412
4377
|
.object({
|
|
4413
|
-
metric: z.
|
|
4414
|
-
op: z.
|
|
4378
|
+
metric: z.string().optional(),
|
|
4379
|
+
op: z.string().optional(),
|
|
4415
4380
|
value: z.bigint().optional(),
|
|
4416
4381
|
})
|
|
4417
4382
|
.transform(d => ({
|
|
@@ -4489,9 +4454,7 @@ export const marshalModelTriggerConfigurationSchema = z
|
|
|
4489
4454
|
.object({
|
|
4490
4455
|
securableName: z.string().optional(),
|
|
4491
4456
|
aliases: z.array(z.string()).optional(),
|
|
4492
|
-
condition: z
|
|
4493
|
-
.enum(ModelTriggerConfiguration_ModelTriggerCondition)
|
|
4494
|
-
.optional(),
|
|
4457
|
+
condition: z.string().optional(),
|
|
4495
4458
|
minTimeBetweenTriggersSeconds: z.number().optional(),
|
|
4496
4459
|
waitAfterLastChangeSeconds: z.number().optional(),
|
|
4497
4460
|
})
|
|
@@ -4513,7 +4476,7 @@ export const marshalNotebookTaskSchema = z
|
|
|
4513
4476
|
.object({
|
|
4514
4477
|
notebookPath: z.string().optional(),
|
|
4515
4478
|
baseParameters: z.record(z.string(), z.string()).optional(),
|
|
4516
|
-
source: z.
|
|
4479
|
+
source: z.string().optional(),
|
|
4517
4480
|
warehouseId: z.string().optional(),
|
|
4518
4481
|
})
|
|
4519
4482
|
.transform(d => ({
|
|
@@ -4536,7 +4499,7 @@ export const marshalNotificationSettingsSchema = z
|
|
|
4536
4499
|
export const marshalPeriodicTriggerConfigurationSchema = z
|
|
4537
4500
|
.object({
|
|
4538
4501
|
interval: z.number().optional(),
|
|
4539
|
-
unit: z.
|
|
4502
|
+
unit: z.string().optional(),
|
|
4540
4503
|
})
|
|
4541
4504
|
.transform(d => ({
|
|
4542
4505
|
interval: d.interval,
|
|
@@ -4580,8 +4543,8 @@ export const marshalPowerBiModelSchema = z
|
|
|
4580
4543
|
.object({
|
|
4581
4544
|
workspaceName: z.string().optional(),
|
|
4582
4545
|
modelName: z.string().optional(),
|
|
4583
|
-
storageMode: z.
|
|
4584
|
-
authenticationMethod: z.
|
|
4546
|
+
storageMode: z.string().optional(),
|
|
4547
|
+
authenticationMethod: z.string().optional(),
|
|
4585
4548
|
overwriteExisting: z.boolean().optional(),
|
|
4586
4549
|
})
|
|
4587
4550
|
.transform(d => ({
|
|
@@ -4596,7 +4559,7 @@ export const marshalPowerBiTableSchema = z
|
|
|
4596
4559
|
name: z.string().optional(),
|
|
4597
4560
|
catalog: z.string().optional(),
|
|
4598
4561
|
schema: z.string().optional(),
|
|
4599
|
-
storageMode: z.
|
|
4562
|
+
storageMode: z.string().optional(),
|
|
4600
4563
|
})
|
|
4601
4564
|
.transform(d => ({
|
|
4602
4565
|
name: d.name,
|
|
@@ -4686,7 +4649,7 @@ export const marshalRepairRunRequestSchema = z
|
|
|
4686
4649
|
jobParameters: z.record(z.string(), z.string()).optional(),
|
|
4687
4650
|
rerunAllFailedTasks: z.boolean().optional(),
|
|
4688
4651
|
rerunDependentTasks: z.boolean().optional(),
|
|
4689
|
-
performanceTarget: z.
|
|
4652
|
+
performanceTarget: z.string().optional(),
|
|
4690
4653
|
pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
|
|
4691
4654
|
jarParams: z.array(z.string()).optional(),
|
|
4692
4655
|
notebookParams: z.record(z.string(), z.string()).optional(),
|
|
@@ -4754,7 +4717,7 @@ export const marshalRunNowRequestSchema = z
|
|
|
4754
4717
|
idempotencyToken: z.string().optional(),
|
|
4755
4718
|
queue: z.lazy(() => marshalQueueSettingsSchema).optional(),
|
|
4756
4719
|
only: z.array(z.string()).optional(),
|
|
4757
|
-
performanceTarget: z.
|
|
4720
|
+
performanceTarget: z.string().optional(),
|
|
4758
4721
|
pipelineParams: z.lazy(() => marshalPipelineParametersSchema).optional(),
|
|
4759
4722
|
jarParams: z.array(z.string()).optional(),
|
|
4760
4723
|
notebookParams: z.record(z.string(), z.string()).optional(),
|
|
@@ -4785,7 +4748,7 @@ export const marshalRunTaskSettingsSchema = z
|
|
|
4785
4748
|
taskKey: z.string().optional(),
|
|
4786
4749
|
description: z.string().optional(),
|
|
4787
4750
|
dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
|
|
4788
|
-
runIf: z.
|
|
4751
|
+
runIf: z.string().optional(),
|
|
4789
4752
|
timeoutSeconds: z.number().optional(),
|
|
4790
4753
|
emailNotifications: z
|
|
4791
4754
|
.lazy(() => marshalJobEmailNotificationsSchema)
|
|
@@ -5018,7 +4981,7 @@ export const marshalSparkPythonTaskSchema = z
|
|
|
5018
4981
|
.object({
|
|
5019
4982
|
pythonFile: z.string().optional(),
|
|
5020
4983
|
parameters: z.array(z.string()).optional(),
|
|
5021
|
-
source: z.
|
|
4984
|
+
source: z.string().optional(),
|
|
5022
4985
|
})
|
|
5023
4986
|
.transform(d => ({
|
|
5024
4987
|
python_file: d.pythonFile,
|
|
@@ -5105,7 +5068,7 @@ export const marshalSqlTaskDashboardSchema = z
|
|
|
5105
5068
|
export const marshalSqlTaskFileSchema = z
|
|
5106
5069
|
.object({
|
|
5107
5070
|
path: z.string().optional(),
|
|
5108
|
-
source: z.
|
|
5071
|
+
source: z.string().optional(),
|
|
5109
5072
|
})
|
|
5110
5073
|
.transform(d => ({
|
|
5111
5074
|
path: d.path,
|
|
@@ -5224,7 +5187,7 @@ export const marshalTableTriggerConfigurationSchema = z
|
|
|
5224
5187
|
tableNames: z.array(z.string()).optional(),
|
|
5225
5188
|
minTimeBetweenTriggersSeconds: z.number().optional(),
|
|
5226
5189
|
waitAfterLastChangeSeconds: z.number().optional(),
|
|
5227
|
-
condition: z.
|
|
5190
|
+
condition: z.string().optional(),
|
|
5228
5191
|
})
|
|
5229
5192
|
.transform(d => ({
|
|
5230
5193
|
table_names: d.tableNames,
|
|
@@ -5245,7 +5208,7 @@ export const marshalTaskSettingsSchema = z
|
|
|
5245
5208
|
.object({
|
|
5246
5209
|
taskKey: z.string().optional(),
|
|
5247
5210
|
dependsOn: z.array(z.lazy(() => marshalTaskDependencySchema)).optional(),
|
|
5248
|
-
runIf: z.
|
|
5211
|
+
runIf: z.string().optional(),
|
|
5249
5212
|
timeoutSeconds: z.number().optional(),
|
|
5250
5213
|
health: z.lazy(() => marshalJobsHealthRulesSchema).optional(),
|
|
5251
5214
|
emailNotifications: z
|
|
@@ -5445,7 +5408,7 @@ export const marshalTaskSettingsSchema = z
|
|
|
5445
5408
|
}));
|
|
5446
5409
|
export const marshalTriggerSettingsSchema = z
|
|
5447
5410
|
.object({
|
|
5448
|
-
pauseStatus: z.
|
|
5411
|
+
pauseStatus: z.string().optional(),
|
|
5449
5412
|
configuration: z
|
|
5450
5413
|
.discriminatedUnion('$case', [
|
|
5451
5414
|
z.object({
|