@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
44 lines • 1.46 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 { K8sIoApiCoreV1LocalObjectReferenceFromJSON, K8sIoApiCoreV1LocalObjectReferenceToJSON, } from './';
export function V1SysprepSourceFromJSON(json) {
return V1SysprepSourceFromJSONTyped(json, false);
}
export function V1SysprepSourceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
configMap: !exists(json, 'configMap')
? undefined
: K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['configMap']),
secret: !exists(json, 'secret')
? undefined
: K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['secret']),
};
}
export function V1SysprepSourceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
configMap: K8sIoApiCoreV1LocalObjectReferenceToJSON(value.configMap),
secret: K8sIoApiCoreV1LocalObjectReferenceToJSON(value.secret),
};
}
//# sourceMappingURL=V1SysprepSource.js.map