@Generated public class GrantsAPI extends Object
Securable objects in Unity Catalog are hierarchical and privileges are inherited downward. This means that granting a privilege on the catalog automatically grants the privilege to all current and future objects within the catalog. Similarly, privileges granted on a schema are inherited by all current and future objects within that schema.
| Constructor and Description |
|---|
GrantsAPI(ApiClient apiClient)
Regular-use constructor
|
GrantsAPI(GrantsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
GetPermissionsResponse |
get(GetGrantRequest request)
Gets the permissions for a securable.
|
GetPermissionsResponse |
get(String securableType,
String fullName) |
EffectivePermissionsList |
getEffective(GetEffectiveRequest request)
Gets the effective permissions for a securable.
|
EffectivePermissionsList |
getEffective(String securableType,
String fullName) |
GrantsService |
impl() |
UpdatePermissionsResponse |
update(UpdatePermissions request)
Updates the permissions for a securable.
|
public GrantsAPI(ApiClient apiClient)
public GrantsAPI(GrantsService mock)
public GetPermissionsResponse get(String securableType, String fullName)
public GetPermissionsResponse get(GetGrantRequest request)
NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
public EffectivePermissionsList getEffective(String securableType, String fullName)
public EffectivePermissionsList getEffective(GetEffectiveRequest request)
NOTE: we recommend using max_results=0 to use the paginated version of this API. Unpaginated calls will be deprecated soon.
PAGINATION BEHAVIOR: When using pagination (max_results >= 0), a page may contain zero results while still providing a next_page_token. Clients must continue reading pages until next_page_token is absent, which is the only indication that the end of results has been reached.
public UpdatePermissionsResponse update(UpdatePermissions request)
public GrantsService impl()
Copyright © 2026. All rights reserved.