@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
44 lines • 1.59 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* KubeVirt Containerized Data Importer API
* Containerized Data Importer for KubeVirt.
*
* 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 { V1beta1DataSourceConditionFromJSON, V1beta1DataSourceConditionToJSON, V1beta1DataSourceSourceFromJSON, V1beta1DataSourceSourceToJSON, } from './';
export function V1beta1DataSourceStatusFromJSON(json) {
return V1beta1DataSourceStatusFromJSONTyped(json, false);
}
export function V1beta1DataSourceStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
conditions: !exists(json, 'conditions')
? undefined
: json['conditions'].map(V1beta1DataSourceConditionFromJSON),
source: !exists(json, 'source') ? undefined : V1beta1DataSourceSourceFromJSON(json['source']),
};
}
export function V1beta1DataSourceStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
conditions: value.conditions === undefined
? undefined
: value.conditions.map(V1beta1DataSourceConditionToJSON),
source: V1beta1DataSourceSourceToJSON(value.source),
};
}
//# sourceMappingURL=V1beta1DataSourceStatus.js.map