Microsoft Azure Storage Client Library for C++
7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
|
A class for Windows Azure file. More...
Public Member Functions | |
cloud_file () | |
Initializes a new instance of the azure::storage::cloud_file class. More... | |
WASTORAGE_API | cloud_file (storage_uri uri) |
Initializes a new instance of the azure::storage::cloud_file class. More... | |
WASTORAGE_API | cloud_file (storage_uri uri, storage_credentials credentials) |
Initializes a new instance of the azure::storage::cloud_file class. More... | |
WASTORAGE_API | cloud_file (utility::string_t name, cloud_file_directory directory) |
Initializes a new instance of the azure::storage::cloud_file class. More... | |
WASTORAGE_API | cloud_file (utility::string_t name, cloud_file_directory directory, cloud_file_properties properties, cloud_metadata metadata, azure::storage::copy_state copy_state) |
Initializes a new instance of the azure::storage::cloud_file class. More... | |
void | create (int64_t length) |
Creates the file and specifies the size of the file. More... | |
void | create (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) |
Creates the file and specifies the size of the file. More... | |
pplx::task< void > | create_async (int64_t length) |
Intitiates an asynchronous operation to create the file and specifies the size of the file. More... | |
WASTORAGE_API pplx::task< void > | create_async (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) |
Intitiates an asynchronous operation to create the file and specifies the size of the file. More... | |
bool | create_if_not_exists (int64_t length) |
Creates the file if it does not already exist. More... | |
bool | create_if_not_exists (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) |
Creates the file if it does not already exist. More... | |
pplx::task< bool > | create_if_not_exists_async (int64_t length) |
Intitiates an asynchronous operation to create the file if it does not already exist and specify the size of the file. More... | |
WASTORAGE_API pplx::task< bool > | create_if_not_exists_async (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) |
Intitiates an asynchronous operation to create the file if it does not already exist and specify the size of the file. More... | |
void | delete_file () |
Deletes the file. More... | |
void | delete_file (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Deletes the file. More... | |
pplx::task< void > | delete_file_async () |
Intitiates an asynchronous operation to delete the file. More... | |
WASTORAGE_API pplx::task< void > | delete_file_async (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Intitiates an asynchronous operation to delete the file. More... | |
bool | delete_file_if_exists () |
Deletes the file if it already exists. More... | |
bool | delete_file_if_exists (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Deletes the file if it already exists. More... | |
pplx::task< bool > | delete_file_if_exists_async () |
Intitiates an asynchronous operation to delete the file if it already exists. More... | |
WASTORAGE_API pplx::task< bool > | delete_file_if_exists_async (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Intitiates an asynchronous operation to delete the file if it already exists. More... | |
bool | exists () const |
Checks existence of the file. More... | |
bool | exists (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Checks existence of the file. More... | |
pplx::task< bool > | exists_async () const |
Intitiates an asynchronous operation to check the existence of the file. More... | |
pplx::task< bool > | exists_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to check the existence of the file. More... | |
void | download_attributes () |
Retrieves the file's attributes. More... | |
void | download_attributes (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Retrieves the file's attributes. More... | |
pplx::task< void > | download_attributes_async () |
Intitiates an asynchronous operation to retrieve the file's attributes. More... | |
WASTORAGE_API pplx::task< void > | download_attributes_async (const file_access_condition &condition, const file_request_options &options, operation_context context) |
Intitiates an asynchronous operation to retrieve the file's attributes. More... | |
void | upload_properties () const |
Updates the file's properties. More... | |
void | upload_properties (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Updates the file's properties. More... | |
pplx::task< void > | upload_properties_async () const |
Intitiates an asynchronous operation to update the file's properties. More... | |
WASTORAGE_API pplx::task< void > | upload_properties_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to update the file's properties. More... | |
void | upload_metadata () const |
Updates the file's metadata. More... | |
void | upload_metadata (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Updates the file's metadata. More... | |
pplx::task< void > | upload_metadata_async () const |
Intitiates an asynchronous operation to update the file's metadata. More... | |
WASTORAGE_API pplx::task< void > | upload_metadata_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to update the file's metadata. More... | |
utility::string_t | start_copy (const web::http::uri &source) |
Begins an operation to copy a file's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const web::http::uri &source, const file_access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) |
Begins an operation to copy a file's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const web::http::uri &source, const access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) |
Begins an operation to copy a blob's contents, properties, and metadata to a new file. More... | |
pplx::task< utility::string_t > | start_copy_async (const web::http::uri &source) |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | start_copy_async (const web::http::uri &source, const file_access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | start_copy_async (const web::http::uri &source, const access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const cloud_file &source) |
Begins an operation to copy a file's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const cloud_file &source, const file_access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) |
Begins an operation to copy a file's contents, properties, and metadata to a new file. More... | |
pplx::task< utility::string_t > | start_copy_async (const cloud_file &source) |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | start_copy_async (const cloud_file &source, const file_access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const cloud_blob &source) |
Begins an operation to copy a blob's contents, properties, and metadata to a new file. More... | |
utility::string_t | start_copy (const cloud_blob &source, const access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) |
Begins an operation to copy a blob's contents, properties, and metadata to a new file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | start_copy_async (const cloud_blob &source) const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | start_copy_async (const cloud_blob &source, const access_condition &source_condition, const file_access_condition &dest_condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file. More... | |
void | abort_copy (const utility::string_t ©_id) const |
Aborts an ongoing file copy operation. More... | |
void | abort_copy (const utility::string_t ©_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Aborts an ongoing file copy operation. More... | |
pplx::task< void > | abort_copy_async (const utility::string_t ©_id) const |
Intitiates an asynchronous operation to abort an ongoing file copy operation. More... | |
WASTORAGE_API pplx::task< void > | abort_copy_async (const utility::string_t ©_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to abort an ongoing file copy operation. More... | |
std::vector< file_range > | list_ranges () const |
Gets a collection of valid file ranges. More... | |
std::vector< file_range > | list_ranges (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Gets a collection of valid file ranges. More... | |
pplx::task< std::vector< file_range > > | list_ranges_async () const |
Intitiates an asynchronous operation to get a collection of valid file ranges. More... | |
pplx::task< std::vector< file_range > > | list_ranges_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to get a collection of valid file ranges. More... | |
std::vector< file_range > | list_ranges (utility::size64_t start_offset) const |
Gets a collection of valid file ranges and their starting bytes. More... | |
std::vector< file_range > | list_ranges (utility::size64_t start_offset, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Gets a collection of valid file ranges and their starting bytes. More... | |
pplx::task< std::vector< file_range > > | list_ranges_async (utility::size64_t start_offset) const |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting bytes. More... | |
pplx::task< std::vector< file_range > > | list_ranges_async (utility::size64_t start_offset, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting bytes. More... | |
std::vector< file_range > | list_ranges (utility::size64_t start_offset, utility::size64_t length) const |
Gets a collection of valid file ranges and their starting and ending bytes. More... | |
std::vector< file_range > | list_ranges (utility::size64_t start_offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Gets a collection of valid file ranges and their starting and ending bytes. More... | |
pplx::task< std::vector< file_range > > | list_ranges_async (utility::size64_t start_offset, utility::size64_t length) const |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting and ending bytes. More... | |
WASTORAGE_API pplx::task< std::vector< file_range > > | list_ranges_async (utility::size64_t start_offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting and ending bytes. More... | |
void | clear_range (utility::size64_t start_offset, utility::size64_t length) const |
Clears range from a file. More... | |
void | clear_range (utility::size64_t start_offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Clears range from a file. More... | |
pplx::task< void > | clear_range_async (utility::size64_t start_offset, utility::size64_t length) const |
Intitiates an asynchronous operation to clear range from a file. More... | |
WASTORAGE_API pplx::task< void > | clear_range_async (utility::size64_t start_offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to clear range from a file. More... | |
void | write_range (Concurrency::streams::istream stream, int64_t start_offset, utility::string_t content_md5) const |
Writes range to a file. More... | |
void | write_range (Concurrency::streams::istream stream, int64_t start_offset, utility::string_t content_md5, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Writes range to a file. More... | |
pplx::task< void > | write_range_async (Concurrency::streams::istream stream, int64_t start_offset, utility::string_t content_md5) const |
Intitiates an asynchronous operation to write range to a file. More... | |
WASTORAGE_API pplx::task< void > | write_range_async (Concurrency::streams::istream stream, int64_t start_offset, const utility::string_t &content_md5, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to write range to a file. More... | |
void | download_to_stream (concurrency::streams::ostream target) const |
Downloads the contents of a file to a stream. More... | |
void | download_to_stream (concurrency::streams::ostream target, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Downloads the contents of a file to a stream. More... | |
pplx::task< void > | download_to_stream_async (concurrency::streams::ostream target) const |
Intitiates an asynchronous operation to download the contents of a file to a stream. More... | |
pplx::task< void > | download_to_stream_async (concurrency::streams::ostream target, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to download the contents of a file to a stream. More... | |
void | download_range_to_stream (concurrency::streams::ostream target, utility::size64_t offset, utility::size64_t length) const |
Downloads a range of bytes in a file to a stream. More... | |
void | download_range_to_stream (concurrency::streams::ostream target, utility::size64_t offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Downloads a range of bytes in a file to a stream. More... | |
pplx::task< void > | download_range_to_stream_async (concurrency::streams::ostream target, int64_t offset, int64_t length) const |
Intitiates an asynchronous operation to download a range of bytes in a file to a stream. More... | |
WASTORAGE_API pplx::task< void > | download_range_to_stream_async (concurrency::streams::ostream target, utility::size64_t start_offset, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to download a range of bytes in a file to a stream. More... | |
void | download_to_file (const utility::string_t &path) const |
Downloads the contents of a file to a file. More... | |
void | download_to_file (const utility::string_t &path, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Downloads the contents of a file to a file. More... | |
pplx::task< void > | download_to_file_async (const utility::string_t &path) const |
Intitiates an asynchronous operation to download the contents of a file to a file. More... | |
WASTORAGE_API pplx::task< void > | download_to_file_async (const utility::string_t &path, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to download the contents of a file to a file. More... | |
utility::string_t | download_text () const |
Downloads the contents of a file as text. More... | |
utility::string_t | download_text (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Downloads the contents of a file as text. More... | |
pplx::task< utility::string_t > | download_text_async () const |
Intitiates an asynchronous operation to download the contents of a file as text. More... | |
WASTORAGE_API pplx::task< utility::string_t > | download_text_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to download the contents of a file as text. More... | |
concurrency::streams::ostream | open_write () const |
Opens a stream for writing to the file. More... | |
concurrency::streams::ostream | open_write (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Opens a stream for writing to the file. More... | |
pplx::task< concurrency::streams::ostream > | open_write_async () const |
Intitiates an asynchronous operation to open a stream for writing to the file. More... | |
WASTORAGE_API pplx::task< concurrency::streams::ostream > | open_write_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to open a stream for writing to the file. More... | |
concurrency::streams::ostream | open_write (utility::size64_t length) const |
Opens a stream for writing to the file. More... | |
concurrency::streams::ostream | open_write (utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Opens a stream for writing to the file. More... | |
pplx::task< concurrency::streams::ostream > | open_write_async (utility::size64_t length) const |
Intitiates an asynchronous operation to open a stream for writing to the file. More... | |
WASTORAGE_API pplx::task< concurrency::streams::ostream > | open_write_async (utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to open a stream for writing to the file. More... | |
void | upload_from_stream (concurrency::streams::istream stream) const |
Uploads the file from stream. More... | |
void | upload_from_stream (concurrency::streams::istream stream, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Uploads the file from stream. More... | |
pplx::task< void > | upload_from_stream_async (concurrency::streams::istream stream) const |
Intitiates an asynchronous operation to upload the file from stream. More... | |
pplx::task< void > | upload_from_stream_async (concurrency::streams::istream stream, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to upload the file from stream. More... | |
void | upload_from_stream (concurrency::streams::istream stream, utility::size64_t length) const |
Uploads the file from stream. More... | |
void | upload_from_stream (concurrency::streams::istream stream, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Uploads the file from stream. More... | |
pplx::task< void > | upload_from_stream_async (concurrency::streams::istream stream, utility::size64_t length) const |
Intitiates an asynchronous operation to upload the file from stream. More... | |
WASTORAGE_API pplx::task< void > | upload_from_stream_async (concurrency::streams::istream stream, utility::size64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to upload the file from stream. More... | |
void | upload_from_file (const utility::string_t &path) const |
Uploads the file from local file. More... | |
void | upload_from_file (const utility::string_t &path, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Uploads the file from local file. More... | |
pplx::task< void > | upload_from_file_async (const utility::string_t &path) const |
Intitiates an asynchronous operation to upload the file from local file. More... | |
WASTORAGE_API pplx::task< void > | upload_from_file_async (const utility::string_t &path, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to upload the file from local file. More... | |
void | upload_text (const utility::string_t &text) const |
Uploads the file from text. More... | |
void | upload_text (const utility::string_t &text, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Uploads the file from text. More... | |
pplx::task< void > | upload_text_async (const utility::string_t &text) const |
Intitiates an asynchronous operation to upload the file from text. More... | |
WASTORAGE_API pplx::task< void > | upload_text_async (const utility::string_t &text, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to upload the file from text. More... | |
void | resize (int64_t length) const |
Resize the file. More... | |
void | resize (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Resize the file. More... | |
pplx::task< void > | resize_async (int64_t length) const |
Intitiates an asynchronous operation to resize the file. More... | |
WASTORAGE_API pplx::task< void > | resize_async (int64_t length, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Intitiates an asynchronous operation to resize the file. More... | |
utility::string_t | get_shared_access_signature (const file_shared_access_policy &policy) const |
Returns a shared access signature for the file. More... | |
WASTORAGE_API utility::string_t | get_shared_access_signature (const file_shared_access_policy &policy, const utility::string_t &stored_policy_identifier) |
Returns a shared access signature for the file. More... | |
WASTORAGE_API utility::string_t | get_shared_access_signature (const file_shared_access_policy &policy, const utility::string_t &stored_policy_identifier, const cloud_file_shared_access_headers &headers) const |
Returns a shared access signature for the file. More... | |
const cloud_file_client & | service_client () const |
Gets the azure::storage::cloud_file_client object that represents the File service. More... | |
cloud_file_share | get_parent_share_reference () const |
Gets the azure::storage::cloud_file_client object that represents the File service. More... | |
cloud_file_directory | get_parent_directory_reference () const |
Gets the azure::storage::cloud_file_client object that represents the File service. More... | |
const utility::string_t | path () const |
Gets the file's path. More... | |
utility::string_t & | name () |
Gets the file's name. More... | |
const utility::string_t & | name () const |
Gets the file's name. More... | |
const storage_uri & | uri () const |
Gets the file URI for all locations. More... | |
const cloud_metadata & | metadata () const |
Gets the file's system metadata. More... | |
cloud_metadata & | metadata () |
Gets the file's system metadata. More... | |
const cloud_file_properties & | properties () const |
Gets the file's system properties. More... | |
cloud_file_properties & | properties () |
Gets the file's system properties. More... | |
const azure::storage::copy_state & | copy_state () const |
Gets the file's system properties. More... | |
azure::storage::copy_state & | copy_state () |
Gets the file's system properties. More... | |
utility::string_t | acquire_lease (const utility::string_t &proposed_lease_id) const |
Acquires a lease on the file. More... | |
utility::string_t | acquire_lease (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Acquires a lease on the file. More... | |
pplx::task< utility::string_t > | acquire_lease_async (const utility::string_t &proposed_lease_id) const |
Initiates an asynchronous operation to acquire a lease on the file. More... | |
pplx::task< utility::string_t > | acquire_lease_async (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Initiates an asynchronous operation to acquire a lease on the file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | acquire_lease_async (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context, const pplx::cancellation_token &cancellation_token) const |
Initiates an asynchronous operation to acquire a lease on the file. More... | |
utility::string_t | change_lease (const utility::string_t &proposed_lease_id, const file_access_condition &condition) const |
Changes the lease ID on the file. More... | |
utility::string_t | change_lease (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Changes the lease ID on the file. More... | |
pplx::task< utility::string_t > | change_lease_async (const utility::string_t &proposed_lease_id, const file_access_condition &condition) const |
Initiates an asynchronous operation to change the lease ID on the file. More... | |
pplx::task< utility::string_t > | change_lease_async (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Initiates an asynchronous operation to change the lease ID on the file. More... | |
WASTORAGE_API pplx::task< utility::string_t > | change_lease_async (const utility::string_t &proposed_lease_id, const file_access_condition &condition, const file_request_options &options, operation_context context, const pplx::cancellation_token &cancellation_token) const |
Initiates an asynchronous operation to change the lease ID on the file. More... | |
void | release_lease (const file_access_condition &condition) const |
Releases the lease on the file. More... | |
void | release_lease (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Releases the lease on the file. More... | |
pplx::task< void > | release_lease_async (const file_access_condition &condition) const |
Initiates an asynchronous operation to release the lease on the file. More... | |
pplx::task< void > | release_lease_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Initiates an asynchronous operation to release the lease on the file. More... | |
WASTORAGE_API pplx::task< void > | release_lease_async (const file_access_condition &condition, const file_request_options &options, operation_context context, const pplx::cancellation_token &cancellation_token) const |
Initiates an asynchronous operation to release the lease on the file. More... | |
void | break_lease () const |
Breaks the current lease on the file. More... | |
void | break_lease (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Breaks the current lease on the file. More... | |
pplx::task< void > | break_lease_async () const |
Initiates an asynchronous operation to break the current lease on the file. More... | |
pplx::task< void > | break_lease_async (const file_access_condition &condition, const file_request_options &options, operation_context context) const |
Initiates an asynchronous operation to break the current lease on the file. More... | |
WASTORAGE_API pplx::task< void > | break_lease_async (const file_access_condition &condition, const file_request_options &options, operation_context context, const pplx::cancellation_token &cancellation_token) const |
Initiates an asynchronous operation to break the current lease on the file. More... | |
A class for Windows Azure file.
|
inline |
Initializes a new instance of the azure::storage::cloud_file class.
|
explicit |
Initializes a new instance of the azure::storage::cloud_file class.
uri | An azure::storage::storage_uri object containing the absolute URI to the file for all locations. |
WASTORAGE_API azure::storage::cloud_file::cloud_file | ( | storage_uri | uri, |
storage_credentials | credentials | ||
) |
Initializes a new instance of the azure::storage::cloud_file class.
uri | An azure::storage::storage_uri object containing the absolute URI to the file for all locations. |
credentials | The azure::storage::storage_credentials to use. |
WASTORAGE_API azure::storage::cloud_file::cloud_file | ( | utility::string_t | name, |
cloud_file_directory | directory | ||
) |
Initializes a new instance of the azure::storage::cloud_file class.
uri | An azure::storage::storage_uri object containing the absolute URI to the file for all locations. |
share | The File directory it blongs to. |
WASTORAGE_API azure::storage::cloud_file::cloud_file | ( | utility::string_t | name, |
cloud_file_directory | directory, | ||
cloud_file_properties | properties, | ||
cloud_metadata | metadata, | ||
azure::storage::copy_state | copy_state | ||
) |
Initializes a new instance of the azure::storage::cloud_file class.
uri | An azure::storage::storage_uri object containing the absolute URI to the file for all locations. |
share | The File directory it blongs to. |
properties | A set of properties for the file. |
metadata | User-defined metadata for the file. |
copy_state | the state of the most recent or pending copy operation. |
|
inline |
Aborts an ongoing file copy operation.
copy_id | A string identifying the copy operation. |
|
inline |
Aborts an ongoing file copy operation.
copy_id | A string identifying the copy operation. |
condition | An azure::storage::file_request_options object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to abort an ongoing file copy operation.
copy_id | A string identifying the copy operation. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::abort_copy_async | ( | const utility::string_t & | copy_id, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to abort an ongoing file copy operation.
copy_id | A string identifying the copy operation. |
condition | An azure::storage::file_request_options object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Acquires a lease on the file.
proposed_lease_id | A string representing the proposed lease ID for the new lease. May be an empty string if no lease ID is proposed. |
|
inline |
Acquires a lease on the file.
proposed_lease_id | A string representing the proposed lease ID for the new lease. May be an empty string if no lease ID is proposed. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Initiates an asynchronous operation to acquire a lease on the file.
proposed_lease_id | A string representing the proposed lease ID for the new lease. May be an empty string if no lease ID is proposed. |
|
inline |
Initiates an asynchronous operation to acquire a lease on the file.
proposed_lease_id | A string representing the proposed lease ID for the new lease. May be an empty string if no lease ID is proposed. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::acquire_lease_async | ( | const utility::string_t & | proposed_lease_id, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context, | ||
const pplx::cancellation_token & | cancellation_token | ||
) | const |
Initiates an asynchronous operation to acquire a lease on the file.
proposed_lease_id | A string representing the proposed lease ID for the new lease. May be an empty string if no lease ID is proposed. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
cancellation_token | An pplx::cancellation_token object that is used to cancel the current operation. |
|
inline |
Breaks the current lease on the file.
|
inline |
Breaks the current lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Initiates an asynchronous operation to break the current lease on the file.
|
inline |
Initiates an asynchronous operation to break the current lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::break_lease_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context, | ||
const pplx::cancellation_token & | cancellation_token | ||
) | const |
Initiates an asynchronous operation to break the current lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
cancellation_token | An pplx::cancellation_token object that is used to cancel the current operation. |
|
inline |
Changes the lease ID on the file.
proposed_lease_id | A string containing the proposed lease ID for the lease. May not be empty. |
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
|
inline |
Changes the lease ID on the file.
proposed_lease_id | A string containing the proposed lease ID for the lease. May not be empty. |
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Initiates an asynchronous operation to change the lease ID on the file.
proposed_lease_id | A string containing the proposed lease ID for the lease. May not be empty. |
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
|
inline |
Initiates an asynchronous operation to change the lease ID on the file.
proposed_lease_id | A string containing the proposed lease ID for the lease. May not be empty. |
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::change_lease_async | ( | const utility::string_t & | proposed_lease_id, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context, | ||
const pplx::cancellation_token & | cancellation_token | ||
) | const |
Initiates an asynchronous operation to change the lease ID on the file.
proposed_lease_id | A string containing the proposed lease ID for the lease. May not be empty. |
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
cancellation_token | An pplx::cancellation_token object that is used to cancel the current operation. |
|
inline |
Clears range from a file.
start_offset | The offset at which to begin clearing ranges, in bytes. The offset must be a multiple of 512. |
length | The length of the data range to be cleared, in bytes. The length must be a multiple of 512. |
|
inline |
Clears range from a file.
start_offset | The offset at which to begin clearing ranges, in bytes. The offset must be a multiple of 512. |
length | The length of the data range to be cleared, in bytes. The length must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to clear range from a file.
start_offset | The offset at which to begin clearing ranges, in bytes. The offset must be a multiple of 512. |
length | The length of the data range to be cleared, in bytes. The length must be a multiple of 512. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::clear_range_async | ( | utility::size64_t | start_offset, |
utility::size64_t | length, | ||
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to clear range from a file.
start_offset | The offset at which to begin clearing ranges, in bytes. The offset must be a multiple of 512. |
length | The length of the data range to be cleared, in bytes. The length must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets the file's system properties.
|
inline |
Gets the file's system properties.
|
inline |
Creates the file and specifies the size of the file.
length | An utility::size64_t value that specifies the size of the file. |
|
inline |
Creates the file and specifies the size of the file.
length | An utility::size64_t value that specifies the size of the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation. |
|
inline |
Intitiates an asynchronous operation to create the file and specifies the size of the file.
length | An utility::size64_t value that specifies the size of the file. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::create_async | ( | int64_t | length, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) |
Intitiates an asynchronous operation to create the file and specifies the size of the file.
length | An utility::size64_t value that specifies the size of the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation. |
|
inline |
Creates the file if it does not already exist.
max_size | An utility::size64_t value that specifies the size of the file. |
true
if the file did not already exist and was created; otherwise false
.
|
inline |
Creates the file if it does not already exist.
max_size | An utility::size64_t value that specifies the size of the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation. |
true
if the file did not already exist and was created; otherwise false
.
|
inline |
Intitiates an asynchronous operation to create the file if it does not already exist and specify the size of the file.
max_size | An utility::size64_t value that specifies the size of the file. |
WASTORAGE_API pplx::task<bool> azure::storage::cloud_file::create_if_not_exists_async | ( | int64_t | length, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) |
Intitiates an asynchronous operation to create the file if it does not already exist and specify the size of the file.
max_size | An utility::size64_t value that specifies the size of the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation. |
|
inline |
Deletes the file.
|
inline |
Deletes the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to delete the file.
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::delete_file_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) |
Intitiates an asynchronous operation to delete the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Deletes the file if it already exists.
true
if the file did not already exist and was deleted; otherwise false
.
|
inline |
Deletes the file if it already exists.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
true
if the file did not already exist and was deleted; otherwise false
.
|
inline |
Intitiates an asynchronous operation to delete the file if it already exists.
WASTORAGE_API pplx::task<bool> azure::storage::cloud_file::delete_file_if_exists_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) |
Intitiates an asynchronous operation to delete the file if it already exists.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Retrieves the file's attributes.
|
inline |
Retrieves the file's attributes.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to retrieve the file's attributes.
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::download_attributes_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) |
Intitiates an asynchronous operation to retrieve the file's attributes.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Downloads a range of bytes in a file to a stream.
target | The target stream. |
offset | The offset at which to begin downloading the file, in bytes. |
length | The length of the data to download from the file, in bytes. |
|
inline |
Downloads a range of bytes in a file to a stream.
target | The target stream. |
offset | The offset at which to begin downloading the file, in bytes. |
length | The length of the data to download from the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to download a range of bytes in a file to a stream.
target | The target stream. |
offset | The offset at which to begin downloading the file, in bytes. |
length | The length of the data to download from the file, in bytes. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::download_range_to_stream_async | ( | concurrency::streams::ostream | target, |
utility::size64_t | start_offset, | ||
utility::size64_t | length, | ||
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to download a range of bytes in a file to a stream.
target | The target stream. |
offset | The offset at which to begin downloading the file, in bytes. |
length | The length of the data to download from the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Downloads the contents of a file as text.
|
inline |
Downloads the contents of a file as text.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to download the contents of a file as text.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::download_text_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to download the contents of a file as text.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Downloads the contents of a file to a file.
path | The target file. |
|
inline |
Downloads the contents of a file to a file.
path | The target file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to download the contents of a file to a file.
path | The target file. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::download_to_file_async | ( | const utility::string_t & | path, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to download the contents of a file to a file.
path | The target file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Downloads the contents of a file to a stream.
target | The target stream. |
|
inline |
Downloads the contents of a file to a stream.
target | The target stream. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to download the contents of a file to a stream.
target | The target stream. |
|
inline |
Intitiates an asynchronous operation to download the contents of a file to a stream.
target | The target stream. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Checks existence of the file.
true
if the file exists.
|
inline |
Checks existence of the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
true
if the file exists.
|
inline |
Intitiates an asynchronous operation to check the existence of the file.
|
inline |
Intitiates an asynchronous operation to check the existence of the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets the azure::storage::cloud_file_client object that represents the File service.
|
inline |
Gets the azure::storage::cloud_file_client object that represents the File service.
|
inline |
Returns a shared access signature for the file.
policy | The access policy for the shared access signature. |
|
inline |
Returns a shared access signature for the file.
policy | The access policy for the shared access signature. |
stored_policy_identifier | A share-level access policy. |
WASTORAGE_API utility::string_t azure::storage::cloud_file::get_shared_access_signature | ( | const file_shared_access_policy & | policy, |
const utility::string_t & | stored_policy_identifier, | ||
const cloud_file_shared_access_headers & | headers | ||
) | const |
Returns a shared access signature for the file.
policy | The access policy for the shared access signature. |
stored_policy_identifier | A share-level access policy. |
headers | The optional header values to set for a file returned with this SAS. |
|
inline |
Gets a collection of valid file ranges.
|
inline |
Gets a collection of valid file ranges.
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets a collection of valid file ranges and their starting bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. If the value sets to be max of size64_t, it will attampt to list all ranges. |
|
inline |
Gets a collection of valid file ranges and their starting bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets a collection of valid file ranges and their starting and ending bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
length | The length of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
|
inline |
Gets a collection of valid file ranges and their starting and ending bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
length | The length of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to get a collection of valid file ranges.
|
inline |
Intitiates an asynchronous operation to get a collection of valid file ranges.
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
|
inline |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting and ending bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
length | The length of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
WASTORAGE_API pplx::task<std::vector<file_range> > azure::storage::cloud_file::list_ranges_async | ( | utility::size64_t | start_offset, |
utility::size64_t | length, | ||
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to get a collection of valid file ranges and their starting and ending bytes.
offset | The starting offset of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
length | The length of the data range over which to list file ranges, in bytes. Must be a multiple of 512. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets the file's system metadata.
|
inline |
Gets the file's system metadata.
|
inline |
Gets the file's name.
|
inline |
Gets the file's name.
|
inline |
Opens a stream for writing to the file.
|
inline |
Opens a stream for writing to the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Opens a stream for writing to the file.
length | The length of the file, in bytes. |
|
inline |
Opens a stream for writing to the file.
length | The length of the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to open a stream for writing to the file.
WASTORAGE_API pplx::task<concurrency::streams::ostream> azure::storage::cloud_file::open_write_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to open a stream for writing to the file.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to open a stream for writing to the file.
length | The length of the file, in bytes. |
WASTORAGE_API pplx::task<concurrency::streams::ostream> azure::storage::cloud_file::open_write_async | ( | utility::size64_t | length, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to open a stream for writing to the file.
length | The length of the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
const utility::string_t azure::storage::cloud_file::path | ( | ) | const |
Gets the file's path.
|
inline |
Gets the file's system properties.
|
inline |
Gets the file's system properties.
|
inline |
Releases the lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
|
inline |
Releases the lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Initiates an asynchronous operation to release the lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
|
inline |
Initiates an asynchronous operation to release the lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::release_lease_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context, | ||
const pplx::cancellation_token & | cancellation_token | ||
) | const |
Initiates an asynchronous operation to release the lease on the file.
condition | An azure::storage::file_access_condition object that represents the access conditions for the file, including a required lease ID. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
cancellation_token | An pplx::cancellation_token object that is used to cancel the current operation. |
|
inline |
Resize the file.
quota | The size to apply to the file. |
|
inline |
Resize the file.
quota | The size to apply to the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to resize the file.
quota | The size to apply to the file. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::resize_async | ( | int64_t | length, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to resize the file.
quota | The size to apply to the file. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets the azure::storage::cloud_file_client object that represents the File service.
|
inline |
Begins an operation to copy a file's contents, properties, and metadata to a new file.
source | The URI of a source file. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a file's contents, properties, and metadata to a new file.
source | The URI of a source file. |
source_condition | An object that represents the azure::storage::file_access_condition for the source file. |
destination_condition | An object that represents the azure::storage::file_access_condition for the destination file. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a blob's contents, properties, and metadata to a new file.
source | The URI of a source blob. |
source_condition | An object that represents the azure::storage::file_access_condition for the source file. |
destination_condition | An object that represents the azure::storage::file_access_condition for the destination file. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a file's contents, properties, and metadata to a new file.
source | An object that represents the for the source file.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a file's contents, properties, and metadata to a new file.
source | An object that represents the for the source file.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a blob's contents, properties, and metadata to a new file.
source | An object that represents the for the source blob.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Begins an operation to copy a blob's contents, properties, and metadata to a new file.
source | An object that represents the for the source blob.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file.
source | The URI of a source file. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::start_copy_async | ( | const web::http::uri & | source, |
const file_access_condition & | source_condition, | ||
const file_access_condition & | dest_condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file.
source | The URI of a source file. |
source_condition | An object that represents the azure::storage::file_access_condition for the source file. |
destination_condition | An object that represents the azure::storage::file_access_condition for the destination file. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::start_copy_async | ( | const web::http::uri & | source, |
const access_condition & | source_condition, | ||
const file_access_condition & | dest_condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file.
source | The URI of a source blob. |
source_condition | An object that represents the azure::storage::file_access_condition for the source file. |
destination_condition | An object that represents the azure::storage::file_access_condition for the destination file. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file.
source | An object that represents the for the source file.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::start_copy_async | ( | const cloud_file & | source, |
const file_access_condition & | source_condition, | ||
const file_access_condition & | dest_condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to begin to copy a file's contents, properties, and metadata to a new file.
source | An object that represents the for the source file.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::start_copy_async | ( | const cloud_blob & | source | ) | const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file.
source | An object that represents the for the source blob.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
WASTORAGE_API pplx::task<utility::string_t> azure::storage::cloud_file::start_copy_async | ( | const cloud_blob & | source, |
const access_condition & | source_condition, | ||
const file_access_condition & | dest_condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to begin to copy a blob's contents, properties, and metadata to a new file.
source | An object that represents the for the source blob.
|
This method fetches the file's ETag, last-modified time, and part of the copy state. The copy ID and copy status fields are fetched, and the rest of the copy state is cleared.
|
inline |
Uploads the file from local file.
path | The local file providing the file content. |
|
inline |
Uploads the file from local file.
path | The local file providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to upload the file from local file.
path | The local file providing the file content. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::upload_from_file_async | ( | const utility::string_t & | path, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to upload the file from local file.
path | The local file providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Uploads the file from stream.
stream | The stream providing the file content. |
|
inline |
Uploads the file from stream.
stream | The stream providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Uploads the file from stream.
stream | The stream providing the file content. |
length | The length of the file, in bytes. |
|
inline |
Uploads the file from stream.
stream | The stream providing the file content. |
length | The length of the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to upload the file from stream.
stream | The stream providing the file content. |
|
inline |
Intitiates an asynchronous operation to upload the file from stream.
stream | The stream providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to upload the file from stream.
stream | The stream providing the file content. |
length | The length of the file, in bytes. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::upload_from_stream_async | ( | concurrency::streams::istream | stream, |
utility::size64_t | length, | ||
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to upload the file from stream.
stream | The stream providing the file content. |
length | The length of the file, in bytes. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Updates the file's metadata.
|
inline |
Updates the file's metadata.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to update the file's metadata.
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::upload_metadata_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to update the file's metadata.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Updates the file's properties.
|
inline |
Updates the file's properties.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to update the file's properties.
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::upload_properties_async | ( | const file_access_condition & | condition, |
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to update the file's properties.
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Uploads the file from text.
text | The text providing the file content. |
|
inline |
Uploads the file from text.
text | The text providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to upload the file from text.
text | The text providing the file content. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::upload_text_async | ( | const utility::string_t & | text, |
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to upload the file from text.
text | The text providing the file content. |
condition | An azure::storage::file_access_condition object that represents the access condition for the operation. |
options | An azure::storage::file_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Gets the file URI for all locations.
|
inline |
Writes range to a file.
stream | A stream providing the file range data. |
start_offset | The offset at which to begin writing, in bytes. The offset must be a multiple of 512. |
content_md5 | An optional hash value that will be used to set the Content-MD5 property on the blob. May be an empty string. |
|
inline |
Writes range to a file.
stream | A stream providing the file range data. |
start_offset | The offset at which to begin writing, in bytes. The offset must be a multiple of 512. |
content_md5 | An optional hash value that will be used to set the Content-MD5 property on the blob. May be an empty string. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |
|
inline |
Intitiates an asynchronous operation to write range to a file.
stream | A stream providing the file range data. |
start_offset | The offset at which to begin writing, in bytes. The offset must be a multiple of 512. |
content_md5 | An optional hash value that will be used to set the Content-MD5 property on the blob. May be an empty string. |
WASTORAGE_API pplx::task<void> azure::storage::cloud_file::write_range_async | ( | Concurrency::streams::istream | stream, |
int64_t | start_offset, | ||
const utility::string_t & | content_md5, | ||
const file_access_condition & | condition, | ||
const file_request_options & | options, | ||
operation_context | context | ||
) | const |
Intitiates an asynchronous operation to write range to a file.
stream | A stream providing the file range data. |
start_offset | The offset at which to begin writing, in bytes. The offset must be a multiple of 512. |
content_md5 | An optional hash value that will be used to set the Content-MD5 property on the blob. May be an empty string. |
condition | An azure::storage::access_condition object that represents the access condition for the operation. |
options | An azure::storage::blob_request_options object that specifies additional options for the request. |
context | An azure::storage::operation_context object that represents the context for the current operation. |