@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
44 lines • 1.47 kB
JavaScript
/* 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 { V1beta1VirtualMachineExportVolumeFormatFromJSON, V1beta1VirtualMachineExportVolumeFormatToJSON, } from './';
export function V1beta1VirtualMachineExportVolumeFromJSON(json) {
return V1beta1VirtualMachineExportVolumeFromJSONTyped(json, false);
}
export function V1beta1VirtualMachineExportVolumeFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
formats: !exists(json, 'formats')
? undefined
: json['formats'].map(V1beta1VirtualMachineExportVolumeFormatFromJSON),
name: json['name'],
};
}
export function V1beta1VirtualMachineExportVolumeToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
formats: value.formats === undefined
? undefined
: value.formats.map(V1beta1VirtualMachineExportVolumeFormatToJSON),
name: value.name,
};
}
//# sourceMappingURL=V1beta1VirtualMachineExportVolume.js.map