/* 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 { V1PodAffinityTerm, V1PodAffinityTermFromJSON, V1PodAffinityTermToJSON } from './'; /** * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) * @export * @interface V1WeightedPodAffinityTerm */ export interface V1WeightedPodAffinityTerm { /** * * @type {V1PodAffinityTerm} * @memberof V1WeightedPodAffinityTerm */ podAffinityTerm: V1PodAffinityTerm; /** * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. * @type {number} * @memberof V1WeightedPodAffinityTerm */ weight: number; } export function V1WeightedPodAffinityTermFromJSON(json: any): V1WeightedPodAffinityTerm { return V1WeightedPodAffinityTermFromJSONTyped(json, false); } export function V1WeightedPodAffinityTermFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1WeightedPodAffinityTerm { if (json === undefined || json === null) { return json; } return { podAffinityTerm: V1PodAffinityTermFromJSON(json['podAffinityTerm']), weight: json['weight'], }; } export function V1WeightedPodAffinityTermToJSON(value?: V1WeightedPodAffinityTerm | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { podAffinityTerm: V1PodAffinityTermToJSON(value.podAffinityTerm), weight: value.weight, }; }