/* 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 { ApiLicenseDataDTOV2 } from './ApiLicenseDataDTOV2'; import { ApiLicenseDataDTOV2FromJSON, ApiLicenseDataDTOV2FromJSONTyped, ApiLicenseDataDTOV2ToJSON, ApiLicenseDataDTOV2ToJSONTyped, } from './ApiLicenseDataDTOV2'; import type { Swid } from './Swid'; import { SwidFromJSON, SwidFromJSONTyped, SwidToJSON, SwidToJSONTyped, } from './Swid'; import type { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; import type { ApiAiModelDataDTO } from './ApiAiModelDataDTO'; import { ApiAiModelDataDTOFromJSON, ApiAiModelDataDTOFromJSONTyped, ApiAiModelDataDTOToJSON, ApiAiModelDataDTOToJSONTyped, } from './ApiAiModelDataDTO'; import type { ApiDependencyDataDTO } from './ApiDependencyDataDTO'; import { ApiDependencyDataDTOFromJSON, ApiDependencyDataDTOFromJSONTyped, ApiDependencyDataDTOToJSON, ApiDependencyDataDTOToJSONTyped, } from './ApiDependencyDataDTO'; import type { ApiSecurityDataDTO } from './ApiSecurityDataDTO'; import { ApiSecurityDataDTOFromJSON, ApiSecurityDataDTOFromJSONTyped, ApiSecurityDataDTOToJSON, ApiSecurityDataDTOToJSONTyped, } from './ApiSecurityDataDTO'; /** * * @export * @interface ApiReportComponentDTOV2 */ export interface ApiReportComponentDTOV2 { /** * * @type {ApiAiModelDataDTO} * @memberof ApiReportComponentDTOV2 */ aiModelData?: ApiAiModelDataDTO; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiReportComponentDTOV2 */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ cpe?: string; /** * * @type {ApiDependencyDataDTO} * @memberof ApiReportComponentDTOV2 */ dependencyData?: ApiDependencyDataDTO; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ displayName?: string; /** * * @type {Array} * @memberof ApiReportComponentDTOV2 */ filenames?: Array; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ hash?: string; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ identificationSource?: string; /** * * @type {ApiLicenseDataDTOV2} * @memberof ApiReportComponentDTOV2 */ licenseData?: ApiLicenseDataDTOV2; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ matchState?: string; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ originalPurl?: string; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ packageUrl?: string; /** * * @type {Array} * @memberof ApiReportComponentDTOV2 */ pathnames?: Array; /** * * @type {boolean} * @memberof ApiReportComponentDTOV2 */ proprietary?: boolean; /** * * @type {ApiSecurityDataDTO} * @memberof ApiReportComponentDTOV2 */ securityData?: ApiSecurityDataDTO; /** * * @type {string} * @memberof ApiReportComponentDTOV2 */ sha256?: string; /** * * @type {Swid} * @memberof ApiReportComponentDTOV2 */ swid?: Swid; /** * * @type {boolean} * @memberof ApiReportComponentDTOV2 */ thirdParty?: boolean; } /** * Check if a given object implements the ApiReportComponentDTOV2 interface. */ export function instanceOfApiReportComponentDTOV2(value: object): value is ApiReportComponentDTOV2 { return true; } export function ApiReportComponentDTOV2FromJSON(json: any): ApiReportComponentDTOV2 { return ApiReportComponentDTOV2FromJSONTyped(json, false); } export function ApiReportComponentDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReportComponentDTOV2 { if (json == null) { return json; } return { 'aiModelData': json['aiModelData'] == null ? undefined : ApiAiModelDataDTOFromJSON(json['aiModelData']), 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(json['componentIdentifier']), 'cpe': json['cpe'] == null ? undefined : json['cpe'], 'dependencyData': json['dependencyData'] == null ? undefined : ApiDependencyDataDTOFromJSON(json['dependencyData']), 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'filenames': json['filenames'] == null ? undefined : json['filenames'], 'hash': json['hash'] == null ? undefined : json['hash'], 'identificationSource': json['identificationSource'] == null ? undefined : json['identificationSource'], 'licenseData': json['licenseData'] == null ? undefined : ApiLicenseDataDTOV2FromJSON(json['licenseData']), 'matchState': json['matchState'] == null ? undefined : json['matchState'], 'originalPurl': json['originalPurl'] == null ? undefined : json['originalPurl'], 'packageUrl': json['packageUrl'] == null ? undefined : json['packageUrl'], 'pathnames': json['pathnames'] == null ? undefined : json['pathnames'], 'proprietary': json['proprietary'] == null ? undefined : json['proprietary'], 'securityData': json['securityData'] == null ? undefined : ApiSecurityDataDTOFromJSON(json['securityData']), 'sha256': json['sha256'] == null ? undefined : json['sha256'], 'swid': json['swid'] == null ? undefined : SwidFromJSON(json['swid']), 'thirdParty': json['thirdParty'] == null ? undefined : json['thirdParty'], }; } export function ApiReportComponentDTOV2ToJSON(json: any): ApiReportComponentDTOV2 { return ApiReportComponentDTOV2ToJSONTyped(json, false); } export function ApiReportComponentDTOV2ToJSONTyped(value?: ApiReportComponentDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'aiModelData': ApiAiModelDataDTOToJSON(value['aiModelData']), 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'cpe': value['cpe'], 'dependencyData': ApiDependencyDataDTOToJSON(value['dependencyData']), 'displayName': value['displayName'], 'filenames': value['filenames'], 'hash': value['hash'], 'identificationSource': value['identificationSource'], 'licenseData': ApiLicenseDataDTOV2ToJSON(value['licenseData']), 'matchState': value['matchState'], 'originalPurl': value['originalPurl'], 'packageUrl': value['packageUrl'], 'pathnames': value['pathnames'], 'proprietary': value['proprietary'], 'securityData': ApiSecurityDataDTOToJSON(value['securityData']), 'sha256': value['sha256'], 'swid': SwidToJSON(value['swid']), 'thirdParty': value['thirdParty'], }; }