UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.8 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 { V1beta1SourceSpecFromJSON, V1beta1SourceSpecToJSON, V1beta1VolumeBackupFromJSON, V1beta1VolumeBackupToJSON, } from './'; export function V1beta1VirtualMachineSnapshotContentSpecFromJSON(json) { return V1beta1VirtualMachineSnapshotContentSpecFromJSONTyped(json, false); } export function V1beta1VirtualMachineSnapshotContentSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { source: V1beta1SourceSpecFromJSON(json['source']), virtualMachineSnapshotName: !exists(json, 'virtualMachineSnapshotName') ? undefined : json['virtualMachineSnapshotName'], volumeBackups: !exists(json, 'volumeBackups') ? undefined : json['volumeBackups'].map(V1beta1VolumeBackupFromJSON), }; } export function V1beta1VirtualMachineSnapshotContentSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { source: V1beta1SourceSpecToJSON(value.source), virtualMachineSnapshotName: value.virtualMachineSnapshotName, volumeBackups: value.volumeBackups === undefined ? undefined : value.volumeBackups.map(V1beta1VolumeBackupToJSON), }; } //# sourceMappingURL=V1beta1VirtualMachineSnapshotContentSpec.js.map