/* 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'; /** * NamespaceCondition contains details about state of namespace. * @export * @interface IoK8sApiCoreV1NamespaceCondition */ export interface IoK8sApiCoreV1NamespaceCondition { /** * 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 IoK8sApiCoreV1NamespaceCondition */ lastTransitionTime?: string; /** * Human-readable message indicating details about last transition. * @type {string} * @memberof IoK8sApiCoreV1NamespaceCondition */ message?: string; /** * Unique, one-word, CamelCase reason for the condition's last transition. * @type {string} * @memberof IoK8sApiCoreV1NamespaceCondition */ reason?: string; /** * Status of the condition, one of True, False, Unknown. * @type {string} * @memberof IoK8sApiCoreV1NamespaceCondition */ status: string; /** * Type of namespace controller condition. * @type {string} * @memberof IoK8sApiCoreV1NamespaceCondition */ type: string; } export function IoK8sApiCoreV1NamespaceConditionFromJSON( json: any, ): IoK8sApiCoreV1NamespaceCondition { return IoK8sApiCoreV1NamespaceConditionFromJSONTyped(json, false); } export function IoK8sApiCoreV1NamespaceConditionFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1NamespaceCondition { if (json === undefined || json === null) { return json; } return { 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 IoK8sApiCoreV1NamespaceConditionToJSON( value?: IoK8sApiCoreV1NamespaceCondition | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { lastTransitionTime: value.lastTransitionTime === undefined ? undefined : value.lastTransitionTime, message: value.message, reason: value.reason, status: value.status, type: value.type, }; }