@databricks/sdk-uc-metastores 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +88 -84
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +472 -587
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -7
- package/dist/v1/index.js +4 -7
- package/dist/v1/model.d.ts +449 -456
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +339 -448
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/package.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/v1/client.d.ts
CHANGED
|
@@ -1,86 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
import { AccountsCreateMetastoreAssignmentRequest, AccountsCreateMetastoreAssignmentResponse, AccountsCreateMetastoreRequest, AccountsCreateMetastoreResponse, AccountsDeleteMetastoreAssignmentRequest, AccountsDeleteMetastoreAssignmentResponse, AccountsDeleteMetastoreRequest, AccountsDeleteMetastoreResponse, AccountsGetMetastoreAssignmentRequest, AccountsGetMetastoreAssignmentResponse, AccountsGetMetastoreRequest, AccountsGetMetastoreResponse, AccountsListMetastoresRequest, AccountsListMetastoresResponse, AccountsListWorkspaceIdsForMetastoreRequest, AccountsListWorkspaceIdsForMetastoreResponse, AccountsUpdateMetastoreAssignmentRequest, AccountsUpdateMetastoreAssignmentResponse, AccountsUpdateMetastoreRequest, AccountsUpdateMetastoreResponse, CreateMetastoreAssignmentRequest, CreateMetastoreAssignmentResponse, CreateMetastoreRequest, DeleteMetastoreAssignmentRequest, DeleteMetastoreAssignmentResponse, DeleteMetastoreRequest, DeleteMetastoreResponse, GetCurrentMetastoreAssignmentRequest, GetMetastoreRequest, GetMetastoreSummaryRequest, GetMetastoreSummaryResponse, ListMetastoresRequest, ListMetastoresResponse, MetastoreAssignment, MetastoreInfo, UpdateMetastoreAssignmentRequest, UpdateMetastoreAssignmentResponse, UpdateMetastoreRequest } from "./model.js";
|
|
2
|
+
import { CallOptions } from "@databricks/sdk-options/call";
|
|
3
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
4
|
+
|
|
5
|
+
//#region src/v1/client.d.ts
|
|
6
|
+
declare class MetastoresClient {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly userAgent;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(options: ClientOptions);
|
|
12
|
+
private resolveConfig;
|
|
13
|
+
/** Creates a Unity Catalog metastore. */
|
|
14
|
+
createAccountsMetastore(req: AccountsCreateMetastoreRequest, options?: CallOptions): Promise<AccountsCreateMetastoreResponse>;
|
|
15
|
+
/** Creates an assignment to a metastore for a workspace */
|
|
16
|
+
createAccountsMetastoreAssignment(req: AccountsCreateMetastoreAssignmentRequest, options?: CallOptions): Promise<AccountsCreateMetastoreAssignmentResponse>;
|
|
17
|
+
/** Deletes a Unity Catalog metastore for an account, both specified by ID. */
|
|
18
|
+
deleteAccountsMetastore(req: AccountsDeleteMetastoreRequest, options?: CallOptions): Promise<AccountsDeleteMetastoreResponse>;
|
|
19
|
+
/** Deletes a metastore assignment to a workspace, leaving the workspace with no metastore. */
|
|
20
|
+
deleteAccountsMetastoreAssignment(req: AccountsDeleteMetastoreAssignmentRequest, options?: CallOptions): Promise<AccountsDeleteMetastoreAssignmentResponse>;
|
|
21
|
+
/** Gets a Unity Catalog metastore from an account, both specified by ID. */
|
|
22
|
+
getAccountsMetastore(req: AccountsGetMetastoreRequest, options?: CallOptions): Promise<AccountsGetMetastoreResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the metastore assignment, if any, for the workspace specified by ID.
|
|
25
|
+
* If the workspace is assigned a metastore, the mapping will be returned.
|
|
26
|
+
* If no metastore is assigned to the workspace, the assignment will not be
|
|
27
|
+
* found and a 404 returned.
|
|
28
|
+
*/
|
|
29
|
+
getMetastoreAssignment(req: AccountsGetMetastoreAssignmentRequest, options?: CallOptions): Promise<AccountsGetMetastoreAssignmentResponse>;
|
|
30
|
+
/** Gets all Unity Catalog metastores associated with an account specified by ID. */
|
|
31
|
+
listAccountsMetastores(req: AccountsListMetastoresRequest, options?: CallOptions): Promise<AccountsListMetastoresResponse>;
|
|
32
|
+
/** Gets a list of all <Databricks> workspace IDs that have been assigned to given metastore. */
|
|
33
|
+
listMetastoreAssignments(req: AccountsListWorkspaceIdsForMetastoreRequest, options?: CallOptions): Promise<AccountsListWorkspaceIdsForMetastoreResponse>;
|
|
34
|
+
/** Updates an existing Unity Catalog metastore. */
|
|
35
|
+
updateAccountsMetastore(req: AccountsUpdateMetastoreRequest, options?: CallOptions): Promise<AccountsUpdateMetastoreResponse>;
|
|
36
|
+
/** Updates an assignment to a metastore for a workspace. Currently, only the default catalog may be updated. */
|
|
37
|
+
updateAccountsMetastoreAssignment(req: AccountsUpdateMetastoreAssignmentRequest, options?: CallOptions): Promise<AccountsUpdateMetastoreAssignmentResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a new metastore based on a provided name and optional storage root path.
|
|
40
|
+
* By default (if the __owner__ field is not set), the owner of the new metastore is the user calling
|
|
41
|
+
* the __createMetastore__ API. If the __owner__ field is set to the empty string (**""**), the ownership is
|
|
42
|
+
* assigned to the System User instead.
|
|
43
|
+
*/
|
|
44
|
+
createMetastore(req: CreateMetastoreRequest, options?: CallOptions): Promise<MetastoreInfo>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new metastore assignment.
|
|
47
|
+
* If an assignment for the same __workspace_id__ exists, it will be overwritten by the new __metastore_id__ and
|
|
48
|
+
* __default_catalog_name__. The caller must be an account admin.
|
|
49
|
+
*/
|
|
50
|
+
createMetastoreAssignment(req: CreateMetastoreAssignmentRequest, options?: CallOptions): Promise<CreateMetastoreAssignmentResponse>;
|
|
51
|
+
/** Deletes a metastore. The caller must be a metastore admin. */
|
|
52
|
+
deleteMetastore(req: DeleteMetastoreRequest, options?: CallOptions): Promise<DeleteMetastoreResponse>;
|
|
53
|
+
/** Deletes a metastore assignment. The caller must be an account administrator. */
|
|
54
|
+
deleteMetastoreAssignment(req: DeleteMetastoreAssignmentRequest, options?: CallOptions): Promise<DeleteMetastoreAssignmentResponse>;
|
|
55
|
+
/** Gets the metastore assignment for the workspace being accessed. */
|
|
56
|
+
getCurrentMetastoreAssignment(_req: GetCurrentMetastoreAssignmentRequest, options?: CallOptions): Promise<MetastoreAssignment>;
|
|
57
|
+
/** Gets a metastore that matches the supplied ID. The caller must be a metastore admin to retrieve this info. */
|
|
58
|
+
getMetastore(req: GetMetastoreRequest, options?: CallOptions): Promise<MetastoreInfo>;
|
|
59
|
+
/**
|
|
60
|
+
* Gets information about a metastore.
|
|
61
|
+
* This summary includes the storage credential, the cloud vendor, the cloud region, and the global metastore ID.
|
|
62
|
+
*/
|
|
63
|
+
getMetastoreSummary(_req: GetMetastoreSummaryRequest, options?: CallOptions): Promise<GetMetastoreSummaryResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Gets an array of the available metastores (as __MetastoreInfo__ objects). The caller must be an admin to retrieve this info.
|
|
66
|
+
* There is no guarantee of a specific ordering of the elements in the array.
|
|
67
|
+
*
|
|
68
|
+
* NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
|
|
69
|
+
*
|
|
70
|
+
* PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token.
|
|
71
|
+
* Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
|
|
72
|
+
*/
|
|
73
|
+
listMetastores(req: ListMetastoresRequest, options?: CallOptions): Promise<ListMetastoresResponse>;
|
|
74
|
+
listMetastoresIter(req: ListMetastoresRequest, options?: CallOptions): AsyncGenerator<MetastoreInfo>;
|
|
75
|
+
/**
|
|
76
|
+
* Updates information for a specific metastore. The caller must be a metastore admin.
|
|
77
|
+
* If the __owner__ field is set to the empty string (**""**), the ownership is updated
|
|
78
|
+
* to the System User.
|
|
79
|
+
*/
|
|
80
|
+
updateMetastore(req: UpdateMetastoreRequest, options?: CallOptions): Promise<MetastoreInfo>;
|
|
81
|
+
/**
|
|
82
|
+
* Updates a metastore assignment. This operation can be used to update __metastore_id__ or __default_catalog_name__
|
|
83
|
+
* for a specified Workspace, if the Workspace is already assigned a metastore.
|
|
84
|
+
* The caller must be an account admin to update __metastore_id__; otherwise, the caller can be a Workspace admin.
|
|
85
|
+
*/
|
|
86
|
+
updateMetastoreAssignment(req: UpdateMetastoreAssignmentRequest, options?: CallOptions): Promise<UpdateMetastoreAssignmentResponse>;
|
|
85
87
|
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { MetastoresClient };
|
|
86
90
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/v1/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cA6Fa,gBAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,uBAAA,CACJ,GAAA,EAAK,8BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,+BAAA;EAAR;EA8BG,iCAAA,CACJ,GAAA,EAAK,wCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,yCAAA;EADC;EA+BN,uBAAA,CACJ,GAAA,EAAK,8BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,+BAAA;EAjCR;EAiEG,iCAAA,CACJ,GAAA,EAAK,wCAAA,EACL,OAAA,GAAU,WAAA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