@databricks/sdk-uc-catalogs 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 +39 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +219 -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 +310 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +328 -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 +278 -0
- package/src/v1/index.ts +31 -0
- package/src/v1/model.ts +632 -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
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum CatalogIsolationMode {
|
|
3
|
+
OPEN = "OPEN",
|
|
4
|
+
ISOLATED = "ISOLATED"
|
|
5
|
+
}
|
|
6
|
+
/** The type of the catalog. */
|
|
7
|
+
export declare enum CatalogType {
|
|
8
|
+
MANAGED_CATALOG = "MANAGED_CATALOG",
|
|
9
|
+
DELTASHARING_CATALOG = "DELTASHARING_CATALOG",
|
|
10
|
+
SYSTEM_CATALOG = "SYSTEM_CATALOG",
|
|
11
|
+
INTERNAL_CATALOG = "INTERNAL_CATALOG",
|
|
12
|
+
FOREIGN_CATALOG = "FOREIGN_CATALOG",
|
|
13
|
+
MANAGED_ONLINE_CATALOG = "MANAGED_ONLINE_CATALOG"
|
|
14
|
+
}
|
|
15
|
+
/** The type of Unity Catalog securable. */
|
|
16
|
+
export declare enum SecurableType {
|
|
17
|
+
CATALOG = "CATALOG",
|
|
18
|
+
SCHEMA = "SCHEMA",
|
|
19
|
+
TABLE = "TABLE",
|
|
20
|
+
STORAGE_CREDENTIAL = "STORAGE_CREDENTIAL",
|
|
21
|
+
EXTERNAL_LOCATION = "EXTERNAL_LOCATION",
|
|
22
|
+
FUNCTION = "FUNCTION",
|
|
23
|
+
SHARE = "SHARE",
|
|
24
|
+
PROVIDER = "PROVIDER",
|
|
25
|
+
RECIPIENT = "RECIPIENT",
|
|
26
|
+
CLEAN_ROOM = "CLEAN_ROOM",
|
|
27
|
+
METASTORE = "METASTORE",
|
|
28
|
+
PIPELINE = "PIPELINE",
|
|
29
|
+
VOLUME = "VOLUME",
|
|
30
|
+
CONNECTION = "CONNECTION",
|
|
31
|
+
CREDENTIAL = "CREDENTIAL",
|
|
32
|
+
EXTERNAL_METADATA = "EXTERNAL_METADATA",
|
|
33
|
+
/** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
|
|
34
|
+
STAGING_TABLE = "STAGING_TABLE"
|
|
35
|
+
}
|
|
36
|
+
export declare enum ProvisioningInfo_State {
|
|
37
|
+
STATE_UNSPECIFIED = "STATE_UNSPECIFIED",
|
|
38
|
+
PROVISIONING = "PROVISIONING",
|
|
39
|
+
ACTIVE = "ACTIVE",
|
|
40
|
+
FAILED = "FAILED",
|
|
41
|
+
DELETING = "DELETING",
|
|
42
|
+
UPDATING = "UPDATING",
|
|
43
|
+
DEGRADED = "DEGRADED"
|
|
44
|
+
}
|
|
45
|
+
export interface AzureEncryptionSettings {
|
|
46
|
+
azureTenantId?: string | undefined;
|
|
47
|
+
azureCmkAccessConnectorId?: string | undefined;
|
|
48
|
+
azureCmkManagedIdentityId?: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface CatalogInfo {
|
|
51
|
+
/** Name of catalog. */
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
/** Username of current owner of catalog. */
|
|
54
|
+
owner?: string | undefined;
|
|
55
|
+
/** User-provided free-form text description. */
|
|
56
|
+
comment?: string | undefined;
|
|
57
|
+
/** Storage root URL for managed tables within catalog. */
|
|
58
|
+
storageRoot?: string | undefined;
|
|
59
|
+
/** Whether predictive optimization should be enabled for this object and objects under it. */
|
|
60
|
+
enablePredictiveOptimization?: string | undefined;
|
|
61
|
+
catalogType?: CatalogType | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* The name of delta sharing provider.
|
|
64
|
+
*
|
|
65
|
+
* A Delta Sharing catalog is a catalog that is based on a Delta share on a remote sharing server.
|
|
66
|
+
*/
|
|
67
|
+
providerName?: string | undefined;
|
|
68
|
+
/** The name of the share under the share provider. */
|
|
69
|
+
shareName?: string | undefined;
|
|
70
|
+
/** The name of the connection to an external data source. */
|
|
71
|
+
connectionName?: string | undefined;
|
|
72
|
+
/** Unique identifier of parent metastore. */
|
|
73
|
+
metastoreId?: string | undefined;
|
|
74
|
+
/** Time at which this catalog was created, in epoch milliseconds. */
|
|
75
|
+
createdAt?: bigint | undefined;
|
|
76
|
+
/** Username of catalog creator. */
|
|
77
|
+
createdBy?: string | undefined;
|
|
78
|
+
/** Time at which this catalog was last modified, in epoch milliseconds. */
|
|
79
|
+
updatedAt?: bigint | undefined;
|
|
80
|
+
/** Username of user who last modified catalog. */
|
|
81
|
+
updatedBy?: string | undefined;
|
|
82
|
+
/** Storage Location URL (full path) for managed tables within catalog. */
|
|
83
|
+
storageLocation?: string | undefined;
|
|
84
|
+
/** Whether the current securable is accessible from all workspaces or a specific set of workspaces. */
|
|
85
|
+
isolationMode?: CatalogIsolationMode | undefined;
|
|
86
|
+
effectivePredictiveOptimizationFlag?: EffectivePredictiveOptimizationFlag | undefined;
|
|
87
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
88
|
+
browseOnly?: boolean | undefined;
|
|
89
|
+
provisioningInfo?: ProvisioningInfo | undefined;
|
|
90
|
+
/** The full name of the catalog. Corresponds with the name field. */
|
|
91
|
+
fullName?: string | undefined;
|
|
92
|
+
securableType?: SecurableType | undefined;
|
|
93
|
+
/** Control CMK encryption for managed catalog data */
|
|
94
|
+
managedEncryptionSettings?: EncryptionSettings | undefined;
|
|
95
|
+
/** A map of key-value properties attached to the securable. */
|
|
96
|
+
properties?: Record<string, string> | undefined;
|
|
97
|
+
/** A map of key-value properties attached to the securable. */
|
|
98
|
+
options?: Record<string, string> | undefined;
|
|
99
|
+
}
|
|
100
|
+
export interface CatalogInfo_OptionsEntry {
|
|
101
|
+
key?: string | undefined;
|
|
102
|
+
value?: string | undefined;
|
|
103
|
+
}
|
|
104
|
+
export interface CatalogInfo_PropertiesEntry {
|
|
105
|
+
key?: string | undefined;
|
|
106
|
+
value?: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface CreateCatalogRequest {
|
|
109
|
+
/** Name of catalog. */
|
|
110
|
+
name?: string | undefined;
|
|
111
|
+
/** Username of current owner of catalog. */
|
|
112
|
+
owner?: string | undefined;
|
|
113
|
+
/** User-provided free-form text description. */
|
|
114
|
+
comment?: string | undefined;
|
|
115
|
+
/** Storage root URL for managed tables within catalog. */
|
|
116
|
+
storageRoot?: string | undefined;
|
|
117
|
+
/** Whether predictive optimization should be enabled for this object and objects under it. */
|
|
118
|
+
enablePredictiveOptimization?: string | undefined;
|
|
119
|
+
catalogType?: CatalogType | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The name of delta sharing provider.
|
|
122
|
+
*
|
|
123
|
+
* A Delta Sharing catalog is a catalog that is based on a Delta share on a remote sharing server.
|
|
124
|
+
*/
|
|
125
|
+
providerName?: string | undefined;
|
|
126
|
+
/** The name of the share under the share provider. */
|
|
127
|
+
shareName?: string | undefined;
|
|
128
|
+
/** The name of the connection to an external data source. */
|
|
129
|
+
connectionName?: string | undefined;
|
|
130
|
+
/** Unique identifier of parent metastore. */
|
|
131
|
+
metastoreId?: string | undefined;
|
|
132
|
+
/** Time at which this catalog was created, in epoch milliseconds. */
|
|
133
|
+
createdAt?: bigint | undefined;
|
|
134
|
+
/** Username of catalog creator. */
|
|
135
|
+
createdBy?: string | undefined;
|
|
136
|
+
/** Time at which this catalog was last modified, in epoch milliseconds. */
|
|
137
|
+
updatedAt?: bigint | undefined;
|
|
138
|
+
/** Username of user who last modified catalog. */
|
|
139
|
+
updatedBy?: string | undefined;
|
|
140
|
+
/** Storage Location URL (full path) for managed tables within catalog. */
|
|
141
|
+
storageLocation?: string | undefined;
|
|
142
|
+
/** Whether the current securable is accessible from all workspaces or a specific set of workspaces. */
|
|
143
|
+
isolationMode?: CatalogIsolationMode | undefined;
|
|
144
|
+
effectivePredictiveOptimizationFlag?: EffectivePredictiveOptimizationFlag | undefined;
|
|
145
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
146
|
+
browseOnly?: boolean | undefined;
|
|
147
|
+
provisioningInfo?: ProvisioningInfo | undefined;
|
|
148
|
+
/** The full name of the catalog. Corresponds with the name field. */
|
|
149
|
+
fullName?: string | undefined;
|
|
150
|
+
securableType?: SecurableType | undefined;
|
|
151
|
+
/** Control CMK encryption for managed catalog data */
|
|
152
|
+
managedEncryptionSettings?: EncryptionSettings | undefined;
|
|
153
|
+
/** A map of key-value properties attached to the securable. */
|
|
154
|
+
properties?: Record<string, string> | undefined;
|
|
155
|
+
/** A map of key-value properties attached to the securable. */
|
|
156
|
+
options?: Record<string, string> | undefined;
|
|
157
|
+
}
|
|
158
|
+
export interface CreateCatalogRequest_OptionsEntry {
|
|
159
|
+
key?: string | undefined;
|
|
160
|
+
value?: string | undefined;
|
|
161
|
+
}
|
|
162
|
+
export interface CreateCatalogRequest_PropertiesEntry {
|
|
163
|
+
key?: string | undefined;
|
|
164
|
+
value?: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface DeleteCatalogRequest {
|
|
167
|
+
/** The name of the catalog. */
|
|
168
|
+
nameArg?: string | undefined;
|
|
169
|
+
/** Force deletion even if the catalog is not empty. */
|
|
170
|
+
force?: boolean | undefined;
|
|
171
|
+
}
|
|
172
|
+
export interface DeleteCatalogRequest_Response {
|
|
173
|
+
}
|
|
174
|
+
export interface EffectivePredictiveOptimizationFlag {
|
|
175
|
+
/** Whether predictive optimization should be enabled for this object and objects under it. */
|
|
176
|
+
value?: string | undefined;
|
|
177
|
+
/** The type of the object from which the flag was inherited. If there was no inheritance, this field is left blank. */
|
|
178
|
+
inheritedFromType?: string | undefined;
|
|
179
|
+
/** The name of the object from which the flag was inherited. If there was no inheritance, this field is left blank. */
|
|
180
|
+
inheritedFromName?: string | undefined;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Encryption Settings are used to carry metadata for securable encryption at rest.
|
|
184
|
+
* Currently used for catalogs, we can use the information supplied here to interact with a CMK.
|
|
185
|
+
*/
|
|
186
|
+
export interface EncryptionSettings {
|
|
187
|
+
/** the CMK uuid in AWS and GCP, null otherwise. */
|
|
188
|
+
customerManagedKeyId?: string | undefined;
|
|
189
|
+
/** the AKV URL in Azure, null otherwise. */
|
|
190
|
+
azureKeyVaultKeyId?: string | undefined;
|
|
191
|
+
/** optional Azure settings - only required if an Azure CMK is used. */
|
|
192
|
+
azureEncryptionSettings?: AzureEncryptionSettings | undefined;
|
|
193
|
+
}
|
|
194
|
+
export interface GetCatalogRequest {
|
|
195
|
+
/** The name of the catalog. */
|
|
196
|
+
nameArg?: string | undefined;
|
|
197
|
+
/** Whether to include catalogs in the response for which the principal can only access selective metadata for */
|
|
198
|
+
includeBrowse?: boolean | undefined;
|
|
199
|
+
}
|
|
200
|
+
export interface ListCatalogsRequest {
|
|
201
|
+
/** Whether to include catalogs in the response for which the principal can only access selective metadata for */
|
|
202
|
+
includeBrowse?: boolean | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Maximum number of catalogs to return.
|
|
205
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
206
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
207
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
208
|
+
* - If not set, all valid catalogs are returned (not recommended).
|
|
209
|
+
* - Note: The number of returned catalogs might be less than the specified max_results size, even zero.
|
|
210
|
+
* The only definitive indication that no further catalogs can be fetched is when the next_page_token is unset from the response.
|
|
211
|
+
*/
|
|
212
|
+
maxResults?: number | undefined;
|
|
213
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
214
|
+
pageToken?: string | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* Whether to include catalogs not bound to the workspace.
|
|
217
|
+
* Effective only if the user has permission to update the catalog–workspace binding.
|
|
218
|
+
*/
|
|
219
|
+
includeUnbound?: boolean | undefined;
|
|
220
|
+
}
|
|
221
|
+
export interface ListCatalogsRequest_Response {
|
|
222
|
+
/** An array of catalog information objects. */
|
|
223
|
+
catalogs?: CatalogInfo[] | undefined;
|
|
224
|
+
/**
|
|
225
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
226
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
227
|
+
*/
|
|
228
|
+
nextPageToken?: string | undefined;
|
|
229
|
+
}
|
|
230
|
+
/** Status of an asynchronously provisioned resource. */
|
|
231
|
+
export interface ProvisioningInfo {
|
|
232
|
+
/** The provisioning state of the resource. */
|
|
233
|
+
state?: ProvisioningInfo_State | undefined;
|
|
234
|
+
}
|
|
235
|
+
export interface UpdateCatalogRequest {
|
|
236
|
+
/** The name of the catalog. */
|
|
237
|
+
nameArg?: string | undefined;
|
|
238
|
+
/** New name for the catalog. */
|
|
239
|
+
newName?: string | undefined;
|
|
240
|
+
/** Name of catalog. */
|
|
241
|
+
name?: string | undefined;
|
|
242
|
+
/** Username of current owner of catalog. */
|
|
243
|
+
owner?: string | undefined;
|
|
244
|
+
/** User-provided free-form text description. */
|
|
245
|
+
comment?: string | undefined;
|
|
246
|
+
/** Storage root URL for managed tables within catalog. */
|
|
247
|
+
storageRoot?: string | undefined;
|
|
248
|
+
/** Whether predictive optimization should be enabled for this object and objects under it. */
|
|
249
|
+
enablePredictiveOptimization?: string | undefined;
|
|
250
|
+
catalogType?: CatalogType | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* The name of delta sharing provider.
|
|
253
|
+
*
|
|
254
|
+
* A Delta Sharing catalog is a catalog that is based on a Delta share on a remote sharing server.
|
|
255
|
+
*/
|
|
256
|
+
providerName?: string | undefined;
|
|
257
|
+
/** The name of the share under the share provider. */
|
|
258
|
+
shareName?: string | undefined;
|
|
259
|
+
/** The name of the connection to an external data source. */
|
|
260
|
+
connectionName?: string | undefined;
|
|
261
|
+
/** Unique identifier of parent metastore. */
|
|
262
|
+
metastoreId?: string | undefined;
|
|
263
|
+
/** Time at which this catalog was created, in epoch milliseconds. */
|
|
264
|
+
createdAt?: bigint | undefined;
|
|
265
|
+
/** Username of catalog creator. */
|
|
266
|
+
createdBy?: string | undefined;
|
|
267
|
+
/** Time at which this catalog was last modified, in epoch milliseconds. */
|
|
268
|
+
updatedAt?: bigint | undefined;
|
|
269
|
+
/** Username of user who last modified catalog. */
|
|
270
|
+
updatedBy?: string | undefined;
|
|
271
|
+
/** Storage Location URL (full path) for managed tables within catalog. */
|
|
272
|
+
storageLocation?: string | undefined;
|
|
273
|
+
/** Whether the current securable is accessible from all workspaces or a specific set of workspaces. */
|
|
274
|
+
isolationMode?: CatalogIsolationMode | undefined;
|
|
275
|
+
effectivePredictiveOptimizationFlag?: EffectivePredictiveOptimizationFlag | undefined;
|
|
276
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
277
|
+
browseOnly?: boolean | undefined;
|
|
278
|
+
provisioningInfo?: ProvisioningInfo | undefined;
|
|
279
|
+
/** The full name of the catalog. Corresponds with the name field. */
|
|
280
|
+
fullName?: string | undefined;
|
|
281
|
+
securableType?: SecurableType | undefined;
|
|
282
|
+
/** Control CMK encryption for managed catalog data */
|
|
283
|
+
managedEncryptionSettings?: EncryptionSettings | undefined;
|
|
284
|
+
/** A map of key-value properties attached to the securable. */
|
|
285
|
+
properties?: Record<string, string> | undefined;
|
|
286
|
+
/** A map of key-value properties attached to the securable. */
|
|
287
|
+
options?: Record<string, string> | undefined;
|
|
288
|
+
}
|
|
289
|
+
export interface UpdateCatalogRequest_OptionsEntry {
|
|
290
|
+
key?: string | undefined;
|
|
291
|
+
value?: string | undefined;
|
|
292
|
+
}
|
|
293
|
+
export interface UpdateCatalogRequest_PropertiesEntry {
|
|
294
|
+
key?: string | undefined;
|
|
295
|
+
value?: string | undefined;
|
|
296
|
+
}
|
|
297
|
+
export declare const unmarshalAzureEncryptionSettingsSchema: z.ZodType<AzureEncryptionSettings>;
|
|
298
|
+
export declare const unmarshalCatalogInfoSchema: z.ZodType<CatalogInfo>;
|
|
299
|
+
export declare const unmarshalDeleteCatalogRequest_ResponseSchema: z.ZodType<DeleteCatalogRequest_Response>;
|
|
300
|
+
export declare const unmarshalEffectivePredictiveOptimizationFlagSchema: z.ZodType<EffectivePredictiveOptimizationFlag>;
|
|
301
|
+
export declare const unmarshalEncryptionSettingsSchema: z.ZodType<EncryptionSettings>;
|
|
302
|
+
export declare const unmarshalListCatalogsRequest_ResponseSchema: z.ZodType<ListCatalogsRequest_Response>;
|
|
303
|
+
export declare const unmarshalProvisioningInfoSchema: z.ZodType<ProvisioningInfo>;
|
|
304
|
+
export declare const marshalAzureEncryptionSettingsSchema: z.ZodType;
|
|
305
|
+
export declare const marshalCreateCatalogRequestSchema: z.ZodType;
|
|
306
|
+
export declare const marshalEffectivePredictiveOptimizationFlagSchema: z.ZodType;
|
|
307
|
+
export declare const marshalEncryptionSettingsSchema: z.ZodType;
|
|
308
|
+
export declare const marshalProvisioningInfoSchema: z.ZodType;
|
|
309
|
+
export declare const marshalUpdateCatalogRequestSchema: z.ZodType;
|
|
310
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,+BAA+B;AAC/B,oBAAY,WAAW;IACrB,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,sBAAsB,2BAA2B;CAClD;AAED,2CAA2C;AAC3C,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,wEAAwE;IACxE,aAAa,kBAAkB;CAChC;AAGD,oBAAY,sBAAsB;IAChC,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,yBAAyB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChD;AAED,MAAM,WAAW,WAAW;IAC1B,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,GA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AC,CAAC,OAAO,CAAC,4BAA4B,CASzF,CAAC;AAER,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAMnE,CAAC;AAEN,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAUhD,CAAC;AAEN,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAyD7C,CAAC;AAEN,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAU5D,CAAC;AAEN,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAY3C,CAAC;AAEN,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAMzC,CAAC;AAEN,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OA6D7C,CAAC"}
|
package/dist/v1/model.js
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export var CatalogIsolationMode;
|
|
4
|
+
(function (CatalogIsolationMode) {
|
|
5
|
+
CatalogIsolationMode["OPEN"] = "OPEN";
|
|
6
|
+
CatalogIsolationMode["ISOLATED"] = "ISOLATED";
|
|
7
|
+
})(CatalogIsolationMode || (CatalogIsolationMode = {}));
|
|
8
|
+
/** The type of the catalog. */
|
|
9
|
+
export var CatalogType;
|
|
10
|
+
(function (CatalogType) {
|
|
11
|
+
CatalogType["MANAGED_CATALOG"] = "MANAGED_CATALOG";
|
|
12
|
+
CatalogType["DELTASHARING_CATALOG"] = "DELTASHARING_CATALOG";
|
|
13
|
+
CatalogType["SYSTEM_CATALOG"] = "SYSTEM_CATALOG";
|
|
14
|
+
CatalogType["INTERNAL_CATALOG"] = "INTERNAL_CATALOG";
|
|
15
|
+
CatalogType["FOREIGN_CATALOG"] = "FOREIGN_CATALOG";
|
|
16
|
+
CatalogType["MANAGED_ONLINE_CATALOG"] = "MANAGED_ONLINE_CATALOG";
|
|
17
|
+
})(CatalogType || (CatalogType = {}));
|
|
18
|
+
/** The type of Unity Catalog securable. */
|
|
19
|
+
export var SecurableType;
|
|
20
|
+
(function (SecurableType) {
|
|
21
|
+
SecurableType["CATALOG"] = "CATALOG";
|
|
22
|
+
SecurableType["SCHEMA"] = "SCHEMA";
|
|
23
|
+
SecurableType["TABLE"] = "TABLE";
|
|
24
|
+
SecurableType["STORAGE_CREDENTIAL"] = "STORAGE_CREDENTIAL";
|
|
25
|
+
SecurableType["EXTERNAL_LOCATION"] = "EXTERNAL_LOCATION";
|
|
26
|
+
SecurableType["FUNCTION"] = "FUNCTION";
|
|
27
|
+
SecurableType["SHARE"] = "SHARE";
|
|
28
|
+
SecurableType["PROVIDER"] = "PROVIDER";
|
|
29
|
+
SecurableType["RECIPIENT"] = "RECIPIENT";
|
|
30
|
+
SecurableType["CLEAN_ROOM"] = "CLEAN_ROOM";
|
|
31
|
+
SecurableType["METASTORE"] = "METASTORE";
|
|
32
|
+
SecurableType["PIPELINE"] = "PIPELINE";
|
|
33
|
+
SecurableType["VOLUME"] = "VOLUME";
|
|
34
|
+
SecurableType["CONNECTION"] = "CONNECTION";
|
|
35
|
+
SecurableType["CREDENTIAL"] = "CREDENTIAL";
|
|
36
|
+
SecurableType["EXTERNAL_METADATA"] = "EXTERNAL_METADATA";
|
|
37
|
+
/** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
|
|
38
|
+
SecurableType["STAGING_TABLE"] = "STAGING_TABLE";
|
|
39
|
+
})(SecurableType || (SecurableType = {}));
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
41
|
+
export var ProvisioningInfo_State;
|
|
42
|
+
(function (ProvisioningInfo_State) {
|
|
43
|
+
ProvisioningInfo_State["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
|
44
|
+
ProvisioningInfo_State["PROVISIONING"] = "PROVISIONING";
|
|
45
|
+
ProvisioningInfo_State["ACTIVE"] = "ACTIVE";
|
|
46
|
+
ProvisioningInfo_State["FAILED"] = "FAILED";
|
|
47
|
+
ProvisioningInfo_State["DELETING"] = "DELETING";
|
|
48
|
+
ProvisioningInfo_State["UPDATING"] = "UPDATING";
|
|
49
|
+
ProvisioningInfo_State["DEGRADED"] = "DEGRADED";
|
|
50
|
+
})(ProvisioningInfo_State || (ProvisioningInfo_State = {}));
|
|
51
|
+
export const unmarshalAzureEncryptionSettingsSchema = z
|
|
52
|
+
.object({
|
|
53
|
+
azure_tenant_id: z.string().optional(),
|
|
54
|
+
azure_cmk_access_connector_id: z.string().optional(),
|
|
55
|
+
azure_cmk_managed_identity_id: z.string().optional(),
|
|
56
|
+
})
|
|
57
|
+
.transform(d => ({
|
|
58
|
+
azureTenantId: d.azure_tenant_id,
|
|
59
|
+
azureCmkAccessConnectorId: d.azure_cmk_access_connector_id,
|
|
60
|
+
azureCmkManagedIdentityId: d.azure_cmk_managed_identity_id,
|
|
61
|
+
}));
|
|
62
|
+
export const unmarshalCatalogInfoSchema = z
|
|
63
|
+
.object({
|
|
64
|
+
name: z.string().optional(),
|
|
65
|
+
owner: z.string().optional(),
|
|
66
|
+
comment: z.string().optional(),
|
|
67
|
+
storage_root: z.string().optional(),
|
|
68
|
+
enable_predictive_optimization: z.string().optional(),
|
|
69
|
+
catalog_type: z.enum(CatalogType).optional(),
|
|
70
|
+
provider_name: z.string().optional(),
|
|
71
|
+
share_name: z.string().optional(),
|
|
72
|
+
connection_name: z.string().optional(),
|
|
73
|
+
metastore_id: z.string().optional(),
|
|
74
|
+
created_at: z
|
|
75
|
+
.union([z.number(), z.bigint()])
|
|
76
|
+
.transform(v => BigInt(v))
|
|
77
|
+
.optional(),
|
|
78
|
+
created_by: z.string().optional(),
|
|
79
|
+
updated_at: z
|
|
80
|
+
.union([z.number(), z.bigint()])
|
|
81
|
+
.transform(v => BigInt(v))
|
|
82
|
+
.optional(),
|
|
83
|
+
updated_by: z.string().optional(),
|
|
84
|
+
storage_location: z.string().optional(),
|
|
85
|
+
isolation_mode: z.enum(CatalogIsolationMode).optional(),
|
|
86
|
+
effective_predictive_optimization_flag: z
|
|
87
|
+
.lazy(() => unmarshalEffectivePredictiveOptimizationFlagSchema)
|
|
88
|
+
.optional(),
|
|
89
|
+
browse_only: z.boolean().optional(),
|
|
90
|
+
provisioning_info: z.lazy(() => unmarshalProvisioningInfoSchema).optional(),
|
|
91
|
+
full_name: z.string().optional(),
|
|
92
|
+
securable_type: z.enum(SecurableType).optional(),
|
|
93
|
+
managed_encryption_settings: z
|
|
94
|
+
.lazy(() => unmarshalEncryptionSettingsSchema)
|
|
95
|
+
.optional(),
|
|
96
|
+
properties: z.record(z.string(), z.string()).optional(),
|
|
97
|
+
options: z.record(z.string(), z.string()).optional(),
|
|
98
|
+
})
|
|
99
|
+
.transform(d => ({
|
|
100
|
+
name: d.name,
|
|
101
|
+
owner: d.owner,
|
|
102
|
+
comment: d.comment,
|
|
103
|
+
storageRoot: d.storage_root,
|
|
104
|
+
enablePredictiveOptimization: d.enable_predictive_optimization,
|
|
105
|
+
catalogType: d.catalog_type,
|
|
106
|
+
providerName: d.provider_name,
|
|
107
|
+
shareName: d.share_name,
|
|
108
|
+
connectionName: d.connection_name,
|
|
109
|
+
metastoreId: d.metastore_id,
|
|
110
|
+
createdAt: d.created_at,
|
|
111
|
+
createdBy: d.created_by,
|
|
112
|
+
updatedAt: d.updated_at,
|
|
113
|
+
updatedBy: d.updated_by,
|
|
114
|
+
storageLocation: d.storage_location,
|
|
115
|
+
isolationMode: d.isolation_mode,
|
|
116
|
+
effectivePredictiveOptimizationFlag: d.effective_predictive_optimization_flag,
|
|
117
|
+
browseOnly: d.browse_only,
|
|
118
|
+
provisioningInfo: d.provisioning_info,
|
|
119
|
+
fullName: d.full_name,
|
|
120
|
+
securableType: d.securable_type,
|
|
121
|
+
managedEncryptionSettings: d.managed_encryption_settings,
|
|
122
|
+
properties: d.properties,
|
|
123
|
+
options: d.options,
|
|
124
|
+
}));
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
126
|
+
export const unmarshalDeleteCatalogRequest_ResponseSchema = z.object({});
|
|
127
|
+
export const unmarshalEffectivePredictiveOptimizationFlagSchema = z
|
|
128
|
+
.object({
|
|
129
|
+
value: z.string().optional(),
|
|
130
|
+
inherited_from_type: z.string().optional(),
|
|
131
|
+
inherited_from_name: z.string().optional(),
|
|
132
|
+
})
|
|
133
|
+
.transform(d => ({
|
|
134
|
+
value: d.value,
|
|
135
|
+
inheritedFromType: d.inherited_from_type,
|
|
136
|
+
inheritedFromName: d.inherited_from_name,
|
|
137
|
+
}));
|
|
138
|
+
export const unmarshalEncryptionSettingsSchema = z
|
|
139
|
+
.object({
|
|
140
|
+
customer_managed_key_id: z.string().optional(),
|
|
141
|
+
azure_key_vault_key_id: z.string().optional(),
|
|
142
|
+
azure_encryption_settings: z
|
|
143
|
+
.lazy(() => unmarshalAzureEncryptionSettingsSchema)
|
|
144
|
+
.optional(),
|
|
145
|
+
})
|
|
146
|
+
.transform(d => ({
|
|
147
|
+
customerManagedKeyId: d.customer_managed_key_id,
|
|
148
|
+
azureKeyVaultKeyId: d.azure_key_vault_key_id,
|
|
149
|
+
azureEncryptionSettings: d.azure_encryption_settings,
|
|
150
|
+
}));
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
152
|
+
export const unmarshalListCatalogsRequest_ResponseSchema = z
|
|
153
|
+
.object({
|
|
154
|
+
catalogs: z.array(z.lazy(() => unmarshalCatalogInfoSchema)).optional(),
|
|
155
|
+
next_page_token: z.string().optional(),
|
|
156
|
+
})
|
|
157
|
+
.transform(d => ({
|
|
158
|
+
catalogs: d.catalogs,
|
|
159
|
+
nextPageToken: d.next_page_token,
|
|
160
|
+
}));
|
|
161
|
+
export const unmarshalProvisioningInfoSchema = z
|
|
162
|
+
.object({
|
|
163
|
+
state: z.enum(ProvisioningInfo_State).optional(),
|
|
164
|
+
})
|
|
165
|
+
.transform(d => ({
|
|
166
|
+
state: d.state,
|
|
167
|
+
}));
|
|
168
|
+
export const marshalAzureEncryptionSettingsSchema = z
|
|
169
|
+
.object({
|
|
170
|
+
azureTenantId: z.string().optional(),
|
|
171
|
+
azureCmkAccessConnectorId: z.string().optional(),
|
|
172
|
+
azureCmkManagedIdentityId: z.string().optional(),
|
|
173
|
+
})
|
|
174
|
+
.transform(d => ({
|
|
175
|
+
azure_tenant_id: d.azureTenantId,
|
|
176
|
+
azure_cmk_access_connector_id: d.azureCmkAccessConnectorId,
|
|
177
|
+
azure_cmk_managed_identity_id: d.azureCmkManagedIdentityId,
|
|
178
|
+
}));
|
|
179
|
+
export const marshalCreateCatalogRequestSchema = z
|
|
180
|
+
.object({
|
|
181
|
+
name: z.string().optional(),
|
|
182
|
+
owner: z.string().optional(),
|
|
183
|
+
comment: z.string().optional(),
|
|
184
|
+
storageRoot: z.string().optional(),
|
|
185
|
+
enablePredictiveOptimization: z.string().optional(),
|
|
186
|
+
catalogType: z.enum(CatalogType).optional(),
|
|
187
|
+
providerName: z.string().optional(),
|
|
188
|
+
shareName: z.string().optional(),
|
|
189
|
+
connectionName: z.string().optional(),
|
|
190
|
+
metastoreId: z.string().optional(),
|
|
191
|
+
createdAt: z.bigint().optional(),
|
|
192
|
+
createdBy: z.string().optional(),
|
|
193
|
+
updatedAt: z.bigint().optional(),
|
|
194
|
+
updatedBy: z.string().optional(),
|
|
195
|
+
storageLocation: z.string().optional(),
|
|
196
|
+
isolationMode: z.enum(CatalogIsolationMode).optional(),
|
|
197
|
+
effectivePredictiveOptimizationFlag: z
|
|
198
|
+
.lazy(() => marshalEffectivePredictiveOptimizationFlagSchema)
|
|
199
|
+
.optional(),
|
|
200
|
+
browseOnly: z.boolean().optional(),
|
|
201
|
+
provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),
|
|
202
|
+
fullName: z.string().optional(),
|
|
203
|
+
securableType: z.enum(SecurableType).optional(),
|
|
204
|
+
managedEncryptionSettings: z
|
|
205
|
+
.lazy(() => marshalEncryptionSettingsSchema)
|
|
206
|
+
.optional(),
|
|
207
|
+
properties: z.record(z.string(), z.string()).optional(),
|
|
208
|
+
options: z.record(z.string(), z.string()).optional(),
|
|
209
|
+
})
|
|
210
|
+
.transform(d => ({
|
|
211
|
+
name: d.name,
|
|
212
|
+
owner: d.owner,
|
|
213
|
+
comment: d.comment,
|
|
214
|
+
storage_root: d.storageRoot,
|
|
215
|
+
enable_predictive_optimization: d.enablePredictiveOptimization,
|
|
216
|
+
catalog_type: d.catalogType,
|
|
217
|
+
provider_name: d.providerName,
|
|
218
|
+
share_name: d.shareName,
|
|
219
|
+
connection_name: d.connectionName,
|
|
220
|
+
metastore_id: d.metastoreId,
|
|
221
|
+
created_at: d.createdAt,
|
|
222
|
+
created_by: d.createdBy,
|
|
223
|
+
updated_at: d.updatedAt,
|
|
224
|
+
updated_by: d.updatedBy,
|
|
225
|
+
storage_location: d.storageLocation,
|
|
226
|
+
isolation_mode: d.isolationMode,
|
|
227
|
+
effective_predictive_optimization_flag: d.effectivePredictiveOptimizationFlag,
|
|
228
|
+
browse_only: d.browseOnly,
|
|
229
|
+
provisioning_info: d.provisioningInfo,
|
|
230
|
+
full_name: d.fullName,
|
|
231
|
+
securable_type: d.securableType,
|
|
232
|
+
managed_encryption_settings: d.managedEncryptionSettings,
|
|
233
|
+
properties: d.properties,
|
|
234
|
+
options: d.options,
|
|
235
|
+
}));
|
|
236
|
+
export const marshalEffectivePredictiveOptimizationFlagSchema = z
|
|
237
|
+
.object({
|
|
238
|
+
value: z.string().optional(),
|
|
239
|
+
inheritedFromType: z.string().optional(),
|
|
240
|
+
inheritedFromName: z.string().optional(),
|
|
241
|
+
})
|
|
242
|
+
.transform(d => ({
|
|
243
|
+
value: d.value,
|
|
244
|
+
inherited_from_type: d.inheritedFromType,
|
|
245
|
+
inherited_from_name: d.inheritedFromName,
|
|
246
|
+
}));
|
|
247
|
+
export const marshalEncryptionSettingsSchema = z
|
|
248
|
+
.object({
|
|
249
|
+
customerManagedKeyId: z.string().optional(),
|
|
250
|
+
azureKeyVaultKeyId: z.string().optional(),
|
|
251
|
+
azureEncryptionSettings: z
|
|
252
|
+
.lazy(() => marshalAzureEncryptionSettingsSchema)
|
|
253
|
+
.optional(),
|
|
254
|
+
})
|
|
255
|
+
.transform(d => ({
|
|
256
|
+
customer_managed_key_id: d.customerManagedKeyId,
|
|
257
|
+
azure_key_vault_key_id: d.azureKeyVaultKeyId,
|
|
258
|
+
azure_encryption_settings: d.azureEncryptionSettings,
|
|
259
|
+
}));
|
|
260
|
+
export const marshalProvisioningInfoSchema = z
|
|
261
|
+
.object({
|
|
262
|
+
state: z.enum(ProvisioningInfo_State).optional(),
|
|
263
|
+
})
|
|
264
|
+
.transform(d => ({
|
|
265
|
+
state: d.state,
|
|
266
|
+
}));
|
|
267
|
+
export const marshalUpdateCatalogRequestSchema = z
|
|
268
|
+
.object({
|
|
269
|
+
nameArg: z.string().optional(),
|
|
270
|
+
newName: z.string().optional(),
|
|
271
|
+
name: z.string().optional(),
|
|
272
|
+
owner: z.string().optional(),
|
|
273
|
+
comment: z.string().optional(),
|
|
274
|
+
storageRoot: z.string().optional(),
|
|
275
|
+
enablePredictiveOptimization: z.string().optional(),
|
|
276
|
+
catalogType: z.enum(CatalogType).optional(),
|
|
277
|
+
providerName: z.string().optional(),
|
|
278
|
+
shareName: z.string().optional(),
|
|
279
|
+
connectionName: z.string().optional(),
|
|
280
|
+
metastoreId: z.string().optional(),
|
|
281
|
+
createdAt: z.bigint().optional(),
|
|
282
|
+
createdBy: z.string().optional(),
|
|
283
|
+
updatedAt: z.bigint().optional(),
|
|
284
|
+
updatedBy: z.string().optional(),
|
|
285
|
+
storageLocation: z.string().optional(),
|
|
286
|
+
isolationMode: z.enum(CatalogIsolationMode).optional(),
|
|
287
|
+
effectivePredictiveOptimizationFlag: z
|
|
288
|
+
.lazy(() => marshalEffectivePredictiveOptimizationFlagSchema)
|
|
289
|
+
.optional(),
|
|
290
|
+
browseOnly: z.boolean().optional(),
|
|
291
|
+
provisioningInfo: z.lazy(() => marshalProvisioningInfoSchema).optional(),
|
|
292
|
+
fullName: z.string().optional(),
|
|
293
|
+
securableType: z.enum(SecurableType).optional(),
|
|
294
|
+
managedEncryptionSettings: z
|
|
295
|
+
.lazy(() => marshalEncryptionSettingsSchema)
|
|
296
|
+
.optional(),
|
|
297
|
+
properties: z.record(z.string(), z.string()).optional(),
|
|
298
|
+
options: z.record(z.string(), z.string()).optional(),
|
|
299
|
+
})
|
|
300
|
+
.transform(d => ({
|
|
301
|
+
name_arg: d.nameArg,
|
|
302
|
+
new_name: d.newName,
|
|
303
|
+
name: d.name,
|
|
304
|
+
owner: d.owner,
|
|
305
|
+
comment: d.comment,
|
|
306
|
+
storage_root: d.storageRoot,
|
|
307
|
+
enable_predictive_optimization: d.enablePredictiveOptimization,
|
|
308
|
+
catalog_type: d.catalogType,
|
|
309
|
+
provider_name: d.providerName,
|
|
310
|
+
share_name: d.shareName,
|
|
311
|
+
connection_name: d.connectionName,
|
|
312
|
+
metastore_id: d.metastoreId,
|
|
313
|
+
created_at: d.createdAt,
|
|
314
|
+
created_by: d.createdBy,
|
|
315
|
+
updated_at: d.updatedAt,
|
|
316
|
+
updated_by: d.updatedBy,
|
|
317
|
+
storage_location: d.storageLocation,
|
|
318
|
+
isolation_mode: d.isolationMode,
|
|
319
|
+
effective_predictive_optimization_flag: d.effectivePredictiveOptimizationFlag,
|
|
320
|
+
browse_only: d.browseOnly,
|
|
321
|
+
provisioning_info: d.provisioningInfo,
|
|
322
|
+
full_name: d.fullName,
|
|
323
|
+
securable_type: d.securableType,
|
|
324
|
+
managed_encryption_settings: d.managedEncryptionSettings,
|
|
325
|
+
properties: d.properties,
|
|
326
|
+
options: d.options,
|
|
327
|
+
}));
|
|
328
|
+
//# sourceMappingURL=model.js.map
|