/* 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 { ApiEvaluationResultCounterDTO } from './ApiEvaluationResultCounterDTO'; import { ApiEvaluationResultCounterDTOFromJSON, ApiEvaluationResultCounterDTOFromJSONTyped, ApiEvaluationResultCounterDTOToJSON, ApiEvaluationResultCounterDTOToJSONTyped, } from './ApiEvaluationResultCounterDTO'; /** * * @export * @interface ApiThirdPartyScanResultDTO */ export interface ApiThirdPartyScanResultDTO { /** * * @type {ApiEvaluationResultCounterDTO} * @memberof ApiThirdPartyScanResultDTO */ componentsAffected?: ApiEvaluationResultCounterDTO; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ embeddableReportHtmlUrl?: string; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ errorMessage?: string; /** * * @type {number} * @memberof ApiThirdPartyScanResultDTO */ grandfatheredPolicyViolations?: number; /** * * @type {boolean} * @memberof ApiThirdPartyScanResultDTO */ isError?: boolean; /** * * @type {number} * @memberof ApiThirdPartyScanResultDTO */ legacyViolations?: number; /** * * @type {ApiEvaluationResultCounterDTO} * @memberof ApiThirdPartyScanResultDTO */ openPolicyViolations?: ApiEvaluationResultCounterDTO; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ policyAction?: string; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ reportDataUrl?: string; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ reportHtmlUrl?: string; /** * * @type {string} * @memberof ApiThirdPartyScanResultDTO */ reportPdfUrl?: string; } /** * Check if a given object implements the ApiThirdPartyScanResultDTO interface. */ export function instanceOfApiThirdPartyScanResultDTO(value: object): value is ApiThirdPartyScanResultDTO { return true; } export function ApiThirdPartyScanResultDTOFromJSON(json: any): ApiThirdPartyScanResultDTO { return ApiThirdPartyScanResultDTOFromJSONTyped(json, false); } export function ApiThirdPartyScanResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiThirdPartyScanResultDTO { if (json == null) { return json; } return { 'componentsAffected': json['componentsAffected'] == null ? undefined : ApiEvaluationResultCounterDTOFromJSON(json['componentsAffected']), 'embeddableReportHtmlUrl': json['embeddableReportHtmlUrl'] == null ? undefined : json['embeddableReportHtmlUrl'], 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'], 'grandfatheredPolicyViolations': json['grandfatheredPolicyViolations'] == null ? undefined : json['grandfatheredPolicyViolations'], 'isError': json['isError'] == null ? undefined : json['isError'], 'legacyViolations': json['legacyViolations'] == null ? undefined : json['legacyViolations'], 'openPolicyViolations': json['openPolicyViolations'] == null ? undefined : ApiEvaluationResultCounterDTOFromJSON(json['openPolicyViolations']), 'policyAction': json['policyAction'] == null ? undefined : json['policyAction'], 'reportDataUrl': json['reportDataUrl'] == null ? undefined : json['reportDataUrl'], 'reportHtmlUrl': json['reportHtmlUrl'] == null ? undefined : json['reportHtmlUrl'], 'reportPdfUrl': json['reportPdfUrl'] == null ? undefined : json['reportPdfUrl'], }; } export function ApiThirdPartyScanResultDTOToJSON(json: any): ApiThirdPartyScanResultDTO { return ApiThirdPartyScanResultDTOToJSONTyped(json, false); } export function ApiThirdPartyScanResultDTOToJSONTyped(value?: ApiThirdPartyScanResultDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentsAffected': ApiEvaluationResultCounterDTOToJSON(value['componentsAffected']), 'embeddableReportHtmlUrl': value['embeddableReportHtmlUrl'], 'errorMessage': value['errorMessage'], 'grandfatheredPolicyViolations': value['grandfatheredPolicyViolations'], 'isError': value['isError'], 'legacyViolations': value['legacyViolations'], 'openPolicyViolations': ApiEvaluationResultCounterDTOToJSON(value['openPolicyViolations']), 'policyAction': value['policyAction'], 'reportDataUrl': value['reportDataUrl'], 'reportHtmlUrl': value['reportHtmlUrl'], 'reportPdfUrl': value['reportPdfUrl'], }; }