UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

50 lines 1.85 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 { IoK8sApiStorageV1VolumeErrorFromJSON, IoK8sApiStorageV1VolumeErrorToJSON, } from './'; export function IoK8sApiStorageV1VolumeAttachmentStatusFromJSON(json) { return IoK8sApiStorageV1VolumeAttachmentStatusFromJSONTyped(json, false); } export function IoK8sApiStorageV1VolumeAttachmentStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { attachError: !exists(json, 'attachError') ? undefined : IoK8sApiStorageV1VolumeErrorFromJSON(json['attachError']), attached: json['attached'], attachmentMetadata: !exists(json, 'attachmentMetadata') ? undefined : json['attachmentMetadata'], detachError: !exists(json, 'detachError') ? undefined : IoK8sApiStorageV1VolumeErrorFromJSON(json['detachError']), }; } export function IoK8sApiStorageV1VolumeAttachmentStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { attachError: IoK8sApiStorageV1VolumeErrorToJSON(value.attachError), attached: value.attached, attachmentMetadata: value.attachmentMetadata, detachError: IoK8sApiStorageV1VolumeErrorToJSON(value.detachError), }; } //# sourceMappingURL=IoK8sApiStorageV1VolumeAttachmentStatus.js.map