Udostępnij za pośrednictwem


DataLakeLeaseClient class

Konstruktory

DataLakeLeaseClient(BlobLeaseClient)

Właściwości

leaseId
url

Metody

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

Szczegóły konstruktora

DataLakeLeaseClient(BlobLeaseClient)

new DataLakeLeaseClient(client: BlobLeaseClient)

Parametry

Szczegóły właściwości

leaseId

string leaseId

Wartość właściwości

string

url

string url

Wartość właściwości

string

Szczegóły metody

acquireLease(number, LeaseOperationOptions)

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

Parametry

duration

number

Zwraca

breakLease(number, LeaseOperationOptions)

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

Parametry

breakPeriod

number

Zwraca

changeLease(string, LeaseOperationOptions)

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

Parametry

proposedLeaseId

string

Zwraca

releaseLease(LeaseOperationOptions)

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

Parametry

Zwraca

renewLease(LeaseOperationOptions)

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

Parametry

Zwraca

Promise<Lease>