@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
50 lines • 1.86 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* 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 { IoK8sApiCoreV1NodeConfigSourceFromJSON, IoK8sApiCoreV1NodeConfigSourceToJSON, } from './';
export function IoK8sApiCoreV1NodeConfigStatusFromJSON(json) {
return IoK8sApiCoreV1NodeConfigStatusFromJSONTyped(json, false);
}
export function IoK8sApiCoreV1NodeConfigStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
active: !exists(json, 'active')
? undefined
: IoK8sApiCoreV1NodeConfigSourceFromJSON(json['active']),
assigned: !exists(json, 'assigned')
? undefined
: IoK8sApiCoreV1NodeConfigSourceFromJSON(json['assigned']),
error: !exists(json, 'error') ? undefined : json['error'],
lastKnownGood: !exists(json, 'lastKnownGood')
? undefined
: IoK8sApiCoreV1NodeConfigSourceFromJSON(json['lastKnownGood']),
};
}
export function IoK8sApiCoreV1NodeConfigStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
active: IoK8sApiCoreV1NodeConfigSourceToJSON(value.active),
assigned: IoK8sApiCoreV1NodeConfigSourceToJSON(value.assigned),
error: value.error,
lastKnownGood: IoK8sApiCoreV1NodeConfigSourceToJSON(value.lastKnownGood),
};
}
//# sourceMappingURL=IoK8sApiCoreV1NodeConfigStatus.js.map