LeaseContainerRequest Class

Lease Container request schema.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.storage._serialization.Model
LeaseContainerRequest

Constructor

LeaseContainerRequest(*, action: str | _models.LeaseContainerRequestEnum, 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
str

Identifies the lease. Can be specified in any valid GUID string format.

break_period
int

Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.

lease_duration
int

Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.

proposed_lease_id
str

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
str

Identifies the lease. Can be specified in any valid GUID string format.

break_period
int

Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.

lease_duration
int

Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.

proposed_lease_id
str

Optional for acquire, required for change. Proposed lease ID, in a GUID string format.