All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.storage.blob.BlobDeleteBatchOperation Maven / Gradle / Ivy

There is a newer version: 8.6.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy