/** * 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. */ /** * Options for creating policy waivers * @export * @interface ApiWaiverOptionsDTO */ export interface ApiWaiverOptionsDTO { /** * Reason for waiving the violation(s). Must be non-blank. * @type {string} * @memberof ApiWaiverOptionsDTO */ comment: string; /** * If true, the waiver will automatically expire when a remediation becomes available. Can only be set to true when matcherStrategy is EXACT_COMPONENT. * @type {boolean} * @memberof ApiWaiverOptionsDTO */ expireWhenRemediationAvailable?: boolean; /** * Optional expiration date/time for the waiver in ISO 8601 format. Must be in the future if provided. * @type {Date} * @memberof ApiWaiverOptionsDTO */ expiryTime?: Date; /** * Component matching strategy. For Firewall bulk waivers, only EXACT_COMPONENT and ALL_VERSIONS are supported. * @type {string} * @memberof ApiWaiverOptionsDTO */ matcherStrategy: ApiWaiverOptionsDTOMatcherStrategyEnum; /** * Optional reference to a pre-defined waiver reason ID * @type {string} * @memberof ApiWaiverOptionsDTO */ waiverReasonId?: string; } /** * @export */ export declare const ApiWaiverOptionsDTOMatcherStrategyEnum: { readonly Default: "DEFAULT"; readonly ExactComponent: "EXACT_COMPONENT"; readonly AllComponents: "ALL_COMPONENTS"; readonly AllVersions: "ALL_VERSIONS"; readonly ExactComponent2: "EXACT_COMPONENT"; readonly AllVersions2: "ALL_VERSIONS"; }; export type ApiWaiverOptionsDTOMatcherStrategyEnum = typeof ApiWaiverOptionsDTOMatcherStrategyEnum[keyof typeof ApiWaiverOptionsDTOMatcherStrategyEnum]; /** * Check if a given object implements the ApiWaiverOptionsDTO interface. */ export declare function instanceOfApiWaiverOptionsDTO(value: object): value is ApiWaiverOptionsDTO; export declare function ApiWaiverOptionsDTOFromJSON(json: any): ApiWaiverOptionsDTO; export declare function ApiWaiverOptionsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiWaiverOptionsDTO; export declare function ApiWaiverOptionsDTOToJSON(json: any): ApiWaiverOptionsDTO; export declare function ApiWaiverOptionsDTOToJSONTyped(value?: ApiWaiverOptionsDTO | null, ignoreDiscriminator?: boolean): any;