@databricks/sdk-postgres 0.34.0 → 0.36.0
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/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +621 -617
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +2371 -3250
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -8
- package/dist/v1/index.js +4 -8
- package/dist/v1/model.d.ts +2319 -2367
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +1804 -2876
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +21 -18
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +90 -118
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js
CHANGED
|
@@ -1,2961 +1,1889 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from
|
|
3
|
-
import { FieldMask } from
|
|
4
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { FieldMask } from "@databricks/sdk-core/wkt";
|
|
4
|
+
|
|
5
|
+
//#region src/v1/model.ts
|
|
5
6
|
/** The replication state of a single replicated table (CdfStatus). */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* to the Delta table.
|
|
13
|
-
*/
|
|
14
|
-
CDF_STATE_SNAPSHOTTING: 'CDF_STATE_SNAPSHOTTING',
|
|
15
|
-
/** Continuously streaming WAL changes to the Delta table. */
|
|
16
|
-
CDF_STATE_STREAMING: 'CDF_STATE_STREAMING',
|
|
17
|
-
/**
|
|
18
|
-
* Reserved: replication for this table was superseded by a newer one.
|
|
19
|
-
* Not currently returned by the API.
|
|
20
|
-
*/
|
|
21
|
-
CDF_STATE_TERMINATED: 'CDF_STATE_TERMINATED',
|
|
22
|
-
/**
|
|
23
|
-
* The table is not being replicated: it was skipped because it is not
|
|
24
|
-
* eligible for replication, or replication errored. See status_detail for
|
|
25
|
-
* the specific reason.
|
|
26
|
-
*/
|
|
27
|
-
CDF_STATE_SKIPPED: 'CDF_STATE_SKIPPED',
|
|
7
|
+
const CdfState = {
|
|
8
|
+
CDF_STATE_UNSPECIFIED: "CDF_STATE_UNSPECIFIED",
|
|
9
|
+
CDF_STATE_SNAPSHOTTING: "CDF_STATE_SNAPSHOTTING",
|
|
10
|
+
CDF_STATE_STREAMING: "CDF_STATE_STREAMING",
|
|
11
|
+
CDF_STATE_TERMINATED: "CDF_STATE_TERMINATED",
|
|
12
|
+
CDF_STATE_SKIPPED: "CDF_STATE_SKIPPED"
|
|
28
13
|
};
|
|
29
14
|
/** The compute endpoint type. Either `read_write` or `read_only`. */
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
ENDPOINT_TYPE_READ_WRITE: 'ENDPOINT_TYPE_READ_WRITE',
|
|
35
|
-
ENDPOINT_TYPE_READ_ONLY: 'ENDPOINT_TYPE_READ_ONLY',
|
|
15
|
+
const EndpointType = {
|
|
16
|
+
ENDPOINT_TYPE_UNSPECIFIED: "ENDPOINT_TYPE_UNSPECIFIED",
|
|
17
|
+
ENDPOINT_TYPE_READ_WRITE: "ENDPOINT_TYPE_READ_WRITE",
|
|
18
|
+
ENDPOINT_TYPE_READ_ONLY: "ENDPOINT_TYPE_READ_ONLY"
|
|
36
19
|
};
|
|
37
20
|
/** Error codes returned by Databricks APIs to indicate specific failure conditions. */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* waiting for a response.
|
|
121
|
-
*
|
|
122
|
-
* Maps to:
|
|
123
|
-
* - google.rpc.Code: CANCELLED = 1;
|
|
124
|
-
* - HTTP code: 499 Client Closed Request
|
|
125
|
-
*/
|
|
126
|
-
CANCELLED: 'CANCELLED',
|
|
127
|
-
/**
|
|
128
|
-
* The operation is rejected because of either rate limiting or resource quota,
|
|
129
|
-
* such as the client has sent too many requests recently or the client has allocated too many
|
|
130
|
-
* resources.
|
|
131
|
-
*
|
|
132
|
-
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
133
|
-
* for guideline on how to pick this vs TEMPORARILY_UNAVAILABLE.
|
|
134
|
-
*
|
|
135
|
-
* Maps to:
|
|
136
|
-
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
137
|
-
* - HTTP code: 429 Too Many Requests
|
|
138
|
-
*/
|
|
139
|
-
RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
|
|
140
|
-
/**
|
|
141
|
-
* The operation was aborted, typically due to a concurrency issue such as a sequencer
|
|
142
|
-
* check failure, transaction abort, or transaction conflict.
|
|
143
|
-
*
|
|
144
|
-
* Maps to:
|
|
145
|
-
* - google.rpc.Code: ABORTED = 10;
|
|
146
|
-
* - HTTP code: 409 Conflict
|
|
147
|
-
*/
|
|
148
|
-
ABORTED: 'ABORTED',
|
|
149
|
-
/**
|
|
150
|
-
* Operation was performed on a resource that does not exist,
|
|
151
|
-
* e.g. file or directory was not found.
|
|
152
|
-
*
|
|
153
|
-
* Maps to:
|
|
154
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
155
|
-
* - HTTP code: 404 Not Found
|
|
156
|
-
*/
|
|
157
|
-
NOT_FOUND: 'NOT_FOUND',
|
|
158
|
-
/**
|
|
159
|
-
* Operation was rejected due a conflict with an existing resource, e.g. attempted to create
|
|
160
|
-
* file or directory that already exists.
|
|
161
|
-
*
|
|
162
|
-
* Prefer this over RESOURCE_CONFLICT.
|
|
163
|
-
*
|
|
164
|
-
* Maps to:
|
|
165
|
-
* - google.rpc.Code: ALREADY_EXISTS = 6;
|
|
166
|
-
* - HTTP code: 409 Conflict
|
|
167
|
-
*/
|
|
168
|
-
ALREADY_EXISTS: 'ALREADY_EXISTS',
|
|
169
|
-
/**
|
|
170
|
-
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
171
|
-
*
|
|
172
|
-
* Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy
|
|
173
|
-
* code.
|
|
174
|
-
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
175
|
-
*
|
|
176
|
-
* Maps to:
|
|
177
|
-
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
178
|
-
* - HTTP code: 401 Unauthorized
|
|
179
|
-
*/
|
|
180
|
-
UNAUTHENTICATED: 'UNAUTHENTICATED',
|
|
181
|
-
/**
|
|
182
|
-
* The service is currently unavailable. Please note that the unavailability may or may not be transient.
|
|
183
|
-
* That means if this is a non-transient condition, retrying it does not work. If the unavailability
|
|
184
|
-
* is certainly a transient condition, pleases use `TEMPORARILY_UNAVAILABLE` which signals its transient
|
|
185
|
-
* nature explicitly.
|
|
186
|
-
* An example of this error code’s use case is that when DNS resolution fails, the DNS resolver does
|
|
187
|
-
* not know whether it is because the domain name is completely wrong (non-transient situation) or
|
|
188
|
-
* the domain name is valid but the DNS server does not have an entry for this domain name yet (transient
|
|
189
|
-
* situation). Hence, `UNAVAILABLE` is suitable for this case.
|
|
190
|
-
*
|
|
191
|
-
* Maps to:
|
|
192
|
-
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
193
|
-
* - HTTP code: 503 Service Unavailable
|
|
194
|
-
*/
|
|
195
|
-
UNAVAILABLE: 'UNAVAILABLE',
|
|
196
|
-
/**
|
|
197
|
-
* Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
|
|
198
|
-
*
|
|
199
|
-
* Maps to:
|
|
200
|
-
* - google.rpc.Code: INVALID_ARGUMENT = 3;
|
|
201
|
-
* - HTTP code: 400 Bad Request
|
|
202
|
-
*/
|
|
203
|
-
INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',
|
|
204
|
-
/**
|
|
205
|
-
* Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
|
|
206
|
-
* should be used instead to indicate that API doesn't exist.
|
|
207
|
-
*
|
|
208
|
-
* Maps to:
|
|
209
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
210
|
-
* - HTTP code: 404 Not Found
|
|
211
|
-
*/
|
|
212
|
-
ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
|
|
213
|
-
/** Indicates that the given API request was malformed. */
|
|
214
|
-
MALFORMED_REQUEST: 'MALFORMED_REQUEST',
|
|
215
|
-
/**
|
|
216
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
217
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
218
|
-
* If one or more of the inputs to a given RPC are not in a valid state for the action.
|
|
219
|
-
*/
|
|
220
|
-
INVALID_STATE: 'INVALID_STATE',
|
|
221
|
-
/**
|
|
222
|
-
* The caller does not have permission to execute the specified operation.
|
|
223
|
-
* PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
|
|
224
|
-
* use RESOURCE_EXHAUSTED instead for those errors.
|
|
225
|
-
* PERMISSION_DENIED must not be used if the caller can not be identified,
|
|
226
|
-
* use CUSTOMER_UNAUTHORIZED instead for those errors.
|
|
227
|
-
* This error code does not imply the request is valid or the requested entity exists or
|
|
228
|
-
* satisfies other pre-conditions.
|
|
229
|
-
*
|
|
230
|
-
* Maps to:
|
|
231
|
-
* - google.rpc.Code: PERMISSION_DENIED = 7;
|
|
232
|
-
* - HTTP code: 403 Forbidden
|
|
233
|
-
*/
|
|
234
|
-
PERMISSION_DENIED: 'PERMISSION_DENIED',
|
|
235
|
-
/**
|
|
236
|
-
* NOTE: Deprecated due to inconsistent mapping in legacy code, see
|
|
237
|
-
* https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
|
|
238
|
-
* Prefer using NOT_FOUND or PERMISSION_DENIED.
|
|
239
|
-
*
|
|
240
|
-
* If a given user/entity is trying to use a feature which has been disabled.
|
|
241
|
-
*
|
|
242
|
-
* Maps to:
|
|
243
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
244
|
-
* - HTTP code: 404 Not Found
|
|
245
|
-
*/
|
|
246
|
-
FEATURE_DISABLED: 'FEATURE_DISABLED',
|
|
247
|
-
/**
|
|
248
|
-
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
249
|
-
*
|
|
250
|
-
* For authentication (AuthN) errors prefer using UNAUTHENTICATED, unless you need to keep
|
|
251
|
-
* consistent behavior with legacy code.
|
|
252
|
-
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
253
|
-
*
|
|
254
|
-
* Important: name is confusing, this error code is for authentication (AuthN) errors, not
|
|
255
|
-
* authorization (AuthZ) errors. It maps to 401 Unauthorized and suffers from the same confusing
|
|
256
|
-
* naming. See https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 - "[...] status code
|
|
257
|
-
* indicates that the request has not been applied because it lacks valid authentication
|
|
258
|
-
* credentials for the target resource. [...] If the request included authentication credentials,
|
|
259
|
-
* then the 401 response indicates that authorization has been refused for those credentials."
|
|
260
|
-
*
|
|
261
|
-
* Also, see https://stackoverflow.com/a/6937030/16352922, it covers it pretty well.
|
|
262
|
-
*
|
|
263
|
-
* Maps to:
|
|
264
|
-
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
265
|
-
* - HTTP code: 401 Unauthorized
|
|
266
|
-
*/
|
|
267
|
-
CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',
|
|
268
|
-
/**
|
|
269
|
-
* The operation is rejected because of request rate limit, for example rate limiting applied to
|
|
270
|
-
* users, workspaces, IP addresses, etc.
|
|
271
|
-
*
|
|
272
|
-
* Prefer a more generic RESOURCE_EXHAUSTED for the new use cases.
|
|
273
|
-
*
|
|
274
|
-
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
275
|
-
* for guideline on the rate limiting vs throttling.
|
|
276
|
-
*
|
|
277
|
-
* Maps to:
|
|
278
|
-
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
279
|
-
* - HTTP code: 429 Too Many Requests
|
|
280
|
-
*/
|
|
281
|
-
REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',
|
|
282
|
-
/** Indicates API request was rejected due a conflict with an existing resource. */
|
|
283
|
-
RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',
|
|
284
|
-
/**
|
|
285
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
286
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
287
|
-
* Indicates that the HTTP response cannot be correctly deserialized.
|
|
288
|
-
* This currently is only used in DUST test clients, and not by any real service code.
|
|
289
|
-
*/
|
|
290
|
-
UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',
|
|
291
|
-
/**
|
|
292
|
-
* The operation is not implemented or is not supported/enabled in this service.
|
|
293
|
-
*
|
|
294
|
-
* Maps to:
|
|
295
|
-
* - google.rpc.Code: UNIMPLEMENTED = 12;
|
|
296
|
-
* - HTTP code: 501 Not Implemented
|
|
297
|
-
*/
|
|
298
|
-
NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',
|
|
299
|
-
/**
|
|
300
|
-
* Unrecoverable data loss or corruption.
|
|
301
|
-
*
|
|
302
|
-
* One of the major use cases is to indicate that server failed to validate the integrity of
|
|
303
|
-
* the request. This error can occur when the checksum specified in the `X-Databricks-Checksum`
|
|
304
|
-
* request header (or trailer) doesn't match the actual request content checksum.
|
|
305
|
-
*
|
|
306
|
-
* Note, in case of the severe corruption that results in a malformed request, the server may
|
|
307
|
-
* send a generic `400 Bad Request` response rather than sending this error code.
|
|
308
|
-
*
|
|
309
|
-
* Maps to:
|
|
310
|
-
* - google.rpc.Code: DATA_LOSS = 15;
|
|
311
|
-
* - HTTP code: 500 Internal Server Error
|
|
312
|
-
*/
|
|
313
|
-
DATA_LOSS: 'DATA_LOSS',
|
|
314
|
-
/** If the user attempts to perform an invalid state transition on a shard. */
|
|
315
|
-
INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',
|
|
316
|
-
/**
|
|
317
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
318
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
319
|
-
* Unable to perform the operation because the shard was locked by some other operation.
|
|
320
|
-
*/
|
|
321
|
-
COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',
|
|
322
|
-
/**
|
|
323
|
-
* NOTE: Deprecated, prefer using ALREADY_EXISTS.
|
|
324
|
-
* Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
|
|
325
|
-
* remapping will be a backwards incompatible change.
|
|
326
|
-
*
|
|
327
|
-
* Operation was performed on a resource that already exists.
|
|
328
|
-
*/
|
|
329
|
-
RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',
|
|
330
|
-
/**
|
|
331
|
-
* NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
|
|
332
|
-
* because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
|
|
333
|
-
* codes we added new error codes NOT_FOUND and ALREADY_EXISTS, and recommend to use them instead.
|
|
334
|
-
*
|
|
335
|
-
* Operation was performed on a resource that does not exist.
|
|
336
|
-
*/
|
|
337
|
-
RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',
|
|
338
|
-
/**
|
|
339
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
340
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
341
|
-
*/
|
|
342
|
-
QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',
|
|
343
|
-
/**
|
|
344
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
345
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
346
|
-
*/
|
|
347
|
-
MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',
|
|
348
|
-
/**
|
|
349
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
350
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
351
|
-
*/
|
|
352
|
-
MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',
|
|
353
|
-
PARTIAL_DELETE: 'PARTIAL_DELETE',
|
|
354
|
-
MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',
|
|
355
|
-
/**
|
|
356
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
357
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
358
|
-
*/
|
|
359
|
-
DRY_RUN_FAILED: 'DRY_RUN_FAILED',
|
|
360
|
-
/**
|
|
361
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
362
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
363
|
-
* Cluster request was rejected because it would exceed a resource limit.
|
|
364
|
-
*/
|
|
365
|
-
RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',
|
|
366
|
-
/**
|
|
367
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
368
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
369
|
-
*/
|
|
370
|
-
DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
|
|
371
|
-
/**
|
|
372
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
373
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
374
|
-
*/
|
|
375
|
-
DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',
|
|
376
|
-
/**
|
|
377
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
378
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
379
|
-
*/
|
|
380
|
-
MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',
|
|
381
|
-
MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',
|
|
382
|
-
/**
|
|
383
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
384
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
385
|
-
*/
|
|
386
|
-
SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',
|
|
387
|
-
/**
|
|
388
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
389
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
390
|
-
*/
|
|
391
|
-
SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',
|
|
392
|
-
/**
|
|
393
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
394
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
395
|
-
*/
|
|
396
|
-
MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',
|
|
397
|
-
/**
|
|
398
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
399
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
400
|
-
*/
|
|
401
|
-
PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',
|
|
402
|
-
/**
|
|
403
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
404
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
405
|
-
*/
|
|
406
|
-
DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',
|
|
407
|
-
/**
|
|
408
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
409
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
410
|
-
*/
|
|
411
|
-
GIT_CONFLICT: 'GIT_CONFLICT',
|
|
412
|
-
/**
|
|
413
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
414
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
415
|
-
*/
|
|
416
|
-
GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',
|
|
417
|
-
/**
|
|
418
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
419
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
420
|
-
*/
|
|
421
|
-
GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',
|
|
422
|
-
/**
|
|
423
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
424
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
425
|
-
*/
|
|
426
|
-
GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',
|
|
427
|
-
/**
|
|
428
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
429
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
430
|
-
*/
|
|
431
|
-
GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',
|
|
432
|
-
/**
|
|
433
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
434
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
435
|
-
*/
|
|
436
|
-
PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',
|
|
437
|
-
/**
|
|
438
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
439
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
440
|
-
*/
|
|
441
|
-
IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',
|
|
442
|
-
/**
|
|
443
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
444
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
445
|
-
*/
|
|
446
|
-
INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',
|
|
447
|
-
/**
|
|
448
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
449
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
450
|
-
*/
|
|
451
|
-
MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',
|
|
452
|
-
METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',
|
|
453
|
-
/**
|
|
454
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
455
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
456
|
-
*/
|
|
457
|
-
DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',
|
|
458
|
-
CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',
|
|
459
|
-
SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',
|
|
460
|
-
TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',
|
|
461
|
-
SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',
|
|
462
|
-
RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',
|
|
463
|
-
STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',
|
|
464
|
-
EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',
|
|
465
|
-
PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',
|
|
466
|
-
PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',
|
|
467
|
-
/**
|
|
468
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
469
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
470
|
-
*/
|
|
471
|
-
METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',
|
|
472
|
-
/**
|
|
473
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
474
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
475
|
-
*/
|
|
476
|
-
DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',
|
|
477
|
-
/**
|
|
478
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
479
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
480
|
-
*/
|
|
481
|
-
CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',
|
|
482
|
-
/**
|
|
483
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
484
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
485
|
-
*/
|
|
486
|
-
SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',
|
|
487
|
-
/**
|
|
488
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
489
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
490
|
-
*/
|
|
491
|
-
TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',
|
|
492
|
-
/**
|
|
493
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
494
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
495
|
-
*/
|
|
496
|
-
SHARE_ALREADY_EXISTS: 'SHARE_ALREADY_EXISTS',
|
|
497
|
-
/**
|
|
498
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
499
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
500
|
-
*/
|
|
501
|
-
RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_ALREADY_EXISTS',
|
|
502
|
-
/**
|
|
503
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
504
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
505
|
-
*/
|
|
506
|
-
STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_ALREADY_EXISTS',
|
|
507
|
-
/**
|
|
508
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
509
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
510
|
-
*/
|
|
511
|
-
EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_ALREADY_EXISTS',
|
|
512
|
-
/**
|
|
513
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
514
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
515
|
-
*/
|
|
516
|
-
PROVIDER_ALREADY_EXISTS: 'PROVIDER_ALREADY_EXISTS',
|
|
517
|
-
/**
|
|
518
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
519
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
520
|
-
*/
|
|
521
|
-
CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',
|
|
522
|
-
/**
|
|
523
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
524
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
525
|
-
*/
|
|
526
|
-
SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',
|
|
527
|
-
/**
|
|
528
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
529
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
530
|
-
*/
|
|
531
|
-
METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',
|
|
532
|
-
/**
|
|
533
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
534
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
535
|
-
*/
|
|
536
|
-
PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',
|
|
21
|
+
const ErrorCode = {
|
|
22
|
+
UNKNOWN: "UNKNOWN",
|
|
23
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
24
|
+
TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE",
|
|
25
|
+
IO_ERROR: "IO_ERROR",
|
|
26
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
27
|
+
SERVICE_UNDER_MAINTENANCE: "SERVICE_UNDER_MAINTENANCE",
|
|
28
|
+
WORKSPACE_TEMPORARILY_UNAVAILABLE: "WORKSPACE_TEMPORARILY_UNAVAILABLE",
|
|
29
|
+
DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
|
|
30
|
+
CANCELLED: "CANCELLED",
|
|
31
|
+
RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
|
|
32
|
+
ABORTED: "ABORTED",
|
|
33
|
+
NOT_FOUND: "NOT_FOUND",
|
|
34
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
35
|
+
UNAUTHENTICATED: "UNAUTHENTICATED",
|
|
36
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
37
|
+
INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
|
|
38
|
+
ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND",
|
|
39
|
+
MALFORMED_REQUEST: "MALFORMED_REQUEST",
|
|
40
|
+
INVALID_STATE: "INVALID_STATE",
|
|
41
|
+
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
42
|
+
FEATURE_DISABLED: "FEATURE_DISABLED",
|
|
43
|
+
CUSTOMER_UNAUTHORIZED: "CUSTOMER_UNAUTHORIZED",
|
|
44
|
+
REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
|
|
45
|
+
RESOURCE_CONFLICT: "RESOURCE_CONFLICT",
|
|
46
|
+
UNPARSEABLE_HTTP_ERROR: "UNPARSEABLE_HTTP_ERROR",
|
|
47
|
+
NOT_IMPLEMENTED: "NOT_IMPLEMENTED",
|
|
48
|
+
DATA_LOSS: "DATA_LOSS",
|
|
49
|
+
INVALID_STATE_TRANSITION: "INVALID_STATE_TRANSITION",
|
|
50
|
+
COULD_NOT_ACQUIRE_LOCK: "COULD_NOT_ACQUIRE_LOCK",
|
|
51
|
+
RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
|
|
52
|
+
RESOURCE_DOES_NOT_EXIST: "RESOURCE_DOES_NOT_EXIST",
|
|
53
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
|
|
54
|
+
MAX_BLOCK_SIZE_EXCEEDED: "MAX_BLOCK_SIZE_EXCEEDED",
|
|
55
|
+
MAX_READ_SIZE_EXCEEDED: "MAX_READ_SIZE_EXCEEDED",
|
|
56
|
+
PARTIAL_DELETE: "PARTIAL_DELETE",
|
|
57
|
+
MAX_LIST_SIZE_EXCEEDED: "MAX_LIST_SIZE_EXCEEDED",
|
|
58
|
+
DRY_RUN_FAILED: "DRY_RUN_FAILED",
|
|
59
|
+
RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
|
|
60
|
+
DIRECTORY_NOT_EMPTY: "DIRECTORY_NOT_EMPTY",
|
|
61
|
+
DIRECTORY_PROTECTED: "DIRECTORY_PROTECTED",
|
|
62
|
+
MAX_NOTEBOOK_SIZE_EXCEEDED: "MAX_NOTEBOOK_SIZE_EXCEEDED",
|
|
63
|
+
MAX_CHILD_NODE_SIZE_EXCEEDED: "MAX_CHILD_NODE_SIZE_EXCEEDED",
|
|
64
|
+
SEARCH_QUERY_TOO_LONG: "SEARCH_QUERY_TOO_LONG",
|
|
65
|
+
SEARCH_QUERY_TOO_SHORT: "SEARCH_QUERY_TOO_SHORT",
|
|
66
|
+
MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: "MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST",
|
|
67
|
+
PERMISSION_NOT_PROPAGATED: "PERMISSION_NOT_PROPAGATED",
|
|
68
|
+
DEPLOYMENT_TIMEOUT: "DEPLOYMENT_TIMEOUT",
|
|
69
|
+
GIT_CONFLICT: "GIT_CONFLICT",
|
|
70
|
+
GIT_UNKNOWN_REF: "GIT_UNKNOWN_REF",
|
|
71
|
+
GIT_SENSITIVE_TOKEN_DETECTED: "GIT_SENSITIVE_TOKEN_DETECTED",
|
|
72
|
+
GIT_URL_NOT_ON_ALLOW_LIST: "GIT_URL_NOT_ON_ALLOW_LIST",
|
|
73
|
+
GIT_REMOTE_ERROR: "GIT_REMOTE_ERROR",
|
|
74
|
+
PROJECTS_OPERATION_TIMEOUT: "PROJECTS_OPERATION_TIMEOUT",
|
|
75
|
+
IPYNB_FILE_IN_REPO: "IPYNB_FILE_IN_REPO",
|
|
76
|
+
INSECURE_PARTNER_RESPONSE: "INSECURE_PARTNER_RESPONSE",
|
|
77
|
+
MALFORMED_PARTNER_RESPONSE: "MALFORMED_PARTNER_RESPONSE",
|
|
78
|
+
METASTORE_DOES_NOT_EXIST: "METASTORE_DOES_NOT_EXIST",
|
|
79
|
+
DAC_DOES_NOT_EXIST: "DAC_DOES_NOT_EXIST",
|
|
80
|
+
CATALOG_DOES_NOT_EXIST: "CATALOG_DOES_NOT_EXIST",
|
|
81
|
+
SCHEMA_DOES_NOT_EXIST: "SCHEMA_DOES_NOT_EXIST",
|
|
82
|
+
TABLE_DOES_NOT_EXIST: "TABLE_DOES_NOT_EXIST",
|
|
83
|
+
SHARE_DOES_NOT_EXIST: "SHARE_DOES_NOT_EXIST",
|
|
84
|
+
RECIPIENT_DOES_NOT_EXIST: "RECIPIENT_DOES_NOT_EXIST",
|
|
85
|
+
STORAGE_CREDENTIAL_DOES_NOT_EXIST: "STORAGE_CREDENTIAL_DOES_NOT_EXIST",
|
|
86
|
+
EXTERNAL_LOCATION_DOES_NOT_EXIST: "EXTERNAL_LOCATION_DOES_NOT_EXIST",
|
|
87
|
+
PRINCIPAL_DOES_NOT_EXIST: "PRINCIPAL_DOES_NOT_EXIST",
|
|
88
|
+
PROVIDER_DOES_NOT_EXIST: "PROVIDER_DOES_NOT_EXIST",
|
|
89
|
+
METASTORE_ALREADY_EXISTS: "METASTORE_ALREADY_EXISTS",
|
|
90
|
+
DAC_ALREADY_EXISTS: "DAC_ALREADY_EXISTS",
|
|
91
|
+
CATALOG_ALREADY_EXISTS: "CATALOG_ALREADY_EXISTS",
|
|
92
|
+
SCHEMA_ALREADY_EXISTS: "SCHEMA_ALREADY_EXISTS",
|
|
93
|
+
TABLE_ALREADY_EXISTS: "TABLE_ALREADY_EXISTS",
|
|
94
|
+
SHARE_ALREADY_EXISTS: "SHARE_ALREADY_EXISTS",
|
|
95
|
+
RECIPIENT_ALREADY_EXISTS: "RECIPIENT_ALREADY_EXISTS",
|
|
96
|
+
STORAGE_CREDENTIAL_ALREADY_EXISTS: "STORAGE_CREDENTIAL_ALREADY_EXISTS",
|
|
97
|
+
EXTERNAL_LOCATION_ALREADY_EXISTS: "EXTERNAL_LOCATION_ALREADY_EXISTS",
|
|
98
|
+
PROVIDER_ALREADY_EXISTS: "PROVIDER_ALREADY_EXISTS",
|
|
99
|
+
CATALOG_NOT_EMPTY: "CATALOG_NOT_EMPTY",
|
|
100
|
+
SCHEMA_NOT_EMPTY: "SCHEMA_NOT_EMPTY",
|
|
101
|
+
METASTORE_NOT_EMPTY: "METASTORE_NOT_EMPTY",
|
|
102
|
+
PROVIDER_SHARE_NOT_ACCESSIBLE: "PROVIDER_SHARE_NOT_ACCESSIBLE"
|
|
537
103
|
};
|
|
538
104
|
/**
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
/** Generate OpenAPI output ignoring the privileges of the requesting role. */
|
|
549
|
-
OPEN_API_MODE_IGNORE_PRIVILEGES: 'OPEN_API_MODE_IGNORE_PRIVILEGES',
|
|
550
|
-
/** Disable the OpenAPI documentation endpoint entirely. */
|
|
551
|
-
OPEN_API_MODE_DISABLED: 'OPEN_API_MODE_DISABLED',
|
|
105
|
+
* Controls how the Data API exposes the OpenAPI documentation endpoint.
|
|
106
|
+
* Only IGNORE_PRIVILEGES and DISABLED are supported today; "follow-privileges"
|
|
107
|
+
* is not implemented yet (it may be added later as value 3 — adding new enum
|
|
108
|
+
* values is backward-compatible).
|
|
109
|
+
*/
|
|
110
|
+
const OpenApiMode = {
|
|
111
|
+
OPEN_API_MODE_UNSPECIFIED: "OPEN_API_MODE_UNSPECIFIED",
|
|
112
|
+
OPEN_API_MODE_IGNORE_PRIVILEGES: "OPEN_API_MODE_IGNORE_PRIVILEGES",
|
|
113
|
+
OPEN_API_MODE_DISABLED: "OPEN_API_MODE_DISABLED"
|
|
552
114
|
};
|
|
553
115
|
/** The current phase of the data synchronization pipeline. */
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
PROVISIONING_PHASE_MAIN: 'PROVISIONING_PHASE_MAIN',
|
|
560
|
-
/** Index scan phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
|
|
561
|
-
PROVISIONING_PHASE_INDEX_SCAN: 'PROVISIONING_PHASE_INDEX_SCAN',
|
|
562
|
-
/** Index sort phase of the synced table. This is when the synced table is creating indexes on the ingested data. */
|
|
563
|
-
PROVISIONING_PHASE_INDEX_SORT: 'PROVISIONING_PHASE_INDEX_SORT',
|
|
116
|
+
const ProvisioningPhase = {
|
|
117
|
+
PROVISIONING_PHASE_UNSPECIFIED: "PROVISIONING_PHASE_UNSPECIFIED",
|
|
118
|
+
PROVISIONING_PHASE_MAIN: "PROVISIONING_PHASE_MAIN",
|
|
119
|
+
PROVISIONING_PHASE_INDEX_SCAN: "PROVISIONING_PHASE_INDEX_SCAN",
|
|
120
|
+
PROVISIONING_PHASE_INDEX_SORT: "PROVISIONING_PHASE_INDEX_SORT"
|
|
564
121
|
};
|
|
565
122
|
/** The state of a synced table. */
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
/** The synced table is ready to serve data. */
|
|
580
|
-
SYNCED_TABLE_ONLINE: 'SYNCED_TABLE_ONLINE',
|
|
581
|
-
/**
|
|
582
|
-
* The synced table is ready to serve data and is continuously updating. Only shown for synced
|
|
583
|
-
* tables using the "Continuous" sync mode.
|
|
584
|
-
*/
|
|
585
|
-
SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE: 'SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE',
|
|
586
|
-
/**
|
|
587
|
-
* The synced table is ready to serve data and an active update is in progress. Only shown for
|
|
588
|
-
* synced tables using the "Triggered" sync mode.
|
|
589
|
-
*/
|
|
590
|
-
SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE: 'SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE',
|
|
591
|
-
/**
|
|
592
|
-
* The synced table is ready to serve data and there are no active updates. Only shown for synced
|
|
593
|
-
* tables using the "Triggered" sync mode.
|
|
594
|
-
*/
|
|
595
|
-
SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE: 'SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE',
|
|
596
|
-
/** The synced table has encountered an internal error and is not available for serving. */
|
|
597
|
-
SYNCED_TABLE_OFFLINE: 'SYNCED_TABLE_OFFLINE',
|
|
598
|
-
/**
|
|
599
|
-
* The synced table is not available for serving because the data synchronization pipeline has
|
|
600
|
-
* failed. Please review the pipeline event logs to troubleshoot.
|
|
601
|
-
*/
|
|
602
|
-
SYNCED_TABLE_OFFLINE_FAILED: 'SYNCED_TABLE_OFFLINE_FAILED',
|
|
603
|
-
/**
|
|
604
|
-
* The data synchronization pipeline has encountered an error but the synced table is still
|
|
605
|
-
* available for serving (potentially stale) data. Please review the pipeline event logs to
|
|
606
|
-
* troubleshoot.
|
|
607
|
-
*/
|
|
608
|
-
SYNCED_TABLE_ONLINE_PIPELINE_FAILED: 'SYNCED_TABLE_ONLINE_PIPELINE_FAILED',
|
|
609
|
-
/**
|
|
610
|
-
* The synced table is available for serving, and is provisioning resources for a newly started
|
|
611
|
-
* data synchronization pipeline.
|
|
612
|
-
*/
|
|
613
|
-
SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES: 'SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES',
|
|
123
|
+
const SyncedTableState = {
|
|
124
|
+
SYNCED_TABLE_STATE_UNSPECIFIED: "SYNCED_TABLE_STATE_UNSPECIFIED",
|
|
125
|
+
SYNCED_TABLE_PROVISIONING: "SYNCED_TABLE_PROVISIONING",
|
|
126
|
+
SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES: "SYNCED_TABLE_PROVISIONING_PIPELINE_RESOURCES",
|
|
127
|
+
SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT: "SYNCED_TABLE_PROVISIONING_INITIAL_SNAPSHOT",
|
|
128
|
+
SYNCED_TABLE_ONLINE: "SYNCED_TABLE_ONLINE",
|
|
129
|
+
SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE: "SYNCED_TABLE_ONLINE_CONTINUOUS_UPDATE",
|
|
130
|
+
SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE: "SYNCED_TABLE_ONLINE_TRIGGERED_UPDATE",
|
|
131
|
+
SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE: "SYNCED_TABLE_ONLINE_NO_PENDING_UPDATE",
|
|
132
|
+
SYNCED_TABLE_OFFLINE: "SYNCED_TABLE_OFFLINE",
|
|
133
|
+
SYNCED_TABLE_OFFLINE_FAILED: "SYNCED_TABLE_OFFLINE_FAILED",
|
|
134
|
+
SYNCED_TABLE_ONLINE_PIPELINE_FAILED: "SYNCED_TABLE_ONLINE_PIPELINE_FAILED",
|
|
135
|
+
SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES: "SYNCED_TABLE_ONLINE_UPDATING_PIPELINE_RESOURCES"
|
|
614
136
|
};
|
|
615
137
|
/** The state of the branch. */
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
/** The branch is being reset to a specific point in time or LSN and is not yet available for querying. */
|
|
625
|
-
RESETTING: 'RESETTING',
|
|
626
|
-
/** The branch is fully operational and ready for querying. */
|
|
627
|
-
READY: 'READY',
|
|
628
|
-
/** The branch is stored in cost-effective archival storage. Expect slow query response times. */
|
|
629
|
-
ARCHIVED: 'ARCHIVED',
|
|
630
|
-
/** The branch is deleted and is not available for querying, but can be undeleted. */
|
|
631
|
-
DELETED: 'DELETED',
|
|
138
|
+
const BranchStatus_State = {
|
|
139
|
+
STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
|
|
140
|
+
INIT: "INIT",
|
|
141
|
+
IMPORTING: "IMPORTING",
|
|
142
|
+
RESETTING: "RESETTING",
|
|
143
|
+
READY: "READY",
|
|
144
|
+
ARCHIVED: "ARCHIVED",
|
|
145
|
+
DELETED: "DELETED"
|
|
632
146
|
};
|
|
633
147
|
/** The state of the compute endpoint. */
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
IDLE: 'IDLE',
|
|
641
|
-
DEGRADED: 'DEGRADED',
|
|
148
|
+
const EndpointStatus_State = {
|
|
149
|
+
STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
|
|
150
|
+
INIT: "INIT",
|
|
151
|
+
ACTIVE: "ACTIVE",
|
|
152
|
+
IDLE: "IDLE",
|
|
153
|
+
DEGRADED: "DEGRADED"
|
|
642
154
|
};
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
DEGRADED: 'DEGRADED',
|
|
155
|
+
const ProvisioningInfo_State = {
|
|
156
|
+
STATE_UNSPECIFIED: "STATE_UNSPECIFIED",
|
|
157
|
+
PROVISIONING: "PROVISIONING",
|
|
158
|
+
ACTIVE: "ACTIVE",
|
|
159
|
+
FAILED: "FAILED",
|
|
160
|
+
DELETING: "DELETING",
|
|
161
|
+
UPDATING: "UPDATING",
|
|
162
|
+
DEGRADED: "DEGRADED"
|
|
652
163
|
};
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
READ_ONLY: 'READ_ONLY',
|
|
164
|
+
const RequestedClaims_PermissionSet = {
|
|
165
|
+
PERMISSION_SET_UNSPECIFIED: "PERMISSION_SET_UNSPECIFIED",
|
|
166
|
+
READ_ONLY: "READ_ONLY"
|
|
657
167
|
};
|
|
658
168
|
/** How the role is authenticated when connecting to Postgres. */
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
/** PG_PASSWORD_SCRAM_SHA_256 is a password-based authentication */
|
|
665
|
-
PG_PASSWORD_SCRAM_SHA_256: 'PG_PASSWORD_SCRAM_SHA_256',
|
|
666
|
-
/**
|
|
667
|
-
* LAKEBASE_OAUTH_V1 is for logging in with the managed identities like
|
|
668
|
-
* the <Databricks> service principal, <Databricks> Group or <Databricks> user.
|
|
669
|
-
*/
|
|
670
|
-
LAKEBASE_OAUTH_V1: 'LAKEBASE_OAUTH_V1',
|
|
169
|
+
const Role_AuthMethod = {
|
|
170
|
+
AUTH_METHOD_UNSPECIFIED: "AUTH_METHOD_UNSPECIFIED",
|
|
171
|
+
NO_LOGIN: "NO_LOGIN",
|
|
172
|
+
PG_PASSWORD_SCRAM_SHA_256: "PG_PASSWORD_SCRAM_SHA_256",
|
|
173
|
+
LAKEBASE_OAUTH_V1: "LAKEBASE_OAUTH_V1"
|
|
671
174
|
};
|
|
672
175
|
/**
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
USER: 'USER',
|
|
682
|
-
/** A service principal in a <Databricks> workspace. */
|
|
683
|
-
SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',
|
|
684
|
-
/** A group in a <Databricks> workspace. */
|
|
685
|
-
GROUP: 'GROUP',
|
|
176
|
+
* The type of the <Databricks> managed identity that this Role represents.
|
|
177
|
+
* Leave empty if you wish to create a regular Postgres role not associated with a <Databricks> identity.
|
|
178
|
+
*/
|
|
179
|
+
const Role_IdentityType = {
|
|
180
|
+
IDENTITY_TYPE_UNSPECIFIED: "IDENTITY_TYPE_UNSPECIFIED",
|
|
181
|
+
USER: "USER",
|
|
182
|
+
SERVICE_PRINCIPAL: "SERVICE_PRINCIPAL",
|
|
183
|
+
GROUP: "GROUP"
|
|
686
184
|
};
|
|
687
185
|
/** Roles that the DatabaseInstanceRole can be a member of. */
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
MEMBERSHIP_ROLE_UNSPECIFIED: 'MEMBERSHIP_ROLE_UNSPECIFIED',
|
|
692
|
-
/** Indicates membership in DATABRICKS_SUPERUSER, the highest set of privileges exposed to customers. */
|
|
693
|
-
DATABRICKS_SUPERUSER: 'DATABRICKS_SUPERUSER',
|
|
186
|
+
const Role_MembershipRole = {
|
|
187
|
+
MEMBERSHIP_ROLE_UNSPECIFIED: "MEMBERSHIP_ROLE_UNSPECIFIED",
|
|
188
|
+
DATABRICKS_SUPERUSER: "DATABRICKS_SUPERUSER"
|
|
694
189
|
};
|
|
695
190
|
/** How the column's value is populated and kept up to date. */
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
MAINTENANCE_UNSPECIFIED: 'MAINTENANCE_UNSPECIFIED',
|
|
700
|
-
/** The value is computed by PostgreSQL and stored. */
|
|
701
|
-
STORED_GENERATED: 'STORED_GENERATED',
|
|
191
|
+
const SyncedTable_SyncedTableSpec_ExtraColumn_Maintenance = {
|
|
192
|
+
MAINTENANCE_UNSPECIFIED: "MAINTENANCE_UNSPECIFIED",
|
|
193
|
+
STORED_GENERATED: "STORED_GENERATED"
|
|
702
194
|
};
|
|
703
195
|
/** PostgreSQL-specific target types that can override the default Delta-to-PG mapping. */
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
PG_SPECIFIC_TYPE_UNSPECIFIED: 'PG_SPECIFIC_TYPE_UNSPECIFIED',
|
|
708
|
-
/** Maps the column to the pgvector vector type. */
|
|
709
|
-
PG_SPECIFIC_TYPE_VECTOR: 'PG_SPECIFIC_TYPE_VECTOR',
|
|
196
|
+
const SyncedTable_SyncedTableSpec_PgSpecificType = {
|
|
197
|
+
PG_SPECIFIC_TYPE_UNSPECIFIED: "PG_SPECIFIC_TYPE_UNSPECIFIED",
|
|
198
|
+
PG_SPECIFIC_TYPE_VECTOR: "PG_SPECIFIC_TYPE_VECTOR"
|
|
710
199
|
};
|
|
711
200
|
/** Scheduling policy of the synced table's underlying pipeline. */
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
* Requires the source table to have Change Data Feed (CDF) enabled.
|
|
718
|
-
*/
|
|
719
|
-
CONTINUOUS: 'CONTINUOUS',
|
|
720
|
-
/**
|
|
721
|
-
* Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
|
|
722
|
-
* Requires the source table to have Change Data Feed (CDF) enabled.
|
|
723
|
-
*/
|
|
724
|
-
TRIGGERED: 'TRIGGERED',
|
|
725
|
-
/**
|
|
726
|
-
* Pipeline stops after generating the initial data and can be triggered later (manually, through a cron job or through data triggers).
|
|
727
|
-
* Successive updates always perform a full copy of the source table data (no incremental updates).
|
|
728
|
-
* Does not require the source table to have Change Data Feed (CDF) enabled.
|
|
729
|
-
*/
|
|
730
|
-
SNAPSHOT: 'SNAPSHOT',
|
|
201
|
+
const SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy = {
|
|
202
|
+
SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED: "SYNCED_TABLE_SCHEDULING_POLICY_UNSPECIFIED",
|
|
203
|
+
CONTINUOUS: "CONTINUOUS",
|
|
204
|
+
TRIGGERED: "TRIGGERED",
|
|
205
|
+
SNAPSHOT: "SNAPSHOT"
|
|
731
206
|
};
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
})
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}))
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
})
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
}))
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
})
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
})
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
})
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
})
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}))
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
})
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
}))
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
}));
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}));
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
}));
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
})
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
})
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
})
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
}));
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
})
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
})
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
}));
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
}))
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
}));
|
|
2105
|
-
export const marshalEndpointGroupSpecSchema = z
|
|
2106
|
-
.object({
|
|
2107
|
-
min: z.number().optional(),
|
|
2108
|
-
max: z.number().optional(),
|
|
2109
|
-
enableReadableSecondaries: z.boolean().optional(),
|
|
2110
|
-
})
|
|
2111
|
-
.transform(d => ({
|
|
2112
|
-
min: d.min,
|
|
2113
|
-
max: d.max,
|
|
2114
|
-
enable_readable_secondaries: d.enableReadableSecondaries,
|
|
2115
|
-
}));
|
|
2116
|
-
export const marshalEndpointGroupStatusSchema = z
|
|
2117
|
-
.object({
|
|
2118
|
-
min: z.number().optional(),
|
|
2119
|
-
max: z.number().optional(),
|
|
2120
|
-
enableReadableSecondaries: z.boolean().optional(),
|
|
2121
|
-
})
|
|
2122
|
-
.transform(d => ({
|
|
2123
|
-
min: d.min,
|
|
2124
|
-
max: d.max,
|
|
2125
|
-
enable_readable_secondaries: d.enableReadableSecondaries,
|
|
2126
|
-
}));
|
|
2127
|
-
export const marshalEndpointHostsSchema = z
|
|
2128
|
-
.object({
|
|
2129
|
-
host: z.string().optional(),
|
|
2130
|
-
readOnlyHost: z.string().optional(),
|
|
2131
|
-
readWritePooledHost: z.string().optional(),
|
|
2132
|
-
readOnlyPooledHost: z.string().optional(),
|
|
2133
|
-
})
|
|
2134
|
-
.transform(d => ({
|
|
2135
|
-
host: d.host,
|
|
2136
|
-
read_only_host: d.readOnlyHost,
|
|
2137
|
-
read_write_pooled_host: d.readWritePooledHost,
|
|
2138
|
-
read_only_pooled_host: d.readOnlyPooledHost,
|
|
2139
|
-
}));
|
|
2140
|
-
export const marshalEndpointSettingsSchema = z
|
|
2141
|
-
.object({
|
|
2142
|
-
pgSettings: z.record(z.string(), z.string()).optional(),
|
|
2143
|
-
})
|
|
2144
|
-
.transform(d => ({
|
|
2145
|
-
pg_settings: d.pgSettings,
|
|
2146
|
-
}));
|
|
2147
|
-
export const marshalEndpointSpecSchema = z
|
|
2148
|
-
.object({
|
|
2149
|
-
endpointType: z.string().optional(),
|
|
2150
|
-
autoscalingLimitMinCu: z.number().optional(),
|
|
2151
|
-
autoscalingLimitMaxCu: z.number().optional(),
|
|
2152
|
-
disabled: z.boolean().optional(),
|
|
2153
|
-
suspension: z
|
|
2154
|
-
.discriminatedUnion('$case', [
|
|
2155
|
-
z.object({
|
|
2156
|
-
$case: z.literal('suspendTimeoutDuration'),
|
|
2157
|
-
suspendTimeoutDuration: z
|
|
2158
|
-
.any()
|
|
2159
|
-
.transform((d) => d.toString().slice(2).toLowerCase()),
|
|
2160
|
-
}),
|
|
2161
|
-
z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
|
|
2162
|
-
])
|
|
2163
|
-
.optional(),
|
|
2164
|
-
settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
|
|
2165
|
-
group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
|
|
2166
|
-
})
|
|
2167
|
-
.transform(d => ({
|
|
2168
|
-
endpoint_type: d.endpointType,
|
|
2169
|
-
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
2170
|
-
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
2171
|
-
disabled: d.disabled,
|
|
2172
|
-
...(d.suspension?.$case === 'suspendTimeoutDuration' && {
|
|
2173
|
-
suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
|
|
2174
|
-
}),
|
|
2175
|
-
...(d.suspension?.$case === 'noSuspension' && {
|
|
2176
|
-
no_suspension: d.suspension.noSuspension,
|
|
2177
|
-
}),
|
|
2178
|
-
settings: d.settings,
|
|
2179
|
-
group: d.group,
|
|
2180
|
-
}));
|
|
2181
|
-
export const marshalEndpointStatusSchema = z
|
|
2182
|
-
.object({
|
|
2183
|
-
endpointType: z.string().optional(),
|
|
2184
|
-
hosts: z.lazy(() => marshalEndpointHostsSchema).optional(),
|
|
2185
|
-
lastActiveTime: z
|
|
2186
|
-
.any()
|
|
2187
|
-
.transform((d) => d.toString())
|
|
2188
|
-
.optional(),
|
|
2189
|
-
autoscalingLimitMinCu: z.number().optional(),
|
|
2190
|
-
autoscalingLimitMaxCu: z.number().optional(),
|
|
2191
|
-
currentState: z.string().optional(),
|
|
2192
|
-
pendingState: z.string().optional(),
|
|
2193
|
-
disabled: z.boolean().optional(),
|
|
2194
|
-
suspendTimeoutDuration: z
|
|
2195
|
-
.any()
|
|
2196
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2197
|
-
.optional(),
|
|
2198
|
-
settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
|
|
2199
|
-
group: z.lazy(() => marshalEndpointGroupStatusSchema).optional(),
|
|
2200
|
-
endpointId: z.string().optional(),
|
|
2201
|
-
})
|
|
2202
|
-
.transform(d => ({
|
|
2203
|
-
endpoint_type: d.endpointType,
|
|
2204
|
-
hosts: d.hosts,
|
|
2205
|
-
last_active_time: d.lastActiveTime,
|
|
2206
|
-
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
2207
|
-
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
2208
|
-
current_state: d.currentState,
|
|
2209
|
-
pending_state: d.pendingState,
|
|
2210
|
-
disabled: d.disabled,
|
|
2211
|
-
suspend_timeout_duration: d.suspendTimeoutDuration,
|
|
2212
|
-
settings: d.settings,
|
|
2213
|
-
group: d.group,
|
|
2214
|
-
endpoint_id: d.endpointId,
|
|
2215
|
-
}));
|
|
2216
|
-
export const marshalGenerateDatabaseCredentialRequestSchema = z
|
|
2217
|
-
.object({
|
|
2218
|
-
claims: z.array(z.lazy(() => marshalRequestedClaimsSchema)).optional(),
|
|
2219
|
-
endpoint: z.string().optional(),
|
|
2220
|
-
expiration: z
|
|
2221
|
-
.discriminatedUnion('$case', [
|
|
2222
|
-
z.object({
|
|
2223
|
-
$case: z.literal('ttl'),
|
|
2224
|
-
ttl: z
|
|
2225
|
-
.any()
|
|
2226
|
-
.transform((d) => d.toString().slice(2).toLowerCase()),
|
|
2227
|
-
}),
|
|
2228
|
-
z.object({
|
|
2229
|
-
$case: z.literal('expireTime'),
|
|
2230
|
-
expireTime: z.any().transform((d) => d.toString()),
|
|
2231
|
-
}),
|
|
2232
|
-
])
|
|
2233
|
-
.optional(),
|
|
2234
|
-
})
|
|
2235
|
-
.transform(d => ({
|
|
2236
|
-
claims: d.claims,
|
|
2237
|
-
endpoint: d.endpoint,
|
|
2238
|
-
...(d.expiration?.$case === 'ttl' && { ttl: d.expiration.ttl }),
|
|
2239
|
-
...(d.expiration?.$case === 'expireTime' && {
|
|
2240
|
-
expire_time: d.expiration.expireTime,
|
|
2241
|
-
}),
|
|
2242
|
-
}));
|
|
2243
|
-
export const marshalInitialBranchSpecSchema = z
|
|
2244
|
-
.object({
|
|
2245
|
-
isProtected: z.boolean().optional(),
|
|
2246
|
-
})
|
|
2247
|
-
.transform(d => ({
|
|
2248
|
-
is_protected: d.isProtected,
|
|
2249
|
-
}));
|
|
2250
|
-
export const marshalInitialEndpointSpecSchema = z
|
|
2251
|
-
.object({
|
|
2252
|
-
group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
|
|
2253
|
-
autoscalingLimitMinCu: z.number().optional(),
|
|
2254
|
-
autoscalingLimitMaxCu: z.number().optional(),
|
|
2255
|
-
suspension: z
|
|
2256
|
-
.discriminatedUnion('$case', [
|
|
2257
|
-
z.object({
|
|
2258
|
-
$case: z.literal('suspendTimeoutDuration'),
|
|
2259
|
-
suspendTimeoutDuration: z
|
|
2260
|
-
.any()
|
|
2261
|
-
.transform((d) => d.toString().slice(2).toLowerCase()),
|
|
2262
|
-
}),
|
|
2263
|
-
z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
|
|
2264
|
-
])
|
|
2265
|
-
.optional(),
|
|
2266
|
-
})
|
|
2267
|
-
.transform(d => ({
|
|
2268
|
-
group: d.group,
|
|
2269
|
-
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
2270
|
-
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
2271
|
-
...(d.suspension?.$case === 'suspendTimeoutDuration' && {
|
|
2272
|
-
suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
|
|
2273
|
-
}),
|
|
2274
|
-
...(d.suspension?.$case === 'noSuspension' && {
|
|
2275
|
-
no_suspension: d.suspension.noSuspension,
|
|
2276
|
-
}),
|
|
2277
|
-
}));
|
|
2278
|
-
export const marshalNewPipelineSpecSchema = z
|
|
2279
|
-
.object({
|
|
2280
|
-
storageCatalog: z.string().optional(),
|
|
2281
|
-
storageSchema: z.string().optional(),
|
|
2282
|
-
budgetPolicyId: z.string().optional(),
|
|
2283
|
-
})
|
|
2284
|
-
.transform(d => ({
|
|
2285
|
-
storage_catalog: d.storageCatalog,
|
|
2286
|
-
storage_schema: d.storageSchema,
|
|
2287
|
-
budget_policy_id: d.budgetPolicyId,
|
|
2288
|
-
}));
|
|
2289
|
-
export const marshalProjectSchema = z
|
|
2290
|
-
.object({
|
|
2291
|
-
name: z.string().optional(),
|
|
2292
|
-
uid: z.string().optional(),
|
|
2293
|
-
createTime: z
|
|
2294
|
-
.any()
|
|
2295
|
-
.transform((d) => d.toString())
|
|
2296
|
-
.optional(),
|
|
2297
|
-
updateTime: z
|
|
2298
|
-
.any()
|
|
2299
|
-
.transform((d) => d.toString())
|
|
2300
|
-
.optional(),
|
|
2301
|
-
spec: z.lazy(() => marshalProjectSpecSchema).optional(),
|
|
2302
|
-
status: z.lazy(() => marshalProjectStatusSchema).optional(),
|
|
2303
|
-
initialEndpointSpec: z
|
|
2304
|
-
.lazy(() => marshalInitialEndpointSpecSchema)
|
|
2305
|
-
.optional(),
|
|
2306
|
-
deleteTime: z
|
|
2307
|
-
.any()
|
|
2308
|
-
.transform((d) => d.toString())
|
|
2309
|
-
.optional(),
|
|
2310
|
-
purgeTime: z
|
|
2311
|
-
.any()
|
|
2312
|
-
.transform((d) => d.toString())
|
|
2313
|
-
.optional(),
|
|
2314
|
-
initialBranchSpec: z.lazy(() => marshalInitialBranchSpecSchema).optional(),
|
|
2315
|
-
projectId: z.string().optional(),
|
|
2316
|
-
})
|
|
2317
|
-
.transform(d => ({
|
|
2318
|
-
name: d.name,
|
|
2319
|
-
uid: d.uid,
|
|
2320
|
-
create_time: d.createTime,
|
|
2321
|
-
update_time: d.updateTime,
|
|
2322
|
-
spec: d.spec,
|
|
2323
|
-
status: d.status,
|
|
2324
|
-
initial_endpoint_spec: d.initialEndpointSpec,
|
|
2325
|
-
delete_time: d.deleteTime,
|
|
2326
|
-
purge_time: d.purgeTime,
|
|
2327
|
-
initial_branch_spec: d.initialBranchSpec,
|
|
2328
|
-
project_id: d.projectId,
|
|
2329
|
-
}));
|
|
2330
|
-
export const marshalProjectCustomTagSchema = z
|
|
2331
|
-
.object({
|
|
2332
|
-
key: z.string().optional(),
|
|
2333
|
-
value: z.string().optional(),
|
|
2334
|
-
})
|
|
2335
|
-
.transform(d => ({
|
|
2336
|
-
key: d.key,
|
|
2337
|
-
value: d.value,
|
|
2338
|
-
}));
|
|
2339
|
-
export const marshalProjectDefaultEndpointSettingsSchema = z
|
|
2340
|
-
.object({
|
|
2341
|
-
autoscalingLimitMinCu: z.number().optional(),
|
|
2342
|
-
autoscalingLimitMaxCu: z.number().optional(),
|
|
2343
|
-
suspension: z
|
|
2344
|
-
.discriminatedUnion('$case', [
|
|
2345
|
-
z.object({
|
|
2346
|
-
$case: z.literal('suspendTimeoutDuration'),
|
|
2347
|
-
suspendTimeoutDuration: z
|
|
2348
|
-
.any()
|
|
2349
|
-
.transform((d) => d.toString().slice(2).toLowerCase()),
|
|
2350
|
-
}),
|
|
2351
|
-
z.object({ $case: z.literal('noSuspension'), noSuspension: z.boolean() }),
|
|
2352
|
-
])
|
|
2353
|
-
.optional(),
|
|
2354
|
-
pgSettings: z.record(z.string(), z.string()).optional(),
|
|
2355
|
-
})
|
|
2356
|
-
.transform(d => ({
|
|
2357
|
-
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
2358
|
-
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
2359
|
-
...(d.suspension?.$case === 'suspendTimeoutDuration' && {
|
|
2360
|
-
suspend_timeout_duration: d.suspension.suspendTimeoutDuration,
|
|
2361
|
-
}),
|
|
2362
|
-
...(d.suspension?.$case === 'noSuspension' && {
|
|
2363
|
-
no_suspension: d.suspension.noSuspension,
|
|
2364
|
-
}),
|
|
2365
|
-
pg_settings: d.pgSettings,
|
|
2366
|
-
}));
|
|
2367
|
-
export const marshalProjectSpecSchema = z
|
|
2368
|
-
.object({
|
|
2369
|
-
displayName: z.string().optional(),
|
|
2370
|
-
pgVersion: z.number().optional(),
|
|
2371
|
-
historyRetentionDuration: z
|
|
2372
|
-
.any()
|
|
2373
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2374
|
-
.optional(),
|
|
2375
|
-
defaultEndpointSettings: z
|
|
2376
|
-
.lazy(() => marshalProjectDefaultEndpointSettingsSchema)
|
|
2377
|
-
.optional(),
|
|
2378
|
-
budgetPolicyId: z.string().optional(),
|
|
2379
|
-
customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
|
|
2380
|
-
enablePgNativeLogin: z.boolean().optional(),
|
|
2381
|
-
defaultBranch: z.string().optional(),
|
|
2382
|
-
})
|
|
2383
|
-
.transform(d => ({
|
|
2384
|
-
display_name: d.displayName,
|
|
2385
|
-
pg_version: d.pgVersion,
|
|
2386
|
-
history_retention_duration: d.historyRetentionDuration,
|
|
2387
|
-
default_endpoint_settings: d.defaultEndpointSettings,
|
|
2388
|
-
budget_policy_id: d.budgetPolicyId,
|
|
2389
|
-
custom_tags: d.customTags,
|
|
2390
|
-
enable_pg_native_login: d.enablePgNativeLogin,
|
|
2391
|
-
default_branch: d.defaultBranch,
|
|
2392
|
-
}));
|
|
2393
|
-
export const marshalProjectStatusSchema = z
|
|
2394
|
-
.object({
|
|
2395
|
-
displayName: z.string().optional(),
|
|
2396
|
-
pgVersion: z.number().optional(),
|
|
2397
|
-
historyRetentionDuration: z
|
|
2398
|
-
.any()
|
|
2399
|
-
.transform((d) => d.toString().slice(2).toLowerCase())
|
|
2400
|
-
.optional(),
|
|
2401
|
-
defaultEndpointSettings: z
|
|
2402
|
-
.lazy(() => marshalProjectDefaultEndpointSettingsSchema)
|
|
2403
|
-
.optional(),
|
|
2404
|
-
branchLogicalSizeLimitBytes: z.bigint().optional(),
|
|
2405
|
-
syntheticStorageSizeBytes: z.bigint().optional(),
|
|
2406
|
-
computeLastActiveTime: z
|
|
2407
|
-
.any()
|
|
2408
|
-
.transform((d) => d.toString())
|
|
2409
|
-
.optional(),
|
|
2410
|
-
budgetPolicyId: z.string().optional(),
|
|
2411
|
-
customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
|
|
2412
|
-
owner: z.string().optional(),
|
|
2413
|
-
enablePgNativeLogin: z.boolean().optional(),
|
|
2414
|
-
defaultBranch: z.string().optional(),
|
|
2415
|
-
projectId: z.string().optional(),
|
|
2416
|
-
})
|
|
2417
|
-
.transform(d => ({
|
|
2418
|
-
display_name: d.displayName,
|
|
2419
|
-
pg_version: d.pgVersion,
|
|
2420
|
-
history_retention_duration: d.historyRetentionDuration,
|
|
2421
|
-
default_endpoint_settings: d.defaultEndpointSettings,
|
|
2422
|
-
branch_logical_size_limit_bytes: d.branchLogicalSizeLimitBytes,
|
|
2423
|
-
synthetic_storage_size_bytes: d.syntheticStorageSizeBytes,
|
|
2424
|
-
compute_last_active_time: d.computeLastActiveTime,
|
|
2425
|
-
budget_policy_id: d.budgetPolicyId,
|
|
2426
|
-
custom_tags: d.customTags,
|
|
2427
|
-
owner: d.owner,
|
|
2428
|
-
enable_pg_native_login: d.enablePgNativeLogin,
|
|
2429
|
-
default_branch: d.defaultBranch,
|
|
2430
|
-
project_id: d.projectId,
|
|
2431
|
-
}));
|
|
2432
|
-
export const marshalRequestedClaimsSchema = z
|
|
2433
|
-
.object({
|
|
2434
|
-
permissionSet: z.string().optional(),
|
|
2435
|
-
resources: z.array(z.lazy(() => marshalRequestedResourceSchema)).optional(),
|
|
2436
|
-
})
|
|
2437
|
-
.transform(d => ({
|
|
2438
|
-
permission_set: d.permissionSet,
|
|
2439
|
-
resources: d.resources,
|
|
2440
|
-
}));
|
|
2441
|
-
export const marshalRequestedResourceSchema = z
|
|
2442
|
-
.object({
|
|
2443
|
-
resourceName: z
|
|
2444
|
-
.discriminatedUnion('$case', [
|
|
2445
|
-
z.object({ $case: z.literal('tableName'), tableName: z.string() }),
|
|
2446
|
-
])
|
|
2447
|
-
.optional(),
|
|
2448
|
-
})
|
|
2449
|
-
.transform(d => ({
|
|
2450
|
-
...(d.resourceName?.$case === 'tableName' && {
|
|
2451
|
-
table_name: d.resourceName.tableName,
|
|
2452
|
-
}),
|
|
2453
|
-
}));
|
|
2454
|
-
export const marshalRoleSchema = z
|
|
2455
|
-
.object({
|
|
2456
|
-
name: z.string().optional(),
|
|
2457
|
-
parent: z.string().optional(),
|
|
2458
|
-
createTime: z
|
|
2459
|
-
.any()
|
|
2460
|
-
.transform((d) => d.toString())
|
|
2461
|
-
.optional(),
|
|
2462
|
-
updateTime: z
|
|
2463
|
-
.any()
|
|
2464
|
-
.transform((d) => d.toString())
|
|
2465
|
-
.optional(),
|
|
2466
|
-
spec: z.lazy(() => marshalRole_RoleSpecSchema).optional(),
|
|
2467
|
-
status: z.lazy(() => marshalRole_RoleStatusSchema).optional(),
|
|
2468
|
-
roleId: z.string().optional(),
|
|
2469
|
-
})
|
|
2470
|
-
.transform(d => ({
|
|
2471
|
-
name: d.name,
|
|
2472
|
-
parent: d.parent,
|
|
2473
|
-
create_time: d.createTime,
|
|
2474
|
-
update_time: d.updateTime,
|
|
2475
|
-
spec: d.spec,
|
|
2476
|
-
status: d.status,
|
|
2477
|
-
role_id: d.roleId,
|
|
2478
|
-
}));
|
|
2479
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2480
|
-
export const marshalRole_AttributesSchema = z
|
|
2481
|
-
.object({
|
|
2482
|
-
createdb: z.boolean().optional(),
|
|
2483
|
-
createrole: z.boolean().optional(),
|
|
2484
|
-
bypassrls: z.boolean().optional(),
|
|
2485
|
-
})
|
|
2486
|
-
.transform(d => ({
|
|
2487
|
-
createdb: d.createdb,
|
|
2488
|
-
createrole: d.createrole,
|
|
2489
|
-
bypassrls: d.bypassrls,
|
|
2490
|
-
}));
|
|
2491
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2492
|
-
export const marshalRole_RoleSpecSchema = z
|
|
2493
|
-
.object({
|
|
2494
|
-
membershipRoles: z.array(z.string()).optional(),
|
|
2495
|
-
identityType: z.string().optional(),
|
|
2496
|
-
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
2497
|
-
authMethod: z.string().optional(),
|
|
2498
|
-
postgresRole: z.string().optional(),
|
|
2499
|
-
})
|
|
2500
|
-
.transform(d => ({
|
|
2501
|
-
membership_roles: d.membershipRoles,
|
|
2502
|
-
identity_type: d.identityType,
|
|
2503
|
-
attributes: d.attributes,
|
|
2504
|
-
auth_method: d.authMethod,
|
|
2505
|
-
postgres_role: d.postgresRole,
|
|
2506
|
-
}));
|
|
2507
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2508
|
-
export const marshalRole_RoleStatusSchema = z
|
|
2509
|
-
.object({
|
|
2510
|
-
membershipRoles: z.array(z.string()).optional(),
|
|
2511
|
-
identityType: z.string().optional(),
|
|
2512
|
-
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
2513
|
-
authMethod: z.string().optional(),
|
|
2514
|
-
postgresRole: z.string().optional(),
|
|
2515
|
-
roleId: z.string().optional(),
|
|
2516
|
-
})
|
|
2517
|
-
.transform(d => ({
|
|
2518
|
-
membership_roles: d.membershipRoles,
|
|
2519
|
-
identity_type: d.identityType,
|
|
2520
|
-
attributes: d.attributes,
|
|
2521
|
-
auth_method: d.authMethod,
|
|
2522
|
-
postgres_role: d.postgresRole,
|
|
2523
|
-
role_id: d.roleId,
|
|
2524
|
-
}));
|
|
2525
|
-
export const marshalSyncedTableSchema = z
|
|
2526
|
-
.object({
|
|
2527
|
-
name: z.string().optional(),
|
|
2528
|
-
uid: z.string().optional(),
|
|
2529
|
-
spec: z.lazy(() => marshalSyncedTable_SyncedTableSpecSchema).optional(),
|
|
2530
|
-
status: z.lazy(() => marshalSyncedTable_SyncedTableStatusSchema).optional(),
|
|
2531
|
-
createTime: z
|
|
2532
|
-
.any()
|
|
2533
|
-
.transform((d) => d.toString())
|
|
2534
|
-
.optional(),
|
|
2535
|
-
syncedTableId: z.string().optional(),
|
|
2536
|
-
})
|
|
2537
|
-
.transform(d => ({
|
|
2538
|
-
name: d.name,
|
|
2539
|
-
uid: d.uid,
|
|
2540
|
-
spec: d.spec,
|
|
2541
|
-
status: d.status,
|
|
2542
|
-
create_time: d.createTime,
|
|
2543
|
-
synced_table_id: d.syncedTableId,
|
|
2544
|
-
}));
|
|
2545
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2546
|
-
export const marshalSyncedTable_SyncedTableSpecSchema = z
|
|
2547
|
-
.object({
|
|
2548
|
-
postgresDatabase: z.string().optional(),
|
|
2549
|
-
branch: z.string().optional(),
|
|
2550
|
-
schedulingPolicy: z.string().optional(),
|
|
2551
|
-
sourceTableFullName: z.string().optional(),
|
|
2552
|
-
primaryKeyColumns: z.array(z.string()).optional(),
|
|
2553
|
-
timeseriesKey: z.string().optional(),
|
|
2554
|
-
existingPipelineId: z.string().optional(),
|
|
2555
|
-
createDatabaseObjectsIfMissing: z.boolean().optional(),
|
|
2556
|
-
newPipelineSpec: z.lazy(() => marshalNewPipelineSpecSchema).optional(),
|
|
2557
|
-
acceleratedSync: z.boolean().optional(),
|
|
2558
|
-
typeOverrides: z
|
|
2559
|
-
.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema))
|
|
2560
|
-
.optional(),
|
|
2561
|
-
extraColumns: z
|
|
2562
|
-
.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema))
|
|
2563
|
-
.optional(),
|
|
2564
|
-
})
|
|
2565
|
-
.transform(d => ({
|
|
2566
|
-
postgres_database: d.postgresDatabase,
|
|
2567
|
-
branch: d.branch,
|
|
2568
|
-
scheduling_policy: d.schedulingPolicy,
|
|
2569
|
-
source_table_full_name: d.sourceTableFullName,
|
|
2570
|
-
primary_key_columns: d.primaryKeyColumns,
|
|
2571
|
-
timeseries_key: d.timeseriesKey,
|
|
2572
|
-
existing_pipeline_id: d.existingPipelineId,
|
|
2573
|
-
create_database_objects_if_missing: d.createDatabaseObjectsIfMissing,
|
|
2574
|
-
new_pipeline_spec: d.newPipelineSpec,
|
|
2575
|
-
accelerated_sync: d.acceleratedSync,
|
|
2576
|
-
type_overrides: d.typeOverrides,
|
|
2577
|
-
extra_columns: d.extraColumns,
|
|
2578
|
-
}));
|
|
2579
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2580
|
-
export const marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z
|
|
2581
|
-
.object({
|
|
2582
|
-
columnName: z.string().optional(),
|
|
2583
|
-
columnType: z.string().optional(),
|
|
2584
|
-
maintenance: z.string().optional(),
|
|
2585
|
-
compute: z.string().optional(),
|
|
2586
|
-
})
|
|
2587
|
-
.transform(d => ({
|
|
2588
|
-
column_name: d.columnName,
|
|
2589
|
-
column_type: d.columnType,
|
|
2590
|
-
maintenance: d.maintenance,
|
|
2591
|
-
compute: d.compute,
|
|
2592
|
-
}));
|
|
2593
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2594
|
-
export const marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z
|
|
2595
|
-
.object({
|
|
2596
|
-
columnName: z.string().optional(),
|
|
2597
|
-
pgType: z.string().optional(),
|
|
2598
|
-
size: z.number().optional(),
|
|
2599
|
-
})
|
|
2600
|
-
.transform(d => ({
|
|
2601
|
-
column_name: d.columnName,
|
|
2602
|
-
pg_type: d.pgType,
|
|
2603
|
-
size: d.size,
|
|
2604
|
-
}));
|
|
2605
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2606
|
-
export const marshalSyncedTable_SyncedTableStatusSchema = z
|
|
2607
|
-
.object({
|
|
2608
|
-
message: z.string().optional(),
|
|
2609
|
-
detailedState: z.string().optional(),
|
|
2610
|
-
lastSync: z.lazy(() => marshalSyncedTablePositionSchema).optional(),
|
|
2611
|
-
ongoingSyncProgress: z
|
|
2612
|
-
.lazy(() => marshalSyncedTablePipelineProgressSchema)
|
|
2613
|
-
.optional(),
|
|
2614
|
-
provisioningPhase: z.string().optional(),
|
|
2615
|
-
lastProcessedCommitVersion: z.bigint().optional(),
|
|
2616
|
-
lastSyncTime: z
|
|
2617
|
-
.any()
|
|
2618
|
-
.transform((d) => d.toString())
|
|
2619
|
-
.optional(),
|
|
2620
|
-
pipelineId: z.string().optional(),
|
|
2621
|
-
unityCatalogProvisioningState: z.string().optional(),
|
|
2622
|
-
project: z.string().optional(),
|
|
2623
|
-
})
|
|
2624
|
-
.transform(d => ({
|
|
2625
|
-
message: d.message,
|
|
2626
|
-
detailed_state: d.detailedState,
|
|
2627
|
-
last_sync: d.lastSync,
|
|
2628
|
-
ongoing_sync_progress: d.ongoingSyncProgress,
|
|
2629
|
-
provisioning_phase: d.provisioningPhase,
|
|
2630
|
-
last_processed_commit_version: d.lastProcessedCommitVersion,
|
|
2631
|
-
last_sync_time: d.lastSyncTime,
|
|
2632
|
-
pipeline_id: d.pipelineId,
|
|
2633
|
-
unity_catalog_provisioning_state: d.unityCatalogProvisioningState,
|
|
2634
|
-
project: d.project,
|
|
2635
|
-
}));
|
|
2636
|
-
export const marshalSyncedTablePipelineProgressSchema = z
|
|
2637
|
-
.object({
|
|
2638
|
-
latestVersionCurrentlyProcessing: z.bigint().optional(),
|
|
2639
|
-
syncedRowCount: z.bigint().optional(),
|
|
2640
|
-
totalRowCount: z.bigint().optional(),
|
|
2641
|
-
syncProgressCompletion: z.number().optional(),
|
|
2642
|
-
estimatedCompletionTimeSeconds: z.number().optional(),
|
|
2643
|
-
})
|
|
2644
|
-
.transform(d => ({
|
|
2645
|
-
latest_version_currently_processing: d.latestVersionCurrentlyProcessing,
|
|
2646
|
-
synced_row_count: d.syncedRowCount,
|
|
2647
|
-
total_row_count: d.totalRowCount,
|
|
2648
|
-
sync_progress_completion: d.syncProgressCompletion,
|
|
2649
|
-
estimated_completion_time_seconds: d.estimatedCompletionTimeSeconds,
|
|
2650
|
-
}));
|
|
2651
|
-
export const marshalSyncedTablePositionSchema = z
|
|
2652
|
-
.object({
|
|
2653
|
-
syncStartTime: z
|
|
2654
|
-
.any()
|
|
2655
|
-
.transform((d) => d.toString())
|
|
2656
|
-
.optional(),
|
|
2657
|
-
syncEndTime: z
|
|
2658
|
-
.any()
|
|
2659
|
-
.transform((d) => d.toString())
|
|
2660
|
-
.optional(),
|
|
2661
|
-
sourceSyncInfo: z
|
|
2662
|
-
.discriminatedUnion('$case', [
|
|
2663
|
-
z.object({
|
|
2664
|
-
$case: z.literal('deltaTableSyncInfo'),
|
|
2665
|
-
deltaTableSyncInfo: z.lazy(() => marshalDeltaTableSyncInfoSchema),
|
|
2666
|
-
}),
|
|
2667
|
-
])
|
|
2668
|
-
.optional(),
|
|
2669
|
-
})
|
|
2670
|
-
.transform(d => ({
|
|
2671
|
-
sync_start_time: d.syncStartTime,
|
|
2672
|
-
sync_end_time: d.syncEndTime,
|
|
2673
|
-
...(d.sourceSyncInfo?.$case === 'deltaTableSyncInfo' && {
|
|
2674
|
-
delta_table_sync_info: d.sourceSyncInfo.deltaTableSyncInfo,
|
|
2675
|
-
}),
|
|
2676
|
-
}));
|
|
2677
|
-
export const marshalUndeleteBranchRequestSchema = z
|
|
2678
|
-
.object({
|
|
2679
|
-
name: z.string().optional(),
|
|
2680
|
-
})
|
|
2681
|
-
.transform(d => ({
|
|
2682
|
-
name: d.name,
|
|
2683
|
-
}));
|
|
2684
|
-
export const marshalUndeleteProjectRequestSchema = z
|
|
2685
|
-
.object({
|
|
2686
|
-
name: z.string().optional(),
|
|
2687
|
-
})
|
|
2688
|
-
.transform(d => ({
|
|
2689
|
-
name: d.name,
|
|
2690
|
-
}));
|
|
207
|
+
const unmarshalApiErrorSchema = z.object({
|
|
208
|
+
error_code: z.string().optional(),
|
|
209
|
+
message: z.string().optional(),
|
|
210
|
+
stack_trace: z.string().optional(),
|
|
211
|
+
details: z.array(z.record(z.string(), z.unknown())).optional()
|
|
212
|
+
}).transform((d) => ({
|
|
213
|
+
errorCode: d.error_code,
|
|
214
|
+
message: d.message,
|
|
215
|
+
stackTrace: d.stack_trace,
|
|
216
|
+
details: d.details
|
|
217
|
+
}));
|
|
218
|
+
const unmarshalBranchSchema = z.object({
|
|
219
|
+
name: z.string().optional(),
|
|
220
|
+
uid: z.string().optional(),
|
|
221
|
+
parent: z.string().optional(),
|
|
222
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
223
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
224
|
+
spec: z.lazy(() => unmarshalBranchSpecSchema).optional(),
|
|
225
|
+
status: z.lazy(() => unmarshalBranchStatusSchema).optional(),
|
|
226
|
+
branch_id: z.string().optional()
|
|
227
|
+
}).transform((d) => ({
|
|
228
|
+
name: d.name,
|
|
229
|
+
uid: d.uid,
|
|
230
|
+
parent: d.parent,
|
|
231
|
+
createTime: d.create_time,
|
|
232
|
+
updateTime: d.update_time,
|
|
233
|
+
spec: d.spec,
|
|
234
|
+
status: d.status,
|
|
235
|
+
branchId: d.branch_id
|
|
236
|
+
}));
|
|
237
|
+
const unmarshalBranchOperationMetadataSchema = z.object({});
|
|
238
|
+
const unmarshalBranchSpecSchema = z.object({
|
|
239
|
+
source_branch: z.string().optional(),
|
|
240
|
+
source_branch_lsn: z.string().optional(),
|
|
241
|
+
source_branch_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
242
|
+
is_protected: z.boolean().optional(),
|
|
243
|
+
expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
244
|
+
ttl: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
245
|
+
no_expiry: z.boolean().optional()
|
|
246
|
+
}).transform((d) => ({
|
|
247
|
+
sourceBranch: d.source_branch,
|
|
248
|
+
sourceBranchLsn: d.source_branch_lsn,
|
|
249
|
+
sourceBranchTime: d.source_branch_time,
|
|
250
|
+
isProtected: d.is_protected,
|
|
251
|
+
expiration: d.expire_time !== void 0 ? {
|
|
252
|
+
$case: "expireTime",
|
|
253
|
+
expireTime: d.expire_time
|
|
254
|
+
} : d.ttl !== void 0 ? {
|
|
255
|
+
$case: "ttl",
|
|
256
|
+
ttl: d.ttl
|
|
257
|
+
} : d.no_expiry !== void 0 ? {
|
|
258
|
+
$case: "noExpiry",
|
|
259
|
+
noExpiry: d.no_expiry
|
|
260
|
+
} : void 0
|
|
261
|
+
}));
|
|
262
|
+
const unmarshalBranchStatusSchema = z.object({
|
|
263
|
+
source_branch: z.string().optional(),
|
|
264
|
+
source_branch_lsn: z.string().optional(),
|
|
265
|
+
source_branch_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
266
|
+
default: z.boolean().optional(),
|
|
267
|
+
is_protected: z.boolean().optional(),
|
|
268
|
+
current_state: z.string().optional(),
|
|
269
|
+
pending_state: z.string().optional(),
|
|
270
|
+
state_change_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
271
|
+
logical_size_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
272
|
+
expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
273
|
+
branch_id: z.string().optional(),
|
|
274
|
+
delete_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
275
|
+
purge_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
|
|
276
|
+
}).transform((d) => ({
|
|
277
|
+
sourceBranch: d.source_branch,
|
|
278
|
+
sourceBranchLsn: d.source_branch_lsn,
|
|
279
|
+
sourceBranchTime: d.source_branch_time,
|
|
280
|
+
default: d.default,
|
|
281
|
+
isProtected: d.is_protected,
|
|
282
|
+
currentState: d.current_state,
|
|
283
|
+
pendingState: d.pending_state,
|
|
284
|
+
stateChangeTime: d.state_change_time,
|
|
285
|
+
logicalSizeBytes: d.logical_size_bytes,
|
|
286
|
+
expireTime: d.expire_time,
|
|
287
|
+
branchId: d.branch_id,
|
|
288
|
+
deleteTime: d.delete_time,
|
|
289
|
+
purgeTime: d.purge_time
|
|
290
|
+
}));
|
|
291
|
+
const unmarshalCatalogSchema = z.object({
|
|
292
|
+
name: z.string().optional(),
|
|
293
|
+
uid: z.string().optional(),
|
|
294
|
+
spec: z.lazy(() => unmarshalCatalog_CatalogSpecSchema).optional(),
|
|
295
|
+
status: z.lazy(() => unmarshalCatalog_CatalogStatusSchema).optional(),
|
|
296
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
297
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
298
|
+
catalog_id: z.string().optional()
|
|
299
|
+
}).transform((d) => ({
|
|
300
|
+
name: d.name,
|
|
301
|
+
uid: d.uid,
|
|
302
|
+
spec: d.spec,
|
|
303
|
+
status: d.status,
|
|
304
|
+
createTime: d.create_time,
|
|
305
|
+
updateTime: d.update_time,
|
|
306
|
+
catalogId: d.catalog_id
|
|
307
|
+
}));
|
|
308
|
+
const unmarshalCatalog_CatalogSpecSchema = z.object({
|
|
309
|
+
postgres_database: z.string().optional(),
|
|
310
|
+
create_database_if_missing: z.boolean().optional(),
|
|
311
|
+
branch: z.string().optional()
|
|
312
|
+
}).transform((d) => ({
|
|
313
|
+
postgresDatabase: d.postgres_database,
|
|
314
|
+
createDatabaseIfMissing: d.create_database_if_missing,
|
|
315
|
+
branch: d.branch
|
|
316
|
+
}));
|
|
317
|
+
const unmarshalCatalog_CatalogStatusSchema = z.object({
|
|
318
|
+
postgres_database: z.string().optional(),
|
|
319
|
+
project: z.string().optional(),
|
|
320
|
+
branch: z.string().optional()
|
|
321
|
+
}).transform((d) => ({
|
|
322
|
+
postgresDatabase: d.postgres_database,
|
|
323
|
+
project: d.project,
|
|
324
|
+
branch: d.branch
|
|
325
|
+
}));
|
|
326
|
+
const unmarshalCatalogOperationMetadataSchema = z.object({});
|
|
327
|
+
const unmarshalCdfConfigSchema = z.object({
|
|
328
|
+
name: z.string().optional(),
|
|
329
|
+
catalog: z.string().optional(),
|
|
330
|
+
schema: z.string().optional(),
|
|
331
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
332
|
+
cdf_config_id: z.string().optional(),
|
|
333
|
+
postgres_schema: z.string().optional()
|
|
334
|
+
}).transform((d) => ({
|
|
335
|
+
name: d.name,
|
|
336
|
+
catalog: d.catalog,
|
|
337
|
+
schema: d.schema,
|
|
338
|
+
createTime: d.create_time,
|
|
339
|
+
cdfConfigId: d.cdf_config_id,
|
|
340
|
+
postgresSchema: d.postgres_schema
|
|
341
|
+
}));
|
|
342
|
+
const unmarshalCdfConfigOperationMetadataSchema = z.object({});
|
|
343
|
+
const unmarshalCdfStatusSchema = z.object({
|
|
344
|
+
name: z.string().optional(),
|
|
345
|
+
postgres_table: z.string().optional(),
|
|
346
|
+
uc_table: z.string().optional(),
|
|
347
|
+
state: z.string().optional(),
|
|
348
|
+
committed_lsn: z.string().optional(),
|
|
349
|
+
last_sync_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
350
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
351
|
+
status_detail: z.string().optional()
|
|
352
|
+
}).transform((d) => ({
|
|
353
|
+
name: d.name,
|
|
354
|
+
postgresTable: d.postgres_table,
|
|
355
|
+
ucTable: d.uc_table,
|
|
356
|
+
state: d.state,
|
|
357
|
+
committedLsn: d.committed_lsn,
|
|
358
|
+
lastSyncTime: d.last_sync_time,
|
|
359
|
+
createTime: d.create_time,
|
|
360
|
+
statusDetail: d.status_detail
|
|
361
|
+
}));
|
|
362
|
+
const unmarshalDataApiSchema = z.object({
|
|
363
|
+
name: z.string().optional(),
|
|
364
|
+
parent: z.string().optional(),
|
|
365
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
366
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
367
|
+
spec: z.lazy(() => unmarshalDataApi_DataApiSpecSchema).optional(),
|
|
368
|
+
status: z.lazy(() => unmarshalDataApi_DataApiStatusSchema).optional()
|
|
369
|
+
}).transform((d) => ({
|
|
370
|
+
name: d.name,
|
|
371
|
+
parent: d.parent,
|
|
372
|
+
createTime: d.create_time,
|
|
373
|
+
updateTime: d.update_time,
|
|
374
|
+
spec: d.spec,
|
|
375
|
+
status: d.status
|
|
376
|
+
}));
|
|
377
|
+
const unmarshalDataApi_DataApiSpecSchema = z.object({
|
|
378
|
+
db_aggregates_enabled: z.boolean().optional(),
|
|
379
|
+
db_extra_search_path: z.array(z.string()).optional(),
|
|
380
|
+
db_max_rows: z.number().optional(),
|
|
381
|
+
db_schemas: z.array(z.string()).optional(),
|
|
382
|
+
jwt_role_claim_key: z.string().optional(),
|
|
383
|
+
jwt_cache_max_lifetime: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
384
|
+
openapi_mode: z.string().optional(),
|
|
385
|
+
server_cors_allowed_origins: z.array(z.string()).optional(),
|
|
386
|
+
server_timing_enabled: z.boolean().optional()
|
|
387
|
+
}).transform((d) => ({
|
|
388
|
+
dbAggregatesEnabled: d.db_aggregates_enabled,
|
|
389
|
+
dbExtraSearchPath: d.db_extra_search_path,
|
|
390
|
+
dbMaxRows: d.db_max_rows,
|
|
391
|
+
dbSchemas: d.db_schemas,
|
|
392
|
+
jwtRoleClaimKey: d.jwt_role_claim_key,
|
|
393
|
+
jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
|
|
394
|
+
openapiMode: d.openapi_mode,
|
|
395
|
+
serverCorsAllowedOrigins: d.server_cors_allowed_origins,
|
|
396
|
+
serverTimingEnabled: d.server_timing_enabled
|
|
397
|
+
}));
|
|
398
|
+
const unmarshalDataApi_DataApiStatusSchema = z.object({
|
|
399
|
+
db_aggregates_enabled: z.boolean().optional(),
|
|
400
|
+
db_extra_search_path: z.array(z.string()).optional(),
|
|
401
|
+
db_max_rows: z.number().optional(),
|
|
402
|
+
db_schemas: z.array(z.string()).optional(),
|
|
403
|
+
jwt_role_claim_key: z.string().optional(),
|
|
404
|
+
jwt_cache_max_lifetime: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
405
|
+
openapi_mode: z.string().optional(),
|
|
406
|
+
server_cors_allowed_origins: z.array(z.string()).optional(),
|
|
407
|
+
server_timing_enabled: z.boolean().optional(),
|
|
408
|
+
url: z.string().optional(),
|
|
409
|
+
available_schemas: z.array(z.string()).optional()
|
|
410
|
+
}).transform((d) => ({
|
|
411
|
+
dbAggregatesEnabled: d.db_aggregates_enabled,
|
|
412
|
+
dbExtraSearchPath: d.db_extra_search_path,
|
|
413
|
+
dbMaxRows: d.db_max_rows,
|
|
414
|
+
dbSchemas: d.db_schemas,
|
|
415
|
+
jwtRoleClaimKey: d.jwt_role_claim_key,
|
|
416
|
+
jwtCacheMaxLifetime: d.jwt_cache_max_lifetime,
|
|
417
|
+
openapiMode: d.openapi_mode,
|
|
418
|
+
serverCorsAllowedOrigins: d.server_cors_allowed_origins,
|
|
419
|
+
serverTimingEnabled: d.server_timing_enabled,
|
|
420
|
+
url: d.url,
|
|
421
|
+
availableSchemas: d.available_schemas
|
|
422
|
+
}));
|
|
423
|
+
const unmarshalDataApiOperationMetadataSchema = z.object({});
|
|
424
|
+
const unmarshalDatabaseSchema = z.object({
|
|
425
|
+
name: z.string().optional(),
|
|
426
|
+
parent: z.string().optional(),
|
|
427
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
428
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
429
|
+
spec: z.lazy(() => unmarshalDatabase_DatabaseSpecSchema).optional(),
|
|
430
|
+
status: z.lazy(() => unmarshalDatabase_DatabaseStatusSchema).optional(),
|
|
431
|
+
database_id: z.string().optional()
|
|
432
|
+
}).transform((d) => ({
|
|
433
|
+
name: d.name,
|
|
434
|
+
parent: d.parent,
|
|
435
|
+
createTime: d.create_time,
|
|
436
|
+
updateTime: d.update_time,
|
|
437
|
+
spec: d.spec,
|
|
438
|
+
status: d.status,
|
|
439
|
+
databaseId: d.database_id
|
|
440
|
+
}));
|
|
441
|
+
const unmarshalDatabase_DatabaseSpecSchema = z.object({
|
|
442
|
+
role: z.string().optional(),
|
|
443
|
+
postgres_database: z.string().optional()
|
|
444
|
+
}).transform((d) => ({
|
|
445
|
+
role: d.role,
|
|
446
|
+
postgresDatabase: d.postgres_database
|
|
447
|
+
}));
|
|
448
|
+
const unmarshalDatabase_DatabaseStatusSchema = z.object({
|
|
449
|
+
role: z.string().optional(),
|
|
450
|
+
postgres_database: z.string().optional(),
|
|
451
|
+
database_id: z.string().optional()
|
|
452
|
+
}).transform((d) => ({
|
|
453
|
+
role: d.role,
|
|
454
|
+
postgresDatabase: d.postgres_database,
|
|
455
|
+
databaseId: d.database_id
|
|
456
|
+
}));
|
|
457
|
+
const unmarshalDatabaseCredentialSchema = z.object({
|
|
458
|
+
token: z.string().optional(),
|
|
459
|
+
expire_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
|
|
460
|
+
}).transform((d) => ({
|
|
461
|
+
token: d.token,
|
|
462
|
+
expireTime: d.expire_time
|
|
463
|
+
}));
|
|
464
|
+
const unmarshalDatabaseOperationMetadataSchema = z.object({});
|
|
465
|
+
const unmarshalDeltaTableSyncInfoSchema = z.object({
|
|
466
|
+
delta_commit_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
467
|
+
delta_commit_time: z.string().transform((s) => Temporal.Instant.from(s)).optional()
|
|
468
|
+
}).transform((d) => ({
|
|
469
|
+
deltaCommitVersion: d.delta_commit_version,
|
|
470
|
+
deltaCommitTime: d.delta_commit_time
|
|
471
|
+
}));
|
|
472
|
+
const unmarshalEndpointSchema = z.object({
|
|
473
|
+
name: z.string().optional(),
|
|
474
|
+
uid: z.string().optional(),
|
|
475
|
+
parent: z.string().optional(),
|
|
476
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
477
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
478
|
+
spec: z.lazy(() => unmarshalEndpointSpecSchema).optional(),
|
|
479
|
+
status: z.lazy(() => unmarshalEndpointStatusSchema).optional(),
|
|
480
|
+
endpoint_id: z.string().optional()
|
|
481
|
+
}).transform((d) => ({
|
|
482
|
+
name: d.name,
|
|
483
|
+
uid: d.uid,
|
|
484
|
+
parent: d.parent,
|
|
485
|
+
createTime: d.create_time,
|
|
486
|
+
updateTime: d.update_time,
|
|
487
|
+
spec: d.spec,
|
|
488
|
+
status: d.status,
|
|
489
|
+
endpointId: d.endpoint_id
|
|
490
|
+
}));
|
|
491
|
+
const unmarshalEndpointGroupSpecSchema = z.object({
|
|
492
|
+
min: z.number().optional(),
|
|
493
|
+
max: z.number().optional(),
|
|
494
|
+
enable_readable_secondaries: z.boolean().optional()
|
|
495
|
+
}).transform((d) => ({
|
|
496
|
+
min: d.min,
|
|
497
|
+
max: d.max,
|
|
498
|
+
enableReadableSecondaries: d.enable_readable_secondaries
|
|
499
|
+
}));
|
|
500
|
+
const unmarshalEndpointGroupStatusSchema = z.object({
|
|
501
|
+
min: z.number().optional(),
|
|
502
|
+
max: z.number().optional(),
|
|
503
|
+
enable_readable_secondaries: z.boolean().optional()
|
|
504
|
+
}).transform((d) => ({
|
|
505
|
+
min: d.min,
|
|
506
|
+
max: d.max,
|
|
507
|
+
enableReadableSecondaries: d.enable_readable_secondaries
|
|
508
|
+
}));
|
|
509
|
+
const unmarshalEndpointHostsSchema = z.object({
|
|
510
|
+
host: z.string().optional(),
|
|
511
|
+
read_only_host: z.string().optional(),
|
|
512
|
+
read_write_pooled_host: z.string().optional(),
|
|
513
|
+
read_only_pooled_host: z.string().optional()
|
|
514
|
+
}).transform((d) => ({
|
|
515
|
+
host: d.host,
|
|
516
|
+
readOnlyHost: d.read_only_host,
|
|
517
|
+
readWritePooledHost: d.read_write_pooled_host,
|
|
518
|
+
readOnlyPooledHost: d.read_only_pooled_host
|
|
519
|
+
}));
|
|
520
|
+
const unmarshalEndpointOperationMetadataSchema = z.object({});
|
|
521
|
+
const unmarshalEndpointSettingsSchema = z.object({ pg_settings: z.record(z.string(), z.string()).optional() }).transform((d) => ({ pgSettings: d.pg_settings }));
|
|
522
|
+
const unmarshalEndpointSpecSchema = z.object({
|
|
523
|
+
endpoint_type: z.string().optional(),
|
|
524
|
+
autoscaling_limit_min_cu: z.number().optional(),
|
|
525
|
+
autoscaling_limit_max_cu: z.number().optional(),
|
|
526
|
+
disabled: z.boolean().optional(),
|
|
527
|
+
suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
528
|
+
no_suspension: z.boolean().optional(),
|
|
529
|
+
settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
|
|
530
|
+
group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional()
|
|
531
|
+
}).transform((d) => ({
|
|
532
|
+
endpointType: d.endpoint_type,
|
|
533
|
+
autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
|
|
534
|
+
autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
|
|
535
|
+
disabled: d.disabled,
|
|
536
|
+
suspension: d.suspend_timeout_duration !== void 0 ? {
|
|
537
|
+
$case: "suspendTimeoutDuration",
|
|
538
|
+
suspendTimeoutDuration: d.suspend_timeout_duration
|
|
539
|
+
} : d.no_suspension !== void 0 ? {
|
|
540
|
+
$case: "noSuspension",
|
|
541
|
+
noSuspension: d.no_suspension
|
|
542
|
+
} : void 0,
|
|
543
|
+
settings: d.settings,
|
|
544
|
+
group: d.group
|
|
545
|
+
}));
|
|
546
|
+
const unmarshalEndpointStatusSchema = z.object({
|
|
547
|
+
endpoint_type: z.string().optional(),
|
|
548
|
+
hosts: z.lazy(() => unmarshalEndpointHostsSchema).optional(),
|
|
549
|
+
last_active_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
550
|
+
autoscaling_limit_min_cu: z.number().optional(),
|
|
551
|
+
autoscaling_limit_max_cu: z.number().optional(),
|
|
552
|
+
current_state: z.string().optional(),
|
|
553
|
+
pending_state: z.string().optional(),
|
|
554
|
+
disabled: z.boolean().optional(),
|
|
555
|
+
suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
556
|
+
settings: z.lazy(() => unmarshalEndpointSettingsSchema).optional(),
|
|
557
|
+
group: z.lazy(() => unmarshalEndpointGroupStatusSchema).optional(),
|
|
558
|
+
endpoint_id: z.string().optional()
|
|
559
|
+
}).transform((d) => ({
|
|
560
|
+
endpointType: d.endpoint_type,
|
|
561
|
+
hosts: d.hosts,
|
|
562
|
+
lastActiveTime: d.last_active_time,
|
|
563
|
+
autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
|
|
564
|
+
autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
|
|
565
|
+
currentState: d.current_state,
|
|
566
|
+
pendingState: d.pending_state,
|
|
567
|
+
disabled: d.disabled,
|
|
568
|
+
suspendTimeoutDuration: d.suspend_timeout_duration,
|
|
569
|
+
settings: d.settings,
|
|
570
|
+
group: d.group,
|
|
571
|
+
endpointId: d.endpoint_id
|
|
572
|
+
}));
|
|
573
|
+
const unmarshalInitialBranchSpecSchema = z.object({ is_protected: z.boolean().optional() }).transform((d) => ({ isProtected: d.is_protected }));
|
|
574
|
+
const unmarshalInitialEndpointSpecSchema = z.object({
|
|
575
|
+
group: z.lazy(() => unmarshalEndpointGroupSpecSchema).optional(),
|
|
576
|
+
autoscaling_limit_min_cu: z.number().optional(),
|
|
577
|
+
autoscaling_limit_max_cu: z.number().optional(),
|
|
578
|
+
suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
579
|
+
no_suspension: z.boolean().optional()
|
|
580
|
+
}).transform((d) => ({
|
|
581
|
+
group: d.group,
|
|
582
|
+
autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
|
|
583
|
+
autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
|
|
584
|
+
suspension: d.suspend_timeout_duration !== void 0 ? {
|
|
585
|
+
$case: "suspendTimeoutDuration",
|
|
586
|
+
suspendTimeoutDuration: d.suspend_timeout_duration
|
|
587
|
+
} : d.no_suspension !== void 0 ? {
|
|
588
|
+
$case: "noSuspension",
|
|
589
|
+
noSuspension: d.no_suspension
|
|
590
|
+
} : void 0
|
|
591
|
+
}));
|
|
592
|
+
const unmarshalListBranchesResponseSchema = z.object({
|
|
593
|
+
branches: z.array(z.lazy(() => unmarshalBranchSchema)).optional(),
|
|
594
|
+
next_page_token: z.string().optional()
|
|
595
|
+
}).transform((d) => ({
|
|
596
|
+
branches: d.branches,
|
|
597
|
+
nextPageToken: d.next_page_token
|
|
598
|
+
}));
|
|
599
|
+
const unmarshalListCdfConfigsResponseSchema = z.object({
|
|
600
|
+
cdf_configs: z.array(z.lazy(() => unmarshalCdfConfigSchema)).optional(),
|
|
601
|
+
next_page_token: z.string().optional()
|
|
602
|
+
}).transform((d) => ({
|
|
603
|
+
cdfConfigs: d.cdf_configs,
|
|
604
|
+
nextPageToken: d.next_page_token
|
|
605
|
+
}));
|
|
606
|
+
const unmarshalListCdfStatusesResponseSchema = z.object({
|
|
607
|
+
cdf_statuses: z.array(z.lazy(() => unmarshalCdfStatusSchema)).optional(),
|
|
608
|
+
next_page_token: z.string().optional()
|
|
609
|
+
}).transform((d) => ({
|
|
610
|
+
cdfStatuses: d.cdf_statuses,
|
|
611
|
+
nextPageToken: d.next_page_token
|
|
612
|
+
}));
|
|
613
|
+
const unmarshalListDatabasesResponseSchema = z.object({
|
|
614
|
+
databases: z.array(z.lazy(() => unmarshalDatabaseSchema)).optional(),
|
|
615
|
+
next_page_token: z.string().optional()
|
|
616
|
+
}).transform((d) => ({
|
|
617
|
+
databases: d.databases,
|
|
618
|
+
nextPageToken: d.next_page_token
|
|
619
|
+
}));
|
|
620
|
+
const unmarshalListEndpointsResponseSchema = z.object({
|
|
621
|
+
endpoints: z.array(z.lazy(() => unmarshalEndpointSchema)).optional(),
|
|
622
|
+
next_page_token: z.string().optional()
|
|
623
|
+
}).transform((d) => ({
|
|
624
|
+
endpoints: d.endpoints,
|
|
625
|
+
nextPageToken: d.next_page_token
|
|
626
|
+
}));
|
|
627
|
+
const unmarshalListProjectsResponseSchema = z.object({
|
|
628
|
+
projects: z.array(z.lazy(() => unmarshalProjectSchema)).optional(),
|
|
629
|
+
next_page_token: z.string().optional()
|
|
630
|
+
}).transform((d) => ({
|
|
631
|
+
projects: d.projects,
|
|
632
|
+
nextPageToken: d.next_page_token
|
|
633
|
+
}));
|
|
634
|
+
const unmarshalListRolesResponseSchema = z.object({
|
|
635
|
+
roles: z.array(z.lazy(() => unmarshalRoleSchema)).optional(),
|
|
636
|
+
next_page_token: z.string().optional()
|
|
637
|
+
}).transform((d) => ({
|
|
638
|
+
roles: d.roles,
|
|
639
|
+
nextPageToken: d.next_page_token
|
|
640
|
+
}));
|
|
641
|
+
const unmarshalNewPipelineSpecSchema = z.object({
|
|
642
|
+
storage_catalog: z.string().optional(),
|
|
643
|
+
storage_schema: z.string().optional(),
|
|
644
|
+
budget_policy_id: z.string().optional()
|
|
645
|
+
}).transform((d) => ({
|
|
646
|
+
storageCatalog: d.storage_catalog,
|
|
647
|
+
storageSchema: d.storage_schema,
|
|
648
|
+
budgetPolicyId: d.budget_policy_id
|
|
649
|
+
}));
|
|
650
|
+
const unmarshalOperationSchema = z.object({
|
|
651
|
+
name: z.string().optional(),
|
|
652
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
653
|
+
done: z.boolean().optional(),
|
|
654
|
+
error: z.lazy(() => unmarshalApiErrorSchema).optional(),
|
|
655
|
+
response: z.record(z.string(), z.unknown()).optional()
|
|
656
|
+
}).transform((d) => ({
|
|
657
|
+
name: d.name,
|
|
658
|
+
metadata: d.metadata,
|
|
659
|
+
done: d.done,
|
|
660
|
+
result: d.error !== void 0 ? {
|
|
661
|
+
$case: "error",
|
|
662
|
+
error: d.error
|
|
663
|
+
} : d.response !== void 0 ? {
|
|
664
|
+
$case: "response",
|
|
665
|
+
response: d.response
|
|
666
|
+
} : void 0
|
|
667
|
+
}));
|
|
668
|
+
const unmarshalProjectSchema = z.object({
|
|
669
|
+
name: z.string().optional(),
|
|
670
|
+
uid: z.string().optional(),
|
|
671
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
672
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
673
|
+
spec: z.lazy(() => unmarshalProjectSpecSchema).optional(),
|
|
674
|
+
status: z.lazy(() => unmarshalProjectStatusSchema).optional(),
|
|
675
|
+
initial_endpoint_spec: z.lazy(() => unmarshalInitialEndpointSpecSchema).optional(),
|
|
676
|
+
delete_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
677
|
+
purge_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
678
|
+
initial_branch_spec: z.lazy(() => unmarshalInitialBranchSpecSchema).optional(),
|
|
679
|
+
project_id: z.string().optional()
|
|
680
|
+
}).transform((d) => ({
|
|
681
|
+
name: d.name,
|
|
682
|
+
uid: d.uid,
|
|
683
|
+
createTime: d.create_time,
|
|
684
|
+
updateTime: d.update_time,
|
|
685
|
+
spec: d.spec,
|
|
686
|
+
status: d.status,
|
|
687
|
+
initialEndpointSpec: d.initial_endpoint_spec,
|
|
688
|
+
deleteTime: d.delete_time,
|
|
689
|
+
purgeTime: d.purge_time,
|
|
690
|
+
initialBranchSpec: d.initial_branch_spec,
|
|
691
|
+
projectId: d.project_id
|
|
692
|
+
}));
|
|
693
|
+
const unmarshalProjectCustomTagSchema = z.object({
|
|
694
|
+
key: z.string().optional(),
|
|
695
|
+
value: z.string().optional()
|
|
696
|
+
}).transform((d) => ({
|
|
697
|
+
key: d.key,
|
|
698
|
+
value: d.value
|
|
699
|
+
}));
|
|
700
|
+
const unmarshalProjectDefaultEndpointSettingsSchema = z.object({
|
|
701
|
+
autoscaling_limit_min_cu: z.number().optional(),
|
|
702
|
+
autoscaling_limit_max_cu: z.number().optional(),
|
|
703
|
+
suspend_timeout_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
704
|
+
no_suspension: z.boolean().optional(),
|
|
705
|
+
pg_settings: z.record(z.string(), z.string()).optional()
|
|
706
|
+
}).transform((d) => ({
|
|
707
|
+
autoscalingLimitMinCu: d.autoscaling_limit_min_cu,
|
|
708
|
+
autoscalingLimitMaxCu: d.autoscaling_limit_max_cu,
|
|
709
|
+
suspension: d.suspend_timeout_duration !== void 0 ? {
|
|
710
|
+
$case: "suspendTimeoutDuration",
|
|
711
|
+
suspendTimeoutDuration: d.suspend_timeout_duration
|
|
712
|
+
} : d.no_suspension !== void 0 ? {
|
|
713
|
+
$case: "noSuspension",
|
|
714
|
+
noSuspension: d.no_suspension
|
|
715
|
+
} : void 0,
|
|
716
|
+
pgSettings: d.pg_settings
|
|
717
|
+
}));
|
|
718
|
+
const unmarshalProjectOperationMetadataSchema = z.object({});
|
|
719
|
+
const unmarshalProjectSpecSchema = z.object({
|
|
720
|
+
display_name: z.string().optional(),
|
|
721
|
+
pg_version: z.number().optional(),
|
|
722
|
+
history_retention_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
723
|
+
default_endpoint_settings: z.lazy(() => unmarshalProjectDefaultEndpointSettingsSchema).optional(),
|
|
724
|
+
budget_policy_id: z.string().optional(),
|
|
725
|
+
custom_tags: z.array(z.lazy(() => unmarshalProjectCustomTagSchema)).optional(),
|
|
726
|
+
enable_pg_native_login: z.boolean().optional(),
|
|
727
|
+
default_branch: z.string().optional()
|
|
728
|
+
}).transform((d) => ({
|
|
729
|
+
displayName: d.display_name,
|
|
730
|
+
pgVersion: d.pg_version,
|
|
731
|
+
historyRetentionDuration: d.history_retention_duration,
|
|
732
|
+
defaultEndpointSettings: d.default_endpoint_settings,
|
|
733
|
+
budgetPolicyId: d.budget_policy_id,
|
|
734
|
+
customTags: d.custom_tags,
|
|
735
|
+
enablePgNativeLogin: d.enable_pg_native_login,
|
|
736
|
+
defaultBranch: d.default_branch
|
|
737
|
+
}));
|
|
738
|
+
const unmarshalProjectStatusSchema = z.object({
|
|
739
|
+
display_name: z.string().optional(),
|
|
740
|
+
pg_version: z.number().optional(),
|
|
741
|
+
history_retention_duration: z.string().transform((s) => Temporal.Duration.from("PT" + s.toUpperCase())).optional(),
|
|
742
|
+
default_endpoint_settings: z.lazy(() => unmarshalProjectDefaultEndpointSettingsSchema).optional(),
|
|
743
|
+
branch_logical_size_limit_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
744
|
+
synthetic_storage_size_bytes: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
745
|
+
compute_last_active_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
746
|
+
budget_policy_id: z.string().optional(),
|
|
747
|
+
custom_tags: z.array(z.lazy(() => unmarshalProjectCustomTagSchema)).optional(),
|
|
748
|
+
owner: z.string().optional(),
|
|
749
|
+
enable_pg_native_login: z.boolean().optional(),
|
|
750
|
+
default_branch: z.string().optional(),
|
|
751
|
+
project_id: z.string().optional()
|
|
752
|
+
}).transform((d) => ({
|
|
753
|
+
displayName: d.display_name,
|
|
754
|
+
pgVersion: d.pg_version,
|
|
755
|
+
historyRetentionDuration: d.history_retention_duration,
|
|
756
|
+
defaultEndpointSettings: d.default_endpoint_settings,
|
|
757
|
+
branchLogicalSizeLimitBytes: d.branch_logical_size_limit_bytes,
|
|
758
|
+
syntheticStorageSizeBytes: d.synthetic_storage_size_bytes,
|
|
759
|
+
computeLastActiveTime: d.compute_last_active_time,
|
|
760
|
+
budgetPolicyId: d.budget_policy_id,
|
|
761
|
+
customTags: d.custom_tags,
|
|
762
|
+
owner: d.owner,
|
|
763
|
+
enablePgNativeLogin: d.enable_pg_native_login,
|
|
764
|
+
defaultBranch: d.default_branch,
|
|
765
|
+
projectId: d.project_id
|
|
766
|
+
}));
|
|
767
|
+
const unmarshalRoleSchema = z.object({
|
|
768
|
+
name: z.string().optional(),
|
|
769
|
+
parent: z.string().optional(),
|
|
770
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
771
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
772
|
+
spec: z.lazy(() => unmarshalRole_RoleSpecSchema).optional(),
|
|
773
|
+
status: z.lazy(() => unmarshalRole_RoleStatusSchema).optional(),
|
|
774
|
+
role_id: z.string().optional()
|
|
775
|
+
}).transform((d) => ({
|
|
776
|
+
name: d.name,
|
|
777
|
+
parent: d.parent,
|
|
778
|
+
createTime: d.create_time,
|
|
779
|
+
updateTime: d.update_time,
|
|
780
|
+
spec: d.spec,
|
|
781
|
+
status: d.status,
|
|
782
|
+
roleId: d.role_id
|
|
783
|
+
}));
|
|
784
|
+
const unmarshalRole_AttributesSchema = z.object({
|
|
785
|
+
createdb: z.boolean().optional(),
|
|
786
|
+
createrole: z.boolean().optional(),
|
|
787
|
+
bypassrls: z.boolean().optional()
|
|
788
|
+
}).transform((d) => ({
|
|
789
|
+
createdb: d.createdb,
|
|
790
|
+
createrole: d.createrole,
|
|
791
|
+
bypassrls: d.bypassrls
|
|
792
|
+
}));
|
|
793
|
+
const unmarshalRole_RoleSpecSchema = z.object({
|
|
794
|
+
membership_roles: z.array(z.string()).optional(),
|
|
795
|
+
identity_type: z.string().optional(),
|
|
796
|
+
attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
|
|
797
|
+
auth_method: z.string().optional(),
|
|
798
|
+
postgres_role: z.string().optional()
|
|
799
|
+
}).transform((d) => ({
|
|
800
|
+
membershipRoles: d.membership_roles,
|
|
801
|
+
identityType: d.identity_type,
|
|
802
|
+
attributes: d.attributes,
|
|
803
|
+
authMethod: d.auth_method,
|
|
804
|
+
postgresRole: d.postgres_role
|
|
805
|
+
}));
|
|
806
|
+
const unmarshalRole_RoleStatusSchema = z.object({
|
|
807
|
+
membership_roles: z.array(z.string()).optional(),
|
|
808
|
+
identity_type: z.string().optional(),
|
|
809
|
+
attributes: z.lazy(() => unmarshalRole_AttributesSchema).optional(),
|
|
810
|
+
auth_method: z.string().optional(),
|
|
811
|
+
postgres_role: z.string().optional(),
|
|
812
|
+
role_id: z.string().optional()
|
|
813
|
+
}).transform((d) => ({
|
|
814
|
+
membershipRoles: d.membership_roles,
|
|
815
|
+
identityType: d.identity_type,
|
|
816
|
+
attributes: d.attributes,
|
|
817
|
+
authMethod: d.auth_method,
|
|
818
|
+
postgresRole: d.postgres_role,
|
|
819
|
+
roleId: d.role_id
|
|
820
|
+
}));
|
|
821
|
+
const unmarshalRoleOperationMetadataSchema = z.object({});
|
|
822
|
+
const unmarshalSyncedTableSchema = z.object({
|
|
823
|
+
name: z.string().optional(),
|
|
824
|
+
uid: z.string().optional(),
|
|
825
|
+
spec: z.lazy(() => unmarshalSyncedTable_SyncedTableSpecSchema).optional(),
|
|
826
|
+
status: z.lazy(() => unmarshalSyncedTable_SyncedTableStatusSchema).optional(),
|
|
827
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
828
|
+
synced_table_id: z.string().optional()
|
|
829
|
+
}).transform((d) => ({
|
|
830
|
+
name: d.name,
|
|
831
|
+
uid: d.uid,
|
|
832
|
+
spec: d.spec,
|
|
833
|
+
status: d.status,
|
|
834
|
+
createTime: d.create_time,
|
|
835
|
+
syncedTableId: d.synced_table_id
|
|
836
|
+
}));
|
|
837
|
+
const unmarshalSyncedTable_SyncedTableSpecSchema = z.object({
|
|
838
|
+
postgres_database: z.string().optional(),
|
|
839
|
+
branch: z.string().optional(),
|
|
840
|
+
scheduling_policy: z.string().optional(),
|
|
841
|
+
source_table_full_name: z.string().optional(),
|
|
842
|
+
primary_key_columns: z.array(z.string()).optional(),
|
|
843
|
+
timeseries_key: z.string().optional(),
|
|
844
|
+
existing_pipeline_id: z.string().optional(),
|
|
845
|
+
create_database_objects_if_missing: z.boolean().optional(),
|
|
846
|
+
new_pipeline_spec: z.lazy(() => unmarshalNewPipelineSpecSchema).optional(),
|
|
847
|
+
accelerated_sync: z.boolean().optional(),
|
|
848
|
+
type_overrides: z.array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema)).optional(),
|
|
849
|
+
extra_columns: z.array(z.lazy(() => unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema)).optional()
|
|
850
|
+
}).transform((d) => ({
|
|
851
|
+
postgresDatabase: d.postgres_database,
|
|
852
|
+
branch: d.branch,
|
|
853
|
+
schedulingPolicy: d.scheduling_policy,
|
|
854
|
+
sourceTableFullName: d.source_table_full_name,
|
|
855
|
+
primaryKeyColumns: d.primary_key_columns,
|
|
856
|
+
timeseriesKey: d.timeseries_key,
|
|
857
|
+
existingPipelineId: d.existing_pipeline_id,
|
|
858
|
+
createDatabaseObjectsIfMissing: d.create_database_objects_if_missing,
|
|
859
|
+
newPipelineSpec: d.new_pipeline_spec,
|
|
860
|
+
acceleratedSync: d.accelerated_sync,
|
|
861
|
+
typeOverrides: d.type_overrides,
|
|
862
|
+
extraColumns: d.extra_columns
|
|
863
|
+
}));
|
|
864
|
+
const unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z.object({
|
|
865
|
+
column_name: z.string().optional(),
|
|
866
|
+
column_type: z.string().optional(),
|
|
867
|
+
maintenance: z.string().optional(),
|
|
868
|
+
compute: z.string().optional()
|
|
869
|
+
}).transform((d) => ({
|
|
870
|
+
columnName: d.column_name,
|
|
871
|
+
columnType: d.column_type,
|
|
872
|
+
maintenance: d.maintenance,
|
|
873
|
+
compute: d.compute
|
|
874
|
+
}));
|
|
875
|
+
const unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z.object({
|
|
876
|
+
column_name: z.string().optional(),
|
|
877
|
+
pg_type: z.string().optional(),
|
|
878
|
+
size: z.number().optional()
|
|
879
|
+
}).transform((d) => ({
|
|
880
|
+
columnName: d.column_name,
|
|
881
|
+
pgType: d.pg_type,
|
|
882
|
+
size: d.size
|
|
883
|
+
}));
|
|
884
|
+
const unmarshalSyncedTable_SyncedTableStatusSchema = z.object({
|
|
885
|
+
message: z.string().optional(),
|
|
886
|
+
detailed_state: z.string().optional(),
|
|
887
|
+
last_sync: z.lazy(() => unmarshalSyncedTablePositionSchema).optional(),
|
|
888
|
+
ongoing_sync_progress: z.lazy(() => unmarshalSyncedTablePipelineProgressSchema).optional(),
|
|
889
|
+
provisioning_phase: z.string().optional(),
|
|
890
|
+
last_processed_commit_version: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
891
|
+
last_sync_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
892
|
+
pipeline_id: z.string().optional(),
|
|
893
|
+
unity_catalog_provisioning_state: z.string().optional(),
|
|
894
|
+
project: z.string().optional()
|
|
895
|
+
}).transform((d) => ({
|
|
896
|
+
message: d.message,
|
|
897
|
+
detailedState: d.detailed_state,
|
|
898
|
+
lastSync: d.last_sync,
|
|
899
|
+
ongoingSyncProgress: d.ongoing_sync_progress,
|
|
900
|
+
provisioningPhase: d.provisioning_phase,
|
|
901
|
+
lastProcessedCommitVersion: d.last_processed_commit_version,
|
|
902
|
+
lastSyncTime: d.last_sync_time,
|
|
903
|
+
pipelineId: d.pipeline_id,
|
|
904
|
+
unityCatalogProvisioningState: d.unity_catalog_provisioning_state,
|
|
905
|
+
project: d.project
|
|
906
|
+
}));
|
|
907
|
+
const unmarshalSyncedTableOperationMetadataSchema = z.object({});
|
|
908
|
+
const unmarshalSyncedTablePipelineProgressSchema = z.object({
|
|
909
|
+
latest_version_currently_processing: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
910
|
+
synced_row_count: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
911
|
+
total_row_count: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
|
|
912
|
+
sync_progress_completion: z.number().optional(),
|
|
913
|
+
estimated_completion_time_seconds: z.number().optional()
|
|
914
|
+
}).transform((d) => ({
|
|
915
|
+
latestVersionCurrentlyProcessing: d.latest_version_currently_processing,
|
|
916
|
+
syncedRowCount: d.synced_row_count,
|
|
917
|
+
totalRowCount: d.total_row_count,
|
|
918
|
+
syncProgressCompletion: d.sync_progress_completion,
|
|
919
|
+
estimatedCompletionTimeSeconds: d.estimated_completion_time_seconds
|
|
920
|
+
}));
|
|
921
|
+
const unmarshalSyncedTablePositionSchema = z.object({
|
|
922
|
+
sync_start_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
923
|
+
sync_end_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
924
|
+
delta_table_sync_info: z.lazy(() => unmarshalDeltaTableSyncInfoSchema).optional()
|
|
925
|
+
}).transform((d) => ({
|
|
926
|
+
syncStartTime: d.sync_start_time,
|
|
927
|
+
syncEndTime: d.sync_end_time,
|
|
928
|
+
sourceSyncInfo: d.delta_table_sync_info !== void 0 ? {
|
|
929
|
+
$case: "deltaTableSyncInfo",
|
|
930
|
+
deltaTableSyncInfo: d.delta_table_sync_info
|
|
931
|
+
} : void 0
|
|
932
|
+
}));
|
|
933
|
+
const marshalBranchSchema = z.object({
|
|
934
|
+
name: z.string().optional(),
|
|
935
|
+
uid: z.string().optional(),
|
|
936
|
+
parent: z.string().optional(),
|
|
937
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
938
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
939
|
+
spec: z.lazy(() => marshalBranchSpecSchema).optional(),
|
|
940
|
+
status: z.lazy(() => marshalBranchStatusSchema).optional(),
|
|
941
|
+
branchId: z.string().optional()
|
|
942
|
+
}).transform((d) => ({
|
|
943
|
+
name: d.name,
|
|
944
|
+
uid: d.uid,
|
|
945
|
+
parent: d.parent,
|
|
946
|
+
create_time: d.createTime,
|
|
947
|
+
update_time: d.updateTime,
|
|
948
|
+
spec: d.spec,
|
|
949
|
+
status: d.status,
|
|
950
|
+
branch_id: d.branchId
|
|
951
|
+
}));
|
|
952
|
+
const marshalBranchSpecSchema = z.object({
|
|
953
|
+
sourceBranch: z.string().optional(),
|
|
954
|
+
sourceBranchLsn: z.string().optional(),
|
|
955
|
+
sourceBranchTime: z.any().transform((d) => d.toString()).optional(),
|
|
956
|
+
isProtected: z.boolean().optional(),
|
|
957
|
+
expiration: z.discriminatedUnion("$case", [
|
|
958
|
+
z.object({
|
|
959
|
+
$case: z.literal("expireTime"),
|
|
960
|
+
expireTime: z.any().transform((d) => d.toString())
|
|
961
|
+
}),
|
|
962
|
+
z.object({
|
|
963
|
+
$case: z.literal("ttl"),
|
|
964
|
+
ttl: z.any().transform((d) => d.toString().slice(2).toLowerCase())
|
|
965
|
+
}),
|
|
966
|
+
z.object({
|
|
967
|
+
$case: z.literal("noExpiry"),
|
|
968
|
+
noExpiry: z.boolean()
|
|
969
|
+
})
|
|
970
|
+
]).optional()
|
|
971
|
+
}).transform((d) => ({
|
|
972
|
+
source_branch: d.sourceBranch,
|
|
973
|
+
source_branch_lsn: d.sourceBranchLsn,
|
|
974
|
+
source_branch_time: d.sourceBranchTime,
|
|
975
|
+
is_protected: d.isProtected,
|
|
976
|
+
...d.expiration?.$case === "expireTime" && { expire_time: d.expiration.expireTime },
|
|
977
|
+
...d.expiration?.$case === "ttl" && { ttl: d.expiration.ttl },
|
|
978
|
+
...d.expiration?.$case === "noExpiry" && { no_expiry: d.expiration.noExpiry }
|
|
979
|
+
}));
|
|
980
|
+
const marshalBranchStatusSchema = z.object({
|
|
981
|
+
sourceBranch: z.string().optional(),
|
|
982
|
+
sourceBranchLsn: z.string().optional(),
|
|
983
|
+
sourceBranchTime: z.any().transform((d) => d.toString()).optional(),
|
|
984
|
+
default: z.boolean().optional(),
|
|
985
|
+
isProtected: z.boolean().optional(),
|
|
986
|
+
currentState: z.string().optional(),
|
|
987
|
+
pendingState: z.string().optional(),
|
|
988
|
+
stateChangeTime: z.any().transform((d) => d.toString()).optional(),
|
|
989
|
+
logicalSizeBytes: z.bigint().optional(),
|
|
990
|
+
expireTime: z.any().transform((d) => d.toString()).optional(),
|
|
991
|
+
branchId: z.string().optional(),
|
|
992
|
+
deleteTime: z.any().transform((d) => d.toString()).optional(),
|
|
993
|
+
purgeTime: z.any().transform((d) => d.toString()).optional()
|
|
994
|
+
}).transform((d) => ({
|
|
995
|
+
source_branch: d.sourceBranch,
|
|
996
|
+
source_branch_lsn: d.sourceBranchLsn,
|
|
997
|
+
source_branch_time: d.sourceBranchTime,
|
|
998
|
+
default: d.default,
|
|
999
|
+
is_protected: d.isProtected,
|
|
1000
|
+
current_state: d.currentState,
|
|
1001
|
+
pending_state: d.pendingState,
|
|
1002
|
+
state_change_time: d.stateChangeTime,
|
|
1003
|
+
logical_size_bytes: d.logicalSizeBytes,
|
|
1004
|
+
expire_time: d.expireTime,
|
|
1005
|
+
branch_id: d.branchId,
|
|
1006
|
+
delete_time: d.deleteTime,
|
|
1007
|
+
purge_time: d.purgeTime
|
|
1008
|
+
}));
|
|
1009
|
+
const marshalCatalogSchema = z.object({
|
|
1010
|
+
name: z.string().optional(),
|
|
1011
|
+
uid: z.string().optional(),
|
|
1012
|
+
spec: z.lazy(() => marshalCatalog_CatalogSpecSchema).optional(),
|
|
1013
|
+
status: z.lazy(() => marshalCatalog_CatalogStatusSchema).optional(),
|
|
1014
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1015
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1016
|
+
catalogId: z.string().optional()
|
|
1017
|
+
}).transform((d) => ({
|
|
1018
|
+
name: d.name,
|
|
1019
|
+
uid: d.uid,
|
|
1020
|
+
spec: d.spec,
|
|
1021
|
+
status: d.status,
|
|
1022
|
+
create_time: d.createTime,
|
|
1023
|
+
update_time: d.updateTime,
|
|
1024
|
+
catalog_id: d.catalogId
|
|
1025
|
+
}));
|
|
1026
|
+
const marshalCatalog_CatalogSpecSchema = z.object({
|
|
1027
|
+
postgresDatabase: z.string().optional(),
|
|
1028
|
+
createDatabaseIfMissing: z.boolean().optional(),
|
|
1029
|
+
branch: z.string().optional()
|
|
1030
|
+
}).transform((d) => ({
|
|
1031
|
+
postgres_database: d.postgresDatabase,
|
|
1032
|
+
create_database_if_missing: d.createDatabaseIfMissing,
|
|
1033
|
+
branch: d.branch
|
|
1034
|
+
}));
|
|
1035
|
+
const marshalCatalog_CatalogStatusSchema = z.object({
|
|
1036
|
+
postgresDatabase: z.string().optional(),
|
|
1037
|
+
project: z.string().optional(),
|
|
1038
|
+
branch: z.string().optional()
|
|
1039
|
+
}).transform((d) => ({
|
|
1040
|
+
postgres_database: d.postgresDatabase,
|
|
1041
|
+
project: d.project,
|
|
1042
|
+
branch: d.branch
|
|
1043
|
+
}));
|
|
1044
|
+
const marshalCdfConfigSchema = z.object({
|
|
1045
|
+
name: z.string().optional(),
|
|
1046
|
+
catalog: z.string().optional(),
|
|
1047
|
+
schema: z.string().optional(),
|
|
1048
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1049
|
+
cdfConfigId: z.string().optional(),
|
|
1050
|
+
postgresSchema: z.string().optional()
|
|
1051
|
+
}).transform((d) => ({
|
|
1052
|
+
name: d.name,
|
|
1053
|
+
catalog: d.catalog,
|
|
1054
|
+
schema: d.schema,
|
|
1055
|
+
create_time: d.createTime,
|
|
1056
|
+
cdf_config_id: d.cdfConfigId,
|
|
1057
|
+
postgres_schema: d.postgresSchema
|
|
1058
|
+
}));
|
|
1059
|
+
const marshalDataApiSchema = z.object({
|
|
1060
|
+
name: z.string().optional(),
|
|
1061
|
+
parent: z.string().optional(),
|
|
1062
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1063
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1064
|
+
spec: z.lazy(() => marshalDataApi_DataApiSpecSchema).optional(),
|
|
1065
|
+
status: z.lazy(() => marshalDataApi_DataApiStatusSchema).optional()
|
|
1066
|
+
}).transform((d) => ({
|
|
1067
|
+
name: d.name,
|
|
1068
|
+
parent: d.parent,
|
|
1069
|
+
create_time: d.createTime,
|
|
1070
|
+
update_time: d.updateTime,
|
|
1071
|
+
spec: d.spec,
|
|
1072
|
+
status: d.status
|
|
1073
|
+
}));
|
|
1074
|
+
const marshalDataApi_DataApiSpecSchema = z.object({
|
|
1075
|
+
dbAggregatesEnabled: z.boolean().optional(),
|
|
1076
|
+
dbExtraSearchPath: z.array(z.string()).optional(),
|
|
1077
|
+
dbMaxRows: z.number().optional(),
|
|
1078
|
+
dbSchemas: z.array(z.string()).optional(),
|
|
1079
|
+
jwtRoleClaimKey: z.string().optional(),
|
|
1080
|
+
jwtCacheMaxLifetime: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1081
|
+
openapiMode: z.string().optional(),
|
|
1082
|
+
serverCorsAllowedOrigins: z.array(z.string()).optional(),
|
|
1083
|
+
serverTimingEnabled: z.boolean().optional()
|
|
1084
|
+
}).transform((d) => ({
|
|
1085
|
+
db_aggregates_enabled: d.dbAggregatesEnabled,
|
|
1086
|
+
db_extra_search_path: d.dbExtraSearchPath,
|
|
1087
|
+
db_max_rows: d.dbMaxRows,
|
|
1088
|
+
db_schemas: d.dbSchemas,
|
|
1089
|
+
jwt_role_claim_key: d.jwtRoleClaimKey,
|
|
1090
|
+
jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
|
|
1091
|
+
openapi_mode: d.openapiMode,
|
|
1092
|
+
server_cors_allowed_origins: d.serverCorsAllowedOrigins,
|
|
1093
|
+
server_timing_enabled: d.serverTimingEnabled
|
|
1094
|
+
}));
|
|
1095
|
+
const marshalDataApi_DataApiStatusSchema = z.object({
|
|
1096
|
+
dbAggregatesEnabled: z.boolean().optional(),
|
|
1097
|
+
dbExtraSearchPath: z.array(z.string()).optional(),
|
|
1098
|
+
dbMaxRows: z.number().optional(),
|
|
1099
|
+
dbSchemas: z.array(z.string()).optional(),
|
|
1100
|
+
jwtRoleClaimKey: z.string().optional(),
|
|
1101
|
+
jwtCacheMaxLifetime: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1102
|
+
openapiMode: z.string().optional(),
|
|
1103
|
+
serverCorsAllowedOrigins: z.array(z.string()).optional(),
|
|
1104
|
+
serverTimingEnabled: z.boolean().optional(),
|
|
1105
|
+
url: z.string().optional(),
|
|
1106
|
+
availableSchemas: z.array(z.string()).optional()
|
|
1107
|
+
}).transform((d) => ({
|
|
1108
|
+
db_aggregates_enabled: d.dbAggregatesEnabled,
|
|
1109
|
+
db_extra_search_path: d.dbExtraSearchPath,
|
|
1110
|
+
db_max_rows: d.dbMaxRows,
|
|
1111
|
+
db_schemas: d.dbSchemas,
|
|
1112
|
+
jwt_role_claim_key: d.jwtRoleClaimKey,
|
|
1113
|
+
jwt_cache_max_lifetime: d.jwtCacheMaxLifetime,
|
|
1114
|
+
openapi_mode: d.openapiMode,
|
|
1115
|
+
server_cors_allowed_origins: d.serverCorsAllowedOrigins,
|
|
1116
|
+
server_timing_enabled: d.serverTimingEnabled,
|
|
1117
|
+
url: d.url,
|
|
1118
|
+
available_schemas: d.availableSchemas
|
|
1119
|
+
}));
|
|
1120
|
+
const marshalDatabaseSchema = z.object({
|
|
1121
|
+
name: z.string().optional(),
|
|
1122
|
+
parent: z.string().optional(),
|
|
1123
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1124
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1125
|
+
spec: z.lazy(() => marshalDatabase_DatabaseSpecSchema).optional(),
|
|
1126
|
+
status: z.lazy(() => marshalDatabase_DatabaseStatusSchema).optional(),
|
|
1127
|
+
databaseId: z.string().optional()
|
|
1128
|
+
}).transform((d) => ({
|
|
1129
|
+
name: d.name,
|
|
1130
|
+
parent: d.parent,
|
|
1131
|
+
create_time: d.createTime,
|
|
1132
|
+
update_time: d.updateTime,
|
|
1133
|
+
spec: d.spec,
|
|
1134
|
+
status: d.status,
|
|
1135
|
+
database_id: d.databaseId
|
|
1136
|
+
}));
|
|
1137
|
+
const marshalDatabase_DatabaseSpecSchema = z.object({
|
|
1138
|
+
role: z.string().optional(),
|
|
1139
|
+
postgresDatabase: z.string().optional()
|
|
1140
|
+
}).transform((d) => ({
|
|
1141
|
+
role: d.role,
|
|
1142
|
+
postgres_database: d.postgresDatabase
|
|
1143
|
+
}));
|
|
1144
|
+
const marshalDatabase_DatabaseStatusSchema = z.object({
|
|
1145
|
+
role: z.string().optional(),
|
|
1146
|
+
postgresDatabase: z.string().optional(),
|
|
1147
|
+
databaseId: z.string().optional()
|
|
1148
|
+
}).transform((d) => ({
|
|
1149
|
+
role: d.role,
|
|
1150
|
+
postgres_database: d.postgresDatabase,
|
|
1151
|
+
database_id: d.databaseId
|
|
1152
|
+
}));
|
|
1153
|
+
const marshalDeltaTableSyncInfoSchema = z.object({
|
|
1154
|
+
deltaCommitVersion: z.bigint().optional(),
|
|
1155
|
+
deltaCommitTime: z.any().transform((d) => d.toString()).optional()
|
|
1156
|
+
}).transform((d) => ({
|
|
1157
|
+
delta_commit_version: d.deltaCommitVersion,
|
|
1158
|
+
delta_commit_time: d.deltaCommitTime
|
|
1159
|
+
}));
|
|
1160
|
+
const marshalEndpointSchema = z.object({
|
|
1161
|
+
name: z.string().optional(),
|
|
1162
|
+
uid: z.string().optional(),
|
|
1163
|
+
parent: z.string().optional(),
|
|
1164
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1165
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1166
|
+
spec: z.lazy(() => marshalEndpointSpecSchema).optional(),
|
|
1167
|
+
status: z.lazy(() => marshalEndpointStatusSchema).optional(),
|
|
1168
|
+
endpointId: z.string().optional()
|
|
1169
|
+
}).transform((d) => ({
|
|
1170
|
+
name: d.name,
|
|
1171
|
+
uid: d.uid,
|
|
1172
|
+
parent: d.parent,
|
|
1173
|
+
create_time: d.createTime,
|
|
1174
|
+
update_time: d.updateTime,
|
|
1175
|
+
spec: d.spec,
|
|
1176
|
+
status: d.status,
|
|
1177
|
+
endpoint_id: d.endpointId
|
|
1178
|
+
}));
|
|
1179
|
+
const marshalEndpointGroupSpecSchema = z.object({
|
|
1180
|
+
min: z.number().optional(),
|
|
1181
|
+
max: z.number().optional(),
|
|
1182
|
+
enableReadableSecondaries: z.boolean().optional()
|
|
1183
|
+
}).transform((d) => ({
|
|
1184
|
+
min: d.min,
|
|
1185
|
+
max: d.max,
|
|
1186
|
+
enable_readable_secondaries: d.enableReadableSecondaries
|
|
1187
|
+
}));
|
|
1188
|
+
const marshalEndpointGroupStatusSchema = z.object({
|
|
1189
|
+
min: z.number().optional(),
|
|
1190
|
+
max: z.number().optional(),
|
|
1191
|
+
enableReadableSecondaries: z.boolean().optional()
|
|
1192
|
+
}).transform((d) => ({
|
|
1193
|
+
min: d.min,
|
|
1194
|
+
max: d.max,
|
|
1195
|
+
enable_readable_secondaries: d.enableReadableSecondaries
|
|
1196
|
+
}));
|
|
1197
|
+
const marshalEndpointHostsSchema = z.object({
|
|
1198
|
+
host: z.string().optional(),
|
|
1199
|
+
readOnlyHost: z.string().optional(),
|
|
1200
|
+
readWritePooledHost: z.string().optional(),
|
|
1201
|
+
readOnlyPooledHost: z.string().optional()
|
|
1202
|
+
}).transform((d) => ({
|
|
1203
|
+
host: d.host,
|
|
1204
|
+
read_only_host: d.readOnlyHost,
|
|
1205
|
+
read_write_pooled_host: d.readWritePooledHost,
|
|
1206
|
+
read_only_pooled_host: d.readOnlyPooledHost
|
|
1207
|
+
}));
|
|
1208
|
+
const marshalEndpointSettingsSchema = z.object({ pgSettings: z.record(z.string(), z.string()).optional() }).transform((d) => ({ pg_settings: d.pgSettings }));
|
|
1209
|
+
const marshalEndpointSpecSchema = z.object({
|
|
1210
|
+
endpointType: z.string().optional(),
|
|
1211
|
+
autoscalingLimitMinCu: z.number().optional(),
|
|
1212
|
+
autoscalingLimitMaxCu: z.number().optional(),
|
|
1213
|
+
disabled: z.boolean().optional(),
|
|
1214
|
+
suspension: z.discriminatedUnion("$case", [z.object({
|
|
1215
|
+
$case: z.literal("suspendTimeoutDuration"),
|
|
1216
|
+
suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
|
|
1217
|
+
}), z.object({
|
|
1218
|
+
$case: z.literal("noSuspension"),
|
|
1219
|
+
noSuspension: z.boolean()
|
|
1220
|
+
})]).optional(),
|
|
1221
|
+
settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
|
|
1222
|
+
group: z.lazy(() => marshalEndpointGroupSpecSchema).optional()
|
|
1223
|
+
}).transform((d) => ({
|
|
1224
|
+
endpoint_type: d.endpointType,
|
|
1225
|
+
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
1226
|
+
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
1227
|
+
disabled: d.disabled,
|
|
1228
|
+
...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
|
|
1229
|
+
...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension },
|
|
1230
|
+
settings: d.settings,
|
|
1231
|
+
group: d.group
|
|
1232
|
+
}));
|
|
1233
|
+
const marshalEndpointStatusSchema = z.object({
|
|
1234
|
+
endpointType: z.string().optional(),
|
|
1235
|
+
hosts: z.lazy(() => marshalEndpointHostsSchema).optional(),
|
|
1236
|
+
lastActiveTime: z.any().transform((d) => d.toString()).optional(),
|
|
1237
|
+
autoscalingLimitMinCu: z.number().optional(),
|
|
1238
|
+
autoscalingLimitMaxCu: z.number().optional(),
|
|
1239
|
+
currentState: z.string().optional(),
|
|
1240
|
+
pendingState: z.string().optional(),
|
|
1241
|
+
disabled: z.boolean().optional(),
|
|
1242
|
+
suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1243
|
+
settings: z.lazy(() => marshalEndpointSettingsSchema).optional(),
|
|
1244
|
+
group: z.lazy(() => marshalEndpointGroupStatusSchema).optional(),
|
|
1245
|
+
endpointId: z.string().optional()
|
|
1246
|
+
}).transform((d) => ({
|
|
1247
|
+
endpoint_type: d.endpointType,
|
|
1248
|
+
hosts: d.hosts,
|
|
1249
|
+
last_active_time: d.lastActiveTime,
|
|
1250
|
+
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
1251
|
+
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
1252
|
+
current_state: d.currentState,
|
|
1253
|
+
pending_state: d.pendingState,
|
|
1254
|
+
disabled: d.disabled,
|
|
1255
|
+
suspend_timeout_duration: d.suspendTimeoutDuration,
|
|
1256
|
+
settings: d.settings,
|
|
1257
|
+
group: d.group,
|
|
1258
|
+
endpoint_id: d.endpointId
|
|
1259
|
+
}));
|
|
1260
|
+
const marshalGenerateDatabaseCredentialRequestSchema = z.object({
|
|
1261
|
+
claims: z.array(z.lazy(() => marshalRequestedClaimsSchema)).optional(),
|
|
1262
|
+
endpoint: z.string().optional(),
|
|
1263
|
+
expiration: z.discriminatedUnion("$case", [z.object({
|
|
1264
|
+
$case: z.literal("ttl"),
|
|
1265
|
+
ttl: z.any().transform((d) => d.toString().slice(2).toLowerCase())
|
|
1266
|
+
}), z.object({
|
|
1267
|
+
$case: z.literal("expireTime"),
|
|
1268
|
+
expireTime: z.any().transform((d) => d.toString())
|
|
1269
|
+
})]).optional()
|
|
1270
|
+
}).transform((d) => ({
|
|
1271
|
+
claims: d.claims,
|
|
1272
|
+
endpoint: d.endpoint,
|
|
1273
|
+
...d.expiration?.$case === "ttl" && { ttl: d.expiration.ttl },
|
|
1274
|
+
...d.expiration?.$case === "expireTime" && { expire_time: d.expiration.expireTime }
|
|
1275
|
+
}));
|
|
1276
|
+
const marshalInitialBranchSpecSchema = z.object({ isProtected: z.boolean().optional() }).transform((d) => ({ is_protected: d.isProtected }));
|
|
1277
|
+
const marshalInitialEndpointSpecSchema = z.object({
|
|
1278
|
+
group: z.lazy(() => marshalEndpointGroupSpecSchema).optional(),
|
|
1279
|
+
autoscalingLimitMinCu: z.number().optional(),
|
|
1280
|
+
autoscalingLimitMaxCu: z.number().optional(),
|
|
1281
|
+
suspension: z.discriminatedUnion("$case", [z.object({
|
|
1282
|
+
$case: z.literal("suspendTimeoutDuration"),
|
|
1283
|
+
suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
|
|
1284
|
+
}), z.object({
|
|
1285
|
+
$case: z.literal("noSuspension"),
|
|
1286
|
+
noSuspension: z.boolean()
|
|
1287
|
+
})]).optional()
|
|
1288
|
+
}).transform((d) => ({
|
|
1289
|
+
group: d.group,
|
|
1290
|
+
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
1291
|
+
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
1292
|
+
...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
|
|
1293
|
+
...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension }
|
|
1294
|
+
}));
|
|
1295
|
+
const marshalNewPipelineSpecSchema = z.object({
|
|
1296
|
+
storageCatalog: z.string().optional(),
|
|
1297
|
+
storageSchema: z.string().optional(),
|
|
1298
|
+
budgetPolicyId: z.string().optional()
|
|
1299
|
+
}).transform((d) => ({
|
|
1300
|
+
storage_catalog: d.storageCatalog,
|
|
1301
|
+
storage_schema: d.storageSchema,
|
|
1302
|
+
budget_policy_id: d.budgetPolicyId
|
|
1303
|
+
}));
|
|
1304
|
+
const marshalProjectSchema = z.object({
|
|
1305
|
+
name: z.string().optional(),
|
|
1306
|
+
uid: z.string().optional(),
|
|
1307
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1308
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1309
|
+
spec: z.lazy(() => marshalProjectSpecSchema).optional(),
|
|
1310
|
+
status: z.lazy(() => marshalProjectStatusSchema).optional(),
|
|
1311
|
+
initialEndpointSpec: z.lazy(() => marshalInitialEndpointSpecSchema).optional(),
|
|
1312
|
+
deleteTime: z.any().transform((d) => d.toString()).optional(),
|
|
1313
|
+
purgeTime: z.any().transform((d) => d.toString()).optional(),
|
|
1314
|
+
initialBranchSpec: z.lazy(() => marshalInitialBranchSpecSchema).optional(),
|
|
1315
|
+
projectId: z.string().optional()
|
|
1316
|
+
}).transform((d) => ({
|
|
1317
|
+
name: d.name,
|
|
1318
|
+
uid: d.uid,
|
|
1319
|
+
create_time: d.createTime,
|
|
1320
|
+
update_time: d.updateTime,
|
|
1321
|
+
spec: d.spec,
|
|
1322
|
+
status: d.status,
|
|
1323
|
+
initial_endpoint_spec: d.initialEndpointSpec,
|
|
1324
|
+
delete_time: d.deleteTime,
|
|
1325
|
+
purge_time: d.purgeTime,
|
|
1326
|
+
initial_branch_spec: d.initialBranchSpec,
|
|
1327
|
+
project_id: d.projectId
|
|
1328
|
+
}));
|
|
1329
|
+
const marshalProjectCustomTagSchema = z.object({
|
|
1330
|
+
key: z.string().optional(),
|
|
1331
|
+
value: z.string().optional()
|
|
1332
|
+
}).transform((d) => ({
|
|
1333
|
+
key: d.key,
|
|
1334
|
+
value: d.value
|
|
1335
|
+
}));
|
|
1336
|
+
const marshalProjectDefaultEndpointSettingsSchema = z.object({
|
|
1337
|
+
autoscalingLimitMinCu: z.number().optional(),
|
|
1338
|
+
autoscalingLimitMaxCu: z.number().optional(),
|
|
1339
|
+
suspension: z.discriminatedUnion("$case", [z.object({
|
|
1340
|
+
$case: z.literal("suspendTimeoutDuration"),
|
|
1341
|
+
suspendTimeoutDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase())
|
|
1342
|
+
}), z.object({
|
|
1343
|
+
$case: z.literal("noSuspension"),
|
|
1344
|
+
noSuspension: z.boolean()
|
|
1345
|
+
})]).optional(),
|
|
1346
|
+
pgSettings: z.record(z.string(), z.string()).optional()
|
|
1347
|
+
}).transform((d) => ({
|
|
1348
|
+
autoscaling_limit_min_cu: d.autoscalingLimitMinCu,
|
|
1349
|
+
autoscaling_limit_max_cu: d.autoscalingLimitMaxCu,
|
|
1350
|
+
...d.suspension?.$case === "suspendTimeoutDuration" && { suspend_timeout_duration: d.suspension.suspendTimeoutDuration },
|
|
1351
|
+
...d.suspension?.$case === "noSuspension" && { no_suspension: d.suspension.noSuspension },
|
|
1352
|
+
pg_settings: d.pgSettings
|
|
1353
|
+
}));
|
|
1354
|
+
const marshalProjectSpecSchema = z.object({
|
|
1355
|
+
displayName: z.string().optional(),
|
|
1356
|
+
pgVersion: z.number().optional(),
|
|
1357
|
+
historyRetentionDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1358
|
+
defaultEndpointSettings: z.lazy(() => marshalProjectDefaultEndpointSettingsSchema).optional(),
|
|
1359
|
+
budgetPolicyId: z.string().optional(),
|
|
1360
|
+
customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
|
|
1361
|
+
enablePgNativeLogin: z.boolean().optional(),
|
|
1362
|
+
defaultBranch: z.string().optional()
|
|
1363
|
+
}).transform((d) => ({
|
|
1364
|
+
display_name: d.displayName,
|
|
1365
|
+
pg_version: d.pgVersion,
|
|
1366
|
+
history_retention_duration: d.historyRetentionDuration,
|
|
1367
|
+
default_endpoint_settings: d.defaultEndpointSettings,
|
|
1368
|
+
budget_policy_id: d.budgetPolicyId,
|
|
1369
|
+
custom_tags: d.customTags,
|
|
1370
|
+
enable_pg_native_login: d.enablePgNativeLogin,
|
|
1371
|
+
default_branch: d.defaultBranch
|
|
1372
|
+
}));
|
|
1373
|
+
const marshalProjectStatusSchema = z.object({
|
|
1374
|
+
displayName: z.string().optional(),
|
|
1375
|
+
pgVersion: z.number().optional(),
|
|
1376
|
+
historyRetentionDuration: z.any().transform((d) => d.toString().slice(2).toLowerCase()).optional(),
|
|
1377
|
+
defaultEndpointSettings: z.lazy(() => marshalProjectDefaultEndpointSettingsSchema).optional(),
|
|
1378
|
+
branchLogicalSizeLimitBytes: z.bigint().optional(),
|
|
1379
|
+
syntheticStorageSizeBytes: z.bigint().optional(),
|
|
1380
|
+
computeLastActiveTime: z.any().transform((d) => d.toString()).optional(),
|
|
1381
|
+
budgetPolicyId: z.string().optional(),
|
|
1382
|
+
customTags: z.array(z.lazy(() => marshalProjectCustomTagSchema)).optional(),
|
|
1383
|
+
owner: z.string().optional(),
|
|
1384
|
+
enablePgNativeLogin: z.boolean().optional(),
|
|
1385
|
+
defaultBranch: z.string().optional(),
|
|
1386
|
+
projectId: z.string().optional()
|
|
1387
|
+
}).transform((d) => ({
|
|
1388
|
+
display_name: d.displayName,
|
|
1389
|
+
pg_version: d.pgVersion,
|
|
1390
|
+
history_retention_duration: d.historyRetentionDuration,
|
|
1391
|
+
default_endpoint_settings: d.defaultEndpointSettings,
|
|
1392
|
+
branch_logical_size_limit_bytes: d.branchLogicalSizeLimitBytes,
|
|
1393
|
+
synthetic_storage_size_bytes: d.syntheticStorageSizeBytes,
|
|
1394
|
+
compute_last_active_time: d.computeLastActiveTime,
|
|
1395
|
+
budget_policy_id: d.budgetPolicyId,
|
|
1396
|
+
custom_tags: d.customTags,
|
|
1397
|
+
owner: d.owner,
|
|
1398
|
+
enable_pg_native_login: d.enablePgNativeLogin,
|
|
1399
|
+
default_branch: d.defaultBranch,
|
|
1400
|
+
project_id: d.projectId
|
|
1401
|
+
}));
|
|
1402
|
+
const marshalRequestedClaimsSchema = z.object({
|
|
1403
|
+
permissionSet: z.string().optional(),
|
|
1404
|
+
resources: z.array(z.lazy(() => marshalRequestedResourceSchema)).optional()
|
|
1405
|
+
}).transform((d) => ({
|
|
1406
|
+
permission_set: d.permissionSet,
|
|
1407
|
+
resources: d.resources
|
|
1408
|
+
}));
|
|
1409
|
+
const marshalRequestedResourceSchema = z.object({ resourceName: z.discriminatedUnion("$case", [z.object({
|
|
1410
|
+
$case: z.literal("tableName"),
|
|
1411
|
+
tableName: z.string()
|
|
1412
|
+
})]).optional() }).transform((d) => ({ ...d.resourceName?.$case === "tableName" && { table_name: d.resourceName.tableName } }));
|
|
1413
|
+
const marshalRoleSchema = z.object({
|
|
1414
|
+
name: z.string().optional(),
|
|
1415
|
+
parent: z.string().optional(),
|
|
1416
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1417
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
1418
|
+
spec: z.lazy(() => marshalRole_RoleSpecSchema).optional(),
|
|
1419
|
+
status: z.lazy(() => marshalRole_RoleStatusSchema).optional(),
|
|
1420
|
+
roleId: z.string().optional()
|
|
1421
|
+
}).transform((d) => ({
|
|
1422
|
+
name: d.name,
|
|
1423
|
+
parent: d.parent,
|
|
1424
|
+
create_time: d.createTime,
|
|
1425
|
+
update_time: d.updateTime,
|
|
1426
|
+
spec: d.spec,
|
|
1427
|
+
status: d.status,
|
|
1428
|
+
role_id: d.roleId
|
|
1429
|
+
}));
|
|
1430
|
+
const marshalRole_AttributesSchema = z.object({
|
|
1431
|
+
createdb: z.boolean().optional(),
|
|
1432
|
+
createrole: z.boolean().optional(),
|
|
1433
|
+
bypassrls: z.boolean().optional()
|
|
1434
|
+
}).transform((d) => ({
|
|
1435
|
+
createdb: d.createdb,
|
|
1436
|
+
createrole: d.createrole,
|
|
1437
|
+
bypassrls: d.bypassrls
|
|
1438
|
+
}));
|
|
1439
|
+
const marshalRole_RoleSpecSchema = z.object({
|
|
1440
|
+
membershipRoles: z.array(z.string()).optional(),
|
|
1441
|
+
identityType: z.string().optional(),
|
|
1442
|
+
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
1443
|
+
authMethod: z.string().optional(),
|
|
1444
|
+
postgresRole: z.string().optional()
|
|
1445
|
+
}).transform((d) => ({
|
|
1446
|
+
membership_roles: d.membershipRoles,
|
|
1447
|
+
identity_type: d.identityType,
|
|
1448
|
+
attributes: d.attributes,
|
|
1449
|
+
auth_method: d.authMethod,
|
|
1450
|
+
postgres_role: d.postgresRole
|
|
1451
|
+
}));
|
|
1452
|
+
const marshalRole_RoleStatusSchema = z.object({
|
|
1453
|
+
membershipRoles: z.array(z.string()).optional(),
|
|
1454
|
+
identityType: z.string().optional(),
|
|
1455
|
+
attributes: z.lazy(() => marshalRole_AttributesSchema).optional(),
|
|
1456
|
+
authMethod: z.string().optional(),
|
|
1457
|
+
postgresRole: z.string().optional(),
|
|
1458
|
+
roleId: z.string().optional()
|
|
1459
|
+
}).transform((d) => ({
|
|
1460
|
+
membership_roles: d.membershipRoles,
|
|
1461
|
+
identity_type: d.identityType,
|
|
1462
|
+
attributes: d.attributes,
|
|
1463
|
+
auth_method: d.authMethod,
|
|
1464
|
+
postgres_role: d.postgresRole,
|
|
1465
|
+
role_id: d.roleId
|
|
1466
|
+
}));
|
|
1467
|
+
const marshalSyncedTableSchema = z.object({
|
|
1468
|
+
name: z.string().optional(),
|
|
1469
|
+
uid: z.string().optional(),
|
|
1470
|
+
spec: z.lazy(() => marshalSyncedTable_SyncedTableSpecSchema).optional(),
|
|
1471
|
+
status: z.lazy(() => marshalSyncedTable_SyncedTableStatusSchema).optional(),
|
|
1472
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
1473
|
+
syncedTableId: z.string().optional()
|
|
1474
|
+
}).transform((d) => ({
|
|
1475
|
+
name: d.name,
|
|
1476
|
+
uid: d.uid,
|
|
1477
|
+
spec: d.spec,
|
|
1478
|
+
status: d.status,
|
|
1479
|
+
create_time: d.createTime,
|
|
1480
|
+
synced_table_id: d.syncedTableId
|
|
1481
|
+
}));
|
|
1482
|
+
const marshalSyncedTable_SyncedTableSpecSchema = z.object({
|
|
1483
|
+
postgresDatabase: z.string().optional(),
|
|
1484
|
+
branch: z.string().optional(),
|
|
1485
|
+
schedulingPolicy: z.string().optional(),
|
|
1486
|
+
sourceTableFullName: z.string().optional(),
|
|
1487
|
+
primaryKeyColumns: z.array(z.string()).optional(),
|
|
1488
|
+
timeseriesKey: z.string().optional(),
|
|
1489
|
+
existingPipelineId: z.string().optional(),
|
|
1490
|
+
createDatabaseObjectsIfMissing: z.boolean().optional(),
|
|
1491
|
+
newPipelineSpec: z.lazy(() => marshalNewPipelineSpecSchema).optional(),
|
|
1492
|
+
acceleratedSync: z.boolean().optional(),
|
|
1493
|
+
typeOverrides: z.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema)).optional(),
|
|
1494
|
+
extraColumns: z.array(z.lazy(() => marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema)).optional()
|
|
1495
|
+
}).transform((d) => ({
|
|
1496
|
+
postgres_database: d.postgresDatabase,
|
|
1497
|
+
branch: d.branch,
|
|
1498
|
+
scheduling_policy: d.schedulingPolicy,
|
|
1499
|
+
source_table_full_name: d.sourceTableFullName,
|
|
1500
|
+
primary_key_columns: d.primaryKeyColumns,
|
|
1501
|
+
timeseries_key: d.timeseriesKey,
|
|
1502
|
+
existing_pipeline_id: d.existingPipelineId,
|
|
1503
|
+
create_database_objects_if_missing: d.createDatabaseObjectsIfMissing,
|
|
1504
|
+
new_pipeline_spec: d.newPipelineSpec,
|
|
1505
|
+
accelerated_sync: d.acceleratedSync,
|
|
1506
|
+
type_overrides: d.typeOverrides,
|
|
1507
|
+
extra_columns: d.extraColumns
|
|
1508
|
+
}));
|
|
1509
|
+
const marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema = z.object({
|
|
1510
|
+
columnName: z.string().optional(),
|
|
1511
|
+
columnType: z.string().optional(),
|
|
1512
|
+
maintenance: z.string().optional(),
|
|
1513
|
+
compute: z.string().optional()
|
|
1514
|
+
}).transform((d) => ({
|
|
1515
|
+
column_name: d.columnName,
|
|
1516
|
+
column_type: d.columnType,
|
|
1517
|
+
maintenance: d.maintenance,
|
|
1518
|
+
compute: d.compute
|
|
1519
|
+
}));
|
|
1520
|
+
const marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema = z.object({
|
|
1521
|
+
columnName: z.string().optional(),
|
|
1522
|
+
pgType: z.string().optional(),
|
|
1523
|
+
size: z.number().optional()
|
|
1524
|
+
}).transform((d) => ({
|
|
1525
|
+
column_name: d.columnName,
|
|
1526
|
+
pg_type: d.pgType,
|
|
1527
|
+
size: d.size
|
|
1528
|
+
}));
|
|
1529
|
+
const marshalSyncedTable_SyncedTableStatusSchema = z.object({
|
|
1530
|
+
message: z.string().optional(),
|
|
1531
|
+
detailedState: z.string().optional(),
|
|
1532
|
+
lastSync: z.lazy(() => marshalSyncedTablePositionSchema).optional(),
|
|
1533
|
+
ongoingSyncProgress: z.lazy(() => marshalSyncedTablePipelineProgressSchema).optional(),
|
|
1534
|
+
provisioningPhase: z.string().optional(),
|
|
1535
|
+
lastProcessedCommitVersion: z.bigint().optional(),
|
|
1536
|
+
lastSyncTime: z.any().transform((d) => d.toString()).optional(),
|
|
1537
|
+
pipelineId: z.string().optional(),
|
|
1538
|
+
unityCatalogProvisioningState: z.string().optional(),
|
|
1539
|
+
project: z.string().optional()
|
|
1540
|
+
}).transform((d) => ({
|
|
1541
|
+
message: d.message,
|
|
1542
|
+
detailed_state: d.detailedState,
|
|
1543
|
+
last_sync: d.lastSync,
|
|
1544
|
+
ongoing_sync_progress: d.ongoingSyncProgress,
|
|
1545
|
+
provisioning_phase: d.provisioningPhase,
|
|
1546
|
+
last_processed_commit_version: d.lastProcessedCommitVersion,
|
|
1547
|
+
last_sync_time: d.lastSyncTime,
|
|
1548
|
+
pipeline_id: d.pipelineId,
|
|
1549
|
+
unity_catalog_provisioning_state: d.unityCatalogProvisioningState,
|
|
1550
|
+
project: d.project
|
|
1551
|
+
}));
|
|
1552
|
+
const marshalSyncedTablePipelineProgressSchema = z.object({
|
|
1553
|
+
latestVersionCurrentlyProcessing: z.bigint().optional(),
|
|
1554
|
+
syncedRowCount: z.bigint().optional(),
|
|
1555
|
+
totalRowCount: z.bigint().optional(),
|
|
1556
|
+
syncProgressCompletion: z.number().optional(),
|
|
1557
|
+
estimatedCompletionTimeSeconds: z.number().optional()
|
|
1558
|
+
}).transform((d) => ({
|
|
1559
|
+
latest_version_currently_processing: d.latestVersionCurrentlyProcessing,
|
|
1560
|
+
synced_row_count: d.syncedRowCount,
|
|
1561
|
+
total_row_count: d.totalRowCount,
|
|
1562
|
+
sync_progress_completion: d.syncProgressCompletion,
|
|
1563
|
+
estimated_completion_time_seconds: d.estimatedCompletionTimeSeconds
|
|
1564
|
+
}));
|
|
1565
|
+
const marshalSyncedTablePositionSchema = z.object({
|
|
1566
|
+
syncStartTime: z.any().transform((d) => d.toString()).optional(),
|
|
1567
|
+
syncEndTime: z.any().transform((d) => d.toString()).optional(),
|
|
1568
|
+
sourceSyncInfo: z.discriminatedUnion("$case", [z.object({
|
|
1569
|
+
$case: z.literal("deltaTableSyncInfo"),
|
|
1570
|
+
deltaTableSyncInfo: z.lazy(() => marshalDeltaTableSyncInfoSchema)
|
|
1571
|
+
})]).optional()
|
|
1572
|
+
}).transform((d) => ({
|
|
1573
|
+
sync_start_time: d.syncStartTime,
|
|
1574
|
+
sync_end_time: d.syncEndTime,
|
|
1575
|
+
...d.sourceSyncInfo?.$case === "deltaTableSyncInfo" && { delta_table_sync_info: d.sourceSyncInfo.deltaTableSyncInfo }
|
|
1576
|
+
}));
|
|
1577
|
+
const marshalUndeleteBranchRequestSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
1578
|
+
const marshalUndeleteProjectRequestSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
2691
1579
|
const branchFieldMaskSchema = {
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
1580
|
+
branchId: { wire: "branch_id" },
|
|
1581
|
+
createTime: { wire: "create_time" },
|
|
1582
|
+
name: { wire: "name" },
|
|
1583
|
+
parent: { wire: "parent" },
|
|
1584
|
+
spec: {
|
|
1585
|
+
wire: "spec",
|
|
1586
|
+
children: () => branchSpecFieldMaskSchema
|
|
1587
|
+
},
|
|
1588
|
+
status: {
|
|
1589
|
+
wire: "status",
|
|
1590
|
+
children: () => branchStatusFieldMaskSchema
|
|
1591
|
+
},
|
|
1592
|
+
uid: { wire: "uid" },
|
|
1593
|
+
updateTime: { wire: "update_time" }
|
|
2700
1594
|
};
|
|
2701
|
-
|
|
2702
|
-
|
|
1595
|
+
function branchFieldMask(...paths) {
|
|
1596
|
+
return FieldMask.build(paths, branchFieldMaskSchema);
|
|
2703
1597
|
}
|
|
2704
1598
|
const branchSpecFieldMaskSchema = {
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
1599
|
+
expireTime: { wire: "expire_time" },
|
|
1600
|
+
isProtected: { wire: "is_protected" },
|
|
1601
|
+
noExpiry: { wire: "no_expiry" },
|
|
1602
|
+
sourceBranch: { wire: "source_branch" },
|
|
1603
|
+
sourceBranchLsn: { wire: "source_branch_lsn" },
|
|
1604
|
+
sourceBranchTime: { wire: "source_branch_time" },
|
|
1605
|
+
ttl: { wire: "ttl" }
|
|
2712
1606
|
};
|
|
2713
1607
|
const branchStatusFieldMaskSchema = {
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
1608
|
+
branchId: { wire: "branch_id" },
|
|
1609
|
+
currentState: { wire: "current_state" },
|
|
1610
|
+
default: { wire: "default" },
|
|
1611
|
+
deleteTime: { wire: "delete_time" },
|
|
1612
|
+
expireTime: { wire: "expire_time" },
|
|
1613
|
+
isProtected: { wire: "is_protected" },
|
|
1614
|
+
logicalSizeBytes: { wire: "logical_size_bytes" },
|
|
1615
|
+
pendingState: { wire: "pending_state" },
|
|
1616
|
+
purgeTime: { wire: "purge_time" },
|
|
1617
|
+
sourceBranch: { wire: "source_branch" },
|
|
1618
|
+
sourceBranchLsn: { wire: "source_branch_lsn" },
|
|
1619
|
+
sourceBranchTime: { wire: "source_branch_time" },
|
|
1620
|
+
stateChangeTime: { wire: "state_change_time" }
|
|
2727
1621
|
};
|
|
2728
1622
|
const dataApiFieldMaskSchema = {
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
1623
|
+
createTime: { wire: "create_time" },
|
|
1624
|
+
name: { wire: "name" },
|
|
1625
|
+
parent: { wire: "parent" },
|
|
1626
|
+
spec: {
|
|
1627
|
+
wire: "spec",
|
|
1628
|
+
children: () => dataApi_DataApiSpecFieldMaskSchema
|
|
1629
|
+
},
|
|
1630
|
+
status: {
|
|
1631
|
+
wire: "status",
|
|
1632
|
+
children: () => dataApi_DataApiStatusFieldMaskSchema
|
|
1633
|
+
},
|
|
1634
|
+
updateTime: { wire: "update_time" }
|
|
2738
1635
|
};
|
|
2739
|
-
|
|
2740
|
-
|
|
1636
|
+
function dataApiFieldMask(...paths) {
|
|
1637
|
+
return FieldMask.build(paths, dataApiFieldMaskSchema);
|
|
2741
1638
|
}
|
|
2742
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2743
1639
|
const dataApi_DataApiSpecFieldMaskSchema = {
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
1640
|
+
dbAggregatesEnabled: { wire: "db_aggregates_enabled" },
|
|
1641
|
+
dbExtraSearchPath: { wire: "db_extra_search_path" },
|
|
1642
|
+
dbMaxRows: { wire: "db_max_rows" },
|
|
1643
|
+
dbSchemas: { wire: "db_schemas" },
|
|
1644
|
+
jwtCacheMaxLifetime: { wire: "jwt_cache_max_lifetime" },
|
|
1645
|
+
jwtRoleClaimKey: { wire: "jwt_role_claim_key" },
|
|
1646
|
+
openapiMode: { wire: "openapi_mode" },
|
|
1647
|
+
serverCorsAllowedOrigins: { wire: "server_cors_allowed_origins" },
|
|
1648
|
+
serverTimingEnabled: { wire: "server_timing_enabled" }
|
|
2753
1649
|
};
|
|
2754
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2755
1650
|
const dataApi_DataApiStatusFieldMaskSchema = {
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
1651
|
+
availableSchemas: { wire: "available_schemas" },
|
|
1652
|
+
dbAggregatesEnabled: { wire: "db_aggregates_enabled" },
|
|
1653
|
+
dbExtraSearchPath: { wire: "db_extra_search_path" },
|
|
1654
|
+
dbMaxRows: { wire: "db_max_rows" },
|
|
1655
|
+
dbSchemas: { wire: "db_schemas" },
|
|
1656
|
+
jwtCacheMaxLifetime: { wire: "jwt_cache_max_lifetime" },
|
|
1657
|
+
jwtRoleClaimKey: { wire: "jwt_role_claim_key" },
|
|
1658
|
+
openapiMode: { wire: "openapi_mode" },
|
|
1659
|
+
serverCorsAllowedOrigins: { wire: "server_cors_allowed_origins" },
|
|
1660
|
+
serverTimingEnabled: { wire: "server_timing_enabled" },
|
|
1661
|
+
url: { wire: "url" }
|
|
2767
1662
|
};
|
|
2768
1663
|
const databaseFieldMaskSchema = {
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
1664
|
+
createTime: { wire: "create_time" },
|
|
1665
|
+
databaseId: { wire: "database_id" },
|
|
1666
|
+
name: { wire: "name" },
|
|
1667
|
+
parent: { wire: "parent" },
|
|
1668
|
+
spec: {
|
|
1669
|
+
wire: "spec",
|
|
1670
|
+
children: () => database_DatabaseSpecFieldMaskSchema
|
|
1671
|
+
},
|
|
1672
|
+
status: {
|
|
1673
|
+
wire: "status",
|
|
1674
|
+
children: () => database_DatabaseStatusFieldMaskSchema
|
|
1675
|
+
},
|
|
1676
|
+
updateTime: { wire: "update_time" }
|
|
2779
1677
|
};
|
|
2780
|
-
|
|
2781
|
-
|
|
1678
|
+
function databaseFieldMask(...paths) {
|
|
1679
|
+
return FieldMask.build(paths, databaseFieldMaskSchema);
|
|
2782
1680
|
}
|
|
2783
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2784
1681
|
const database_DatabaseSpecFieldMaskSchema = {
|
|
2785
|
-
|
|
2786
|
-
|
|
1682
|
+
postgresDatabase: { wire: "postgres_database" },
|
|
1683
|
+
role: { wire: "role" }
|
|
2787
1684
|
};
|
|
2788
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2789
1685
|
const database_DatabaseStatusFieldMaskSchema = {
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
1686
|
+
databaseId: { wire: "database_id" },
|
|
1687
|
+
postgresDatabase: { wire: "postgres_database" },
|
|
1688
|
+
role: { wire: "role" }
|
|
2793
1689
|
};
|
|
2794
1690
|
const endpointFieldMaskSchema = {
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
1691
|
+
createTime: { wire: "create_time" },
|
|
1692
|
+
endpointId: { wire: "endpoint_id" },
|
|
1693
|
+
name: { wire: "name" },
|
|
1694
|
+
parent: { wire: "parent" },
|
|
1695
|
+
spec: {
|
|
1696
|
+
wire: "spec",
|
|
1697
|
+
children: () => endpointSpecFieldMaskSchema
|
|
1698
|
+
},
|
|
1699
|
+
status: {
|
|
1700
|
+
wire: "status",
|
|
1701
|
+
children: () => endpointStatusFieldMaskSchema
|
|
1702
|
+
},
|
|
1703
|
+
uid: { wire: "uid" },
|
|
1704
|
+
updateTime: { wire: "update_time" }
|
|
2803
1705
|
};
|
|
2804
|
-
|
|
2805
|
-
|
|
1706
|
+
function endpointFieldMask(...paths) {
|
|
1707
|
+
return FieldMask.build(paths, endpointFieldMaskSchema);
|
|
2806
1708
|
}
|
|
2807
1709
|
const endpointGroupSpecFieldMaskSchema = {
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
1710
|
+
enableReadableSecondaries: { wire: "enable_readable_secondaries" },
|
|
1711
|
+
max: { wire: "max" },
|
|
1712
|
+
min: { wire: "min" }
|
|
2811
1713
|
};
|
|
2812
1714
|
const endpointGroupStatusFieldMaskSchema = {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
1715
|
+
enableReadableSecondaries: { wire: "enable_readable_secondaries" },
|
|
1716
|
+
max: { wire: "max" },
|
|
1717
|
+
min: { wire: "min" }
|
|
2816
1718
|
};
|
|
2817
1719
|
const endpointHostsFieldMaskSchema = {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
};
|
|
2823
|
-
const endpointSettingsFieldMaskSchema = {
|
|
2824
|
-
pgSettings: { wire: 'pg_settings' },
|
|
1720
|
+
host: { wire: "host" },
|
|
1721
|
+
readOnlyHost: { wire: "read_only_host" },
|
|
1722
|
+
readOnlyPooledHost: { wire: "read_only_pooled_host" },
|
|
1723
|
+
readWritePooledHost: { wire: "read_write_pooled_host" }
|
|
2825
1724
|
};
|
|
1725
|
+
const endpointSettingsFieldMaskSchema = { pgSettings: { wire: "pg_settings" } };
|
|
2826
1726
|
const endpointSpecFieldMaskSchema = {
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
1727
|
+
autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
|
|
1728
|
+
autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
|
|
1729
|
+
disabled: { wire: "disabled" },
|
|
1730
|
+
endpointType: { wire: "endpoint_type" },
|
|
1731
|
+
group: {
|
|
1732
|
+
wire: "group",
|
|
1733
|
+
children: () => endpointGroupSpecFieldMaskSchema
|
|
1734
|
+
},
|
|
1735
|
+
noSuspension: { wire: "no_suspension" },
|
|
1736
|
+
settings: {
|
|
1737
|
+
wire: "settings",
|
|
1738
|
+
children: () => endpointSettingsFieldMaskSchema
|
|
1739
|
+
},
|
|
1740
|
+
suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
|
|
2835
1741
|
};
|
|
2836
1742
|
const endpointStatusFieldMaskSchema = {
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
1743
|
+
autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
|
|
1744
|
+
autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
|
|
1745
|
+
currentState: { wire: "current_state" },
|
|
1746
|
+
disabled: { wire: "disabled" },
|
|
1747
|
+
endpointId: { wire: "endpoint_id" },
|
|
1748
|
+
endpointType: { wire: "endpoint_type" },
|
|
1749
|
+
group: {
|
|
1750
|
+
wire: "group",
|
|
1751
|
+
children: () => endpointGroupStatusFieldMaskSchema
|
|
1752
|
+
},
|
|
1753
|
+
hosts: {
|
|
1754
|
+
wire: "hosts",
|
|
1755
|
+
children: () => endpointHostsFieldMaskSchema
|
|
1756
|
+
},
|
|
1757
|
+
lastActiveTime: { wire: "last_active_time" },
|
|
1758
|
+
pendingState: { wire: "pending_state" },
|
|
1759
|
+
settings: {
|
|
1760
|
+
wire: "settings",
|
|
1761
|
+
children: () => endpointSettingsFieldMaskSchema
|
|
1762
|
+
},
|
|
1763
|
+
suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
|
|
2852
1764
|
};
|
|
1765
|
+
const initialBranchSpecFieldMaskSchema = { isProtected: { wire: "is_protected" } };
|
|
2853
1766
|
const initialEndpointSpecFieldMaskSchema = {
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
1767
|
+
autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
|
|
1768
|
+
autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
|
|
1769
|
+
group: {
|
|
1770
|
+
wire: "group",
|
|
1771
|
+
children: () => endpointGroupSpecFieldMaskSchema
|
|
1772
|
+
},
|
|
1773
|
+
noSuspension: { wire: "no_suspension" },
|
|
1774
|
+
suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
|
|
2859
1775
|
};
|
|
2860
1776
|
const projectFieldMaskSchema = {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
1777
|
+
createTime: { wire: "create_time" },
|
|
1778
|
+
deleteTime: { wire: "delete_time" },
|
|
1779
|
+
initialBranchSpec: {
|
|
1780
|
+
wire: "initial_branch_spec",
|
|
1781
|
+
children: () => initialBranchSpecFieldMaskSchema
|
|
1782
|
+
},
|
|
1783
|
+
initialEndpointSpec: {
|
|
1784
|
+
wire: "initial_endpoint_spec",
|
|
1785
|
+
children: () => initialEndpointSpecFieldMaskSchema
|
|
1786
|
+
},
|
|
1787
|
+
name: { wire: "name" },
|
|
1788
|
+
projectId: { wire: "project_id" },
|
|
1789
|
+
purgeTime: { wire: "purge_time" },
|
|
1790
|
+
spec: {
|
|
1791
|
+
wire: "spec",
|
|
1792
|
+
children: () => projectSpecFieldMaskSchema
|
|
1793
|
+
},
|
|
1794
|
+
status: {
|
|
1795
|
+
wire: "status",
|
|
1796
|
+
children: () => projectStatusFieldMaskSchema
|
|
1797
|
+
},
|
|
1798
|
+
uid: { wire: "uid" },
|
|
1799
|
+
updateTime: { wire: "update_time" }
|
|
2878
1800
|
};
|
|
2879
|
-
|
|
2880
|
-
|
|
1801
|
+
function projectFieldMask(...paths) {
|
|
1802
|
+
return FieldMask.build(paths, projectFieldMaskSchema);
|
|
2881
1803
|
}
|
|
2882
1804
|
const projectDefaultEndpointSettingsFieldMaskSchema = {
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
1805
|
+
autoscalingLimitMaxCu: { wire: "autoscaling_limit_max_cu" },
|
|
1806
|
+
autoscalingLimitMinCu: { wire: "autoscaling_limit_min_cu" },
|
|
1807
|
+
noSuspension: { wire: "no_suspension" },
|
|
1808
|
+
pgSettings: { wire: "pg_settings" },
|
|
1809
|
+
suspendTimeoutDuration: { wire: "suspend_timeout_duration" }
|
|
2888
1810
|
};
|
|
2889
1811
|
const projectSpecFieldMaskSchema = {
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
1812
|
+
budgetPolicyId: { wire: "budget_policy_id" },
|
|
1813
|
+
customTags: { wire: "custom_tags" },
|
|
1814
|
+
defaultBranch: { wire: "default_branch" },
|
|
1815
|
+
defaultEndpointSettings: {
|
|
1816
|
+
wire: "default_endpoint_settings",
|
|
1817
|
+
children: () => projectDefaultEndpointSettingsFieldMaskSchema
|
|
1818
|
+
},
|
|
1819
|
+
displayName: { wire: "display_name" },
|
|
1820
|
+
enablePgNativeLogin: { wire: "enable_pg_native_login" },
|
|
1821
|
+
historyRetentionDuration: { wire: "history_retention_duration" },
|
|
1822
|
+
pgVersion: { wire: "pg_version" }
|
|
2901
1823
|
};
|
|
2902
1824
|
const projectStatusFieldMaskSchema = {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
1825
|
+
branchLogicalSizeLimitBytes: { wire: "branch_logical_size_limit_bytes" },
|
|
1826
|
+
budgetPolicyId: { wire: "budget_policy_id" },
|
|
1827
|
+
computeLastActiveTime: { wire: "compute_last_active_time" },
|
|
1828
|
+
customTags: { wire: "custom_tags" },
|
|
1829
|
+
defaultBranch: { wire: "default_branch" },
|
|
1830
|
+
defaultEndpointSettings: {
|
|
1831
|
+
wire: "default_endpoint_settings",
|
|
1832
|
+
children: () => projectDefaultEndpointSettingsFieldMaskSchema
|
|
1833
|
+
},
|
|
1834
|
+
displayName: { wire: "display_name" },
|
|
1835
|
+
enablePgNativeLogin: { wire: "enable_pg_native_login" },
|
|
1836
|
+
historyRetentionDuration: { wire: "history_retention_duration" },
|
|
1837
|
+
owner: { wire: "owner" },
|
|
1838
|
+
pgVersion: { wire: "pg_version" },
|
|
1839
|
+
projectId: { wire: "project_id" },
|
|
1840
|
+
syntheticStorageSizeBytes: { wire: "synthetic_storage_size_bytes" }
|
|
2919
1841
|
};
|
|
2920
1842
|
const roleFieldMaskSchema = {
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
1843
|
+
createTime: { wire: "create_time" },
|
|
1844
|
+
name: { wire: "name" },
|
|
1845
|
+
parent: { wire: "parent" },
|
|
1846
|
+
roleId: { wire: "role_id" },
|
|
1847
|
+
spec: {
|
|
1848
|
+
wire: "spec",
|
|
1849
|
+
children: () => role_RoleSpecFieldMaskSchema
|
|
1850
|
+
},
|
|
1851
|
+
status: {
|
|
1852
|
+
wire: "status",
|
|
1853
|
+
children: () => role_RoleStatusFieldMaskSchema
|
|
1854
|
+
},
|
|
1855
|
+
updateTime: { wire: "update_time" }
|
|
2928
1856
|
};
|
|
2929
|
-
|
|
2930
|
-
|
|
1857
|
+
function roleFieldMask(...paths) {
|
|
1858
|
+
return FieldMask.build(paths, roleFieldMaskSchema);
|
|
2931
1859
|
}
|
|
2932
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2933
1860
|
const role_AttributesFieldMaskSchema = {
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
1861
|
+
bypassrls: { wire: "bypassrls" },
|
|
1862
|
+
createdb: { wire: "createdb" },
|
|
1863
|
+
createrole: { wire: "createrole" }
|
|
2937
1864
|
};
|
|
2938
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2939
1865
|
const role_RoleSpecFieldMaskSchema = {
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
1866
|
+
attributes: {
|
|
1867
|
+
wire: "attributes",
|
|
1868
|
+
children: () => role_AttributesFieldMaskSchema
|
|
1869
|
+
},
|
|
1870
|
+
authMethod: { wire: "auth_method" },
|
|
1871
|
+
identityType: { wire: "identity_type" },
|
|
1872
|
+
membershipRoles: { wire: "membership_roles" },
|
|
1873
|
+
postgresRole: { wire: "postgres_role" }
|
|
2948
1874
|
};
|
|
2949
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
2950
1875
|
const role_RoleStatusFieldMaskSchema = {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
1876
|
+
attributes: {
|
|
1877
|
+
wire: "attributes",
|
|
1878
|
+
children: () => role_AttributesFieldMaskSchema
|
|
1879
|
+
},
|
|
1880
|
+
authMethod: { wire: "auth_method" },
|
|
1881
|
+
identityType: { wire: "identity_type" },
|
|
1882
|
+
membershipRoles: { wire: "membership_roles" },
|
|
1883
|
+
postgresRole: { wire: "postgres_role" },
|
|
1884
|
+
roleId: { wire: "role_id" }
|
|
2960
1885
|
};
|
|
1886
|
+
|
|
1887
|
+
//#endregion
|
|
1888
|
+
export { BranchStatus_State, CdfState, EndpointStatus_State, EndpointType, ErrorCode, OpenApiMode, ProvisioningInfo_State, ProvisioningPhase, RequestedClaims_PermissionSet, Role_AuthMethod, Role_IdentityType, Role_MembershipRole, SyncedTableState, SyncedTable_SyncedTableSpec_ExtraColumn_Maintenance, SyncedTable_SyncedTableSpec_PgSpecificType, SyncedTable_SyncedTableSpec_SyncedTableSchedulingPolicy, branchFieldMask, dataApiFieldMask, databaseFieldMask, endpointFieldMask, marshalBranchSchema, marshalBranchSpecSchema, marshalBranchStatusSchema, marshalCatalogSchema, marshalCatalog_CatalogSpecSchema, marshalCatalog_CatalogStatusSchema, marshalCdfConfigSchema, marshalDataApiSchema, marshalDataApi_DataApiSpecSchema, marshalDataApi_DataApiStatusSchema, marshalDatabaseSchema, marshalDatabase_DatabaseSpecSchema, marshalDatabase_DatabaseStatusSchema, marshalDeltaTableSyncInfoSchema, marshalEndpointGroupSpecSchema, marshalEndpointGroupStatusSchema, marshalEndpointHostsSchema, marshalEndpointSchema, marshalEndpointSettingsSchema, marshalEndpointSpecSchema, marshalEndpointStatusSchema, marshalGenerateDatabaseCredentialRequestSchema, marshalInitialBranchSpecSchema, marshalInitialEndpointSpecSchema, marshalNewPipelineSpecSchema, marshalProjectCustomTagSchema, marshalProjectDefaultEndpointSettingsSchema, marshalProjectSchema, marshalProjectSpecSchema, marshalProjectStatusSchema, marshalRequestedClaimsSchema, marshalRequestedResourceSchema, marshalRoleSchema, marshalRole_AttributesSchema, marshalRole_RoleSpecSchema, marshalRole_RoleStatusSchema, marshalSyncedTablePipelineProgressSchema, marshalSyncedTablePositionSchema, marshalSyncedTableSchema, marshalSyncedTable_SyncedTableSpecSchema, marshalSyncedTable_SyncedTableSpec_ExtraColumnSchema, marshalSyncedTable_SyncedTableSpec_TypeOverrideSchema, marshalSyncedTable_SyncedTableStatusSchema, marshalUndeleteBranchRequestSchema, marshalUndeleteProjectRequestSchema, projectFieldMask, roleFieldMask, unmarshalApiErrorSchema, unmarshalBranchOperationMetadataSchema, unmarshalBranchSchema, unmarshalBranchSpecSchema, unmarshalBranchStatusSchema, unmarshalCatalogOperationMetadataSchema, unmarshalCatalogSchema, unmarshalCatalog_CatalogSpecSchema, unmarshalCatalog_CatalogStatusSchema, unmarshalCdfConfigOperationMetadataSchema, unmarshalCdfConfigSchema, unmarshalCdfStatusSchema, unmarshalDataApiOperationMetadataSchema, unmarshalDataApiSchema, unmarshalDataApi_DataApiSpecSchema, unmarshalDataApi_DataApiStatusSchema, unmarshalDatabaseCredentialSchema, unmarshalDatabaseOperationMetadataSchema, unmarshalDatabaseSchema, unmarshalDatabase_DatabaseSpecSchema, unmarshalDatabase_DatabaseStatusSchema, unmarshalDeltaTableSyncInfoSchema, unmarshalEndpointGroupSpecSchema, unmarshalEndpointGroupStatusSchema, unmarshalEndpointHostsSchema, unmarshalEndpointOperationMetadataSchema, unmarshalEndpointSchema, unmarshalEndpointSettingsSchema, unmarshalEndpointSpecSchema, unmarshalEndpointStatusSchema, unmarshalInitialBranchSpecSchema, unmarshalInitialEndpointSpecSchema, unmarshalListBranchesResponseSchema, unmarshalListCdfConfigsResponseSchema, unmarshalListCdfStatusesResponseSchema, unmarshalListDatabasesResponseSchema, unmarshalListEndpointsResponseSchema, unmarshalListProjectsResponseSchema, unmarshalListRolesResponseSchema, unmarshalNewPipelineSpecSchema, unmarshalOperationSchema, unmarshalProjectCustomTagSchema, unmarshalProjectDefaultEndpointSettingsSchema, unmarshalProjectOperationMetadataSchema, unmarshalProjectSchema, unmarshalProjectSpecSchema, unmarshalProjectStatusSchema, unmarshalRoleOperationMetadataSchema, unmarshalRoleSchema, unmarshalRole_AttributesSchema, unmarshalRole_RoleSpecSchema, unmarshalRole_RoleStatusSchema, unmarshalSyncedTableOperationMetadataSchema, unmarshalSyncedTablePipelineProgressSchema, unmarshalSyncedTablePositionSchema, unmarshalSyncedTableSchema, unmarshalSyncedTable_SyncedTableSpecSchema, unmarshalSyncedTable_SyncedTableSpec_ExtraColumnSchema, unmarshalSyncedTable_SyncedTableSpec_TypeOverrideSchema, unmarshalSyncedTable_SyncedTableStatusSchema };
|
|
2961
1889
|
//# sourceMappingURL=model.js.map
|