@Generated public interface SharesService
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
ShareInfo |
create(CreateShare createShare)
Creates a new share for data objects.
|
void |
delete(DeleteShareRequest deleteShareRequest)
Deletes a data object share from the metastore.
|
ShareInfo |
get(GetShareRequest getShareRequest)
Gets a data object share from the metastore.
|
ListSharesResponse |
list(ListSharesRequest listSharesRequest)
Gets an array of data object shares from the metastore.
|
ListSharesResponse |
listShares(SharesListRequest sharesListRequest)
Gets an array of data object shares from the metastore.
|
GetSharePermissionsResponse |
sharePermissions(SharePermissionsRequest sharePermissionsRequest)
Gets the permissions for a data share from the metastore.
|
ShareInfo |
update(UpdateShare updateShare)
Updates the share with the changes and data objects in the request.
|
UpdateSharePermissionsResponse |
updatePermissions(UpdateSharePermissions updateSharePermissions)
Updates the permissions for a data share in the metastore.
|
ShareInfo create(CreateShare createShare)
void delete(DeleteShareRequest deleteShareRequest)
ShareInfo get(GetShareRequest getShareRequest)
ListSharesResponse listShares(SharesListRequest sharesListRequest)
GetSharePermissionsResponse sharePermissions(SharePermissionsRequest sharePermissionsRequest)
ShareInfo update(UpdateShare updateShare)
When the caller is a metastore admin, only the __owner__ field can be updated.
In the case the share name is changed, **updateShare** requires that the caller is the owner of the share and has the CREATE_SHARE privilege.
If there are notebook files in the share, the __storage_root__ field cannot be updated.
For each table that is added through this method, the share owner must also have **SELECT** privilege on the table. This privilege must be maintained indefinitely for recipients to be able to access the table. Typically, you should use a group as the share owner.
Table removals through **update** do not require additional privileges.
UpdateSharePermissionsResponse updatePermissions(UpdateSharePermissions updateSharePermissions)
For new recipient grants, the user must also be the owner of the recipients. recipient revocations do not require additional privileges.
ListSharesResponse list(ListSharesRequest listSharesRequest)
Copyright © 2026. All rights reserved.