LeaseProperties Class
DataLake Lease Properties.
- Inheritance
-
azure.storage.blob._models.LeasePropertiesLeaseProperties
Constructor
LeaseProperties(**kwargs: Any)
Variables
Name | Description |
---|---|
status
|
The lease status of the file. Possible values: locked|unlocked |
state
|
Lease state of the file. Possible values: available|leased|expired|breaking|broken |
duration
|
When a file is leased, specifies whether the lease is of infinite or fixed duration. |
Methods
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key, default=None)
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
Default value: None
|
has_key
has_key(k)
Parameters
Name | Description |
---|---|
k
Required
|
|
items
items()
keys
keys()
update
update(*args, **kwargs)
values
values()
Attributes
duration
When a blob is leased, specifies whether the lease is of infinite or fixed duration.
duration: str | None
state
available|leased|expired|breaking|broken
state: str
status
locked|unlocked
status: str
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python