LeaseContainerRequest Class

Lease Container request schema.

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

Inheritance
LeaseContainerRequest

Constructor

LeaseContainerRequest(*, action: typing.Union[str, _ForwardRef('LeaseContainerRequestAction')], lease_id: typing.Union[str, NoneType] = None, break_period: typing.Union[int, NoneType] = None, lease_duration: typing.Union[int, NoneType] = None, proposed_lease_id: typing.Union[str, NoneType] = None, **kwargs)

Parameters

action
str or LeaseContainerRequestAction
Required

Required. Specifies the lease action. Can be one of the available actions. Possible values include: "Acquire", "Renew", "Change", "Release", "Break".

lease_id
str
Required

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

break_period
int
Required

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

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
Required

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