/* 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'; import type { ApiRepositoryDTO } from './ApiRepositoryDTO'; import { ApiRepositoryDTOFromJSON, ApiRepositoryDTOFromJSONTyped, ApiRepositoryDTOToJSON, ApiRepositoryDTOToJSONTyped, } from './ApiRepositoryDTO'; import type { ApiRepositoryComponentPolicyViolationDTO } from './ApiRepositoryComponentPolicyViolationDTO'; import { ApiRepositoryComponentPolicyViolationDTOFromJSON, ApiRepositoryComponentPolicyViolationDTOFromJSONTyped, ApiRepositoryComponentPolicyViolationDTOToJSON, ApiRepositoryComponentPolicyViolationDTOToJSONTyped, } from './ApiRepositoryComponentPolicyViolationDTO'; /** * * @export * @interface ApiRepositoryComponentsInQuarantineDTO */ export interface ApiRepositoryComponentsInQuarantineDTO { /** * * @type {Array} * @memberof ApiRepositoryComponentsInQuarantineDTO */ components?: Array; /** * * @type {ApiRepositoryDTO} * @memberof ApiRepositoryComponentsInQuarantineDTO */ repository?: ApiRepositoryDTO; } /** * Check if a given object implements the ApiRepositoryComponentsInQuarantineDTO interface. */ export function instanceOfApiRepositoryComponentsInQuarantineDTO(value: object): value is ApiRepositoryComponentsInQuarantineDTO { return true; } export function ApiRepositoryComponentsInQuarantineDTOFromJSON(json: any): ApiRepositoryComponentsInQuarantineDTO { return ApiRepositoryComponentsInQuarantineDTOFromJSONTyped(json, false); } export function ApiRepositoryComponentsInQuarantineDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiRepositoryComponentsInQuarantineDTO { if (json == null) { return json; } return { 'components': json['components'] == null ? undefined : ((json['components'] as Array).map(ApiRepositoryComponentPolicyViolationDTOFromJSON)), 'repository': json['repository'] == null ? undefined : ApiRepositoryDTOFromJSON(json['repository']), }; } export function ApiRepositoryComponentsInQuarantineDTOToJSON(json: any): ApiRepositoryComponentsInQuarantineDTO { return ApiRepositoryComponentsInQuarantineDTOToJSONTyped(json, false); } export function ApiRepositoryComponentsInQuarantineDTOToJSONTyped(value?: ApiRepositoryComponentsInQuarantineDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'components': value['components'] == null ? undefined : ((value['components'] as Array).map(ApiRepositoryComponentPolicyViolationDTOToJSON)), 'repository': ApiRepositoryDTOToJSON(value['repository']), }; }