@Generated public class AccountStorageCredentialsAPI extends Object
| Constructor and Description |
|---|
AccountStorageCredentialsAPI(AccountStorageCredentialsService mock)
Constructor for mocks
|
AccountStorageCredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccountsStorageCredentialInfo |
create(AccountsCreateStorageCredential request)
Create a storage credential.
|
AccountsStorageCredentialInfo |
create(String metastoreId) |
void |
delete(DeleteAccountStorageCredentialRequest request)
Delete a storage credential.
|
void |
delete(String metastoreId,
String name) |
AccountsStorageCredentialInfo |
get(GetAccountStorageCredentialRequest request)
Gets the named storage credential.
|
AccountsStorageCredentialInfo |
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) |
AccountsStorageCredentialInfo |
update(AccountsUpdateStorageCredential request)
Updates a storage credential.
|
AccountsStorageCredentialInfo |
update(String metastoreId,
String name) |
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 name)
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 name)
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.