UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

50 lines 1.94 kB
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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'; import { IoK8sApiResourceV1alpha3DeviceSelectorFromJSON, IoK8sApiResourceV1alpha3DeviceSelectorToJSON, } from './'; export function IoK8sApiResourceV1alpha3DeviceTaintSelectorFromJSON(json) { return IoK8sApiResourceV1alpha3DeviceTaintSelectorFromJSONTyped(json, false); } export function IoK8sApiResourceV1alpha3DeviceTaintSelectorFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { device: !exists(json, 'device') ? undefined : json['device'], deviceClassName: !exists(json, 'deviceClassName') ? undefined : json['deviceClassName'], driver: !exists(json, 'driver') ? undefined : json['driver'], pool: !exists(json, 'pool') ? undefined : json['pool'], selectors: !exists(json, 'selectors') ? undefined : json['selectors'].map(IoK8sApiResourceV1alpha3DeviceSelectorFromJSON), }; } export function IoK8sApiResourceV1alpha3DeviceTaintSelectorToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { device: value.device, deviceClassName: value.deviceClassName, driver: value.driver, pool: value.pool, selectors: value.selectors === undefined ? undefined : value.selectors.map(IoK8sApiResourceV1alpha3DeviceSelectorToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1alpha3DeviceTaintSelector.js.map