LeaseContainerRequest Class
Lease Container request schema.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.storage._serialization.ModelLeaseContainerRequest
Constructor
LeaseContainerRequest(*, action: str | _models.LeaseContainerRequestAction, lease_id: str | None = None, break_period: int | None = None, lease_duration: int | None = None, proposed_lease_id: str | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
action
|
Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", and "Break". |
lease_id
|
Identifies the lease. Can be specified in any valid GUID string format. |
break_period
|
Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. |
lease_duration
|
Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. |
proposed_lease_id
|
Optional for acquire, required for change. Proposed lease ID, in a GUID string format. |
Variables
Name | Description |
---|---|
action
|
Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", and "Break". |
lease_id
|
Identifies the lease. Can be specified in any valid GUID string format. |
break_period
|
Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60. |
lease_duration
|
Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. |
proposed_lease_id
|
Optional for acquire, required for change. Proposed lease ID, in a GUID string format. |
Azure SDK for Python