Azure OSS for PHP API Reference

BlobLeaseClient
in package

FinalYes

Manages a lease on an Azure Storage blob or container.

Table of Contents

Constants

INFINITE_LEASE_DURATION  : mixed = -1

Properties

$credential  : StorageSharedKeyCredential|TokenCredential|null
$leaseId  : string|null
$uri  : UriInterface
$client  : Client
$container  : bool
$options  : BlobLeaseClientOptions

Methods

__construct()  : mixed
acquire()  : BlobLease
Acquires a finite or infinite lease on the target resource.
acquireAsync()  : PromiseInterface
Asynchronously acquires a finite or infinite lease.
break()  : BlobLease
Breaks the active lease, optionally shortening its remaining break period.
breakAsync()  : PromiseInterface
Asynchronously breaks the active lease.
change()  : BlobLease
Changes the active lease to the proposed lease ID.
changeAsync()  : PromiseInterface
Asynchronously changes the active lease ID.
release()  : ReleasedObjectInfo
Releases the active lease, allowing another client to acquire one immediately.
releaseAsync()  : PromiseInterface
Asynchronously releases the active lease.
renew()  : BlobLease
Renews the active lease.
renewAsync()  : PromiseInterface
Asynchronously renews the active lease.
conditionHeaders()  : array<string, string>
createLeaseId()  : string
updateLeaseIdFromResponse()  : BlobLease

Constants

Properties

Methods

__construct()

public __construct(UriInterface $uri[, StorageSharedKeyCredential|TokenCredential|null $credential = null ][, string|null $leaseId = null ][, bool $container = false ][, BlobLeaseClientOptions $options = new BlobLeaseClientOptions() ]) : mixed
Parameters
$uri : UriInterface
$credential : StorageSharedKeyCredential|TokenCredential|null = null
$leaseId : string|null = null
$container : bool = false
$options : BlobLeaseClientOptions = new BlobLeaseClientOptions()

createLeaseId()

private static createLeaseId() : string
Return values
string

updateLeaseIdFromResponse()

private updateLeaseIdFromResponse(ResponseInterface $response) : BlobLease
Parameters
$response : ResponseInterface
Return values
BlobLease
On this page

Search results