/* 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 { PolicyEvaluationResult } from './PolicyEvaluationResult'; import { PolicyEvaluationResultFromJSON, PolicyEvaluationResultFromJSONTyped, PolicyEvaluationResultToJSON, PolicyEvaluationResultToJSONTyped, } from './PolicyEvaluationResult'; /** * * @export * @interface ApiReportResultsDTO */ export interface ApiReportResultsDTO { /** * * @type {string} * @memberof ApiReportResultsDTO */ applicationId?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ commitHash?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ embeddableReportHtmlUrl?: string; /** * * @type {Date} * @memberof ApiReportResultsDTO */ evaluationDate?: Date; /** * * @type {boolean} * @memberof ApiReportResultsDTO */ isForMonitoring?: boolean; /** * * @type {boolean} * @memberof ApiReportResultsDTO */ isReevaluation?: boolean; /** * * @type {string} * @memberof ApiReportResultsDTO */ latestReportHtmlUrl?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ policyEvaluationId?: string; /** * * @type {PolicyEvaluationResult} * @memberof ApiReportResultsDTO */ policyEvaluationResult?: PolicyEvaluationResult; /** * * @type {string} * @memberof ApiReportResultsDTO */ reportDataUrl?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ reportHtmlUrl?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ reportPdfUrl?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ scanId?: string; /** * * @type {boolean} * @memberof ApiReportResultsDTO */ scanTriggerInternal?: boolean; /** * * @type {string} * @memberof ApiReportResultsDTO */ scanTriggerType?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ scanTriggerTypeDisplayName?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ scannerVersion?: string; /** * * @type {string} * @memberof ApiReportResultsDTO */ stage?: string; } /** * Check if a given object implements the ApiReportResultsDTO interface. */ export function instanceOfApiReportResultsDTO(value: object): value is ApiReportResultsDTO { return true; } export function ApiReportResultsDTOFromJSON(json: any): ApiReportResultsDTO { return ApiReportResultsDTOFromJSONTyped(json, false); } export function ApiReportResultsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReportResultsDTO { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'commitHash': json['commitHash'] == null ? undefined : json['commitHash'], 'embeddableReportHtmlUrl': json['embeddableReportHtmlUrl'] == null ? undefined : json['embeddableReportHtmlUrl'], 'evaluationDate': json['evaluationDate'] == null ? undefined : (new Date(json['evaluationDate'])), 'isForMonitoring': json['isForMonitoring'] == null ? undefined : json['isForMonitoring'], 'isReevaluation': json['isReevaluation'] == null ? undefined : json['isReevaluation'], 'latestReportHtmlUrl': json['latestReportHtmlUrl'] == null ? undefined : json['latestReportHtmlUrl'], 'policyEvaluationId': json['policyEvaluationId'] == null ? undefined : json['policyEvaluationId'], 'policyEvaluationResult': json['policyEvaluationResult'] == null ? undefined : PolicyEvaluationResultFromJSON(json['policyEvaluationResult']), 'reportDataUrl': json['reportDataUrl'] == null ? undefined : json['reportDataUrl'], 'reportHtmlUrl': json['reportHtmlUrl'] == null ? undefined : json['reportHtmlUrl'], 'reportPdfUrl': json['reportPdfUrl'] == null ? undefined : json['reportPdfUrl'], 'scanId': json['scanId'] == null ? undefined : json['scanId'], 'scanTriggerInternal': json['scanTriggerInternal'] == null ? undefined : json['scanTriggerInternal'], 'scanTriggerType': json['scanTriggerType'] == null ? undefined : json['scanTriggerType'], 'scanTriggerTypeDisplayName': json['scanTriggerTypeDisplayName'] == null ? undefined : json['scanTriggerTypeDisplayName'], 'scannerVersion': json['scannerVersion'] == null ? undefined : json['scannerVersion'], 'stage': json['stage'] == null ? undefined : json['stage'], }; } export function ApiReportResultsDTOToJSON(json: any): ApiReportResultsDTO { return ApiReportResultsDTOToJSONTyped(json, false); } export function ApiReportResultsDTOToJSONTyped(value?: ApiReportResultsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'commitHash': value['commitHash'], 'embeddableReportHtmlUrl': value['embeddableReportHtmlUrl'], 'evaluationDate': value['evaluationDate'] == null ? value['evaluationDate'] : value['evaluationDate'].toISOString(), 'isForMonitoring': value['isForMonitoring'], 'isReevaluation': value['isReevaluation'], 'latestReportHtmlUrl': value['latestReportHtmlUrl'], 'policyEvaluationId': value['policyEvaluationId'], 'policyEvaluationResult': PolicyEvaluationResultToJSON(value['policyEvaluationResult']), 'reportDataUrl': value['reportDataUrl'], 'reportHtmlUrl': value['reportHtmlUrl'], 'reportPdfUrl': value['reportPdfUrl'], 'scanId': value['scanId'], 'scanTriggerInternal': value['scanTriggerInternal'], 'scanTriggerType': value['scanTriggerType'], 'scanTriggerTypeDisplayName': value['scanTriggerTypeDisplayName'], 'scannerVersion': value['scannerVersion'], 'stage': value['stage'], }; }