@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)
public EffectivePermissionsList getEffective(String securableType, String fullName)
public EffectivePermissionsList getEffective(GetEffectiveRequest request)
public UpdatePermissionsResponse update(UpdatePermissions request)
public GrantsService impl()
Copyright © 2025. All rights reserved.