azure-storage-blobs
blob_responses.hpp
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // SPDX-License-Identifier: MIT
3 
4 #pragma once
5 
6 #include "azure/storage/blobs/protocol/blob_rest_client.hpp"
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 
12 namespace Azure { namespace Storage { namespace Blobs {
13 
14  using UserDelegationKey = GetUserDelegationKeyResult;
15  using FindBlobsByTagsResult = FilterBlobsSegmentResult;
16 
18  {
19  std::string ETag;
20  std::string LastModified;
21  int64_t ContentLength = 0;
22  BlobHttpHeaders HttpHeaders;
23  std::map<std::string, std::string> Metadata;
24  Blobs::BlobType BlobType = Blobs::BlobType::Unknown;
25  Azure::Core::Nullable<bool> ServerEncrypted;
26  Azure::Core::Nullable<std::string> EncryptionKeySha256;
27  };
28 
30 
31  struct PageRange
32  {
33  int64_t Offset;
34  int64_t Length;
35  };
36 
38  {
39  std::string ETag;
40  std::string LastModified;
41  int64_t BlobContentLength = 0;
42  std::vector<PageRange> PageRanges;
43  std::vector<PageRange> ClearRanges;
44  };
45 
46 }}} // namespace Azure::Storage::Blobs
Azure::Storage::Blobs::GetPageBlobPageRangesResult
Definition: blob_responses.hpp:38
Azure::Storage::Blobs::UploadBlockBlobResult
Definition: blob_rest_client.hpp:1317
Azure::Storage::Blobs::BlobHttpHeaders
Definition: blob_rest_client.hpp:380
Azure::Storage::Blobs::DownloadBlobToResult
Definition: blob_responses.hpp:18
Azure::Storage::Blobs::PageRange
Definition: blob_responses.hpp:32