fix parameter name case (#1024)

* fix parameter name case

* more
This commit is contained in:
JinmingHu 2020-11-26 14:32:43 +08:00 committed by GitHub
parent 50170a062d
commit be601f2cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View File

@ -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:

View File

@ -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<Models::SetBlobAccessTierResult> SetAccessTier(
Models::AccessTier Tier,
Models::AccessTier tier,
const SetBlobAccessTierOptions& options = SetBlobAccessTierOptions()) const;
/**

View File

@ -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<Models::SetBlobAccessTierResult> 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);