@Generated public class StorageAPI extends Object
Constructor and Description |
---|
StorageAPI(ApiClient apiClient)
Regular-use constructor
|
StorageAPI(StorageService mock)
Constructor for mocks
|
Modifier and Type | Method and Description |
---|---|
StorageConfiguration |
create(CreateStorageConfigurationRequest request)
Create new storage configuration.
|
StorageConfiguration |
create(String storageConfigurationName,
RootBucketInfo rootBucketInfo) |
void |
delete(DeleteStorageRequest request)
Delete storage configuration.
|
void |
delete(String storageConfigurationId) |
StorageConfiguration |
get(GetStorageRequest request)
Get storage configuration.
|
StorageConfiguration |
get(String storageConfigurationId) |
StorageService |
impl() |
Iterable<StorageConfiguration> |
list()
Get all storage configurations.
|
public StorageAPI(ApiClient apiClient)
public StorageAPI(StorageService mock)
public StorageConfiguration create(String storageConfigurationName, RootBucketInfo rootBucketInfo)
public StorageConfiguration create(CreateStorageConfigurationRequest request)
Creates new storage configuration for an account, specified by ID. Uploads a storage configuration object that represents the root AWS S3 bucket in your account. Databricks stores related workspace assets including DBFS, cluster logs, and job results. For the AWS S3 bucket, you need to configure the required bucket policy.
For information about how to create a new workspace with this API, see [Create a new workspace using the Account API]
[Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html
public void delete(String storageConfigurationId)
public void delete(DeleteStorageRequest request)
Deletes a Databricks storage configuration. You cannot delete a storage configuration that is associated with any workspace.
public StorageConfiguration get(String storageConfigurationId)
public StorageConfiguration get(GetStorageRequest request)
Gets a Databricks storage configuration for an account, both specified by ID.
public Iterable<StorageConfiguration> list()
Gets a list of all Databricks storage configurations for your account, specified by ID.
public StorageService impl()
Copyright © 2023. All rights reserved.