@databricks/sdk-uc-metastores 0.0.0-dev → 0.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +203 -0
- package/dist/v1/client.d.ts +87 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +576 -0
- package/dist/v1/client.js.map +1 -0
- package/dist/v1/index.d.ts +4 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +4 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/model.d.ts +491 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +482 -0
- package/dist/v1/model.js.map +1 -0
- package/dist/v1/transport.d.ts +5 -0
- package/dist/v1/transport.d.ts.map +1 -0
- package/dist/v1/transport.js +57 -0
- package/dist/v1/transport.js.map +1 -0
- package/dist/v1/utils.d.ts +21 -0
- package/dist/v1/utils.d.ts.map +1 -0
- package/dist/v1/utils.js +113 -0
- package/dist/v1/utils.js.map +1 -0
- package/package.json +38 -4
- package/src/v1/client.ts +806 -0
- package/src/v1/index.ts +49 -0
- package/src/v1/model.ts +1032 -0
- package/src/v1/transport.ts +73 -0
- package/src/v1/utils.ts +156 -0
- package/README.md +0 -1
- package/index.js +0 -1
package/src/v1/model.ts
ADDED
|
@@ -0,0 +1,1032 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import {z} from 'zod';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
6
|
+
export enum DeltaSharingScope_Enum {
|
|
7
|
+
/**
|
|
8
|
+
* Internal Delta Sharing enabled on metastore.
|
|
9
|
+
* This applies to Databricks-managed authentication where both provider and recipient are
|
|
10
|
+
* under the same account.
|
|
11
|
+
*/
|
|
12
|
+
INTERNAL = 'INTERNAL',
|
|
13
|
+
/**
|
|
14
|
+
* Internal and External Delta Sharing enabled on metastore.
|
|
15
|
+
* This allows all flavors of Delta Sharing.
|
|
16
|
+
*/
|
|
17
|
+
INTERNAL_AND_EXTERNAL = 'INTERNAL_AND_EXTERNAL',
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** The mapping from workspace to metastore. */
|
|
21
|
+
export interface AccountsCreateMetastoreAssignmentRequest {
|
|
22
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
23
|
+
accountId?: string | undefined;
|
|
24
|
+
/** Workspace ID. */
|
|
25
|
+
workspaceId?: bigint | undefined;
|
|
26
|
+
/** Unity Catalog metastore ID */
|
|
27
|
+
metastoreId?: string | undefined;
|
|
28
|
+
metastoreAssignment?: MetastoreAssignment | undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** The metastore assignment was successfully created. */
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
33
|
+
export interface AccountsCreateMetastoreAssignmentRequest_Response {}
|
|
34
|
+
|
|
35
|
+
/** Properties of the new metastore. */
|
|
36
|
+
export interface AccountsCreateMetastoreRequest {
|
|
37
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
38
|
+
accountId?: string | undefined;
|
|
39
|
+
metastoreInfo?: CreateAccountsMetastore | undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
43
|
+
export interface AccountsCreateMetastoreRequest_Response {
|
|
44
|
+
metastoreInfo?: MetastoreInfo | undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Delete a metastore assignment to a workspace */
|
|
48
|
+
export interface AccountsDeleteMetastoreAssignmentRequest {
|
|
49
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
50
|
+
accountId?: string | undefined;
|
|
51
|
+
/** Workspace ID. */
|
|
52
|
+
workspaceId?: bigint | undefined;
|
|
53
|
+
/** Unity Catalog metastore ID */
|
|
54
|
+
metastoreId?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** The metastore assignment was successfully deleted. */
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
59
|
+
export interface AccountsDeleteMetastoreAssignmentRequest_Response {}
|
|
60
|
+
|
|
61
|
+
/** Delete a metastore for the given account */
|
|
62
|
+
export interface AccountsDeleteMetastoreRequest {
|
|
63
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
64
|
+
accountId?: string | undefined;
|
|
65
|
+
/** Unity Catalog metastore ID */
|
|
66
|
+
metastoreId?: string | undefined;
|
|
67
|
+
/** Force deletion even if the metastore is not empty. Default is false. */
|
|
68
|
+
force?: boolean | undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The metastore was successfully deleted. */
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
73
|
+
export interface AccountsDeleteMetastoreRequest_Response {}
|
|
74
|
+
|
|
75
|
+
/** Retrieves the assignment of which metastore to a given workspace */
|
|
76
|
+
export interface AccountsGetMetastoreAssignmentRequest {
|
|
77
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
78
|
+
accountId?: string | undefined;
|
|
79
|
+
/** Workspace ID. */
|
|
80
|
+
workspaceId?: bigint | undefined;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** The workspace metastore assignment was successfully returned. */
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
85
|
+
export interface AccountsGetMetastoreAssignmentRequest_Response {
|
|
86
|
+
metastoreAssignment?: MetastoreAssignment | undefined;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Get a metastore for a given account */
|
|
90
|
+
export interface AccountsGetMetastoreRequest {
|
|
91
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
92
|
+
accountId?: string | undefined;
|
|
93
|
+
/** Unity Catalog metastore ID */
|
|
94
|
+
metastoreId?: string | undefined;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** The metastore was successfully returned. */
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
99
|
+
export interface AccountsGetMetastoreRequest_Response {
|
|
100
|
+
metastoreInfo?: MetastoreInfo | undefined;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** List the metastores for an account */
|
|
104
|
+
export interface AccountsListMetastoresRequest {
|
|
105
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
106
|
+
accountId?: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Metastores were returned successfully. */
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
111
|
+
export interface AccountsListMetastoresRequest_Response {
|
|
112
|
+
/** An array of metastore information objects. */
|
|
113
|
+
metastores?: MetastoreInfo[] | undefined;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Lists all workspace IDs for a given metastore */
|
|
117
|
+
export interface AccountsListWorkspaceIdsForMetastoreRequest {
|
|
118
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
119
|
+
accountId?: string | undefined;
|
|
120
|
+
/** Unity Catalog metastore ID */
|
|
121
|
+
metastoreId?: string | undefined;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** The metastore assignments were successfully returned. */
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
126
|
+
export interface AccountsListWorkspaceIdsForMetastoreRequest_Response {
|
|
127
|
+
workspaceIds?: bigint[] | undefined;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** The metastore assignment to update. */
|
|
131
|
+
export interface AccountsUpdateMetastoreAssignmentRequest {
|
|
132
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
133
|
+
accountId?: string | undefined;
|
|
134
|
+
/** Workspace ID. */
|
|
135
|
+
workspaceId?: bigint | undefined;
|
|
136
|
+
/** Unity Catalog metastore ID */
|
|
137
|
+
metastoreId?: string | undefined;
|
|
138
|
+
metastoreAssignment?: MetastoreAssignment | undefined;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** The metastore assignment was successfully updated. */
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
143
|
+
export interface AccountsUpdateMetastoreAssignmentRequest_Response {}
|
|
144
|
+
|
|
145
|
+
/** Properties of the metastore to change. */
|
|
146
|
+
export interface AccountsUpdateMetastoreRequest {
|
|
147
|
+
/** <Databricks> account ID of any type. For non-E2 account types, get your account ID from the [Accounts Console](https://docs.databricks.com/administration-guide/account-settings/usage.html) */
|
|
148
|
+
accountId?: string | undefined;
|
|
149
|
+
/** Unity Catalog metastore ID */
|
|
150
|
+
metastoreId?: string | undefined;
|
|
151
|
+
/** Properties of the metastore to change. */
|
|
152
|
+
metastoreInfo?: UpdateAccountsMetastore | undefined;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** The metastore update request succeeded. */
|
|
156
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
157
|
+
export interface AccountsUpdateMetastoreRequest_Response {
|
|
158
|
+
metastoreInfo?: MetastoreInfo | undefined;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface CreateAccountsMetastore {
|
|
162
|
+
/** The user-specified name of the metastore. */
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
/** The storage root URL for metastore */
|
|
165
|
+
storageRoot?: string | undefined;
|
|
166
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
167
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
168
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
169
|
+
storageRootCredentialId?: string | undefined;
|
|
170
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
171
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
172
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
173
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
174
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
175
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
176
|
+
/** The owner of the metastore. */
|
|
177
|
+
owner?: string | undefined;
|
|
178
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
179
|
+
privilegeModelVersion?: string | undefined;
|
|
180
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
181
|
+
region?: string | undefined;
|
|
182
|
+
/** Unique identifier of metastore. */
|
|
183
|
+
metastoreId?: string | undefined;
|
|
184
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
185
|
+
createdAt?: bigint | undefined;
|
|
186
|
+
/** Username of metastore creator. */
|
|
187
|
+
createdBy?: string | undefined;
|
|
188
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
189
|
+
updatedAt?: bigint | undefined;
|
|
190
|
+
/** Username of user who last modified the metastore. */
|
|
191
|
+
updatedBy?: string | undefined;
|
|
192
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
193
|
+
storageRootCredentialName?: string | undefined;
|
|
194
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
195
|
+
cloud?: string | undefined;
|
|
196
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
197
|
+
globalMetastoreId?: string | undefined;
|
|
198
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
199
|
+
externalAccessEnabled?: boolean | undefined;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface CreateMetastoreAssignmentRequest {
|
|
203
|
+
/** A workspace ID. */
|
|
204
|
+
workspaceId?: bigint | undefined;
|
|
205
|
+
/** The unique ID of the metastore. */
|
|
206
|
+
metastoreId?: string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* The name of the default catalog in the metastore.
|
|
209
|
+
* This field is deprecated. Please use "Default Namespace API" to
|
|
210
|
+
* configure the default catalog for a <Databricks> workspace.
|
|
211
|
+
*/
|
|
212
|
+
defaultCatalogName?: string | undefined;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
216
|
+
export interface CreateMetastoreAssignmentRequest_Response {}
|
|
217
|
+
|
|
218
|
+
export interface CreateMetastoreRequest {
|
|
219
|
+
/** The user-specified name of the metastore. */
|
|
220
|
+
name?: string | undefined;
|
|
221
|
+
/** The storage root URL for metastore */
|
|
222
|
+
storageRoot?: string | undefined;
|
|
223
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
224
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
225
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
226
|
+
storageRootCredentialId?: string | undefined;
|
|
227
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
228
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
229
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
230
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
231
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
232
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
233
|
+
/** The owner of the metastore. */
|
|
234
|
+
owner?: string | undefined;
|
|
235
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
236
|
+
privilegeModelVersion?: string | undefined;
|
|
237
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
238
|
+
region?: string | undefined;
|
|
239
|
+
/** Unique identifier of metastore. */
|
|
240
|
+
metastoreId?: string | undefined;
|
|
241
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
242
|
+
createdAt?: bigint | undefined;
|
|
243
|
+
/** Username of metastore creator. */
|
|
244
|
+
createdBy?: string | undefined;
|
|
245
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
246
|
+
updatedAt?: bigint | undefined;
|
|
247
|
+
/** Username of user who last modified the metastore. */
|
|
248
|
+
updatedBy?: string | undefined;
|
|
249
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
250
|
+
storageRootCredentialName?: string | undefined;
|
|
251
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
252
|
+
cloud?: string | undefined;
|
|
253
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
254
|
+
globalMetastoreId?: string | undefined;
|
|
255
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
256
|
+
externalAccessEnabled?: boolean | undefined;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface DeleteMetastoreAssignmentRequest {
|
|
260
|
+
/** A workspace ID. */
|
|
261
|
+
workspaceId?: bigint | undefined;
|
|
262
|
+
/** Query for the ID of the metastore to delete. */
|
|
263
|
+
metastoreId?: string | undefined;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
267
|
+
export interface DeleteMetastoreAssignmentRequest_Response {}
|
|
268
|
+
|
|
269
|
+
export interface DeleteMetastoreRequest {
|
|
270
|
+
/** Unique ID of the metastore. */
|
|
271
|
+
id?: string | undefined;
|
|
272
|
+
/** Force deletion even if the metastore is not empty. Default is false. */
|
|
273
|
+
force?: boolean | undefined;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
277
|
+
export interface DeleteMetastoreRequest_Response {}
|
|
278
|
+
|
|
279
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
280
|
+
export interface DeltaSharingScope {}
|
|
281
|
+
|
|
282
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
283
|
+
export interface GetCurrentMetastoreAssignmentRequest {}
|
|
284
|
+
|
|
285
|
+
export interface GetMetastoreRequest {
|
|
286
|
+
/** Unique ID of the metastore. */
|
|
287
|
+
id?: string | undefined;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
291
|
+
export interface GetMetastoreSummaryRequest {}
|
|
292
|
+
|
|
293
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
294
|
+
export interface GetMetastoreSummaryRequest_Response {
|
|
295
|
+
/** Unique identifier of metastore. */
|
|
296
|
+
metastoreId?: string | undefined;
|
|
297
|
+
/** The user-specified name of the metastore. */
|
|
298
|
+
name?: string | undefined;
|
|
299
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
300
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
301
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
302
|
+
storageRootCredentialId?: string | undefined;
|
|
303
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
304
|
+
cloud?: string | undefined;
|
|
305
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
306
|
+
region?: string | undefined;
|
|
307
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
308
|
+
globalMetastoreId?: string | undefined;
|
|
309
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
310
|
+
storageRootCredentialName?: string | undefined;
|
|
311
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
312
|
+
privilegeModelVersion?: string | undefined;
|
|
313
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
314
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
315
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
316
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
317
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
318
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
319
|
+
/** The storage root URL for metastore */
|
|
320
|
+
storageRoot?: string | undefined;
|
|
321
|
+
/** The owner of the metastore. */
|
|
322
|
+
owner?: string | undefined;
|
|
323
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
324
|
+
createdAt?: bigint | undefined;
|
|
325
|
+
/** Username of metastore creator. */
|
|
326
|
+
createdBy?: string | undefined;
|
|
327
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
328
|
+
updatedAt?: bigint | undefined;
|
|
329
|
+
/** Username of user who last modified the metastore. */
|
|
330
|
+
updatedBy?: string | undefined;
|
|
331
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
332
|
+
externalAccessEnabled?: boolean | undefined;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export interface ListMetastoresRequest {
|
|
336
|
+
/**
|
|
337
|
+
* Maximum number of metastores to return.
|
|
338
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
339
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
340
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
341
|
+
* - If not set, all the metastores are returned (not recommended).
|
|
342
|
+
* - Note: The number of returned metastores might be less than the specified max_results size, even zero.
|
|
343
|
+
* The only definitive indication that no further metastores can be fetched is when the next_page_token is unset from the response.
|
|
344
|
+
*/
|
|
345
|
+
maxResults?: number | undefined;
|
|
346
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
347
|
+
pageToken?: string | undefined;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
351
|
+
export interface ListMetastoresRequest_Response {
|
|
352
|
+
/** An array of metastore information objects. */
|
|
353
|
+
metastores?: MetastoreInfo[] | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
356
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
357
|
+
*/
|
|
358
|
+
nextPageToken?: string | undefined;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface MetastoreAssignment {
|
|
362
|
+
/** The unique ID of the <Databricks> workspace. */
|
|
363
|
+
workspaceId?: bigint | undefined;
|
|
364
|
+
/** The unique ID of the metastore. */
|
|
365
|
+
metastoreId?: string | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* The name of the default catalog in the metastore. This field is deprecated.
|
|
368
|
+
* Please use "Default Namespace API" to configure the default catalog for a <Databricks> workspace.
|
|
369
|
+
*/
|
|
370
|
+
defaultCatalogName?: string | undefined;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface MetastoreInfo {
|
|
374
|
+
/** The user-specified name of the metastore. */
|
|
375
|
+
name?: string | undefined;
|
|
376
|
+
/** The storage root URL for metastore */
|
|
377
|
+
storageRoot?: string | undefined;
|
|
378
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
379
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
380
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
381
|
+
storageRootCredentialId?: string | undefined;
|
|
382
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
383
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
384
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
385
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
386
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
387
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
388
|
+
/** The owner of the metastore. */
|
|
389
|
+
owner?: string | undefined;
|
|
390
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
391
|
+
privilegeModelVersion?: string | undefined;
|
|
392
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
393
|
+
region?: string | undefined;
|
|
394
|
+
/** Unique identifier of metastore. */
|
|
395
|
+
metastoreId?: string | undefined;
|
|
396
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
397
|
+
createdAt?: bigint | undefined;
|
|
398
|
+
/** Username of metastore creator. */
|
|
399
|
+
createdBy?: string | undefined;
|
|
400
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
401
|
+
updatedAt?: bigint | undefined;
|
|
402
|
+
/** Username of user who last modified the metastore. */
|
|
403
|
+
updatedBy?: string | undefined;
|
|
404
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
405
|
+
storageRootCredentialName?: string | undefined;
|
|
406
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
407
|
+
cloud?: string | undefined;
|
|
408
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
409
|
+
globalMetastoreId?: string | undefined;
|
|
410
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
411
|
+
externalAccessEnabled?: boolean | undefined;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface UpdateAccountsMetastore {
|
|
415
|
+
/** The user-specified name of the metastore. */
|
|
416
|
+
name?: string | undefined;
|
|
417
|
+
/** The storage root URL for metastore */
|
|
418
|
+
storageRoot?: string | undefined;
|
|
419
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
420
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
421
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
422
|
+
storageRootCredentialId?: string | undefined;
|
|
423
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
424
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
425
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
426
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
427
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
428
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
429
|
+
/** The owner of the metastore. */
|
|
430
|
+
owner?: string | undefined;
|
|
431
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
432
|
+
privilegeModelVersion?: string | undefined;
|
|
433
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
434
|
+
region?: string | undefined;
|
|
435
|
+
/** Unique identifier of metastore. */
|
|
436
|
+
metastoreId?: string | undefined;
|
|
437
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
438
|
+
createdAt?: bigint | undefined;
|
|
439
|
+
/** Username of metastore creator. */
|
|
440
|
+
createdBy?: string | undefined;
|
|
441
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
442
|
+
updatedAt?: bigint | undefined;
|
|
443
|
+
/** Username of user who last modified the metastore. */
|
|
444
|
+
updatedBy?: string | undefined;
|
|
445
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
446
|
+
storageRootCredentialName?: string | undefined;
|
|
447
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
448
|
+
cloud?: string | undefined;
|
|
449
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
450
|
+
globalMetastoreId?: string | undefined;
|
|
451
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
452
|
+
externalAccessEnabled?: boolean | undefined;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface UpdateMetastoreAssignmentRequest {
|
|
456
|
+
/** A workspace ID. */
|
|
457
|
+
workspaceId?: bigint | undefined;
|
|
458
|
+
/** The unique ID of the metastore. */
|
|
459
|
+
metastoreId?: string | undefined;
|
|
460
|
+
/**
|
|
461
|
+
* The name of the default catalog in the metastore.
|
|
462
|
+
* This field is deprecated. Please use "Default Namespace API" to
|
|
463
|
+
* configure the default catalog for a <Databricks> workspace.
|
|
464
|
+
*/
|
|
465
|
+
defaultCatalogName?: string | undefined;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
469
|
+
export interface UpdateMetastoreAssignmentRequest_Response {}
|
|
470
|
+
|
|
471
|
+
export interface UpdateMetastoreRequest {
|
|
472
|
+
/** Unique ID of the metastore. */
|
|
473
|
+
id?: string | undefined;
|
|
474
|
+
/** New name for the metastore. */
|
|
475
|
+
newName?: string | undefined;
|
|
476
|
+
/** The user-specified name of the metastore. */
|
|
477
|
+
name?: string | undefined;
|
|
478
|
+
/** The storage root URL for metastore */
|
|
479
|
+
storageRoot?: string | undefined;
|
|
480
|
+
/** Unique identifier of the metastore's (Default) Data Access Configuration. */
|
|
481
|
+
defaultDataAccessConfigId?: string | undefined;
|
|
482
|
+
/** UUID of storage credential to access the metastore storage_root. */
|
|
483
|
+
storageRootCredentialId?: string | undefined;
|
|
484
|
+
/** The scope of Delta Sharing enabled for the metastore. */
|
|
485
|
+
deltaSharingScope?: DeltaSharingScope_Enum | undefined;
|
|
486
|
+
/** The lifetime of delta sharing recipient token in seconds. */
|
|
487
|
+
deltaSharingRecipientTokenLifetimeInSeconds?: bigint | undefined;
|
|
488
|
+
/** The organization name of a Delta Sharing entity, to be used in Databricks-to-Databricks Delta Sharing as the official name. */
|
|
489
|
+
deltaSharingOrganizationName?: string | undefined;
|
|
490
|
+
/** The owner of the metastore. */
|
|
491
|
+
owner?: string | undefined;
|
|
492
|
+
/** Privilege model version of the metastore, of the form `major.minor` (e.g., `1.0`). */
|
|
493
|
+
privilegeModelVersion?: string | undefined;
|
|
494
|
+
/** Cloud region which the metastore serves (e.g., `us-west-2`, `westus`). */
|
|
495
|
+
region?: string | undefined;
|
|
496
|
+
/** Unique identifier of metastore. */
|
|
497
|
+
metastoreId?: string | undefined;
|
|
498
|
+
/** Time at which this metastore was created, in epoch milliseconds. */
|
|
499
|
+
createdAt?: bigint | undefined;
|
|
500
|
+
/** Username of metastore creator. */
|
|
501
|
+
createdBy?: string | undefined;
|
|
502
|
+
/** Time at which the metastore was last modified, in epoch milliseconds. */
|
|
503
|
+
updatedAt?: bigint | undefined;
|
|
504
|
+
/** Username of user who last modified the metastore. */
|
|
505
|
+
updatedBy?: string | undefined;
|
|
506
|
+
/** Name of the storage credential to access the metastore storage_root. */
|
|
507
|
+
storageRootCredentialName?: string | undefined;
|
|
508
|
+
/** Cloud vendor of the metastore home shard (e.g., `aws`, `azure`, `gcp`). */
|
|
509
|
+
cloud?: string | undefined;
|
|
510
|
+
/** Globally unique metastore ID across clouds and regions, of the form `cloud:region:metastore_id`. */
|
|
511
|
+
globalMetastoreId?: string | undefined;
|
|
512
|
+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
|
|
513
|
+
externalAccessEnabled?: boolean | undefined;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
517
|
+
export const unmarshalAccountsCreateMetastoreAssignmentRequest_ResponseSchema: z.ZodType<AccountsCreateMetastoreAssignmentRequest_Response> =
|
|
518
|
+
z.object({});
|
|
519
|
+
|
|
520
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
521
|
+
export const unmarshalAccountsCreateMetastoreRequest_ResponseSchema: z.ZodType<AccountsCreateMetastoreRequest_Response> =
|
|
522
|
+
z
|
|
523
|
+
.object({
|
|
524
|
+
metastore_info: z.lazy(() => unmarshalMetastoreInfoSchema).optional(),
|
|
525
|
+
})
|
|
526
|
+
.transform(d => ({
|
|
527
|
+
metastoreInfo: d.metastore_info,
|
|
528
|
+
}));
|
|
529
|
+
|
|
530
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
531
|
+
export const unmarshalAccountsDeleteMetastoreAssignmentRequest_ResponseSchema: z.ZodType<AccountsDeleteMetastoreAssignmentRequest_Response> =
|
|
532
|
+
z.object({});
|
|
533
|
+
|
|
534
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
535
|
+
export const unmarshalAccountsDeleteMetastoreRequest_ResponseSchema: z.ZodType<AccountsDeleteMetastoreRequest_Response> =
|
|
536
|
+
z.object({});
|
|
537
|
+
|
|
538
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
539
|
+
export const unmarshalAccountsGetMetastoreAssignmentRequest_ResponseSchema: z.ZodType<AccountsGetMetastoreAssignmentRequest_Response> =
|
|
540
|
+
z
|
|
541
|
+
.object({
|
|
542
|
+
metastore_assignment: z
|
|
543
|
+
.lazy(() => unmarshalMetastoreAssignmentSchema)
|
|
544
|
+
.optional(),
|
|
545
|
+
})
|
|
546
|
+
.transform(d => ({
|
|
547
|
+
metastoreAssignment: d.metastore_assignment,
|
|
548
|
+
}));
|
|
549
|
+
|
|
550
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
551
|
+
export const unmarshalAccountsGetMetastoreRequest_ResponseSchema: z.ZodType<AccountsGetMetastoreRequest_Response> =
|
|
552
|
+
z
|
|
553
|
+
.object({
|
|
554
|
+
metastore_info: z.lazy(() => unmarshalMetastoreInfoSchema).optional(),
|
|
555
|
+
})
|
|
556
|
+
.transform(d => ({
|
|
557
|
+
metastoreInfo: d.metastore_info,
|
|
558
|
+
}));
|
|
559
|
+
|
|
560
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
561
|
+
export const unmarshalAccountsListMetastoresRequest_ResponseSchema: z.ZodType<AccountsListMetastoresRequest_Response> =
|
|
562
|
+
z
|
|
563
|
+
.object({
|
|
564
|
+
metastores: z
|
|
565
|
+
.array(z.lazy(() => unmarshalMetastoreInfoSchema))
|
|
566
|
+
.optional(),
|
|
567
|
+
})
|
|
568
|
+
.transform(d => ({
|
|
569
|
+
metastores: d.metastores,
|
|
570
|
+
}));
|
|
571
|
+
|
|
572
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
573
|
+
export const unmarshalAccountsListWorkspaceIdsForMetastoreRequest_ResponseSchema: z.ZodType<AccountsListWorkspaceIdsForMetastoreRequest_Response> =
|
|
574
|
+
z
|
|
575
|
+
.object({
|
|
576
|
+
workspace_ids: z
|
|
577
|
+
.array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))
|
|
578
|
+
.optional(),
|
|
579
|
+
})
|
|
580
|
+
.transform(d => ({
|
|
581
|
+
workspaceIds: d.workspace_ids,
|
|
582
|
+
}));
|
|
583
|
+
|
|
584
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
585
|
+
export const unmarshalAccountsUpdateMetastoreAssignmentRequest_ResponseSchema: z.ZodType<AccountsUpdateMetastoreAssignmentRequest_Response> =
|
|
586
|
+
z.object({});
|
|
587
|
+
|
|
588
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
589
|
+
export const unmarshalAccountsUpdateMetastoreRequest_ResponseSchema: z.ZodType<AccountsUpdateMetastoreRequest_Response> =
|
|
590
|
+
z
|
|
591
|
+
.object({
|
|
592
|
+
metastore_info: z.lazy(() => unmarshalMetastoreInfoSchema).optional(),
|
|
593
|
+
})
|
|
594
|
+
.transform(d => ({
|
|
595
|
+
metastoreInfo: d.metastore_info,
|
|
596
|
+
}));
|
|
597
|
+
|
|
598
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
599
|
+
export const unmarshalCreateMetastoreAssignmentRequest_ResponseSchema: z.ZodType<CreateMetastoreAssignmentRequest_Response> =
|
|
600
|
+
z.object({});
|
|
601
|
+
|
|
602
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
603
|
+
export const unmarshalDeleteMetastoreAssignmentRequest_ResponseSchema: z.ZodType<DeleteMetastoreAssignmentRequest_Response> =
|
|
604
|
+
z.object({});
|
|
605
|
+
|
|
606
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
607
|
+
export const unmarshalDeleteMetastoreRequest_ResponseSchema: z.ZodType<DeleteMetastoreRequest_Response> =
|
|
608
|
+
z.object({});
|
|
609
|
+
|
|
610
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
611
|
+
export const unmarshalGetMetastoreSummaryRequest_ResponseSchema: z.ZodType<GetMetastoreSummaryRequest_Response> =
|
|
612
|
+
z
|
|
613
|
+
.object({
|
|
614
|
+
metastore_id: z.string().optional(),
|
|
615
|
+
name: z.string().optional(),
|
|
616
|
+
default_data_access_config_id: z.string().optional(),
|
|
617
|
+
storage_root_credential_id: z.string().optional(),
|
|
618
|
+
cloud: z.string().optional(),
|
|
619
|
+
region: z.string().optional(),
|
|
620
|
+
global_metastore_id: z.string().optional(),
|
|
621
|
+
storage_root_credential_name: z.string().optional(),
|
|
622
|
+
privilege_model_version: z.string().optional(),
|
|
623
|
+
delta_sharing_scope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
624
|
+
delta_sharing_recipient_token_lifetime_in_seconds: z
|
|
625
|
+
.union([z.number(), z.bigint()])
|
|
626
|
+
.transform(v => BigInt(v))
|
|
627
|
+
.optional(),
|
|
628
|
+
delta_sharing_organization_name: z.string().optional(),
|
|
629
|
+
storage_root: z.string().optional(),
|
|
630
|
+
owner: z.string().optional(),
|
|
631
|
+
created_at: z
|
|
632
|
+
.union([z.number(), z.bigint()])
|
|
633
|
+
.transform(v => BigInt(v))
|
|
634
|
+
.optional(),
|
|
635
|
+
created_by: z.string().optional(),
|
|
636
|
+
updated_at: z
|
|
637
|
+
.union([z.number(), z.bigint()])
|
|
638
|
+
.transform(v => BigInt(v))
|
|
639
|
+
.optional(),
|
|
640
|
+
updated_by: z.string().optional(),
|
|
641
|
+
external_access_enabled: z.boolean().optional(),
|
|
642
|
+
})
|
|
643
|
+
.transform(d => ({
|
|
644
|
+
metastoreId: d.metastore_id,
|
|
645
|
+
name: d.name,
|
|
646
|
+
defaultDataAccessConfigId: d.default_data_access_config_id,
|
|
647
|
+
storageRootCredentialId: d.storage_root_credential_id,
|
|
648
|
+
cloud: d.cloud,
|
|
649
|
+
region: d.region,
|
|
650
|
+
globalMetastoreId: d.global_metastore_id,
|
|
651
|
+
storageRootCredentialName: d.storage_root_credential_name,
|
|
652
|
+
privilegeModelVersion: d.privilege_model_version,
|
|
653
|
+
deltaSharingScope: d.delta_sharing_scope,
|
|
654
|
+
deltaSharingRecipientTokenLifetimeInSeconds:
|
|
655
|
+
d.delta_sharing_recipient_token_lifetime_in_seconds,
|
|
656
|
+
deltaSharingOrganizationName: d.delta_sharing_organization_name,
|
|
657
|
+
storageRoot: d.storage_root,
|
|
658
|
+
owner: d.owner,
|
|
659
|
+
createdAt: d.created_at,
|
|
660
|
+
createdBy: d.created_by,
|
|
661
|
+
updatedAt: d.updated_at,
|
|
662
|
+
updatedBy: d.updated_by,
|
|
663
|
+
externalAccessEnabled: d.external_access_enabled,
|
|
664
|
+
}));
|
|
665
|
+
|
|
666
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
667
|
+
export const unmarshalListMetastoresRequest_ResponseSchema: z.ZodType<ListMetastoresRequest_Response> =
|
|
668
|
+
z
|
|
669
|
+
.object({
|
|
670
|
+
metastores: z
|
|
671
|
+
.array(z.lazy(() => unmarshalMetastoreInfoSchema))
|
|
672
|
+
.optional(),
|
|
673
|
+
next_page_token: z.string().optional(),
|
|
674
|
+
})
|
|
675
|
+
.transform(d => ({
|
|
676
|
+
metastores: d.metastores,
|
|
677
|
+
nextPageToken: d.next_page_token,
|
|
678
|
+
}));
|
|
679
|
+
|
|
680
|
+
export const unmarshalMetastoreAssignmentSchema: z.ZodType<MetastoreAssignment> =
|
|
681
|
+
z
|
|
682
|
+
.object({
|
|
683
|
+
workspace_id: z
|
|
684
|
+
.union([z.number(), z.bigint()])
|
|
685
|
+
.transform(v => BigInt(v))
|
|
686
|
+
.optional(),
|
|
687
|
+
metastore_id: z.string().optional(),
|
|
688
|
+
default_catalog_name: z.string().optional(),
|
|
689
|
+
})
|
|
690
|
+
.transform(d => ({
|
|
691
|
+
workspaceId: d.workspace_id,
|
|
692
|
+
metastoreId: d.metastore_id,
|
|
693
|
+
defaultCatalogName: d.default_catalog_name,
|
|
694
|
+
}));
|
|
695
|
+
|
|
696
|
+
export const unmarshalMetastoreInfoSchema: z.ZodType<MetastoreInfo> = z
|
|
697
|
+
.object({
|
|
698
|
+
name: z.string().optional(),
|
|
699
|
+
storage_root: z.string().optional(),
|
|
700
|
+
default_data_access_config_id: z.string().optional(),
|
|
701
|
+
storage_root_credential_id: z.string().optional(),
|
|
702
|
+
delta_sharing_scope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
703
|
+
delta_sharing_recipient_token_lifetime_in_seconds: z
|
|
704
|
+
.union([z.number(), z.bigint()])
|
|
705
|
+
.transform(v => BigInt(v))
|
|
706
|
+
.optional(),
|
|
707
|
+
delta_sharing_organization_name: z.string().optional(),
|
|
708
|
+
owner: z.string().optional(),
|
|
709
|
+
privilege_model_version: z.string().optional(),
|
|
710
|
+
region: z.string().optional(),
|
|
711
|
+
metastore_id: z.string().optional(),
|
|
712
|
+
created_at: z
|
|
713
|
+
.union([z.number(), z.bigint()])
|
|
714
|
+
.transform(v => BigInt(v))
|
|
715
|
+
.optional(),
|
|
716
|
+
created_by: z.string().optional(),
|
|
717
|
+
updated_at: z
|
|
718
|
+
.union([z.number(), z.bigint()])
|
|
719
|
+
.transform(v => BigInt(v))
|
|
720
|
+
.optional(),
|
|
721
|
+
updated_by: z.string().optional(),
|
|
722
|
+
storage_root_credential_name: z.string().optional(),
|
|
723
|
+
cloud: z.string().optional(),
|
|
724
|
+
global_metastore_id: z.string().optional(),
|
|
725
|
+
external_access_enabled: z.boolean().optional(),
|
|
726
|
+
})
|
|
727
|
+
.transform(d => ({
|
|
728
|
+
name: d.name,
|
|
729
|
+
storageRoot: d.storage_root,
|
|
730
|
+
defaultDataAccessConfigId: d.default_data_access_config_id,
|
|
731
|
+
storageRootCredentialId: d.storage_root_credential_id,
|
|
732
|
+
deltaSharingScope: d.delta_sharing_scope,
|
|
733
|
+
deltaSharingRecipientTokenLifetimeInSeconds:
|
|
734
|
+
d.delta_sharing_recipient_token_lifetime_in_seconds,
|
|
735
|
+
deltaSharingOrganizationName: d.delta_sharing_organization_name,
|
|
736
|
+
owner: d.owner,
|
|
737
|
+
privilegeModelVersion: d.privilege_model_version,
|
|
738
|
+
region: d.region,
|
|
739
|
+
metastoreId: d.metastore_id,
|
|
740
|
+
createdAt: d.created_at,
|
|
741
|
+
createdBy: d.created_by,
|
|
742
|
+
updatedAt: d.updated_at,
|
|
743
|
+
updatedBy: d.updated_by,
|
|
744
|
+
storageRootCredentialName: d.storage_root_credential_name,
|
|
745
|
+
cloud: d.cloud,
|
|
746
|
+
globalMetastoreId: d.global_metastore_id,
|
|
747
|
+
externalAccessEnabled: d.external_access_enabled,
|
|
748
|
+
}));
|
|
749
|
+
|
|
750
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
751
|
+
export const unmarshalUpdateMetastoreAssignmentRequest_ResponseSchema: z.ZodType<UpdateMetastoreAssignmentRequest_Response> =
|
|
752
|
+
z.object({});
|
|
753
|
+
|
|
754
|
+
export const marshalAccountsCreateMetastoreAssignmentRequestSchema: z.ZodType =
|
|
755
|
+
z
|
|
756
|
+
.object({
|
|
757
|
+
accountId: z.string().optional(),
|
|
758
|
+
workspaceId: z.bigint().optional(),
|
|
759
|
+
metastoreId: z.string().optional(),
|
|
760
|
+
metastoreAssignment: z
|
|
761
|
+
.lazy(() => marshalMetastoreAssignmentSchema)
|
|
762
|
+
.optional(),
|
|
763
|
+
})
|
|
764
|
+
.transform(d => ({
|
|
765
|
+
account_id: d.accountId,
|
|
766
|
+
workspace_id: d.workspaceId,
|
|
767
|
+
metastore_id: d.metastoreId,
|
|
768
|
+
metastore_assignment: d.metastoreAssignment,
|
|
769
|
+
}));
|
|
770
|
+
|
|
771
|
+
export const marshalAccountsCreateMetastoreRequestSchema: z.ZodType = z
|
|
772
|
+
.object({
|
|
773
|
+
accountId: z.string().optional(),
|
|
774
|
+
metastoreInfo: z
|
|
775
|
+
.lazy(() => marshalCreateAccountsMetastoreSchema)
|
|
776
|
+
.optional(),
|
|
777
|
+
})
|
|
778
|
+
.transform(d => ({
|
|
779
|
+
account_id: d.accountId,
|
|
780
|
+
metastore_info: d.metastoreInfo,
|
|
781
|
+
}));
|
|
782
|
+
|
|
783
|
+
export const marshalAccountsUpdateMetastoreAssignmentRequestSchema: z.ZodType =
|
|
784
|
+
z
|
|
785
|
+
.object({
|
|
786
|
+
accountId: z.string().optional(),
|
|
787
|
+
workspaceId: z.bigint().optional(),
|
|
788
|
+
metastoreId: z.string().optional(),
|
|
789
|
+
metastoreAssignment: z
|
|
790
|
+
.lazy(() => marshalMetastoreAssignmentSchema)
|
|
791
|
+
.optional(),
|
|
792
|
+
})
|
|
793
|
+
.transform(d => ({
|
|
794
|
+
account_id: d.accountId,
|
|
795
|
+
workspace_id: d.workspaceId,
|
|
796
|
+
metastore_id: d.metastoreId,
|
|
797
|
+
metastore_assignment: d.metastoreAssignment,
|
|
798
|
+
}));
|
|
799
|
+
|
|
800
|
+
export const marshalAccountsUpdateMetastoreRequestSchema: z.ZodType = z
|
|
801
|
+
.object({
|
|
802
|
+
accountId: z.string().optional(),
|
|
803
|
+
metastoreId: z.string().optional(),
|
|
804
|
+
metastoreInfo: z
|
|
805
|
+
.lazy(() => marshalUpdateAccountsMetastoreSchema)
|
|
806
|
+
.optional(),
|
|
807
|
+
})
|
|
808
|
+
.transform(d => ({
|
|
809
|
+
account_id: d.accountId,
|
|
810
|
+
metastore_id: d.metastoreId,
|
|
811
|
+
metastore_info: d.metastoreInfo,
|
|
812
|
+
}));
|
|
813
|
+
|
|
814
|
+
export const marshalCreateAccountsMetastoreSchema: z.ZodType = z
|
|
815
|
+
.object({
|
|
816
|
+
name: z.string().optional(),
|
|
817
|
+
storageRoot: z.string().optional(),
|
|
818
|
+
defaultDataAccessConfigId: z.string().optional(),
|
|
819
|
+
storageRootCredentialId: z.string().optional(),
|
|
820
|
+
deltaSharingScope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
821
|
+
deltaSharingRecipientTokenLifetimeInSeconds: z.bigint().optional(),
|
|
822
|
+
deltaSharingOrganizationName: z.string().optional(),
|
|
823
|
+
owner: z.string().optional(),
|
|
824
|
+
privilegeModelVersion: z.string().optional(),
|
|
825
|
+
region: z.string().optional(),
|
|
826
|
+
metastoreId: z.string().optional(),
|
|
827
|
+
createdAt: z.bigint().optional(),
|
|
828
|
+
createdBy: z.string().optional(),
|
|
829
|
+
updatedAt: z.bigint().optional(),
|
|
830
|
+
updatedBy: z.string().optional(),
|
|
831
|
+
storageRootCredentialName: z.string().optional(),
|
|
832
|
+
cloud: z.string().optional(),
|
|
833
|
+
globalMetastoreId: z.string().optional(),
|
|
834
|
+
externalAccessEnabled: z.boolean().optional(),
|
|
835
|
+
})
|
|
836
|
+
.transform(d => ({
|
|
837
|
+
name: d.name,
|
|
838
|
+
storage_root: d.storageRoot,
|
|
839
|
+
default_data_access_config_id: d.defaultDataAccessConfigId,
|
|
840
|
+
storage_root_credential_id: d.storageRootCredentialId,
|
|
841
|
+
delta_sharing_scope: d.deltaSharingScope,
|
|
842
|
+
delta_sharing_recipient_token_lifetime_in_seconds:
|
|
843
|
+
d.deltaSharingRecipientTokenLifetimeInSeconds,
|
|
844
|
+
delta_sharing_organization_name: d.deltaSharingOrganizationName,
|
|
845
|
+
owner: d.owner,
|
|
846
|
+
privilege_model_version: d.privilegeModelVersion,
|
|
847
|
+
region: d.region,
|
|
848
|
+
metastore_id: d.metastoreId,
|
|
849
|
+
created_at: d.createdAt,
|
|
850
|
+
created_by: d.createdBy,
|
|
851
|
+
updated_at: d.updatedAt,
|
|
852
|
+
updated_by: d.updatedBy,
|
|
853
|
+
storage_root_credential_name: d.storageRootCredentialName,
|
|
854
|
+
cloud: d.cloud,
|
|
855
|
+
global_metastore_id: d.globalMetastoreId,
|
|
856
|
+
external_access_enabled: d.externalAccessEnabled,
|
|
857
|
+
}));
|
|
858
|
+
|
|
859
|
+
export const marshalCreateMetastoreAssignmentRequestSchema: z.ZodType = z
|
|
860
|
+
.object({
|
|
861
|
+
workspaceId: z.bigint().optional(),
|
|
862
|
+
metastoreId: z.string().optional(),
|
|
863
|
+
defaultCatalogName: z.string().optional(),
|
|
864
|
+
})
|
|
865
|
+
.transform(d => ({
|
|
866
|
+
workspace_id: d.workspaceId,
|
|
867
|
+
metastore_id: d.metastoreId,
|
|
868
|
+
default_catalog_name: d.defaultCatalogName,
|
|
869
|
+
}));
|
|
870
|
+
|
|
871
|
+
export const marshalCreateMetastoreRequestSchema: z.ZodType = z
|
|
872
|
+
.object({
|
|
873
|
+
name: z.string().optional(),
|
|
874
|
+
storageRoot: z.string().optional(),
|
|
875
|
+
defaultDataAccessConfigId: z.string().optional(),
|
|
876
|
+
storageRootCredentialId: z.string().optional(),
|
|
877
|
+
deltaSharingScope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
878
|
+
deltaSharingRecipientTokenLifetimeInSeconds: z.bigint().optional(),
|
|
879
|
+
deltaSharingOrganizationName: z.string().optional(),
|
|
880
|
+
owner: z.string().optional(),
|
|
881
|
+
privilegeModelVersion: z.string().optional(),
|
|
882
|
+
region: z.string().optional(),
|
|
883
|
+
metastoreId: z.string().optional(),
|
|
884
|
+
createdAt: z.bigint().optional(),
|
|
885
|
+
createdBy: z.string().optional(),
|
|
886
|
+
updatedAt: z.bigint().optional(),
|
|
887
|
+
updatedBy: z.string().optional(),
|
|
888
|
+
storageRootCredentialName: z.string().optional(),
|
|
889
|
+
cloud: z.string().optional(),
|
|
890
|
+
globalMetastoreId: z.string().optional(),
|
|
891
|
+
externalAccessEnabled: z.boolean().optional(),
|
|
892
|
+
})
|
|
893
|
+
.transform(d => ({
|
|
894
|
+
name: d.name,
|
|
895
|
+
storage_root: d.storageRoot,
|
|
896
|
+
default_data_access_config_id: d.defaultDataAccessConfigId,
|
|
897
|
+
storage_root_credential_id: d.storageRootCredentialId,
|
|
898
|
+
delta_sharing_scope: d.deltaSharingScope,
|
|
899
|
+
delta_sharing_recipient_token_lifetime_in_seconds:
|
|
900
|
+
d.deltaSharingRecipientTokenLifetimeInSeconds,
|
|
901
|
+
delta_sharing_organization_name: d.deltaSharingOrganizationName,
|
|
902
|
+
owner: d.owner,
|
|
903
|
+
privilege_model_version: d.privilegeModelVersion,
|
|
904
|
+
region: d.region,
|
|
905
|
+
metastore_id: d.metastoreId,
|
|
906
|
+
created_at: d.createdAt,
|
|
907
|
+
created_by: d.createdBy,
|
|
908
|
+
updated_at: d.updatedAt,
|
|
909
|
+
updated_by: d.updatedBy,
|
|
910
|
+
storage_root_credential_name: d.storageRootCredentialName,
|
|
911
|
+
cloud: d.cloud,
|
|
912
|
+
global_metastore_id: d.globalMetastoreId,
|
|
913
|
+
external_access_enabled: d.externalAccessEnabled,
|
|
914
|
+
}));
|
|
915
|
+
|
|
916
|
+
export const marshalMetastoreAssignmentSchema: z.ZodType = z
|
|
917
|
+
.object({
|
|
918
|
+
workspaceId: z.bigint().optional(),
|
|
919
|
+
metastoreId: z.string().optional(),
|
|
920
|
+
defaultCatalogName: z.string().optional(),
|
|
921
|
+
})
|
|
922
|
+
.transform(d => ({
|
|
923
|
+
workspace_id: d.workspaceId,
|
|
924
|
+
metastore_id: d.metastoreId,
|
|
925
|
+
default_catalog_name: d.defaultCatalogName,
|
|
926
|
+
}));
|
|
927
|
+
|
|
928
|
+
export const marshalUpdateAccountsMetastoreSchema: z.ZodType = z
|
|
929
|
+
.object({
|
|
930
|
+
name: z.string().optional(),
|
|
931
|
+
storageRoot: z.string().optional(),
|
|
932
|
+
defaultDataAccessConfigId: z.string().optional(),
|
|
933
|
+
storageRootCredentialId: z.string().optional(),
|
|
934
|
+
deltaSharingScope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
935
|
+
deltaSharingRecipientTokenLifetimeInSeconds: z.bigint().optional(),
|
|
936
|
+
deltaSharingOrganizationName: z.string().optional(),
|
|
937
|
+
owner: z.string().optional(),
|
|
938
|
+
privilegeModelVersion: z.string().optional(),
|
|
939
|
+
region: z.string().optional(),
|
|
940
|
+
metastoreId: z.string().optional(),
|
|
941
|
+
createdAt: z.bigint().optional(),
|
|
942
|
+
createdBy: z.string().optional(),
|
|
943
|
+
updatedAt: z.bigint().optional(),
|
|
944
|
+
updatedBy: z.string().optional(),
|
|
945
|
+
storageRootCredentialName: z.string().optional(),
|
|
946
|
+
cloud: z.string().optional(),
|
|
947
|
+
globalMetastoreId: z.string().optional(),
|
|
948
|
+
externalAccessEnabled: z.boolean().optional(),
|
|
949
|
+
})
|
|
950
|
+
.transform(d => ({
|
|
951
|
+
name: d.name,
|
|
952
|
+
storage_root: d.storageRoot,
|
|
953
|
+
default_data_access_config_id: d.defaultDataAccessConfigId,
|
|
954
|
+
storage_root_credential_id: d.storageRootCredentialId,
|
|
955
|
+
delta_sharing_scope: d.deltaSharingScope,
|
|
956
|
+
delta_sharing_recipient_token_lifetime_in_seconds:
|
|
957
|
+
d.deltaSharingRecipientTokenLifetimeInSeconds,
|
|
958
|
+
delta_sharing_organization_name: d.deltaSharingOrganizationName,
|
|
959
|
+
owner: d.owner,
|
|
960
|
+
privilege_model_version: d.privilegeModelVersion,
|
|
961
|
+
region: d.region,
|
|
962
|
+
metastore_id: d.metastoreId,
|
|
963
|
+
created_at: d.createdAt,
|
|
964
|
+
created_by: d.createdBy,
|
|
965
|
+
updated_at: d.updatedAt,
|
|
966
|
+
updated_by: d.updatedBy,
|
|
967
|
+
storage_root_credential_name: d.storageRootCredentialName,
|
|
968
|
+
cloud: d.cloud,
|
|
969
|
+
global_metastore_id: d.globalMetastoreId,
|
|
970
|
+
external_access_enabled: d.externalAccessEnabled,
|
|
971
|
+
}));
|
|
972
|
+
|
|
973
|
+
export const marshalUpdateMetastoreAssignmentRequestSchema: z.ZodType = z
|
|
974
|
+
.object({
|
|
975
|
+
workspaceId: z.bigint().optional(),
|
|
976
|
+
metastoreId: z.string().optional(),
|
|
977
|
+
defaultCatalogName: z.string().optional(),
|
|
978
|
+
})
|
|
979
|
+
.transform(d => ({
|
|
980
|
+
workspace_id: d.workspaceId,
|
|
981
|
+
metastore_id: d.metastoreId,
|
|
982
|
+
default_catalog_name: d.defaultCatalogName,
|
|
983
|
+
}));
|
|
984
|
+
|
|
985
|
+
export const marshalUpdateMetastoreRequestSchema: z.ZodType = z
|
|
986
|
+
.object({
|
|
987
|
+
id: z.string().optional(),
|
|
988
|
+
newName: z.string().optional(),
|
|
989
|
+
name: z.string().optional(),
|
|
990
|
+
storageRoot: z.string().optional(),
|
|
991
|
+
defaultDataAccessConfigId: z.string().optional(),
|
|
992
|
+
storageRootCredentialId: z.string().optional(),
|
|
993
|
+
deltaSharingScope: z.enum(DeltaSharingScope_Enum).optional(),
|
|
994
|
+
deltaSharingRecipientTokenLifetimeInSeconds: z.bigint().optional(),
|
|
995
|
+
deltaSharingOrganizationName: z.string().optional(),
|
|
996
|
+
owner: z.string().optional(),
|
|
997
|
+
privilegeModelVersion: z.string().optional(),
|
|
998
|
+
region: z.string().optional(),
|
|
999
|
+
metastoreId: z.string().optional(),
|
|
1000
|
+
createdAt: z.bigint().optional(),
|
|
1001
|
+
createdBy: z.string().optional(),
|
|
1002
|
+
updatedAt: z.bigint().optional(),
|
|
1003
|
+
updatedBy: z.string().optional(),
|
|
1004
|
+
storageRootCredentialName: z.string().optional(),
|
|
1005
|
+
cloud: z.string().optional(),
|
|
1006
|
+
globalMetastoreId: z.string().optional(),
|
|
1007
|
+
externalAccessEnabled: z.boolean().optional(),
|
|
1008
|
+
})
|
|
1009
|
+
.transform(d => ({
|
|
1010
|
+
id: d.id,
|
|
1011
|
+
new_name: d.newName,
|
|
1012
|
+
name: d.name,
|
|
1013
|
+
storage_root: d.storageRoot,
|
|
1014
|
+
default_data_access_config_id: d.defaultDataAccessConfigId,
|
|
1015
|
+
storage_root_credential_id: d.storageRootCredentialId,
|
|
1016
|
+
delta_sharing_scope: d.deltaSharingScope,
|
|
1017
|
+
delta_sharing_recipient_token_lifetime_in_seconds:
|
|
1018
|
+
d.deltaSharingRecipientTokenLifetimeInSeconds,
|
|
1019
|
+
delta_sharing_organization_name: d.deltaSharingOrganizationName,
|
|
1020
|
+
owner: d.owner,
|
|
1021
|
+
privilege_model_version: d.privilegeModelVersion,
|
|
1022
|
+
region: d.region,
|
|
1023
|
+
metastore_id: d.metastoreId,
|
|
1024
|
+
created_at: d.createdAt,
|
|
1025
|
+
created_by: d.createdBy,
|
|
1026
|
+
updated_at: d.updatedAt,
|
|
1027
|
+
updated_by: d.updatedBy,
|
|
1028
|
+
storage_root_credential_name: d.storageRootCredentialName,
|
|
1029
|
+
cloud: d.cloud,
|
|
1030
|
+
global_metastore_id: d.globalMetastoreId,
|
|
1031
|
+
external_access_enabled: d.externalAccessEnabled,
|
|
1032
|
+
}));
|