azure-storage-files-shares
|
9 #include <azure/core/internal/http/pipeline.hpp>
10 #include <azure/core/response.hpp>
11 #include <azure/storage/common/storage_credential.hpp>
13 #include "azure/storage/files/shares/protocol/share_rest_client.hpp"
14 #include "azure/storage/files/shares/share_options.hpp"
15 #include "azure/storage/files/shares/share_responses.hpp"
17 namespace Azure {
namespace Storage {
namespace Files {
namespace Shares {
31 const std::string& connectionString,
41 const std::string& serviceUrl,
42 std::shared_ptr<StorageSharedKeyCredential> credential,
52 const std::string& serviceUrl,
67 std::string
GetUrl()
const {
return m_serviceUrl.GetAbsoluteUrl(); }
78 const Azure::Core::Context& context = Azure::Core::Context())
const;
88 Azure::Response<Models::SetServicePropertiesResult>
SetProperties(
91 const Azure::Core::Context& context = Azure::Core::Context())
const;
99 Azure::Response<Models::ShareServiceProperties>
GetProperties(
101 const Azure::Core::Context& context = Azure::Core::Context())
const;
104 Azure::Core::Url m_serviceUrl;
105 std::shared_ptr<Azure::Core::Http::_internal::HttpPipeline> m_pipeline;
Definition: share_client.hpp:21
ShareClient GetShareClient(const std::string &shareName) const
Create a ShareClient from current ShareServiceClient.
Definition: share_service_client.cpp:79
Storage service properties.
Definition: share_rest_client.hpp:595
Response type for Azure::Storage::Files::Shares::ShareServiceClient::ListShares.
Definition: share_responses.hpp:252
Optional parameters for Azure::Storage::Files::Shares::ShareServiceClient::ListShares.
Definition: share_options.hpp:34
Azure::Response< Models::ShareServiceProperties > GetProperties(const GetServicePropertiesOptions &options=GetServicePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Get the service's properties.
Definition: share_service_client.cpp:126
ShareServiceClient(const std::string &serviceUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const ShareClientOptions &options=ShareClientOptions())
Initialize a new instance of ShareServiceClient using shared key authentication.
Definition: share_service_client.cpp:38
ListSharesPagedResponse ListShares(const ListSharesOptions &options=ListSharesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Returns a paginated collection of the shares in the storage account. Enumerating the shares may make ...
Definition: share_service_client.cpp:86
Azure::Response< Models::SetServicePropertiesResult > SetProperties(Models::ShareServiceProperties properties, const SetServicePropertiesOptions &options=SetServicePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const
Set the service's properties.
Definition: share_service_client.cpp:114
Definition: share_service_client.hpp:21
Optional parameters for Azure::Storage::Files::Shares::ShareServiceClient::SetProperties.
Definition: share_options.hpp:67
Optional parameters for Azure::Storage::Files::Shares::ShareServiceClient::GetProperties.
Definition: share_options.hpp:75
static ShareServiceClient CreateFromConnectionString(const std::string &connectionString, const ShareClientOptions &options=ShareClientOptions())
Create A ShareServiceClient from connection string to manage the service related attributes.
Definition: share_service_client.cpp:20
Client options used to initialize share clients.
Definition: share_options.hpp:22
std::string GetUrl() const
Gets the file share service's primary URL endpoint.
Definition: share_service_client.hpp:67