@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
42 lines • 1.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 { V1CustomBlockSizeFromJSON, V1CustomBlockSizeToJSON, V1FeatureStateFromJSON, V1FeatureStateToJSON, } from './';
export function V1BlockSizeFromJSON(json) {
return V1BlockSizeFromJSONTyped(json, false);
}
export function V1BlockSizeFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
custom: !exists(json, 'custom') ? undefined : V1CustomBlockSizeFromJSON(json['custom']),
matchVolume: !exists(json, 'matchVolume')
? undefined
: V1FeatureStateFromJSON(json['matchVolume']),
};
}
export function V1BlockSizeToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
custom: V1CustomBlockSizeToJSON(value.custom),
matchVolume: V1FeatureStateToJSON(value.matchVolume),
};
}
//# sourceMappingURL=V1BlockSize.js.map