/* 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'; /** * Response from a bulk legacy-violation mutation. * @export * @interface ApiLegacyViolationChangeResponseDTO */ export interface ApiLegacyViolationChangeResponseDTO { /** * Number of policy violations whose legacy status changed in this call. * @type {number} * @memberof ApiLegacyViolationChangeResponseDTO */ changedPolicyViolationCount?: number; } /** * Check if a given object implements the ApiLegacyViolationChangeResponseDTO interface. */ export function instanceOfApiLegacyViolationChangeResponseDTO(value: object): value is ApiLegacyViolationChangeResponseDTO { return true; } export function ApiLegacyViolationChangeResponseDTOFromJSON(json: any): ApiLegacyViolationChangeResponseDTO { return ApiLegacyViolationChangeResponseDTOFromJSONTyped(json, false); } export function ApiLegacyViolationChangeResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLegacyViolationChangeResponseDTO { if (json == null) { return json; } return { 'changedPolicyViolationCount': json['changedPolicyViolationCount'] == null ? undefined : json['changedPolicyViolationCount'], }; } export function ApiLegacyViolationChangeResponseDTOToJSON(json: any): ApiLegacyViolationChangeResponseDTO { return ApiLegacyViolationChangeResponseDTOToJSONTyped(json, false); } export function ApiLegacyViolationChangeResponseDTOToJSONTyped(value?: ApiLegacyViolationChangeResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'changedPolicyViolationCount': value['changedPolicyViolationCount'], }; }