@databricks/sdk-warehouses 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/v1/client.d.ts +10 -10
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +10 -10
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/model.d.ts +274 -265
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +283 -293
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +2 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/v1/client.ts +0 -961
- package/src/v1/index.ts +0 -62
- package/src/v1/model.ts +0 -2008
- package/src/v1/transport.ts +0 -73
- package/src/v1/utils.ts +0 -180
package/dist/v1/model.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
2
|
import { FieldMask } from '@databricks/sdk-core/wkt';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
5
|
+
export const ChannelName = {
|
|
6
|
+
CHANNEL_NAME_UNSPECIFIED: 'CHANNEL_NAME_UNSPECIFIED',
|
|
7
|
+
CHANNEL_NAME_PREVIEW: 'CHANNEL_NAME_PREVIEW',
|
|
8
|
+
CHANNEL_NAME_CURRENT: 'CHANNEL_NAME_CURRENT',
|
|
9
|
+
CHANNEL_NAME_PREVIOUS: 'CHANNEL_NAME_PREVIOUS',
|
|
10
|
+
CHANNEL_NAME_CUSTOM: 'CHANNEL_NAME_CUSTOM',
|
|
11
|
+
};
|
|
12
12
|
/** Type of default warehouse override behavior. */
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
14
|
+
export const DefaultWarehouseOverrideType = {
|
|
15
15
|
/** Unspecified default warehouse override type. */
|
|
16
|
-
|
|
16
|
+
DEFAULT_WAREHOUSE_OVERRIDE_TYPE_UNSPECIFIED: 'DEFAULT_WAREHOUSE_OVERRIDE_TYPE_UNSPECIFIED',
|
|
17
17
|
/** The user should remember their last-selected warehouse. */
|
|
18
|
-
|
|
18
|
+
LAST_SELECTED: 'LAST_SELECTED',
|
|
19
19
|
/** The user should use a specific warehouse. */
|
|
20
|
-
|
|
21
|
-
}
|
|
20
|
+
CUSTOM: 'CUSTOM',
|
|
21
|
+
};
|
|
22
22
|
/** Security policy to be used for warehouses */
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
24
|
+
export const EndpointSecurityPolicy = {
|
|
25
25
|
/** No passthrough or Table ACLs support */
|
|
26
|
-
|
|
26
|
+
NONE: 'NONE',
|
|
27
27
|
/** Support only Table ACLs */
|
|
28
|
-
|
|
28
|
+
DATA_ACCESS_CONTROL: 'DATA_ACCESS_CONTROL',
|
|
29
29
|
/** Support only ADLS / IAM passthrough */
|
|
30
|
-
|
|
31
|
-
}
|
|
30
|
+
PASSTHROUGH: 'PASSTHROUGH',
|
|
31
|
+
};
|
|
32
32
|
/**
|
|
33
33
|
* EndpointSpotInstancePolicy configures whether the endpoint should use spot
|
|
34
34
|
* instances.
|
|
@@ -49,8 +49,8 @@ export var EndpointSecurityPolicy;
|
|
|
49
49
|
* not", this is the field that PM recommends after discussion with customers
|
|
50
50
|
* per SC-48783.
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
53
|
+
export const EndpointSpotInstancePolicy = {
|
|
54
54
|
/**
|
|
55
55
|
* UNSPECIFIED if no value is set by the caller.
|
|
56
56
|
* Consult endpoint docs to learn about the defaults that kick in if
|
|
@@ -71,58 +71,58 @@ export var EndpointSpotInstancePolicy;
|
|
|
71
71
|
* This follows Google APIs:
|
|
72
72
|
* https://cloud.google.com/apis/design/design_patterns#enum_default_value.
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
POLICY_UNSPECIFIED: 'POLICY_UNSPECIFIED',
|
|
75
75
|
/** COST_OPTIMIZED to prefer spot instance. */
|
|
76
|
-
|
|
76
|
+
COST_OPTIMIZED: 'COST_OPTIMIZED',
|
|
77
77
|
/** RELIABILITY_OPTIMIZED to prefer on demand instance. */
|
|
78
|
-
|
|
79
|
-
}
|
|
78
|
+
RELIABILITY_OPTIMIZED: 'RELIABILITY_OPTIMIZED',
|
|
79
|
+
};
|
|
80
80
|
/**
|
|
81
81
|
* *
|
|
82
82
|
* State of a warehouse.
|
|
83
83
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
85
|
+
export const EndpointState = {
|
|
86
86
|
/** Indicates that the endpoint is in the process of starting */
|
|
87
|
-
|
|
87
|
+
STARTING: 'STARTING',
|
|
88
88
|
/** Indicates the starting process is done, and the endpoint is ready to use */
|
|
89
|
-
|
|
89
|
+
RUNNING: 'RUNNING',
|
|
90
90
|
/** Indicates the endpoint is in the process of destroying */
|
|
91
|
-
|
|
91
|
+
STOPPING: 'STOPPING',
|
|
92
92
|
/** Indicates the endpoint is stopped, but can be started by calling start */
|
|
93
|
-
|
|
93
|
+
STOPPED: 'STOPPED',
|
|
94
94
|
/** Indicates the endpoint is in the process of destroying */
|
|
95
|
-
|
|
95
|
+
DELETING: 'DELETING',
|
|
96
96
|
/** Indicates an endpoint is deleted, and can not be recovered */
|
|
97
|
-
|
|
98
|
-
}
|
|
97
|
+
DELETED: 'DELETED',
|
|
98
|
+
};
|
|
99
99
|
/** The status code indicating why the cluster was terminated */
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
101
|
+
export const TerminationCode = {
|
|
102
102
|
/** Default when there is no termination code. */
|
|
103
|
-
|
|
103
|
+
UNKNOWN: 'UNKNOWN',
|
|
104
104
|
/**
|
|
105
105
|
* A user terminated the cluster directly. Parameters should include a ``username`` field
|
|
106
106
|
* that indicates the specific user who terminated the cluster.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
USER_REQUEST: 'USER_REQUEST',
|
|
109
109
|
/** This cluster was launched by a Job, and terminated when the Job completed. */
|
|
110
|
-
|
|
110
|
+
JOB_FINISHED: 'JOB_FINISHED',
|
|
111
111
|
/** This cluster was terminated since it was idle. */
|
|
112
|
-
|
|
112
|
+
INACTIVITY: 'INACTIVITY',
|
|
113
113
|
/**
|
|
114
114
|
* The instance that hosted the spark driver was terminated by the cloud provider. In AWS, for
|
|
115
115
|
* example, AWS may retire instances and directly shut them down.
|
|
116
116
|
* Parameters should include an ``aws_instance_state_reason`` field indicating the AWS-provided
|
|
117
117
|
* reason why the instance was terminated.
|
|
118
118
|
*/
|
|
119
|
-
|
|
119
|
+
CLOUD_PROVIDER_SHUTDOWN: 'CLOUD_PROVIDER_SHUTDOWN',
|
|
120
120
|
/**
|
|
121
121
|
* Databricks may lose connection to services on the driver instance. One such case is when
|
|
122
122
|
* problems arise in cloud networking infrastructure, or when the instance itself becomes
|
|
123
123
|
* unhealthy.
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
COMMUNICATION_LOST: 'COMMUNICATION_LOST',
|
|
126
126
|
/**
|
|
127
127
|
* Databricks may hit cloud provider failures when requesting instances to launch clusters.
|
|
128
128
|
* For example, AWS limits the number of running instances and EBS volumes. If you ask Databricks
|
|
@@ -132,61 +132,61 @@ export var TerminationCode;
|
|
|
132
132
|
* ``aws_spot_request_status`` to indicate the AWS-provided reason why Databricks could not
|
|
133
133
|
* request the required instances for the cluster.
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
CLOUD_PROVIDER_LAUNCH_FAILURE: 'CLOUD_PROVIDER_LAUNCH_FAILURE',
|
|
136
136
|
/**
|
|
137
137
|
* Databricks cannot load and execute a cluster-scoped init script on one of the cluster's nodes,
|
|
138
138
|
* or the init script terminates with a non-zero exit code or there was a general failure during
|
|
139
139
|
* the loading/executing of init scripts that does not pertain to any specific script.
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
INIT_SCRIPT_FAILURE: 'INIT_SCRIPT_FAILURE',
|
|
142
142
|
/**
|
|
143
143
|
* The Spark driver failed to start. Possible reasons may include incompatible libraries and
|
|
144
144
|
* initialization scripts that corrupted the Spark container.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
SPARK_STARTUP_FAILURE: 'SPARK_STARTUP_FAILURE',
|
|
147
147
|
/**
|
|
148
148
|
* Cannot launch the cluster because the user specified an invalid argument. For example,
|
|
149
149
|
* the use might specify an invalid spark version for the cluster.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
INVALID_ARGUMENT: 'INVALID_ARGUMENT',
|
|
152
152
|
/**
|
|
153
153
|
* While launching this cluster, Databricks failed to complete critical setup steps, terminating
|
|
154
154
|
* the cluster.
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
UNEXPECTED_LAUNCH_FAILURE: 'UNEXPECTED_LAUNCH_FAILURE',
|
|
157
157
|
/**
|
|
158
158
|
* Databricks encountered an unexpected error which forced the running cluster to be terminated.
|
|
159
159
|
* Please contact Databricks support for additional details.
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
162
162
|
/**
|
|
163
163
|
* Databricks was not able to access instances in order to start the cluster. This can be a
|
|
164
164
|
* transient networking issue. If the problem persists, this usually indicates a networking
|
|
165
165
|
* environment misconfiguration.
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
INSTANCE_UNREACHABLE: 'INSTANCE_UNREACHABLE',
|
|
168
168
|
/**
|
|
169
169
|
* Blocked upsize requests for the workspace according to
|
|
170
170
|
* https://databricks.atlassian.net/wiki/spaces/UN/pages/934088320/Banning+Workspace+Upsize+Runbook
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
REQUEST_REJECTED: 'REQUEST_REJECTED',
|
|
173
173
|
/** The cluster was terminated because it was running in a trial workspace that expired. */
|
|
174
|
-
|
|
174
|
+
TRIAL_EXPIRED: 'TRIAL_EXPIRED',
|
|
175
175
|
/**
|
|
176
176
|
* The cluster was terminated because no response from the chauffeur could be received. We name
|
|
177
177
|
* this "DRIVER_" instead of "CHAUFFEUR_" since chauffeur is non-external terminology
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
DRIVER_UNREACHABLE: 'DRIVER_UNREACHABLE',
|
|
180
180
|
/** Spark error on startup */
|
|
181
|
-
|
|
181
|
+
SPARK_ERROR: 'SPARK_ERROR',
|
|
182
182
|
/** Driver unresponsive */
|
|
183
|
-
|
|
183
|
+
DRIVER_UNRESPONSIVE: 'DRIVER_UNRESPONSIVE',
|
|
184
184
|
/** Metastore component unhealthy */
|
|
185
|
-
|
|
185
|
+
METASTORE_COMPONENT_UNHEALTHY: 'METASTORE_COMPONENT_UNHEALTHY',
|
|
186
186
|
/** DBFS component unhealthy */
|
|
187
|
-
|
|
187
|
+
DBFS_COMPONENT_UNHEALTHY: 'DBFS_COMPONENT_UNHEALTHY',
|
|
188
188
|
/** Execution component unhealthy */
|
|
189
|
-
|
|
189
|
+
EXECUTION_COMPONENT_UNHEALTHY: 'EXECUTION_COMPONENT_UNHEALTHY',
|
|
190
190
|
/**
|
|
191
191
|
* Databricks may hit the azure resource manager request limit. Which will keep the Azure SDK
|
|
192
192
|
* from issuing any read or write request to Azure resource manager. The request limit is applied
|
|
@@ -194,7 +194,7 @@ export var TerminationCode;
|
|
|
194
194
|
* might help to resolve the issue. Please check the following link for more information:
|
|
195
195
|
* https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
AZURE_RESOURCE_MANAGER_THROTTLING: 'AZURE_RESOURCE_MANAGER_THROTTLING',
|
|
198
198
|
/**
|
|
199
199
|
* Databricks may hit the azure resource provider request limit. Specifically, the API request
|
|
200
200
|
* rate to the specific resource type (Compute, Network, etc..) can't exceed the limit. Retry
|
|
@@ -202,146 +202,146 @@ export var TerminationCode;
|
|
|
202
202
|
* https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/
|
|
203
203
|
* troubleshooting-throttling-errors
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
AZURE_RESOURCE_PROVIDER_THROTTLING: 'AZURE_RESOURCE_PROVIDER_THROTTLING',
|
|
206
206
|
/** The cluster was terminated due to an error in the network configuration. */
|
|
207
|
-
|
|
207
|
+
NETWORK_CONFIGURATION_FAILURE: 'NETWORK_CONFIGURATION_FAILURE',
|
|
208
208
|
/**
|
|
209
209
|
* Databricks encountered an unexpected error while launching containers on worker nodes for the
|
|
210
210
|
* cluster, terminating the cluster.
|
|
211
211
|
*/
|
|
212
|
-
|
|
212
|
+
CONTAINER_LAUNCH_FAILURE: 'CONTAINER_LAUNCH_FAILURE',
|
|
213
213
|
/** Instance pool backed cluster specific failure */
|
|
214
|
-
|
|
214
|
+
INSTANCE_POOL_CLUSTER_FAILURE: 'INSTANCE_POOL_CLUSTER_FAILURE',
|
|
215
215
|
/** Cluster start successfully completed but skipped some instances which were slow to launch */
|
|
216
|
-
|
|
216
|
+
SKIPPED_SLOW_NODES: 'SKIPPED_SLOW_NODES',
|
|
217
217
|
/** Attach projects failure */
|
|
218
|
-
|
|
218
|
+
ATTACH_PROJECT_FAILURE: 'ATTACH_PROJECT_FAILURE',
|
|
219
219
|
/** Attach projects failure */
|
|
220
|
-
|
|
220
|
+
UPDATE_INSTANCE_PROFILE_FAILURE: 'UPDATE_INSTANCE_PROFILE_FAILURE',
|
|
221
221
|
/** Cluster terminated due to database failure */
|
|
222
|
-
|
|
222
|
+
DATABASE_CONNECTION_FAILURE: 'DATABASE_CONNECTION_FAILURE',
|
|
223
223
|
/**
|
|
224
224
|
* Databricks cannot handle the request at this moment. Please try again later
|
|
225
225
|
* and contact Databricks if the problem persists.
|
|
226
226
|
*/
|
|
227
|
-
|
|
227
|
+
REQUEST_THROTTLED: 'REQUEST_THROTTLED',
|
|
228
228
|
/** SelfBootstrap failure. Either self-bootstrap fast fail or node daemon ping timeout */
|
|
229
|
-
|
|
229
|
+
SELF_BOOTSTRAP_FAILURE: 'SELF_BOOTSTRAP_FAILURE',
|
|
230
230
|
/**
|
|
231
231
|
* Databricks cannot load and execute a global init script on one of the cluster's nodes,
|
|
232
232
|
* or the init script terminates with a non-zero exit code.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
GLOBAL_INIT_SCRIPT_FAILURE: 'GLOBAL_INIT_SCRIPT_FAILURE',
|
|
235
235
|
/**
|
|
236
236
|
* Container launch timed out downloading the spark image. This can happen if the customer
|
|
237
237
|
* has byo-vpc/vnet and the download of large files is being throttled.
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
SLOW_IMAGE_DOWNLOAD: 'SLOW_IMAGE_DOWNLOAD',
|
|
240
240
|
/** Container setup failed due to an invalid Spark image. */
|
|
241
|
-
|
|
241
|
+
INVALID_SPARK_IMAGE: 'INVALID_SPARK_IMAGE',
|
|
242
242
|
/**
|
|
243
243
|
* If the ngrok tunnel token provisioning fails for any reason, for example hitting the
|
|
244
244
|
* max capacity of allowed ngrok tokens. (ES-32083)
|
|
245
245
|
*/
|
|
246
|
-
|
|
246
|
+
NPIP_TUNNEL_TOKEN_FAILURE: 'NPIP_TUNNEL_TOKEN_FAILURE',
|
|
247
247
|
/** Hive Metastore provisioning failue in launch container step */
|
|
248
|
-
|
|
248
|
+
HIVE_METASTORE_PROVISIONING_FAILURE: 'HIVE_METASTORE_PROVISIONING_FAILURE',
|
|
249
249
|
/**
|
|
250
250
|
* Occurs when the deployment template we submit to Azure violates their requirements.
|
|
251
251
|
* Typical scenarios:
|
|
252
252
|
* - Wrong parameter key/value used
|
|
253
253
|
* - Exceed the limit for certain parameter
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
AZURE_INVALID_DEPLOYMENT_TEMPLATE: 'AZURE_INVALID_DEPLOYMENT_TEMPLATE',
|
|
256
256
|
/**
|
|
257
257
|
* The set of un-categorized failure responses from Azure when we launch instance resources
|
|
258
258
|
* using deployment template
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
AZURE_UNEXPECTED_DEPLOYMENT_TEMPLATE_FAILURE: 'AZURE_UNEXPECTED_DEPLOYMENT_TEMPLATE_FAILURE',
|
|
261
261
|
/** Subnet (typically Azure vnet injected) has run out of ip addresses */
|
|
262
|
-
|
|
262
|
+
SUBNET_EXHAUSTED_FAILURE: 'SUBNET_EXHAUSTED_FAILURE',
|
|
263
263
|
/**
|
|
264
264
|
* Timeout to ping the nodeDaemon, possible reason: nodeDaemon didn't start (configuration issue),
|
|
265
265
|
* network connectivity issue
|
|
266
266
|
*/
|
|
267
|
-
|
|
267
|
+
BOOTSTRAP_TIMEOUT: 'BOOTSTRAP_TIMEOUT',
|
|
268
268
|
/** Bootstrap timeout due to script download failure */
|
|
269
|
-
|
|
269
|
+
STORAGE_DOWNLOAD_FAILURE: 'STORAGE_DOWNLOAD_FAILURE',
|
|
270
270
|
/** Bootstrap timeout due to get runbook failure */
|
|
271
|
-
|
|
271
|
+
CONTROL_PLANE_REQUEST_FAILURE: 'CONTROL_PLANE_REQUEST_FAILURE',
|
|
272
272
|
/** Bootstrap timeout due to Azure Extension Service Failure */
|
|
273
|
-
|
|
273
|
+
BOOTSTRAP_TIMEOUT_CLOUD_PROVIDER_EXCEPTION: 'BOOTSTRAP_TIMEOUT_CLOUD_PROVIDER_EXCEPTION',
|
|
274
274
|
/** Could not find enough of the requested instance type in the requested AZ. Often related to Auto AZ. */
|
|
275
|
-
|
|
275
|
+
AWS_INSUFFICIENT_INSTANCE_CAPACITY_FAILURE: 'AWS_INSUFFICIENT_INSTANCE_CAPACITY_FAILURE',
|
|
276
276
|
/** Container setup failure due to docker image pulling failure */
|
|
277
|
-
|
|
277
|
+
DOCKER_IMAGE_PULL_FAILURE: 'DOCKER_IMAGE_PULL_FAILURE',
|
|
278
278
|
/**
|
|
279
279
|
* Failures during azure vnet configuration. For example, a workspace with VNet injection had
|
|
280
280
|
* incorrect DNS settings that blocked access to worker artifacts.
|
|
281
281
|
*/
|
|
282
|
-
|
|
282
|
+
AZURE_VNET_CONFIGURATION_FAILURE: 'AZURE_VNET_CONFIGURATION_FAILURE',
|
|
283
283
|
/**
|
|
284
284
|
* Bootstrap failure due to Ngrok tunnel setup timeout or failure. For example, if the worker
|
|
285
285
|
* node is unable to reach the Ngrok tunnel domain.
|
|
286
286
|
*/
|
|
287
|
-
|
|
287
|
+
NPIP_TUNNEL_SETUP_FAILURE: 'NPIP_TUNNEL_SETUP_FAILURE',
|
|
288
288
|
/**
|
|
289
289
|
* Lack authorization for cluster operation.
|
|
290
290
|
* For example, awsApiErrorCode: 'AccessDenied' or 'UnauthorizedOperation'.
|
|
291
291
|
*/
|
|
292
|
-
|
|
292
|
+
AWS_AUTHORIZATION_FAILURE: 'AWS_AUTHORIZATION_FAILURE',
|
|
293
293
|
/** request comes form Nephos resource pool auto management */
|
|
294
|
-
|
|
294
|
+
NEPHOS_RESOURCE_MANAGEMENT: 'NEPHOS_RESOURCE_MANAGEMENT',
|
|
295
295
|
/**
|
|
296
296
|
* Container setup failed during container registration to security daemon due to STS endpoint
|
|
297
297
|
* connection error.
|
|
298
298
|
*/
|
|
299
|
-
|
|
299
|
+
STS_CLIENT_SETUP_FAILURE: 'STS_CLIENT_SETUP_FAILURE',
|
|
300
300
|
/** Container setup failed during registration to security daemon due to an unspecified error. */
|
|
301
|
-
|
|
301
|
+
SECURITY_DAEMON_REGISTRATION_EXCEPTION: 'SECURITY_DAEMON_REGISTRATION_EXCEPTION',
|
|
302
302
|
/** The maximum request rate permitted by the Amazon EC2 APIs has been exceeded for your account. */
|
|
303
|
-
|
|
303
|
+
AWS_REQUEST_LIMIT_EXCEEDED: 'AWS_REQUEST_LIMIT_EXCEEDED',
|
|
304
304
|
/** We don't have enough addresses in the subnet for the instances in the request. */
|
|
305
|
-
|
|
305
|
+
AWS_INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_FAILURE: 'AWS_INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_FAILURE',
|
|
306
306
|
/** The request is not supported (This is a vague error code that can be thrown for a lot of reasons.) */
|
|
307
|
-
|
|
307
|
+
AWS_UNSUPPORTED_FAILURE: 'AWS_UNSUPPORTED_FAILURE',
|
|
308
308
|
/** Could not find enough azure resources to fulfill the request. */
|
|
309
|
-
|
|
309
|
+
AZURE_QUOTA_EXCEEDED_EXCEPTION: 'AZURE_QUOTA_EXCEEDED_EXCEPTION',
|
|
310
310
|
/** NOTE: This is currently used by exceptions with messages that are classified as user errors. */
|
|
311
|
-
|
|
311
|
+
AZURE_OPERATION_NOT_ALLOWED_EXCEPTION: 'AZURE_OPERATION_NOT_ALLOWED_EXCEPTION',
|
|
312
312
|
/** Failure when mounting remote NFS to container */
|
|
313
|
-
|
|
313
|
+
NFS_MOUNT_FAILURE: 'NFS_MOUNT_FAILURE',
|
|
314
314
|
/** K8S failed to upscale to acquire new nodes */
|
|
315
|
-
|
|
315
|
+
K8S_AUTOSCALING_FAILURE: 'K8S_AUTOSCALING_FAILURE',
|
|
316
316
|
/** DBR Cluster launched on K8s (i.e. CMv2) has failed to start up in time */
|
|
317
|
-
|
|
317
|
+
K8S_DBR_CLUSTER_LAUNCH_TIMEOUT: 'K8S_DBR_CLUSTER_LAUNCH_TIMEOUT',
|
|
318
318
|
/**
|
|
319
319
|
* Container launch failed while downloading the spark image. Catch all for if anything
|
|
320
320
|
* goes wrong while downloading and extracting the spark tarball.
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
SPARK_IMAGE_DOWNLOAD_FAILURE: 'SPARK_IMAGE_DOWNLOAD_FAILURE',
|
|
323
323
|
/** Azure VM Extension failure during instance bootstrap */
|
|
324
|
-
|
|
324
|
+
AZURE_VM_EXTENSION_FAILURE: 'AZURE_VM_EXTENSION_FAILURE',
|
|
325
325
|
/** Workspace was cancelled hence deny/terminate the cluster */
|
|
326
|
-
|
|
326
|
+
WORKSPACE_CANCELLED_ERROR: 'WORKSPACE_CANCELLED_ERROR',
|
|
327
327
|
/** The spot instance count in an account has exceeded the limit */
|
|
328
|
-
|
|
328
|
+
AWS_MAX_SPOT_INSTANCE_COUNT_EXCEEDED_FAILURE: 'AWS_MAX_SPOT_INSTANCE_COUNT_EXCEEDED_FAILURE',
|
|
329
329
|
/**
|
|
330
330
|
* Cluster is terminated because the services are temporarily unavailable.
|
|
331
331
|
* This normally happens when CM is restarting and draining execution contexts,
|
|
332
332
|
* or IM/Delegate is overloaded, so that it will not be able to retry the instance launch request.
|
|
333
333
|
*/
|
|
334
|
-
|
|
334
|
+
TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',
|
|
335
335
|
/**
|
|
336
336
|
* Bootstrap failure due to error during worker setup, usually due to an issue with
|
|
337
337
|
* disk or gpu setup. See SetupCommandBuilder for other possible causes
|
|
338
338
|
*/
|
|
339
|
-
|
|
339
|
+
WORKER_SETUP_FAILURE: 'WORKER_SETUP_FAILURE',
|
|
340
340
|
/**
|
|
341
341
|
* Cluster failure due to IP space exhaustion. For example on CMv2, Kubernetes will fail to scale
|
|
342
342
|
* up new nodes if the pod IP CIDR block is exhausted.
|
|
343
343
|
*/
|
|
344
|
-
|
|
344
|
+
IP_EXHAUSTION_FAILURE: 'IP_EXHAUSTION_FAILURE',
|
|
345
345
|
/**
|
|
346
346
|
* Could not find enough GCP resources to fulfill the request.
|
|
347
347
|
* TODO: It's very unfortunate that we have per-cloud termination reasons while we should have
|
|
@@ -349,101 +349,101 @@ export var TerminationCode;
|
|
|
349
349
|
* {AZURE_QUOTA_EXCEEDED_EXCEPTION, AWS_REQUEST_LIMIT_EXCEEDED and GCP_QUOTA_EXCEEDED},
|
|
350
350
|
* {AWS_INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET_FAILURE, IP_EXHAUSTION_FAILURE}, etc.
|
|
351
351
|
*/
|
|
352
|
-
|
|
352
|
+
GCP_QUOTA_EXCEEDED: 'GCP_QUOTA_EXCEEDED',
|
|
353
353
|
/** Cloud provider is undergoing a transient resource throttling. This is retryable. */
|
|
354
|
-
|
|
354
|
+
CLOUD_PROVIDER_RESOURCE_STOCKOUT: 'CLOUD_PROVIDER_RESOURCE_STOCKOUT',
|
|
355
355
|
/** The GCP service account associated with the DBR cluster is deleted. */
|
|
356
|
-
|
|
356
|
+
GCP_SERVICE_ACCOUNT_DELETED: 'GCP_SERVICE_ACCOUNT_DELETED',
|
|
357
357
|
/** Legit cluster termination in Azure caused by customer revoking the key permission used for managed-disks encryption */
|
|
358
|
-
|
|
358
|
+
AZURE_BYOK_KEY_PERMISSION_FAILURE: 'AZURE_BYOK_KEY_PERMISSION_FAILURE',
|
|
359
359
|
/** Termination because of spot instance terminated by cloud provider */
|
|
360
|
-
|
|
360
|
+
SPOT_INSTANCE_TERMINATION: 'SPOT_INSTANCE_TERMINATION',
|
|
361
361
|
/** Termination because of unsupported azure ephemeral os disk setup */
|
|
362
|
-
|
|
362
|
+
AZURE_EPHEMERAL_DISK_FAILURE: 'AZURE_EPHEMERAL_DISK_FAILURE',
|
|
363
363
|
/**
|
|
364
364
|
* The cluster was terminated because we detected an abusive runtime behavior that violated
|
|
365
365
|
* Terms of Service or Acceptable Use Policy.
|
|
366
366
|
*/
|
|
367
|
-
|
|
367
|
+
ABUSE_DETECTED: 'ABUSE_DETECTED',
|
|
368
368
|
/** Failed to pull DBR images due to permission error. */
|
|
369
|
-
|
|
369
|
+
IMAGE_PULL_PERMISSION_DENIED: 'IMAGE_PULL_PERMISSION_DENIED',
|
|
370
370
|
/** Workspace configuration is in error state due to configuration issue or ACL modification by the customer side */
|
|
371
|
-
|
|
371
|
+
WORKSPACE_CONFIGURATION_ERROR: 'WORKSPACE_CONFIGURATION_ERROR',
|
|
372
372
|
/**
|
|
373
373
|
* Catch all error for all secret resolution issues in cluster launch. This should be alerted on,
|
|
374
374
|
* and is considered a server error. This can be split out into other cases if there are client
|
|
375
375
|
* errors - for e.g. INVALID_ARGUMENT is used for secrets that don't exist and permission issues
|
|
376
376
|
*/
|
|
377
|
-
|
|
377
|
+
SECRET_RESOLUTION_ERROR: 'SECRET_RESOLUTION_ERROR',
|
|
378
378
|
/**
|
|
379
379
|
* Failure due to an instance being of an unsupported type. This is used when an instance in
|
|
380
380
|
* an EC2 fleet is of an unrecognized type, or an invalid type (i.e. graviton when we don't
|
|
381
381
|
* want graviton instances). This should be alerted on.
|
|
382
382
|
*/
|
|
383
|
-
|
|
383
|
+
UNSUPPORTED_INSTANCE_TYPE: 'UNSUPPORTED_INSTANCE_TYPE',
|
|
384
384
|
/** Failed during instance bootstrap with error code Cannot convert NVMe-based dev id */
|
|
385
|
-
|
|
385
|
+
CLOUD_PROVIDER_DISK_SETUP_FAILURE: 'CLOUD_PROVIDER_DISK_SETUP_FAILURE',
|
|
386
386
|
/** Exception when setting up instances using ssh bootstrap */
|
|
387
|
-
|
|
387
|
+
SSH_BOOTSTRAP_FAILURE: 'SSH_BOOTSTRAP_FAILURE',
|
|
388
388
|
/** Failed during instance bootstrap with error code Cannot convert NVMe-based dev id */
|
|
389
|
-
|
|
389
|
+
AWS_INACCESSIBLE_KMS_KEY_FAILURE: 'AWS_INACCESSIBLE_KMS_KEY_FAILURE',
|
|
390
390
|
/**
|
|
391
391
|
* The bootstrapping init-containers in Spark failed or timed out, blocking the Spark container
|
|
392
392
|
* from bootstrapping. This is a refinement of `SPARK_STARTUP_FAILURE`.
|
|
393
393
|
* (init-containers are a bootstrapping step owned by Databricks)
|
|
394
394
|
*/
|
|
395
|
-
|
|
395
|
+
INIT_CONTAINER_NOT_FINISHED: 'INIT_CONTAINER_NOT_FINISHED',
|
|
396
396
|
/**
|
|
397
397
|
* Container launch failed due to storage servers throttling our download of spark images. Can
|
|
398
398
|
* happen due to transient spikes of downloads overloading storage servers or gradual increase in
|
|
399
399
|
* usage. In the latter case we need to increase the number of storage servers in the region to
|
|
400
400
|
* help spread load.
|
|
401
401
|
*/
|
|
402
|
-
|
|
402
|
+
SPARK_IMAGE_DOWNLOAD_THROTTLED: 'SPARK_IMAGE_DOWNLOAD_THROTTLED',
|
|
403
403
|
/**
|
|
404
404
|
* The spark image specified for the cluster was not found when attempting to download. Usually
|
|
405
405
|
* due to the customer custom specifying a bad image.
|
|
406
406
|
*/
|
|
407
|
-
|
|
407
|
+
SPARK_IMAGE_NOT_FOUND: 'SPARK_IMAGE_NOT_FOUND',
|
|
408
408
|
/**
|
|
409
409
|
* Indicates that the cloud provider operations performed for the cluster were dropped due to
|
|
410
410
|
* an influx in load in the cloud provider and had to be dropped from our end to alleviate
|
|
411
411
|
* pressure within the DelegateRpcClient. Please see go/cmloadshedding for more.
|
|
412
412
|
*/
|
|
413
|
-
|
|
413
|
+
CLUSTER_OPERATION_THROTTLED: 'CLUSTER_OPERATION_THROTTLED',
|
|
414
414
|
/**
|
|
415
415
|
* The error code can be used to indicate a request misses its deadline. Can be used for either request timeouts
|
|
416
416
|
* or missed deadlines (i.e. a request is not completed as it was processed after its specified deadline)
|
|
417
417
|
*/
|
|
418
|
-
|
|
418
|
+
CLUSTER_OPERATION_TIMEOUT: 'CLUSTER_OPERATION_TIMEOUT',
|
|
419
419
|
/**
|
|
420
420
|
* This error code is used to terminate long-running Generic compute jobs in Serverless Environment
|
|
421
421
|
* as part of the NephosLongRunning watcher running in Cluster Monitor Service.
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
SERVERLESS_LONG_RUNNING_TERMINATED: 'SERVERLESS_LONG_RUNNING_TERMINATED',
|
|
424
424
|
/**
|
|
425
425
|
* This error code is used when the cluster is terminated due to its instances fail with partial failure from Azure
|
|
426
426
|
* packed deployments. In Azure, we might pack multiple launch requests in one deployment template in order
|
|
427
427
|
* to avoid the 800 templates limit on Azure side. If the packed deployment fails multiple times, the cluster could
|
|
428
428
|
* be terminated by this [[AZURE_PACKED_DEPLOYMENT_PARTIAL_FAILURE]] termination code.
|
|
429
429
|
*/
|
|
430
|
-
|
|
430
|
+
AZURE_PACKED_DEPLOYMENT_PARTIAL_FAILURE: 'AZURE_PACKED_DEPLOYMENT_PARTIAL_FAILURE',
|
|
431
431
|
/**
|
|
432
432
|
* The instances acquired from a pool in IMv2 do not have a valid worker image to be used in the
|
|
433
433
|
* cluster launch. This usually occurs after AMI/VHD upgrades, worker branch updates, etc.
|
|
434
434
|
*/
|
|
435
|
-
|
|
435
|
+
INVALID_WORKER_IMAGE_FAILURE: 'INVALID_WORKER_IMAGE_FAILURE',
|
|
436
436
|
/** Worker environment version was changed due to workspace network or CMK update. */
|
|
437
|
-
|
|
437
|
+
WORKSPACE_UPDATE: 'WORKSPACE_UPDATE',
|
|
438
438
|
/** The parameter user specified or the user account to create the cluster is invalid according to AWS. */
|
|
439
|
-
|
|
439
|
+
INVALID_AWS_PARAMETER: 'INVALID_AWS_PARAMETER',
|
|
440
440
|
/**
|
|
441
441
|
* ** Only relevant on k8s dataplanes (i.e. clusters launched with CMv2 - not CMv1).
|
|
442
442
|
*
|
|
443
443
|
* k8s evicted the driver pod due to disk pressure on the driver node. This is likely due to a
|
|
444
444
|
* customer job consuming too much disk and so this is classified as a customer issue.
|
|
445
445
|
*/
|
|
446
|
-
|
|
446
|
+
DRIVER_OUT_OF_DISK: 'DRIVER_OUT_OF_DISK',
|
|
447
447
|
/**
|
|
448
448
|
* ** Only relevant on k8s dataplanes (i.e. clusters launched with CMv2 - not CMv1).
|
|
449
449
|
*
|
|
@@ -452,259 +452,257 @@ export var TerminationCode;
|
|
|
452
452
|
* OOM first (we set memory limits on our pods). Thus this termination reason will be considered
|
|
453
453
|
* a databricks issue.
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
DRIVER_OUT_OF_MEMORY: 'DRIVER_OUT_OF_MEMORY',
|
|
456
456
|
/**
|
|
457
457
|
* ** Only relevant on k8s dataplanes (i.e. clusters launched with CMv2 - not CMv1).
|
|
458
458
|
* Original driver pod took too long to become ready and timed out.
|
|
459
459
|
*/
|
|
460
|
-
|
|
460
|
+
DRIVER_LAUNCH_TIMEOUT: 'DRIVER_LAUNCH_TIMEOUT',
|
|
461
461
|
/**
|
|
462
462
|
* ** Only relevant on k8s dataplanes (i.e. clusters launched with CMv2 - not CMv1).
|
|
463
463
|
* Unexpected failure during driver pod launch.
|
|
464
464
|
*/
|
|
465
|
-
|
|
465
|
+
DRIVER_UNEXPECTED_FAILURE: 'DRIVER_UNEXPECTED_FAILURE',
|
|
466
466
|
/**
|
|
467
467
|
* ** Only relevant on k8s dataplanes (i.e. clusters launched with CMv2 - not CMv1).
|
|
468
468
|
* Unexpected new driver pod created
|
|
469
469
|
*/
|
|
470
|
-
|
|
470
|
+
UNEXPECTED_POD_RECREATION: 'UNEXPECTED_POD_RECREATION',
|
|
471
471
|
/** Failure due to disabled or inaccessible CMK. */
|
|
472
|
-
|
|
472
|
+
GCP_INACCESSIBLE_KMS_KEY_FAILURE: 'GCP_INACCESSIBLE_KMS_KEY_FAILURE',
|
|
473
473
|
/** Failure due to missing/incorrect permission setup on CMK. */
|
|
474
|
-
|
|
474
|
+
GCP_KMS_KEY_PERMISSION_DENIED: 'GCP_KMS_KEY_PERMISSION_DENIED',
|
|
475
475
|
/** Driver pod evicted in Nephos */
|
|
476
|
-
|
|
476
|
+
DRIVER_EVICTION: 'DRIVER_EVICTION',
|
|
477
477
|
/** User request for termination directly to cloud */
|
|
478
|
-
|
|
478
|
+
USER_INITIATED_VM_TERMINATION: 'USER_INITIATED_VM_TERMINATION',
|
|
479
479
|
/** GCP Specific IAM API timeout issues during Workload Idenitity (Cluster Identity) binding process */
|
|
480
|
-
|
|
480
|
+
GCP_IAM_TIMEOUT: 'GCP_IAM_TIMEOUT',
|
|
481
481
|
/** Could not find enough AWS resources to fulfill the request */
|
|
482
|
-
|
|
482
|
+
AWS_RESOURCE_QUOTA_EXCEEDED: 'AWS_RESOURCE_QUOTA_EXCEEDED',
|
|
483
483
|
/** Cloud account setup has some error (e.g. pending email verification, blocked) */
|
|
484
|
-
|
|
484
|
+
CLOUD_ACCOUNT_SETUP_FAILURE: 'CLOUD_ACCOUNT_SETUP_FAILURE',
|
|
485
485
|
/** The specified key pair name does not exist. */
|
|
486
|
-
|
|
486
|
+
AWS_INVALID_KEY_PAIR: 'AWS_INVALID_KEY_PAIR',
|
|
487
487
|
/** Driver pod creation failure in nephos */
|
|
488
|
-
|
|
488
|
+
DRIVER_POD_CREATION_FAILURE: 'DRIVER_POD_CREATION_FAILURE',
|
|
489
489
|
/** Cluster terminated manually by on-call due to emergency maintenance */
|
|
490
|
-
|
|
490
|
+
MAINTENANCE_MODE: 'MAINTENANCE_MODE',
|
|
491
491
|
/** Nephos internal error due to insufficient provisioned k8s capacity or insufficient cloud quota */
|
|
492
|
-
|
|
492
|
+
INTERNAL_CAPACITY_FAILURE: 'INTERNAL_CAPACITY_FAILURE',
|
|
493
493
|
/** Nephos: could not acquire executor pods from pod pool */
|
|
494
|
-
|
|
494
|
+
EXECUTOR_POD_UNSCHEDULED: 'EXECUTOR_POD_UNSCHEDULED',
|
|
495
495
|
/** Artifact download failed because it was too slow */
|
|
496
|
-
|
|
496
|
+
STORAGE_DOWNLOAD_FAILURE_SLOW: 'STORAGE_DOWNLOAD_FAILURE_SLOW',
|
|
497
497
|
/** Artifact download failed because it was throttled by the download server */
|
|
498
|
-
|
|
498
|
+
STORAGE_DOWNLOAD_FAILURE_THROTTLED: 'STORAGE_DOWNLOAD_FAILURE_THROTTLED',
|
|
499
499
|
/** The cluster was terminated because the size of the dynamic spark conf exceeded the limit. */
|
|
500
|
-
|
|
500
|
+
DYNAMIC_SPARK_CONF_SIZE_EXCEEDED: 'DYNAMIC_SPARK_CONF_SIZE_EXCEEDED',
|
|
501
501
|
/** Failure to update the instance profile for the cluster. */
|
|
502
|
-
|
|
502
|
+
AWS_INSTANCE_PROFILE_UPDATE_FAILURE: 'AWS_INSTANCE_PROFILE_UPDATE_FAILURE',
|
|
503
503
|
/** The instance pool did not exist when the cluster was launched. */
|
|
504
|
-
|
|
504
|
+
INSTANCE_POOL_NOT_FOUND: 'INSTANCE_POOL_NOT_FOUND',
|
|
505
505
|
/** Attempting to launch more instances was rejected as it would exceed the pool's max capacity. */
|
|
506
|
-
|
|
506
|
+
INSTANCE_POOL_MAX_CAPACITY_REACHED: 'INSTANCE_POOL_MAX_CAPACITY_REACHED',
|
|
507
507
|
/** The KMS key provided is in an incorrect state. */
|
|
508
|
-
|
|
508
|
+
AWS_INVALID_KMS_KEY_STATE: 'AWS_INVALID_KMS_KEY_STATE',
|
|
509
509
|
/** Insufficient capacity failure from GCE API. */
|
|
510
|
-
|
|
510
|
+
GCP_INSUFFICIENT_CAPACITY: 'GCP_INSUFFICIENT_CAPACITY',
|
|
511
511
|
/** Rate quota exceeded for GCP API (e.g. Read requests per minute per region). */
|
|
512
|
-
|
|
512
|
+
GCP_API_RATE_QUOTA_EXCEEDED: 'GCP_API_RATE_QUOTA_EXCEEDED',
|
|
513
513
|
/** Resource quota exceeded (e.g. # of n1 vCPUs in a region). */
|
|
514
|
-
|
|
514
|
+
GCP_RESOURCE_QUOTA_EXCEEDED: 'GCP_RESOURCE_QUOTA_EXCEEDED',
|
|
515
515
|
/** Subnet IP space exhausted. */
|
|
516
|
-
|
|
516
|
+
GCP_IP_SPACE_EXHAUSTED: 'GCP_IP_SPACE_EXHAUSTED',
|
|
517
517
|
/** Missing permissions to launch VM with service account. */
|
|
518
|
-
|
|
518
|
+
GCP_SERVICE_ACCOUNT_ACCESS_DENIED: 'GCP_SERVICE_ACCOUNT_ACCESS_DENIED',
|
|
519
519
|
/** VM attempting to launch with non-existent service account. */
|
|
520
|
-
|
|
520
|
+
GCP_SERVICE_ACCOUNT_NOT_FOUND: 'GCP_SERVICE_ACCOUNT_NOT_FOUND',
|
|
521
521
|
/** Forbidden (403) returned by GCP API. */
|
|
522
|
-
|
|
522
|
+
GCP_FORBIDDEN: 'GCP_FORBIDDEN',
|
|
523
523
|
/** Not found (404) returned by GCP API. */
|
|
524
|
-
|
|
524
|
+
GCP_NOT_FOUND: 'GCP_NOT_FOUND',
|
|
525
525
|
/** Gatekeeper indicated the cluster should be shutdown */
|
|
526
|
-
|
|
526
|
+
RESOURCE_USAGE_BLOCKED: 'RESOURCE_USAGE_BLOCKED',
|
|
527
527
|
/** The data access config of the workspace has changed, and clusters using outdated config will be terminated. */
|
|
528
|
-
|
|
528
|
+
DATA_ACCESS_CONFIG_CHANGED: 'DATA_ACCESS_CONFIG_CHANGED',
|
|
529
529
|
/** Failed to fetch internal PAT token required for init script installation from WSFS/UC volumes */
|
|
530
|
-
|
|
530
|
+
ACCESS_TOKEN_FAILURE: 'ACCESS_TOKEN_FAILURE',
|
|
531
531
|
/**
|
|
532
532
|
* It indicates there is a placement v2 protocol rollout/rollback event for the corresponding workspace when
|
|
533
533
|
* processing the placement session on the instance-manager side. A retry will fix the issue by switching back
|
|
534
534
|
* to the correct placement protocol.
|
|
535
535
|
*/
|
|
536
|
-
|
|
536
|
+
INVALID_INSTANCE_PLACEMENT_PROTOCOL: 'INVALID_INSTANCE_PLACEMENT_PROTOCOL',
|
|
537
537
|
/** The cluster was terminated as it failed to resolve budget policy. */
|
|
538
|
-
|
|
538
|
+
BUDGET_POLICY_RESOLUTION_FAILURE: 'BUDGET_POLICY_RESOLUTION_FAILURE',
|
|
539
539
|
/**
|
|
540
540
|
* This customer/error combination is a known issue and is intentionally excluded from termination
|
|
541
541
|
* metrics
|
|
542
542
|
*/
|
|
543
|
-
|
|
543
|
+
IN_PENALTY_BOX: 'IN_PENALTY_BOX',
|
|
544
544
|
/**
|
|
545
545
|
* The cluster was terminated when the primary workspace failed over to the secondary workspace.
|
|
546
546
|
* This is expected because there is no data plane in the secondary workspace.
|
|
547
547
|
*/
|
|
548
|
-
|
|
548
|
+
DISASTER_RECOVERY_REPLICATION: 'DISASTER_RECOVERY_REPLICATION',
|
|
549
549
|
/** A bootstrap timeout that was caused by misconfiguration on the customer's side */
|
|
550
|
-
|
|
550
|
+
BOOTSTRAP_TIMEOUT_DUE_TO_MISCONFIG: 'BOOTSTRAP_TIMEOUT_DUE_TO_MISCONFIG',
|
|
551
551
|
/** Instance unreachable, but due to misconfiguration on the customer's side */
|
|
552
|
-
|
|
552
|
+
INSTANCE_UNREACHABLE_DUE_TO_MISCONFIG: 'INSTANCE_UNREACHABLE_DUE_TO_MISCONFIG',
|
|
553
553
|
/** Bootstrap timeout due to script download failure, but due to misconfiguration on the customer's side */
|
|
554
|
-
|
|
554
|
+
STORAGE_DOWNLOAD_FAILURE_DUE_TO_MISCONFIG: 'STORAGE_DOWNLOAD_FAILURE_DUE_TO_MISCONFIG',
|
|
555
555
|
/** CPRF, but due to misconfiguration on the customer's side */
|
|
556
|
-
|
|
556
|
+
CONTROL_PLANE_REQUEST_FAILURE_DUE_TO_MISCONFIG: 'CONTROL_PLANE_REQUEST_FAILURE_DUE_TO_MISCONFIG',
|
|
557
557
|
/** CPLF, but due to misconfiguration on the customer's side */
|
|
558
|
-
|
|
558
|
+
CLOUD_PROVIDER_LAUNCH_FAILURE_DUE_TO_MISCONFIG: 'CLOUD_PROVIDER_LAUNCH_FAILURE_DUE_TO_MISCONFIG',
|
|
559
559
|
/** GCP subnet is in transient "resourceNotReady" state. */
|
|
560
|
-
|
|
560
|
+
GCP_SUBNET_NOT_READY: 'GCP_SUBNET_NOT_READY',
|
|
561
561
|
/** The operation on the cloud provider was cancelled. Possibly due to a user action. */
|
|
562
|
-
|
|
562
|
+
CLOUD_OPERATION_CANCELLED: 'CLOUD_OPERATION_CANCELLED',
|
|
563
563
|
/**
|
|
564
564
|
* If cloud provider indicates instance creation was a success, yet the instance is never created.
|
|
565
565
|
* This can happen in certain edge cases like quota exhaustion on GCP. We have an open bug here:
|
|
566
566
|
* https://partnerissuetracker.corp.google.com/issues/339061883
|
|
567
567
|
*/
|
|
568
|
-
|
|
568
|
+
CLOUD_PROVIDER_INSTANCE_NOT_LAUNCHED: 'CLOUD_PROVIDER_INSTANCE_NOT_LAUNCHED',
|
|
569
569
|
/** GCP Databricks VM Machine Image is blocked by customer organization policy. */
|
|
570
|
-
|
|
570
|
+
GCP_TRUSTED_IMAGE_PROJECTS_VIOLATED: 'GCP_TRUSTED_IMAGE_PROJECTS_VIOLATED',
|
|
571
571
|
/** cluster terminate can happened when a budget policy limit enforcement activated */
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
BUDGET_POLICY_LIMIT_ENFORCEMENT_ACTIVATED: 'BUDGET_POLICY_LIMIT_ENFORCEMENT_ACTIVATED',
|
|
573
|
+
EOS_SPARK_IMAGE: 'EOS_SPARK_IMAGE',
|
|
574
574
|
/** Serverless only. There are no eligible K8s for the cluster. */
|
|
575
|
-
|
|
575
|
+
NO_MATCHED_K8S: 'NO_MATCHED_K8S',
|
|
576
576
|
/** Lazy allocation timeout. Timeout before any internal DBR clusters were allocated. */
|
|
577
|
-
|
|
577
|
+
LAZY_ALLOCATION_TIMEOUT: 'LAZY_ALLOCATION_TIMEOUT',
|
|
578
578
|
/** CMv2 unable to contact chauffeur or node-daemon on the driver node. */
|
|
579
|
-
|
|
579
|
+
DRIVER_NODE_UNREACHABLE: 'DRIVER_NODE_UNREACHABLE',
|
|
580
580
|
/** Dynamic secret generation failed. */
|
|
581
|
-
|
|
581
|
+
SECRET_CREATION_FAILURE: 'SECRET_CREATION_FAILURE',
|
|
582
582
|
/** Driver or executor pod failed to be scheduled. */
|
|
583
|
-
|
|
583
|
+
POD_SCHEDULING_FAILURE: 'POD_SCHEDULING_FAILURE',
|
|
584
584
|
/** Driver or executor pod failed to finish assigning. */
|
|
585
|
-
|
|
585
|
+
POD_ASSIGNMENT_FAILURE: 'POD_ASSIGNMENT_FAILURE',
|
|
586
586
|
/** Lazy allocation timeout with unknown reason. */
|
|
587
|
-
|
|
587
|
+
ALLOCATION_TIMEOUT: 'ALLOCATION_TIMEOUT',
|
|
588
588
|
/** Lazy allocation timeout. Maps to NoUnallocatedDbrCluster. */
|
|
589
|
-
|
|
589
|
+
ALLOCATION_TIMEOUT_NO_UNALLOCATED_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_UNALLOCATED_CLUSTERS',
|
|
590
590
|
/** Lazy allocation timeout. Maps to NoMatchedUnallocatedDbrCluster. */
|
|
591
|
-
|
|
591
|
+
ALLOCATION_TIMEOUT_NO_MATCHED_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_MATCHED_CLUSTERS',
|
|
592
592
|
/** Lazy allocation timeout. Maps to NoUnallocatedReadyDbrCluster. */
|
|
593
|
-
|
|
593
|
+
ALLOCATION_TIMEOUT_NO_READY_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_READY_CLUSTERS',
|
|
594
594
|
/** Lazy allocation timeout. Maps to NoMatchedUnallocatedWarmedUpDbrCluster. */
|
|
595
|
-
|
|
595
|
+
ALLOCATION_TIMEOUT_NO_WARMED_UP_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_WARMED_UP_CLUSTERS',
|
|
596
596
|
/** Lazy allocation timeout. Maps to NoCandidatesWithNodeDaemonK8sReady. */
|
|
597
|
-
|
|
597
|
+
ALLOCATION_TIMEOUT_NODE_DAEMON_NOT_READY: 'ALLOCATION_TIMEOUT_NODE_DAEMON_NOT_READY',
|
|
598
598
|
/** Lazy allocation timeout. Maps to NoCandidatesHealthy. */
|
|
599
|
-
|
|
599
|
+
ALLOCATION_TIMEOUT_NO_HEALTHY_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_HEALTHY_CLUSTERS',
|
|
600
600
|
/**
|
|
601
601
|
* When nephos blocking wait for netvisor setup ready signal, terminated by timeout.
|
|
602
602
|
* This error code only applies to clusters with the attribute should_block_for_network_readiness: true
|
|
603
603
|
*/
|
|
604
|
-
|
|
604
|
+
NETVISOR_SETUP_TIMEOUT: 'NETVISOR_SETUP_TIMEOUT',
|
|
605
605
|
/** Serverless only. The preselected K8s for the cluster is not eligible. */
|
|
606
|
-
|
|
606
|
+
NO_MATCHED_K8S_TESTING_TAG: 'NO_MATCHED_K8S_TESTING_TAG',
|
|
607
607
|
/** The customer's repeatedly attempting to launch clusters with some configuration that the CSP's not able to provide */
|
|
608
|
-
|
|
608
|
+
CLOUD_PROVIDER_RESOURCE_STOCKOUT_DUE_TO_MISCONFIG: 'CLOUD_PROVIDER_RESOURCE_STOCKOUT_DUE_TO_MISCONFIG',
|
|
609
609
|
/** For the GCP CMv1 Migration, we will terminate all CMv2 based clusters with this failure. */
|
|
610
|
-
|
|
610
|
+
GKE_BASED_CLUSTER_TERMINATION: 'GKE_BASED_CLUSTER_TERMINATION',
|
|
611
611
|
/** Lazy allocation timeout. Maps to NoCandidatesHealthyAndWarmedUp. */
|
|
612
|
-
|
|
612
|
+
ALLOCATION_TIMEOUT_NO_HEALTHY_AND_WARMED_UP_CLUSTERS: 'ALLOCATION_TIMEOUT_NO_HEALTHY_AND_WARMED_UP_CLUSTERS',
|
|
613
613
|
/** Docker container's OS was not valid. */
|
|
614
|
-
|
|
614
|
+
DOCKER_INVALID_OS_EXCEPTION: 'DOCKER_INVALID_OS_EXCEPTION',
|
|
615
615
|
/** Something went wrong during the creation of the docker container. */
|
|
616
|
-
|
|
616
|
+
DOCKER_CONTAINER_CREATION_EXCEPTION: 'DOCKER_CONTAINER_CREATION_EXCEPTION',
|
|
617
617
|
/** Customer passed in a docker image that's too large for the instance. */
|
|
618
|
-
|
|
618
|
+
DOCKER_IMAGE_TOO_LARGE_FOR_INSTANCE_EXCEPTION: 'DOCKER_IMAGE_TOO_LARGE_FOR_INSTANCE_EXCEPTION',
|
|
619
619
|
/** The cluster was terminated because the DNS resolution failed. */
|
|
620
|
-
|
|
620
|
+
DNS_RESOLUTION_ERROR: 'DNS_RESOLUTION_ERROR',
|
|
621
621
|
/** Org policy is preventing a GCE API operation from being executed. */
|
|
622
|
-
|
|
622
|
+
GCP_DENIED_BY_ORG_POLICY: 'GCP_DENIED_BY_ORG_POLICY',
|
|
623
623
|
/** Customer passed in a secret that they do not have permissions to resolve. */
|
|
624
|
-
|
|
624
|
+
SECRET_PERMISSION_DENIED: 'SECRET_PERMISSION_DENIED',
|
|
625
625
|
/** Start of network health check generated failures */
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
626
|
+
NETWORK_CHECK_NIC_FAILURE: 'NETWORK_CHECK_NIC_FAILURE',
|
|
627
|
+
NETWORK_CHECK_DNS_SERVER_FAILURE: 'NETWORK_CHECK_DNS_SERVER_FAILURE',
|
|
628
|
+
NETWORK_CHECK_STORAGE_FAILURE: 'NETWORK_CHECK_STORAGE_FAILURE',
|
|
629
|
+
NETWORK_CHECK_METADATA_ENDPOINT_FAILURE: 'NETWORK_CHECK_METADATA_ENDPOINT_FAILURE',
|
|
630
|
+
NETWORK_CHECK_CONTROL_PLANE_FAILURE: 'NETWORK_CHECK_CONTROL_PLANE_FAILURE',
|
|
631
|
+
NETWORK_CHECK_MULTIPLE_COMPONENTS_FAILURE: 'NETWORK_CHECK_MULTIPLE_COMPONENTS_FAILURE',
|
|
632
632
|
/** Driver has been down or unresponsive for an extended period of time */
|
|
633
|
-
|
|
633
|
+
DRIVER_UNHEALTHY: 'DRIVER_UNHEALTHY',
|
|
634
634
|
/** cluster request is denied due to disallowed usage policy entitlement */
|
|
635
|
-
|
|
635
|
+
USAGE_POLICY_ENTITLEMENT_DENIED: 'USAGE_POLICY_ENTITLEMENT_DENIED',
|
|
636
636
|
/** Request exceeded MAX_ACTIVE_DBR_PODS_PER_K8S_CLUSTER quota - too many active pods on the K8s cluster */
|
|
637
|
-
|
|
637
|
+
K8S_ACTIVE_POD_QUOTA_EXCEEDED: 'K8S_ACTIVE_POD_QUOTA_EXCEEDED',
|
|
638
638
|
/** Request exceeded MAX_PODS_PER_CLOUD_ACCOUNT quota - subscription/cloud account pod limit reached */
|
|
639
|
-
|
|
639
|
+
CLOUD_ACCOUNT_POD_QUOTA_EXCEEDED: 'CLOUD_ACCOUNT_POD_QUOTA_EXCEEDED',
|
|
640
640
|
/** Start of network health check generated failures due to misconfiguration */
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
641
|
+
NETWORK_CHECK_NIC_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_NIC_FAILURE_DUE_TO_MISCONFIG',
|
|
642
|
+
NETWORK_CHECK_DNS_SERVER_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_DNS_SERVER_FAILURE_DUE_TO_MISCONFIG',
|
|
643
|
+
NETWORK_CHECK_STORAGE_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_STORAGE_FAILURE_DUE_TO_MISCONFIG',
|
|
644
|
+
NETWORK_CHECK_METADATA_ENDPOINT_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_METADATA_ENDPOINT_FAILURE_DUE_TO_MISCONFIG',
|
|
645
|
+
NETWORK_CHECK_CONTROL_PLANE_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_CONTROL_PLANE_FAILURE_DUE_TO_MISCONFIG',
|
|
646
|
+
NETWORK_CHECK_MULTIPLE_COMPONENTS_FAILURE_DUE_TO_MISCONFIG: 'NETWORK_CHECK_MULTIPLE_COMPONENTS_FAILURE_DUE_TO_MISCONFIG',
|
|
647
647
|
/**
|
|
648
648
|
* CMv2 could not resolve the DBR image for versionless workloads (REPL, GENERIC).
|
|
649
649
|
* This typically happens when no spark version is found from the channel mapping
|
|
650
650
|
* and the workload is versionless-enabled.
|
|
651
651
|
*/
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
652
|
+
DBR_IMAGE_RESOLUTION_FAILURE: 'DBR_IMAGE_RESOLUTION_FAILURE',
|
|
653
|
+
CONTROL_PLANE_CONNECTION_FAILURE: 'CONTROL_PLANE_CONNECTION_FAILURE',
|
|
654
|
+
CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG: 'CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG',
|
|
655
|
+
RATE_LIMITED: 'RATE_LIMITED',
|
|
656
656
|
/** The cluster was terminated because mutual TLS port 8443 check failed. */
|
|
657
|
-
|
|
657
|
+
MTLS_PORT_CONNECTIVITY_FAILURE: 'MTLS_PORT_CONNECTIVITY_FAILURE',
|
|
658
658
|
/** The cluster was terminated because hivemetastore connectivity check failed. */
|
|
659
|
-
|
|
660
|
-
}
|
|
659
|
+
HIVEMETASTORE_CONNECTIVITY_FAILURE: 'HIVEMETASTORE_CONNECTIVITY_FAILURE',
|
|
660
|
+
};
|
|
661
661
|
/** type of the termination */
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
663
|
+
export const TerminationType = {
|
|
664
664
|
/** Termination succeeded normally */
|
|
665
|
-
|
|
665
|
+
SUCCESS: 'SUCCESS',
|
|
666
666
|
/** Non-retryable. Client must fix parameters before reattempting the cluster creation */
|
|
667
|
-
|
|
667
|
+
CLIENT_ERROR: 'CLIENT_ERROR',
|
|
668
668
|
/** Databricks service issue. Clients may retry */
|
|
669
|
-
|
|
669
|
+
SERVICE_FAULT: 'SERVICE_FAULT',
|
|
670
670
|
/** AWS or Azure infrastructure issue. Clients may retry after the underlying cloud issue is resolved */
|
|
671
|
-
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
671
|
+
CLOUD_FAILURE: 'CLOUD_FAILURE',
|
|
672
|
+
};
|
|
673
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
674
|
+
export const WarehouseType = {
|
|
675
675
|
/** UNDOCUMENTED. Indicates no value is specified. */
|
|
676
|
-
|
|
676
|
+
TYPE_UNSPECIFIED: 'TYPE_UNSPECIFIED',
|
|
677
677
|
/** Classic warehouse type */
|
|
678
|
-
|
|
678
|
+
CLASSIC: 'CLASSIC',
|
|
679
679
|
/** Pro warehouse type */
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
683
|
-
export
|
|
684
|
-
(function (EndpointHealth_Status) {
|
|
680
|
+
PRO: 'PRO',
|
|
681
|
+
};
|
|
682
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
683
|
+
export const EndpointHealth_Status = {
|
|
685
684
|
/** UNDOCUMENTED. Indicates no value is specified. An implementation detail. */
|
|
686
|
-
|
|
685
|
+
STATUS_UNSPECIFIED: 'STATUS_UNSPECIFIED',
|
|
687
686
|
/** Endpoint is functioning normally and there are no known issues. */
|
|
688
|
-
|
|
687
|
+
HEALTHY: 'HEALTHY',
|
|
689
688
|
/**
|
|
690
689
|
* Endpoint might be functional, but there are some known issues.
|
|
691
690
|
* Performance might be affected.
|
|
692
691
|
*/
|
|
693
|
-
|
|
692
|
+
DEGRADED: 'DEGRADED',
|
|
694
693
|
/** Endpoint is severely affected. Likely will not be able to serve queries. */
|
|
695
|
-
|
|
696
|
-
}
|
|
694
|
+
FAILED: 'FAILED',
|
|
695
|
+
};
|
|
697
696
|
export const unmarshalChannelSchema = z
|
|
698
697
|
.object({
|
|
699
|
-
name: z.
|
|
698
|
+
name: z.string().optional(),
|
|
700
699
|
dbsql_version: z.string().optional(),
|
|
701
700
|
})
|
|
702
701
|
.transform(d => ({
|
|
703
702
|
name: d.name,
|
|
704
703
|
dbsqlVersion: d.dbsql_version,
|
|
705
704
|
}));
|
|
706
|
-
|
|
707
|
-
export const unmarshalCreateWarehouseRequest_ResponseSchema = z
|
|
705
|
+
export const unmarshalCreateWarehouseResponseSchema = z
|
|
708
706
|
.object({
|
|
709
707
|
id: z.string().optional(),
|
|
710
708
|
})
|
|
@@ -715,7 +713,7 @@ export const unmarshalDefaultWarehouseOverrideSchema = z
|
|
|
715
713
|
.object({
|
|
716
714
|
name: z.string().optional(),
|
|
717
715
|
default_warehouse_override_id: z.string().optional(),
|
|
718
|
-
type: z.
|
|
716
|
+
type: z.string().optional(),
|
|
719
717
|
warehouse_id: z.string().optional(),
|
|
720
718
|
})
|
|
721
719
|
.transform(d => ({
|
|
@@ -724,8 +722,8 @@ export const unmarshalDefaultWarehouseOverrideSchema = z
|
|
|
724
722
|
type: d.type,
|
|
725
723
|
warehouseId: d.warehouse_id,
|
|
726
724
|
}));
|
|
727
|
-
|
|
728
|
-
export const
|
|
725
|
+
export const unmarshalDeleteWarehouseResponseSchema = z.object({});
|
|
726
|
+
export const unmarshalEditWarehouseResponseSchema = z.object({});
|
|
729
727
|
export const unmarshalEndpointConfPairSchema = z
|
|
730
728
|
.object({
|
|
731
729
|
key: z.string().optional(),
|
|
@@ -737,7 +735,7 @@ export const unmarshalEndpointConfPairSchema = z
|
|
|
737
735
|
}));
|
|
738
736
|
export const unmarshalEndpointHealthSchema = z
|
|
739
737
|
.object({
|
|
740
|
-
status: z.
|
|
738
|
+
status: z.string().optional(),
|
|
741
739
|
message: z.string().optional(),
|
|
742
740
|
failure_reason: z.lazy(() => unmarshalTerminationReasonSchema).optional(),
|
|
743
741
|
summary: z.string().optional(),
|
|
@@ -761,17 +759,17 @@ export const unmarshalEndpointInfoSchema = z
|
|
|
761
759
|
creator_name: z.string().optional(),
|
|
762
760
|
instance_profile_arn: z.string().optional(),
|
|
763
761
|
tags: z.lazy(() => unmarshalEndpointTagsSchema).optional(),
|
|
764
|
-
spot_instance_policy: z.
|
|
762
|
+
spot_instance_policy: z.string().optional(),
|
|
765
763
|
enable_photon: z.boolean().optional(),
|
|
766
764
|
channel: z.lazy(() => unmarshalChannelSchema).optional(),
|
|
767
765
|
enable_serverless_compute: z.boolean().optional(),
|
|
768
|
-
warehouse_type: z.
|
|
766
|
+
warehouse_type: z.string().optional(),
|
|
769
767
|
num_clusters: z.number().optional(),
|
|
770
768
|
num_active_sessions: z
|
|
771
769
|
.union([z.number(), z.bigint()])
|
|
772
770
|
.transform(v => BigInt(v))
|
|
773
771
|
.optional(),
|
|
774
|
-
state: z.
|
|
772
|
+
state: z.string().optional(),
|
|
775
773
|
jdbc_url: z.string().optional(),
|
|
776
774
|
odbc_params: z.lazy(() => unmarshalOdbcParamsSchema).optional(),
|
|
777
775
|
health: z.lazy(() => unmarshalEndpointHealthSchema).optional(),
|
|
@@ -816,8 +814,7 @@ export const unmarshalEndpointTagsSchema = z
|
|
|
816
814
|
.transform(d => ({
|
|
817
815
|
customTags: d.custom_tags,
|
|
818
816
|
}));
|
|
819
|
-
|
|
820
|
-
export const unmarshalGetWarehouseRequest_ResponseSchema = z
|
|
817
|
+
export const unmarshalGetWarehouseResponseSchema = z
|
|
821
818
|
.object({
|
|
822
819
|
id: z.string().optional(),
|
|
823
820
|
name: z.string().optional(),
|
|
@@ -828,17 +825,17 @@ export const unmarshalGetWarehouseRequest_ResponseSchema = z
|
|
|
828
825
|
creator_name: z.string().optional(),
|
|
829
826
|
instance_profile_arn: z.string().optional(),
|
|
830
827
|
tags: z.lazy(() => unmarshalEndpointTagsSchema).optional(),
|
|
831
|
-
spot_instance_policy: z.
|
|
828
|
+
spot_instance_policy: z.string().optional(),
|
|
832
829
|
enable_photon: z.boolean().optional(),
|
|
833
830
|
channel: z.lazy(() => unmarshalChannelSchema).optional(),
|
|
834
831
|
enable_serverless_compute: z.boolean().optional(),
|
|
835
|
-
warehouse_type: z.
|
|
832
|
+
warehouse_type: z.string().optional(),
|
|
836
833
|
num_clusters: z.number().optional(),
|
|
837
834
|
num_active_sessions: z
|
|
838
835
|
.union([z.number(), z.bigint()])
|
|
839
836
|
.transform(v => BigInt(v))
|
|
840
837
|
.optional(),
|
|
841
|
-
state: z.
|
|
838
|
+
state: z.string().optional(),
|
|
842
839
|
jdbc_url: z.string().optional(),
|
|
843
840
|
odbc_params: z.lazy(() => unmarshalOdbcParamsSchema).optional(),
|
|
844
841
|
health: z.lazy(() => unmarshalEndpointHealthSchema).optional(),
|
|
@@ -865,10 +862,9 @@ export const unmarshalGetWarehouseRequest_ResponseSchema = z
|
|
|
865
862
|
odbcParams: d.odbc_params,
|
|
866
863
|
health: d.health,
|
|
867
864
|
}));
|
|
868
|
-
|
|
869
|
-
export const unmarshalGetWorkspaceWarehouseConfigRequest_ResponseSchema = z
|
|
865
|
+
export const unmarshalGetWorkspaceWarehouseConfigResponseSchema = z
|
|
870
866
|
.object({
|
|
871
|
-
security_policy: z.
|
|
867
|
+
security_policy: z.string().optional(),
|
|
872
868
|
data_access_config: z
|
|
873
869
|
.array(z.lazy(() => unmarshalEndpointConfPairSchema))
|
|
874
870
|
.optional(),
|
|
@@ -912,6 +908,15 @@ export const unmarshalListDefaultWarehouseOverridesResponseSchema = z
|
|
|
912
908
|
defaultWarehouseOverrides: d.default_warehouse_overrides,
|
|
913
909
|
nextPageToken: d.next_page_token,
|
|
914
910
|
}));
|
|
911
|
+
export const unmarshalListWarehousesResponseSchema = z
|
|
912
|
+
.object({
|
|
913
|
+
warehouses: z.array(z.lazy(() => unmarshalEndpointInfoSchema)).optional(),
|
|
914
|
+
next_page_token: z.string().optional(),
|
|
915
|
+
})
|
|
916
|
+
.transform(d => ({
|
|
917
|
+
warehouses: d.warehouses,
|
|
918
|
+
nextPageToken: d.next_page_token,
|
|
919
|
+
}));
|
|
915
920
|
export const unmarshalOdbcParamsSchema = z
|
|
916
921
|
.object({
|
|
917
922
|
hostname: z.string().optional(),
|
|
@@ -938,12 +943,13 @@ export const unmarshalRepeatedEndpointConfPairsSchema = z
|
|
|
938
943
|
configPair: d.config_pair,
|
|
939
944
|
configurationPairs: d.configuration_pairs,
|
|
940
945
|
}));
|
|
941
|
-
|
|
942
|
-
export const
|
|
946
|
+
export const unmarshalSetWorkspaceWarehouseConfigResponseSchema = z.object({});
|
|
947
|
+
export const unmarshalStartResponseSchema = z.object({});
|
|
948
|
+
export const unmarshalStopResponseSchema = z.object({});
|
|
943
949
|
export const unmarshalTerminationReasonSchema = z
|
|
944
950
|
.object({
|
|
945
|
-
code: z.
|
|
946
|
-
type: z.
|
|
951
|
+
code: z.string().optional(),
|
|
952
|
+
type: z.string().optional(),
|
|
947
953
|
parameters: z.record(z.string(), z.string()).optional(),
|
|
948
954
|
})
|
|
949
955
|
.transform(d => ({
|
|
@@ -953,32 +959,16 @@ export const unmarshalTerminationReasonSchema = z
|
|
|
953
959
|
}));
|
|
954
960
|
export const unmarshalWarehouseTypePairSchema = z
|
|
955
961
|
.object({
|
|
956
|
-
warehouse_type: z.
|
|
962
|
+
warehouse_type: z.string().optional(),
|
|
957
963
|
enabled: z.boolean().optional(),
|
|
958
964
|
})
|
|
959
965
|
.transform(d => ({
|
|
960
966
|
warehouseType: d.warehouse_type,
|
|
961
967
|
enabled: d.enabled,
|
|
962
968
|
}));
|
|
963
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
964
|
-
export const unmarshalDeleteWarehouseRequest_ResponseSchema = z.object({});
|
|
965
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
966
|
-
export const unmarshalListWarehousesRequest_ResponseSchema = z
|
|
967
|
-
.object({
|
|
968
|
-
warehouses: z.array(z.lazy(() => unmarshalEndpointInfoSchema)).optional(),
|
|
969
|
-
next_page_token: z.string().optional(),
|
|
970
|
-
})
|
|
971
|
-
.transform(d => ({
|
|
972
|
-
warehouses: d.warehouses,
|
|
973
|
-
nextPageToken: d.next_page_token,
|
|
974
|
-
}));
|
|
975
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
976
|
-
export const unmarshalStartRequest_ResponseSchema = z.object({});
|
|
977
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
978
|
-
export const unmarshalStopRequest_ResponseSchema = z.object({});
|
|
979
969
|
export const marshalChannelSchema = z
|
|
980
970
|
.object({
|
|
981
|
-
name: z.
|
|
971
|
+
name: z.string().optional(),
|
|
982
972
|
dbsqlVersion: z.string().optional(),
|
|
983
973
|
})
|
|
984
974
|
.transform(d => ({
|
|
@@ -995,11 +985,11 @@ export const marshalCreateWarehouseRequestSchema = z
|
|
|
995
985
|
creatorName: z.string().optional(),
|
|
996
986
|
instanceProfileArn: z.string().optional(),
|
|
997
987
|
tags: z.lazy(() => marshalEndpointTagsSchema).optional(),
|
|
998
|
-
spotInstancePolicy: z.
|
|
988
|
+
spotInstancePolicy: z.string().optional(),
|
|
999
989
|
enablePhoton: z.boolean().optional(),
|
|
1000
990
|
channel: z.lazy(() => marshalChannelSchema).optional(),
|
|
1001
991
|
enableServerlessCompute: z.boolean().optional(),
|
|
1002
|
-
warehouseType: z.
|
|
992
|
+
warehouseType: z.string().optional(),
|
|
1003
993
|
})
|
|
1004
994
|
.transform(d => ({
|
|
1005
995
|
name: d.name,
|
|
@@ -1020,7 +1010,7 @@ export const marshalDefaultWarehouseOverrideSchema = z
|
|
|
1020
1010
|
.object({
|
|
1021
1011
|
name: z.string().optional(),
|
|
1022
1012
|
defaultWarehouseOverrideId: z.string().optional(),
|
|
1023
|
-
type: z.
|
|
1013
|
+
type: z.string().optional(),
|
|
1024
1014
|
warehouseId: z.string().optional(),
|
|
1025
1015
|
})
|
|
1026
1016
|
.transform(d => ({
|
|
@@ -1040,11 +1030,11 @@ export const marshalEditWarehouseRequestSchema = z
|
|
|
1040
1030
|
creatorName: z.string().optional(),
|
|
1041
1031
|
instanceProfileArn: z.string().optional(),
|
|
1042
1032
|
tags: z.lazy(() => marshalEndpointTagsSchema).optional(),
|
|
1043
|
-
spotInstancePolicy: z.
|
|
1033
|
+
spotInstancePolicy: z.string().optional(),
|
|
1044
1034
|
enablePhoton: z.boolean().optional(),
|
|
1045
1035
|
channel: z.lazy(() => marshalChannelSchema).optional(),
|
|
1046
1036
|
enableServerlessCompute: z.boolean().optional(),
|
|
1047
|
-
warehouseType: z.
|
|
1037
|
+
warehouseType: z.string().optional(),
|
|
1048
1038
|
})
|
|
1049
1039
|
.transform(d => ({
|
|
1050
1040
|
id: d.id,
|
|
@@ -1100,7 +1090,7 @@ export const marshalRepeatedEndpointConfPairsSchema = z
|
|
|
1100
1090
|
}));
|
|
1101
1091
|
export const marshalSetWorkspaceWarehouseConfigRequestSchema = z
|
|
1102
1092
|
.object({
|
|
1103
|
-
securityPolicy: z.
|
|
1093
|
+
securityPolicy: z.string().optional(),
|
|
1104
1094
|
dataAccessConfig: z
|
|
1105
1095
|
.array(z.lazy(() => marshalEndpointConfPairSchema))
|
|
1106
1096
|
.optional(),
|
|
@@ -1135,7 +1125,7 @@ export const marshalSetWorkspaceWarehouseConfigRequestSchema = z
|
|
|
1135
1125
|
}));
|
|
1136
1126
|
export const marshalWarehouseTypePairSchema = z
|
|
1137
1127
|
.object({
|
|
1138
|
-
warehouseType: z.
|
|
1128
|
+
warehouseType: z.string().optional(),
|
|
1139
1129
|
enabled: z.boolean().optional(),
|
|
1140
1130
|
})
|
|
1141
1131
|
.transform(d => ({
|