UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

100 lines 5.2 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 { V1InstancetypeStatusRefFromJSON, V1InstancetypeStatusRefToJSON, V1VirtualMachineConditionFromJSON, V1VirtualMachineConditionToJSON, V1VirtualMachineMemoryDumpRequestFromJSON, V1VirtualMachineMemoryDumpRequestToJSON, V1VirtualMachineStartFailureFromJSON, V1VirtualMachineStartFailureToJSON, V1VirtualMachineStateChangeRequestFromJSON, V1VirtualMachineStateChangeRequestToJSON, V1VirtualMachineVolumeRequestFromJSON, V1VirtualMachineVolumeRequestToJSON, V1VolumeSnapshotStatusFromJSON, V1VolumeSnapshotStatusToJSON, V1VolumeUpdateStateFromJSON, V1VolumeUpdateStateToJSON, } from './'; export function V1VirtualMachineStatusFromJSON(json) { return V1VirtualMachineStatusFromJSONTyped(json, false); } export function V1VirtualMachineStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { conditions: !exists(json, 'conditions') ? undefined : json['conditions'].map(V1VirtualMachineConditionFromJSON), created: !exists(json, 'created') ? undefined : json['created'], desiredGeneration: !exists(json, 'desiredGeneration') ? undefined : json['desiredGeneration'], instancetypeRef: !exists(json, 'instancetypeRef') ? undefined : V1InstancetypeStatusRefFromJSON(json['instancetypeRef']), memoryDumpRequest: !exists(json, 'memoryDumpRequest') ? undefined : V1VirtualMachineMemoryDumpRequestFromJSON(json['memoryDumpRequest']), observedGeneration: !exists(json, 'observedGeneration') ? undefined : json['observedGeneration'], preferenceRef: !exists(json, 'preferenceRef') ? undefined : V1InstancetypeStatusRefFromJSON(json['preferenceRef']), printableStatus: !exists(json, 'printableStatus') ? undefined : json['printableStatus'], ready: !exists(json, 'ready') ? undefined : json['ready'], restoreInProgress: !exists(json, 'restoreInProgress') ? undefined : json['restoreInProgress'], runStrategy: !exists(json, 'runStrategy') ? undefined : json['runStrategy'], snapshotInProgress: !exists(json, 'snapshotInProgress') ? undefined : json['snapshotInProgress'], startFailure: !exists(json, 'startFailure') ? undefined : V1VirtualMachineStartFailureFromJSON(json['startFailure']), stateChangeRequests: !exists(json, 'stateChangeRequests') ? undefined : json['stateChangeRequests'].map(V1VirtualMachineStateChangeRequestFromJSON), volumeRequests: !exists(json, 'volumeRequests') ? undefined : json['volumeRequests'].map(V1VirtualMachineVolumeRequestFromJSON), volumeSnapshotStatuses: !exists(json, 'volumeSnapshotStatuses') ? undefined : json['volumeSnapshotStatuses'].map(V1VolumeSnapshotStatusFromJSON), volumeUpdateState: !exists(json, 'volumeUpdateState') ? undefined : V1VolumeUpdateStateFromJSON(json['volumeUpdateState']), }; } export function V1VirtualMachineStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { conditions: value.conditions === undefined ? undefined : value.conditions.map(V1VirtualMachineConditionToJSON), created: value.created, desiredGeneration: value.desiredGeneration, instancetypeRef: V1InstancetypeStatusRefToJSON(value.instancetypeRef), memoryDumpRequest: V1VirtualMachineMemoryDumpRequestToJSON(value.memoryDumpRequest), observedGeneration: value.observedGeneration, preferenceRef: V1InstancetypeStatusRefToJSON(value.preferenceRef), printableStatus: value.printableStatus, ready: value.ready, restoreInProgress: value.restoreInProgress, runStrategy: value.runStrategy, snapshotInProgress: value.snapshotInProgress, startFailure: V1VirtualMachineStartFailureToJSON(value.startFailure), stateChangeRequests: value.stateChangeRequests === undefined ? undefined : value.stateChangeRequests.map(V1VirtualMachineStateChangeRequestToJSON), volumeRequests: value.volumeRequests === undefined ? undefined : value.volumeRequests.map(V1VirtualMachineVolumeRequestToJSON), volumeSnapshotStatuses: value.volumeSnapshotStatuses === undefined ? undefined : value.volumeSnapshotStatuses.map(V1VolumeSnapshotStatusToJSON), volumeUpdateState: V1VolumeUpdateStateToJSON(value.volumeUpdateState), }; } //# sourceMappingURL=V1VirtualMachineStatus.js.map