NAME
Azure::SDK::Storage::Blobs - Azure Blob Storage client
SYNOPSIS
my $client = Azure::SDK::Storage::Blobs->new(
connection_string => $ENV{AZURE_STORAGE_CONNECTION_STRING},
);
$client->create_container('phase3-files', if_not_exists => 1);
DESCRIPTION
Runs Blob service operations through Azure::SDK::Core, including Core retry, diagnostics, and transport behavior. Shared Key signing or precomputed SAS application runs once per pipeline try.
CONSTRUCTOR
new
Accepts connection_string (an account key or SharedAccessSignature Storage connection string, or an Azure::SDK::Storage::Blobs::ConnectionString), or endpoint with a Azure::SDK::Core::Credential::Sas. endpoint may instead contain a precomputed SAS query. It must be a service endpoint, not a particular blob URL. Do not combine these credential inputs. Optional options must be an Azure::SDK::Core::ClientOptions.
METHODS
create_container
Creates a container. With if_not_exists => 1, a ContainerAlreadyExists response returns undef; other failures throw an Azure::SDK::Core::Error.
delete_container
Deletes a container. if_exists makes ContainerNotFound return undef.
upload_blob
Uploads one byte string as a Block Blob. Accepts content_type, if_match, and overwrite. overwrite => 0 applies If-None-Match: *.
download_blob
Downloads a Blob and returns the Core response, including body and response headers. Accepts a strong if_match ETag.
get_blob_properties
Sends a HEAD request and returns the Core response metadata. Accepts a strong if_match ETag.
delete_blob
Deletes a Blob. if_exists makes BlobNotFound return undef. Accepts a strong if_match ETag.
list_blobs
Returns an Azure::SDK::Storage::Blobs::BlobPage. Accepts prefix, marker, and max_results for explicit page traversal.
list_blobs_pager
Returns a lazy Azure::SDK::Core::Pager. Accepts the same options as list_blobs; marker resumes traversal and max_results remains the service request's per-page limit. No request is sent until a page or item is consumed.
list_all_blobs
Follows every continuation marker and returns an array reference containing all Azure::SDK::Storage::Blobs::BlobItem objects. Accepts the same options as list_blobs. A repeated marker throws instead of looping indefinitely.