@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
70 lines • 3.36 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 { V1FeatureSpinlocksFromJSON, V1FeatureSpinlocksToJSON, V1FeatureStateFromJSON, V1FeatureStateToJSON, V1FeatureVendorIDFromJSON, V1FeatureVendorIDToJSON, V1SyNICTimerFromJSON, V1SyNICTimerToJSON, } from './';
export function V1FeatureHypervFromJSON(json) {
return V1FeatureHypervFromJSONTyped(json, false);
}
export function V1FeatureHypervFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
evmcs: !exists(json, 'evmcs') ? undefined : V1FeatureStateFromJSON(json['evmcs']),
frequencies: !exists(json, 'frequencies')
? undefined
: V1FeatureStateFromJSON(json['frequencies']),
ipi: !exists(json, 'ipi') ? undefined : V1FeatureStateFromJSON(json['ipi']),
reenlightenment: !exists(json, 'reenlightenment')
? undefined
: V1FeatureStateFromJSON(json['reenlightenment']),
relaxed: !exists(json, 'relaxed') ? undefined : V1FeatureStateFromJSON(json['relaxed']),
reset: !exists(json, 'reset') ? undefined : V1FeatureStateFromJSON(json['reset']),
runtime: !exists(json, 'runtime') ? undefined : V1FeatureStateFromJSON(json['runtime']),
spinlocks: !exists(json, 'spinlocks')
? undefined
: V1FeatureSpinlocksFromJSON(json['spinlocks']),
synic: !exists(json, 'synic') ? undefined : V1FeatureStateFromJSON(json['synic']),
synictimer: !exists(json, 'synictimer') ? undefined : V1SyNICTimerFromJSON(json['synictimer']),
tlbflush: !exists(json, 'tlbflush') ? undefined : V1FeatureStateFromJSON(json['tlbflush']),
vapic: !exists(json, 'vapic') ? undefined : V1FeatureStateFromJSON(json['vapic']),
vendorid: !exists(json, 'vendorid') ? undefined : V1FeatureVendorIDFromJSON(json['vendorid']),
vpindex: !exists(json, 'vpindex') ? undefined : V1FeatureStateFromJSON(json['vpindex']),
};
}
export function V1FeatureHypervToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
evmcs: V1FeatureStateToJSON(value.evmcs),
frequencies: V1FeatureStateToJSON(value.frequencies),
ipi: V1FeatureStateToJSON(value.ipi),
reenlightenment: V1FeatureStateToJSON(value.reenlightenment),
relaxed: V1FeatureStateToJSON(value.relaxed),
reset: V1FeatureStateToJSON(value.reset),
runtime: V1FeatureStateToJSON(value.runtime),
spinlocks: V1FeatureSpinlocksToJSON(value.spinlocks),
synic: V1FeatureStateToJSON(value.synic),
synictimer: V1SyNICTimerToJSON(value.synictimer),
tlbflush: V1FeatureStateToJSON(value.tlbflush),
vapic: V1FeatureStateToJSON(value.vapic),
vendorid: V1FeatureVendorIDToJSON(value.vendorid),
vpindex: V1FeatureStateToJSON(value.vpindex),
};
}
//# sourceMappingURL=V1FeatureHyperv.js.map