UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

56 lines 2.33 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 { V1InterfaceBindingMigrationFromJSON, V1InterfaceBindingMigrationToJSON, V1ResourceRequirementsWithoutClaimsFromJSON, V1ResourceRequirementsWithoutClaimsToJSON, } from './'; export function V1InterfaceBindingPluginFromJSON(json) { return V1InterfaceBindingPluginFromJSONTyped(json, false); } export function V1InterfaceBindingPluginFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { computeResourceOverhead: !exists(json, 'computeResourceOverhead') ? undefined : V1ResourceRequirementsWithoutClaimsFromJSON(json['computeResourceOverhead']), domainAttachmentType: !exists(json, 'domainAttachmentType') ? undefined : json['domainAttachmentType'], downwardAPI: !exists(json, 'downwardAPI') ? undefined : json['downwardAPI'], migration: !exists(json, 'migration') ? undefined : V1InterfaceBindingMigrationFromJSON(json['migration']), networkAttachmentDefinition: !exists(json, 'networkAttachmentDefinition') ? undefined : json['networkAttachmentDefinition'], sidecarImage: !exists(json, 'sidecarImage') ? undefined : json['sidecarImage'], }; } export function V1InterfaceBindingPluginToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { computeResourceOverhead: V1ResourceRequirementsWithoutClaimsToJSON(value.computeResourceOverhead), domainAttachmentType: value.domainAttachmentType, downwardAPI: value.downwardAPI, migration: V1InterfaceBindingMigrationToJSON(value.migration), networkAttachmentDefinition: value.networkAttachmentDefinition, sidecarImage: value.sidecarImage, }; } //# sourceMappingURL=V1InterfaceBindingPlugin.js.map