UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.97 kB
/* 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'; import { V1beta1ErrorFromJSON, V1beta1ErrorToJSON, V1beta1VolumeSnapshotStatusFromJSON, V1beta1VolumeSnapshotStatusToJSON, } from './'; export function V1beta1VirtualMachineSnapshotContentStatusFromJSON(json) { return V1beta1VirtualMachineSnapshotContentStatusFromJSONTyped(json, false); } export function V1beta1VirtualMachineSnapshotContentStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { creationTime: !exists(json, 'creationTime') ? undefined : json['creationTime'], error: !exists(json, 'error') ? undefined : V1beta1ErrorFromJSON(json['error']), readyToUse: !exists(json, 'readyToUse') ? undefined : json['readyToUse'], volumeSnapshotStatus: !exists(json, 'volumeSnapshotStatus') ? undefined : json['volumeSnapshotStatus'].map(V1beta1VolumeSnapshotStatusFromJSON), }; } export function V1beta1VirtualMachineSnapshotContentStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { creationTime: value.creationTime === undefined ? undefined : value.creationTime, error: V1beta1ErrorToJSON(value.error), readyToUse: value.readyToUse, volumeSnapshotStatus: value.volumeSnapshotStatus === undefined ? undefined : value.volumeSnapshotStatus.map(V1beta1VolumeSnapshotStatusToJSON), }; } //# sourceMappingURL=V1beta1VirtualMachineSnapshotContentStatus.js.map