UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

62 lines 2.74 kB
/* 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, V1beta1ErrorFromJSON, V1beta1ErrorToJSON, V1beta1SnapshotVolumesListsFromJSON, V1beta1SnapshotVolumesListsToJSON, } from './'; export function V1beta1VirtualMachineSnapshotStatusFromJSON(json) { return V1beta1VirtualMachineSnapshotStatusFromJSONTyped(json, false); } export function V1beta1VirtualMachineSnapshotStatusFromJSONTyped(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'], 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) { 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, error: V1beta1ErrorToJSON(value.error), indications: value.indications, phase: value.phase, readyToUse: value.readyToUse, snapshotVolumes: V1beta1SnapshotVolumesListsToJSON(value.snapshotVolumes), sourceUID: value.sourceUID, virtualMachineSnapshotContentName: value.virtualMachineSnapshotContentName, }; } //# sourceMappingURL=V1beta1VirtualMachineSnapshotStatus.js.map