UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

104 lines 5.18 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 { V1MigrationConfigurationFromJSON, V1MigrationConfigurationToJSON, } from './'; export function V1VirtualMachineInstanceMigrationStateFromJSON(json) { return V1VirtualMachineInstanceMigrationStateFromJSONTyped(json, false); } export function V1VirtualMachineInstanceMigrationStateFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { abortRequested: !exists(json, 'abortRequested') ? undefined : json['abortRequested'], abortStatus: !exists(json, 'abortStatus') ? undefined : json['abortStatus'], completed: !exists(json, 'completed') ? undefined : json['completed'], endTimestamp: !exists(json, 'endTimestamp') ? undefined : json['endTimestamp'], failed: !exists(json, 'failed') ? undefined : json['failed'], failureReason: !exists(json, 'failureReason') ? undefined : json['failureReason'], migrationConfiguration: !exists(json, 'migrationConfiguration') ? undefined : V1MigrationConfigurationFromJSON(json['migrationConfiguration']), migrationPolicyName: !exists(json, 'migrationPolicyName') ? undefined : json['migrationPolicyName'], migrationUid: !exists(json, 'migrationUid') ? undefined : json['migrationUid'], mode: !exists(json, 'mode') ? undefined : json['mode'], sourceNode: !exists(json, 'sourceNode') ? undefined : json['sourceNode'], sourcePersistentStatePVCName: !exists(json, 'sourcePersistentStatePVCName') ? undefined : json['sourcePersistentStatePVCName'], sourcePod: !exists(json, 'sourcePod') ? undefined : json['sourcePod'], startTimestamp: !exists(json, 'startTimestamp') ? undefined : json['startTimestamp'], targetAttachmentPodUID: !exists(json, 'targetAttachmentPodUID') ? undefined : json['targetAttachmentPodUID'], targetCPUSet: !exists(json, 'targetCPUSet') ? undefined : json['targetCPUSet'], targetDirectMigrationNodePorts: !exists(json, 'targetDirectMigrationNodePorts') ? undefined : json['targetDirectMigrationNodePorts'], targetNode: !exists(json, 'targetNode') ? undefined : json['targetNode'], targetNodeAddress: !exists(json, 'targetNodeAddress') ? undefined : json['targetNodeAddress'], targetNodeDomainDetected: !exists(json, 'targetNodeDomainDetected') ? undefined : json['targetNodeDomainDetected'], targetNodeDomainReadyTimestamp: !exists(json, 'targetNodeDomainReadyTimestamp') ? undefined : json['targetNodeDomainReadyTimestamp'], targetNodeTopology: !exists(json, 'targetNodeTopology') ? undefined : json['targetNodeTopology'], targetPersistentStatePVCName: !exists(json, 'targetPersistentStatePVCName') ? undefined : json['targetPersistentStatePVCName'], targetPod: !exists(json, 'targetPod') ? undefined : json['targetPod'], }; } export function V1VirtualMachineInstanceMigrationStateToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { abortRequested: value.abortRequested, abortStatus: value.abortStatus, completed: value.completed, endTimestamp: value.endTimestamp === undefined ? undefined : value.endTimestamp, failed: value.failed, failureReason: value.failureReason, migrationConfiguration: V1MigrationConfigurationToJSON(value.migrationConfiguration), migrationPolicyName: value.migrationPolicyName, migrationUid: value.migrationUid, mode: value.mode, sourceNode: value.sourceNode, sourcePersistentStatePVCName: value.sourcePersistentStatePVCName, sourcePod: value.sourcePod, startTimestamp: value.startTimestamp === undefined ? undefined : value.startTimestamp, targetAttachmentPodUID: value.targetAttachmentPodUID, targetCPUSet: value.targetCPUSet, targetDirectMigrationNodePorts: value.targetDirectMigrationNodePorts, targetNode: value.targetNode, targetNodeAddress: value.targetNodeAddress, targetNodeDomainDetected: value.targetNodeDomainDetected, targetNodeDomainReadyTimestamp: value.targetNodeDomainReadyTimestamp === undefined ? undefined : value.targetNodeDomainReadyTimestamp, targetNodeTopology: value.targetNodeTopology, targetPersistentStatePVCName: value.targetPersistentStatePVCName, targetPod: value.targetPod, }; } //# sourceMappingURL=V1VirtualMachineInstanceMigrationState.js.map