UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

52 lines 1.8 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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 { V1VirtualMachineInstanceFileSystemDiskFromJSON, V1VirtualMachineInstanceFileSystemDiskToJSON, } from './'; export function V1VirtualMachineInstanceFileSystemFromJSON(json) { return V1VirtualMachineInstanceFileSystemFromJSONTyped(json, false); } export function V1VirtualMachineInstanceFileSystemFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { disk: !exists(json, 'disk') ? undefined : json['disk'].map(V1VirtualMachineInstanceFileSystemDiskFromJSON), diskName: json['diskName'], fileSystemType: json['fileSystemType'], mountPoint: json['mountPoint'], totalBytes: json['totalBytes'], usedBytes: json['usedBytes'], }; } export function V1VirtualMachineInstanceFileSystemToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { disk: value.disk === undefined ? undefined : value.disk.map(V1VirtualMachineInstanceFileSystemDiskToJSON), diskName: value.diskName, fileSystemType: value.fileSystemType, mountPoint: value.mountPoint, totalBytes: value.totalBytes, usedBytes: value.usedBytes, }; } //# sourceMappingURL=V1VirtualMachineInstanceFileSystem.js.map