UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

54 lines 2.39 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 { K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON, K8sIoApiCoreV1TypedLocalObjectReferenceToJSON, V1beta1VirtualMachineCloneTemplateFiltersFromJSON, V1beta1VirtualMachineCloneTemplateFiltersToJSON, } from './'; export function V1beta1VirtualMachineCloneSpecFromJSON(json) { return V1beta1VirtualMachineCloneSpecFromJSONTyped(json, false); } export function V1beta1VirtualMachineCloneSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { annotationFilters: !exists(json, 'annotationFilters') ? undefined : json['annotationFilters'], labelFilters: !exists(json, 'labelFilters') ? undefined : json['labelFilters'], newMacAddresses: !exists(json, 'newMacAddresses') ? undefined : json['newMacAddresses'], newSMBiosSerial: !exists(json, 'newSMBiosSerial') ? undefined : json['newSMBiosSerial'], source: K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['source']), target: !exists(json, 'target') ? undefined : K8sIoApiCoreV1TypedLocalObjectReferenceFromJSON(json['target']), template: !exists(json, 'template') ? undefined : V1beta1VirtualMachineCloneTemplateFiltersFromJSON(json['template']), }; } export function V1beta1VirtualMachineCloneSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { annotationFilters: value.annotationFilters, labelFilters: value.labelFilters, newMacAddresses: value.newMacAddresses, newSMBiosSerial: value.newSMBiosSerial, source: K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.source), target: K8sIoApiCoreV1TypedLocalObjectReferenceToJSON(value.target), template: V1beta1VirtualMachineCloneTemplateFiltersToJSON(value.template), }; } //# sourceMappingURL=V1beta1VirtualMachineCloneSpec.js.map