6 #include "azure/core/credentials/credentials.hpp"
7 #include "azure/storage/blobs/blob_client.hpp"
8 #include "azure/storage/blobs/blob_options.hpp"
9 #include "azure/storage/blobs/protocol/blob_rest_client.hpp"
10 #include "azure/storage/common/storage_credential.hpp"
15 namespace Azure {
namespace Storage {
namespace Files {
namespace DataLake {
19 namespace Azure {
namespace Storage {
namespace Blobs {
48 const std::string& connectionString,
49 const std::string& containerName,
50 const std::string& blobName,
65 const std::string& blobUri,
66 std::shared_ptr<SharedKeyCredential> credential,
80 const std::string& blobUri,
81 std::shared_ptr<Core::Credentials::ClientSecretCredential> credential,
95 const std::string& blobUri,
127 Azure::Core::Response<UploadBlockBlobResult>
Upload(
128 Azure::Core::Http::BodyStream* content,
140 Azure::Core::Response<UploadBlockBlobFromResult>
UploadFrom(
141 const uint8_t* buffer,
142 std::size_t bufferSize,
153 Azure::Core::Response<UploadBlockBlobFromResult>
UploadFrom(
154 const std::string& file,
167 Azure::Core::Response<StageBlockResult>
StageBlock(
168 const std::string& blockId,
169 Azure::Core::Http::BodyStream* content,
186 const std::string& blockId,
187 const std::string& sourceUri,
204 const std::vector<std::pair<BlockType, std::string>>& blockIds,
223 friend class Files::DataLake::FileClient;
Optional parameters for BlockBlobClient::GetBlockList.
Definition: blob_options.hpp:1101
static BlockBlobClient CreateFromConnectionString(const std::string &connectionString, const std::string &containerName, const std::string &blobName, const BlockBlobClientOptions &options=BlockBlobClientOptions())
Initialize a new instance of BlockBlobClient.
Definition: block_blob_client.cpp:14
The BlobClient allows you to manipulate Azure Storage blobs.
Definition: blob_client.hpp:30
Optional parameters for BlockBlobClient::Upload.
Definition: blob_options.hpp:911
Optional parameters for BlockBlobClient::UploadFrom.
Definition: blob_options.hpp:956
Block blob client options used to initalize BlockBlobClient.
Definition: blob_options.hpp:541
Azure::Core::Response< UploadBlockBlobFromResult > UploadFrom(const uint8_t *buffer, std::size_t bufferSize, const UploadBlockBlobFromOptions &options=UploadBlockBlobFromOptions()) const
Creates a new block blob, or updates the content of an existing block blob. Updating an existing bloc...
Definition: block_blob_client.cpp:105
Optional parameters for BlockBlobClient::CommitBlockList.
Definition: blob_options.hpp:1070
Azure::Core::Response< StageBlockFromUriResult > StageBlockFromUri(const std::string &blockId, const std::string &sourceUri, const StageBlockFromUriOptions &options=StageBlockFromUriOptions()) const
Creates a new block to be committed as part of a blob where the contents are read from the sourceUri.
Definition: block_blob_client.cpp:286
Azure::Core::Response< GetBlockListResult > GetBlockList(const GetBlockListOptions &options=GetBlockListOptions()) const
Retrieves the list of blocks that have been uploaded as part of a block blob. There are two block lis...
Definition: block_blob_client.cpp:351
Optional parameters for BlockBlobClient::StageBlock.
Definition: blob_options.hpp:992
BlockBlobClient WithVersionId(const std::string &versionId) const
Creates a clone of this instance that references a version ID rather than the base blob.
Definition: block_blob_client.cpp:64
The BlockBlobClient allows you to manipulate Azure Storage block blobs.
Definition: block_blob_client.hpp:34
Azure::Core::Response< UploadBlockBlobResult > Upload(Azure::Core::Http::BodyStream *content, const UploadBlockBlobOptions &options=UploadBlockBlobOptions()) const
Creates a new block blob, or updates the content of an existing block blob. Updating an existing bloc...
Definition: block_blob_client.cpp:78
Azure::Core::Response< StageBlockResult > StageBlock(const std::string &blockId, Azure::Core::Http::BodyStream *content, const StageBlockOptions &options=StageBlockOptions()) const
Creates a new block as part of a block blob's staging area to be eventually committed via the CommitB...
Definition: block_blob_client.cpp:265
BlockBlobClient WithSnapshot(const std::string &snapshot) const
Initializes a new instance of the BlockBlobClient class with an identical uri source but the specifie...
Definition: block_blob_client.cpp:50
Optional parameters for BlockBlobClient::StageBlockFromUri.
Definition: blob_options.hpp:1022
BlockBlobClient(const std::string &blobUri, std::shared_ptr< SharedKeyCredential > credential, const BlockBlobClientOptions &options=BlockBlobClientOptions())
Initialize a new instance of BlockBlobClient.
Definition: block_blob_client.cpp:25
Azure::Core::Response< CommitBlockListResult > CommitBlockList(const std::vector< std::pair< BlockType, std::string >> &blockIds, const CommitBlockListOptions &options=CommitBlockListOptions()) const
Writes a blob by specifying the list of block IDs that make up the blob. In order to be written as pa...
Definition: block_blob_client.cpp:325