/* 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 { IoK8sApiCoreV1LimitRangeItem, IoK8sApiCoreV1LimitRangeItemFromJSON, IoK8sApiCoreV1LimitRangeItemToJSON, } from './'; /** * LimitRangeSpec defines a min/max usage limit for resources that match on kind. * @export * @interface IoK8sApiCoreV1LimitRangeSpec */ export interface IoK8sApiCoreV1LimitRangeSpec { /** * Limits is the list of LimitRangeItem objects that are enforced. * @type {Array} * @memberof IoK8sApiCoreV1LimitRangeSpec */ limits: Array; } export function IoK8sApiCoreV1LimitRangeSpecFromJSON(json: any): IoK8sApiCoreV1LimitRangeSpec { return IoK8sApiCoreV1LimitRangeSpecFromJSONTyped(json, false); } export function IoK8sApiCoreV1LimitRangeSpecFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1LimitRangeSpec { if (json === undefined || json === null) { return json; } return { limits: (json['limits'] as Array).map(IoK8sApiCoreV1LimitRangeItemFromJSON), }; } export function IoK8sApiCoreV1LimitRangeSpecToJSON( value?: IoK8sApiCoreV1LimitRangeSpec | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { limits: (value.limits as Array).map(IoK8sApiCoreV1LimitRangeItemToJSON), }; }