/* 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, V1beta1Error, V1beta1ErrorFromJSON, V1beta1ErrorToJSON, V1beta1SnapshotVolumesLists, V1beta1SnapshotVolumesListsFromJSON, V1beta1SnapshotVolumesListsToJSON, } from './'; /** * VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot resource * @export * @interface V1beta1VirtualMachineSnapshotStatus */ export interface V1beta1VirtualMachineSnapshotStatus { /** * * @type {Array} * @memberof V1beta1VirtualMachineSnapshotStatus */ 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 V1beta1VirtualMachineSnapshotStatus */ creationTime?: string; /** * * @type {V1beta1Error} * @memberof V1beta1VirtualMachineSnapshotStatus */ error?: V1beta1Error; /** * * @type {Array} * @memberof V1beta1VirtualMachineSnapshotStatus */ indications?: Array; /** * * @type {string} * @memberof V1beta1VirtualMachineSnapshotStatus */ phase?: string; /** * * @type {boolean} * @memberof V1beta1VirtualMachineSnapshotStatus */ readyToUse?: boolean; /** * * @type {V1beta1SnapshotVolumesLists} * @memberof V1beta1VirtualMachineSnapshotStatus */ snapshotVolumes?: V1beta1SnapshotVolumesLists; /** * * @type {string} * @memberof V1beta1VirtualMachineSnapshotStatus */ sourceUID?: string; /** * * @type {string} * @memberof V1beta1VirtualMachineSnapshotStatus */ virtualMachineSnapshotContentName?: string; } export function V1beta1VirtualMachineSnapshotStatusFromJSON( json: any, ): V1beta1VirtualMachineSnapshotStatus { return V1beta1VirtualMachineSnapshotStatusFromJSONTyped(json, false); } export function V1beta1VirtualMachineSnapshotStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1VirtualMachineSnapshotStatus { 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'], error: !exists(json, 'error') ? undefined : V1beta1ErrorFromJSON(json['error']), indications: !exists(json, 'indications') ? undefined : json['indications'], phase: !exists(json, 'phase') ? undefined : json['phase'], readyToUse: !exists(json, 'readyToUse') ? undefined : json['readyToUse'], snapshotVolumes: !exists(json, 'snapshotVolumes') ? undefined : V1beta1SnapshotVolumesListsFromJSON(json['snapshotVolumes']), sourceUID: !exists(json, 'sourceUID') ? undefined : json['sourceUID'], virtualMachineSnapshotContentName: !exists(json, 'virtualMachineSnapshotContentName') ? undefined : json['virtualMachineSnapshotContentName'], }; } export function V1beta1VirtualMachineSnapshotStatusToJSON( value?: V1beta1VirtualMachineSnapshotStatus | 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, error: V1beta1ErrorToJSON(value.error), indications: value.indications, phase: value.phase, readyToUse: value.readyToUse, snapshotVolumes: V1beta1SnapshotVolumesListsToJSON(value.snapshotVolumes), sourceUID: value.sourceUID, virtualMachineSnapshotContentName: value.virtualMachineSnapshotContentName, }; }