UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

50 lines 1.81 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 { V1beta1DataVolumeConditionFromJSON, V1beta1DataVolumeConditionToJSON, } from './'; export function V1beta1DataVolumeStatusFromJSON(json) { return V1beta1DataVolumeStatusFromJSONTyped(json, false); } export function V1beta1DataVolumeStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { claimName: !exists(json, 'claimName') ? undefined : json['claimName'], conditions: !exists(json, 'conditions') ? undefined : json['conditions'].map(V1beta1DataVolumeConditionFromJSON), phase: !exists(json, 'phase') ? undefined : json['phase'], progress: !exists(json, 'progress') ? undefined : json['progress'], restartCount: !exists(json, 'restartCount') ? undefined : json['restartCount'], }; } export function V1beta1DataVolumeStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { claimName: value.claimName, conditions: value.conditions === undefined ? undefined : value.conditions.map(V1beta1DataVolumeConditionToJSON), phase: value.phase, progress: value.progress, restartCount: value.restartCount, }; } //# sourceMappingURL=V1beta1DataVolumeStatus.js.map