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++.
|
Represents a virtual directory of blobs, designated by a delimiter character. More...
Public Member Functions | |
cloud_blob_directory () | |
Initializes a new instance of the azure::storage::cloud_blob_directory class. More... | |
WASTORAGE_API cloud_blob | get_blob_reference (utility::string_t blob_name) const |
Gets a reference to a blob in this virtual directory. More... | |
WASTORAGE_API cloud_blob | get_blob_reference (utility::string_t blob_name, utility::string_t snapshot_time) const |
Gets a reference to a blob in this virtual directory. More... | |
WASTORAGE_API cloud_page_blob | get_page_blob_reference (utility::string_t blob_name) const |
Gets a reference to a page blob in this virtual directory. More... | |
WASTORAGE_API cloud_page_blob | get_page_blob_reference (utility::string_t blob_name, utility::string_t snapshot_time) const |
Gets a reference to a page blob in this virtual directory. More... | |
WASTORAGE_API cloud_block_blob | get_block_blob_reference (utility::string_t blob_name) const |
Gets a reference to a block blob in this virtual directory. More... | |
WASTORAGE_API cloud_block_blob | get_block_blob_reference (utility::string_t blob_name, utility::string_t snapshot_time) const |
Gets a reference to a block blob in this virtual directory. More... | |
WASTORAGE_API cloud_append_blob | get_append_blob_reference (utility::string_t blob_name) const |
Gets a reference to an append blob in this virtual directory. More... | |
WASTORAGE_API cloud_append_blob | get_append_blob_reference (utility::string_t blob_name, utility::string_t snapshot_time) const |
Gets a reference to an append blob in this virtual directory. More... | |
WASTORAGE_API cloud_blob_directory | get_subdirectory_reference (utility::string_t name) const |
Returns a virtual subdirectory within this virtual directory. More... | |
WASTORAGE_API cloud_blob_directory | get_parent_reference () const |
Gets the azure::storage::cloud_blob_directory object representing the parent directory for the current virtual directory. More... | |
list_blob_item_iterator | list_blobs () const |
Returns an azure::storage::list_blob_item_iterator that can be used to to lazily enumerate a collection of blob items in the virtual directory. More... | |
WASTORAGE_API list_blob_item_iterator | list_blobs (bool use_flat_blob_listing, blob_listing_details::values includes, int max_results, const blob_request_options &options, operation_context context) const |
Returns an azure::storage::list_blob_item_iterator that can be used to to lazily enumerate a collection of blob items in the the virtual directory. More... | |
list_blob_item_segment | list_blobs_segmented (const continuation_token &token) const |
Returns a result segment containing a collection of blob items in the container. More... | |
list_blob_item_segment | list_blobs_segmented (bool use_flat_blob_listing, blob_listing_details::values includes, int max_results, const continuation_token &token, const blob_request_options &options, operation_context context) const |
Returns an azure::storage::list_blob_item_segment containing a collection of blob items in the container. More... | |
pplx::task< list_blob_item_segment > | list_blobs_segmented_async (const continuation_token &token) const |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container. More... | |
pplx::task< list_blob_item_segment > | list_blobs_segmented_async (bool use_flat_blob_listing, blob_listing_details::values includes, int max_results, const continuation_token &token, const blob_request_options &options, operation_context context) const |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container. More... | |
WASTORAGE_API pplx::task< list_blob_item_segment > | list_blobs_segmented_async (bool use_flat_blob_listing, blob_listing_details::values includes, int max_results, const continuation_token &token, const blob_request_options &options, operation_context context, const pplx::cancellation_token &cancellation_token) const |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container. More... | |
const cloud_blob_client & | service_client () const |
Gets the Blob service client for the virtual directory. More... | |
const cloud_blob_container & | container () const |
Gets an azure::storage::cloud_blob_container object representing the virtual directory's container. More... | |
const storage_uri & | uri () const |
Gets the virtual directory URI for all locations. More... | |
const utility::string_t & | prefix () const |
Gets the prefix for the virtual directory. More... | |
bool | is_valid () const |
Indicates whether the azure::storage::cloud_blob_directory object is valid. More... | |
Represents a virtual directory of blobs, designated by a delimiter character.
Containers, which are encapsulated as azure::storage::cloud_blob_container objects, hold directories, and directories hold block blobs and page blobs. Directories can also contain sub-directories.
|
inline |
Initializes a new instance of the azure::storage::cloud_blob_directory class.
|
inline |
Gets an azure::storage::cloud_blob_container object representing the virtual directory's container.
WASTORAGE_API cloud_append_blob azure::storage::cloud_blob_directory::get_append_blob_reference | ( | utility::string_t | blob_name | ) | const |
Gets a reference to an append blob in this virtual directory.
blob_name | The name of the blob. |
WASTORAGE_API cloud_append_blob azure::storage::cloud_blob_directory::get_append_blob_reference | ( | utility::string_t | blob_name, |
utility::string_t | snapshot_time | ||
) | const |
Gets a reference to an append blob in this virtual directory.
blob_name | The name of the blob. |
snapshot_time | The snapshot timestamp, if the blob is a snapshot. |
WASTORAGE_API cloud_blob azure::storage::cloud_blob_directory::get_blob_reference | ( | utility::string_t | blob_name | ) | const |
Gets a reference to a blob in this virtual directory.
blob_name | The name of the blob. |
WASTORAGE_API cloud_blob azure::storage::cloud_blob_directory::get_blob_reference | ( | utility::string_t | blob_name, |
utility::string_t | snapshot_time | ||
) | const |
Gets a reference to a blob in this virtual directory.
blob_name | The name of the blob. |
snapshot_time | The snapshot timestamp, if the blob is a snapshot. |
WASTORAGE_API cloud_block_blob azure::storage::cloud_blob_directory::get_block_blob_reference | ( | utility::string_t | blob_name | ) | const |
Gets a reference to a block blob in this virtual directory.
blob_name | The name of the blob. |
WASTORAGE_API cloud_block_blob azure::storage::cloud_blob_directory::get_block_blob_reference | ( | utility::string_t | blob_name, |
utility::string_t | snapshot_time | ||
) | const |
Gets a reference to a block blob in this virtual directory.
blob_name | The name of the blob. |
snapshot_time | The snapshot timestamp, if the blob is a snapshot. |
WASTORAGE_API cloud_page_blob azure::storage::cloud_blob_directory::get_page_blob_reference | ( | utility::string_t | blob_name | ) | const |
Gets a reference to a page blob in this virtual directory.
blob_name | The name of the blob. |
WASTORAGE_API cloud_page_blob azure::storage::cloud_blob_directory::get_page_blob_reference | ( | utility::string_t | blob_name, |
utility::string_t | snapshot_time | ||
) | const |
Gets a reference to a page blob in this virtual directory.
blob_name | The name of the blob. |
snapshot_time | The snapshot timestamp, if the blob is a snapshot. |
WASTORAGE_API cloud_blob_directory azure::storage::cloud_blob_directory::get_parent_reference | ( | ) | const |
Gets the azure::storage::cloud_blob_directory object representing the parent directory for the current virtual directory.
WASTORAGE_API cloud_blob_directory azure::storage::cloud_blob_directory::get_subdirectory_reference | ( | utility::string_t | name | ) | const |
Returns a virtual subdirectory within this virtual directory.
name | The name of the virtual subdirectory. |
|
inline |
Indicates whether the azure::storage::cloud_blob_directory object is valid.
true
if the azure::storage::cloud_blob_directory object is valid; otherwise, false
.
|
inline |
Returns an azure::storage::list_blob_item_iterator that can be used to to lazily enumerate a collection of blob items in the virtual directory.
WASTORAGE_API list_blob_item_iterator azure::storage::cloud_blob_directory::list_blobs | ( | bool | use_flat_blob_listing, |
blob_listing_details::values | includes, | ||
int | max_results, | ||
const blob_request_options & | options, | ||
operation_context | context | ||
) | const |
Returns an azure::storage::list_blob_item_iterator that can be used to to lazily enumerate a collection of blob items in the the virtual directory.
use_flat_blob_listing | Indicates whether to list blobs in a flat listing, or whether to list blobs hierarchically, by virtual directory. |
includes | An azure::storage::blob_listing_details::values enumeration describing which items to include in the listing. |
max_results | A non-negative integer value that indicates the maximum number of results to be returned. If this value is zero, the maximum possible number of results will be returned. |
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 |
Returns a result segment containing a collection of blob items in the container.
token | A continuation token returned by a previous listing operation. |
|
inline |
Returns an azure::storage::list_blob_item_segment containing a collection of blob items in the container.
use_flat_blob_listing | Indicates whether to list blobs in a flat listing, or whether to list blobs hierarchically, by virtual directory. |
includes | An azure::storage::blob_listing_details::values enumeration describing which items to include in the listing. |
max_results | A non-negative integer value that indicates the maximum number of results to be returned at a time, up to the per-operation limit of 5000. If this value is 0, the maximum possible number of results will be returned, up to 5000. |
token | A continuation token returned by a previous listing 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 |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container.
token | A continuation token returned by a previous listing operation. |
|
inline |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container.
use_flat_blob_listing | Indicates whether to list blobs in a flat listing, or whether to list blobs hierarchically, by virtual directory. |
includes | An azure::storage::blob_listing_details::values enumeration describing which items to include in the listing. |
max_results | A non-negative integer value that indicates the maximum number of results to be returned at a time, up to the per-operation limit of 5000. If this value is 0, the maximum possible number of results will be returned, up to 5000. |
token | A continuation token returned by a previous listing 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. |
WASTORAGE_API pplx::task<list_blob_item_segment> azure::storage::cloud_blob_directory::list_blobs_segmented_async | ( | bool | use_flat_blob_listing, |
blob_listing_details::values | includes, | ||
int | max_results, | ||
const continuation_token & | token, | ||
const blob_request_options & | options, | ||
operation_context | context, | ||
const pplx::cancellation_token & | cancellation_token | ||
) | const |
Initiates an asynchronous operation to return an azure::storage::list_blob_item_segment containing a collection of blob items in the container.
use_flat_blob_listing | Indicates whether to list blobs in a flat listing, or whether to list blobs hierarchically, by virtual directory. |
includes | An azure::storage::blob_listing_details::values enumeration describing which items to include in the listing. |
max_results | A non-negative integer value that indicates the maximum number of results to be returned at a time, up to the per-operation limit of 5000. If this value is 0, the maximum possible number of results will be returned, up to 5000. |
token | A continuation token returned by a previous listing 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. |
cancellation_token | An pplx::cancellation_token object that is used to cancel the current operation. |
|
inline |
Gets the prefix for the virtual directory.
|
inline |
Gets the Blob service client for the virtual directory.
|
inline |
Gets the virtual directory URI for all locations.