Class AzureBlobBucketOperations
java.lang.Object
io.micronaut.objectstorage.azure.AzureBlobBucketOperations
- All Implemented Interfaces:
BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
@EachBean(com.azure.storage.blob.BlobServiceClient.class)
public class AzureBlobBucketOperations
extends Object
implements BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
Azure bucket operations.
- Since:
- 3.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobBucketOperations(com.azure.storage.blob.BlobServiceClient blobServiceClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a new bucket with the given name.voidDelete a bucket/container with the given name.Optional<BucketEntry<com.azure.storage.blob.models.BlobContainerProperties>> Retrieve an existing bucket/container.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BucketOperations
exists
-
Constructor Details
-
AzureBlobBucketOperations
public AzureBlobBucketOperations(com.azure.storage.blob.BlobServiceClient blobServiceClient)
-
-
Method Details
-
create
Description copied from interface:BucketOperationsCreate a new bucket with the given name.- Specified by:
createin interfaceBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The name of the new bucket
-
retrieve
public Optional<BucketEntry<com.azure.storage.blob.models.BlobContainerProperties>> retrieve(@NonNull String name) Description copied from interface:BucketOperationsRetrieve an existing bucket/container.- Specified by:
retrievein interfaceBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The name of the bucket- Returns:
- The provider-native bucket/container data if it exists.
-
delete
Description copied from interface:BucketOperationsDelete a bucket/container with the given name.- Specified by:
deletein interfaceBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The name of the bucket/container.
-