kubernetes_asyncio.client.models.v1_lease_spec module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_lease_spec.V1LeaseSpec(acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, preferred_holder=None, renew_time=None, strategy=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property acquire_time
Gets the acquire_time of this V1LeaseSpec. # noqa: E501
acquireTime is a time when the current lease was acquired. # noqa: E501
- Returns:
The acquire_time of this V1LeaseSpec. # noqa: E501
- Return type:
datetime
- attribute_map = {'acquire_time': 'acquireTime', 'holder_identity': 'holderIdentity', 'lease_duration_seconds': 'leaseDurationSeconds', 'lease_transitions': 'leaseTransitions', 'preferred_holder': 'preferredHolder', 'renew_time': 'renewTime', 'strategy': 'strategy'}
- property holder_identity
Gets the holder_identity of this V1LeaseSpec. # noqa: E501
holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field. # noqa: E501
- Returns:
The holder_identity of this V1LeaseSpec. # noqa: E501
- Return type:
str
- property lease_duration_seconds
Gets the lease_duration_seconds of this V1LeaseSpec. # noqa: E501
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime. # noqa: E501
- Returns:
The lease_duration_seconds of this V1LeaseSpec. # noqa: E501
- Return type:
int
- property lease_transitions
Gets the lease_transitions of this V1LeaseSpec. # noqa: E501
leaseTransitions is the number of transitions of a lease between holders. # noqa: E501
- Returns:
The lease_transitions of this V1LeaseSpec. # noqa: E501
- Return type:
int
- openapi_types = {'acquire_time': 'datetime', 'holder_identity': 'str', 'lease_duration_seconds': 'int', 'lease_transitions': 'int', 'preferred_holder': 'str', 'renew_time': 'datetime', 'strategy': 'str'}
- property preferred_holder
Gets the preferred_holder of this V1LeaseSpec. # noqa: E501
PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set. # noqa: E501
- Returns:
The preferred_holder of this V1LeaseSpec. # noqa: E501
- Return type:
str
- property renew_time
Gets the renew_time of this V1LeaseSpec. # noqa: E501
renewTime is a time when the current holder of a lease has last updated the lease. # noqa: E501
- Returns:
The renew_time of this V1LeaseSpec. # noqa: E501
- Return type:
datetime
- property strategy
Gets the strategy of this V1LeaseSpec. # noqa: E501
Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled. # noqa: E501
- Returns:
The strategy of this V1LeaseSpec. # noqa: E501
- Return type:
str
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model