@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 |
|---|---|
PermissionsList |
get(GetGrantRequest request)
Get permissions.
|
PermissionsList |
get(SecurableType securableType,
String fullName) |
EffectivePermissionsList |
getEffective(GetEffectiveRequest request)
Get effective permissions.
|
EffectivePermissionsList |
getEffective(SecurableType securableType,
String fullName) |
GrantsService |
impl() |
PermissionsList |
update(SecurableType securableType,
String fullName) |
PermissionsList |
update(UpdatePermissions request)
Update permissions.
|
public GrantsAPI(ApiClient apiClient)
public GrantsAPI(GrantsService mock)
public PermissionsList get(SecurableType securableType, String fullName)
public PermissionsList get(GetGrantRequest request)
Gets the permissions for a securable.
public EffectivePermissionsList getEffective(SecurableType securableType, String fullName)
public EffectivePermissionsList getEffective(GetEffectiveRequest request)
Gets the effective permissions for a securable.
public PermissionsList update(SecurableType securableType, String fullName)
public PermissionsList update(UpdatePermissions request)
Updates the permissions for a securable.
public GrantsService impl()
Copyright © 2024. All rights reserved.