/* 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'; /** * * @export * @interface ApiAutoPolicyWaiverExclusionRequestDTO */ export interface ApiAutoPolicyWaiverExclusionRequestDTO { /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ applicationPublicId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ autoPolicyWaiverId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ matchStrategy?: ApiAutoPolicyWaiverExclusionRequestDTOMatchStrategyEnum; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ policyViolationId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverExclusionRequestDTO */ scanId?: string; } /** * @export */ export const ApiAutoPolicyWaiverExclusionRequestDTOMatchStrategyEnum = { ExactComponent: 'EXACT_COMPONENT', AllVersions: 'ALL_VERSIONS', PolicyViolation: 'POLICY_VIOLATION' } as const; export type ApiAutoPolicyWaiverExclusionRequestDTOMatchStrategyEnum = typeof ApiAutoPolicyWaiverExclusionRequestDTOMatchStrategyEnum[keyof typeof ApiAutoPolicyWaiverExclusionRequestDTOMatchStrategyEnum]; /** * Check if a given object implements the ApiAutoPolicyWaiverExclusionRequestDTO interface. */ export function instanceOfApiAutoPolicyWaiverExclusionRequestDTO(value: object): value is ApiAutoPolicyWaiverExclusionRequestDTO { return true; } export function ApiAutoPolicyWaiverExclusionRequestDTOFromJSON(json: any): ApiAutoPolicyWaiverExclusionRequestDTO { return ApiAutoPolicyWaiverExclusionRequestDTOFromJSONTyped(json, false); } export function ApiAutoPolicyWaiverExclusionRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAutoPolicyWaiverExclusionRequestDTO { if (json == null) { return json; } return { 'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'], 'autoPolicyWaiverId': json['autoPolicyWaiverId'] == null ? undefined : json['autoPolicyWaiverId'], 'matchStrategy': json['matchStrategy'] == null ? undefined : json['matchStrategy'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'policyViolationId': json['policyViolationId'] == null ? undefined : json['policyViolationId'], 'scanId': json['scanId'] == null ? undefined : json['scanId'], }; } export function ApiAutoPolicyWaiverExclusionRequestDTOToJSON(json: any): ApiAutoPolicyWaiverExclusionRequestDTO { return ApiAutoPolicyWaiverExclusionRequestDTOToJSONTyped(json, false); } export function ApiAutoPolicyWaiverExclusionRequestDTOToJSONTyped(value?: ApiAutoPolicyWaiverExclusionRequestDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationPublicId': value['applicationPublicId'], 'autoPolicyWaiverId': value['autoPolicyWaiverId'], 'matchStrategy': value['matchStrategy'], 'ownerId': value['ownerId'], 'policyViolationId': value['policyViolationId'], 'scanId': value['scanId'], }; }