/* 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 ApiSearchIndexAnalyzeDTO */ export interface ApiSearchIndexAnalyzeDTO { /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ activeJobId?: string; /** * * @type {boolean} * @memberof ApiSearchIndexAnalyzeDTO */ advancedSearchEnabled?: boolean; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ applicationCount?: number; /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ buildingGenerationId?: string; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ componentCount?: number; /** * * @type {Date} * @memberof ApiSearchIndexAnalyzeDTO */ estateCapturedAt?: Date; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ etaHighMinutes?: number; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ etaLowMinutes?: number; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ failedChangeCount?: number; /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ healthStatus?: string; /** * * @type {Date} * @memberof ApiSearchIndexAnalyzeDTO */ lastCleanupAt?: Date; /** * * @type {Date} * @memberof ApiSearchIndexAnalyzeDTO */ lastSuccessfulCutoverAt?: Date; /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ nouxUnlockState?: string; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ pendingChangeCount?: number; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ queueLagSeconds?: number; /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ recommendedOp?: string; /** * * @type {string} * @memberof ApiSearchIndexAnalyzeDTO */ servingGenerationId?: string; /** * * @type {number} * @memberof ApiSearchIndexAnalyzeDTO */ violationCount?: number; } /** * Check if a given object implements the ApiSearchIndexAnalyzeDTO interface. */ export function instanceOfApiSearchIndexAnalyzeDTO(value: object): value is ApiSearchIndexAnalyzeDTO { return true; } export function ApiSearchIndexAnalyzeDTOFromJSON(json: any): ApiSearchIndexAnalyzeDTO { return ApiSearchIndexAnalyzeDTOFromJSONTyped(json, false); } export function ApiSearchIndexAnalyzeDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchIndexAnalyzeDTO { if (json == null) { return json; } return { 'activeJobId': json['activeJobId'] == null ? undefined : json['activeJobId'], 'advancedSearchEnabled': json['advancedSearchEnabled'] == null ? undefined : json['advancedSearchEnabled'], 'applicationCount': json['applicationCount'] == null ? undefined : json['applicationCount'], 'buildingGenerationId': json['buildingGenerationId'] == null ? undefined : json['buildingGenerationId'], 'componentCount': json['componentCount'] == null ? undefined : json['componentCount'], 'estateCapturedAt': json['estateCapturedAt'] == null ? undefined : (new Date(json['estateCapturedAt'])), 'etaHighMinutes': json['etaHighMinutes'] == null ? undefined : json['etaHighMinutes'], 'etaLowMinutes': json['etaLowMinutes'] == null ? undefined : json['etaLowMinutes'], 'failedChangeCount': json['failedChangeCount'] == null ? undefined : json['failedChangeCount'], 'healthStatus': json['healthStatus'] == null ? undefined : json['healthStatus'], 'lastCleanupAt': json['lastCleanupAt'] == null ? undefined : (new Date(json['lastCleanupAt'])), 'lastSuccessfulCutoverAt': json['lastSuccessfulCutoverAt'] == null ? undefined : (new Date(json['lastSuccessfulCutoverAt'])), 'nouxUnlockState': json['nouxUnlockState'] == null ? undefined : json['nouxUnlockState'], 'pendingChangeCount': json['pendingChangeCount'] == null ? undefined : json['pendingChangeCount'], 'queueLagSeconds': json['queueLagSeconds'] == null ? undefined : json['queueLagSeconds'], 'recommendedOp': json['recommendedOp'] == null ? undefined : json['recommendedOp'], 'servingGenerationId': json['servingGenerationId'] == null ? undefined : json['servingGenerationId'], 'violationCount': json['violationCount'] == null ? undefined : json['violationCount'], }; } export function ApiSearchIndexAnalyzeDTOToJSON(json: any): ApiSearchIndexAnalyzeDTO { return ApiSearchIndexAnalyzeDTOToJSONTyped(json, false); } export function ApiSearchIndexAnalyzeDTOToJSONTyped(value?: ApiSearchIndexAnalyzeDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'activeJobId': value['activeJobId'], 'advancedSearchEnabled': value['advancedSearchEnabled'], 'applicationCount': value['applicationCount'], 'buildingGenerationId': value['buildingGenerationId'], 'componentCount': value['componentCount'], 'estateCapturedAt': value['estateCapturedAt'] == null ? value['estateCapturedAt'] : value['estateCapturedAt'].toISOString(), 'etaHighMinutes': value['etaHighMinutes'], 'etaLowMinutes': value['etaLowMinutes'], 'failedChangeCount': value['failedChangeCount'], 'healthStatus': value['healthStatus'], 'lastCleanupAt': value['lastCleanupAt'] == null ? value['lastCleanupAt'] : value['lastCleanupAt'].toISOString(), 'lastSuccessfulCutoverAt': value['lastSuccessfulCutoverAt'] == null ? value['lastSuccessfulCutoverAt'] : value['lastSuccessfulCutoverAt'].toISOString(), 'nouxUnlockState': value['nouxUnlockState'], 'pendingChangeCount': value['pendingChangeCount'], 'queueLagSeconds': value['queueLagSeconds'], 'recommendedOp': value['recommendedOp'], 'servingGenerationId': value['servingGenerationId'], 'violationCount': value['violationCount'], }; }