/** * 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 * as runtime from '../runtime'; import type { ApiSearchIndexAnalyzeDTO, ApiSearchIndexJobRequestDTO, SearchIndexJob, SearchIndexJobEvent } from '../models/index'; export interface AdvancedSearchIndexHealthApiGetJobRequest { jobId: string; } export interface AdvancedSearchIndexHealthApiGetJobEventsRequest { jobId: string; limit?: number; } export interface AdvancedSearchIndexHealthApiStartJobRequest { apiSearchIndexJobRequestDTO?: ApiSearchIndexJobRequestDTO; } /** * AdvancedSearchIndexHealthApi - interface * * @export * @interface AdvancedSearchIndexHealthApiInterface */ export interface AdvancedSearchIndexHealthApiInterface { /** * Return current index health (green/yellow/red), recommendation, and estate snapshot. Works on precomputed CURRENT rows in a constant number of round trips, refreshing the stored derived status as it goes. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ analyzeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return current index health (green/yellow/red), recommendation, and estate snapshot. Works on precomputed CURRENT rows in a constant number of round trips, refreshing the stored derived status as it goes. */ analyze(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Cancel the active job; Lucene keeps serving the blue index. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ cancelActiveJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancel the active job; Lucene keeps serving the blue index. */ cancelActiveJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return the active index job, if any. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ getActiveJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return the active index job, if any. */ getActiveJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return a job by id. * @param {string} jobId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ getJobRaw(requestParameters: AdvancedSearchIndexHealthApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return a job by id. */ getJob(requestParameters: AdvancedSearchIndexHealthApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return structured job events (activity log). * @param {string} jobId * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ getJobEventsRaw(requestParameters: AdvancedSearchIndexHealthApiGetJobEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Return structured job events (activity log). */ getJobEvents(requestParameters: AdvancedSearchIndexHealthApiGetJobEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start an index job (FULL_REBUILD or FIRST_TIME_INDEX). * @param {ApiSearchIndexJobRequestDTO} [apiSearchIndexJobRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AdvancedSearchIndexHealthApiInterface */ startJobRaw(requestParameters: AdvancedSearchIndexHealthApiStartJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start an index job (FULL_REBUILD or FIRST_TIME_INDEX). */ startJob(requestParameters: AdvancedSearchIndexHealthApiStartJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class AdvancedSearchIndexHealthApi extends runtime.BaseAPI implements AdvancedSearchIndexHealthApiInterface { /** * Return current index health (green/yellow/red), recommendation, and estate snapshot. Works on precomputed CURRENT rows in a constant number of round trips, refreshing the stored derived status as it goes. */ analyzeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return current index health (green/yellow/red), recommendation, and estate snapshot. Works on precomputed CURRENT rows in a constant number of round trips, refreshing the stored derived status as it goes. */ analyze(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Cancel the active job; Lucene keeps serving the blue index. */ cancelActiveJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Cancel the active job; Lucene keeps serving the blue index. */ cancelActiveJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return the active index job, if any. */ getActiveJobRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return the active index job, if any. */ getActiveJob(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return a job by id. */ getJobRaw(requestParameters: AdvancedSearchIndexHealthApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Return a job by id. */ getJob(requestParameters: AdvancedSearchIndexHealthApiGetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Return structured job events (activity log). */ getJobEventsRaw(requestParameters: AdvancedSearchIndexHealthApiGetJobEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Return structured job events (activity log). */ getJobEvents(requestParameters: AdvancedSearchIndexHealthApiGetJobEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start an index job (FULL_REBUILD or FIRST_TIME_INDEX). */ startJobRaw(requestParameters: AdvancedSearchIndexHealthApiStartJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Start an index job (FULL_REBUILD or FIRST_TIME_INDEX). */ startJob(requestParameters?: AdvancedSearchIndexHealthApiStartJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }