UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

40 lines 1.39 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 { IoK8sApiResourceV1beta2DeviceClaimFromJSON, IoK8sApiResourceV1beta2DeviceClaimToJSON, } from './'; export function IoK8sApiResourceV1beta2ResourceClaimSpecFromJSON(json) { return IoK8sApiResourceV1beta2ResourceClaimSpecFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2ResourceClaimSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { devices: !exists(json, 'devices') ? undefined : IoK8sApiResourceV1beta2DeviceClaimFromJSON(json['devices']), }; } export function IoK8sApiResourceV1beta2ResourceClaimSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { devices: IoK8sApiResourceV1beta2DeviceClaimToJSON(value.devices), }; } //# sourceMappingURL=IoK8sApiResourceV1beta2ResourceClaimSpec.js.map