/* 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 { V1NodeSelectorTerm, V1NodeSelectorTermFromJSON, V1NodeSelectorTermToJSON } from './'; /** * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). * @export * @interface V1PreferredSchedulingTerm */ export interface V1PreferredSchedulingTerm { /** * * @type {V1NodeSelectorTerm} * @memberof V1PreferredSchedulingTerm */ preference: V1NodeSelectorTerm; /** * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. * @type {number} * @memberof V1PreferredSchedulingTerm */ weight: number; } export function V1PreferredSchedulingTermFromJSON(json: any): V1PreferredSchedulingTerm { return V1PreferredSchedulingTermFromJSONTyped(json, false); } export function V1PreferredSchedulingTermFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1PreferredSchedulingTerm { if (json === undefined || json === null) { return json; } return { preference: V1NodeSelectorTermFromJSON(json['preference']), weight: json['weight'], }; } export function V1PreferredSchedulingTermToJSON(value?: V1PreferredSchedulingTerm | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { preference: V1NodeSelectorTermToJSON(value.preference), weight: value.weight, }; }