UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

46 lines 1.98 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 { IoK8sApiAdmissionregistrationV1alpha1ApplyConfigurationFromJSON, IoK8sApiAdmissionregistrationV1alpha1ApplyConfigurationToJSON, IoK8sApiAdmissionregistrationV1alpha1JSONPatchFromJSON, IoK8sApiAdmissionregistrationV1alpha1JSONPatchToJSON, } from './'; export function IoK8sApiAdmissionregistrationV1alpha1MutationFromJSON(json) { return IoK8sApiAdmissionregistrationV1alpha1MutationFromJSONTyped(json, false); } export function IoK8sApiAdmissionregistrationV1alpha1MutationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { applyConfiguration: !exists(json, 'applyConfiguration') ? undefined : IoK8sApiAdmissionregistrationV1alpha1ApplyConfigurationFromJSON(json['applyConfiguration']), jsonPatch: !exists(json, 'jsonPatch') ? undefined : IoK8sApiAdmissionregistrationV1alpha1JSONPatchFromJSON(json['jsonPatch']), patchType: json['patchType'], }; } export function IoK8sApiAdmissionregistrationV1alpha1MutationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { applyConfiguration: IoK8sApiAdmissionregistrationV1alpha1ApplyConfigurationToJSON(value.applyConfiguration), jsonPatch: IoK8sApiAdmissionregistrationV1alpha1JSONPatchToJSON(value.jsonPatch), patchType: value.patchType, }; } //# sourceMappingURL=IoK8sApiAdmissionregistrationV1alpha1Mutation.js.map