/* 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 { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; import type { ApiDependencyDataDTO } from './ApiDependencyDataDTO'; import { ApiDependencyDataDTOFromJSON, ApiDependencyDataDTOFromJSONTyped, ApiDependencyDataDTOToJSON, ApiDependencyDataDTOToJSONTyped, } from './ApiDependencyDataDTO'; /** * * @export * @interface ApiSearchResultDTOV2 */ export interface ApiSearchResultDTOV2 { /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ applicationId?: string; /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ applicationName?: string; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiSearchResultDTOV2 */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {ApiDependencyDataDTO} * @memberof ApiSearchResultDTOV2 */ dependencyData?: ApiDependencyDataDTO; /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ hash?: string; /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ packageUrl?: string; /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ reportHtmlUrl?: string; /** * * @type {string} * @memberof ApiSearchResultDTOV2 */ reportUrl?: string; /** * * @type {number} * @memberof ApiSearchResultDTOV2 */ threatLevel?: number; } /** * Check if a given object implements the ApiSearchResultDTOV2 interface. */ export function instanceOfApiSearchResultDTOV2(value: object): value is ApiSearchResultDTOV2 { return true; } export function ApiSearchResultDTOV2FromJSON(json: any): ApiSearchResultDTOV2 { return ApiSearchResultDTOV2FromJSONTyped(json, false); } export function ApiSearchResultDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSearchResultDTOV2 { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'applicationName': json['applicationName'] == null ? undefined : json['applicationName'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'dependencyData': json['dependencyData'] == null ? undefined : ApiDependencyDataDTOFromJSON(json['dependencyData']), 'hash': json['hash'] == null ? undefined : json['hash'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], 'reportHtmlUrl': json['reportHtmlUrl'] == null ? undefined : json['reportHtmlUrl'], 'reportUrl': json['reportUrl'] == null ? undefined : json['reportUrl'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], }; } export function ApiSearchResultDTOV2ToJSON(json: any): ApiSearchResultDTOV2 { return ApiSearchResultDTOV2ToJSONTyped(json, false); } export function ApiSearchResultDTOV2ToJSONTyped(value?: ApiSearchResultDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'applicationName': value['applicationName'], 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'dependencyData': ApiDependencyDataDTOToJSON(value['dependencyData']), 'hash': value['hash'], 'packageUrl': value['packageUrl'], 'reportHtmlUrl': value['reportHtmlUrl'], 'reportUrl': value['reportUrl'], 'threatLevel': value['threatLevel'], }; }