UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

40 lines 1.71 kB
/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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 { IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON, IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON, } from './'; export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSON(json) { return IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSONTyped(json, false); } export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { openAPIV3Schema: !exists(json, 'openAPIV3Schema') ? undefined : IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsFromJSON(json['openAPIV3Schema']), }; } export function IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { openAPIV3Schema: IoK8sApiextensionsApiserverPkgApisApiextensionsV1JSONSchemaPropsToJSON(value.openAPIV3Schema), }; } //# sourceMappingURL=IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceValidation.js.map