UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.69 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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 { V1NodeAffinityFromJSON, V1NodeAffinityToJSON, V1PodAffinityFromJSON, V1PodAffinityToJSON, V1PodAntiAffinityFromJSON, V1PodAntiAffinityToJSON, } from './'; export function V1AffinityFromJSON(json) { return V1AffinityFromJSONTyped(json, false); } export function V1AffinityFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { nodeAffinity: !exists(json, 'nodeAffinity') ? undefined : V1NodeAffinityFromJSON(json['nodeAffinity']), podAffinity: !exists(json, 'podAffinity') ? undefined : V1PodAffinityFromJSON(json['podAffinity']), podAntiAffinity: !exists(json, 'podAntiAffinity') ? undefined : V1PodAntiAffinityFromJSON(json['podAntiAffinity']), }; } export function V1AffinityToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { nodeAffinity: V1NodeAffinityToJSON(value.nodeAffinity), podAffinity: V1PodAffinityToJSON(value.podAffinity), podAntiAffinity: V1PodAntiAffinityToJSON(value.podAntiAffinity), }; } //# sourceMappingURL=V1Affinity.js.map