category Zend
package Zend_Service_WindowsAzure
subpackage Storage
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Service_WindowsAzure_Storage

 Methods

Creates a new Zend_Service_WindowsAzure_Storage_Blob instance

__construct(string $host = \Zend_Service_WindowsAzure_Storage::URL_DEV_BLOB, string $accountName = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, string $accountKey = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, boolean $usePathStyleUri = false, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null
inherited_from \Zend_Service_WindowsAzure_Storage::__construct()

Parameters

$host

string

Storage host name

$accountName

string

Account name for Windows Azure

$accountKey

string

Account key for Windows Azure

$usePathStyleUri

boolean

Use path-style URI's

$retryPolicy

\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract

Retry policy to use when making requests

Creates a new Zend_Service_WindowsAzure_Storage instance

__construct(string $host = self::URL_DEV_BLOB, string $accountName = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, string $accountKey = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, boolean $usePathStyleUri = false, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null
Inherited

Parameters

$host

string

Storage host name

$accountName

string

Account name for Windows Azure

$accountKey

string

Account key for Windows Azure

$usePathStyleUri

boolean

Use path-style URI's

$retryPolicy

\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract

Retry policy to use when making requests

Check if a blob exists

blobExists(string $containerName = '', string $blobName = '', string $snapshotId = null) : boolean

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

Returns

boolean

Check if a container exists

containerExists(string $containerName = '') : boolean

Parameters

$containerName

string

Container name

Returns

boolean

Copy blob

copyBlob(string $sourceContainerName = '', string $sourceBlobName = '', string $destinationContainerName = '', string $destinationBlobName = '', array $metadata = array(), string $sourceSnapshotId = null, string $destinationLeaseId = null, array $additionalHeaders = array()) : object

Parameters

$sourceContainerName

string

Source container name

$sourceBlobName

string

Source blob name

$destinationContainerName

string

Destination container name

$destinationBlobName

string

Destination blob name

$metadata

array

Key/value pairs of meta data

$sourceSnapshotId

string

Source snapshot identifier

$destinationLeaseId

string

Destination lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd894037.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectPartial blob properties

Create container

createContainer(string $containerName = '', array $metadata = array()) : object

Parameters

$containerName

string

Container name

$metadata

array

Key/value pairs of meta data

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectContainer properties

Create container if it does not exist

createContainerIfNotExists(string $containerName = '', array $metadata = array()

Parameters

$containerName

string

Container name

$metadata

array

Key/value pairs of meta data

Exceptions

\Zend_Service_WindowsAzure_Exception

Create page blob

createPageBlob(string $containerName = '', string $blobName = '', integer $size = 0, array $metadata = array(), string $leaseId = null, array $additionalHeaders = array()) : object

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$size

integer

Size of the page blob in bytes

$metadata

array

Key/value pairs of meta data

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectPartial blob properties

Builds a query string from an array of elements

createQueryStringFromArray($queryString) : string
InheritedStatic

Parameters

$queryString

Returns

stringAssembled query string

Create resource name

createResourceName(string $containerName = '', string $blobName = '') : string
Static

Parameters

$containerName

string

Container name

$blobName

string

Blob name

Returns

string

Delete blob

deleteBlob(string $containerName = '', string $blobName = '', string $snapshotId = null, string $leaseId = null, array $additionalHeaders = array()

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Delete container

deleteContainer(string $containerName = '', array $additionalHeaders = array()

Parameters

$containerName

string

Container name

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Generate shared access URL

generateSharedAccessUrl(string $containerName = '', string $blobName = '', string $resource = 'b', string $permissions = 'r', string $start = '', string $expiry = '', string $identifier = '') : string

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$resource

string

Signed resource - container (c) - blob (b)

$permissions

string

Signed permissions - read (r), write (w), delete (d) and list (l)

$start

string

The time at which the Shared Access Signature becomes valid.

$expiry

string

The time at which the Shared Access Signature becomes invalid.

$identifier

string

Signed identifier

Returns

string

Returns the Windows Azure account name

getAccountName() : string
Inherited

Returns

string

Get base URL for creating requests

getBaseUrl() : string
Inherited

Returns

string

Get blob

getBlob(string $containerName = '', string $blobName = '', string $localFileName = '', string $snapshotId = null, string $leaseId = null, array $additionalHeaders = array()

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$localFileName

string

Local file name to store downloaded blob

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Get blob data

getBlobData(string $containerName = '', string $blobName = '', string $snapshotId = null, string $leaseId = null, array $additionalHeaders = array()) : mixed

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

mixedBlob contents

Get blob instance

getBlobInstance(string $containerName = '', string $blobName = '', string $snapshotId = null, string $leaseId = null, array $additionalHeaders = array()) : \Zend_Service_WindowsAzure_Storage_BlobInstance

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

\Zend_Service_WindowsAzure_Storage_BlobInstance

Get blob properties

getBlobProperties(string $containerName = '', string $blobName = '', string $snapshotId = null, string $leaseId = null) : \Zend_Service_WindowsAzure_Storage_BlobInstance

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

\Zend_Service_WindowsAzure_Storage_BlobInstance

Get block list

getBlockList(string $containerName = '', string $blobName = '', string $snapshotId = null, string $leaseId = null, integer $type = 0) : array

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$snapshotId

string

Snapshot identifier

$leaseId

string

Lease identifier

$type

integer

Type of block list to retrieve. 0 = all, 1 = committed, 2 = uncommitted

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

array

Get container

getContainer(string $containerName = '') : \Zend_Service_WindowsAzure_Storage_BlobContainer

Parameters

$containerName

string

Container name

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

\Zend_Service_WindowsAzure_Storage_BlobContainer

Get container ACL

getContainerAcl(string $containerName = '', boolean $signedIdentifiers = false) : string

Parameters

$containerName

string

Container name

$signedIdentifiers

boolean

Display only private/blob/container or display signed identifiers?

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

stringAcl, to be compared with Zend_Service_WindowsAzure_Storage_Blob::ACL_*

Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

getCredentials() : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
Inherited

Returns

\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract

Retrieve HTTP client channel

getHttpClientChannel() : \Zend_Http_Client_Adapter_Interface
Inherited

Returns

\Zend_Http_Client_Adapter_Interface

Put page in page blob

getPageRegions(string $containerName = '', string $blobName = '', integer $startByteOffset = 0, integer $endByteOffset = 0, string $leaseId = null) : array

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$startByteOffset

integer

Start byte offset

$endByteOffset

integer

End byte offset

$leaseId

string

Lease identifier

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

arrayArray of page ranges

Get wrapper client for stream type

getWrapperClient(string $name) : \Zend_Service_WindowsAzure_Storage_Blob
Static

Parameters

$name

string

Protocol name

Returns

\Zend_Service_WindowsAzure_Storage_Blob

Is valid container name?

isValidContainerName(string $containerName = '') : boolean
Static

Parameters

$containerName

string

Container name

Returns

boolean

Is valid metadata name?

isValidMetadataName(string $metadataName = '') : boolean
InheritedStatic

Parameters

$metadataName

string

Metadata name

Returns

boolean

Generate ISO 8601 compliant date string in UTC time zone

isoDate(integer $timestamp = null) : string
Inherited

Parameters

$timestamp

integer

Returns

string

Lease blob - See (http://msdn.microsoft.com/en-us/library/ee691972.aspx)

leaseBlob(string $containerName = '', string $blobName = '', string $leaseAction = self::LEASE_ACQUIRE, string $leaseId = null) : \Zend_Service_WindowsAzure_Storage_LeaseInstance

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$leaseAction

string

Lease action (Zend_Service_WindowsAzure_StorageBlob::LEASE*)

$leaseId

string

Lease identifier, required to renew the lease or to release the lease.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

\Zend_Service_WindowsAzure_Storage_LeaseInstanceLease instance

List blobs

listBlobs(string $containerName = '', string $prefix = '', string $delimiter = '', integer $maxResults = null, string $marker = null, string $include = null, integer $currentResultCount = 0) : array

Parameters

$containerName

string

Container name

$prefix

string

Optional. Filters the results to return only blobs whose name begins with the specified prefix.

$delimiter

string

Optional. Delimiter, i.e. '/', for specifying folder hierarchy

$maxResults

integer

Optional. Specifies the maximum number of blobs to return per call to Azure storage. This does NOT affect list size returned by this function. (maximum: 5000)

$marker

string

Optional string value that identifies the portion of the list to be returned with the next list operation.

$include

string

Optional. Specifies that the response should include one or more of the following subsets: '', 'metadata', 'snapshots', 'uncommittedblobs'). Multiple values can be added separated with a comma (,)

$currentResultCount

integer

Current result count (internal use)

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

array

List containers

listContainers(string $prefix = null, integer $maxResults = null, string $marker = null, string $include = null, integer $currentResultCount = 0) : array

Parameters

$prefix

string

Optional. Filters the results to return only containers whose name begins with the specified prefix.

$maxResults

integer

Optional. Specifies the maximum number of containers to return per call to Azure storage. This does NOT affect list size returned by this function. (maximum: 5000)

$marker

string

Optional string value that identifies the portion of the list to be returned with the next list operation.

$include

string

Optional. Include this parameter to specify that the container's metadata be returned as part of the response body. (allowed values: '', 'metadata')

$currentResultCount

integer

Current result count (internal use)

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

array

Put blob

putBlob(string $containerName = '', string $blobName = '', string $localFileName = '', array $metadata = array(), string $leaseId = null, array $additionalHeaders = array()) : object

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$localFileName

string

Local file name to be uploaded

$metadata

array

Key/value pairs of meta data

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectPartial blob properties

Put blob data

putBlobData(string $containerName = '', string $blobName = '', mixed $data = '', array $metadata = array(), string $leaseId = null, array $additionalHeaders = array()) : object

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$data

mixed

Data to store

$metadata

array

Key/value pairs of meta data

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectPartial blob properties

Put large blob block

putBlock(string $containerName = '', string $blobName = '', string $identifier = '', array $contents = '', string $leaseId = null

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$identifier

string

Block ID

$contents

array

Contents of the block

$leaseId

string

Lease identifier

Exceptions

\Zend_Service_WindowsAzure_Exception

Put block list

putBlockList(string $containerName = '', string $blobName = '', array $blockList = array(), array $metadata = array(), string $leaseId = null, array $additionalHeaders = array()

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$blockList

array

Array of block identifiers

$metadata

array

Key/value pairs of meta data

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Put large blob (> 64 MB)

putLargeBlob(string $containerName = '', string $blobName = '', string $localFileName = '', array $metadata = array(), string $leaseId = null, array $additionalHeaders = array()) : object

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$localFileName

string

Local file name to be uploaded

$metadata

array

Key/value pairs of meta data

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

objectPartial blob properties

Put page in page blob

putPage(string $containerName = '', string $blobName = '', integer $startByteOffset = 0, integer $endByteOffset = 0, mixed $contents = '', string $writeMethod = self::PAGE_WRITE_UPDATE, string $leaseId = null, array $additionalHeaders = array()

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$startByteOffset

integer

Start byte offset

$endByteOffset

integer

End byte offset

$contents

mixed

Page contents

$writeMethod

string

Write method (Zend_Service_WindowsAzure_Storage_Blob::PAGEWRITE*)

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Register this object as stream wrapper client

registerAsClient(string $name) : \Zend_Service_WindowsAzure_Storage_Blob

Parameters

$name

string

Protocol name

Returns

\Zend_Service_WindowsAzure_Storage_Blob

Register this object as stream wrapper

registerStreamWrapper(string $name = 'azure'

Parameters

$name

string

Protocol name

Set blob properties

setBlobProperties(string $containerName = '', string $blobName = '', string $leaseId = null, array $additionalHeaders = array()

All available properties are listed at http://msdn.microsoft.com/en-us/library/ee691966.aspx and should be provided in the $additionalHeaders parameter.

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$leaseId

string

Lease identifier

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Set container ACL

setContainerAcl(string $containerName = '', boolean $acl = self::ACL_PRIVATE, array $signedIdentifiers = array()

Parameters

$containerName

string

Container name

$acl

boolean

Zend_Service_WindowsAzure_StorageBlob::ACL*

$signedIdentifiers

array

Signed identifiers

Exceptions

\Zend_Service_WindowsAzure_Exception

Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

setCredentials(\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials) 
Inherited

Parameters

$credentials

\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract

Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance to use for request signing.

Set the HTTP client channel to use

setHttpClientChannel(\Zend_Http_Client_Adapter_Interface|string $adapterInstance = 'Zend_Http_Client_Adapter_Proxy'
Inherited

Parameters

$adapterInstance

\Zend_Http_Client_Adapter_Interfacestring

Adapter instance or adapter class name.

Set proxy

setProxy(boolean $useProxy = false, string $proxyUrl = '', integer $proxyPort = 80, string $proxyCredentials = ''
Inherited

Parameters

$useProxy

boolean

Use proxy?

$proxyUrl

string

Proxy URL

$proxyPort

integer

Proxy port

$proxyCredentials

string

Proxy credentials

Set retry policy to use when making requests

setRetryPolicy(\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null
Inherited

Parameters

$retryPolicy

\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract

Retry policy to use when making requests

Snapshot blob

snapshotBlob(string $containerName = '', string $blobName = '', array $metadata = array(), array $additionalHeaders = array()) : string

Parameters

$containerName

string

Container name

$blobName

string

Blob name

$metadata

array

Key/value pairs of meta data

$additionalHeaders

array

Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

stringDate/Time value representing the snapshot identifier.

Unregister this object as stream wrapper client

unregisterAsClient(string $name) : \Zend_Service_WindowsAzure_Storage_Blob

Parameters

$name

string

Protocol name

Returns

\Zend_Service_WindowsAzure_Storage_Blob

Unregister this object as stream wrapper

unregisterStreamWrapper(string $name = 'azure') : \Zend_Service_WindowsAzure_Storage_Blob

Parameters

$name

string

Protocol name

Returns

\Zend_Service_WindowsAzure_Storage_Blob

URL encode function

urlencode(string $value) : string
InheritedStatic

Parameters

$value

string

Value to encode

Returns

stringEncoded value

Generate block id

_generateBlockId(integer $part = 0) : string

Parameters

$part

integer

Block number

Returns

stringWindows Azure Blob Storage block number

Generate metadata headers

_generateMetadataHeaders(array $metadata = array()) : \HTTP
Inherited

Parameters

$metadata

array

Returns

\HTTPheaders containing metadata

Get error message from Zend_Http_Response

_getErrorMessage(\Zend_Http_Response $response, string $alternativeError = 'Unknown error.') : string

Parameters

$response

\Zend_Http_Response

Repsonse

$alternativeError

string

Alternative error message

Returns

string

Parse metadata XML

_parseMetadataElement($element = null) : array
Inherited

Parameters

$element

Returns

array

Parse metadata headers

_parseMetadataHeaders(array $headers = array()) : array
Inherited

Parameters

$headers

array

HTTP headers containing metadata

Returns

array

Parse result from Zend_Http_Response

_parseResponse(\Zend_Http_Response $response = null) : object
Inherited

Parameters

$response

\Zend_Http_Response

Response from HTTP call

Exceptions

\Zend_Service_WindowsAzure_Exception

Returns

object

Perform request using Zend_Http_Client channel

_performRequest(string $path = '/', string $queryString = '', string $httpVerb = \Zend_Http_Client::GET, array $headers = array(), boolean $forTableStorage = false, mixed $rawData = null, string $resourceType = \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, string $requiredPermission = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ) : \Zend_Http_Response
Inherited

Parameters

$path

string

Path

$queryString

string

Query string

$httpVerb

string

HTTP verb the request will use

$headers

array

x-ms headers to add

$forTableStorage

boolean

Is the request for table storage?

$rawData

mixed

Optional RAW HTTP data to be sent over the wire

$resourceType

string

Resource type

$requiredPermission

string

Required permission

Returns

\Zend_Http_Response

 Properties

 

Account key for Windows Azure

$_accountKey : string

Default

''
 

Account name for Windows Azure

$_accountName : string

Default

''
 

Current API version

$_apiVersion : string

Default

'2009-09-19'
 

Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

$_credentials : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract

Default

null
 

Storage host name

$_host : string

Default

''
 

Zend_Http_Client channel used for communication with REST services

$_httpClientChannel : \Zend_Http_Client

Default

null
 

Proxy credentials

$_proxyCredentials : string

Default

''
 

Proxy port

$_proxyPort : integer

Default

80
 

Proxy url

$_proxyUrl : string

Default

''
 

Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract instance

$_retryPolicy : \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract

Default

null
 

SharedAccessSignature credentials

$_sharedAccessSignatureCredentials : \Zend_Service_WindowsAzure_Credentials_SharedAccessSignature

Default

null
 

Use path-style URI's

$_usePathStyleUri : boolean

Default

false
 

Use proxy?

$_useProxy : boolean

Default

false
 

Stream wrapper clients

$_wrapperClients : array

Default

array()
Static

 Constants

 

ACL - Private access

ACL_PRIVATE = null 
 

ACL - Public access (read all blobs)

ACL_PUBLIC = 'container' 
deprecated Use ACL_PUBLIC_CONTAINER or ACL_PUBLIC_BLOB instead.
 

ACL - Blob Public access (read all blobs)

ACL_PUBLIC_BLOB = 'blob' 
 

ACL - Container Public access (enumerate and read all blobs)

ACL_PUBLIC_CONTAINER = 'container' 
 

Blob types

BLOBTYPE_BLOCK = 'BlockBlob' 
 

BLOBTYPE_PAGE

BLOBTYPE_PAGE = 'PageBlob' 
 

Blob lease constants

LEASE_ACQUIRE = 'acquire' 
 

LEASE_BREAK

LEASE_BREAK = 'break' 
 

LEASE_RELEASE

LEASE_RELEASE = 'release' 
 

LEASE_RENEW

LEASE_RENEW = 'renew' 
 

Maximal blob size (in bytes)

MAX_BLOB_SIZE = 67108864 
 

Maximal blob transfer size (in bytes)

MAX_BLOB_TRANSFER_SIZE = 4194304 
 

PAGE_WRITE_CLEAR

PAGE_WRITE_CLEAR = 'clear' 
 

Put page write options

PAGE_WRITE_UPDATE = 'update' 
   

HTTP header prefixes

PREFIX_PROPERTIES = "x-ms-prop-" 
 

PREFIX_STORAGE_HEADER

PREFIX_STORAGE_HEADER = "x-ms-" 
 

RESOURCE_BLOB

RESOURCE_BLOB = "b" 
 

RESOURCE_CONTAINER

RESOURCE_CONTAINER = "c" 
 

RESOURCE_ENTITY

RESOURCE_ENTITY = "e" 
 

RESOURCE_QUEUE

RESOURCE_QUEUE = "q" 
 

RESOURCE_TABLE

RESOURCE_TABLE = "t" 
 

Resource types

RESOURCE_UNKNOWN = "unknown" 
 

Live storage URLS

URL_CLOUD_BLOB = "blob.core.windows.net" 
 

URL_CLOUD_QUEUE

URL_CLOUD_QUEUE = "queue.core.windows.net" 
 

URL_CLOUD_TABLE

URL_CLOUD_TABLE = "table.core.windows.net" 
 

Development storage URLS

URL_DEV_BLOB = "127.0.0.1:10000" 
 

URL_DEV_QUEUE

URL_DEV_QUEUE = "127.0.0.1:10001" 
 

URL_DEV_TABLE

URL_DEV_TABLE = "127.0.0.1:10002"