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 { IoK8sApiResourceV1beta2AllocatedDeviceStatusFromJSON, IoK8sApiResourceV1beta2AllocatedDeviceStatusToJSON, IoK8sApiResourceV1beta2AllocationResultFromJSON, IoK8sApiResourceV1beta2AllocationResultToJSON, IoK8sApiResourceV1beta2ResourceClaimConsumerReferenceFromJSON, IoK8sApiResourceV1beta2ResourceClaimConsumerReferenceToJSON, } from './'; export function IoK8sApiResourceV1beta2ResourceClaimStatusFromJSON(json) { return IoK8sApiResourceV1beta2ResourceClaimStatusFromJSONTyped(json, false); } export function IoK8sApiResourceV1beta2ResourceClaimStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { allocation: !exists(json, 'allocation') ? undefined : IoK8sApiResourceV1beta2AllocationResultFromJSON(json['allocation']), devices: !exists(json, 'devices') ? undefined : json['devices'].map(IoK8sApiResourceV1beta2AllocatedDeviceStatusFromJSON), reservedFor: !exists(json, 'reservedFor') ? undefined : json['reservedFor'].map(IoK8sApiResourceV1beta2ResourceClaimConsumerReferenceFromJSON), }; } export function IoK8sApiResourceV1beta2ResourceClaimStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { allocation: IoK8sApiResourceV1beta2AllocationResultToJSON(value.allocation), devices: value.devices === undefined ? undefined : value.devices.map(IoK8sApiResourceV1beta2AllocatedDeviceStatusToJSON), reservedFor: value.reservedFor === undefined ? undefined : value.reservedFor.map(IoK8sApiResourceV1beta2ResourceClaimConsumerReferenceToJSON), }; } //# sourceMappingURL=IoK8sApiResourceV1beta2ResourceClaimStatus.js.map