|
Public Member Functions | |
ShareClient (const std::string &shareUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const ShareClientOptions &options=ShareClientOptions()) | |
Initialize a new instance of ShareClient using shared key authentication. More... | |
ShareClient (const std::string &shareUrl, const ShareClientOptions &options=ShareClientOptions()) | |
Initialize a new instance of ShareClient using anonymous access or shared access signature. More... | |
std::string | GetUrl () const |
Gets the share's primary URL endpoint. More... | |
ShareClient | WithSnapshot (const std::string &snapshot) const |
Initializes a new instance of the ShareClient class with an identical URL source but the specified share snapshot timestamp. More... | |
ShareDirectoryClient | GetRootDirectoryClient () const |
Gets the ShareDirectoryClient that's pointing to the root directory of current ShareClient. More... | |
Azure::Response< Models::CreateShareResult > | Create (const CreateShareOptions &options=CreateShareOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates the file share. More... | |
Azure::Response< Models::CreateShareResult > | CreateIfNotExists (const CreateShareOptions &options=CreateShareOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates the file share if it does not exist, nothing will happen if the file share already exists. More... | |
Azure::Response< Models::DeleteShareResult > | Delete (const DeleteShareOptions &options=DeleteShareOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Deletes the file share. More... | |
Azure::Response< Models::DeleteShareResult > | DeleteIfExists (const DeleteShareOptions &options=DeleteShareOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Deletes the file share if it exists. More... | |
Azure::Response< Models::CreateShareSnapshotResult > | CreateSnapshot (const CreateShareSnapshotOptions &options=CreateShareSnapshotOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a snapshot for the share. More... | |
Azure::Response< Models::SetSharePropertiesResult > | SetProperties (const SetSharePropertiesOptions &options=SetSharePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the properties of the share. More... | |
Azure::Response< Models::ShareProperties > | GetProperties (const GetSharePropertiesOptions &options=GetSharePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the properties of the share. More... | |
Azure::Response< Models::SetShareMetadataResult > | SetMetadata (Storage::Metadata metadata, const SetShareMetadataOptions &options=SetShareMetadataOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the metadata to the share. More... | |
Azure::Response< Models::ShareAccessPolicy > | GetAccessPolicy (const GetShareAccessPolicyOptions &options=GetShareAccessPolicyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the access policy of the share. More... | |
Azure::Response< Models::SetShareAccessPolicyResult > | SetAccessPolicy (const std::vector< Models::SignedIdentifier > &accessPolicy, const SetShareAccessPolicyOptions &options=SetShareAccessPolicyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the access policy of the share. More... | |
Azure::Response< Models::ShareStatistics > | GetStatistics (const GetShareStatisticsOptions &options=GetShareStatisticsOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the stats of the share. More... | |
Azure::Response< Models::CreateSharePermissionResult > | CreatePermission (const std::string &permission, const CreateSharePermissionOptions &options=CreateSharePermissionOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a permission on the share. More... | |
Azure::Response< std::string > | GetPermission (const std::string &permissionKey, const GetSharePermissionOptions &options=GetSharePermissionOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the permission of the share using the specific key. More... | |
Static Public Member Functions | |
static ShareClient | CreateFromConnectionString (const std::string &connectionString, const std::string &shareName, const ShareClientOptions &options=ShareClientOptions()) |
Create A ShareClient from connection string to manage a File Share resource. More... | |
Friends | |
class | ShareLeaseClient |
class | ShareServiceClient |
|
explicit |
shareUrl | The URL of the file share this client's request targets. |
credential | The shared key credential used to initialize the client. |
options | Optional parameters used to initialize the client. |
|
explicit |
shareUrl | The URL of the file share this client's request targets. |
options | Optional parameters used to initialize the client. |
Azure::Response< Models::CreateShareResult > Azure::Storage::Files::Shares::ShareClient::Create | ( | const CreateShareOptions & | options = CreateShareOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to create this file share. |
context | Context for cancelling long running operations. |
|
static |
connectionString | Azure Storage connection string. |
shareName | The name of a file share. |
options | Optional parameters used to initialize the client. |
Azure::Response< Models::CreateShareResult > Azure::Storage::Files::Shares::ShareClient::CreateIfNotExists | ( | const CreateShareOptions & | options = CreateShareOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to create this file share. |
context | Context for cancelling long running operations. |
Azure::Response< Models::CreateSharePermissionResult > Azure::Storage::Files::Shares::ShareClient::CreatePermission | ( | const std::string & | permission, |
const CreateSharePermissionOptions & | options = CreateSharePermissionOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
permission | Specifies the permission to be created on the share. |
options | Optional parameters to create the share's permission. |
context | Context for cancelling long running operations. |
Azure::Response< Models::CreateShareSnapshotResult > Azure::Storage::Files::Shares::ShareClient::CreateSnapshot | ( | const CreateShareSnapshotOptions & | options = CreateShareSnapshotOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to create the share snapshot. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteShareResult > Azure::Storage::Files::Shares::ShareClient::Delete | ( | const DeleteShareOptions & | options = DeleteShareOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to delete this file share. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteShareResult > Azure::Storage::Files::Shares::ShareClient::DeleteIfExists | ( | const DeleteShareOptions & | options = DeleteShareOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to delete this file share. |
context | Context for cancelling long running operations. |
Azure::Response< Models::ShareAccessPolicy > Azure::Storage::Files::Shares::ShareClient::GetAccessPolicy | ( | const GetShareAccessPolicyOptions & | options = GetShareAccessPolicyOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to get the share's access policy. |
context | Context for cancelling long running operations. |
Azure::Response< std::string > Azure::Storage::Files::Shares::ShareClient::GetPermission | ( | const std::string & | permissionKey, |
const GetSharePermissionOptions & | options = GetSharePermissionOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
permissionKey | The permission key of a permission. |
options | Optional parameters to get share's permission. |
context | Context for cancelling long running operations. |
Azure::Response< Models::ShareProperties > Azure::Storage::Files::Shares::ShareClient::GetProperties | ( | const GetSharePropertiesOptions & | options = GetSharePropertiesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to get the share properties. |
context | Context for cancelling long running operations. |
ShareDirectoryClient Azure::Storage::Files::Shares::ShareClient::GetRootDirectoryClient | ( | ) | const |
Azure::Response< Models::ShareStatistics > Azure::Storage::Files::Shares::ShareClient::GetStatistics | ( | const GetShareStatisticsOptions & | options = GetShareStatisticsOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to get share's statistics. |
context | Context for cancelling long running operations. |
|
inline |
Azure::Response< Models::SetShareAccessPolicyResult > Azure::Storage::Files::Shares::ShareClient::SetAccessPolicy | ( | const std::vector< Models::SignedIdentifier > & | accessPolicy, |
const SetShareAccessPolicyOptions & | options = SetShareAccessPolicyOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
accessPolicy | Specifies the access policy to be set to the share. |
options | Optional parameters to Set the share's access policy. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetShareMetadataResult > Azure::Storage::Files::Shares::ShareClient::SetMetadata | ( | Storage::Metadata | metadata, |
const SetShareMetadataOptions & | options = SetShareMetadataOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
metadata | A name-value pair to associate with a file storage 'Share' object.. |
options | Optional parameters to set the share metadata. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetSharePropertiesResult > Azure::Storage::Files::Shares::ShareClient::SetProperties | ( | const SetSharePropertiesOptions & | options = SetSharePropertiesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to set the share properties. |
context | Context for cancelling long running operations. |
ShareClient Azure::Storage::Files::Shares::ShareClient::WithSnapshot | ( | const std::string & | snapshot | ) | const |
snapshot | The snapshot identifier. |