/* 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 { IoK8sApiBatchV1PodFailurePolicyRule, IoK8sApiBatchV1PodFailurePolicyRuleFromJSON, IoK8sApiBatchV1PodFailurePolicyRuleToJSON, } from './'; /** * PodFailurePolicy describes how failed pods influence the backoffLimit. * @export * @interface IoK8sApiBatchV1PodFailurePolicy */ export interface IoK8sApiBatchV1PodFailurePolicy { /** * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. * @type {Array} * @memberof IoK8sApiBatchV1PodFailurePolicy */ rules: Array; } export function IoK8sApiBatchV1PodFailurePolicyFromJSON( json: any, ): IoK8sApiBatchV1PodFailurePolicy { return IoK8sApiBatchV1PodFailurePolicyFromJSONTyped(json, false); } export function IoK8sApiBatchV1PodFailurePolicyFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiBatchV1PodFailurePolicy { if (json === undefined || json === null) { return json; } return { rules: (json['rules'] as Array).map(IoK8sApiBatchV1PodFailurePolicyRuleFromJSON), }; } export function IoK8sApiBatchV1PodFailurePolicyToJSON( value?: IoK8sApiBatchV1PodFailurePolicy | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { rules: (value.rules as Array).map(IoK8sApiBatchV1PodFailurePolicyRuleToJSON), }; }