@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
54 lines • 1.98 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 { V1NUMAFromJSON, V1NUMAToJSON, V1RealtimeFromJSON, V1RealtimeToJSON, } from './';
export function V1beta1CPUInstancetypeFromJSON(json) {
return V1beta1CPUInstancetypeFromJSONTyped(json, false);
}
export function V1beta1CPUInstancetypeFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
dedicatedCPUPlacement: !exists(json, 'dedicatedCPUPlacement')
? undefined
: json['dedicatedCPUPlacement'],
guest: json['guest'],
isolateEmulatorThread: !exists(json, 'isolateEmulatorThread')
? undefined
: json['isolateEmulatorThread'],
maxSockets: !exists(json, 'maxSockets') ? undefined : json['maxSockets'],
model: !exists(json, 'model') ? undefined : json['model'],
numa: !exists(json, 'numa') ? undefined : V1NUMAFromJSON(json['numa']),
realtime: !exists(json, 'realtime') ? undefined : V1RealtimeFromJSON(json['realtime']),
};
}
export function V1beta1CPUInstancetypeToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
dedicatedCPUPlacement: value.dedicatedCPUPlacement,
guest: value.guest,
isolateEmulatorThread: value.isolateEmulatorThread,
maxSockets: value.maxSockets,
model: value.model,
numa: V1NUMAToJSON(value.numa),
realtime: V1RealtimeToJSON(value.realtime),
};
}
//# sourceMappingURL=V1beta1CPUInstancetype.js.map