/* 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'; /** * KubeVirtCondition represents a condition of a KubeVirt deployment * @export * @interface V1KubeVirtCondition */ export interface V1KubeVirtCondition { /** * * @type {string} * @memberof V1KubeVirtCondition */ message?: string; /** * * @type {string} * @memberof V1KubeVirtCondition */ reason?: string; /** * * @type {string} * @memberof V1KubeVirtCondition */ status: string; /** * * @type {string} * @memberof V1KubeVirtCondition */ type: string; } export function V1KubeVirtConditionFromJSON(json: any): V1KubeVirtCondition { return V1KubeVirtConditionFromJSONTyped(json, false); } export function V1KubeVirtConditionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1KubeVirtCondition { if (json === undefined || json === null) { return json; } return { message: !exists(json, 'message') ? undefined : json['message'], reason: !exists(json, 'reason') ? undefined : json['reason'], status: json['status'], type: json['type'], }; } export function V1KubeVirtConditionToJSON(value?: V1KubeVirtCondition | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { message: value.message, reason: value.reason, status: value.status, type: value.type, }; }