/* 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'; /** * Condition defines conditions * @export * @interface V1beta1Condition */ export interface V1beta1Condition { /** * * @type {string} * @memberof V1beta1Condition */ message?: string; /** * * @type {string} * @memberof V1beta1Condition */ reason?: string; /** * * @type {string} * @memberof V1beta1Condition */ status: string; /** * * @type {string} * @memberof V1beta1Condition */ type: string; } export function V1beta1ConditionFromJSON(json: any): V1beta1Condition { return V1beta1ConditionFromJSONTyped(json, false); } export function V1beta1ConditionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1Condition { 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 V1beta1ConditionToJSON(value?: V1beta1Condition | 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, }; }