/* 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 } from './'; /** * * @export * @interface V1beta1VirtualMachineCloneStatus */ export interface V1beta1VirtualMachineCloneStatus { /** * * @type {Array} * @memberof V1beta1VirtualMachineCloneStatus */ conditions?: 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 V1beta1VirtualMachineCloneStatus */ creationTime?: string; /** * * @type {string} * @memberof V1beta1VirtualMachineCloneStatus */ phase?: string; /** * * @type {string} * @memberof V1beta1VirtualMachineCloneStatus */ restoreName?: string; /** * * @type {string} * @memberof V1beta1VirtualMachineCloneStatus */ snapshotName?: string; /** * * @type {string} * @memberof V1beta1VirtualMachineCloneStatus */ targetName?: string; } export function V1beta1VirtualMachineCloneStatusFromJSON( json: any, ): V1beta1VirtualMachineCloneStatus { return V1beta1VirtualMachineCloneStatusFromJSONTyped(json, false); } export function V1beta1VirtualMachineCloneStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1VirtualMachineCloneStatus { if (json === undefined || json === null) { return json; } return { conditions: !exists(json, 'conditions') ? undefined : (json['conditions'] as Array).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?: V1beta1VirtualMachineCloneStatus | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { conditions: value.conditions === undefined ? undefined : (value.conditions as Array).map(V1beta1ConditionToJSON), creationTime: value.creationTime === undefined ? undefined : value.creationTime, phase: value.phase, restoreName: value.restoreName, snapshotName: value.snapshotName, targetName: value.targetName, }; }