/* 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'; import type { EvidencePath } from './EvidencePath'; import { EvidencePathFromJSON, EvidencePathFromJSONTyped, EvidencePathToJSON, EvidencePathToJSONTyped, } from './EvidencePath'; /** * * @export * @interface ApiReachabilityEvidenceResponse */ export interface ApiReachabilityEvidenceResponse { /** * * @type {Array} * @memberof ApiReachabilityEvidenceResponse */ paths?: Array; /** * * @type {boolean} * @memberof ApiReachabilityEvidenceResponse */ truncated?: boolean; /** * * @type {string} * @memberof ApiReachabilityEvidenceResponse */ vulnerabilityId?: string; } /** * Check if a given object implements the ApiReachabilityEvidenceResponse interface. */ export function instanceOfApiReachabilityEvidenceResponse(value: object): value is ApiReachabilityEvidenceResponse { return true; } export function ApiReachabilityEvidenceResponseFromJSON(json: any): ApiReachabilityEvidenceResponse { return ApiReachabilityEvidenceResponseFromJSONTyped(json, false); } export function ApiReachabilityEvidenceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReachabilityEvidenceResponse { if (json == null) { return json; } return { 'paths': json['paths'] == null ? undefined : ((json['paths'] as Array).map(EvidencePathFromJSON)), 'truncated': json['truncated'] == null ? undefined : json['truncated'], 'vulnerabilityId': json['vulnerabilityId'] == null ? undefined : json['vulnerabilityId'], }; } export function ApiReachabilityEvidenceResponseToJSON(json: any): ApiReachabilityEvidenceResponse { return ApiReachabilityEvidenceResponseToJSONTyped(json, false); } export function ApiReachabilityEvidenceResponseToJSONTyped(value?: ApiReachabilityEvidenceResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'paths': value['paths'] == null ? undefined : ((value['paths'] as Array).map(EvidencePathToJSON)), 'truncated': value['truncated'], 'vulnerabilityId': value['vulnerabilityId'], }; }