/* 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'; /** * JobCondition describes current state of a job. * @export * @interface IoK8sApiBatchV1JobCondition */ export interface IoK8sApiBatchV1JobCondition { /** * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ lastProbeTime?: string; /** * Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ lastTransitionTime?: string; /** * Human readable message indicating details about last transition. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ message?: string; /** * (brief) reason for the condition's last transition. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ reason?: string; /** * Status of the condition, one of True, False, Unknown. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ status: string; /** * Type of job condition, Complete or Failed. * @type {string} * @memberof IoK8sApiBatchV1JobCondition */ type: string; } export function IoK8sApiBatchV1JobConditionFromJSON(json: any): IoK8sApiBatchV1JobCondition { return IoK8sApiBatchV1JobConditionFromJSONTyped(json, false); } export function IoK8sApiBatchV1JobConditionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiBatchV1JobCondition { if (json === undefined || json === null) { return json; } return { lastProbeTime: !exists(json, 'lastProbeTime') ? undefined : json['lastProbeTime'], lastTransitionTime: !exists(json, 'lastTransitionTime') ? undefined : json['lastTransitionTime'], message: !exists(json, 'message') ? undefined : json['message'], reason: !exists(json, 'reason') ? undefined : json['reason'], status: json['status'], type: json['type'], }; } export function IoK8sApiBatchV1JobConditionToJSON(value?: IoK8sApiBatchV1JobCondition | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { lastProbeTime: value.lastProbeTime === undefined ? undefined : value.lastProbeTime, lastTransitionTime: value.lastTransitionTime === undefined ? undefined : value.lastTransitionTime, message: value.message, reason: value.reason, status: value.status, type: value.type, }; }