@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
54 lines • 2.25 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 { V1FeatureAPICFromJSON, V1FeatureAPICToJSON, V1FeatureHypervFromJSON, V1FeatureHypervToJSON, V1FeatureKVMFromJSON, V1FeatureKVMToJSON, V1FeatureStateFromJSON, V1FeatureStateToJSON, V1HyperVPassthroughFromJSON, V1HyperVPassthroughToJSON, } from './';
export function V1FeaturesFromJSON(json) {
return V1FeaturesFromJSONTyped(json, false);
}
export function V1FeaturesFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
acpi: !exists(json, 'acpi') ? undefined : V1FeatureStateFromJSON(json['acpi']),
apic: !exists(json, 'apic') ? undefined : V1FeatureAPICFromJSON(json['apic']),
hyperv: !exists(json, 'hyperv') ? undefined : V1FeatureHypervFromJSON(json['hyperv']),
hypervPassthrough: !exists(json, 'hypervPassthrough')
? undefined
: V1HyperVPassthroughFromJSON(json['hypervPassthrough']),
kvm: !exists(json, 'kvm') ? undefined : V1FeatureKVMFromJSON(json['kvm']),
pvspinlock: !exists(json, 'pvspinlock')
? undefined
: V1FeatureStateFromJSON(json['pvspinlock']),
smm: !exists(json, 'smm') ? undefined : V1FeatureStateFromJSON(json['smm']),
};
}
export function V1FeaturesToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
acpi: V1FeatureStateToJSON(value.acpi),
apic: V1FeatureAPICToJSON(value.apic),
hyperv: V1FeatureHypervToJSON(value.hyperv),
hypervPassthrough: V1HyperVPassthroughToJSON(value.hypervPassthrough),
kvm: V1FeatureKVMToJSON(value.kvm),
pvspinlock: V1FeatureStateToJSON(value.pvspinlock),
smm: V1FeatureStateToJSON(value.smm),
};
}
//# sourceMappingURL=V1Features.js.map