@databricks/sdk-environments 0.34.0 → 0.35.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 +146 -142
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +439 -574
- 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 +700 -710
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +222 -679
- 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,698 +1,241 @@
|
|
|
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
|
/** If changed, also update estore/namespaces/defaultbaseenvironments/latest.proto */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
GPU: 'GPU',
|
|
7
|
+
const BaseEnvironmentType = {
|
|
8
|
+
BASE_ENVIRONMENT_TYPE_UNSPECIFIED: "BASE_ENVIRONMENT_TYPE_UNSPECIFIED",
|
|
9
|
+
CPU: "CPU",
|
|
10
|
+
GPU: "GPU"
|
|
11
11
|
};
|
|
12
12
|
/** Error codes returned by Databricks APIs to indicate specific failure conditions. */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
* waiting for a response.
|
|
96
|
-
*
|
|
97
|
-
* Maps to:
|
|
98
|
-
* - google.rpc.Code: CANCELLED = 1;
|
|
99
|
-
* - HTTP code: 499 Client Closed Request
|
|
100
|
-
*/
|
|
101
|
-
CANCELLED: 'CANCELLED',
|
|
102
|
-
/**
|
|
103
|
-
* The operation is rejected because of either rate limiting or resource quota,
|
|
104
|
-
* such as the client has sent too many requests recently or the client has allocated too many
|
|
105
|
-
* resources.
|
|
106
|
-
*
|
|
107
|
-
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
108
|
-
* for guideline on how to pick this vs TEMPORARILY_UNAVAILABLE.
|
|
109
|
-
*
|
|
110
|
-
* Maps to:
|
|
111
|
-
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
112
|
-
* - HTTP code: 429 Too Many Requests
|
|
113
|
-
*/
|
|
114
|
-
RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
|
|
115
|
-
/**
|
|
116
|
-
* The operation was aborted, typically due to a concurrency issue such as a sequencer
|
|
117
|
-
* check failure, transaction abort, or transaction conflict.
|
|
118
|
-
*
|
|
119
|
-
* Maps to:
|
|
120
|
-
* - google.rpc.Code: ABORTED = 10;
|
|
121
|
-
* - HTTP code: 409 Conflict
|
|
122
|
-
*/
|
|
123
|
-
ABORTED: 'ABORTED',
|
|
124
|
-
/**
|
|
125
|
-
* Operation was performed on a resource that does not exist,
|
|
126
|
-
* e.g. file or directory was not found.
|
|
127
|
-
*
|
|
128
|
-
* Maps to:
|
|
129
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
130
|
-
* - HTTP code: 404 Not Found
|
|
131
|
-
*/
|
|
132
|
-
NOT_FOUND: 'NOT_FOUND',
|
|
133
|
-
/**
|
|
134
|
-
* Operation was rejected due a conflict with an existing resource, e.g. attempted to create
|
|
135
|
-
* file or directory that already exists.
|
|
136
|
-
*
|
|
137
|
-
* Prefer this over RESOURCE_CONFLICT.
|
|
138
|
-
*
|
|
139
|
-
* Maps to:
|
|
140
|
-
* - google.rpc.Code: ALREADY_EXISTS = 6;
|
|
141
|
-
* - HTTP code: 409 Conflict
|
|
142
|
-
*/
|
|
143
|
-
ALREADY_EXISTS: 'ALREADY_EXISTS',
|
|
144
|
-
/**
|
|
145
|
-
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
146
|
-
*
|
|
147
|
-
* Prefer this over CUSTOMER_UNAUTHORIZED, unless you need to keep consistent behavior with legacy
|
|
148
|
-
* code.
|
|
149
|
-
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
150
|
-
*
|
|
151
|
-
* Maps to:
|
|
152
|
-
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
153
|
-
* - HTTP code: 401 Unauthorized
|
|
154
|
-
*/
|
|
155
|
-
UNAUTHENTICATED: 'UNAUTHENTICATED',
|
|
156
|
-
/**
|
|
157
|
-
* The service is currently unavailable. Please note that the unavailability may or may not be transient.
|
|
158
|
-
* That means if this is a non-transient condition, retrying it does not work. If the unavailability
|
|
159
|
-
* is certainly a transient condition, pleases use `TEMPORARILY_UNAVAILABLE` which signals its transient
|
|
160
|
-
* nature explicitly.
|
|
161
|
-
* An example of this error code’s use case is that when DNS resolution fails, the DNS resolver does
|
|
162
|
-
* not know whether it is because the domain name is completely wrong (non-transient situation) or
|
|
163
|
-
* the domain name is valid but the DNS server does not have an entry for this domain name yet (transient
|
|
164
|
-
* situation). Hence, `UNAVAILABLE` is suitable for this case.
|
|
165
|
-
*
|
|
166
|
-
* Maps to:
|
|
167
|
-
* - google.rpc.Code: UNAVAILABLE = 14;
|
|
168
|
-
* - HTTP code: 503 Service Unavailable
|
|
169
|
-
*/
|
|
170
|
-
UNAVAILABLE: 'UNAVAILABLE',
|
|
171
|
-
/**
|
|
172
|
-
* Supplied value for a parameter was invalid (e.g., giving a number for a string parameter).
|
|
173
|
-
*
|
|
174
|
-
* Maps to:
|
|
175
|
-
* - google.rpc.Code: INVALID_ARGUMENT = 3;
|
|
176
|
-
* - HTTP code: 400 Bad Request
|
|
177
|
-
*/
|
|
178
|
-
INVALID_PARAMETER_VALUE: 'INVALID_PARAMETER_VALUE',
|
|
179
|
-
/**
|
|
180
|
-
* Indicates that the given API endpoint does not exist. Legacy, when possible - NOT_IMPLEMENTED
|
|
181
|
-
* should be used instead to indicate that API doesn't exist.
|
|
182
|
-
*
|
|
183
|
-
* Maps to:
|
|
184
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
185
|
-
* - HTTP code: 404 Not Found
|
|
186
|
-
*/
|
|
187
|
-
ENDPOINT_NOT_FOUND: 'ENDPOINT_NOT_FOUND',
|
|
188
|
-
/** Indicates that the given API request was malformed. */
|
|
189
|
-
MALFORMED_REQUEST: 'MALFORMED_REQUEST',
|
|
190
|
-
/**
|
|
191
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
192
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
193
|
-
* If one or more of the inputs to a given RPC are not in a valid state for the action.
|
|
194
|
-
*/
|
|
195
|
-
INVALID_STATE: 'INVALID_STATE',
|
|
196
|
-
/**
|
|
197
|
-
* The caller does not have permission to execute the specified operation.
|
|
198
|
-
* PERMISSION_DENIED must not be used for rejections caused by exhausting some resource,
|
|
199
|
-
* use RESOURCE_EXHAUSTED instead for those errors.
|
|
200
|
-
* PERMISSION_DENIED must not be used if the caller can not be identified,
|
|
201
|
-
* use CUSTOMER_UNAUTHORIZED instead for those errors.
|
|
202
|
-
* This error code does not imply the request is valid or the requested entity exists or
|
|
203
|
-
* satisfies other pre-conditions.
|
|
204
|
-
*
|
|
205
|
-
* Maps to:
|
|
206
|
-
* - google.rpc.Code: PERMISSION_DENIED = 7;
|
|
207
|
-
* - HTTP code: 403 Forbidden
|
|
208
|
-
*/
|
|
209
|
-
PERMISSION_DENIED: 'PERMISSION_DENIED',
|
|
210
|
-
/**
|
|
211
|
-
* NOTE: Deprecated due to inconsistent mapping in legacy code, see
|
|
212
|
-
* https://docs.google.com/document/d/17TZIKX_Y39cJMBr333lc-d5dTvvBLSu3DPUyGU5eMJg/edit?disco=AAAAzVGt6FA.
|
|
213
|
-
* Prefer using NOT_FOUND or PERMISSION_DENIED.
|
|
214
|
-
*
|
|
215
|
-
* If a given user/entity is trying to use a feature which has been disabled.
|
|
216
|
-
*
|
|
217
|
-
* Maps to:
|
|
218
|
-
* - google.rpc.Code: NOT_FOUND = 5;
|
|
219
|
-
* - HTTP code: 404 Not Found
|
|
220
|
-
*/
|
|
221
|
-
FEATURE_DISABLED: 'FEATURE_DISABLED',
|
|
222
|
-
/**
|
|
223
|
-
* The request does not have valid authentication (AuthN) credentials for the operation.
|
|
224
|
-
*
|
|
225
|
-
* For authentication (AuthN) errors prefer using UNAUTHENTICATED, unless you need to keep
|
|
226
|
-
* consistent behavior with legacy code.
|
|
227
|
-
* For authorization (AuthZ) errors use PERMISSION_DENIED.
|
|
228
|
-
*
|
|
229
|
-
* Important: name is confusing, this error code is for authentication (AuthN) errors, not
|
|
230
|
-
* authorization (AuthZ) errors. It maps to 401 Unauthorized and suffers from the same confusing
|
|
231
|
-
* naming. See https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 - "[...] status code
|
|
232
|
-
* indicates that the request has not been applied because it lacks valid authentication
|
|
233
|
-
* credentials for the target resource. [...] If the request included authentication credentials,
|
|
234
|
-
* then the 401 response indicates that authorization has been refused for those credentials."
|
|
235
|
-
*
|
|
236
|
-
* Also, see https://stackoverflow.com/a/6937030/16352922, it covers it pretty well.
|
|
237
|
-
*
|
|
238
|
-
* Maps to:
|
|
239
|
-
* - google.rpc.Code: UNAUTHENTICATED = 16;
|
|
240
|
-
* - HTTP code: 401 Unauthorized
|
|
241
|
-
*/
|
|
242
|
-
CUSTOMER_UNAUTHORIZED: 'CUSTOMER_UNAUTHORIZED',
|
|
243
|
-
/**
|
|
244
|
-
* The operation is rejected because of request rate limit, for example rate limiting applied to
|
|
245
|
-
* users, workspaces, IP addresses, etc.
|
|
246
|
-
*
|
|
247
|
-
* Prefer a more generic RESOURCE_EXHAUSTED for the new use cases.
|
|
248
|
-
*
|
|
249
|
-
* See https://docs.google.com/document/d/1FL8p2sbYWqBPL-UvhzI7uXAw4EoLG7Rj6PAOQWZRSOk/edit#
|
|
250
|
-
* for guideline on the rate limiting vs throttling.
|
|
251
|
-
*
|
|
252
|
-
* Maps to:
|
|
253
|
-
* - google.rpc.Code: RESOURCE_EXHAUSTED = 8;
|
|
254
|
-
* - HTTP code: 429 Too Many Requests
|
|
255
|
-
*/
|
|
256
|
-
REQUEST_LIMIT_EXCEEDED: 'REQUEST_LIMIT_EXCEEDED',
|
|
257
|
-
/** Indicates API request was rejected due a conflict with an existing resource. */
|
|
258
|
-
RESOURCE_CONFLICT: 'RESOURCE_CONFLICT',
|
|
259
|
-
/**
|
|
260
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
261
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
262
|
-
* Indicates that the HTTP response cannot be correctly deserialized.
|
|
263
|
-
* This currently is only used in DUST test clients, and not by any real service code.
|
|
264
|
-
*/
|
|
265
|
-
UNPARSEABLE_HTTP_ERROR: 'UNPARSEABLE_HTTP_ERROR',
|
|
266
|
-
/**
|
|
267
|
-
* The operation is not implemented or is not supported/enabled in this service.
|
|
268
|
-
*
|
|
269
|
-
* Maps to:
|
|
270
|
-
* - google.rpc.Code: UNIMPLEMENTED = 12;
|
|
271
|
-
* - HTTP code: 501 Not Implemented
|
|
272
|
-
*/
|
|
273
|
-
NOT_IMPLEMENTED: 'NOT_IMPLEMENTED',
|
|
274
|
-
/**
|
|
275
|
-
* Unrecoverable data loss or corruption.
|
|
276
|
-
*
|
|
277
|
-
* One of the major use cases is to indicate that server failed to validate the integrity of
|
|
278
|
-
* the request. This error can occur when the checksum specified in the `X-Databricks-Checksum`
|
|
279
|
-
* request header (or trailer) doesn't match the actual request content checksum.
|
|
280
|
-
*
|
|
281
|
-
* Note, in case of the severe corruption that results in a malformed request, the server may
|
|
282
|
-
* send a generic `400 Bad Request` response rather than sending this error code.
|
|
283
|
-
*
|
|
284
|
-
* Maps to:
|
|
285
|
-
* - google.rpc.Code: DATA_LOSS = 15;
|
|
286
|
-
* - HTTP code: 500 Internal Server Error
|
|
287
|
-
*/
|
|
288
|
-
DATA_LOSS: 'DATA_LOSS',
|
|
289
|
-
/** If the user attempts to perform an invalid state transition on a shard. */
|
|
290
|
-
INVALID_STATE_TRANSITION: 'INVALID_STATE_TRANSITION',
|
|
291
|
-
/**
|
|
292
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
293
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
294
|
-
* Unable to perform the operation because the shard was locked by some other operation.
|
|
295
|
-
*/
|
|
296
|
-
COULD_NOT_ACQUIRE_LOCK: 'COULD_NOT_ACQUIRE_LOCK',
|
|
297
|
-
/**
|
|
298
|
-
* NOTE: Deprecated, prefer using ALREADY_EXISTS.
|
|
299
|
-
* Unlike ALREADY_EXISTS - this maps to HTTP code 400 Bad Request due to legacy reasons,
|
|
300
|
-
* remapping will be a backwards incompatible change.
|
|
301
|
-
*
|
|
302
|
-
* Operation was performed on a resource that already exists.
|
|
303
|
-
*/
|
|
304
|
-
RESOURCE_ALREADY_EXISTS: 'RESOURCE_ALREADY_EXISTS',
|
|
305
|
-
/**
|
|
306
|
-
* NOTE: Deprecated, prefer using NOT_FOUND - see the note for the RESOURCE_ALREADY_EXISTS,
|
|
307
|
-
* because this pair of codes is related and RESOURCE_ALREADY_EXISTS has bad mapping to the HTTP
|
|
308
|
-
* codes we added new error codes NOT_FOUND and ALREADY_EXISTS, and recommend to use them instead.
|
|
309
|
-
*
|
|
310
|
-
* Operation was performed on a resource that does not exist.
|
|
311
|
-
*/
|
|
312
|
-
RESOURCE_DOES_NOT_EXIST: 'RESOURCE_DOES_NOT_EXIST',
|
|
313
|
-
/**
|
|
314
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
315
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
316
|
-
*/
|
|
317
|
-
QUOTA_EXCEEDED: 'QUOTA_EXCEEDED',
|
|
318
|
-
/**
|
|
319
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
320
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
321
|
-
*/
|
|
322
|
-
MAX_BLOCK_SIZE_EXCEEDED: 'MAX_BLOCK_SIZE_EXCEEDED',
|
|
323
|
-
/**
|
|
324
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
325
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
326
|
-
*/
|
|
327
|
-
MAX_READ_SIZE_EXCEEDED: 'MAX_READ_SIZE_EXCEEDED',
|
|
328
|
-
PARTIAL_DELETE: 'PARTIAL_DELETE',
|
|
329
|
-
MAX_LIST_SIZE_EXCEEDED: 'MAX_LIST_SIZE_EXCEEDED',
|
|
330
|
-
/**
|
|
331
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
332
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
333
|
-
*/
|
|
334
|
-
DRY_RUN_FAILED: 'DRY_RUN_FAILED',
|
|
335
|
-
/**
|
|
336
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
337
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
338
|
-
* Cluster request was rejected because it would exceed a resource limit.
|
|
339
|
-
*/
|
|
340
|
-
RESOURCE_LIMIT_EXCEEDED: 'RESOURCE_LIMIT_EXCEEDED',
|
|
341
|
-
/**
|
|
342
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
343
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
344
|
-
*/
|
|
345
|
-
DIRECTORY_NOT_EMPTY: 'DIRECTORY_NOT_EMPTY',
|
|
346
|
-
/**
|
|
347
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
348
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
349
|
-
*/
|
|
350
|
-
DIRECTORY_PROTECTED: 'DIRECTORY_PROTECTED',
|
|
351
|
-
/**
|
|
352
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
353
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
354
|
-
*/
|
|
355
|
-
MAX_NOTEBOOK_SIZE_EXCEEDED: 'MAX_NOTEBOOK_SIZE_EXCEEDED',
|
|
356
|
-
MAX_CHILD_NODE_SIZE_EXCEEDED: 'MAX_CHILD_NODE_SIZE_EXCEEDED',
|
|
357
|
-
/**
|
|
358
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
359
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
360
|
-
*/
|
|
361
|
-
SEARCH_QUERY_TOO_LONG: 'SEARCH_QUERY_TOO_LONG',
|
|
362
|
-
/**
|
|
363
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
364
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
365
|
-
*/
|
|
366
|
-
SEARCH_QUERY_TOO_SHORT: 'SEARCH_QUERY_TOO_SHORT',
|
|
367
|
-
/**
|
|
368
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
369
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
370
|
-
*/
|
|
371
|
-
MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: 'MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST',
|
|
372
|
-
/**
|
|
373
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
374
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
375
|
-
*/
|
|
376
|
-
PERMISSION_NOT_PROPAGATED: 'PERMISSION_NOT_PROPAGATED',
|
|
377
|
-
/**
|
|
378
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
379
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
380
|
-
*/
|
|
381
|
-
DEPLOYMENT_TIMEOUT: 'DEPLOYMENT_TIMEOUT',
|
|
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
|
-
GIT_CONFLICT: 'GIT_CONFLICT',
|
|
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
|
-
GIT_UNKNOWN_REF: 'GIT_UNKNOWN_REF',
|
|
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
|
-
GIT_SENSITIVE_TOKEN_DETECTED: 'GIT_SENSITIVE_TOKEN_DETECTED',
|
|
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
|
-
GIT_URL_NOT_ON_ALLOW_LIST: 'GIT_URL_NOT_ON_ALLOW_LIST',
|
|
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
|
-
GIT_REMOTE_ERROR: 'GIT_REMOTE_ERROR',
|
|
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
|
-
PROJECTS_OPERATION_TIMEOUT: 'PROJECTS_OPERATION_TIMEOUT',
|
|
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
|
-
IPYNB_FILE_IN_REPO: 'IPYNB_FILE_IN_REPO',
|
|
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
|
-
INSECURE_PARTNER_RESPONSE: 'INSECURE_PARTNER_RESPONSE',
|
|
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
|
-
MALFORMED_PARTNER_RESPONSE: 'MALFORMED_PARTNER_RESPONSE',
|
|
427
|
-
METASTORE_DOES_NOT_EXIST: 'METASTORE_DOES_NOT_EXIST',
|
|
428
|
-
/**
|
|
429
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
430
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
431
|
-
*/
|
|
432
|
-
DAC_DOES_NOT_EXIST: 'DAC_DOES_NOT_EXIST',
|
|
433
|
-
CATALOG_DOES_NOT_EXIST: 'CATALOG_DOES_NOT_EXIST',
|
|
434
|
-
SCHEMA_DOES_NOT_EXIST: 'SCHEMA_DOES_NOT_EXIST',
|
|
435
|
-
TABLE_DOES_NOT_EXIST: 'TABLE_DOES_NOT_EXIST',
|
|
436
|
-
SHARE_DOES_NOT_EXIST: 'SHARE_DOES_NOT_EXIST',
|
|
437
|
-
RECIPIENT_DOES_NOT_EXIST: 'RECIPIENT_DOES_NOT_EXIST',
|
|
438
|
-
STORAGE_CREDENTIAL_DOES_NOT_EXIST: 'STORAGE_CREDENTIAL_DOES_NOT_EXIST',
|
|
439
|
-
EXTERNAL_LOCATION_DOES_NOT_EXIST: 'EXTERNAL_LOCATION_DOES_NOT_EXIST',
|
|
440
|
-
PRINCIPAL_DOES_NOT_EXIST: 'PRINCIPAL_DOES_NOT_EXIST',
|
|
441
|
-
PROVIDER_DOES_NOT_EXIST: 'PROVIDER_DOES_NOT_EXIST',
|
|
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
|
-
METASTORE_ALREADY_EXISTS: 'METASTORE_ALREADY_EXISTS',
|
|
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
|
-
DAC_ALREADY_EXISTS: 'DAC_ALREADY_EXISTS',
|
|
452
|
-
/**
|
|
453
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
454
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
455
|
-
*/
|
|
456
|
-
CATALOG_ALREADY_EXISTS: 'CATALOG_ALREADY_EXISTS',
|
|
457
|
-
/**
|
|
458
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
459
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
460
|
-
*/
|
|
461
|
-
SCHEMA_ALREADY_EXISTS: 'SCHEMA_ALREADY_EXISTS',
|
|
462
|
-
/**
|
|
463
|
-
* NOTE: Deprecated and kept to maintain backwards compatibility for public APIs that use it,
|
|
464
|
-
* avoid using it in the new APIs, refer error codes listed in the http://go/error-codes.
|
|
465
|
-
*/
|
|
466
|
-
TABLE_ALREADY_EXISTS: 'TABLE_ALREADY_EXISTS',
|
|
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
|
-
SHARE_ALREADY_EXISTS: 'SHARE_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
|
-
RECIPIENT_ALREADY_EXISTS: 'RECIPIENT_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
|
-
STORAGE_CREDENTIAL_ALREADY_EXISTS: 'STORAGE_CREDENTIAL_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
|
-
EXTERNAL_LOCATION_ALREADY_EXISTS: 'EXTERNAL_LOCATION_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
|
-
PROVIDER_ALREADY_EXISTS: 'PROVIDER_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
|
-
CATALOG_NOT_EMPTY: 'CATALOG_NOT_EMPTY',
|
|
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
|
-
SCHEMA_NOT_EMPTY: 'SCHEMA_NOT_EMPTY',
|
|
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
|
-
METASTORE_NOT_EMPTY: 'METASTORE_NOT_EMPTY',
|
|
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
|
-
PROVIDER_SHARE_NOT_ACCESSIBLE: 'PROVIDER_SHARE_NOT_ACCESSIBLE',
|
|
13
|
+
const ErrorCode = {
|
|
14
|
+
UNKNOWN: "UNKNOWN",
|
|
15
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
16
|
+
TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE",
|
|
17
|
+
IO_ERROR: "IO_ERROR",
|
|
18
|
+
BAD_REQUEST: "BAD_REQUEST",
|
|
19
|
+
SERVICE_UNDER_MAINTENANCE: "SERVICE_UNDER_MAINTENANCE",
|
|
20
|
+
WORKSPACE_TEMPORARILY_UNAVAILABLE: "WORKSPACE_TEMPORARILY_UNAVAILABLE",
|
|
21
|
+
DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
|
|
22
|
+
CANCELLED: "CANCELLED",
|
|
23
|
+
RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
|
|
24
|
+
ABORTED: "ABORTED",
|
|
25
|
+
NOT_FOUND: "NOT_FOUND",
|
|
26
|
+
ALREADY_EXISTS: "ALREADY_EXISTS",
|
|
27
|
+
UNAUTHENTICATED: "UNAUTHENTICATED",
|
|
28
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
29
|
+
INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
|
|
30
|
+
ENDPOINT_NOT_FOUND: "ENDPOINT_NOT_FOUND",
|
|
31
|
+
MALFORMED_REQUEST: "MALFORMED_REQUEST",
|
|
32
|
+
INVALID_STATE: "INVALID_STATE",
|
|
33
|
+
PERMISSION_DENIED: "PERMISSION_DENIED",
|
|
34
|
+
FEATURE_DISABLED: "FEATURE_DISABLED",
|
|
35
|
+
CUSTOMER_UNAUTHORIZED: "CUSTOMER_UNAUTHORIZED",
|
|
36
|
+
REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
|
|
37
|
+
RESOURCE_CONFLICT: "RESOURCE_CONFLICT",
|
|
38
|
+
UNPARSEABLE_HTTP_ERROR: "UNPARSEABLE_HTTP_ERROR",
|
|
39
|
+
NOT_IMPLEMENTED: "NOT_IMPLEMENTED",
|
|
40
|
+
DATA_LOSS: "DATA_LOSS",
|
|
41
|
+
INVALID_STATE_TRANSITION: "INVALID_STATE_TRANSITION",
|
|
42
|
+
COULD_NOT_ACQUIRE_LOCK: "COULD_NOT_ACQUIRE_LOCK",
|
|
43
|
+
RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
|
|
44
|
+
RESOURCE_DOES_NOT_EXIST: "RESOURCE_DOES_NOT_EXIST",
|
|
45
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
|
|
46
|
+
MAX_BLOCK_SIZE_EXCEEDED: "MAX_BLOCK_SIZE_EXCEEDED",
|
|
47
|
+
MAX_READ_SIZE_EXCEEDED: "MAX_READ_SIZE_EXCEEDED",
|
|
48
|
+
PARTIAL_DELETE: "PARTIAL_DELETE",
|
|
49
|
+
MAX_LIST_SIZE_EXCEEDED: "MAX_LIST_SIZE_EXCEEDED",
|
|
50
|
+
DRY_RUN_FAILED: "DRY_RUN_FAILED",
|
|
51
|
+
RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
|
|
52
|
+
DIRECTORY_NOT_EMPTY: "DIRECTORY_NOT_EMPTY",
|
|
53
|
+
DIRECTORY_PROTECTED: "DIRECTORY_PROTECTED",
|
|
54
|
+
MAX_NOTEBOOK_SIZE_EXCEEDED: "MAX_NOTEBOOK_SIZE_EXCEEDED",
|
|
55
|
+
MAX_CHILD_NODE_SIZE_EXCEEDED: "MAX_CHILD_NODE_SIZE_EXCEEDED",
|
|
56
|
+
SEARCH_QUERY_TOO_LONG: "SEARCH_QUERY_TOO_LONG",
|
|
57
|
+
SEARCH_QUERY_TOO_SHORT: "SEARCH_QUERY_TOO_SHORT",
|
|
58
|
+
MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST: "MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST",
|
|
59
|
+
PERMISSION_NOT_PROPAGATED: "PERMISSION_NOT_PROPAGATED",
|
|
60
|
+
DEPLOYMENT_TIMEOUT: "DEPLOYMENT_TIMEOUT",
|
|
61
|
+
GIT_CONFLICT: "GIT_CONFLICT",
|
|
62
|
+
GIT_UNKNOWN_REF: "GIT_UNKNOWN_REF",
|
|
63
|
+
GIT_SENSITIVE_TOKEN_DETECTED: "GIT_SENSITIVE_TOKEN_DETECTED",
|
|
64
|
+
GIT_URL_NOT_ON_ALLOW_LIST: "GIT_URL_NOT_ON_ALLOW_LIST",
|
|
65
|
+
GIT_REMOTE_ERROR: "GIT_REMOTE_ERROR",
|
|
66
|
+
PROJECTS_OPERATION_TIMEOUT: "PROJECTS_OPERATION_TIMEOUT",
|
|
67
|
+
IPYNB_FILE_IN_REPO: "IPYNB_FILE_IN_REPO",
|
|
68
|
+
INSECURE_PARTNER_RESPONSE: "INSECURE_PARTNER_RESPONSE",
|
|
69
|
+
MALFORMED_PARTNER_RESPONSE: "MALFORMED_PARTNER_RESPONSE",
|
|
70
|
+
METASTORE_DOES_NOT_EXIST: "METASTORE_DOES_NOT_EXIST",
|
|
71
|
+
DAC_DOES_NOT_EXIST: "DAC_DOES_NOT_EXIST",
|
|
72
|
+
CATALOG_DOES_NOT_EXIST: "CATALOG_DOES_NOT_EXIST",
|
|
73
|
+
SCHEMA_DOES_NOT_EXIST: "SCHEMA_DOES_NOT_EXIST",
|
|
74
|
+
TABLE_DOES_NOT_EXIST: "TABLE_DOES_NOT_EXIST",
|
|
75
|
+
SHARE_DOES_NOT_EXIST: "SHARE_DOES_NOT_EXIST",
|
|
76
|
+
RECIPIENT_DOES_NOT_EXIST: "RECIPIENT_DOES_NOT_EXIST",
|
|
77
|
+
STORAGE_CREDENTIAL_DOES_NOT_EXIST: "STORAGE_CREDENTIAL_DOES_NOT_EXIST",
|
|
78
|
+
EXTERNAL_LOCATION_DOES_NOT_EXIST: "EXTERNAL_LOCATION_DOES_NOT_EXIST",
|
|
79
|
+
PRINCIPAL_DOES_NOT_EXIST: "PRINCIPAL_DOES_NOT_EXIST",
|
|
80
|
+
PROVIDER_DOES_NOT_EXIST: "PROVIDER_DOES_NOT_EXIST",
|
|
81
|
+
METASTORE_ALREADY_EXISTS: "METASTORE_ALREADY_EXISTS",
|
|
82
|
+
DAC_ALREADY_EXISTS: "DAC_ALREADY_EXISTS",
|
|
83
|
+
CATALOG_ALREADY_EXISTS: "CATALOG_ALREADY_EXISTS",
|
|
84
|
+
SCHEMA_ALREADY_EXISTS: "SCHEMA_ALREADY_EXISTS",
|
|
85
|
+
TABLE_ALREADY_EXISTS: "TABLE_ALREADY_EXISTS",
|
|
86
|
+
SHARE_ALREADY_EXISTS: "SHARE_ALREADY_EXISTS",
|
|
87
|
+
RECIPIENT_ALREADY_EXISTS: "RECIPIENT_ALREADY_EXISTS",
|
|
88
|
+
STORAGE_CREDENTIAL_ALREADY_EXISTS: "STORAGE_CREDENTIAL_ALREADY_EXISTS",
|
|
89
|
+
EXTERNAL_LOCATION_ALREADY_EXISTS: "EXTERNAL_LOCATION_ALREADY_EXISTS",
|
|
90
|
+
PROVIDER_ALREADY_EXISTS: "PROVIDER_ALREADY_EXISTS",
|
|
91
|
+
CATALOG_NOT_EMPTY: "CATALOG_NOT_EMPTY",
|
|
92
|
+
SCHEMA_NOT_EMPTY: "SCHEMA_NOT_EMPTY",
|
|
93
|
+
METASTORE_NOT_EMPTY: "METASTORE_NOT_EMPTY",
|
|
94
|
+
PROVIDER_SHARE_NOT_ACCESSIBLE: "PROVIDER_SHARE_NOT_ACCESSIBLE"
|
|
512
95
|
};
|
|
513
96
|
/** Status of the environment materialization. */
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
FAILED: 'FAILED',
|
|
523
|
-
/** Materialized environment has expired. */
|
|
524
|
-
EXPIRED: 'EXPIRED',
|
|
525
|
-
/** Materialized environment is invalid. */
|
|
526
|
-
INVALID: 'INVALID',
|
|
527
|
-
/** Materialized environment is being refreshed. */
|
|
528
|
-
REFRESHING: 'REFRESHING',
|
|
97
|
+
const WorkspaceBaseEnvironmentCache_Status = {
|
|
98
|
+
STATUS_UNSPECIFIED: "STATUS_UNSPECIFIED",
|
|
99
|
+
PENDING: "PENDING",
|
|
100
|
+
CREATED: "CREATED",
|
|
101
|
+
FAILED: "FAILED",
|
|
102
|
+
EXPIRED: "EXPIRED",
|
|
103
|
+
INVALID: "INVALID",
|
|
104
|
+
REFRESHING: "REFRESHING"
|
|
529
105
|
};
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
stackTrace: d.stack_trace,
|
|
541
|
-
details: d.details,
|
|
106
|
+
const unmarshalApiErrorSchema = z.object({
|
|
107
|
+
error_code: z.string().optional(),
|
|
108
|
+
message: z.string().optional(),
|
|
109
|
+
stack_trace: z.string().optional(),
|
|
110
|
+
details: z.array(z.record(z.string(), z.unknown())).optional()
|
|
111
|
+
}).transform((d) => ({
|
|
112
|
+
errorCode: d.error_code,
|
|
113
|
+
message: d.message,
|
|
114
|
+
stackTrace: d.stack_trace,
|
|
115
|
+
details: d.details
|
|
542
116
|
}));
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
cpuWorkspaceBaseEnvironment: d.cpu_workspace_base_environment,
|
|
552
|
-
gpuWorkspaceBaseEnvironment: d.gpu_workspace_base_environment,
|
|
117
|
+
const unmarshalDefaultWorkspaceBaseEnvironmentSchema = z.object({
|
|
118
|
+
name: z.string().optional(),
|
|
119
|
+
cpu_workspace_base_environment: z.string().optional(),
|
|
120
|
+
gpu_workspace_base_environment: z.string().optional()
|
|
121
|
+
}).transform((d) => ({
|
|
122
|
+
name: d.name,
|
|
123
|
+
cpuWorkspaceBaseEnvironment: d.cpu_workspace_base_environment,
|
|
124
|
+
gpuWorkspaceBaseEnvironment: d.gpu_workspace_base_environment
|
|
553
125
|
}));
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
dependencies: d.dependencies,
|
|
561
|
-
environmentVersion: d.environment_version,
|
|
126
|
+
const unmarshalEnvironmentSpecSchema = z.object({
|
|
127
|
+
dependencies: z.array(z.string()).optional(),
|
|
128
|
+
environment_version: z.string().optional()
|
|
129
|
+
}).transform((d) => ({
|
|
130
|
+
dependencies: d.dependencies,
|
|
131
|
+
environmentVersion: d.environment_version
|
|
562
132
|
}));
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
})
|
|
570
|
-
.transform(d => ({
|
|
571
|
-
workspaceBaseEnvironments: d.workspace_base_environments,
|
|
572
|
-
nextPageToken: d.next_page_token,
|
|
133
|
+
const unmarshalListWorkspaceBaseEnvironmentsResponseSchema = z.object({
|
|
134
|
+
workspace_base_environments: z.array(z.lazy(() => unmarshalWorkspaceBaseEnvironmentSchema)).optional(),
|
|
135
|
+
next_page_token: z.string().optional()
|
|
136
|
+
}).transform((d) => ({
|
|
137
|
+
workspaceBaseEnvironments: d.workspace_base_environments,
|
|
138
|
+
nextPageToken: d.next_page_token
|
|
573
139
|
}));
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
140
|
+
const unmarshalOperationSchema = z.object({
|
|
141
|
+
name: z.string().optional(),
|
|
142
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
143
|
+
done: z.boolean().optional(),
|
|
144
|
+
error: z.lazy(() => unmarshalApiErrorSchema).optional(),
|
|
145
|
+
response: z.record(z.string(), z.unknown()).optional()
|
|
146
|
+
}).transform((d) => ({
|
|
147
|
+
name: d.name,
|
|
148
|
+
metadata: d.metadata,
|
|
149
|
+
done: d.done,
|
|
150
|
+
result: d.error !== void 0 ? {
|
|
151
|
+
$case: "error",
|
|
152
|
+
error: d.error
|
|
153
|
+
} : d.response !== void 0 ? {
|
|
154
|
+
$case: "response",
|
|
155
|
+
response: d.response
|
|
156
|
+
} : void 0
|
|
591
157
|
}));
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
createTime: d.create_time,
|
|
619
|
-
lastUpdatedUserId: d.last_updated_user_id,
|
|
620
|
-
updateTime: d.update_time,
|
|
621
|
-
status: d.status,
|
|
622
|
-
message: d.message,
|
|
623
|
-
isDefault: d.is_default,
|
|
624
|
-
baseEnvironmentType: d.base_environment_type,
|
|
625
|
-
spec: d.spec,
|
|
158
|
+
const unmarshalWorkspaceBaseEnvironmentSchema = z.object({
|
|
159
|
+
name: z.string().optional(),
|
|
160
|
+
display_name: z.string().optional(),
|
|
161
|
+
filepath: z.string().optional(),
|
|
162
|
+
creator_user_id: z.string().optional(),
|
|
163
|
+
create_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
164
|
+
last_updated_user_id: z.string().optional(),
|
|
165
|
+
update_time: z.string().transform((s) => Temporal.Instant.from(s)).optional(),
|
|
166
|
+
status: z.string().optional(),
|
|
167
|
+
message: z.string().optional(),
|
|
168
|
+
is_default: z.boolean().optional(),
|
|
169
|
+
base_environment_type: z.string().optional(),
|
|
170
|
+
spec: z.lazy(() => unmarshalEnvironmentSpecSchema).optional()
|
|
171
|
+
}).transform((d) => ({
|
|
172
|
+
name: d.name,
|
|
173
|
+
displayName: d.display_name,
|
|
174
|
+
filepath: d.filepath,
|
|
175
|
+
creatorUserId: d.creator_user_id,
|
|
176
|
+
createTime: d.create_time,
|
|
177
|
+
lastUpdatedUserId: d.last_updated_user_id,
|
|
178
|
+
updateTime: d.update_time,
|
|
179
|
+
status: d.status,
|
|
180
|
+
message: d.message,
|
|
181
|
+
isDefault: d.is_default,
|
|
182
|
+
baseEnvironmentType: d.base_environment_type,
|
|
183
|
+
spec: d.spec
|
|
626
184
|
}));
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
cpu_workspace_base_environment: d.cpuWorkspaceBaseEnvironment,
|
|
637
|
-
gpu_workspace_base_environment: d.gpuWorkspaceBaseEnvironment,
|
|
185
|
+
const unmarshalWorkspaceBaseEnvironmentOperationMetadataSchema = z.object({});
|
|
186
|
+
const marshalDefaultWorkspaceBaseEnvironmentSchema = z.object({
|
|
187
|
+
name: z.string().optional(),
|
|
188
|
+
cpuWorkspaceBaseEnvironment: z.string().optional(),
|
|
189
|
+
gpuWorkspaceBaseEnvironment: z.string().optional()
|
|
190
|
+
}).transform((d) => ({
|
|
191
|
+
name: d.name,
|
|
192
|
+
cpu_workspace_base_environment: d.cpuWorkspaceBaseEnvironment,
|
|
193
|
+
gpu_workspace_base_environment: d.gpuWorkspaceBaseEnvironment
|
|
638
194
|
}));
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
dependencies: d.dependencies,
|
|
646
|
-
environment_version: d.environmentVersion,
|
|
195
|
+
const marshalEnvironmentSpecSchema = z.object({
|
|
196
|
+
dependencies: z.array(z.string()).optional(),
|
|
197
|
+
environmentVersion: z.string().optional()
|
|
198
|
+
}).transform((d) => ({
|
|
199
|
+
dependencies: d.dependencies,
|
|
200
|
+
environment_version: d.environmentVersion
|
|
647
201
|
}));
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
})
|
|
676
|
-
.transform(d => ({
|
|
677
|
-
name: d.name,
|
|
678
|
-
display_name: d.displayName,
|
|
679
|
-
filepath: d.filepath,
|
|
680
|
-
creator_user_id: d.creatorUserId,
|
|
681
|
-
create_time: d.createTime,
|
|
682
|
-
last_updated_user_id: d.lastUpdatedUserId,
|
|
683
|
-
update_time: d.updateTime,
|
|
684
|
-
status: d.status,
|
|
685
|
-
message: d.message,
|
|
686
|
-
is_default: d.isDefault,
|
|
687
|
-
base_environment_type: d.baseEnvironmentType,
|
|
688
|
-
spec: d.spec,
|
|
202
|
+
const marshalRefreshWorkspaceBaseEnvironmentRequestSchema = z.object({ name: z.string().optional() }).transform((d) => ({ name: d.name }));
|
|
203
|
+
const marshalWorkspaceBaseEnvironmentSchema = z.object({
|
|
204
|
+
name: z.string().optional(),
|
|
205
|
+
displayName: z.string().optional(),
|
|
206
|
+
filepath: z.string().optional(),
|
|
207
|
+
creatorUserId: z.string().optional(),
|
|
208
|
+
createTime: z.any().transform((d) => d.toString()).optional(),
|
|
209
|
+
lastUpdatedUserId: z.string().optional(),
|
|
210
|
+
updateTime: z.any().transform((d) => d.toString()).optional(),
|
|
211
|
+
status: z.string().optional(),
|
|
212
|
+
message: z.string().optional(),
|
|
213
|
+
isDefault: z.boolean().optional(),
|
|
214
|
+
baseEnvironmentType: z.string().optional(),
|
|
215
|
+
spec: z.lazy(() => marshalEnvironmentSpecSchema).optional()
|
|
216
|
+
}).transform((d) => ({
|
|
217
|
+
name: d.name,
|
|
218
|
+
display_name: d.displayName,
|
|
219
|
+
filepath: d.filepath,
|
|
220
|
+
creator_user_id: d.creatorUserId,
|
|
221
|
+
create_time: d.createTime,
|
|
222
|
+
last_updated_user_id: d.lastUpdatedUserId,
|
|
223
|
+
update_time: d.updateTime,
|
|
224
|
+
status: d.status,
|
|
225
|
+
message: d.message,
|
|
226
|
+
is_default: d.isDefault,
|
|
227
|
+
base_environment_type: d.baseEnvironmentType,
|
|
228
|
+
spec: d.spec
|
|
689
229
|
}));
|
|
690
230
|
const defaultWorkspaceBaseEnvironmentFieldMaskSchema = {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
231
|
+
cpuWorkspaceBaseEnvironment: { wire: "cpu_workspace_base_environment" },
|
|
232
|
+
gpuWorkspaceBaseEnvironment: { wire: "gpu_workspace_base_environment" },
|
|
233
|
+
name: { wire: "name" }
|
|
694
234
|
};
|
|
695
|
-
|
|
696
|
-
|
|
235
|
+
function defaultWorkspaceBaseEnvironmentFieldMask(...paths) {
|
|
236
|
+
return FieldMask.build(paths, defaultWorkspaceBaseEnvironmentFieldMaskSchema);
|
|
697
237
|
}
|
|
238
|
+
|
|
239
|
+
//#endregion
|
|
240
|
+
export { BaseEnvironmentType, ErrorCode, WorkspaceBaseEnvironmentCache_Status, defaultWorkspaceBaseEnvironmentFieldMask, marshalDefaultWorkspaceBaseEnvironmentSchema, marshalEnvironmentSpecSchema, marshalRefreshWorkspaceBaseEnvironmentRequestSchema, marshalWorkspaceBaseEnvironmentSchema, unmarshalApiErrorSchema, unmarshalDefaultWorkspaceBaseEnvironmentSchema, unmarshalEnvironmentSpecSchema, unmarshalListWorkspaceBaseEnvironmentsResponseSchema, unmarshalOperationSchema, unmarshalWorkspaceBaseEnvironmentOperationMetadataSchema, unmarshalWorkspaceBaseEnvironmentSchema };
|
|
698
241
|
//# sourceMappingURL=model.js.map
|