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