UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

46 lines 1.63 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 { V1PersistentVolumeClaimInfoFromJSON, V1PersistentVolumeClaimInfoToJSON, } from './'; export function V1StorageMigratedVolumeInfoFromJSON(json) { return V1StorageMigratedVolumeInfoFromJSONTyped(json, false); } export function V1StorageMigratedVolumeInfoFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { destinationPVCInfo: !exists(json, 'destinationPVCInfo') ? undefined : V1PersistentVolumeClaimInfoFromJSON(json['destinationPVCInfo']), sourcePVCInfo: !exists(json, 'sourcePVCInfo') ? undefined : V1PersistentVolumeClaimInfoFromJSON(json['sourcePVCInfo']), volumeName: json['volumeName'], }; } export function V1StorageMigratedVolumeInfoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { destinationPVCInfo: V1PersistentVolumeClaimInfoToJSON(value.destinationPVCInfo), sourcePVCInfo: V1PersistentVolumeClaimInfoToJSON(value.sourcePVCInfo), volumeName: value.volumeName, }; } //# sourceMappingURL=V1StorageMigratedVolumeInfo.js.map