From 8fa71e0f315cf82018882366217615fad3ddd1c7 Mon Sep 17 00:00:00 2001 From: Kan Tang Date: Fri, 19 Mar 2021 15:48:01 +0800 Subject: [PATCH] Remove ShareStats. (#1946) --- .../azure-storage-files-shares/CHANGELOG.md | 3 +-- .../files/shares/protocol/share_rest_client.hpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/sdk/storage/azure-storage-files-shares/CHANGELOG.md b/sdk/storage/azure-storage-files-shares/CHANGELOG.md index fe61eb485..f9855804f 100644 --- a/sdk/storage/azure-storage-files-shares/CHANGELOG.md +++ b/sdk/storage/azure-storage-files-shares/CHANGELOG.md @@ -29,8 +29,7 @@ - Renamed `ShareRetentionPolicy` to `RetentionPolicy`. - Renamed `ShareProtocolSettings` to `ProtocolSettings`. - Renamed `CopyStatusType` to `CopyStatus` -- Removed `FileRangeWriteType`. -- Removed `ShareFileRangeList`. +- Removed `FileRangeWriteType`, `ShareFileRangeList` and `ShareStats`. ## 12.0.0-beta.8 (2021-02-12) diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp index 7e9d28490..cc6db87e2 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp @@ -358,14 +358,6 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { SmbSettings Settings; // Settings for SMB protocol. }; - // Stats for the share. - struct ShareStats - { - int64_t ShareUsageInBytes - = int64_t(); // The approximate size of the data stored in bytes. Note that this value may - // not include all recently created or recently resized files. - }; - // Signed identifier. struct SignedIdentifier { @@ -635,6 +627,14 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { std::vector ClearRanges; }; + // Stats for the share. + struct ShareStats + { + int64_t ShareUsageInBytes + = int64_t(); // The approximate size of the data stored in bytes. Note that this value may + // not include all recently created or recently resized files. + }; + // Specify one of the following options: - Update: Writes the bytes specified by the request // body into the specified range. The Range and Content-Length headers must match to perform the // update. - Clear: Clears the specified range and releases the space used in storage for that