Package com.databricks.sdk.service.sql
Class DbsqlPermissionsAPI
- java.lang.Object
-
- com.databricks.sdk.service.sql.DbsqlPermissionsAPI
-
@Generated public class DbsqlPermissionsAPI extends Object
The SQL Permissions API is similar to the endpoints of the :method:permissions/set. However, this exposes only one endpoint, which gets the Access Control List for a given object. You cannot modify any permissions using this API.There are three levels of permission:
- `CAN_VIEW`: Allows read-only access
- `CAN_RUN`: Allows read access and run access (superset of `CAN_VIEW`)
- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of `CAN_RUN`)
-
-
Constructor Summary
Constructors Constructor Description DbsqlPermissionsAPI(ApiClient apiClient)
Regular-use constructorDbsqlPermissionsAPI(DbsqlPermissionsService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetResponse
get(GetDbsqlPermissionRequest request)
Get object ACL.GetResponse
get(ObjectTypePlural objectType, String objectId)
DbsqlPermissionsService
impl()
SetResponse
set(ObjectTypePlural objectType, String objectId)
SetResponse
set(SetRequest request)
Set object ACL.Success
transferOwnership(OwnableObjectType objectType, TransferOwnershipObjectId objectId)
Success
transferOwnership(TransferOwnershipRequest request)
Transfer object ownership.
-
-
-
Constructor Detail
-
DbsqlPermissionsAPI
public DbsqlPermissionsAPI(ApiClient apiClient)
Regular-use constructor
-
DbsqlPermissionsAPI
public DbsqlPermissionsAPI(DbsqlPermissionsService mock)
Constructor for mocks
-
-
Method Detail
-
get
public GetResponse get(ObjectTypePlural objectType, String objectId)
-
get
public GetResponse get(GetDbsqlPermissionRequest request)
Get object ACL.Gets a JSON representation of the access control list (ACL) for a specified object.
-
set
public SetResponse set(ObjectTypePlural objectType, String objectId)
-
set
public SetResponse set(SetRequest request)
Set object ACL.Sets the access control list (ACL) for a specified object. This operation will complete rewrite the ACL.
-
transferOwnership
public Success transferOwnership(OwnableObjectType objectType, TransferOwnershipObjectId objectId)
-
transferOwnership
public Success transferOwnership(TransferOwnershipRequest request)
Transfer object ownership.Transfers ownership of a dashboard, query, or alert to an active user. Requires an admin API key.
-
impl
public DbsqlPermissionsService impl()
-
-