/* 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 { ComponentIdentifier } from './ComponentIdentifier'; import { ComponentIdentifierFromJSON, ComponentIdentifierFromJSONTyped, ComponentIdentifierToJSON, ComponentIdentifierToJSONTyped, } from './ComponentIdentifier'; import type { ConstraintFact } from './ConstraintFact'; import { ConstraintFactFromJSON, ConstraintFactFromJSONTyped, ConstraintFactToJSON, ConstraintFactToJSONTyped, } from './ConstraintFact'; /** * * @export * @interface ApiAutoPolicyWaiverExclusionResponseDTO */ export interface ApiAutoPolicyWaiverExclusionResponseDTO { /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ autoPolicyWaiverExclusionId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ autoPolicyWaiverId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ componentDisplayName?: string; /** * * @type {ComponentIdentifier} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ componentIdentifier?: ComponentIdentifier; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ componentMatchStrategy?: ApiAutoPolicyWaiverExclusionResponseDTOComponentMatchStrategyEnum; /** * * @type {Array} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ constraintFacts?: Array; /** * * @type {Date} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ createTime?: Date; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ creatorId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ creatorName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ hash?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ ownerName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ ownerPublicId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ ownerType?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ policyId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ policyName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ policyViolationId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ scanId?: string; /** * * @type {number} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ threatLevel?: number; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionResponseDTO */ vulnerabilityIdentifiers?: string; } /** * @export */ export const ApiAutoPolicyWaiverExclusionResponseDTOComponentMatchStrategyEnum = { ExactComponent: 'EXACT_COMPONENT', AllVersions: 'ALL_VERSIONS', PolicyViolation: 'POLICY_VIOLATION' } as const; export type ApiAutoPolicyWaiverExclusionResponseDTOComponentMatchStrategyEnum = typeof ApiAutoPolicyWaiverExclusionResponseDTOComponentMatchStrategyEnum[keyof typeof ApiAutoPolicyWaiverExclusionResponseDTOComponentMatchStrategyEnum]; /** * Check if a given object implements the ApiAutoPolicyWaiverExclusionResponseDTO interface. */ export function instanceOfApiAutoPolicyWaiverExclusionResponseDTO(value: object): value is ApiAutoPolicyWaiverExclusionResponseDTO { return true; } export function ApiAutoPolicyWaiverExclusionResponseDTOFromJSON(json: any): ApiAutoPolicyWaiverExclusionResponseDTO { return ApiAutoPolicyWaiverExclusionResponseDTOFromJSONTyped(json, false); } export function ApiAutoPolicyWaiverExclusionResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAutoPolicyWaiverExclusionResponseDTO { if (json == null) { return json; } return { 'autoPolicyWaiverExclusionId': json['autoPolicyWaiverExclusionId'] == null ? undefined : json['autoPolicyWaiverExclusionId'], 'autoPolicyWaiverId': json['autoPolicyWaiverId'] == null ? undefined : json['autoPolicyWaiverId'], 'componentDisplayName': json['componentDisplayName'] == null ? undefined : json['componentDisplayName'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ComponentIdentifierFromJSON(json['componentIdentifier']), 'componentMatchStrategy': json['componentMatchStrategy'] == null ? undefined : json['componentMatchStrategy'], 'constraintFacts': json['constraintFacts'] == null ? undefined : ((json['constraintFacts'] as Array).map(ConstraintFactFromJSON)), 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'creatorId': json['creatorId'] == null ? undefined : json['creatorId'], 'creatorName': json['creatorName'] == null ? undefined : json['creatorName'], 'hash': json['hash'] == null ? undefined : json['hash'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerName': json['ownerName'] == null ? undefined : json['ownerName'], 'ownerPublicId': json['ownerPublicId'] == null ? undefined : json['ownerPublicId'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], 'policyId': json['policyId'] == null ? undefined : json['policyId'], 'policyName': json['policyName'] == null ? undefined : json['policyName'], 'policyViolationId': json['policyViolationId'] == null ? undefined : json['policyViolationId'], 'scanId': json['scanId'] == null ? undefined : json['scanId'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], 'vulnerabilityIdentifiers': json['vulnerabilityIdentifiers'] == null ? undefined : json['vulnerabilityIdentifiers'], }; } export function ApiAutoPolicyWaiverExclusionResponseDTOToJSON(json: any): ApiAutoPolicyWaiverExclusionResponseDTO { return ApiAutoPolicyWaiverExclusionResponseDTOToJSONTyped(json, false); } export function ApiAutoPolicyWaiverExclusionResponseDTOToJSONTyped(value?: ApiAutoPolicyWaiverExclusionResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'autoPolicyWaiverExclusionId': value['autoPolicyWaiverExclusionId'], 'autoPolicyWaiverId': value['autoPolicyWaiverId'], 'componentDisplayName': value['componentDisplayName'], 'componentIdentifier': ComponentIdentifierToJSON(value['componentIdentifier']), 'componentMatchStrategy': value['componentMatchStrategy'], 'constraintFacts': value['constraintFacts'] == null ? undefined : ((value['constraintFacts'] as Array).map(ConstraintFactToJSON)), 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'creatorId': value['creatorId'], 'creatorName': value['creatorName'], 'hash': value['hash'], 'ownerId': value['ownerId'], 'ownerName': value['ownerName'], 'ownerPublicId': value['ownerPublicId'], 'ownerType': value['ownerType'], 'policyId': value['policyId'], 'policyName': value['policyName'], 'policyViolationId': value['policyViolationId'], 'scanId': value['scanId'], 'threatLevel': value['threatLevel'], 'vulnerabilityIdentifiers': value['vulnerabilityIdentifiers'], }; }