/* 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 './'; /** * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. * @export * @interface V1NodeSelector */ export interface V1NodeSelector { /** * Required. A list of node selector terms. The terms are ORed. * @type {Array} * @memberof V1NodeSelector */ nodeSelectorTerms: Array; } export function V1NodeSelectorFromJSON(json: any): V1NodeSelector { return V1NodeSelectorFromJSONTyped(json, false); } export function V1NodeSelectorFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1NodeSelector { if (json === undefined || json === null) { return json; } return { nodeSelectorTerms: (json['nodeSelectorTerms'] as Array).map(V1NodeSelectorTermFromJSON), }; } export function V1NodeSelectorToJSON(value?: V1NodeSelector | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { nodeSelectorTerms: (value.nodeSelectorTerms as Array).map(V1NodeSelectorTermToJSON), }; }