From be601f2cddde9c197636f40ba658b6920a650239 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Thu, 26 Nov 2020 14:32:43 +0800 Subject: [PATCH] fix parameter name case (#1024) * fix parameter name case * more --- .../inc/azure/storage/blobs/blob_batch_client.hpp | 4 ++-- .../inc/azure/storage/blobs/blob_client.hpp | 4 ++-- sdk/storage/azure-storage-blobs/src/blob_client.cpp | 7 +++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_batch_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_batch_client.hpp index b24b95bf1..332fa99ec 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_batch_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_batch_client.hpp @@ -38,7 +38,7 @@ namespace Azure { namespace Storage { namespace Blobs { * container containing the blob to set the tier of. * @param blobName The name of the blob * to set the tier of. - * @param Tier Indicates the tier to be set on the blob. + * @param tier Indicates the tier to be set on the blob. * * @param options Optional parameters to execute this function. * @return An index of this @@ -48,7 +48,7 @@ namespace Azure { namespace Storage { namespace Blobs { int32_t SetBlobAccessTier( const std::string& containerName, const std::string& blobName, - Models::AccessTier Tier, + Models::AccessTier tier, const SetBlobAccessTierOptions& options = SetBlobAccessTierOptions()); private: 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 e73be5111..f50b2b9a9 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 @@ -177,13 +177,13 @@ namespace Azure { namespace Storage { namespace Blobs { * @brief Sets the tier on a blob. The operation is allowed on a page blob in a premium * storage account and on a block blob in a blob storage or general purpose v2 account. * - * @param Tier Indicates the tier to be set on the blob. + * @param tier Indicates the tier to be set on the blob. * @param options Optional * parameters to execute this function. * @return A SetBlobAccessTierResult on successfully setting the tier. */ Azure::Core::Response SetAccessTier( - Models::AccessTier Tier, + Models::AccessTier tier, const SetBlobAccessTierOptions& options = SetBlobAccessTierOptions()) const; /** diff --git a/sdk/storage/azure-storage-blobs/src/blob_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_client.cpp index 9c06bea6b..aba47a290 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_client.cpp @@ -132,8 +132,7 @@ namespace Azure { namespace Storage { namespace Blobs { else { newClient.m_blobUrl.AppendQueryParameter( - Storage::Details::HttpQuerySnapshot, - Storage::Details::UrlEncodeQueryParameter(snapshot)); + Storage::Details::HttpQuerySnapshot, Storage::Details::UrlEncodeQueryParameter(snapshot)); } return newClient; } @@ -544,11 +543,11 @@ namespace Azure { namespace Storage { namespace Blobs { } Azure::Core::Response BlobClient::SetAccessTier( - Models::AccessTier Tier, + Models::AccessTier tier, const SetBlobAccessTierOptions& options) const { Details::BlobRestClient::Blob::SetBlobAccessTierOptions protocolLayerOptions; - protocolLayerOptions.Tier = Tier; + protocolLayerOptions.Tier = tier; protocolLayerOptions.RehydratePriority = options.RehydratePriority; return Details::BlobRestClient::Blob::SetAccessTier( options.Context, *m_pipeline, m_blobUrl, protocolLayerOptions);