UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 2 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 { IoK8sApiResourceV1beta2DeviceAllocationConfigurationFromJSON, IoK8sApiResourceV1beta2DeviceAllocationConfigurationToJSON, IoK8sApiResourceV1beta2DeviceRequestAllocationResultFromJSON, IoK8sApiResourceV1beta2DeviceRequestAllocationResultToJSON, } from './'; export function IoK8sApiResourceV1beta2DeviceAllocationResultFromJSON(json) { return IoK8sApiResourceV1beta2DeviceAllocationResultFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2DeviceAllocationResultFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { config: !exists(json, 'config') ? undefined : json['config'].map(IoK8sApiResourceV1beta2DeviceAllocationConfigurationFromJSON), results: !exists(json, 'results') ? undefined : json['results'].map(IoK8sApiResourceV1beta2DeviceRequestAllocationResultFromJSON), }; } export function IoK8sApiResourceV1beta2DeviceAllocationResultToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { config: value.config === undefined ? undefined : value.config.map(IoK8sApiResourceV1beta2DeviceAllocationConfigurationToJSON), results: value.results === undefined ? undefined : value.results.map(IoK8sApiResourceV1beta2DeviceRequestAllocationResultToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta2DeviceAllocationResult.js.map