diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp index 53ff7006d..e25d3c823 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp @@ -291,7 +291,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @return A new batch object. */ - BlobContainerBatch CreateBatch(); + BlobContainerBatch CreateBatch() const; /** * @brief Submits a batch of subrequests. diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp index 2ea2d7cc4..b433bdfd6 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp @@ -251,7 +251,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @return A new batch object. */ - BlobServiceBatch CreateBatch(); + BlobServiceBatch CreateBatch() const; /** * @brief Submits a batch of subrequests. diff --git a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp index 7b02522be..b79eab00a 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp @@ -467,7 +467,7 @@ namespace Azure { namespace Storage { namespace Blobs { std::move(blockBlobClient), std::move(response.RawResponse)); } - BlobContainerBatch BlobContainerClient::CreateBatch() { return BlobContainerBatch(*this); } + BlobContainerBatch BlobContainerClient::CreateBatch() const { return BlobContainerBatch(*this); } Response BlobContainerClient::SubmitBatch( const BlobContainerBatch& batch, diff --git a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp index 518712335..d6c3b428d 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp @@ -310,7 +310,7 @@ namespace Azure { namespace Storage { namespace Blobs { std::move(blobContainerClient), std::move(response.RawResponse)); } - BlobServiceBatch BlobServiceClient::CreateBatch() { return BlobServiceBatch(*this); } + BlobServiceBatch BlobServiceClient::CreateBatch() const { return BlobServiceBatch(*this); } Response BlobServiceClient::SubmitBatch( const BlobServiceBatch& batch,