/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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'; /** * DataImportCronCondition represents the state of a data import cron condition * @export * @interface V1beta1DataImportCronCondition */ export interface V1beta1DataImportCronCondition { /** * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. * @type {string} * @memberof V1beta1DataImportCronCondition */ lastHeartbeatTime?: string; /** * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. * @type {string} * @memberof V1beta1DataImportCronCondition */ lastTransitionTime?: string; /** * * @type {string} * @memberof V1beta1DataImportCronCondition */ message?: string; /** * * @type {string} * @memberof V1beta1DataImportCronCondition */ reason?: string; /** * * @type {string} * @memberof V1beta1DataImportCronCondition */ status: string; /** * * @type {string} * @memberof V1beta1DataImportCronCondition */ type: string; } export function V1beta1DataImportCronConditionFromJSON(json: any): V1beta1DataImportCronCondition { return V1beta1DataImportCronConditionFromJSONTyped(json, false); } export function V1beta1DataImportCronConditionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1DataImportCronCondition { if (json === undefined || json === null) { return json; } return { lastHeartbeatTime: !exists(json, 'lastHeartbeatTime') ? undefined : json['lastHeartbeatTime'], lastTransitionTime: !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], message: !exists(json, 'message') ? undefined : json['message'], reason: !exists(json, 'reason') ? undefined : json['reason'], status: json['status'], type: json['type'], }; } export function V1beta1DataImportCronConditionToJSON( value?: V1beta1DataImportCronCondition | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { lastHeartbeatTime: value.lastHeartbeatTime === undefined ? undefined : value.lastHeartbeatTime, lastTransitionTime: value.lastTransitionTime === undefined ? undefined : value.lastTransitionTime, message: value.message, reason: value.reason, status: value.status, type: value.type, }; }