Creates an instance of ShareLeaseClient.
The client to make the lease operation requests.
Initial proposed lease id.
Gets the lease Id.
Gets the url.
Establishes and manages a lock on a file, share or share snapshot for write and delete operations.
Specifies the duration of lease in seconds. For file, the only allowed value is -1 for a lease that never expires. For share, must be -1 or between 15 to 60.
Options for the lease management operation.
Response data for acquire lease operation.
To force end the lease.
Options for the lease management operation.
Response data for break lease operation.
To change the ID of an existing lease.
the proposed new lease Id.
Options for the lease management operation.
Response data for change lease operation.
To free the lease if it is no longer needed so that another client may immediately acquire a lease.
Options for the lease management operation.
Response data for release lease operation.
To renew the lease. Only available for lease on share or share snapshot. Note that the lease may be renewed even if it has expired as long as the share has not been leased again since the expiration of that lease. When you renew a lease, the lease duration clock resets.
Options for the lease management operation.
Response data for renew lease operation.
Generated using TypeDoc
A client that manages leases for a ShareFileClient or ShareClient.
https://docs.microsoft.com/rest/api/storageservices/lease-file and
https://docs.microsoft.com/rest/api/storageservices/lease-share