BlockBlobClient
in package
FinalYes
Provides staged upload operations for an Azure Storage block blob.
Table of Contents
Properties
- $blobName : string
- $containerName : string
- $credential : StorageSharedKeyCredential|TokenCredential|null
- $uri : UriInterface
- $client : Client
Methods
- __construct() : mixed
- commitBlockList() : void
- Commits an ordered list of staged block IDs as the blob's content.
- commitBlockListAsync() : PromiseInterface
- Asynchronously commits an ordered list of staged block IDs.
- stageBlock() : void
- Stages a block for later inclusion in the blob's committed block list.
- stageBlockAsync() : PromiseInterface
- Asynchronously stages a block for later commitment.
Properties
$blobName read-only
public
string
$blobName
$containerName read-only
public
string
$containerName
$credential read-only
public
StorageSharedKeyCredential|TokenCredential|null
$credential
= null
$uri read-only
public
UriInterface
$uri
$client read-only
private
Client
$client
Methods
__construct()
public
__construct(UriInterface $uri[, StorageSharedKeyCredential|TokenCredential|null $credential = null ][, BlockBlobClientOptions $options = new BlockBlobClientOptions() ]) : mixed
Parameters
- $uri : UriInterface
- $credential : StorageSharedKeyCredential|TokenCredential|null = null
- $options : BlockBlobClientOptions = new BlockBlobClientOptions()
Tags
commitBlockList()
Commits an ordered list of staged block IDs as the blob's content.
public
commitBlockList(array<string|int, string> $base64BlockIds[, CommitBlockListOptions $options = new CommitBlockListOptions() ]) : void
Parameters
- $base64BlockIds : array<string|int, string>
- $options : CommitBlockListOptions = new CommitBlockListOptions()
commitBlockListAsync()
Asynchronously commits an ordered list of staged block IDs.
public
commitBlockListAsync(array<string|int, string> $base64BlockIds[, CommitBlockListOptions $options = new CommitBlockListOptions() ]) : PromiseInterface
Parameters
- $base64BlockIds : array<string|int, string>
- $options : CommitBlockListOptions = new CommitBlockListOptions()
Return values
PromiseInterfacestageBlock()
Stages a block for later inclusion in the blob's committed block list.
public
stageBlock(string $base64BlockId, StreamInterface|string $content[, StageBlockOptions $options = new StageBlockOptions() ]) : void
Parameters
- $base64BlockId : string
- $content : StreamInterface|string
- $options : StageBlockOptions = new StageBlockOptions()
stageBlockAsync()
Asynchronously stages a block for later commitment.
public
stageBlockAsync(string $base64BlockId, StreamInterface|string $content[, StageBlockOptions $options = new StageBlockOptions() ]) : PromiseInterface
Parameters
- $base64BlockId : string
- $content : StreamInterface|string
- $options : StageBlockOptions = new StageBlockOptions()