|
#include <blob_container_client.hpp>
Public Member Functions | |
BlobContainerClient (const std::string &blobContainerUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const BlobClientOptions &options=BlobClientOptions()) | |
Initialize a new instance of BlobContainerClient. More... | |
BlobContainerClient (const std::string &blobContainerUrl, std::shared_ptr< Core::Credentials::TokenCredential > credential, const BlobClientOptions &options=BlobClientOptions()) | |
Initialize a new instance of BlobContainerClient. More... | |
BlobContainerClient (const std::string &blobContainerUrl, const BlobClientOptions &options=BlobClientOptions()) | |
Initialize a new instance of BlobContainerClient. More... | |
BlobClient | GetBlobClient (const std::string &blobName) const |
Create a new BlobClient object by appending blobName to the end of URL. The new BlobClient uses the same request policy pipeline as this BlobContainerClient. More... | |
BlockBlobClient | GetBlockBlobClient (const std::string &blobName) const |
Create a new BlockBlobClient object by appending blobName to the end of URL. The new BlockBlobClient uses the same request policy pipeline as this BlobContainerClient. More... | |
AppendBlobClient | GetAppendBlobClient (const std::string &blobName) const |
Create a new AppendBlobClient object by appending blobName to the end of URL. The new AppendBlobClient uses the same request policy pipeline as this BlobContainerClient. More... | |
PageBlobClient | GetPageBlobClient (const std::string &blobName) const |
Create a new PageBlobClient object by appending blobName to the end of URL. The new PageBlobClient uses the same request policy pipeline as this BlobContainerClient. More... | |
std::string | GetUrl () const |
Gets the container's primary URL endpoint. More... | |
Azure::Response< Models::CreateBlobContainerResult > | Create (const CreateBlobContainerOptions &options=CreateBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a new container under the specified account. If the container with the same name already exists, the operation fails. More... | |
Azure::Response< Models::CreateBlobContainerResult > | CreateIfNotExists (const CreateBlobContainerOptions &options=CreateBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a new container under the specified account. If the container with the same name already exists, it is not changed. More... | |
Azure::Response< Models::DeleteBlobContainerResult > | Delete (const DeleteBlobContainerOptions &options=DeleteBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection. More... | |
Azure::Response< Models::DeleteBlobContainerResult > | DeleteIfExists (const DeleteBlobContainerOptions &options=DeleteBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Marks the specified container for deletion if it exists. The container and any blobs contained within it are later deleted during garbage collection. More... | |
Azure::Response< Models::BlobContainerProperties > | GetProperties (const GetBlobContainerPropertiesOptions &options=GetBlobContainerPropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Returns all user-defined metadata and system properties for the specified container. The data returned does not include the container's list of blobs. More... | |
Azure::Response< Models::SetBlobContainerMetadataResult > | SetMetadata (Metadata metadata, SetBlobContainerMetadataOptions options=SetBlobContainerMetadataOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets one or more user-defined name-value pairs for the specified container. More... | |
ListBlobsPagedResponse | ListBlobs (const ListBlobsOptions &options=ListBlobsOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Returns a sequence of blobs in this container. Enumerating the blobs may make multiple requests to the service while fetching all the values. Blobs are ordered lexicographically by name. More... | |
ListBlobsByHierarchyPagedResponse | ListBlobsByHierarchy (const std::string &delimiter, const ListBlobsOptions &options=ListBlobsOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Returns a collection of blobs in this container. Enumerating the blobs may make multiple requests to the service while fetching all the values. Blobs are ordered lexicographically by name. A delimiter can be used to traverse a virtual hierarchy of blobs as though it were a file system. More... | |
Azure::Response< Models::BlobContainerAccessPolicy > | GetAccessPolicy (const GetBlobContainerAccessPolicyOptions &options=GetBlobContainerAccessPolicyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the permissions for this container. The permissions indicate whether container data may be accessed publicly. More... | |
Azure::Response< Models::SetBlobContainerAccessPolicyResult > | SetAccessPolicy (const SetBlobContainerAccessPolicyOptions &options=SetBlobContainerAccessPolicyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the permissions for the specified container. The permissions indicate whether blob container data may be accessed publicly. More... | |
Azure::Response< Models::DeleteBlobResult > | DeleteBlob (const std::string &blobName, const DeleteBlobOptions &options=DeleteBlobOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection. Note that in order to delete a blob, you must delete all of its snapshots. You can delete both at the same time using DeleteBlobOptions.DeleteSnapshots. More... | |
Azure::Response< BlockBlobClient > | UploadBlob (const std::string &blobName, Azure::Core::IO::BodyStream &content, const UploadBlockBlobOptions &options=UploadBlockBlobOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a new block blob under this container. For partial block blob updates and other advanced features, please see BlockBlobClient. To create or modify page or see PageBlobClient or AppendBlobClient. More... | |
Static Public Member Functions | |
static BlobContainerClient | CreateFromConnectionString (const std::string &connectionString, const std::string &blobContainerName, const BlobClientOptions &options=BlobClientOptions()) |
Initialize a new instance of BlobContainerClient. More... | |
Friends | |
class | BlobServiceClient |
class | BlobLeaseClient |
The BlobContainerClient allows you to manipulate Azure Storage containers and their blobs.
|
explicit |
blobContainerUrl | A url referencing the blob container that includes the name of the account and the name of the container. |
credential | The shared key credential used to sign requests. |
options | Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. |
|
explicit |
blobContainerUrl | A url referencing the blob container that includes the name of the account and the name of the container. |
credential | The token credential used to sign requests. |
options | Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. |
|
explicit |
blobContainerUrl | A url referencing the blob that includes the name of the account and the name of the container, and possibly also a SAS token. |
options | Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. |
Azure::Response< Models::CreateBlobContainerResult > Azure::Storage::Blobs::BlobContainerClient::Create | ( | const CreateBlobContainerOptions & | options = CreateBlobContainerOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
|
static |
connectionString | A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime. |
blobContainerName | The name of the container containing this blob. |
options | Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request. |
Azure::Response< Models::CreateBlobContainerResult > Azure::Storage::Blobs::BlobContainerClient::CreateIfNotExists | ( | const CreateBlobContainerOptions & | options = CreateBlobContainerOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteBlobContainerResult > Azure::Storage::Blobs::BlobContainerClient::Delete | ( | const DeleteBlobContainerOptions & | options = DeleteBlobContainerOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteBlobResult > Azure::Storage::Blobs::BlobContainerClient::DeleteBlob | ( | const std::string & | blobName, |
const DeleteBlobOptions & | options = DeleteBlobOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
blobName | The name of the blob to delete. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteBlobContainerResult > Azure::Storage::Blobs::BlobContainerClient::DeleteIfExists | ( | const DeleteBlobContainerOptions & | options = DeleteBlobContainerOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::BlobContainerAccessPolicy > Azure::Storage::Blobs::BlobContainerClient::GetAccessPolicy | ( | const GetBlobContainerAccessPolicyOptions & | options = GetBlobContainerAccessPolicyOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
AppendBlobClient Azure::Storage::Blobs::BlobContainerClient::GetAppendBlobClient | ( | const std::string & | blobName | ) | const |
blobName | The name of the blob. |
BlobClient Azure::Storage::Blobs::BlobContainerClient::GetBlobClient | ( | const std::string & | blobName | ) | const |
blobName | The name of the blob. |
BlockBlobClient Azure::Storage::Blobs::BlobContainerClient::GetBlockBlobClient | ( | const std::string & | blobName | ) | const |
blobName | The name of the blob. |
PageBlobClient Azure::Storage::Blobs::BlobContainerClient::GetPageBlobClient | ( | const std::string & | blobName | ) | const |
blobName | The name of the blob. |
Azure::Response< Models::BlobContainerProperties > Azure::Storage::Blobs::BlobContainerClient::GetProperties | ( | const GetBlobContainerPropertiesOptions & | options = GetBlobContainerPropertiesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
|
inline |
ListBlobsPagedResponse Azure::Storage::Blobs::BlobContainerClient::ListBlobs | ( | const ListBlobsOptions & | options = ListBlobsOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
ListBlobsByHierarchyPagedResponse Azure::Storage::Blobs::BlobContainerClient::ListBlobsByHierarchy | ( | const std::string & | delimiter, |
const ListBlobsOptions & | options = ListBlobsOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
delimiter | This can be used to to traverse a virtual hierarchy of blobs as though it were a file system. The delimiter may be a single character or a string. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetBlobContainerAccessPolicyResult > Azure::Storage::Blobs::BlobContainerClient::SetAccessPolicy | ( | const SetBlobContainerAccessPolicyOptions & | options = SetBlobContainerAccessPolicyOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetBlobContainerMetadataResult > Azure::Storage::Blobs::BlobContainerClient::SetMetadata | ( | Metadata | metadata, |
SetBlobContainerMetadataOptions | options = SetBlobContainerMetadataOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
metadata | Custom metadata to set for this container. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< BlockBlobClient > Azure::Storage::Blobs::BlobContainerClient::UploadBlob | ( | const std::string & | blobName, |
Azure::Core::IO::BodyStream & | content, | ||
const UploadBlockBlobOptions & | options = UploadBlockBlobOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
blobName | The name of the blob to create. |
content | A BodyStream containing the content to upload. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |