@databricks/sdk-uc-volumes 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +80 -76
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +208 -255
- 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 +185 -183
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +152 -192
- 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,78 +1,82 @@
|
|
|
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
|
-
|
|
1
|
+
import { CreateVolumeRequest, DeleteVolumeRequest, DeleteVolumeResponse, GetVolumeRequest, ListVolumesRequest, ListVolumesResponse, UpdateVolumeRequest, VolumeInfo } 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 VolumesClient {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly userAgent;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(options: ClientOptions);
|
|
12
|
+
private resolveConfig;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new volume.
|
|
15
|
+
*
|
|
16
|
+
* The user could create either an external volume or a managed volume. An external volume
|
|
17
|
+
* will be created in the specified external location, while a managed volume
|
|
18
|
+
* will be located in the default location which is specified by the parent schema,
|
|
19
|
+
* or the parent catalog, or the Metastore.
|
|
20
|
+
*
|
|
21
|
+
* For the volume creation to succeed, the user must satisfy following conditions:
|
|
22
|
+
* - The caller must be a metastore admin, or be the owner of the parent catalog and schema,
|
|
23
|
+
* or have the **USE_CATALOG** privilege on the parent catalog
|
|
24
|
+
* and the **USE_SCHEMA** privilege on the parent schema.
|
|
25
|
+
* - The caller must have **CREATE VOLUME** privilege on the parent schema.
|
|
26
|
+
*
|
|
27
|
+
* For an external volume, following conditions also need to satisfy
|
|
28
|
+
* - The caller must have **CREATE EXTERNAL VOLUME** privilege on the external location.
|
|
29
|
+
* - There are no other tables, nor volumes existing in the specified storage location.
|
|
30
|
+
* - The specified storage location is not under the location of other tables, nor volumes,
|
|
31
|
+
* or catalogs or schemas.
|
|
32
|
+
*/
|
|
33
|
+
createVolume(req: CreateVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
|
|
34
|
+
/**
|
|
35
|
+
* Deletes a volume from the specified parent catalog and schema.
|
|
36
|
+
*
|
|
37
|
+
* The caller must be a metastore admin or an owner of the volume.
|
|
38
|
+
* For the latter case, the caller must also be the owner or have the **USE_CATALOG**
|
|
39
|
+
* privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
|
|
40
|
+
*/
|
|
41
|
+
deleteVolume(req: DeleteVolumeRequest, options?: CallOptions): Promise<DeleteVolumeResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Gets a volume from the metastore for a specific catalog and schema.
|
|
44
|
+
*
|
|
45
|
+
* The caller must be a metastore admin or an owner of (or have the **READ VOLUME**
|
|
46
|
+
* privilege on) the volume.
|
|
47
|
+
* For the latter case, the caller must also be the owner or have the **USE_CATALOG**
|
|
48
|
+
* privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
|
|
49
|
+
*/
|
|
50
|
+
getVolume(req: GetVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets an array of volumes for the current metastore
|
|
53
|
+
* under the parent catalog and schema.
|
|
54
|
+
*
|
|
55
|
+
* The returned volumes are filtered based on the privileges of the calling user.
|
|
56
|
+
* For example, the metastore admin is able to list all the volumes.
|
|
57
|
+
* A regular user needs to be the owner or have the **READ VOLUME** privilege
|
|
58
|
+
* on the volume to receive the volumes in the response.
|
|
59
|
+
* For the latter case, the caller must also be the owner or have the **USE_CATALOG**
|
|
60
|
+
* privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
|
|
61
|
+
*
|
|
62
|
+
* There is no guarantee of a specific ordering of the elements in the array.
|
|
63
|
+
*
|
|
64
|
+
* PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token.
|
|
65
|
+
* Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
|
|
66
|
+
*/
|
|
67
|
+
listVolumes(req: ListVolumesRequest, options?: CallOptions): Promise<ListVolumesResponse>;
|
|
68
|
+
listVolumesIter(req: ListVolumesRequest, options?: CallOptions): AsyncGenerator<VolumeInfo>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates the specified volume under the specified parent catalog and schema.
|
|
71
|
+
*
|
|
72
|
+
* The caller must be a metastore admin or an owner of the volume.
|
|
73
|
+
* For the latter case, the caller must also be the owner or have the **USE_CATALOG**
|
|
74
|
+
* privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
|
|
75
|
+
*
|
|
76
|
+
* Currently only the name, the owner or the comment of the volume could be updated.
|
|
77
|
+
*/
|
|
78
|
+
updateVolume(req: UpdateVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
|
|
77
79
|
}
|
|
80
|
+
//#endregion
|
|
81
|
+
export { VolumesClient };
|
|
78
82
|
//# 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":";;;;;cA0Ca,aAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EA2BI;;;;;;;;;;;;;;;;;;;;EAFN,YAAA,CACJ,GAAA,EAAK,mBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,UAAA;EAkMA;;;;;;;EAjKL,YAAA,CACJ,GAAA,EAAK,mBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,oBAAA;;;;;;;;;EAiCL,SAAA,CACJ,GAAA,EAAK,gBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,UAAA;EAxER;;;;;;;;;;;;;;;;EAuHG,WAAA,CACJ,GAAA,EAAK,kBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,mBAAA;EA2CJ,eAAA,CACL,GAAA,EAAK,kBAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,UAAA;EAhDhB;;;;;;;;;EAuEI,YAAA,CACJ,GAAA,EAAK,mBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,UAAA;AAAA"}
|