/* 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 { ApiComponentDTOV2 } from './ApiComponentDTOV2'; import { ApiComponentDTOV2FromJSON, ApiComponentDTOV2FromJSONTyped, ApiComponentDTOV2ToJSON, ApiComponentDTOV2ToJSONTyped, } from './ApiComponentDTOV2'; import type { ApiOwnerDTO } from './ApiOwnerDTO'; import { ApiOwnerDTOFromJSON, ApiOwnerDTOFromJSONTyped, ApiOwnerDTOToJSON, ApiOwnerDTOToJSONTyped, } from './ApiOwnerDTO'; /** * * @export * @interface ApiSecurityVulnerabilityOverrideDTOV2 */ export interface ApiSecurityVulnerabilityOverrideDTOV2 { /** * * @type {string} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ comment?: string; /** * * @type {Array} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ currentlyAffectedComponents?: Array; /** * * @type {string} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ hash?: string; /** * * @type {ApiOwnerDTO} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ owner?: ApiOwnerDTO; /** * * @type {string} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ referenceId?: string; /** * * @type {string} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ securityOverrideId?: string; /** * * @type {string} * @memberof ApiSecurityVulnerabilityOverrideDTOV2 */ status?: string; } /** * Check if a given object implements the ApiSecurityVulnerabilityOverrideDTOV2 interface. */ export function instanceOfApiSecurityVulnerabilityOverrideDTOV2(value: object): value is ApiSecurityVulnerabilityOverrideDTOV2 { return true; } export function ApiSecurityVulnerabilityOverrideDTOV2FromJSON(json: any): ApiSecurityVulnerabilityOverrideDTOV2 { return ApiSecurityVulnerabilityOverrideDTOV2FromJSONTyped(json, false); } export function ApiSecurityVulnerabilityOverrideDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSecurityVulnerabilityOverrideDTOV2 { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'currentlyAffectedComponents': json['currentlyAffectedComponents'] == null ? undefined : ((json['currentlyAffectedComponents'] as Array).map(ApiComponentDTOV2FromJSON)), 'hash': json['hash'] == null ? undefined : json['hash'], 'owner': json['owner'] == null ? undefined : ApiOwnerDTOFromJSON(json['owner']), 'referenceId': json['referenceId'] == null ? undefined : json['referenceId'], 'securityOverrideId': json['securityOverrideId'] == null ? undefined : json['securityOverrideId'], 'status': json['status'] == null ? undefined : json['status'], }; } export function ApiSecurityVulnerabilityOverrideDTOV2ToJSON(json: any): ApiSecurityVulnerabilityOverrideDTOV2 { return ApiSecurityVulnerabilityOverrideDTOV2ToJSONTyped(json, false); } export function ApiSecurityVulnerabilityOverrideDTOV2ToJSONTyped(value?: ApiSecurityVulnerabilityOverrideDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'currentlyAffectedComponents': value['currentlyAffectedComponents'] == null ? undefined : ((value['currentlyAffectedComponents'] as Array).map(ApiComponentDTOV2ToJSON)), 'hash': value['hash'], 'owner': ApiOwnerDTOToJSON(value['owner']), 'referenceId': value['referenceId'], 'securityOverrideId': value['securityOverrideId'], 'status': value['status'], }; }