UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

40 lines 1.23 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 { V1beta1VirtualMachineFromJSON, V1beta1VirtualMachineToJSON, } from './'; export function V1beta1SourceSpecFromJSON(json) { return V1beta1SourceSpecFromJSONTyped(json, false); } export function V1beta1SourceSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { virtualMachine: !exists(json, 'virtualMachine') ? undefined : V1beta1VirtualMachineFromJSON(json['virtualMachine']), }; } export function V1beta1SourceSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { virtualMachine: V1beta1VirtualMachineToJSON(value.virtualMachine), }; } //# sourceMappingURL=V1beta1SourceSpec.js.map