/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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'; /** * diag288 watchdog device. * @export * @interface V1Diag288Watchdog */ export interface V1Diag288Watchdog { /** * The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset. * @type {string} * @memberof V1Diag288Watchdog */ action?: string; } export function V1Diag288WatchdogFromJSON(json: any): V1Diag288Watchdog { return V1Diag288WatchdogFromJSONTyped(json, false); } export function V1Diag288WatchdogFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1Diag288Watchdog { if (json === undefined || json === null) { return json; } return { action: !exists(json, 'action') ? undefined : json['action'], }; } export function V1Diag288WatchdogToJSON(value?: V1Diag288Watchdog | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { action: value.action, }; }