/* 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 { SecurityVulnerabilityCustomDataDTO } from './SecurityVulnerabilityCustomDataDTO'; import { SecurityVulnerabilityCustomDataDTOFromJSON, SecurityVulnerabilityCustomDataDTOFromJSONTyped, SecurityVulnerabilityCustomDataDTOToJSON, SecurityVulnerabilityCustomDataDTOToJSONTyped, } from './SecurityVulnerabilityCustomDataDTO'; import type { ApiSecurityIssueAnalysisDTO } from './ApiSecurityIssueAnalysisDTO'; import { ApiSecurityIssueAnalysisDTOFromJSON, ApiSecurityIssueAnalysisDTOFromJSONTyped, ApiSecurityIssueAnalysisDTOToJSON, ApiSecurityIssueAnalysisDTOToJSONTyped, } from './ApiSecurityIssueAnalysisDTO'; /** * * @export * @interface ApiSecurityIssueDTO */ export interface ApiSecurityIssueDTO { /** * * @type {ApiSecurityIssueAnalysisDTO} * @memberof ApiSecurityIssueDTO */ analysis?: ApiSecurityIssueAnalysisDTO; /** * * @type {SecurityVulnerabilityCustomDataDTO} * @memberof ApiSecurityIssueDTO */ customData?: SecurityVulnerabilityCustomDataDTO; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ cvssVector?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ cvssVectorSource?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ cwe?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ reference?: string; /** * * @type {number} * @memberof ApiSecurityIssueDTO */ severity?: number; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ source?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ status?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ threatCategory?: string; /** * * @type {string} * @memberof ApiSecurityIssueDTO */ url?: string; /** * * @type {Array} * @memberof ApiSecurityIssueDTO */ vulnIds?: Array; } /** * Check if a given object implements the ApiSecurityIssueDTO interface. */ export function instanceOfApiSecurityIssueDTO(value: object): value is ApiSecurityIssueDTO { return true; } export function ApiSecurityIssueDTOFromJSON(json: any): ApiSecurityIssueDTO { return ApiSecurityIssueDTOFromJSONTyped(json, false); } export function ApiSecurityIssueDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSecurityIssueDTO { if (json == null) { return json; } return { 'analysis': json['analysis'] == null ? undefined : ApiSecurityIssueAnalysisDTOFromJSON(json['analysis']), 'customData': json['customData'] == null ? undefined : SecurityVulnerabilityCustomDataDTOFromJSON(json['customData']), 'cvssVector': json['cvssVector'] == null ? undefined : json['cvssVector'], 'cvssVectorSource': json['cvssVectorSource'] == null ? undefined : json['cvssVectorSource'], 'cwe': json['cwe'] == null ? undefined : json['cwe'], 'reference': json['reference'] == null ? undefined : json['reference'], 'severity': json['severity'] == null ? undefined : json['severity'], 'source': json['source'] == null ? undefined : json['source'], 'status': json['status'] == null ? undefined : json['status'], 'threatCategory': json['threatCategory'] == null ? undefined : json['threatCategory'], 'url': json['url'] == null ? undefined : json['url'], 'vulnIds': json['vulnIds'] == null ? undefined : json['vulnIds'], }; } export function ApiSecurityIssueDTOToJSON(json: any): ApiSecurityIssueDTO { return ApiSecurityIssueDTOToJSONTyped(json, false); } export function ApiSecurityIssueDTOToJSONTyped(value?: ApiSecurityIssueDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'analysis': ApiSecurityIssueAnalysisDTOToJSON(value['analysis']), 'customData': SecurityVulnerabilityCustomDataDTOToJSON(value['customData']), 'cvssVector': value['cvssVector'], 'cvssVectorSource': value['cvssVectorSource'], 'cwe': value['cwe'], 'reference': value['reference'], 'severity': value['severity'], 'source': value['source'], 'status': value['status'], 'threatCategory': value['threatCategory'], 'url': value['url'], 'vulnIds': value['vulnIds'], }; }