/* 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 ValidationWarning */ export interface ValidationWarning { /** * * @type {string} * @memberof ValidationWarning */ message?: string; /** * * @type {string} * @memberof ValidationWarning */ type?: ValidationWarningTypeEnum; } /** * @export */ export const ValidationWarningTypeEnum = { LicenseOverride: 'LICENSE_OVERRIDE', PolicyMonitoring: 'POLICY_MONITORING', PolicyWaiver: 'POLICY_WAIVER' } as const; export type ValidationWarningTypeEnum = typeof ValidationWarningTypeEnum[keyof typeof ValidationWarningTypeEnum]; /** * Check if a given object implements the ValidationWarning interface. */ export function instanceOfValidationWarning(value: object): value is ValidationWarning { return true; } export function ValidationWarningFromJSON(json: any): ValidationWarning { return ValidationWarningFromJSONTyped(json, false); } export function ValidationWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationWarning { if (json == null) { return json; } return { 'message': json['message'] == null ? undefined : json['message'], 'type': json['type'] == null ? undefined : json['type'], }; } export function ValidationWarningToJSON(json: any): ValidationWarning { return ValidationWarningToJSONTyped(json, false); } export function ValidationWarningToJSONTyped(value?: ValidationWarning | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'message': value['message'], 'type': value['type'], }; }