/* 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 { V1beta1Condition, V1beta1ConditionFromJSON, V1beta1ConditionToJSON, V1beta1VolumeRestore, V1beta1VolumeRestoreFromJSON, V1beta1VolumeRestoreToJSON, } from './'; /** * VirtualMachineRestoreStatus is the status for a VirtualMachineRestore resource * @export * @interface V1beta1VirtualMachineRestoreStatus */ export interface V1beta1VirtualMachineRestoreStatus { /** * * @type {boolean} * @memberof V1beta1VirtualMachineRestoreStatus */ complete?: boolean; /** * * @type {Array} * @memberof V1beta1VirtualMachineRestoreStatus */ conditions?: Array; /** * * @type {Array} * @memberof V1beta1VirtualMachineRestoreStatus */ deletedDataVolumes?: Array; /** * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. * @type {string} * @memberof V1beta1VirtualMachineRestoreStatus */ restoreTime?: string; /** * * @type {Array} * @memberof V1beta1VirtualMachineRestoreStatus */ restores?: Array; } export function V1beta1VirtualMachineRestoreStatusFromJSON( json: any, ): V1beta1VirtualMachineRestoreStatus { return V1beta1VirtualMachineRestoreStatusFromJSONTyped(json, false); } export function V1beta1VirtualMachineRestoreStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1VirtualMachineRestoreStatus { if (json === undefined || json === null) { return json; } return { complete: !exists(json, 'complete') ? undefined : json['complete'], conditions: !exists(json, 'conditions') ? undefined : (json['conditions'] as Array).map(V1beta1ConditionFromJSON), deletedDataVolumes: !exists(json, 'deletedDataVolumes') ? undefined : json['deletedDataVolumes'], restoreTime: !exists(json, 'restoreTime') ? undefined : json['restoreTime'], restores: !exists(json, 'restores') ? undefined : (json['restores'] as Array).map(V1beta1VolumeRestoreFromJSON), }; } export function V1beta1VirtualMachineRestoreStatusToJSON( value?: V1beta1VirtualMachineRestoreStatus | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { complete: value.complete, conditions: value.conditions === undefined ? undefined : (value.conditions as Array).map(V1beta1ConditionToJSON), deletedDataVolumes: value.deletedDataVolumes, restoreTime: value.restoreTime === undefined ? undefined : value.restoreTime, restores: value.restores === undefined ? undefined : (value.restores as Array).map(V1beta1VolumeRestoreToJSON), }; }