/* 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'; /** * ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680. * @export * @interface IoK8sApiCoreV1ResourceHealth */ export interface IoK8sApiCoreV1ResourceHealth { /** * Health of the resource. can be one of: * - Healthy: operates as normal * - Unhealthy: reported unhealthy. We consider this a temporary health issue * since we do not have a mechanism today to distinguish * temporary and permanent issues. * - Unknown: The status cannot be determined. * For example, Device Plugin got unregistered and hasn't been re-registered since. * * In future we may want to introduce the PermanentlyUnhealthy Status. * @type {string} * @memberof IoK8sApiCoreV1ResourceHealth */ health?: string; /** * ResourceID is the unique identifier of the resource. See the ResourceID type for more information. * @type {string} * @memberof IoK8sApiCoreV1ResourceHealth */ resourceID: string; } export function IoK8sApiCoreV1ResourceHealthFromJSON(json: any): IoK8sApiCoreV1ResourceHealth { return IoK8sApiCoreV1ResourceHealthFromJSONTyped(json, false); } export function IoK8sApiCoreV1ResourceHealthFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1ResourceHealth { if (json === undefined || json === null) { return json; } return { health: !exists(json, 'health') ? undefined : json['health'], resourceID: json['resourceID'], }; } export function IoK8sApiCoreV1ResourceHealthToJSON( value?: IoK8sApiCoreV1ResourceHealth | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { health: value.health, resourceID: value.resourceID, }; }