@databricks/sdk-postgres 0.1.0-dev.3 → 0.1.0-dev.5
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 +43 -43
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +126 -126
- 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 +193 -167
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +251 -234
- 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 -3277
- package/src/v1/index.ts +0 -140
- package/src/v1/model.ts +0 -3932
- package/src/v1/transport.ts +0 -73
- package/src/v1/utils.ts +0 -180
package/dist/v1/model.js
CHANGED
|
@@ -3,16 +3,16 @@ import { Temporal } from '@js-temporal/polyfill';
|
|
|
3
3
|
import { FieldMask } from '@databricks/sdk-core/wkt';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
/** The compute endpoint type. Either `read_write` or `read_only`. */
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
7
|
+
export const EndpointType = {
|
|
8
8
|
/** Default value, not used */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
ENDPOINT_TYPE_UNSPECIFIED: 'ENDPOINT_TYPE_UNSPECIFIED',
|
|
10
|
+
ENDPOINT_TYPE_READ_WRITE: 'ENDPOINT_TYPE_READ_WRITE',
|
|
11
|
+
ENDPOINT_TYPE_READ_ONLY: 'ENDPOINT_TYPE_READ_ONLY',
|
|
12
|
+
};
|
|
13
13
|
/** Error codes returned by Databricks APIs to indicate specific failure conditions. */
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
15
|
+
export const ErrorCode = {
|
|
16
16
|
/**
|
|
17
17
|
* Unknown error. This error generally should not be returned explicitly, but will be used
|
|
18
18
|
* as a fallback if the error enum is missing from the message for some reason.
|
|
@@ -25,7 +25,7 @@ export var ErrorCode;
|
|
|
25
25
|
* - google.rpc.Code: UNKNOWN = 2;
|
|
26
26
|
* - HTTP code: 500 Internal Server Error
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
UNKNOWN: 'UNKNOWN',
|
|
29
29
|
/**
|
|
30
30
|
* Internal error. This means that some invariants expected by the underlying system have been
|
|
31
31
|
* broken. This error code is reserved for serious errors, which generally cannot be resolved
|
|
@@ -38,7 +38,7 @@ export var ErrorCode;
|
|
|
38
38
|
* - google.rpc.Code: INTERNAL = 13;
|
|
39
39
|
* - HTTP code: 500 Internal Server Error
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR',
|
|
42
42
|
/**
|
|
43
43
|
* The service is currently unavailable. This is most likely a transient condition, which can be
|
|
44
44
|
* corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent
|
|
@@ -53,13 +53,13 @@ export var ErrorCode;
|
|
|
53
53
|
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
54
54
|
* - HTTP code: 503 Service Unavailable
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',
|
|
57
57
|
/**
|
|
58
58
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
59
59
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
60
60
|
* Indicates that an IOException has been internally thrown.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
IO_ERROR: 'IO_ERROR',
|
|
63
63
|
/**
|
|
64
64
|
* The request is invalid. Prefer more specific error code whenever possible.
|
|
65
65
|
* Also see similar recommendation for the google.rpc.Code.FAILED_PRECONDITION.
|
|
@@ -70,14 +70,14 @@ export var ErrorCode;
|
|
|
70
70
|
* - google.rpc.Code: FAILED_PRECONDITION = 9;
|
|
71
71
|
* - HTTP code: 400 Bad Request
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
BAD_REQUEST: 'BAD_REQUEST',
|
|
74
74
|
/**
|
|
75
75
|
* An external service is unavailable temporarily as it is being updated/re-deployed. Indicates
|
|
76
76
|
* gateway proxy to safely retry the request.
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',
|
|
79
79
|
/** A workspace is temporarily unavailable as the workspace is being re-assigned. */
|
|
80
|
-
|
|
80
|
+
WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',
|
|
81
81
|
/**
|
|
82
82
|
* The deadline expired before the operation could complete. For operations that change the state
|
|
83
83
|
* of the system, this error may be returned even if the operation has completed successfully.
|
|
@@ -90,7 +90,7 @@ export var ErrorCode;
|
|
|
90
90
|
* - google.rpc.Code: DEADLINE_EXCEEDED = 4;
|
|
91
91
|
* - HTTP code: 504 Gateway Timeout
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',
|
|
94
94
|
/**
|
|
95
95
|
* The operation was canceled by the caller. An example - client closed the connection without
|
|
96
96
|
* waiting for a response.
|
|
@@ -99,7 +99,7 @@ export var ErrorCode;
|
|
|
99
99
|
* - google.rpc.Code: CANCELLED = 1;
|
|
100
100
|
* - HTTP code: 499 Client Closed Request
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
CANCELLED: 'CANCELLED',
|
|
103
103
|
/**
|
|
104
104
|
* The operation is rejected because of either rate limiting or resource quota,
|
|
105
105
|
* such as the client has sent too many requests recently or the client has allocated too many
|
|
@@ -112,7 +112,7 @@ export var ErrorCode;
|
|
|
112
112
|
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
113
113
|
* - HTTP code: 429 Too Many Requests
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
|
|
116
116
|
/**
|
|
117
117
|
* The operation was aborted, typically due to a concurrency issue such as a sequencer
|
|
118
118
|
* check failure, transaction abort, or transaction conflict.
|
|
@@ -121,7 +121,7 @@ export var ErrorCode;
|
|
|
121
121
|
* - google.rpc.Code: ABORTED = 10;
|
|
122
122
|
* - HTTP code: 409 Conflict
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
ABORTED: 'ABORTED',
|
|
125
125
|
/**
|
|
126
126
|
* Operation was performed on a resource that does not exist,
|
|
127
127
|
* e.g. file or directory was not found.
|
|
@@ -130,7 +130,7 @@ export var ErrorCode;
|
|
|
130
130
|
* - google.rpc.Code: NOT_FOUND = 5;
|
|
131
131
|
* - HTTP code: 404 Not Found
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
NOT_FOUND: 'NOT_FOUND',
|
|
134
134
|
/**
|
|
135
135
|
* Operation was rejected due a conflict with an existing resource, e.g. attempted to create
|
|
136
136
|
* file or directory that already exists.
|
|
@@ -141,7 +141,7 @@ export var ErrorCode;
|
|
|
141
141
|
* - google.rpc.Code: ALREADY_EXISTS = 6;
|
|
142
142
|
* - HTTP code: 409 Conflict
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
ALREADY_EXISTS: 'ALREADY_EXISTS',
|
|
145
145
|
/**
|
|
146
146
|
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
147
147
|
*
|
|
@@ -153,7 +153,7 @@ export var ErrorCode;
|
|
|
153
153
|
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
154
154
|
* - HTTP code: 401 Unauthorized
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
UNAUTHENTICATED: 'UNAUTHENTICATED',
|
|
157
157
|
/**
|
|
158
158
|
* The service is currently unavailable. Please note that the unavailability may or may not be transient.
|
|
159
159
|
* That means if this is a non-transient condition, retrying it does not work. If the unavailability
|
|
@@ -168,7 +168,7 @@ export var ErrorCode;
|
|
|
168
168
|
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
169
169
|
* - HTTP code: 503 Service Unavailable
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
UNAVAILABLE: 'UNAVAILABLE',
|
|
172
172
|
/**
|
|
173
173
|
* Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
|
|
174
174
|
*
|
|
@@ -176,7 +176,7 @@ export var ErrorCode;
|
|
|
176
176
|
* - google.rpc.Code: INVALID_ARGUMENT = 3;
|
|
177
177
|
* - HTTP code: 400 Bad Request
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',
|
|
180
180
|
/**
|
|
181
181
|
* Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
|
|
182
182
|
* should be used instead to indicate that API doesn't exist.
|
|
@@ -185,15 +185,15 @@ export var ErrorCode;
|
|
|
185
185
|
* - google.rpc.Code: NOT_FOUND = 5;
|
|
186
186
|
* - HTTP code: 404 Not Found
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
|
|
189
189
|
/** Indicates that the given API request was malformed. */
|
|
190
|
-
|
|
190
|
+
MALFORMED_REQUEST: 'MALFORMED_REQUEST',
|
|
191
191
|
/**
|
|
192
192
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
193
193
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
194
194
|
* If one or more of the inputs to a given RPC are not in a valid state for the action.
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
INVALID_STATE: 'INVALID_STATE',
|
|
197
197
|
/**
|
|
198
198
|
* The caller does not have permission to execute the specified operation.
|
|
199
199
|
* PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
|
|
@@ -207,7 +207,7 @@ export var ErrorCode;
|
|
|
207
207
|
* - google.rpc.Code: PERMISSION_DENIED = 7;
|
|
208
208
|
* - HTTP code: 403 Forbidden
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
PERMISSION_DENIED: 'PERMISSION_DENIED',
|
|
211
211
|
/**
|
|
212
212
|
* NOTE: Deprecated due to inconsistent mapping in legacy code, see
|
|
213
213
|
* https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
|
|
@@ -219,7 +219,7 @@ export var ErrorCode;
|
|
|
219
219
|
* - google.rpc.Code: NOT_FOUND = 5;
|
|
220
220
|
* - HTTP code: 404 Not Found
|
|
221
221
|
*/
|
|
222
|
-
|
|
222
|
+
FEATURE_DISABLED: 'FEATURE_DISABLED',
|
|
223
223
|
/**
|
|
224
224
|
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
225
225
|
*
|
|
@@ -240,7 +240,7 @@ export var ErrorCode;
|
|
|
240
240
|
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
241
241
|
* - HTTP code: 401 Unauthorized
|
|
242
242
|
*/
|
|
243
|
-
|
|
243
|
+
CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',
|
|
244
244
|
/**
|
|
245
245
|
* The operation is rejected because of request rate limit, for example rate limiting applied to
|
|
246
246
|
* users, workspaces, IP addresses, etc.
|
|
@@ -254,16 +254,16 @@ export var ErrorCode;
|
|
|
254
254
|
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
255
255
|
* - HTTP code: 429 Too Many Requests
|
|
256
256
|
*/
|
|
257
|
-
|
|
257
|
+
REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',
|
|
258
258
|
/** Indicates API request was rejected due a conflict with an existing resource. */
|
|
259
|
-
|
|
259
|
+
RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',
|
|
260
260
|
/**
|
|
261
261
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
262
262
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
263
263
|
* Indicates that the HTTP response cannot be correctly deserialized.
|
|
264
264
|
* This currently is only used in DUST test clients, and not by any real service code.
|
|
265
265
|
*/
|
|
266
|
-
|
|
266
|
+
UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',
|
|
267
267
|
/**
|
|
268
268
|
* The operation is not implemented or is not supported/enabled in this service.
|
|
269
269
|
*
|
|
@@ -271,7 +271,7 @@ export var ErrorCode;
|
|
|
271
271
|
* - google.rpc.Code: UNIMPLEMENTED = 12;
|
|
272
272
|
* - HTTP code: 501 Not Implemented
|
|
273
273
|
*/
|
|
274
|
-
|
|
274
|
+
NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',
|
|
275
275
|
/**
|
|
276
276
|
* Unrecoverable data loss or corruption.
|
|
277
277
|
*
|
|
@@ -286,15 +286,15 @@ export var ErrorCode;
|
|
|
286
286
|
* - google.rpc.Code: DATA_LOSS = 15;
|
|
287
287
|
* - HTTP code: 500 Internal Server Error
|
|
288
288
|
*/
|
|
289
|
-
|
|
289
|
+
DATA_LOSS: 'DATA_LOSS',
|
|
290
290
|
/** If the user attempts to perform an invalid state transition on a shard. */
|
|
291
|
-
|
|
291
|
+
INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',
|
|
292
292
|
/**
|
|
293
293
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
294
294
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
295
295
|
* Unable to perform the operation because the shard was locked by some other operation.
|
|
296
296
|
*/
|
|
297
|
-
|
|
297
|
+
COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',
|
|
298
298
|
/**
|
|
299
299
|
* NOTE: Deprecated, prefer using ALREADY_EXISTS.
|
|
300
300
|
* Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
|
|
@@ -302,7 +302,7 @@ export var ErrorCode;
|
|
|
302
302
|
*
|
|
303
303
|
* Operation was performed on a resource that already exists.
|
|
304
304
|
*/
|
|
305
|
-
|
|
305
|
+
RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',
|
|
306
306
|
/**
|
|
307
307
|
* NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
|
|
308
308
|
* because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
|
|
@@ -310,378 +310,383 @@ export var ErrorCode;
|
|
|
310
310
|
*
|
|
311
311
|
* Operation was performed on a resource that does not exist.
|
|
312
312
|
*/
|
|
313
|
-
|
|
313
|
+
RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',
|
|
314
314
|
/**
|
|
315
315
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
316
316
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
317
317
|
*/
|
|
318
|
-
|
|
318
|
+
QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',
|
|
319
319
|
/**
|
|
320
320
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
321
321
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
322
322
|
*/
|
|
323
|
-
|
|
323
|
+
MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',
|
|
324
324
|
/**
|
|
325
325
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
326
326
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
327
327
|
*/
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',
|
|
329
|
+
PARTIAL_DELETE: 'PARTIAL_DELETE',
|
|
330
|
+
MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',
|
|
331
331
|
/**
|
|
332
332
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
333
333
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
334
334
|
*/
|
|
335
|
-
|
|
335
|
+
DRY_RUN_FAILED: 'DRY_RUN_FAILED',
|
|
336
336
|
/**
|
|
337
337
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
338
338
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
339
339
|
* Cluster request was rejected because it would exceed a resource limit.
|
|
340
340
|
*/
|
|
341
|
-
|
|
341
|
+
RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',
|
|
342
342
|
/**
|
|
343
343
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
344
344
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
|
|
347
347
|
/**
|
|
348
348
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
349
349
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
350
350
|
*/
|
|
351
|
-
|
|
351
|
+
DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',
|
|
352
352
|
/**
|
|
353
353
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
354
354
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
355
355
|
*/
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',
|
|
357
|
+
MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',
|
|
358
358
|
/**
|
|
359
359
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
360
360
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
361
361
|
*/
|
|
362
|
-
|
|
362
|
+
SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',
|
|
363
363
|
/**
|
|
364
364
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
365
365
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
366
366
|
*/
|
|
367
|
-
|
|
367
|
+
SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',
|
|
368
368
|
/**
|
|
369
369
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
370
370
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
371
371
|
*/
|
|
372
|
-
|
|
372
|
+
MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',
|
|
373
373
|
/**
|
|
374
374
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
375
375
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
376
376
|
*/
|
|
377
|
-
|
|
377
|
+
PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',
|
|
378
378
|
/**
|
|
379
379
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
380
380
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
381
381
|
*/
|
|
382
|
-
|
|
382
|
+
DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',
|
|
383
383
|
/**
|
|
384
384
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
385
385
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
386
386
|
*/
|
|
387
|
-
|
|
387
|
+
GIT_CONFLICT: 'GIT_CONFLICT',
|
|
388
388
|
/**
|
|
389
389
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
390
390
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
391
391
|
*/
|
|
392
|
-
|
|
392
|
+
GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',
|
|
393
393
|
/**
|
|
394
394
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
395
395
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
396
396
|
*/
|
|
397
|
-
|
|
397
|
+
GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',
|
|
398
398
|
/**
|
|
399
399
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
400
400
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
401
401
|
*/
|
|
402
|
-
|
|
402
|
+
GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',
|
|
403
403
|
/**
|
|
404
404
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
405
405
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
406
406
|
*/
|
|
407
|
-
|
|
407
|
+
GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',
|
|
408
408
|
/**
|
|
409
409
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
410
410
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
411
411
|
*/
|
|
412
|
-
|
|
412
|
+
PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',
|
|
413
413
|
/**
|
|
414
414
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
415
415
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
416
416
|
*/
|
|
417
|
-
|
|
417
|
+
IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',
|
|
418
418
|
/**
|
|
419
419
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
420
420
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
421
421
|
*/
|
|
422
|
-
|
|
422
|
+
INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',
|
|
423
423
|
/**
|
|
424
424
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
425
425
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
426
426
|
*/
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',
|
|
428
|
+
METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',
|
|
429
429
|
/**
|
|
430
430
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
431
431
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
432
432
|
*/
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
433
|
+
DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',
|
|
434
|
+
CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',
|
|
435
|
+
SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',
|
|
436
|
+
TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',
|
|
437
|
+
SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',
|
|
438
|
+
RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',
|
|
439
|
+
STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',
|
|
440
|
+
EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',
|
|
441
|
+
PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',
|
|
442
|
+
PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',
|
|
443
443
|
/**
|
|
444
444
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
445
445
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',
|
|
448
448
|
/**
|
|
449
449
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
450
450
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
451
451
|
*/
|
|
452
|
-
|
|
452
|
+
DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',
|
|
453
453
|
/**
|
|
454
454
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
455
455
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
456
456
|
*/
|
|
457
|
-
|
|
457
|
+
CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',
|
|
458
458
|
/**
|
|
459
459
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
460
460
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
461
461
|
*/
|
|
462
|
-
|
|
462
|
+
SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',
|
|
463
463
|
/**
|
|
464
464
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
465
465
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
466
466
|
*/
|
|
467
|
-
|
|
467
|
+
TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',
|
|
468
468
|
/**
|
|
469
469
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
470
470
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
471
471
|
*/
|
|
472
|
-
|
|
472
|
+
SHARE_ALREADY_EXISTS: 'SHARE_ALREADY_EXISTS',
|
|
473
473
|
/**
|
|
474
474
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
475
475
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
476
476
|
*/
|
|
477
|
-
|
|
477
|
+
RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_ALREADY_EXISTS',
|
|
478
478
|
/**
|
|
479
479
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
480
480
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
481
481
|
*/
|
|
482
|
-
|
|
482
|
+
STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_ALREADY_EXISTS',
|
|
483
483
|
/**
|
|
484
484
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
485
485
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
486
486
|
*/
|
|
487
|
-
|
|
487
|
+
EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_ALREADY_EXISTS',
|
|
488
488
|
/**
|
|
489
489
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
490
490
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
491
491
|
*/
|
|
492
|
-
|
|
492
|
+
PROVIDER_ALREADY_EXISTS: 'PROVIDER_ALREADY_EXISTS',
|
|
493
493
|
/**
|
|
494
494
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
495
495
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
496
496
|
*/
|
|
497
|
-
|
|
497
|
+
CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',
|
|
498
498
|
/**
|
|
499
499
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
500
500
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',
|
|
503
503
|
/**
|
|
504
504
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
505
505
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
506
506
|
*/
|
|
507
|
-
|
|
507
|
+
METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',
|
|
508
508
|
/**
|
|
509
509
|
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
510
510
|
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
511
511
|
*/
|
|
512
|
-
|
|
513
|
-
}
|
|
512
|
+
PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',
|
|
513
|
+
};
|
|
514
514
|
/** The current phase of the data synchronization pipeline. */
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
516
|
+
export const ProvisioningPhase = {
|
|
517
517
|
/** The default phase. It should not be reported by any synced tables. */
|
|
518
|
-
|
|
518
|
+
PROVISIONING_PHASE_UNSPECIFIED: 'PROVISIONING_PHASE_UNSPECIFIED',
|
|
519
519
|
/** Ingestion phase of the synced table. This is when the synced table is ingesting data from the delta table. */
|
|
520
|
-
|
|
520
|
+
PROVISIONING_PHASE_MAIN: 'PROVISIONING_PHASE_MAIN',
|
|
521
521
|
/** Index scan phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
|
|
522
|
-
|
|
522
|
+
PROVISIONING_PHASE_INDEX_SCAN: 'PROVISIONING_PHASE_INDEX_SCAN',
|
|
523
523
|
/** Index sort phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
|
|
524
|
-
|
|
525
|
-
}
|
|
524
|
+
PROVISIONING_PHASE_INDEX_SORT: 'PROVISIONING_PHASE_INDEX_SORT',
|
|
525
|
+
};
|
|
526
526
|
/** The state of a synced table. */
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
528
|
+
export const SyncedTableState = {
|
|
529
529
|
/** The default state. It should not be reported by any synced tables. */
|
|
530
|
-
|
|
530
|
+
SYNCED_TABLE_STATE_UNSPECIFIED: 'SYNCED_TABLE_STATE_UNSPECIFIED',
|
|
531
531
|
/**
|
|
532
532
|
* The synced table has just been created and resources are being provisioned. This is also the
|
|
533
533
|
* catch-all state if there is not a more suitable state to report for the synced table.
|
|
534
534
|
*/
|
|
535
|
-
|
|
535
|
+
SYNCED_TABLE_PROVISIONING: 'SYNCED_TABLE_PROVISIONING',
|
|
536
536
|
/** The synced table is provisioning resources for the data synchronization pipeline. */
|
|
537
|
-
|
|
537
|
+
SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES: 'SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES',
|
|
538
538
|
/** The synced table is executing the initial data synchronization. */
|
|
539
|
-
|
|
539
|
+
SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT: 'SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT',
|
|
540
540
|
/** The synced table is ready to serve data. */
|
|
541
|
-
|
|
541
|
+
SYNCED_TABLE_ONLINE: 'SYNCED_TABLE_ONLINE',
|
|
542
542
|
/**
|
|
543
543
|
* The synced table is ready to serve data and is continuously updating. Only shown for synced
|
|
544
544
|
* tables using the "Continuous" sync mode.
|
|
545
545
|
*/
|
|
546
|
-
|
|
546
|
+
SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE: 'SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE',
|
|
547
547
|
/**
|
|
548
548
|
* The synced table is ready to serve data and an active update is in progress. Only shown for
|
|
549
549
|
* synced tables using the "Triggered" sync mode.
|
|
550
550
|
*/
|
|
551
|
-
|
|
551
|
+
SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE: 'SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE',
|
|
552
552
|
/**
|
|
553
553
|
* The synced table is ready to serve data and there are no active updates. Only shown for synced
|
|
554
554
|
* tables using the "Triggered" sync mode.
|
|
555
555
|
*/
|
|
556
|
-
|
|
556
|
+
SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE: 'SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE',
|
|
557
557
|
/** The synced table has encountered an internal error and is not available for serving. */
|
|
558
|
-
|
|
558
|
+
SYNCED_TABLE_OFFLINE: 'SYNCED_TABLE_OFFLINE',
|
|
559
559
|
/**
|
|
560
560
|
* The synced table is not available for serving because the data synchronization pipeline has
|
|
561
561
|
* failed. Please review the pipeline event logs to troubleshoot.
|
|
562
562
|
*/
|
|
563
|
-
|
|
563
|
+
SYNCED_TABLE_OFFLINE_FAILED: 'SYNCED_TABLE_OFFLINE_FAILED',
|
|
564
564
|
/**
|
|
565
565
|
* The data synchronization pipeline has encountered an error but the synced table is still
|
|
566
566
|
* available for serving (potentially stale) data. Please review the pipeline event logs to
|
|
567
567
|
* troubleshoot.
|
|
568
568
|
*/
|
|
569
|
-
|
|
569
|
+
SYNCED_TABLE_ONLINE_PIPELINE_FAILED: 'SYNCED_TABLE_ONLINE_PIPELINE_FAILED',
|
|
570
570
|
/**
|
|
571
571
|
* The synced table is available for serving, and is provisioning resources for a newly started
|
|
572
572
|
* data synchronization pipeline.
|
|
573
573
|
*/
|
|
574
|
-
|
|
575
|
-
}
|
|
574
|
+
SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES: 'SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES',
|
|
575
|
+
};
|
|
576
576
|
/** The state of the branch. */
|
|
577
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
578
|
-
export
|
|
579
|
-
(function (BranchStatus_State) {
|
|
577
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
578
|
+
export const BranchStatus_State = {
|
|
580
579
|
/** Default value, not used. */
|
|
581
|
-
|
|
580
|
+
STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
|
|
582
581
|
/** The branch is being created but is not yet available for querying. */
|
|
583
|
-
|
|
582
|
+
INIT: 'INIT',
|
|
584
583
|
/** The branch is being imported and is not yet available for querying. */
|
|
585
|
-
|
|
584
|
+
IMPORTING: 'IMPORTING',
|
|
586
585
|
/** The branch is being reset to a specific point in time or LSN and is not yet available for querying. */
|
|
587
|
-
|
|
586
|
+
RESETTING: 'RESETTING',
|
|
588
587
|
/** The branch is fully operational and ready for querying. */
|
|
589
|
-
|
|
588
|
+
READY: 'READY',
|
|
590
589
|
/** The branch is stored in cost-effective archival storage. Expect slow query response times. */
|
|
591
|
-
|
|
590
|
+
ARCHIVED: 'ARCHIVED',
|
|
592
591
|
/** The branch is deleted and is not available for querying, but can be undeleted. */
|
|
593
|
-
|
|
594
|
-
}
|
|
592
|
+
DELETED: 'DELETED',
|
|
593
|
+
};
|
|
595
594
|
/** The state of the compute endpoint. */
|
|
596
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
597
|
-
export
|
|
598
|
-
(function (EndpointStatus_State) {
|
|
595
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
596
|
+
export const EndpointStatus_State = {
|
|
599
597
|
/** Default value, not used */
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
}
|
|
606
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
607
|
-
export
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
RequestedClaims_PermissionSet["READ_ONLY"] = "READ_ONLY";
|
|
622
|
-
})(RequestedClaims_PermissionSet || (RequestedClaims_PermissionSet = {}));
|
|
598
|
+
STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
|
|
599
|
+
INIT: 'INIT',
|
|
600
|
+
ACTIVE: 'ACTIVE',
|
|
601
|
+
IDLE: 'IDLE',
|
|
602
|
+
DEGRADED: 'DEGRADED',
|
|
603
|
+
};
|
|
604
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
605
|
+
export const ProvisioningInfo_State = {
|
|
606
|
+
STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',
|
|
607
|
+
PROVISIONING: 'PROVISIONING',
|
|
608
|
+
ACTIVE: 'ACTIVE',
|
|
609
|
+
FAILED: 'FAILED',
|
|
610
|
+
DELETING: 'DELETING',
|
|
611
|
+
UPDATING: 'UPDATING',
|
|
612
|
+
DEGRADED: 'DEGRADED',
|
|
613
|
+
};
|
|
614
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
615
|
+
export const RequestedClaims_PermissionSet = {
|
|
616
|
+
PERMISSION_SET_UNSPECIFIED: 'PERMISSION_SET_UNSPECIFIED',
|
|
617
|
+
READ_ONLY: 'READ_ONLY',
|
|
618
|
+
};
|
|
623
619
|
/** How the role is authenticated when connecting to Postgres. */
|
|
624
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
625
|
-
export
|
|
626
|
-
|
|
627
|
-
Role_AuthMethod["AUTH_METHOD_UNSPECIFIED"] = "AUTH_METHOD_UNSPECIFIED";
|
|
620
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
621
|
+
export const Role_AuthMethod = {
|
|
622
|
+
AUTH_METHOD_UNSPECIFIED: 'AUTH_METHOD_UNSPECIFIED',
|
|
628
623
|
/** NO_LOGIN means this role cannot be used for interactive access */
|
|
629
|
-
|
|
624
|
+
NO_LOGIN: 'NO_LOGIN',
|
|
630
625
|
/** PG_PASSWORD_SCRAM_SHA_256 is a password-based authentication */
|
|
631
|
-
|
|
626
|
+
PG_PASSWORD_SCRAM_SHA_256: 'PG_PASSWORD_SCRAM_SHA_256',
|
|
632
627
|
/**
|
|
633
628
|
* LAKEBASE_OAUTH_V1 is for logging in with the managed identities like
|
|
634
629
|
* the <Databricks> service principal, <Databricks> Group or <Databricks> user.
|
|
635
630
|
*/
|
|
636
|
-
|
|
637
|
-
}
|
|
631
|
+
LAKEBASE_OAUTH_V1: 'LAKEBASE_OAUTH_V1',
|
|
632
|
+
};
|
|
638
633
|
/**
|
|
639
634
|
* The type of the <Databricks> managed identity that this Role represents.
|
|
640
635
|
* Leave empty if you wish to create a regular Postgres role not associated with a <Databricks> identity.
|
|
641
636
|
*/
|
|
642
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
643
|
-
export
|
|
644
|
-
(function (Role_IdentityType) {
|
|
637
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
638
|
+
export const Role_IdentityType = {
|
|
645
639
|
/** Default value, not used */
|
|
646
|
-
|
|
640
|
+
IDENTITY_TYPE_UNSPECIFIED: 'IDENTITY_TYPE_UNSPECIFIED',
|
|
647
641
|
/** A user in a <Databricks> workspace. */
|
|
648
|
-
|
|
642
|
+
USER: 'USER',
|
|
649
643
|
/** A service principal in a <Databricks> workspace. */
|
|
650
|
-
|
|
644
|
+
SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',
|
|
651
645
|
/** A group in a <Databricks> workspace. */
|
|
652
|
-
|
|
653
|
-
}
|
|
646
|
+
GROUP: 'GROUP',
|
|
647
|
+
};
|
|
654
648
|
/** Roles that the DatabaseInstanceRole can be a member of. */
|
|
655
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
656
|
-
export
|
|
657
|
-
(function (Role_MembershipRole) {
|
|
649
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
650
|
+
export const Role_MembershipRole = {
|
|
658
651
|
/** Indicates that the DatabaseInstanceRole is not a member of any standard, managed roles. */
|
|
659
|
-
|
|
652
|
+
MEMBERSHIP_ROLE_UNSPECIFIED: 'MEMBERSHIP_ROLE_UNSPECIFIED',
|
|
660
653
|
/** Indicates membership in DATABRICKS_SUPERUSER, the highest set of privileges exposed to customers. */
|
|
661
|
-
|
|
662
|
-
}
|
|
654
|
+
DATABRICKS_SUPERUSER: 'DATABRICKS_SUPERUSER',
|
|
655
|
+
};
|
|
663
656
|
/** Scheduling policy of the synced table's underlying pipeline. */
|
|
664
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention --
|
|
665
|
-
export
|
|
666
|
-
|
|
667
|
-
SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy["SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED"] = "SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED";
|
|
657
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
|
|
658
|
+
export const SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy = {
|
|
659
|
+
SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED: 'SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED',
|
|
668
660
|
/**
|
|
669
661
|
* Pipeline runs continuously after generating the initial data.
|
|
670
662
|
* Requires the source table to have Change Data Feed (CDF) enabled.
|
|
671
663
|
*/
|
|
672
|
-
|
|
664
|
+
CONTINUOUS: 'CONTINUOUS',
|
|
673
665
|
/**
|
|
674
666
|
* Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
|
|
675
667
|
* Requires the source table to have Change Data Feed (CDF) enabled.
|
|
676
668
|
*/
|
|
677
|
-
|
|
669
|
+
TRIGGERED: 'TRIGGERED',
|
|
678
670
|
/**
|
|
679
671
|
* Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
|
|
680
672
|
* Successive updates always perform a full copy of the source table data (no incremental updates).
|
|
681
673
|
* Does not require the source table to have Change Data Feed (CDF) enabled.
|
|
682
674
|
*/
|
|
683
|
-
|
|
684
|
-
}
|
|
675
|
+
SNAPSHOT: 'SNAPSHOT',
|
|
676
|
+
};
|
|
677
|
+
export const unmarshalApiErrorSchema = z
|
|
678
|
+
.object({
|
|
679
|
+
error_code: z.string().optional(),
|
|
680
|
+
message: z.string().optional(),
|
|
681
|
+
stack_trace: z.string().optional(),
|
|
682
|
+
details: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
683
|
+
})
|
|
684
|
+
.transform(d => ({
|
|
685
|
+
errorCode: d.error_code,
|
|
686
|
+
message: d.message,
|
|
687
|
+
stackTrace: d.stack_trace,
|
|
688
|
+
details: d.details,
|
|
689
|
+
}));
|
|
685
690
|
export const unmarshalBranchSchema = z
|
|
686
691
|
.object({
|
|
687
692
|
name: z.string().optional(),
|
|
@@ -697,6 +702,7 @@ export const unmarshalBranchSchema = z
|
|
|
697
702
|
.optional(),
|
|
698
703
|
spec: z.lazy(() => unmarshalBranchSpecSchema).optional(),
|
|
699
704
|
status: z.lazy(() => unmarshalBranchStatusSchema).optional(),
|
|
705
|
+
branch_id: z.string().optional(),
|
|
700
706
|
})
|
|
701
707
|
.transform(d => ({
|
|
702
708
|
name: d.name,
|
|
@@ -706,6 +712,7 @@ export const unmarshalBranchSchema = z
|
|
|
706
712
|
updateTime: d.update_time,
|
|
707
713
|
spec: d.spec,
|
|
708
714
|
status: d.status,
|
|
715
|
+
branchId: d.branch_id,
|
|
709
716
|
}));
|
|
710
717
|
export const unmarshalBranchOperationMetadataSchema = z.object({});
|
|
711
718
|
export const unmarshalBranchSpecSchema = z
|
|
@@ -750,8 +757,8 @@ export const unmarshalBranchStatusSchema = z
|
|
|
750
757
|
.optional(),
|
|
751
758
|
default: z.boolean().optional(),
|
|
752
759
|
is_protected: z.boolean().optional(),
|
|
753
|
-
current_state: z.
|
|
754
|
-
pending_state: z.
|
|
760
|
+
current_state: z.string().optional(),
|
|
761
|
+
pending_state: z.string().optional(),
|
|
755
762
|
state_change_time: z
|
|
756
763
|
.string()
|
|
757
764
|
.transform(s => Temporal.Instant.from(s))
|
|
@@ -803,6 +810,7 @@ export const unmarshalCatalogSchema = z
|
|
|
803
810
|
.string()
|
|
804
811
|
.transform(s => Temporal.Instant.from(s))
|
|
805
812
|
.optional(),
|
|
813
|
+
catalog_id: z.string().optional(),
|
|
806
814
|
})
|
|
807
815
|
.transform(d => ({
|
|
808
816
|
name: d.name,
|
|
@@ -811,6 +819,7 @@ export const unmarshalCatalogSchema = z
|
|
|
811
819
|
status: d.status,
|
|
812
820
|
createTime: d.create_time,
|
|
813
821
|
updateTime: d.update_time,
|
|
822
|
+
catalogId: d.catalog_id,
|
|
814
823
|
}));
|
|
815
824
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
816
825
|
export const unmarshalCatalog_CatalogSpecSchema = z
|
|
@@ -851,6 +860,7 @@ export const unmarshalDatabaseSchema = z
|
|
|
851
860
|
.optional(),
|
|
852
861
|
spec: z.lazy(() => unmarshalDatabase_DatabaseSpecSchema).optional(),
|
|
853
862
|
status: z.lazy(() => unmarshalDatabase_DatabaseStatusSchema).optional(),
|
|
863
|
+
database_id: z.string().optional(),
|
|
854
864
|
})
|
|
855
865
|
.transform(d => ({
|
|
856
866
|
name: d.name,
|
|
@@ -859,6 +869,7 @@ export const unmarshalDatabaseSchema = z
|
|
|
859
869
|
updateTime: d.update_time,
|
|
860
870
|
spec: d.spec,
|
|
861
871
|
status: d.status,
|
|
872
|
+
databaseId: d.database_id,
|
|
862
873
|
}));
|
|
863
874
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
864
875
|
export const unmarshalDatabase_DatabaseSpecSchema = z
|
|
@@ -895,19 +906,6 @@ export const unmarshalDatabaseCredentialSchema = z
|
|
|
895
906
|
expireTime: d.expire_time,
|
|
896
907
|
}));
|
|
897
908
|
export const unmarshalDatabaseOperationMetadataSchema = z.object({});
|
|
898
|
-
export const unmarshalDatabricksServiceExceptionWithDetailsProtoSchema = z
|
|
899
|
-
.object({
|
|
900
|
-
error_code: z.enum(ErrorCode).optional(),
|
|
901
|
-
message: z.string().optional(),
|
|
902
|
-
stack_trace: z.string().optional(),
|
|
903
|
-
details: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
904
|
-
})
|
|
905
|
-
.transform(d => ({
|
|
906
|
-
errorCode: d.error_code,
|
|
907
|
-
message: d.message,
|
|
908
|
-
stackTrace: d.stack_trace,
|
|
909
|
-
details: d.details,
|
|
910
|
-
}));
|
|
911
909
|
export const unmarshalDeltaTableSyncInfoSchema = z
|
|
912
910
|
.object({
|
|
913
911
|
delta_commit_version: z
|
|
@@ -938,6 +936,7 @@ export const unmarshalEndpointSchema = z
|
|
|
938
936
|
.optional(),
|
|
939
937
|
spec: z.lazy(() => unmarshalEndpointSpecSchema).optional(),
|
|
940
938
|
status: z.lazy(() => unmarshalEndpointStatusSchema).optional(),
|
|
939
|
+
endpoint_id: z.string().optional(),
|
|
941
940
|
})
|
|
942
941
|
.transform(d => ({
|
|
943
942
|
name: d.name,
|
|
@@ -947,6 +946,7 @@ export const unmarshalEndpointSchema = z
|
|
|
947
946
|
updateTime: d.update_time,
|
|
948
947
|
spec: d.spec,
|
|
949
948
|
status: d.status,
|
|
949
|
+
endpointId: d.endpoint_id,
|
|
950
950
|
}));
|
|
951
951
|
export const unmarshalEndpointGroupSpecSchema = z
|
|
952
952
|
.object({
|
|
@@ -989,7 +989,7 @@ export const unmarshalEndpointSettingsSchema = z
|
|
|
989
989
|
}));
|
|
990
990
|
export const unmarshalEndpointSpecSchema = z
|
|
991
991
|
.object({
|
|
992
|
-
endpoint_type: z.
|
|
992
|
+
endpoint_type: z.string().optional(),
|
|
993
993
|
autoscaling_limit_min_cu: z.number().optional(),
|
|
994
994
|
autoscaling_limit_max_cu: z.number().optional(),
|
|
995
995
|
disabled: z.boolean().optional(),
|
|
@@ -1019,12 +1019,12 @@ export const unmarshalEndpointSpecSchema = z
|
|
|
1019
1019
|
}));
|
|
1020
1020
|
export const unmarshalEndpointStatusSchema = z
|
|
1021
1021
|
.object({
|
|
1022
|
-
endpoint_type: z.
|
|
1022
|
+
endpoint_type: z.string().optional(),
|
|
1023
1023
|
hosts: z.lazy(() => unmarshalEndpointHostsSchema).optional(),
|
|
1024
1024
|
autoscaling_limit_min_cu: z.number().optional(),
|
|
1025
1025
|
autoscaling_limit_max_cu: z.number().optional(),
|
|
1026
|
-
current_state: z.
|
|
1027
|
-
pending_state: z.
|
|
1026
|
+
current_state: z.string().optional(),
|
|
1027
|
+
pending_state: z.string().optional(),
|
|
1028
1028
|
disabled: z.boolean().optional(),
|
|
1029
1029
|
suspend_timeout_duration: z
|
|
1030
1030
|
.string()
|
|
@@ -1115,9 +1115,7 @@ export const unmarshalOperationSchema = z
|
|
|
1115
1115
|
name: z.string().optional(),
|
|
1116
1116
|
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
1117
1117
|
done: z.boolean().optional(),
|
|
1118
|
-
error: z
|
|
1119
|
-
.lazy(() => unmarshalDatabricksServiceExceptionWithDetailsProtoSchema)
|
|
1120
|
-
.optional(),
|
|
1118
|
+
error: z.lazy(() => unmarshalApiErrorSchema).optional(),
|
|
1121
1119
|
response: z.record(z.string(), z.unknown()).optional(),
|
|
1122
1120
|
})
|
|
1123
1121
|
.transform(d => ({
|
|
@@ -1155,6 +1153,7 @@ export const unmarshalProjectSchema = z
|
|
|
1155
1153
|
.string()
|
|
1156
1154
|
.transform(s => Temporal.Instant.from(s))
|
|
1157
1155
|
.optional(),
|
|
1156
|
+
project_id: z.string().optional(),
|
|
1158
1157
|
})
|
|
1159
1158
|
.transform(d => ({
|
|
1160
1159
|
name: d.name,
|
|
@@ -1166,6 +1165,7 @@ export const unmarshalProjectSchema = z
|
|
|
1166
1165
|
initialEndpointSpec: d.initial_endpoint_spec,
|
|
1167
1166
|
deleteTime: d.delete_time,
|
|
1168
1167
|
purgeTime: d.purge_time,
|
|
1168
|
+
projectId: d.project_id,
|
|
1169
1169
|
}));
|
|
1170
1170
|
export const unmarshalProjectCustomTagSchema = z
|
|
1171
1171
|
.object({
|
|
@@ -1285,6 +1285,7 @@ export const unmarshalRoleSchema = z
|
|
|
1285
1285
|
.optional(),
|
|
1286
1286
|
spec: z.lazy(() => unmarshalRole_RoleSpecSchema).optional(),
|
|
1287
1287
|
status: z.lazy(() => unmarshalRole_RoleStatusSchema).optional(),
|
|
1288
|
+
role_id: z.string().optional(),
|
|
1288
1289
|
})
|
|
1289
1290
|
.transform(d => ({
|
|
1290
1291
|
name: d.name,
|
|
@@ -1293,6 +1294,7 @@ export const unmarshalRoleSchema = z
|
|
|
1293
1294
|
updateTime: d.update_time,
|
|
1294
1295
|
spec: d.spec,
|
|
1295
1296
|
status: d.status,
|
|
1297
|
+
roleId: d.role_id,
|
|
1296
1298
|
}));
|
|
1297
1299
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1298
1300
|
export const unmarshalRole_AttributesSchema = z
|
|
@@ -1309,10 +1311,10 @@ export const unmarshalRole_AttributesSchema = z
|
|
|
1309
1311
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1310
1312
|
export const unmarshalRole_RoleSpecSchema = z
|
|
1311
1313
|
.object({
|
|
1312
|
-
membership_roles: z.array(z.
|
|
1313
|
-
identity_type: z.
|
|
1314
|
+
membership_roles: z.array(z.string()).optional(),
|
|
1315
|
+
identity_type: z.string().optional(),
|
|
1314
1316
|
attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
|
|
1315
|
-
auth_method: z.
|
|
1317
|
+
auth_method: z.string().optional(),
|
|
1316
1318
|
postgres_role: z.string().optional(),
|
|
1317
1319
|
})
|
|
1318
1320
|
.transform(d => ({
|
|
@@ -1325,10 +1327,10 @@ export const unmarshalRole_RoleSpecSchema = z
|
|
|
1325
1327
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1326
1328
|
export const unmarshalRole_RoleStatusSchema = z
|
|
1327
1329
|
.object({
|
|
1328
|
-
membership_roles: z.array(z.
|
|
1329
|
-
identity_type: z.
|
|
1330
|
+
membership_roles: z.array(z.string()).optional(),
|
|
1331
|
+
identity_type: z.string().optional(),
|
|
1330
1332
|
attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
|
|
1331
|
-
auth_method: z.
|
|
1333
|
+
auth_method: z.string().optional(),
|
|
1332
1334
|
postgres_role: z.string().optional(),
|
|
1333
1335
|
role_id: z.string().optional(),
|
|
1334
1336
|
})
|
|
@@ -1353,6 +1355,7 @@ export const unmarshalSyncedTableSchema = z
|
|
|
1353
1355
|
.string()
|
|
1354
1356
|
.transform(s => Temporal.Instant.from(s))
|
|
1355
1357
|
.optional(),
|
|
1358
|
+
synced_table_id: z.string().optional(),
|
|
1356
1359
|
})
|
|
1357
1360
|
.transform(d => ({
|
|
1358
1361
|
name: d.name,
|
|
@@ -1360,15 +1363,14 @@ export const unmarshalSyncedTableSchema = z
|
|
|
1360
1363
|
spec: d.spec,
|
|
1361
1364
|
status: d.status,
|
|
1362
1365
|
createTime: d.create_time,
|
|
1366
|
+
syncedTableId: d.synced_table_id,
|
|
1363
1367
|
}));
|
|
1364
1368
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1365
1369
|
export const unmarshalSyncedTable_SyncedTableSpecSchema = z
|
|
1366
1370
|
.object({
|
|
1367
1371
|
postgres_database: z.string().optional(),
|
|
1368
1372
|
branch: z.string().optional(),
|
|
1369
|
-
scheduling_policy: z
|
|
1370
|
-
.enum(SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy)
|
|
1371
|
-
.optional(),
|
|
1373
|
+
scheduling_policy: z.string().optional(),
|
|
1372
1374
|
source_table_full_name: z.string().optional(),
|
|
1373
1375
|
primary_key_columns: z.array(z.string()).optional(),
|
|
1374
1376
|
timeseries_key: z.string().optional(),
|
|
@@ -1393,12 +1395,12 @@ export const unmarshalSyncedTable_SyncedTableSpecSchema = z
|
|
|
1393
1395
|
export const unmarshalSyncedTable_SyncedTableStatusSchema = z
|
|
1394
1396
|
.object({
|
|
1395
1397
|
message: z.string().optional(),
|
|
1396
|
-
detailed_state: z.
|
|
1398
|
+
detailed_state: z.string().optional(),
|
|
1397
1399
|
last_sync: z.lazy(() => unmarshalSyncedTablePositionSchema).optional(),
|
|
1398
1400
|
ongoing_sync_progress: z
|
|
1399
1401
|
.lazy(() => unmarshalSyncedTablePipelineProgressSchema)
|
|
1400
1402
|
.optional(),
|
|
1401
|
-
provisioning_phase: z.
|
|
1403
|
+
provisioning_phase: z.string().optional(),
|
|
1402
1404
|
last_processed_commit_version: z
|
|
1403
1405
|
.union([z.number(), z.bigint()])
|
|
1404
1406
|
.transform(v => BigInt(v))
|
|
@@ -1408,9 +1410,7 @@ export const unmarshalSyncedTable_SyncedTableStatusSchema = z
|
|
|
1408
1410
|
.transform(s => Temporal.Instant.from(s))
|
|
1409
1411
|
.optional(),
|
|
1410
1412
|
pipeline_id: z.string().optional(),
|
|
1411
|
-
unity_catalog_provisioning_state: z
|
|
1412
|
-
.enum(ProvisioningInfo_State)
|
|
1413
|
-
.optional(),
|
|
1413
|
+
unity_catalog_provisioning_state: z.string().optional(),
|
|
1414
1414
|
project: z.string().optional(),
|
|
1415
1415
|
})
|
|
1416
1416
|
.transform(d => ({
|
|
@@ -1489,6 +1489,7 @@ export const marshalBranchSchema = z
|
|
|
1489
1489
|
.optional(),
|
|
1490
1490
|
spec: z.lazy(() => marshalBranchSpecSchema).optional(),
|
|
1491
1491
|
status: z.lazy(() => marshalBranchStatusSchema).optional(),
|
|
1492
|
+
branchId: z.string().optional(),
|
|
1492
1493
|
})
|
|
1493
1494
|
.transform(d => ({
|
|
1494
1495
|
name: d.name,
|
|
@@ -1498,6 +1499,7 @@ export const marshalBranchSchema = z
|
|
|
1498
1499
|
update_time: d.updateTime,
|
|
1499
1500
|
spec: d.spec,
|
|
1500
1501
|
status: d.status,
|
|
1502
|
+
branch_id: d.branchId,
|
|
1501
1503
|
}));
|
|
1502
1504
|
export const marshalBranchSpecSchema = z
|
|
1503
1505
|
.object({
|
|
@@ -1547,8 +1549,8 @@ export const marshalBranchStatusSchema = z
|
|
|
1547
1549
|
.optional(),
|
|
1548
1550
|
default: z.boolean().optional(),
|
|
1549
1551
|
isProtected: z.boolean().optional(),
|
|
1550
|
-
currentState: z.
|
|
1551
|
-
pendingState: z.
|
|
1552
|
+
currentState: z.string().optional(),
|
|
1553
|
+
pendingState: z.string().optional(),
|
|
1552
1554
|
stateChangeTime: z
|
|
1553
1555
|
.any()
|
|
1554
1556
|
.transform((d) => d.toString())
|
|
@@ -1597,6 +1599,7 @@ export const marshalCatalogSchema = z
|
|
|
1597
1599
|
.any()
|
|
1598
1600
|
.transform((d) => d.toString())
|
|
1599
1601
|
.optional(),
|
|
1602
|
+
catalogId: z.string().optional(),
|
|
1600
1603
|
})
|
|
1601
1604
|
.transform(d => ({
|
|
1602
1605
|
name: d.name,
|
|
@@ -1605,6 +1608,7 @@ export const marshalCatalogSchema = z
|
|
|
1605
1608
|
status: d.status,
|
|
1606
1609
|
create_time: d.createTime,
|
|
1607
1610
|
update_time: d.updateTime,
|
|
1611
|
+
catalog_id: d.catalogId,
|
|
1608
1612
|
}));
|
|
1609
1613
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1610
1614
|
export const marshalCatalog_CatalogSpecSchema = z
|
|
@@ -1644,6 +1648,7 @@ export const marshalDatabaseSchema = z
|
|
|
1644
1648
|
.optional(),
|
|
1645
1649
|
spec: z.lazy(() => marshalDatabase_DatabaseSpecSchema).optional(),
|
|
1646
1650
|
status: z.lazy(() => marshalDatabase_DatabaseStatusSchema).optional(),
|
|
1651
|
+
databaseId: z.string().optional(),
|
|
1647
1652
|
})
|
|
1648
1653
|
.transform(d => ({
|
|
1649
1654
|
name: d.name,
|
|
@@ -1652,6 +1657,7 @@ export const marshalDatabaseSchema = z
|
|
|
1652
1657
|
update_time: d.updateTime,
|
|
1653
1658
|
spec: d.spec,
|
|
1654
1659
|
status: d.status,
|
|
1660
|
+
database_id: d.databaseId,
|
|
1655
1661
|
}));
|
|
1656
1662
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1657
1663
|
export const marshalDatabase_DatabaseSpecSchema = z
|
|
@@ -1702,6 +1708,7 @@ export const marshalEndpointSchema = z
|
|
|
1702
1708
|
.optional(),
|
|
1703
1709
|
spec: z.lazy(() => marshalEndpointSpecSchema).optional(),
|
|
1704
1710
|
status: z.lazy(() => marshalEndpointStatusSchema).optional(),
|
|
1711
|
+
endpointId: z.string().optional(),
|
|
1705
1712
|
})
|
|
1706
1713
|
.transform(d => ({
|
|
1707
1714
|
name: d.name,
|
|
@@ -1711,6 +1718,7 @@ export const marshalEndpointSchema = z
|
|
|
1711
1718
|
update_time: d.updateTime,
|
|
1712
1719
|
spec: d.spec,
|
|
1713
1720
|
status: d.status,
|
|
1721
|
+
endpoint_id: d.endpointId,
|
|
1714
1722
|
}));
|
|
1715
1723
|
export const marshalEndpointGroupSpecSchema = z
|
|
1716
1724
|
.object({
|
|
@@ -1752,7 +1760,7 @@ export const marshalEndpointSettingsSchema = z
|
|
|
1752
1760
|
}));
|
|
1753
1761
|
export const marshalEndpointSpecSchema = z
|
|
1754
1762
|
.object({
|
|
1755
|
-
endpointType: z.
|
|
1763
|
+
endpointType: z.string().optional(),
|
|
1756
1764
|
autoscalingLimitMinCu: z.number().optional(),
|
|
1757
1765
|
autoscalingLimitMaxCu: z.number().optional(),
|
|
1758
1766
|
disabled: z.boolean().optional(),
|
|
@@ -1786,12 +1794,12 @@ export const marshalEndpointSpecSchema = z
|
|
|
1786
1794
|
}));
|
|
1787
1795
|
export const marshalEndpointStatusSchema = z
|
|
1788
1796
|
.object({
|
|
1789
|
-
endpointType: z.
|
|
1797
|
+
endpointType: z.string().optional(),
|
|
1790
1798
|
hosts: z.lazy(() => marshalEndpointHostsSchema).optional(),
|
|
1791
1799
|
autoscalingLimitMinCu: z.number().optional(),
|
|
1792
1800
|
autoscalingLimitMaxCu: z.number().optional(),
|
|
1793
|
-
currentState: z.
|
|
1794
|
-
pendingState: z.
|
|
1801
|
+
currentState: z.string().optional(),
|
|
1802
|
+
pendingState: z.string().optional(),
|
|
1795
1803
|
disabled: z.boolean().optional(),
|
|
1796
1804
|
suspendTimeoutDuration: z
|
|
1797
1805
|
.any()
|
|
@@ -1866,6 +1874,7 @@ export const marshalProjectSchema = z
|
|
|
1866
1874
|
.any()
|
|
1867
1875
|
.transform((d) => d.toString())
|
|
1868
1876
|
.optional(),
|
|
1877
|
+
projectId: z.string().optional(),
|
|
1869
1878
|
})
|
|
1870
1879
|
.transform(d => ({
|
|
1871
1880
|
name: d.name,
|
|
@@ -1877,6 +1886,7 @@ export const marshalProjectSchema = z
|
|
|
1877
1886
|
initial_endpoint_spec: d.initialEndpointSpec,
|
|
1878
1887
|
delete_time: d.deleteTime,
|
|
1879
1888
|
purge_time: d.purgeTime,
|
|
1889
|
+
project_id: d.projectId,
|
|
1880
1890
|
}));
|
|
1881
1891
|
export const marshalProjectCustomTagSchema = z
|
|
1882
1892
|
.object({
|
|
@@ -1977,7 +1987,7 @@ export const marshalProjectStatusSchema = z
|
|
|
1977
1987
|
}));
|
|
1978
1988
|
export const marshalRequestedClaimsSchema = z
|
|
1979
1989
|
.object({
|
|
1980
|
-
permissionSet: z.
|
|
1990
|
+
permissionSet: z.string().optional(),
|
|
1981
1991
|
resources: z.array(z.lazy(() => marshalRequestedResourceSchema)).optional(),
|
|
1982
1992
|
})
|
|
1983
1993
|
.transform(d => ({
|
|
@@ -2011,6 +2021,7 @@ export const marshalRoleSchema = z
|
|
|
2011
2021
|
.optional(),
|
|
2012
2022
|
spec: z.lazy(() => marshalRole_RoleSpecSchema).optional(),
|
|
2013
2023
|
status: z.lazy(() => marshalRole_RoleStatusSchema).optional(),
|
|
2024
|
+
roleId: z.string().optional(),
|
|
2014
2025
|
})
|
|
2015
2026
|
.transform(d => ({
|
|
2016
2027
|
name: d.name,
|
|
@@ -2019,6 +2030,7 @@ export const marshalRoleSchema = z
|
|
|
2019
2030
|
update_time: d.updateTime,
|
|
2020
2031
|
spec: d.spec,
|
|
2021
2032
|
status: d.status,
|
|
2033
|
+
role_id: d.roleId,
|
|
2022
2034
|
}));
|
|
2023
2035
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2024
2036
|
export const marshalRole_AttributesSchema = z
|
|
@@ -2035,10 +2047,10 @@ export const marshalRole_AttributesSchema = z
|
|
|
2035
2047
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2036
2048
|
export const marshalRole_RoleSpecSchema = z
|
|
2037
2049
|
.object({
|
|
2038
|
-
membershipRoles: z.array(z.
|
|
2039
|
-
identityType: z.
|
|
2050
|
+
membershipRoles: z.array(z.string()).optional(),
|
|
2051
|
+
identityType: z.string().optional(),
|
|
2040
2052
|
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
2041
|
-
authMethod: z.
|
|
2053
|
+
authMethod: z.string().optional(),
|
|
2042
2054
|
postgresRole: z.string().optional(),
|
|
2043
2055
|
})
|
|
2044
2056
|
.transform(d => ({
|
|
@@ -2051,10 +2063,10 @@ export const marshalRole_RoleSpecSchema = z
|
|
|
2051
2063
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2052
2064
|
export const marshalRole_RoleStatusSchema = z
|
|
2053
2065
|
.object({
|
|
2054
|
-
membershipRoles: z.array(z.
|
|
2055
|
-
identityType: z.
|
|
2066
|
+
membershipRoles: z.array(z.string()).optional(),
|
|
2067
|
+
identityType: z.string().optional(),
|
|
2056
2068
|
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
2057
|
-
authMethod: z.
|
|
2069
|
+
authMethod: z.string().optional(),
|
|
2058
2070
|
postgresRole: z.string().optional(),
|
|
2059
2071
|
roleId: z.string().optional(),
|
|
2060
2072
|
})
|
|
@@ -2076,6 +2088,7 @@ export const marshalSyncedTableSchema = z
|
|
|
2076
2088
|
.any()
|
|
2077
2089
|
.transform((d) => d.toString())
|
|
2078
2090
|
.optional(),
|
|
2091
|
+
syncedTableId: z.string().optional(),
|
|
2079
2092
|
})
|
|
2080
2093
|
.transform(d => ({
|
|
2081
2094
|
name: d.name,
|
|
@@ -2083,15 +2096,14 @@ export const marshalSyncedTableSchema = z
|
|
|
2083
2096
|
spec: d.spec,
|
|
2084
2097
|
status: d.status,
|
|
2085
2098
|
create_time: d.createTime,
|
|
2099
|
+
synced_table_id: d.syncedTableId,
|
|
2086
2100
|
}));
|
|
2087
2101
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2088
2102
|
export const marshalSyncedTable_SyncedTableSpecSchema = z
|
|
2089
2103
|
.object({
|
|
2090
2104
|
postgresDatabase: z.string().optional(),
|
|
2091
2105
|
branch: z.string().optional(),
|
|
2092
|
-
schedulingPolicy: z
|
|
2093
|
-
.enum(SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy)
|
|
2094
|
-
.optional(),
|
|
2106
|
+
schedulingPolicy: z.string().optional(),
|
|
2095
2107
|
sourceTableFullName: z.string().optional(),
|
|
2096
2108
|
primaryKeyColumns: z.array(z.string()).optional(),
|
|
2097
2109
|
timeseriesKey: z.string().optional(),
|
|
@@ -2114,19 +2126,19 @@ export const marshalSyncedTable_SyncedTableSpecSchema = z
|
|
|
2114
2126
|
export const marshalSyncedTable_SyncedTableStatusSchema = z
|
|
2115
2127
|
.object({
|
|
2116
2128
|
message: z.string().optional(),
|
|
2117
|
-
detailedState: z.
|
|
2129
|
+
detailedState: z.string().optional(),
|
|
2118
2130
|
lastSync: z.lazy(() => marshalSyncedTablePositionSchema).optional(),
|
|
2119
2131
|
ongoingSyncProgress: z
|
|
2120
2132
|
.lazy(() => marshalSyncedTablePipelineProgressSchema)
|
|
2121
2133
|
.optional(),
|
|
2122
|
-
provisioningPhase: z.
|
|
2134
|
+
provisioningPhase: z.string().optional(),
|
|
2123
2135
|
lastProcessedCommitVersion: z.bigint().optional(),
|
|
2124
2136
|
lastSyncTime: z
|
|
2125
2137
|
.any()
|
|
2126
2138
|
.transform((d) => d.toString())
|
|
2127
2139
|
.optional(),
|
|
2128
2140
|
pipelineId: z.string().optional(),
|
|
2129
|
-
unityCatalogProvisioningState: z.
|
|
2141
|
+
unityCatalogProvisioningState: z.string().optional(),
|
|
2130
2142
|
project: z.string().optional(),
|
|
2131
2143
|
})
|
|
2132
2144
|
.transform(d => ({
|
|
@@ -2197,6 +2209,7 @@ export const marshalUndeleteProjectRequestSchema = z
|
|
|
2197
2209
|
name: d.name,
|
|
2198
2210
|
}));
|
|
2199
2211
|
const branchFieldMaskSchema = {
|
|
2212
|
+
branchId: { wire: 'branch_id' },
|
|
2200
2213
|
createTime: { wire: 'create_time' },
|
|
2201
2214
|
name: { wire: 'name' },
|
|
2202
2215
|
parent: { wire: 'parent' },
|
|
@@ -2234,6 +2247,7 @@ const branchStatusFieldMaskSchema = {
|
|
|
2234
2247
|
};
|
|
2235
2248
|
const databaseFieldMaskSchema = {
|
|
2236
2249
|
createTime: { wire: 'create_time' },
|
|
2250
|
+
databaseId: { wire: 'database_id' },
|
|
2237
2251
|
name: { wire: 'name' },
|
|
2238
2252
|
parent: { wire: 'parent' },
|
|
2239
2253
|
spec: { wire: 'spec', children: () => database_DatabaseSpecFieldMaskSchema },
|
|
@@ -2259,6 +2273,7 @@ const database_DatabaseStatusFieldMaskSchema = {
|
|
|
2259
2273
|
};
|
|
2260
2274
|
const endpointFieldMaskSchema = {
|
|
2261
2275
|
createTime: { wire: 'create_time' },
|
|
2276
|
+
endpointId: { wire: 'endpoint_id' },
|
|
2262
2277
|
name: { wire: 'name' },
|
|
2263
2278
|
parent: { wire: 'parent' },
|
|
2264
2279
|
spec: { wire: 'spec', children: () => endpointSpecFieldMaskSchema },
|
|
@@ -2320,6 +2335,7 @@ const projectFieldMaskSchema = {
|
|
|
2320
2335
|
children: () => initialEndpointSpecFieldMaskSchema,
|
|
2321
2336
|
},
|
|
2322
2337
|
name: { wire: 'name' },
|
|
2338
|
+
projectId: { wire: 'project_id' },
|
|
2323
2339
|
purgeTime: { wire: 'purge_time' },
|
|
2324
2340
|
spec: { wire: 'spec', children: () => projectSpecFieldMaskSchema },
|
|
2325
2341
|
status: { wire: 'status', children: () => projectStatusFieldMaskSchema },
|
|
@@ -2370,6 +2386,7 @@ const roleFieldMaskSchema = {
|
|
|
2370
2386
|
createTime: { wire: 'create_time' },
|
|
2371
2387
|
name: { wire: 'name' },
|
|
2372
2388
|
parent: { wire: 'parent' },
|
|
2389
|
+
roleId: { wire: 'role_id' },
|
|
2373
2390
|
spec: { wire: 'spec', children: () => role_RoleSpecFieldMaskSchema },
|
|
2374
2391
|
status: { wire: 'status', children: () => role_RoleStatusFieldMaskSchema },
|
|
2375
2392
|
updateTime: { wire: 'update_time' },
|