UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

52 lines 1.93 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 { IoK8sApiResourceV1beta2DeviceTolerationFromJSON, IoK8sApiResourceV1beta2DeviceTolerationToJSON, } from './'; export function IoK8sApiResourceV1beta2DeviceRequestAllocationResultFromJSON(json) { return IoK8sApiResourceV1beta2DeviceRequestAllocationResultFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2DeviceRequestAllocationResultFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { adminAccess: !exists(json, 'adminAccess') ? undefined : json['adminAccess'], device: json['device'], driver: json['driver'], pool: json['pool'], request: json['request'], tolerations: !exists(json, 'tolerations') ? undefined : json['tolerations'].map(IoK8sApiResourceV1beta2DeviceTolerationFromJSON), }; } export function IoK8sApiResourceV1beta2DeviceRequestAllocationResultToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { adminAccess: value.adminAccess, device: value.device, driver: value.driver, pool: value.pool, request: value.request, tolerations: value.tolerations === undefined ? undefined : value.tolerations.map(IoK8sApiResourceV1beta2DeviceTolerationToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta2DeviceRequestAllocationResult.js.map