UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.78 kB
/* 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'; import { V1beta1DataVolumeFromJSON, V1beta1DataVolumeToJSON } from './'; export function V1beta1DataImportCronSpecFromJSON(json) { return V1beta1DataImportCronSpecFromJSONTyped(json, false); } export function V1beta1DataImportCronSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { garbageCollect: !exists(json, 'garbageCollect') ? undefined : json['garbageCollect'], importsToKeep: !exists(json, 'importsToKeep') ? undefined : json['importsToKeep'], managedDataSource: json['managedDataSource'], retentionPolicy: !exists(json, 'retentionPolicy') ? undefined : json['retentionPolicy'], schedule: json['schedule'], template: V1beta1DataVolumeFromJSON(json['template']), }; } export function V1beta1DataImportCronSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { garbageCollect: value.garbageCollect, importsToKeep: value.importsToKeep, managedDataSource: value.managedDataSource, retentionPolicy: value.retentionPolicy, schedule: value.schedule, template: V1beta1DataVolumeToJSON(value.template), }; } //# sourceMappingURL=V1beta1DataImportCronSpec.js.map