/* 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 ApiReportRetentionPolicyDTO */ export interface ApiReportRetentionPolicyDTO { /** * * @type {boolean} * @memberof ApiReportRetentionPolicyDTO */ enablePurging?: boolean; /** * * @type {boolean} * @memberof ApiReportRetentionPolicyDTO */ inheritPolicy?: boolean; /** * * @type {string} * @memberof ApiReportRetentionPolicyDTO */ maxAge?: string; /** * * @type {number} * @memberof ApiReportRetentionPolicyDTO */ maxCount?: number; } /** * Check if a given object implements the ApiReportRetentionPolicyDTO interface. */ export function instanceOfApiReportRetentionPolicyDTO(value: object): value is ApiReportRetentionPolicyDTO { return true; } export function ApiReportRetentionPolicyDTOFromJSON(json: any): ApiReportRetentionPolicyDTO { return ApiReportRetentionPolicyDTOFromJSONTyped(json, false); } export function ApiReportRetentionPolicyDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiReportRetentionPolicyDTO { if (json == null) { return json; } return { 'enablePurging': json['enablePurging'] == null ? undefined : json['enablePurging'], 'inheritPolicy': json['inheritPolicy'] == null ? undefined : json['inheritPolicy'], 'maxAge': json['maxAge'] == null ? undefined : json['maxAge'], 'maxCount': json['maxCount'] == null ? undefined : json['maxCount'], }; } export function ApiReportRetentionPolicyDTOToJSON(json: any): ApiReportRetentionPolicyDTO { return ApiReportRetentionPolicyDTOToJSONTyped(json, false); } export function ApiReportRetentionPolicyDTOToJSONTyped(value?: ApiReportRetentionPolicyDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'enablePurging': value['enablePurging'], 'inheritPolicy': value['inheritPolicy'], 'maxAge': value['maxAge'], 'maxCount': value['maxCount'], }; }