@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.
@@ -0,0 +1,7 @@
1
+ //#region package.json
2
+ var name = "@databricks/sdk-uc-volumes";
3
+ var version = "0.36.0";
4
+
5
+ //#endregion
6
+ export { name, version };
7
+ //# sourceMappingURL=package.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.js","names":[],"sources":["../package.json"],"sourcesContent":[""],"mappings":""}
@@ -1,78 +1,82 @@
1
- import type { CallOptions } from '@databricks/sdk-options/call';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
3
- import type { CreateVolumeRequest, DeleteVolumeRequest, DeleteVolumeResponse, GetVolumeRequest, ListVolumesRequest, ListVolumesResponse, UpdateVolumeRequest, VolumeInfo } from './model';
4
- export declare class VolumesClient {
5
- private readonly options;
6
- private readonly logger;
7
- private readonly userAgent;
8
- private config;
9
- constructor(options: ClientOptions);
10
- private resolveConfig;
11
- /**
12
- * Creates a new volume.
13
- *
14
- * The user could create either an external volume or a managed volume. An external volume
15
- * will be created in the specified external location, while a managed volume
16
- * will be located in the default location which is specified by the parent schema,
17
- * or the parent catalog, or the Metastore.
18
- *
19
- * For the volume creation to succeed, the user must satisfy following conditions:
20
- * - The caller must be a metastore admin, or be the owner of the parent catalog and schema,
21
- * or have the **USE_CATALOG** privilege on the parent catalog
22
- * and the **USE_SCHEMA** privilege on the parent schema.
23
- * - The caller must have **CREATE VOLUME** privilege on the parent schema.
24
- *
25
- * For an external volume, following conditions also need to satisfy
26
- * - The caller must have **CREATE EXTERNAL VOLUME** privilege on the external location.
27
- * - There are no other tables, nor volumes existing in the specified storage location.
28
- * - The specified storage location is not under the location of other tables, nor volumes,
29
- * or catalogs or schemas.
30
- */
31
- createVolume(req: CreateVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
32
- /**
33
- * Deletes a volume from the specified parent catalog and schema.
34
- *
35
- * The caller must be a metastore admin or an owner of the volume.
36
- * For the latter case, the caller must also be the owner or have the **USE_CATALOG**
37
- * privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
38
- */
39
- deleteVolume(req: DeleteVolumeRequest, options?: CallOptions): Promise<DeleteVolumeResponse>;
40
- /**
41
- * Gets a volume from the metastore for a specific catalog and schema.
42
- *
43
- * The caller must be a metastore admin or an owner of (or have the **READ VOLUME**
44
- * privilege on) the volume.
45
- * For the latter case, the caller must also be the owner or have the **USE_CATALOG**
46
- * privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
47
- */
48
- getVolume(req: GetVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
49
- /**
50
- * Gets an array of volumes for the current metastore
51
- * under the parent catalog and schema.
52
- *
53
- * The returned volumes are filtered based on the privileges of the calling user.
54
- * For example, the metastore admin is able to list all the volumes.
55
- * A regular user needs to be the owner or have the **READ VOLUME** privilege
56
- * on the volume to receive the volumes in the response.
57
- * For the latter case, the caller must also be the owner or have the **USE_CATALOG**
58
- * privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
59
- *
60
- * There is no guarantee of a specific ordering of the elements in the array.
61
- *
62
- * PAGINATION BEHAVIOR: The API is by default paginated, a page may contain zero results while still providing a next_page_token.
63
- * Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
64
- */
65
- listVolumes(req: ListVolumesRequest, options?: CallOptions): Promise<ListVolumesResponse>;
66
- listVolumesIter(req: ListVolumesRequest, options?: CallOptions): AsyncGenerator<VolumeInfo>;
67
- /**
68
- * Updates the specified volume under the specified parent catalog and schema.
69
- *
70
- * The caller must be a metastore admin or an owner of the volume.
71
- * For the latter case, the caller must also be the owner or have the **USE_CATALOG**
72
- * privilege on the parent catalog and the **USE_SCHEMA** privilege on the parent schema.
73
- *
74
- * Currently only the name, the owner or the comment of the volume could be updated.
75
- */
76
- updateVolume(req: UpdateVolumeRequest, options?: CallOptions): Promise<VolumeInfo>;
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
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,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