/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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'; /** * ResourceRequirementsWithoutClaims describes the compute resource requirements. This struct was taken from the k8s.ResourceRequirements and cleaned up the `Claims` field. * @export * @interface V1ResourceRequirementsWithoutClaims */ export interface V1ResourceRequirementsWithoutClaims { /** * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @type {{ [key: string]: string; }} * @memberof V1ResourceRequirementsWithoutClaims */ limits?: { [key: string]: string }; /** * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ * @type {{ [key: string]: string; }} * @memberof V1ResourceRequirementsWithoutClaims */ requests?: { [key: string]: string }; } export function V1ResourceRequirementsWithoutClaimsFromJSON( json: any, ): V1ResourceRequirementsWithoutClaims { return V1ResourceRequirementsWithoutClaimsFromJSONTyped(json, false); } export function V1ResourceRequirementsWithoutClaimsFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1ResourceRequirementsWithoutClaims { if (json === undefined || json === null) { return json; } return { limits: !exists(json, 'limits') ? undefined : json['limits'], requests: !exists(json, 'requests') ? undefined : json['requests'], }; } export function V1ResourceRequirementsWithoutClaimsToJSON( value?: V1ResourceRequirementsWithoutClaims | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { limits: value.limits, requests: value.requests, }; }