/* 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 { ApiComponentProjectDataDTO } from './ApiComponentProjectDataDTO'; import { ApiComponentProjectDataDTOFromJSON, ApiComponentProjectDataDTOFromJSONTyped, ApiComponentProjectDataDTOToJSON, ApiComponentProjectDataDTOToJSONTyped, } from './ApiComponentProjectDataDTO'; import type { ApiComponentPolicyViolationListDTOV2 } from './ApiComponentPolicyViolationListDTOV2'; import { ApiComponentPolicyViolationListDTOV2FromJSON, ApiComponentPolicyViolationListDTOV2FromJSONTyped, ApiComponentPolicyViolationListDTOV2ToJSON, ApiComponentPolicyViolationListDTOV2ToJSONTyped, } from './ApiComponentPolicyViolationListDTOV2'; import type { ApiLicenseDataDTO } from './ApiLicenseDataDTO'; import { ApiLicenseDataDTOFromJSON, ApiLicenseDataDTOFromJSONTyped, ApiLicenseDataDTOToJSON, ApiLicenseDataDTOToJSONTyped, } from './ApiLicenseDataDTO'; import type { ApiSecurityDataDTO } from './ApiSecurityDataDTO'; import { ApiSecurityDataDTOFromJSON, ApiSecurityDataDTOFromJSONTyped, ApiSecurityDataDTOToJSON, ApiSecurityDataDTOToJSONTyped, } from './ApiSecurityDataDTO'; /** * * @export * @interface ApiComponentDetailsDTOV2 */ export interface ApiComponentDetailsDTOV2 { /** * * @type {string} * @memberof ApiComponentDetailsDTOV2 */ catalogDate?: string; /** * * @type {ApiComponentDTOV2} * @memberof ApiComponentDetailsDTOV2 */ component?: ApiComponentDTOV2; /** * * @type {string} * @memberof ApiComponentDetailsDTOV2 */ hygieneRating?: string | null; /** * * @type {string} * @memberof ApiComponentDetailsDTOV2 */ integrityRating?: string | null; /** * * @type {ApiLicenseDataDTO} * @memberof ApiComponentDetailsDTOV2 */ licenseData?: ApiLicenseDataDTO; /** * * @type {string} * @memberof ApiComponentDetailsDTOV2 */ matchState?: string; /** * * @type {ApiComponentPolicyViolationListDTOV2} * @memberof ApiComponentDetailsDTOV2 */ policyData?: ApiComponentPolicyViolationListDTOV2; /** * * @type {ApiComponentProjectDataDTO} * @memberof ApiComponentDetailsDTOV2 */ projectData?: ApiComponentProjectDataDTO; /** * * @type {number} * @memberof ApiComponentDetailsDTOV2 */ relativePopularity?: number | null; /** * * @type {ApiSecurityDataDTO} * @memberof ApiComponentDetailsDTOV2 */ securityData?: ApiSecurityDataDTO; } /** * Check if a given object implements the ApiComponentDetailsDTOV2 interface. */ export function instanceOfApiComponentDetailsDTOV2(value: object): value is ApiComponentDetailsDTOV2 { return true; } export function ApiComponentDetailsDTOV2FromJSON(json: any): ApiComponentDetailsDTOV2 { return ApiComponentDetailsDTOV2FromJSONTyped(json, false); } export function ApiComponentDetailsDTOV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiComponentDetailsDTOV2 { if (json == null) { return json; } return { 'catalogDate': json['catalogDate'] == null ? undefined : json['catalogDate'], 'component': json['component'] == null ? undefined : ApiComponentDTOV2FromJSON(json['component']), 'hygieneRating': json['hygieneRating'] == null ? undefined : json['hygieneRating'], 'integrityRating': json['integrityRating'] == null ? undefined : json['integrityRating'], 'licenseData': json['licenseData'] == null ? undefined : ApiLicenseDataDTOFromJSON(json['licenseData']), 'matchState': json['matchState'] == null ? undefined : json['matchState'], 'policyData': json['policyData'] == null ? undefined : ApiComponentPolicyViolationListDTOV2FromJSON(json['policyData']), 'projectData': json['projectData'] == null ? undefined : ApiComponentProjectDataDTOFromJSON(json['projectData']), 'relativePopularity': json['relativePopularity'] == null ? undefined : json['relativePopularity'], 'securityData': json['securityData'] == null ? undefined : ApiSecurityDataDTOFromJSON(json['securityData']), }; } export function ApiComponentDetailsDTOV2ToJSON(json: any): ApiComponentDetailsDTOV2 { return ApiComponentDetailsDTOV2ToJSONTyped(json, false); } export function ApiComponentDetailsDTOV2ToJSONTyped(value?: ApiComponentDetailsDTOV2 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'catalogDate': value['catalogDate'], 'component': ApiComponentDTOV2ToJSON(value['component']), 'hygieneRating': value['hygieneRating'], 'integrityRating': value['integrityRating'], 'licenseData': ApiLicenseDataDTOToJSON(value['licenseData']), 'matchState': value['matchState'], 'policyData': ApiComponentPolicyViolationListDTOV2ToJSON(value['policyData']), 'projectData': ApiComponentProjectDataDTOToJSON(value['projectData']), 'relativePopularity': value['relativePopularity'], 'securityData': ApiSecurityDataDTOToJSON(value['securityData']), }; }