UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

40 lines 1.27 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 { V1CustomProfileFromJSON, V1CustomProfileToJSON } from './'; export function V1VirtualMachineInstanceProfileFromJSON(json) { return V1VirtualMachineInstanceProfileFromJSONTyped(json, false); } export function V1VirtualMachineInstanceProfileFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { customProfile: !exists(json, 'customProfile') ? undefined : V1CustomProfileFromJSON(json['customProfile']), }; } export function V1VirtualMachineInstanceProfileToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { customProfile: V1CustomProfileToJSON(value.customProfile), }; } //# sourceMappingURL=V1VirtualMachineInstanceProfile.js.map