/* 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 ApiSearchIndexJobRequestDTO */ export interface ApiSearchIndexJobRequestDTO { /** * Job to run: FULL_REBUILD or FIRST_TIME_INDEX. * @type {string} * @memberof ApiSearchIndexJobRequestDTO */ jobType?: string; /** * What asked for the job: UNLOCK_WIZARD, HEALTH_UI, SUPPORT or SYSTEM. Defaults to HEALTH_UI. * @type {string} * @memberof ApiSearchIndexJobRequestDTO */ trigger?: string; } /** * Check if a given object implements the ApiSearchIndexJobRequestDTO interface. */ export function instanceOfApiSearchIndexJobRequestDTO(value: object): value is ApiSearchIndexJobRequestDTO { return true; } export function ApiSearchIndexJobRequestDTOFromJSON(json: any): ApiSearchIndexJobRequestDTO { return ApiSearchIndexJobRequestDTOFromJSONTyped(json, false); } export function ApiSearchIndexJobRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchIndexJobRequestDTO { if (json == null) { return json; } return { 'jobType': json['jobType'] == null ? undefined : json['jobType'], 'trigger': json['trigger'] == null ? undefined : json['trigger'], }; } export function ApiSearchIndexJobRequestDTOToJSON(json: any): ApiSearchIndexJobRequestDTO { return ApiSearchIndexJobRequestDTOToJSONTyped(json, false); } export function ApiSearchIndexJobRequestDTOToJSONTyped(value?: ApiSearchIndexJobRequestDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'jobType': value['jobType'], 'trigger': value['trigger'], }; }