@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)
Get permissions.
|
GetPermissionsResponse |
get(String securableType,
String fullName) |
EffectivePermissionsList |
getEffective(GetEffectiveRequest request)
Get effective permissions.
|
EffectivePermissionsList |
getEffective(String securableType,
String fullName) |
GrantsService |
impl() |
UpdatePermissionsResponse |
update(String securableType,
String fullName) |
UpdatePermissionsResponse |
update(UpdatePermissions request)
Update permissions.
|
public GrantsAPI(ApiClient apiClient)
public GrantsAPI(GrantsService mock)
public GetPermissionsResponse get(String securableType, String fullName)
public GetPermissionsResponse get(GetGrantRequest request)
Gets the permissions for a securable. Does not include inherited permissions.
public EffectivePermissionsList getEffective(String securableType, String fullName)
public EffectivePermissionsList getEffective(GetEffectiveRequest request)
Gets the effective permissions for a securable. Includes inherited permissions from any parent securables.
public UpdatePermissionsResponse update(String securableType, String fullName)
public UpdatePermissionsResponse update(UpdatePermissions request)
Updates the permissions for a securable.
public GrantsService impl()
Copyright © 2025. All rights reserved.