UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

64 lines 2.94 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * 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 { V1LocalObjectReferenceFromJSON, V1LocalObjectReferenceToJSON, V1ResourceRequirementsFromJSON, V1ResourceRequirementsToJSON, V1beta1FilesystemOverheadFromJSON, V1beta1FilesystemOverheadToJSON, V1beta1ImportProxyFromJSON, V1beta1ImportProxyToJSON, } from './'; export function V1beta1CDIConfigStatusFromJSON(json) { return V1beta1CDIConfigStatusFromJSONTyped(json, false); } export function V1beta1CDIConfigStatusFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { defaultPodResourceRequirements: !exists(json, 'defaultPodResourceRequirements') ? undefined : V1ResourceRequirementsFromJSON(json['defaultPodResourceRequirements']), filesystemOverhead: !exists(json, 'filesystemOverhead') ? undefined : V1beta1FilesystemOverheadFromJSON(json['filesystemOverhead']), imagePullSecrets: !exists(json, 'imagePullSecrets') ? undefined : json['imagePullSecrets'].map(V1LocalObjectReferenceFromJSON), importProxy: !exists(json, 'importProxy') ? undefined : V1beta1ImportProxyFromJSON(json['importProxy']), preallocation: !exists(json, 'preallocation') ? undefined : json['preallocation'], scratchSpaceStorageClass: !exists(json, 'scratchSpaceStorageClass') ? undefined : json['scratchSpaceStorageClass'], uploadProxyCA: !exists(json, 'uploadProxyCA') ? undefined : json['uploadProxyCA'], uploadProxyURL: !exists(json, 'uploadProxyURL') ? undefined : json['uploadProxyURL'], }; } export function V1beta1CDIConfigStatusToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { defaultPodResourceRequirements: V1ResourceRequirementsToJSON(value.defaultPodResourceRequirements), filesystemOverhead: V1beta1FilesystemOverheadToJSON(value.filesystemOverhead), imagePullSecrets: value.imagePullSecrets === undefined ? undefined : value.imagePullSecrets.map(V1LocalObjectReferenceToJSON), importProxy: V1beta1ImportProxyToJSON(value.importProxy), preallocation: value.preallocation, scratchSpaceStorageClass: value.scratchSpaceStorageClass, uploadProxyCA: value.uploadProxyCA, uploadProxyURL: value.uploadProxyURL, }; } //# sourceMappingURL=V1beta1CDIConfigStatus.js.map