UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.73 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 { IoK8sApiCoreV1NodeSelectorFromJSON, IoK8sApiCoreV1NodeSelectorToJSON, IoK8sApiResourceV1alpha3DeviceAllocationResultFromJSON, IoK8sApiResourceV1alpha3DeviceAllocationResultToJSON, } from './'; export function IoK8sApiResourceV1alpha3AllocationResultFromJSON(json) { return IoK8sApiResourceV1alpha3AllocationResultFromJSONTyped(json, false); } export function IoK8sApiResourceV1alpha3AllocationResultFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { devices: !exists(json, 'devices') ? undefined : IoK8sApiResourceV1alpha3DeviceAllocationResultFromJSON(json['devices']), nodeSelector: !exists(json, 'nodeSelector') ? undefined : IoK8sApiCoreV1NodeSelectorFromJSON(json['nodeSelector']), }; } export function IoK8sApiResourceV1alpha3AllocationResultToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { devices: IoK8sApiResourceV1alpha3DeviceAllocationResultToJSON(value.devices), nodeSelector: IoK8sApiCoreV1NodeSelectorToJSON(value.nodeSelector), }; } //# sourceMappingURL=IoK8sApiResourceV1alpha3AllocationResult.js.map