9 #include <azure/core/credentials/credentials.hpp>
10 #include <azure/storage/common/storage_credential.hpp>
12 #include "azure/storage/blobs/blob_container_client.hpp"
14 namespace Azure {
namespace Storage {
namespace Blobs {
32 const std::string& connectionString,
44 const std::string& serviceUrl,
45 std::shared_ptr<StorageSharedKeyCredential> credential,
57 const std::string& serviceUrl,
58 std::shared_ptr<Core::Credentials::TokenCredential> credential,
70 const std::string& serviceUrl,
86 std::string
GetUrl()
const {
return m_serviceUrl.GetAbsoluteUrl(); }
100 const Azure::Core::Context& context = Azure::Core::Context())
const;
113 const Azure::DateTime& expiresOn,
115 const Azure::Core::Context& context = Azure::Core::Context())
const;
129 Azure::Response<Models::SetServicePropertiesResult>
SetProperties(
132 const Azure::Core::Context& context = Azure::Core::Context())
const;
142 Azure::Response<Models::BlobServiceProperties>
GetProperties(
144 const Azure::Core::Context& context = Azure::Core::Context())
const;
155 const Azure::Core::Context& context = Azure::Core::Context())
const;
168 const Azure::Core::Context& context = Azure::Core::Context())
const;
185 const std::string& tagFilterSqlExpression,
187 const Azure::Core::Context& context = Azure::Core::Context())
const;
199 const std::string& blobContainerName,
201 const Azure::Core::Context& context = Azure::Core::Context())
const;
213 const std::string& blobContainerName,
215 const Azure::Core::Context& context = Azure::Core::Context())
const;
227 const std::string deletedBlobContainerName,
228 const std::string deletedBlobContainerVersion,
230 const Azure::Core::Context& context = Azure::Core::Context())
const;
233 Azure::Core::Url m_serviceUrl;
234 std::shared_ptr<Azure::Core::Http::_internal::HttpPipeline> m_pipeline;
235 Azure::Nullable<EncryptionKey> m_customerProvidedKey;
236 Azure::Nullable<std::string> m_encryptionScope;
Azure::Response< Models::BlobServiceProperties > GetProperties(const GetServicePropertiesOptions &options=GetServicePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Gets the properties of a storage account's blob service, including properties for Storage Analytics a...
Definition: blob_service_client.cpp:171
Definition: blob_container_client.hpp:20
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::GetUserDelegationKey.
Definition: blob_options.hpp:197
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::GetAccountInfo.
Definition: blob_options.hpp:223
Azure::Response< Models::DeleteBlobContainerResult > DeleteBlobContainer(const std::string &blobContainerName, const DeleteBlobContainerOptions &options=DeleteBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Marks the specified blob container for deletion. The container and any blobs contained within it are ...
Definition: blob_service_client.cpp:240
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::ListBlobContainers.
Definition: blob_options.hpp:165
Response type for Azure::Storage::Blobs::BlobServiceClient::FindBlobsByTags.
Definition: blob_responses.hpp:247
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::SetProperties.
Definition: blob_options.hpp:209
FindBlobsByTagsPagedResponse FindBlobsByTags(const std::string &tagFilterSqlExpression, const FindBlobsByTagsOptions &options=FindBlobsByTagsOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
The Filter Blobs operation enables callers to list blobs across all containers whose tags match a giv...
Definition: blob_service_client.cpp:201
Definition: blob_service_client.hpp:20
Client options used to initialize all kinds of blob clients.
Definition: blob_options.hpp:135
Azure::Response< Models::AccountInfo > GetAccountInfo(const GetAccountInfoOptions &options=GetAccountInfoOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Returns the sku name and account kind for the specified account.
Definition: blob_service_client.cpp:181
Azure::Response< Models::UserDelegationKey > GetUserDelegationKey(const Azure::DateTime &expiresOn, const GetUserDelegationKeyOptions &options=GetUserDelegationKeyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Retrieves a key that can be used to delegate Active Directory authorization to shared access signatur...
Definition: blob_service_client.cpp:147
Optional parameters for Azure::Storage::Blobs::BlobContainerClient::Delete.
Definition: blob_options.hpp:284
Properties of blob service.
Definition: blob_rest_client.hpp:1428
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::GetStatistics.
Definition: blob_options.hpp:230
Azure::Response< BlobContainerClient > CreateBlobContainer(const std::string &blobContainerName, const CreateBlobContainerOptions &options=CreateBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Creates a new blob container under the specified account. If the container with the same name already...
Definition: blob_service_client.cpp:229
Optional parameters for #Azure::Storage::Blobs::BlobContainerClient::Undelete.
Definition: blob_options.hpp:295
Response type for Azure::Storage::Blobs::BlobServiceClient::ListBlobContainers.
Definition: blob_responses.hpp:215
Azure::Response< BlobContainerClient > UndeleteBlobContainer(const std::string deletedBlobContainerName, const std::string deletedBlobContainerVersion, const UndeleteBlobContainerOptions &options=UndeleteBlobContainerOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Restores a previously deleted container.
Definition: blob_service_client.cpp:249
static BlobServiceClient CreateFromConnectionString(const std::string &connectionString, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlobServiceClient.
Definition: blob_service_client.cpp:18
BlobContainerClient GetBlobContainerClient(const std::string &blobContainerName) const
Creates a new BlobContainerClient object with the same URL as this BlobServiceClient....
Definition: blob_service_client.cpp:110
Optional parameters for Azure::Storage::Blobs::BlobServiceClient::GetProperties.
Definition: blob_options.hpp:216
BlobServiceClient(const std::string &serviceUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const BlobClientOptions &options=BlobClientOptions())
Initialize a new instance of BlobServiceClient.
Definition: blob_service_client.cpp:36
std::string GetUrl() const
Gets the blob service's primary URL endpoint.
Definition: blob_service_client.hpp:86
Azure::Response< Models::ServiceStatistics > GetStatistics(const GetBlobServiceStatisticsOptions &options=GetBlobServiceStatisticsOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Retrieves statistics related to replication for the Blob service. It is only available on the seconda...
Definition: blob_service_client.cpp:191
Optional parameters for Azure::Storage::Blobs::BlobContainerClient::Create.
Definition: blob_options.hpp:256
Azure::Response< Models::SetServicePropertiesResult > SetProperties(Models::BlobServiceProperties properties, const SetServicePropertiesOptions &options=SetServicePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Sets properties for a storage account's Blob service endpoint, including properties for Storage Analy...
Definition: blob_service_client.cpp:159
ListBlobContainersPagedResponse ListBlobContainers(const ListBlobContainersOptions &options=ListBlobContainersOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Returns a collection of blob containers in the storage account. Enumerating the blob containers may m...
Definition: blob_service_client.cpp:119