diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp index 105b92490..50dada4fe 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp @@ -94,7 +94,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @return A new BlockBlobClient instance. */ - BlockBlobClient GetBlockBlobClient() const; + BlockBlobClient AsBlockBlobClient() const; /** * @brief Creates a new AppendBlobClient object with the same uri as this BlobClient. @@ -102,7 +102,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @return A new AppendBlobClient instance. */ - AppendBlobClient GetAppendBlobClient() const; + AppendBlobClient AsAppendBlobClient() const; /** * @brief Creates a new PageBlobClient object with the same uri as this BlobClient. @@ -110,7 +110,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @return A new PageBlobClient instance. */ - PageBlobClient GetPageBlobClient() const; + PageBlobClient AsPageBlobClient() const; /** * @brief Gets the blob's primary uri endpoint. diff --git a/sdk/storage/azure-storage-blobs/src/blob_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_client.cpp index 386e05fac..8e8d20387 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_client.cpp @@ -116,11 +116,11 @@ namespace Azure { namespace Storage { namespace Blobs { m_pipeline = std::make_shared(policies); } - BlockBlobClient BlobClient::GetBlockBlobClient() const { return BlockBlobClient(*this); } + BlockBlobClient BlobClient::AsBlockBlobClient() const { return BlockBlobClient(*this); } - AppendBlobClient BlobClient::GetAppendBlobClient() const { return AppendBlobClient(*this); } + AppendBlobClient BlobClient::AsAppendBlobClient() const { return AppendBlobClient(*this); } - PageBlobClient BlobClient::GetPageBlobClient() const { return PageBlobClient(*this); } + PageBlobClient BlobClient::AsPageBlobClient() const { return PageBlobClient(*this); } BlobClient BlobClient::WithSnapshot(const std::string& snapshot) const { 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 449121601..69e29bd2f 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp @@ -123,17 +123,17 @@ namespace Azure { namespace Storage { namespace Blobs { BlockBlobClient BlobContainerClient::GetBlockBlobClient(const std::string& blobName) const { - return GetBlobClient(blobName).GetBlockBlobClient(); + return GetBlobClient(blobName).AsBlockBlobClient(); } AppendBlobClient BlobContainerClient::GetAppendBlobClient(const std::string& blobName) const { - return GetBlobClient(blobName).GetAppendBlobClient(); + return GetBlobClient(blobName).AsAppendBlobClient(); } PageBlobClient BlobContainerClient::GetPageBlobClient(const std::string& blobName) const { - return GetBlobClient(blobName).GetPageBlobClient(); + return GetBlobClient(blobName).AsPageBlobClient(); } Azure::Core::Response BlobContainerClient::Create( diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp index 5b9a63da4..ebeac198e 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp @@ -135,7 +135,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { builder.AppendPath(Storage::Details::UrlEncodePath(path)); auto blobClient = m_blobClient; blobClient.m_blobUrl.AppendPath(Storage::Details::UrlEncodePath(path)); - auto blockBlobClient = blobClient.GetBlockBlobClient(); + auto blockBlobClient = blobClient.AsBlockBlobClient(); return FileClient( std::move(builder), std::move(blobClient), std::move(blockBlobClient), m_pipeline); } diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp index 3fa84cecf..bccc05a1f 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp @@ -124,7 +124,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { std::shared_ptr credential, const DataLakeClientOptions& options) : PathClient(fileUri, credential, options), - m_blockBlobClient(m_blobClient.GetBlockBlobClient()) + m_blockBlobClient(m_blobClient.AsBlockBlobClient()) { std::vector> policies; policies.emplace_back(std::make_unique( @@ -155,7 +155,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { std::shared_ptr credential, const DataLakeClientOptions& options) : PathClient(fileUri, credential, options), - m_blockBlobClient(m_blobClient.GetBlockBlobClient()) + m_blockBlobClient(m_blobClient.AsBlockBlobClient()) { std::vector> policies; policies.emplace_back(std::make_unique( @@ -183,7 +183,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { } FileClient::FileClient(const std::string& fileUri, const DataLakeClientOptions& options) - : PathClient(fileUri, options), m_blockBlobClient(m_blobClient.GetBlockBlobClient()) + : PathClient(fileUri, options), m_blockBlobClient(m_blobClient.AsBlockBlobClient()) { std::vector> policies; policies.emplace_back(std::make_unique( diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp index 26dbfc8b1..ec08123cb 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp @@ -172,7 +172,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { auto builder = m_dfsUri; builder.AppendPath(Storage::Details::UrlEncodePath(path)); auto blobClient = m_blobContainerClient.GetBlobClient(path); - auto blockBlobClient = blobClient.GetBlockBlobClient(); + auto blockBlobClient = blobClient.AsBlockBlobClient(); return FileClient( std::move(builder), std::move(blobClient), std::move(blockBlobClient), m_pipeline); }