6#include "azure/storage/blobs/blob_client.hpp"
12namespace Azure {
namespace Storage {
namespace Files {
namespace DataLake {
16namespace Azure {
namespace Storage {
namespace Blobs {
45 const std::string& connectionString,
46 const std::string& blobContainerName,
47 const std::string& blobName,
62 const std::string& blobUrl,
63 std::shared_ptr<StorageSharedKeyCredential> credential,
77 const std::string& blobUrl,
78 std::shared_ptr<const Core::Credentials::TokenCredential> credential,
92 const std::string& blobUrl,
125 Azure::Response<Models::UploadBlockBlobResult>
Upload(
126 Azure::Core::IO::BodyStream& content,
128 const Azure::Core::Context& context = Azure::Core::Context())
const;
140 Azure::Response<Models::UploadBlockBlobFromResult>
UploadFrom(
141 const uint8_t* buffer,
144 const Azure::Core::Context& context = Azure::Core::Context())
const;
155 Azure::Response<Models::UploadBlockBlobFromResult>
UploadFrom(
156 const std::string& fileName,
158 const Azure::Core::Context& context = Azure::Core::Context())
const;
169 const std::string& sourceUri,
171 const Azure::Core::Context& context = Azure::Core::Context())
const;
185 const std::string& blockId,
186 Azure::Core::IO::BodyStream& content,
188 const Azure::Core::Context& context = Azure::Core::Context())
const;
205 const std::string& blockId,
206 const std::string& sourceUri,
208 const Azure::Core::Context& context = Azure::Core::Context())
const;
225 const std::vector<std::string>& blockIds,
227 const Azure::Core::Context& context = Azure::Core::Context())
const;
242 const Azure::Core::Context& context = Azure::Core::Context())
const;
252 Azure::Response<Models::QueryBlobResult>
Query(
253 const std::string& querySqlExpression,
255 const Azure::Core::Context& context = Azure::Core::Context())
const;
260 friend class Files::DataLake::DataLakeFileClient;
The BlobClient allows you to manipulate Azure Storage blobs.
Definition blob_client.hpp:39
The BlockBlobClient allows you to manipulate Azure Storage block blobs.
Definition block_blob_client.hpp:31
BlockBlobClient WithSnapshot(const std::string &snapshot) const
Initializes a new instance of the BlockBlobClient class with an identical URL source but the specifie...
Azure::Response< Models::GetBlockListResult > GetBlockList(const GetBlockListOptions &options=GetBlockListOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Retrieves the list of blocks that have been uploaded as part of a block blob. There are two block lis...
BlockBlobClient(const std::string &blobUrl, std::shared_ptr< const Core::Credentials::TokenCredential > credential, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlockBlobClient.
Azure::Response< Models::UploadBlockBlobFromResult > UploadFrom(const uint8_t *buffer, size_t bufferSize, const UploadBlockBlobFromOptions &options=UploadBlockBlobFromOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new block blob, or updates the content of an existing block blob. Updating an existing bloc...
Azure::Response< Models::StageBlockResult > StageBlock(const std::string &blockId, Azure::Core::IO::BodyStream &content, const StageBlockOptions &options=StageBlockOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new block as part of a block blob's staging area to be eventually committed via the CommitB...
Azure::Response< Models::UploadBlockBlobResult > Upload(Azure::Core::IO::BodyStream &content, const UploadBlockBlobOptions &options=UploadBlockBlobOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new block blob, or updates the content of an existing block blob. Updating an existing bloc...
Azure::Response< Models::CommitBlockListResult > CommitBlockList(const std::vector< std::string > &blockIds, const CommitBlockListOptions &options=CommitBlockListOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Writes a blob by specifying the list of block IDs that make up the blob. In order to be written as pa...
Azure::Response< Models::QueryBlobResult > Query(const std::string &querySqlExpression, const QueryBlobOptions &options=QueryBlobOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Returns the result of a query against the blob.
Azure::Response< Models::UploadBlockBlobFromUriResult > UploadFromUri(const std::string &sourceUri, const UploadBlockBlobFromUriOptions &options=UploadBlockBlobFromUriOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new Block Blob where the contents of the blob are read from a given URL.
Azure::Response< Models::UploadBlockBlobFromResult > UploadFrom(const std::string &fileName, const UploadBlockBlobFromOptions &options=UploadBlockBlobFromOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new block blob, or updates the content of an existing block blob. Updating an existing bloc...
BlockBlobClient(const std::string &blobUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlockBlobClient.
BlockBlobClient(const std::string &blobUrl, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlockBlobClient.
Azure::Response< Models::StageBlockFromUriResult > StageBlockFromUri(const std::string &blockId, const std::string &sourceUri, const StageBlockFromUriOptions &options=StageBlockFromUriOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new block to be committed as part of a blob where the contents are read from the sourceUri.
BlockBlobClient WithVersionId(const std::string &versionId) const
Creates a clone of this instance that references a version ID rather than the base blob.
static BlockBlobClient CreateFromConnectionString(const std::string &connectionString, const std::string &blobContainerName, const std::string &blobName, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlockBlobClient.
Client options used to initialize all kinds of blob clients.
Definition blob_options.hpp:175
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::CommitBlockList.
Definition blob_options.hpp:1100
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::GetBlockList.
Definition blob_options.hpp:1141
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::Query.
Definition blob_options.hpp:1280
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::StageBlockFromUri.
Definition blob_options.hpp:1056
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::StageBlock.
Definition blob_options.hpp:1038
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::UploadFrom.
Definition blob_options.hpp:904
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::UploadFromUri.
Definition blob_options.hpp:963
Optional parameters for Azure::Storage::Blobs::BlockBlobClient::Upload.
Definition blob_options.hpp:856