|
Public Member Functions | |
ShareFileClient (const std::string &shareFileUrl, std::shared_ptr< StorageSharedKeyCredential > credential, const ShareClientOptions &options=ShareClientOptions()) | |
Initialize a new instance of ShareFileClient using shared key authentication. More... | |
ShareFileClient (const std::string &shareFileUrl, const ShareClientOptions &options=ShareClientOptions()) | |
Initialize a new instance of ShareFileClient using anonymous access or shared access signature. More... | |
std::string | GetUrl () const |
Gets the file's primary URL endpoint. More... | |
ShareFileClient | WithShareSnapshot (const std::string &shareSnapshot) const |
Initializes a new instance of the ShareFileClient class with an identical URL source but the specified share snapshot timestamp. More... | |
Azure::Response< Models::CreateFileResult > | Create (int64_t fileSize, const CreateFileOptions &options=CreateFileOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates the file. More... | |
Azure::Response< Models::DeleteFileResult > | Delete (const DeleteFileOptions &options=DeleteFileOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Deletes the file. More... | |
Azure::Response< Models::DeleteFileResult > | DeleteIfExists (const DeleteFileOptions &options=DeleteFileOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Deletes the file if it exists. More... | |
Azure::Response< Models::DownloadFileResult > | Download (const DownloadFileOptions &options=DownloadFileOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Open a stream for the file's content, or a range of the file's content that can be used to download the server end data. More... | |
Azure::Response< Models::DownloadFileToResult > | DownloadTo (uint8_t *buffer, size_t bufferSize, const DownloadFileToOptions &options=DownloadFileToOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Downloads a file or a file range from the service to a memory buffer using parallel requests. More... | |
Azure::Response< Models::DownloadFileToResult > | DownloadTo (const std::string &fileName, const DownloadFileToOptions &options=DownloadFileToOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Downloads a file or a file range from the service to a memory buffer using parallel requests. More... | |
Azure::Response< Models::UploadFileFromResult > | UploadFrom (const uint8_t *buffer, size_t bufferSize, const UploadFileFromOptions &options=UploadFileFromOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a new file, or updates the content of an existing file. Updating an existing file overwrites any existing metadata on the file. More... | |
Azure::Response< Models::UploadFileFromResult > | UploadFrom (const std::string &fileName, const UploadFileFromOptions &options=UploadFileFromOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Creates a new file, or updates the content of an existing file. Updating an existing file overwrites any existing metadata on the file. More... | |
StartFileCopyOperation | StartCopy (std::string copySource, const StartFileCopyOptions &options=StartFileCopyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Starts copy the file specified from source URI to the file this client points to. More... | |
Azure::Response< Models::AbortFileCopyResult > | AbortCopy (std::string copyId, const AbortFileCopyOptions &options=AbortFileCopyOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Aborts copying the file specified with the copy ID. More... | |
Azure::Response< Models::FileProperties > | GetProperties (const GetFilePropertiesOptions &options=GetFilePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the properties of a file. More... | |
Azure::Response< Models::SetFilePropertiesResult > | SetProperties (const Models::FileHttpHeaders &httpHeaders, const Models::FileSmbProperties &smbProperties, const SetFilePropertiesOptions &options=SetFilePropertiesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the properties of the file, or resize a file specifying NewSize in options. More... | |
Azure::Response< Models::SetFileMetadataResult > | SetMetadata (Storage::Metadata metadata, const SetFileMetadataOptions &options=SetFileMetadataOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Sets the metadata of the file. More... | |
Azure::Response< Models::UploadFileRangeResult > | UploadRange (int64_t offset, Azure::Core::IO::BodyStream &content, const UploadFileRangeOptions &options=UploadFileRangeOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Uploads some data to a range of the file. More... | |
Azure::Response< Models::ClearFileRangeResult > | ClearRange (int64_t offset, int64_t length, const ClearFileRangeOptions &options=ClearFileRangeOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Clears some range of data within the file. More... | |
Azure::Response< Models::GetFileRangeListResult > | GetRangeList (const GetFileRangeListOptions &options=GetFileRangeListOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the list of valid range from the file within specified range. More... | |
Azure::Response< Models::GetFileRangeListResult > | GetRangeListDiff (std::string previousShareSnapshot, const GetFileRangeListOptions &options=GetFileRangeListOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Gets the list of valid range from the file within specified range that have changed since previousShareSnapshot was taken. More... | |
ListFileHandlesPagedResponse | ListHandles (const ListFileHandlesOptions &options=ListFileHandlesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Returns a sequence of the open handles on a directory or a file. Enumerating the handles may make multiple requests to the service while fetching all the values. More... | |
Azure::Response< Models::ForceCloseFileHandleResult > | ForceCloseHandle (const std::string &handleId, const ForceCloseFileHandleOptions &options=ForceCloseFileHandleOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Closes a handle opened on a file at the service. More... | |
ForceCloseAllFileHandlesPagedResponse | ForceCloseAllHandles (const ForceCloseAllFileHandlesOptions &options=ForceCloseAllFileHandlesOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Closes all handles opened on a file at the service. More... | |
Azure::Response< Models::UploadFileRangeFromUriResult > | UploadRangeFromUri (int64_t destinationOffset, const std::string &sourceUri, const Azure::Core::Http::HttpRange &sourceRange, const UploadFileRangeFromUriOptions &options=UploadFileRangeFromUriOptions(), const Azure::Core::Context &context=Azure::Core::Context()) const |
Upload a range from the source URI to this file's specific range. More... | |
Static Public Member Functions | |
static ShareFileClient | CreateFromConnectionString (const std::string &connectionString, const std::string &shareName, const std::string &fileName, const ShareClientOptions &options=ShareClientOptions()) |
Create A ShareFileClient from connection string to manage a File Share File resource. More... | |
Friends | |
class | ShareClient |
class | ShareDirectoryClient |
class | ShareLeaseClient |
|
explicit |
shareFileUrl | The URL of the file this client's request targets. |
credential | The shared key credential used to initialize the client. |
options | Optional parameters used to initialize the client. |
|
explicit |
shareFileUrl | The URL of the file this client's request targets. |
options | Optional parameters used to initialize the client. |
Azure::Response< Models::AbortFileCopyResult > Azure::Storage::Files::Shares::ShareFileClient::AbortCopy | ( | std::string | copyId, |
const AbortFileCopyOptions & | options = AbortFileCopyOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
copyId | The copy identifier provided in the StartCopyShareFileResult of the original StartCopy operation. |
options | Optional parameters to abort copying the content of this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::ClearFileRangeResult > Azure::Storage::Files::Shares::ShareFileClient::ClearRange | ( | int64_t | offset, |
int64_t | length, | ||
const ClearFileRangeOptions & | options = ClearFileRangeOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
offset | Specifies the starting offset for the content to be cleared within the file. |
length | Specifies the length for the content to be cleared within the file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::CreateFileResult > Azure::Storage::Files::Shares::ShareFileClient::Create | ( | int64_t | fileSize, |
const CreateFileOptions & | options = CreateFileOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
fileSize | Size of the file in bytes. |
options | Optional parameters to create this file. |
context | Context for cancelling long running operations. |
|
static |
connectionString | Azure Storage connection string. |
shareName | The name of a file share. |
fileName | The name of a file. |
options | Optional parameters used to initialize the client. |
Azure::Response< Models::DeleteFileResult > Azure::Storage::Files::Shares::ShareFileClient::Delete | ( | const DeleteFileOptions & | options = DeleteFileOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to delete this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DeleteFileResult > Azure::Storage::Files::Shares::ShareFileClient::DeleteIfExists | ( | const DeleteFileOptions & | options = DeleteFileOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to delete this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DownloadFileResult > Azure::Storage::Files::Shares::ShareFileClient::Download | ( | const DownloadFileOptions & | options = DownloadFileOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to get the content of this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DownloadFileToResult > Azure::Storage::Files::Shares::ShareFileClient::DownloadTo | ( | const std::string & | fileName, |
const DownloadFileToOptions & | options = DownloadFileToOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
fileName | A file path to write the downloaded content to. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::DownloadFileToResult > Azure::Storage::Files::Shares::ShareFileClient::DownloadTo | ( | uint8_t * | buffer, |
size_t | bufferSize, | ||
const DownloadFileToOptions & | options = DownloadFileToOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
buffer | A memory buffer to write the file content to. |
bufferSize | Size of the memory buffer. Size must be larger or equal to size of the file or file range. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
ForceCloseAllFileHandlesPagedResponse Azure::Storage::Files::Shares::ShareFileClient::ForceCloseAllHandles | ( | const ForceCloseAllFileHandlesOptions & | options = ForceCloseAllFileHandlesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to close all this file's open handles. |
context | Context for cancelling long running operations. |
Azure::Response< Models::ForceCloseFileHandleResult > Azure::Storage::Files::Shares::ShareFileClient::ForceCloseHandle | ( | const std::string & | handleId, |
const ForceCloseFileHandleOptions & | options = ForceCloseFileHandleOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
handleId | The ID of the handle to be closed. |
options | Optional parameters to close one of this file's open handles. |
context | Context for cancelling long running operations. |
Azure::Response< Models::FileProperties > Azure::Storage::Files::Shares::ShareFileClient::GetProperties | ( | const GetFilePropertiesOptions & | options = GetFilePropertiesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to get the properties of this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::GetFileRangeListResult > Azure::Storage::Files::Shares::ShareFileClient::GetRangeList | ( | const GetFileRangeListOptions & | options = GetFileRangeListOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
context | Context for cancelling long running operations. |
Azure::Response< Models::GetFileRangeListResult > Azure::Storage::Files::Shares::ShareFileClient::GetRangeListDiff | ( | std::string | previousShareSnapshot, |
const GetFileRangeListOptions & | options = GetFileRangeListOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
previousShareSnapshot | Specifies the previous snapshot. |
context | Context for cancelling long running operations. |
|
inline |
ListFileHandlesPagedResponse Azure::Storage::Files::Shares::ShareFileClient::ListHandles | ( | const ListFileHandlesOptions & | options = ListFileHandlesOptions() , |
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
options | Optional parameters to list this file's open handles. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetFileMetadataResult > Azure::Storage::Files::Shares::ShareFileClient::SetMetadata | ( | Storage::Metadata | metadata, |
const SetFileMetadataOptions & | options = SetFileMetadataOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
metadata | User-defined metadata to be stored with the file. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. |
options | Optional parameters to set this file's metadata. |
context | Context for cancelling long running operations. |
Azure::Response< Models::SetFilePropertiesResult > Azure::Storage::Files::Shares::ShareFileClient::SetProperties | ( | const Models::FileHttpHeaders & | httpHeaders, |
const Models::FileSmbProperties & | smbProperties, | ||
const SetFilePropertiesOptions & | options = SetFilePropertiesOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
httpHeaders | The HTTP headers to be set to the file. |
smbProperties | The SMB properties to be set to the file. |
options | Optional parameters to set this file's properties. |
context | Context for cancelling long running operations. |
StartFileCopyOperation Azure::Storage::Files::Shares::ShareFileClient::StartCopy | ( | std::string | copySource, |
const StartFileCopyOptions & | options = StartFileCopyOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
copySource | Specifies the URL of the source file or file, up to 2 KB in length. To copy a file to another file within the same storage account, you may use Shared Key to authenticate the source file. If you are copying a file from another storage account, or if you are copying a file from the same storage account or another storage account, then you must authenticate the source file or file using a shared access signature. If the source is a public file, no authentication is required to perform the copy operation. A file in a share snapshot can also be specified as a copy source. |
options | Optional parameters to copy the content of this file. |
context | Context for cancelling long running operations. |
Azure::Response< Models::UploadFileFromResult > Azure::Storage::Files::Shares::ShareFileClient::UploadFrom | ( | const std::string & | fileName, |
const UploadFileFromOptions & | options = UploadFileFromOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
fileName | A file containing the content to upload. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::UploadFileFromResult > Azure::Storage::Files::Shares::ShareFileClient::UploadFrom | ( | const uint8_t * | buffer, |
size_t | bufferSize, | ||
const UploadFileFromOptions & | options = UploadFileFromOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
buffer | A memory buffer containing the content to upload. |
bufferSize | Size of the memory buffer. |
options | Optional parameters to execute this function. |
context | Context for cancelling long running operations. |
Azure::Response< Models::UploadFileRangeResult > Azure::Storage::Files::Shares::ShareFileClient::UploadRange | ( | int64_t | offset, |
Azure::Core::IO::BodyStream & | content, | ||
const UploadFileRangeOptions & | options = UploadFileRangeOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
offset | Specifies the starting offset for the content to be written as a range. |
content | A BodyStream containing the content of the range to upload. |
context | Context for cancelling long running operations. |
Azure::Response< Models::UploadFileRangeFromUriResult > Azure::Storage::Files::Shares::ShareFileClient::UploadRangeFromUri | ( | int64_t | destinationOffset, |
const std::string & | sourceUri, | ||
const Azure::Core::Http::HttpRange & | sourceRange, | ||
const UploadFileRangeFromUriOptions & | options = UploadFileRangeFromUriOptions() , |
||
const Azure::Core::Context & | context = Azure::Core::Context() |
||
) | const |
destinationOffset | Specifies the starting offset for the content to be written. |
sourceUri | The source URI of the content to be uploaded. |
sourceRange | The source URI's range to be uploaded to file. |
options | Optional parameters to upload a range to file. |
context | Context for cancelling long running operations. |
ShareFileClient Azure::Storage::Files::Shares::ShareFileClient::WithShareSnapshot | ( | const std::string & | shareSnapshot | ) | const |
shareSnapshot | The snapshot identifier for the share snapshot. |