UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

64 lines (63 loc) 2.72 kB
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * LeaseSpec is a specification of a Lease. * @export * @interface IoK8sApiCoordinationV1LeaseSpec */ export interface IoK8sApiCoordinationV1LeaseSpec { /** * MicroTime is version of Time with microsecond level precision. * @type {string} * @memberof IoK8sApiCoordinationV1LeaseSpec */ acquireTime?: string; /** * 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. * @type {string} * @memberof IoK8sApiCoordinationV1LeaseSpec */ holderIdentity?: string; /** * 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. * @type {number} * @memberof IoK8sApiCoordinationV1LeaseSpec */ leaseDurationSeconds?: number; /** * leaseTransitions is the number of transitions of a lease between holders. * @type {number} * @memberof IoK8sApiCoordinationV1LeaseSpec */ leaseTransitions?: number; /** * 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. * @type {string} * @memberof IoK8sApiCoordinationV1LeaseSpec */ preferredHolder?: string; /** * MicroTime is version of Time with microsecond level precision. * @type {string} * @memberof IoK8sApiCoordinationV1LeaseSpec */ renewTime?: string; /** * 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. * @type {string} * @memberof IoK8sApiCoordinationV1LeaseSpec */ strategy?: string; } export declare function IoK8sApiCoordinationV1LeaseSpecFromJSON(json: any): IoK8sApiCoordinationV1LeaseSpec; export declare function IoK8sApiCoordinationV1LeaseSpecFromJSONTyped(json: any, _ignoreDiscriminator: boolean): IoK8sApiCoordinationV1LeaseSpec; export declare function IoK8sApiCoordinationV1LeaseSpecToJSON(value?: IoK8sApiCoordinationV1LeaseSpec | null): any;