UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

48 lines 1.83 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 { IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON, IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON, } from './'; export function IoK8sApiAdmissionregistrationV1ParamRefFromJSON(json) { return IoK8sApiAdmissionregistrationV1ParamRefFromJSONTyped(json, false); } export function IoK8sApiAdmissionregistrationV1ParamRefFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { name: !exists(json, 'name') ? undefined : json['name'], namespace: !exists(json, 'namespace') ? undefined : json['namespace'], parameterNotFoundAction: !exists(json, 'parameterNotFoundAction') ? undefined : json['parameterNotFoundAction'], selector: !exists(json, 'selector') ? undefined : IoK8sApimachineryPkgApisMetaV1LabelSelectorFromJSON(json['selector']), }; } export function IoK8sApiAdmissionregistrationV1ParamRefToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { name: value.name, namespace: value.namespace, parameterNotFoundAction: value.parameterNotFoundAction, selector: IoK8sApimachineryPkgApisMetaV1LabelSelectorToJSON(value.selector), }; } //# sourceMappingURL=IoK8sApiAdmissionregistrationV1ParamRef.js.map