@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
44 lines • 1.53 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 { V1beta1VirtualMachineExportLinkFromJSON, V1beta1VirtualMachineExportLinkToJSON, } from './';
export function V1beta1VirtualMachineExportLinksFromJSON(json) {
return V1beta1VirtualMachineExportLinksFromJSONTyped(json, false);
}
export function V1beta1VirtualMachineExportLinksFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
external: !exists(json, 'external')
? undefined
: V1beta1VirtualMachineExportLinkFromJSON(json['external']),
internal: !exists(json, 'internal')
? undefined
: V1beta1VirtualMachineExportLinkFromJSON(json['internal']),
};
}
export function V1beta1VirtualMachineExportLinksToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
external: V1beta1VirtualMachineExportLinkToJSON(value.external),
internal: V1beta1VirtualMachineExportLinkToJSON(value.internal),
};
}
//# sourceMappingURL=V1beta1VirtualMachineExportLinks.js.map