/* 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'; /** * Legacy-violation status for an application or organization. * @export * @interface ApiLegacyViolationStatusDTO */ export interface ApiLegacyViolationStatusDTO { /** * Whether the legacy status can be changed for this owner. * @type {boolean} * @memberof ApiLegacyViolationStatusDTO */ readonly allowChange?: boolean; /** * Whether children (orgs and apps) are allowed to override the legacy status. Organization-only. Primitive boolean: an absent or null value in the request body is treated as false. * @type {boolean} * @memberof ApiLegacyViolationStatusDTO */ allowOverride?: boolean; /** * Whether legacy violations are enabled. null means inherit from the parent organization. * @type {boolean} * @memberof ApiLegacyViolationStatusDTO */ enabled?: boolean; /** * Whether legacy violations are enabled in the parent organization. null when no parent set this value. * @type {boolean} * @memberof ApiLegacyViolationStatusDTO */ readonly enabledInParent?: boolean; /** * The name of the organization the legacy status is inherited from, or null if not inherited. * @type {string} * @memberof ApiLegacyViolationStatusDTO */ readonly inheritedFromOrganizationName?: string; } /** * Check if a given object implements the ApiLegacyViolationStatusDTO interface. */ export function instanceOfApiLegacyViolationStatusDTO(value: object): value is ApiLegacyViolationStatusDTO { return true; } export function ApiLegacyViolationStatusDTOFromJSON(json: any): ApiLegacyViolationStatusDTO { return ApiLegacyViolationStatusDTOFromJSONTyped(json, false); } export function ApiLegacyViolationStatusDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLegacyViolationStatusDTO { if (json == null) { return json; } return { 'allowChange': json['allowChange'] == null ? undefined : json['allowChange'], 'allowOverride': json['allowOverride'] == null ? undefined : json['allowOverride'], 'enabled': json['enabled'] == null ? undefined : json['enabled'], 'enabledInParent': json['enabledInParent'] == null ? undefined : json['enabledInParent'], 'inheritedFromOrganizationName': json['inheritedFromOrganizationName'] == null ? undefined : json['inheritedFromOrganizationName'], }; } export function ApiLegacyViolationStatusDTOToJSON(json: any): ApiLegacyViolationStatusDTO { return ApiLegacyViolationStatusDTOToJSONTyped(json, false); } export function ApiLegacyViolationStatusDTOToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'allowOverride': value['allowOverride'], 'enabled': value['enabled'], }; }