UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

80 lines 3.78 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, V1beta1TLSSecurityProfileFromJSON, V1beta1TLSSecurityProfileToJSON, } from './'; export function V1beta1CDIConfigSpecFromJSON(json) { return V1beta1CDIConfigSpecFromJSONTyped(json, false); } export function V1beta1CDIConfigSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { dataVolumeTTLSeconds: !exists(json, 'dataVolumeTTLSeconds') ? undefined : json['dataVolumeTTLSeconds'], featureGates: !exists(json, 'featureGates') ? undefined : json['featureGates'], 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']), insecureRegistries: !exists(json, 'insecureRegistries') ? undefined : json['insecureRegistries'], logVerbosity: !exists(json, 'logVerbosity') ? undefined : json['logVerbosity'], podResourceRequirements: !exists(json, 'podResourceRequirements') ? undefined : V1ResourceRequirementsFromJSON(json['podResourceRequirements']), preallocation: !exists(json, 'preallocation') ? undefined : json['preallocation'], scratchSpaceStorageClass: !exists(json, 'scratchSpaceStorageClass') ? undefined : json['scratchSpaceStorageClass'], tlsSecurityProfile: !exists(json, 'tlsSecurityProfile') ? undefined : V1beta1TLSSecurityProfileFromJSON(json['tlsSecurityProfile']), uploadProxyURLOverride: !exists(json, 'uploadProxyURLOverride') ? undefined : json['uploadProxyURLOverride'], }; } export function V1beta1CDIConfigSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { dataVolumeTTLSeconds: value.dataVolumeTTLSeconds, featureGates: value.featureGates, filesystemOverhead: V1beta1FilesystemOverheadToJSON(value.filesystemOverhead), imagePullSecrets: value.imagePullSecrets === undefined ? undefined : value.imagePullSecrets.map(V1LocalObjectReferenceToJSON), importProxy: V1beta1ImportProxyToJSON(value.importProxy), insecureRegistries: value.insecureRegistries, logVerbosity: value.logVerbosity, podResourceRequirements: V1ResourceRequirementsToJSON(value.podResourceRequirements), preallocation: value.preallocation, scratchSpaceStorageClass: value.scratchSpaceStorageClass, tlsSecurityProfile: V1beta1TLSSecurityProfileToJSON(value.tlsSecurityProfile), uploadProxyURLOverride: value.uploadProxyURLOverride, }; } //# sourceMappingURL=V1beta1CDIConfigSpec.js.map