Class AccountStorageCredentialsAPI
- java.lang.Object
-
- com.databricks.sdk.service.catalog.AccountStorageCredentialsAPI
-
@Generated public class AccountStorageCredentialsAPI extends Object
These APIs manage storage credentials for a particular metastore.
-
-
Constructor Summary
Constructors Constructor Description AccountStorageCredentialsAPI(ApiClient apiClient)
Regular-use constructorAccountStorageCredentialsAPI(AccountStorageCredentialsService mock)
Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageCredentialInfo
create(CreateStorageCredential request)
Create a storage credential.StorageCredentialInfo
create(String name, String metastoreId)
StorageCredentialInfo
get(GetAccountStorageCredentialRequest request)
Gets the named storage credential.StorageCredentialInfo
get(String metastoreId, String name)
AccountStorageCredentialsService
impl()
Iterable<StorageCredentialInfo>
list(ListAccountStorageCredentialsRequest request)
Get all storage credentials assigned to a metastore.Iterable<StorageCredentialInfo>
list(String metastoreId)
-
-
-
Constructor Detail
-
AccountStorageCredentialsAPI
public AccountStorageCredentialsAPI(ApiClient apiClient)
Regular-use constructor
-
AccountStorageCredentialsAPI
public AccountStorageCredentialsAPI(AccountStorageCredentialsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public StorageCredentialInfo create(String name, String metastoreId)
-
create
public StorageCredentialInfo create(CreateStorageCredential request)
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.
-
get
public StorageCredentialInfo get(String metastoreId, String name)
-
get
public StorageCredentialInfo get(GetAccountStorageCredentialRequest request)
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.
-
list
public Iterable<StorageCredentialInfo> list(String metastoreId)
-
list
public Iterable<StorageCredentialInfo> list(ListAccountStorageCredentialsRequest request)
Get all storage credentials assigned to a metastore.Gets a list of all storage credentials that have been assigned to given metastore.
-
impl
public AccountStorageCredentialsService impl()
-
-