/* 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 ApiPolicyWaiverRequestOptionsDTO */ export interface ApiPolicyWaiverRequestOptionsDTO { /** * * @type {string} * @memberof ApiPolicyWaiverRequestOptionsDTO */ comment?: string; /** * * @type {boolean} * @memberof ApiPolicyWaiverRequestOptionsDTO */ expireWhenRemediationAvailable?: boolean; /** * * @type {Date} * @memberof ApiPolicyWaiverRequestOptionsDTO */ expiryTime?: Date; /** * * @type {string} * @memberof ApiPolicyWaiverRequestOptionsDTO */ matcherStrategy?: ApiPolicyWaiverRequestOptionsDTOMatcherStrategyEnum; /** * * @type {string} * @memberof ApiPolicyWaiverRequestOptionsDTO */ noteToReviewer?: string; /** * * @type {string} * @memberof ApiPolicyWaiverRequestOptionsDTO */ waiverReasonId?: string; } /** * @export */ export const ApiPolicyWaiverRequestOptionsDTOMatcherStrategyEnum = { Default: 'DEFAULT', ExactComponent: 'EXACT_COMPONENT', AllComponents: 'ALL_COMPONENTS', AllVersions: 'ALL_VERSIONS' } as const; export type ApiPolicyWaiverRequestOptionsDTOMatcherStrategyEnum = typeof ApiPolicyWaiverRequestOptionsDTOMatcherStrategyEnum[keyof typeof ApiPolicyWaiverRequestOptionsDTOMatcherStrategyEnum]; /** * Check if a given object implements the ApiPolicyWaiverRequestOptionsDTO interface. */ export function instanceOfApiPolicyWaiverRequestOptionsDTO(value: object): value is ApiPolicyWaiverRequestOptionsDTO { return true; } export function ApiPolicyWaiverRequestOptionsDTOFromJSON(json: any): ApiPolicyWaiverRequestOptionsDTO { return ApiPolicyWaiverRequestOptionsDTOFromJSONTyped(json, false); } export function ApiPolicyWaiverRequestOptionsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPolicyWaiverRequestOptionsDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'expireWhenRemediationAvailable': json['expireWhenRemediationAvailable'] == null ? undefined : json['expireWhenRemediationAvailable'], 'expiryTime': json['expiryTime'] == null ? undefined : (new Date(json['expiryTime'])), 'matcherStrategy': json['matcherStrategy'] == null ? undefined : json['matcherStrategy'], 'noteToReviewer': json['noteToReviewer'] == null ? undefined : json['noteToReviewer'], 'waiverReasonId': json['waiverReasonId'] == null ? undefined : json['waiverReasonId'], }; } export function ApiPolicyWaiverRequestOptionsDTOToJSON(json: any): ApiPolicyWaiverRequestOptionsDTO { return ApiPolicyWaiverRequestOptionsDTOToJSONTyped(json, false); } export function ApiPolicyWaiverRequestOptionsDTOToJSONTyped(value?: ApiPolicyWaiverRequestOptionsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'expireWhenRemediationAvailable': value['expireWhenRemediationAvailable'], 'expiryTime': value['expiryTime'] == null ? value['expiryTime'] : value['expiryTime'].toISOString(), 'matcherStrategy': value['matcherStrategy'], 'noteToReviewer': value['noteToReviewer'], 'waiverReasonId': value['waiverReasonId'], }; }