UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

39 lines 1.23 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 { V1PodAffinityTermFromJSON, V1PodAffinityTermToJSON } from './'; export function V1WeightedPodAffinityTermFromJSON(json) { return V1WeightedPodAffinityTermFromJSONTyped(json, false); } export function V1WeightedPodAffinityTermFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { podAffinityTerm: V1PodAffinityTermFromJSON(json['podAffinityTerm']), weight: json['weight'], }; } export function V1WeightedPodAffinityTermToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { podAffinityTerm: V1PodAffinityTermToJSON(value.podAffinityTerm), weight: value.weight, }; } //# sourceMappingURL=V1WeightedPodAffinityTerm.js.map