Class GrantsAPI
- java.lang.Object
-
- com.databricks.sdk.service.catalog.GrantsAPI
-
@Generated public class GrantsAPI extends Object
In Unity Catalog, data is secure by default. Initially, users have no access to data in a metastore. Access can be granted by either a metastore admin, the owner of an object, or the owner of the catalog or schema that contains the object. Securable objects in Unity Catalog are hierarchical and privileges are inherited downward.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 Summary
Constructors Constructor Description GrantsAPI(ApiClient apiClient)Regular-use constructorGrantsAPI(GrantsService mock)Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionsListget(GetGrantRequest request)Get permissions.PermissionsListget(SecurableType securableType, String fullName)EffectivePermissionsListgetEffective(GetEffectiveRequest request)Get effective permissions.EffectivePermissionsListgetEffective(SecurableType securableType, String fullName)GrantsServiceimpl()PermissionsListupdate(SecurableType securableType, String fullName)PermissionsListupdate(UpdatePermissions request)Update permissions.
-
-
-
Constructor Detail
-
GrantsAPI
public GrantsAPI(ApiClient apiClient)
Regular-use constructor
-
GrantsAPI
public GrantsAPI(GrantsService mock)
Constructor for mocks
-
-
Method Detail
-
get
public PermissionsList get(SecurableType securableType, String fullName)
-
get
public PermissionsList get(GetGrantRequest request)
Get permissions.Gets the permissions for a securable.
-
getEffective
public EffectivePermissionsList getEffective(SecurableType securableType, String fullName)
-
getEffective
public EffectivePermissionsList getEffective(GetEffectiveRequest request)
Get effective permissions.Gets the effective permissions for a securable.
-
update
public PermissionsList update(SecurableType securableType, String fullName)
-
update
public PermissionsList update(UpdatePermissions request)
Update permissions.Updates the permissions for a securable.
-
impl
public GrantsService impl()
-
-