com.databricks.sdk.service.catalog.AccountStorageCredentialsService Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.catalog;
import com.databricks.sdk.support.Generated;
/**
* These APIs manage storage credentials for a particular metastore.
*
* This is the high-level interface, that contains generated methods.
*
*
Evolving: this interface is under development. Method signatures may change.
*/
@Generated
public interface AccountStorageCredentialsService {
/**
* Create a storage credential.
*
*
Creates a new storage credential. The request object is specific to the cloud:
*
*
* **AwsIamRole** for AWS credentials * **AzureServicePrincipal** for Azure credentials *
* **GcpServiceAcountKey** for GCP credentials.
*
*
The caller must be a metastore admin and have the **CREATE_STORAGE_CREDENTIAL** privilege on
* the metastore.
*/
AccountsStorageCredentialInfo create(
AccountsCreateStorageCredential accountsCreateStorageCredential);
/**
* Delete a storage credential.
*
*
Deletes a storage credential from the metastore. The caller must be an owner of the storage
* credential.
*/
void delete(DeleteAccountStorageCredentialRequest deleteAccountStorageCredentialRequest);
/**
* Gets the named storage credential.
*
*
Gets a storage credential from the metastore. The caller must be a metastore admin, the
* owner of the storage credential, or have a level of privilege on the storage credential.
*/
AccountsStorageCredentialInfo get(
GetAccountStorageCredentialRequest getAccountStorageCredentialRequest);
/**
* Get all storage credentials assigned to a metastore.
*
*
Gets a list of all storage credentials that have been assigned to given metastore.
*/
ListAccountStorageCredentialsResponse list(
ListAccountStorageCredentialsRequest listAccountStorageCredentialsRequest);
/**
* Updates a storage credential.
*
*
Updates a storage credential on the metastore. The caller must be the owner of the storage
* credential. If the caller is a metastore admin, only the __owner__ credential can be changed.
*/
AccountsStorageCredentialInfo update(
AccountsUpdateStorageCredential accountsUpdateStorageCredential);
}