@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
68 lines • 2.91 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 { V1DiskVerificationFromJSON, V1DiskVerificationToJSON, V1LogVerbosityFromJSON, V1LogVerbosityToJSON, } from './';
export function V1DeveloperConfigurationFromJSON(json) {
return V1DeveloperConfigurationFromJSONTyped(json, false);
}
export function V1DeveloperConfigurationFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
cpuAllocationRatio: !exists(json, 'cpuAllocationRatio')
? undefined
: json['cpuAllocationRatio'],
diskVerification: !exists(json, 'diskVerification')
? undefined
: V1DiskVerificationFromJSON(json['diskVerification']),
featureGates: !exists(json, 'featureGates') ? undefined : json['featureGates'],
logVerbosity: !exists(json, 'logVerbosity')
? undefined
: V1LogVerbosityFromJSON(json['logVerbosity']),
memoryOvercommit: !exists(json, 'memoryOvercommit') ? undefined : json['memoryOvercommit'],
minimumClusterTSCFrequency: !exists(json, 'minimumClusterTSCFrequency')
? undefined
: json['minimumClusterTSCFrequency'],
minimumReservePVCBytes: !exists(json, 'minimumReservePVCBytes')
? undefined
: json['minimumReservePVCBytes'],
nodeSelectors: !exists(json, 'nodeSelectors') ? undefined : json['nodeSelectors'],
pvcTolerateLessSpaceUpToPercent: !exists(json, 'pvcTolerateLessSpaceUpToPercent')
? undefined
: json['pvcTolerateLessSpaceUpToPercent'],
useEmulation: !exists(json, 'useEmulation') ? undefined : json['useEmulation'],
};
}
export function V1DeveloperConfigurationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
cpuAllocationRatio: value.cpuAllocationRatio,
diskVerification: V1DiskVerificationToJSON(value.diskVerification),
featureGates: value.featureGates,
logVerbosity: V1LogVerbosityToJSON(value.logVerbosity),
memoryOvercommit: value.memoryOvercommit,
minimumClusterTSCFrequency: value.minimumClusterTSCFrequency,
minimumReservePVCBytes: value.minimumReservePVCBytes,
nodeSelectors: value.nodeSelectors,
pvcTolerateLessSpaceUpToPercent: value.pvcTolerateLessSpaceUpToPercent,
useEmulation: value.useEmulation,
};
}
//# sourceMappingURL=V1DeveloperConfiguration.js.map