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 Details

    • GrantsApi

      public GrantsApi()
    • GrantsApi

      public GrantsApi(ApiClient apiClient)
  • 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