UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.58 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 } from './'; export function V1beta1VolumeSnapshotStatusFromJSON(json) { return V1beta1VolumeSnapshotStatusFromJSONTyped(json, false); } export function V1beta1VolumeSnapshotStatusFromJSONTyped(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'], volumeSnapshotName: json['volumeSnapshotName'], }; } export function V1beta1VolumeSnapshotStatusToJSON(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, volumeSnapshotName: value.volumeSnapshotName, }; } //# sourceMappingURL=V1beta1VolumeSnapshotStatus.js.map