/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * 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'; /** * VirtualMachinePoolSelectionPolicy defines the priority in which VM instances are selected for scale-in * @export * @interface V1alpha1VirtualMachinePoolSelectionPolicy */ export interface V1alpha1VirtualMachinePoolSelectionPolicy { /** * BasePolicy is a catch-all policy [Random|DescendingOrder] * @type {string} * @memberof V1alpha1VirtualMachinePoolSelectionPolicy */ basePolicy?: string; } export function V1alpha1VirtualMachinePoolSelectionPolicyFromJSON( json: any, ): V1alpha1VirtualMachinePoolSelectionPolicy { return V1alpha1VirtualMachinePoolSelectionPolicyFromJSONTyped(json, false); } export function V1alpha1VirtualMachinePoolSelectionPolicyFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1alpha1VirtualMachinePoolSelectionPolicy { if (json === undefined || json === null) { return json; } return { basePolicy: !exists(json, 'basePolicy') ? undefined : json['basePolicy'], }; } export function V1alpha1VirtualMachinePoolSelectionPolicyToJSON( value?: V1alpha1VirtualMachinePoolSelectionPolicy | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { basePolicy: value.basePolicy, }; }