@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
52 lines • 1.99 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 { V1beta1ConditionFromJSON, V1beta1ConditionToJSON } from './';
export function V1beta1VirtualMachineCloneStatusFromJSON(json) {
return V1beta1VirtualMachineCloneStatusFromJSONTyped(json, false);
}
export function V1beta1VirtualMachineCloneStatusFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
conditions: !exists(json, 'conditions')
? undefined
: json['conditions'].map(V1beta1ConditionFromJSON),
creationTime: !exists(json, 'creationTime') ? undefined : json['creationTime'],
phase: !exists(json, 'phase') ? undefined : json['phase'],
restoreName: !exists(json, 'restoreName') ? undefined : json['restoreName'],
snapshotName: !exists(json, 'snapshotName') ? undefined : json['snapshotName'],
targetName: !exists(json, 'targetName') ? undefined : json['targetName'],
};
}
export function V1beta1VirtualMachineCloneStatusToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
conditions: value.conditions === undefined
? undefined
: value.conditions.map(V1beta1ConditionToJSON),
creationTime: value.creationTime === undefined ? undefined : value.creationTime,
phase: value.phase,
restoreName: value.restoreName,
snapshotName: value.snapshotName,
targetName: value.targetName,
};
}
//# sourceMappingURL=V1beta1VirtualMachineCloneStatus.js.map