/* tslint:disable */ /* eslint-disable */ /** * 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. */ import { exists } from '../runtime'; /** * EndpointConditions represents the current condition of an endpoint. * @export * @interface IoK8sApiDiscoveryV1EndpointConditions */ export interface IoK8sApiDiscoveryV1EndpointConditions { /** * ready indicates that this endpoint is ready to receive traffic, according to whatever system is managing the endpoint. A nil value should be interpreted as "true". In general, an endpoint should be marked ready if it is serving and not terminating, though this can be overridden in some cases, such as when the associated Service has set the publishNotReadyAddresses flag. * @type {boolean} * @memberof IoK8sApiDiscoveryV1EndpointConditions */ ready?: boolean; /** * serving indicates that this endpoint is able to receive traffic, according to whatever system is managing the endpoint. For endpoints backed by pods, the EndpointSlice controller will mark the endpoint as serving if the pod's Ready condition is True. A nil value should be interpreted as "true". * @type {boolean} * @memberof IoK8sApiDiscoveryV1EndpointConditions */ serving?: boolean; /** * terminating indicates that this endpoint is terminating. A nil value should be interpreted as "false". * @type {boolean} * @memberof IoK8sApiDiscoveryV1EndpointConditions */ terminating?: boolean; } export function IoK8sApiDiscoveryV1EndpointConditionsFromJSON( json: any, ): IoK8sApiDiscoveryV1EndpointConditions { return IoK8sApiDiscoveryV1EndpointConditionsFromJSONTyped(json, false); } export function IoK8sApiDiscoveryV1EndpointConditionsFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiDiscoveryV1EndpointConditions { if (json === undefined || json === null) { return json; } return { ready: !exists(json, 'ready') ? undefined : json['ready'], serving: !exists(json, 'serving') ? undefined : json['serving'], terminating: !exists(json, 'terminating') ? undefined : json['terminating'], }; } export function IoK8sApiDiscoveryV1EndpointConditionsToJSON( value?: IoK8sApiDiscoveryV1EndpointConditions | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { ready: value.ready, serving: value.serving, terminating: value.terminating, }; }