Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small edits to lease client docs #7550

Merged
merged 15 commits into from
Oct 4, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/storage/azure-storage-blob/azure/storage/blob/lease.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def acquire(self, lease_duration=-1, timeout=None, **kwargs):
"""Requests a new lease.

If the container does not have an active lease, the Blob service creates a
lease on the container and returns a new lease ID.
lease on the container. The lease id is available in the ``id`` property
of this instance.

:param int lease_duration:
Specifies the duration of the lease, in seconds, or negative one
Expand Down Expand Up @@ -194,9 +195,8 @@ def release(self, timeout=None, **kwargs):
# type: (Optional[int], Any) -> None
"""Release the lease.

The lease may be released if the client lease id specified matches
that associated with the container or blob. Releasing the lease allows another client
to immediately acquire the lease for the container or blob as soon as the release is complete.
Releasing the lease allows another client to immediately acquire the lease
for the container or blob as soon as the release is complete.

:param datetime if_modified_since:
A DateTime value. Azure expects the date value passed in to be UTC.
Expand Down