@Generated public class AccountStorageCredentialsAPI extends Object
Constructor and Description |
---|
AccountStorageCredentialsAPI(AccountStorageCredentialsService mock)
Constructor for mocks
|
AccountStorageCredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
public AccountStorageCredentialsAPI(ApiClient apiClient)
public AccountStorageCredentialsAPI(AccountStorageCredentialsService mock)
public AccountsStorageCredentialInfo create(String metastoreId)
public AccountsStorageCredentialInfo create(AccountsCreateStorageCredential request)
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.
public void delete(DeleteAccountStorageCredentialRequest request)
Deletes a storage credential from the metastore. The caller must be an owner of the storage credential.
public AccountsStorageCredentialInfo get(String metastoreId, String storageCredentialName)
public AccountsStorageCredentialInfo get(GetAccountStorageCredentialRequest request)
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.
public Iterable<StorageCredentialInfo> list(String metastoreId)
public Iterable<StorageCredentialInfo> list(ListAccountStorageCredentialsRequest request)
Gets a list of all storage credentials that have been assigned to given metastore.
public AccountsStorageCredentialInfo update(String metastoreId, String storageCredentialName)
public AccountsStorageCredentialInfo update(AccountsUpdateStorageCredential request)
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.
public AccountStorageCredentialsService impl()
Copyright © 2023. All rights reserved.