Package io.unitycatalog.client.api
Class GrantsApi
java.lang.Object
io.unitycatalog.client.api.GrantsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.5.0")
public class GrantsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(SecurableType securableType, String fullName, String principal) Get permissions Gets the permissions for a securable.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response) getWithHttpInfo(SecurableType securableType, String fullName, String principal) Get permissions Gets the permissions for a securable.update(SecurableType securableType, String fullName, UpdatePermissions updatePermissions) Update a permission Updates the permissions for a securable.updateWithHttpInfo(SecurableType securableType, String fullName, UpdatePermissions updatePermissions) Update a permission Updates the permissions for a securable.
-
Constructor Details
-
GrantsApi
public GrantsApi() -
GrantsApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
get
public PermissionsList get(SecurableType securableType, String fullName, String principal) throws ApiException Get permissions Gets the permissions for a securable.- Parameters:
securableType- Type of securable. (required)fullName- Full name of securable. (required)principal- If provided, only the permissions for the specified principal (user or group) are returned. (optional)- Returns:
- PermissionsList
- Throws:
ApiException- if fails to make API call
-
getWithHttpInfo
public ApiResponse<PermissionsList> getWithHttpInfo(SecurableType securableType, String fullName, String principal) throws ApiException Get permissions Gets the permissions for a securable.- Parameters:
securableType- Type of securable. (required)fullName- Full name of securable. (required)principal- If provided, only the permissions for the specified principal (user or group) are returned. (optional)- Returns:
- ApiResponse<PermissionsList>
- Throws:
ApiException- if fails to make API call
-
update
public PermissionsList update(SecurableType securableType, String fullName, UpdatePermissions updatePermissions) throws ApiException Update a permission Updates the permissions for a securable.- Parameters:
securableType- Type of securable. (required)fullName- Full name of securable. (required)updatePermissions- (optional)- Returns:
- PermissionsList
- Throws:
ApiException- if fails to make API call
-
updateWithHttpInfo
public ApiResponse<PermissionsList> updateWithHttpInfo(SecurableType securableType, String fullName, UpdatePermissions updatePermissions) throws ApiException Update a permission Updates the permissions for a securable.- Parameters:
securableType- Type of securable. (required)fullName- Full name of securable. (required)updatePermissions- (optional)- Returns:
- ApiResponse<PermissionsList>
- Throws:
ApiException- if fails to make API call
-