kubernetes_asyncio.client.models.v1alpha2_lease_candidate_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.v1alpha2_lease_candidate_spec.V1alpha2LeaseCandidateSpec(binary_version=None, emulation_version=None, lease_name=None, ping_time=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.
- attribute_map = {'binary_version': 'binaryVersion', 'emulation_version': 'emulationVersion', 'lease_name': 'leaseName', 'ping_time': 'pingTime', 'renew_time': 'renewTime', 'strategy': 'strategy'}
- property binary_version
Gets the binary_version of this V1alpha2LeaseCandidateSpec. # noqa: E501
BinaryVersion is the binary version. It must be in a semver format without leading v. This field is required. # noqa: E501
- Returns:
The binary_version of this V1alpha2LeaseCandidateSpec. # noqa: E501
- Return type:
str
- property emulation_version
Gets the emulation_version of this V1alpha2LeaseCandidateSpec. # noqa: E501
EmulationVersion is the emulation version. It must be in a semver format without leading v. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is “OldestEmulationVersion” # noqa: E501
- Returns:
The emulation_version of this V1alpha2LeaseCandidateSpec. # noqa: E501
- Return type:
str
- property lease_name
Gets the lease_name of this V1alpha2LeaseCandidateSpec. # noqa: E501
LeaseName is the name of the lease for which this candidate is contending. This field is immutable. # noqa: E501
- Returns:
The lease_name of this V1alpha2LeaseCandidateSpec. # noqa: E501
- Return type:
str
- openapi_types = {'binary_version': 'str', 'emulation_version': 'str', 'lease_name': 'str', 'ping_time': 'datetime', 'renew_time': 'datetime', 'strategy': 'str'}
- property ping_time
Gets the ping_time of this V1alpha2LeaseCandidateSpec. # noqa: E501
PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime. # noqa: E501
- Returns:
The ping_time of this V1alpha2LeaseCandidateSpec. # noqa: E501
- Return type:
datetime
- property renew_time
Gets the renew_time of this V1alpha2LeaseCandidateSpec. # noqa: E501
RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates. # noqa: E501
- Returns:
The renew_time of this V1alpha2LeaseCandidateSpec. # noqa: E501
- Return type:
datetime
- property strategy
Gets the strategy of this V1alpha2LeaseCandidateSpec. # noqa: E501
Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. # noqa: E501
- Returns:
The strategy of this V1alpha2LeaseCandidateSpec. # 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