DataLakeLeaseClient class

Constructors

DataLakeLeaseClient(BlobLeaseClient)

Properties

leaseId
url

Methods

acquireLease(number, LeaseOperationOptions)
breakLease(number, LeaseOperationOptions)
changeLease(string, LeaseOperationOptions)
releaseLease(LeaseOperationOptions)
renewLease(LeaseOperationOptions)

Constructor Details

DataLakeLeaseClient(BlobLeaseClient)

new DataLakeLeaseClient(client: BlobLeaseClient)

Parameters

Property Details

leaseId

string leaseId

Property Value

string

url

string url

Property Value

string

Method Details

acquireLease(number, LeaseOperationOptions)

function acquireLease(duration: number, options?: LeaseOperationOptions): Promise<LeaseOperationResponse>

Parameters

duration

number

Returns

breakLease(number, LeaseOperationOptions)

function breakLease(breakPeriod: number, options?: LeaseOperationOptions): Promise<LeaseOperationResponse>

Parameters

breakPeriod

number

Returns

changeLease(string, LeaseOperationOptions)

function changeLease(proposedLeaseId: string, options?: LeaseOperationOptions): Promise<LeaseOperationResponse>

Parameters

proposedLeaseId

string

Returns

releaseLease(LeaseOperationOptions)

function releaseLease(options?: LeaseOperationOptions): Promise<LeaseOperationResponse>

Parameters

Returns

renewLease(LeaseOperationOptions)

function renewLease(options?: LeaseOperationOptions): Promise<Lease>

Parameters

Returns

Promise<Lease>