Changed type of CommitBlockCount to int32_t (#2318)

This commit is contained in:
JinmingHu 2021-05-19 14:36:13 +08:00 committed by GitHub
parent 0a0bd6fbc2
commit 7b3f5d3c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -11,6 +11,7 @@
- Removed `ContentType` from `GetBlockListResult`.
- Moved `GetPageRangesResult` to detail namespace.
- `BlobServiceClient::UndeleteBlobContainer` doesn't support restoring a deleted container under a different name anymore.
- Changed the type of block count to `int32_t`.
## 12.0.0-beta.10 (2021-04-16)

View File

@ -936,7 +936,7 @@ namespace Azure { namespace Storage { namespace Blobs {
* The number of committed blocks present in the blob. This value is null for block blobs or
* page blobs.
*/
Azure::Nullable<int64_t> CommittedBlockCount;
Azure::Nullable<int32_t> CommittedBlockCount;
/**
* If the blob has been sealed. This value is null for block blobs or page blobs.
*/
@ -1120,7 +1120,7 @@ namespace Azure { namespace Storage { namespace Blobs {
* The number of committed blocks present in the blob. This value is null for block blobs or
* page blobs.
*/
int64_t CommittedBlockCount = 0;
int32_t CommittedBlockCount = 0;
/**
* True if the blob data and metadata are completely encrypted using the specified algorithm.
* Otherwise, the value is set to false (when the blob is unencrypted, or if only parts of the
@ -1164,7 +1164,7 @@ namespace Azure { namespace Storage { namespace Blobs {
* The number of committed blocks present in the blob. This value is null for block blobs or
* page blobs.
*/
int64_t CommittedBlockCount = 0;
int32_t CommittedBlockCount = 0;
/**
* True if the blob data and metadata are completely encrypted using the specified algorithm.
* Otherwise, the value is set to false (when the blob is unencrypted, or if only parts of the
@ -6522,7 +6522,7 @@ namespace Azure { namespace Storage { namespace Blobs {
if (x_ms_blob_committed_block_count__iterator != httpResponse.GetHeaders().end())
{
response.Details.CommittedBlockCount
= std::stoll(x_ms_blob_committed_block_count__iterator->second);
= std::stoi(x_ms_blob_committed_block_count__iterator->second);
}
auto x_ms_blob_sealed__iterator = httpResponse.GetHeaders().find("x-ms-blob-sealed");
if (x_ms_blob_sealed__iterator != httpResponse.GetHeaders().end())
@ -10552,7 +10552,7 @@ namespace Azure { namespace Storage { namespace Blobs {
response.AppendOffset
= std::stoll(httpResponse.GetHeaders().at("x-ms-blob-append-offset"));
response.CommittedBlockCount
= std::stoll(httpResponse.GetHeaders().at("x-ms-blob-committed-block-count"));
= std::stoi(httpResponse.GetHeaders().at("x-ms-blob-committed-block-count"));
response.IsServerEncrypted
= httpResponse.GetHeaders().at("x-ms-request-server-encrypted") == "true";
auto x_ms_encryption_key_sha256__iterator
@ -10729,7 +10729,7 @@ namespace Azure { namespace Storage { namespace Blobs {
response.AppendOffset
= std::stoll(httpResponse.GetHeaders().at("x-ms-blob-append-offset"));
response.CommittedBlockCount
= std::stoll(httpResponse.GetHeaders().at("x-ms-blob-committed-block-count"));
= std::stoi(httpResponse.GetHeaders().at("x-ms-blob-committed-block-count"));
response.IsServerEncrypted
= httpResponse.GetHeaders().at("x-ms-request-server-encrypted") == "true";
auto x_ms_encryption_key_sha256__iterator