UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.67 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 { IoK8sApiResourceV1beta2OpaqueDeviceConfigurationFromJSON, IoK8sApiResourceV1beta2OpaqueDeviceConfigurationToJSON, } from './'; export function IoK8sApiResourceV1beta2DeviceAllocationConfigurationFromJSON(json) { return IoK8sApiResourceV1beta2DeviceAllocationConfigurationFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2DeviceAllocationConfigurationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { opaque: !exists(json, 'opaque') ? undefined : IoK8sApiResourceV1beta2OpaqueDeviceConfigurationFromJSON(json['opaque']), requests: !exists(json, 'requests') ? undefined : json['requests'], source: json['source'], }; } export function IoK8sApiResourceV1beta2DeviceAllocationConfigurationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { opaque: IoK8sApiResourceV1beta2OpaqueDeviceConfigurationToJSON(value.opaque), requests: value.requests, source: value.source, }; } //# sourceMappingURL=IoK8sApiResourceV1beta2DeviceAllocationConfiguration.js.map