UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

50 lines 2.04 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 { IoK8sApiFlowcontrolV1LimitResponseFromJSON, IoK8sApiFlowcontrolV1LimitResponseToJSON, } from './'; export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSON(json) { return IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { borrowingLimitPercent: !exists(json, 'borrowingLimitPercent') ? undefined : json['borrowingLimitPercent'], lendablePercent: !exists(json, 'lendablePercent') ? undefined : json['lendablePercent'], limitResponse: !exists(json, 'limitResponse') ? undefined : IoK8sApiFlowcontrolV1LimitResponseFromJSON(json['limitResponse']), nominalConcurrencyShares: !exists(json, 'nominalConcurrencyShares') ? undefined : json['nominalConcurrencyShares'], }; } export function IoK8sApiFlowcontrolV1LimitedPriorityLevelConfigurationToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { borrowingLimitPercent: value.borrowingLimitPercent, lendablePercent: value.lendablePercent, limitResponse: IoK8sApiFlowcontrolV1LimitResponseToJSON(value.limitResponse), nominalConcurrencyShares: value.nominalConcurrencyShares, }; } //# sourceMappingURL=IoK8sApiFlowcontrolV1LimitedPriorityLevelConfiguration.js.map