@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
52 lines • 2.12 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 V1CloudInitConfigDriveSourceFromJSON(json) {
return V1CloudInitConfigDriveSourceFromJSONTyped(json, false);
}
export function V1CloudInitConfigDriveSourceFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
networkData: !exists(json, 'networkData') ? undefined : json['networkData'],
networkDataBase64: !exists(json, 'networkDataBase64') ? undefined : json['networkDataBase64'],
networkDataSecretRef: !exists(json, 'networkDataSecretRef')
? undefined
: K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['networkDataSecretRef']),
secretRef: !exists(json, 'secretRef')
? undefined
: K8sIoApiCoreV1LocalObjectReferenceFromJSON(json['secretRef']),
userData: !exists(json, 'userData') ? undefined : json['userData'],
userDataBase64: !exists(json, 'userDataBase64') ? undefined : json['userDataBase64'],
};
}
export function V1CloudInitConfigDriveSourceToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
networkData: value.networkData,
networkDataBase64: value.networkDataBase64,
networkDataSecretRef: K8sIoApiCoreV1LocalObjectReferenceToJSON(value.networkDataSecretRef),
secretRef: K8sIoApiCoreV1LocalObjectReferenceToJSON(value.secretRef),
userData: value.userData,
userDataBase64: value.userDataBase64,
};
}
//# sourceMappingURL=V1CloudInitConfigDriveSource.js.map