Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
ACL_PRIVATE = 'null'
ACL - Private access
ACL_PUBLIC = 'container'
ACL - Public access (read all blobs)
ACL_PUBLIC_BLOB = 'blob'
ACL - Blob Public access (read all blobs)
ACL_PUBLIC_CONTAINER = 'container'
ACL - Container Public access (enumerate and read all blobs)
LEASE_ACQUIRE = 'acquire'
Blob lease constants
LEASE_RENEW = 'renew'
LEASE_RELEASE = 'release'
LEASE_BREAK = 'break'
MAX_BLOB_SIZE = '67108864'
Maximal blob size (in bytes)
MAX_BLOB_TRANSFER_SIZE = '4194304'
Maximal blob transfer size (in bytes)
BLOBTYPE_BLOCK = 'BlockBlob'
Blob types
BLOBTYPE_PAGE = 'PageBlob'
PAGE_WRITE_UPDATE = 'update'
Put page write options
PAGE_WRITE_CLEAR = 'clear'
Zend_Service_WindowsAzure_Credentials_SharedAccessSignature $_sharedAccessSignatureCredentials = 'null'
SharedAccessSignature credentials
array $_wrapperClients = 'array'
Stream wrapper clients
__construct(
string $host
=
Zend_Service_WindowsAzure_Storage, string $accountName
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract, string $accountKey
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract, boolean $usePathStyleUri
=
false, Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy
=
null
)
:
Creates a new Zend_Service_WindowsAzure_Storage_Blob instance
_generateBlockId(
int $part
=
0
)
:
string
Generate block id
_getErrorMessage(
Zend_Http_Response $response, string $alternativeError
=
Unknown error.
)
:
string
Get error message from Zend_Http_Response
blobExists(
string $containerName, string $blobName, string $snapshotId
=
null
)
:
boolean
Check if a blob exists
containerExists(
string $containerName
)
:
boolean
Check if a container exists
copyBlob(
string $sourceContainerName, string $sourceBlobName, string $destinationContainerName, string $destinationBlobName, array $metadata
=
array, string $sourceSnapshotId
=
null, string $destinationLeaseId
=
null, array $additionalHeaders
=
array
)
:
object
Copy blob
createContainer(
string $containerName, array $metadata
=
array
)
:
object
Create container
createPageBlob(
string $containerName, string $blobName, int $size
=
0, array $metadata
=
array, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
object
Create page blob
createResourceName(
string $containerName, string $blobName
)
:
string
Create resource name
deleteBlob(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Delete blob
deleteContainer(
string $containerName, array $additionalHeaders
=
array
)
:
Delete container
generateSharedAccessUrl(
string $containerName, string $blobName, string $resource
=
b, string $permissions
=
r, string $start, string $expiry, string $identifier
)
:
string
Generate shared access URL
getBlob(
string $containerName, string $blobName, string $localFileName, string $snapshotId
=
null, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Get blob
getBlobData(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
mixed
Get blob data
getBlobInstance(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Zend_Service_WindowsAzure_Storage_BlobInstance
Get blob instance
getBlobMetadata(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null
)
:
array
Get blob metadata
getBlobProperties(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null
)
:
Zend_Service_WindowsAzure_Storage_BlobInstance
Get blob properties
getBlockList(
string $containerName, string $blobName, string $snapshotId
=
null, string $leaseId
=
null, integer $type
=
0
)
:
array
Get block list
getContainer(
string $containerName
)
:
Zend_Service_WindowsAzure_Storage_BlobContainer
Get container
getContainerAcl(
string $containerName, bool $signedIdentifiers
=
false
)
:
string
Get container ACL
getContainerMetadata(
string $containerName
)
:
array
Get container metadata
getPageRegions(
string $containerName, string $blobName, int $startByteOffset
=
0, int $endByteOffset
=
0, string $leaseId
=
null
)
:
array
Put page in page blob
getWrapperClient(
string $name
)
:
Zend_Service_WindowsAzure_Storage_Blob
Get wrapper client for stream type
isValidContainerName(
string $containerName
)
:
boolean
Is valid container name?
leaseBlob(
string $containerName, string $blobName, string $leaseAction
=
self, string $leaseId
=
null
)
:
Zend_Service_WindowsAzure_Storage_LeaseInstance
Lease blob - See (http://msdn.microsoft.com/en-us/library/ee691972.aspx)
listBlobs(
string $containerName, string $prefix, string $delimiter, int $maxResults
=
null, string $marker
=
null, string $include
=
null, int $currentResultCount
=
0
)
:
array
List blobs
listContainers(
string $prefix
=
null, int $maxResults
=
null, string $marker
=
null, string $include
=
null, int $currentResultCount
=
0
)
:
array
List containers
putBlob(
string $containerName, string $blobName, string $localFileName, array $metadata
=
array, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
object
Put blob
putBlobData(
string $containerName, string $blobName, mixed $data, array $metadata
=
array, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
object
Put blob data
putBlock(
string $containerName, string $blobName, string $identifier, array $contents, string $leaseId
=
null
)
:
Put large blob block
putBlockList(
string $containerName, string $blobName, array $blockList
=
array, array $metadata
=
array, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Put block list
putLargeBlob(
string $containerName, string $blobName, string $localFileName, array $metadata
=
array, string $leaseId
=
null
)
:
object
Put large blob (> 64 MB)
putPage(
string $containerName, string $blobName, int $startByteOffset
=
0, int $endByteOffset
=
0, mixed $contents, string $writeMethod
=
self, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Put page in page blob
registerAsClient(
string $name
)
:
Zend_Service_WindowsAzure_Storage_Blob
Register this object as stream wrapper client
registerStreamWrapper(
string $name
=
azure
)
:
Register this object as stream wrapper
setBlobMetadata(
string $containerName, string $blobName, array $metadata
=
array, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Set blob metadata
Calling the Set Blob Metadata operation overwrites all existing metadata that is associated with the blob. It's not possible to modify an individual name/value pair.
setBlobProperties(
string $containerName, string $blobName, string $leaseId
=
null, array $additionalHeaders
=
array
)
:
Set blob properties
All available properties are listed at http://msdn.microsoft.com/en-us/library/ee691966.aspx and should be provided in the $additionalHeaders parameter.
setContainerAcl(
string $containerName, bool $acl
=
self, array $signedIdentifiers
=
array
)
:
Set container ACL
setContainerMetadata(
string $containerName, array $metadata
=
array, array $additionalHeaders
=
array
)
:
Set container metadata
Calling the Set Container Metadata operation overwrites all existing metadata that is associated with the container. It's not possible to modify an individual name/value pair.
snapshotBlob(
string $containerName, string $blobName, array $metadata
=
array, array $additionalHeaders
=
array
)
:
string
Snapshot blob
unregisterAsClient(
string $name
)
:
Zend_Service_WindowsAzure_Storage_Blob
Unregister this object as stream wrapper client
unregisterStreamWrapper(
string $name
=
azure
)
:
Zend_Service_WindowsAzure_Storage_Blob
Unregister this object as stream wrapper