/* tslint:disable */ /* eslint-disable */ /** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface SearchIndexJobEvent */ export interface SearchIndexJobEvent { /** * * @type {Date} * @memberof SearchIndexJobEvent */ createdAt?: Date; /** * * @type {string} * @memberof SearchIndexJobEvent */ eventCode?: string; /** * * @type {string} * @memberof SearchIndexJobEvent */ id?: string; /** * * @type {string} * @memberof SearchIndexJobEvent */ message?: string; /** * * @type {string} * @memberof SearchIndexJobEvent */ searchIndexJobId?: string; /** * * @type {number} * @memberof SearchIndexJobEvent */ seq?: number; /** * * @type {string} * @memberof SearchIndexJobEvent */ severity?: string; } /** * Check if a given object implements the SearchIndexJobEvent interface. */ export function instanceOfSearchIndexJobEvent(value: object): value is SearchIndexJobEvent { return true; } export function SearchIndexJobEventFromJSON(json: any): SearchIndexJobEvent { return SearchIndexJobEventFromJSONTyped(json, false); } export function SearchIndexJobEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchIndexJobEvent { if (json == null) { return json; } return { 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])), 'eventCode': json['eventCode'] == null ? undefined : json['eventCode'], 'id': json['id'] == null ? undefined : json['id'], 'message': json['message'] == null ? undefined : json['message'], 'searchIndexJobId': json['searchIndexJobId'] == null ? undefined : json['searchIndexJobId'], 'seq': json['seq'] == null ? undefined : json['seq'], 'severity': json['severity'] == null ? undefined : json['severity'], }; } export function SearchIndexJobEventToJSON(json: any): SearchIndexJobEvent { return SearchIndexJobEventToJSONTyped(json, false); } export function SearchIndexJobEventToJSONTyped(value?: SearchIndexJobEvent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(), 'eventCode': value['eventCode'], 'id': value['id'], 'message': value['message'], 'searchIndexJobId': value['searchIndexJobId'], 'seq': value['seq'], 'severity': value['severity'], }; }