UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

52 lines 2.32 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 { IoK8sApiResourceV1beta1AllocatedDeviceStatusFromJSON, IoK8sApiResourceV1beta1AllocatedDeviceStatusToJSON, IoK8sApiResourceV1beta1AllocationResultFromJSON, IoK8sApiResourceV1beta1AllocationResultToJSON, IoK8sApiResourceV1beta1ResourceClaimConsumerReferenceFromJSON, IoK8sApiResourceV1beta1ResourceClaimConsumerReferenceToJSON, } from './'; export function IoK8sApiResourceV1beta1ResourceClaimStatusFromJSON(json) { return IoK8sApiResourceV1beta1ResourceClaimStatusFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta1ResourceClaimStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { allocation: !exists(json, 'allocation') ? undefined : IoK8sApiResourceV1beta1AllocationResultFromJSON(json['allocation']), devices: !exists(json, 'devices') ? undefined : json['devices'].map(IoK8sApiResourceV1beta1AllocatedDeviceStatusFromJSON), reservedFor: !exists(json, 'reservedFor') ? undefined : json['reservedFor'].map(IoK8sApiResourceV1beta1ResourceClaimConsumerReferenceFromJSON), }; } export function IoK8sApiResourceV1beta1ResourceClaimStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { allocation: IoK8sApiResourceV1beta1AllocationResultToJSON(value.allocation), devices: value.devices === undefined ? undefined : value.devices.map(IoK8sApiResourceV1beta1AllocatedDeviceStatusToJSON), reservedFor: value.reservedFor === undefined ? undefined : value.reservedFor.map(IoK8sApiResourceV1beta1ResourceClaimConsumerReferenceToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta1ResourceClaimStatus.js.map