com.microsoft.azure.storage.blob.BlobDeleteBatchOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage Show documentation
Show all versions of azure-storage Show documentation
SDK for Microsoft Azure Storage Clients
package com.microsoft.azure.storage.blob;
import com.microsoft.azure.storage.AccessCondition;
import com.microsoft.azure.storage.BatchSubResponse;
import com.microsoft.azure.storage.core.Utility;
public final class BlobDeleteBatchOperation extends BlobBatchOperation {
public void addSubOperation(CloudBlob blob) {
this.addSubOperation(blob, DeleteSnapshotsOption.NONE, null /* accessCondition */, null /* options */);
}
public void addSubOperation(CloudBlob blob, final DeleteSnapshotsOption deleteSnapshotsOption,
final AccessCondition accessCondition, BlobRequestOptions options) {
Utility.assertNotNull("blob", blob);
Utility.assertNotNull("deleteSnapshotsOption", deleteSnapshotsOption);
options = BlobRequestOptions.populateAndApplyDefaults(options, blob.properties.getBlobType(), blob.blobServiceClient);
super.addSubOperation(blob.deleteImpl(deleteSnapshotsOption, accessCondition, options), blob);
}
@Override
final protected Void convertResponse(BatchSubResponse response) {
return null;
}
}