UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

54 lines 2.28 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 { IoK8sApiResourceV1beta1DeviceClaimConfigurationFromJSON, IoK8sApiResourceV1beta1DeviceClaimConfigurationToJSON, IoK8sApiResourceV1beta1DeviceConstraintFromJSON, IoK8sApiResourceV1beta1DeviceConstraintToJSON, IoK8sApiResourceV1beta1DeviceRequestFromJSON, IoK8sApiResourceV1beta1DeviceRequestToJSON, } from './'; export function IoK8sApiResourceV1beta1DeviceClaimFromJSON(json) { return IoK8sApiResourceV1beta1DeviceClaimFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta1DeviceClaimFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { config: !exists(json, 'config') ? undefined : json['config'].map(IoK8sApiResourceV1beta1DeviceClaimConfigurationFromJSON), constraints: !exists(json, 'constraints') ? undefined : json['constraints'].map(IoK8sApiResourceV1beta1DeviceConstraintFromJSON), requests: !exists(json, 'requests') ? undefined : json['requests'].map(IoK8sApiResourceV1beta1DeviceRequestFromJSON), }; } export function IoK8sApiResourceV1beta1DeviceClaimToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { config: value.config === undefined ? undefined : value.config.map(IoK8sApiResourceV1beta1DeviceClaimConfigurationToJSON), constraints: value.constraints === undefined ? undefined : value.constraints.map(IoK8sApiResourceV1beta1DeviceConstraintToJSON), requests: value.requests === undefined ? undefined : value.requests.map(IoK8sApiResourceV1beta1DeviceRequestToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta1DeviceClaim.js.map