/* 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 { ComponentIdentifier } from './ComponentIdentifier'; import { ComponentIdentifierFromJSON, ComponentIdentifierFromJSONTyped, ComponentIdentifierToJSON, ComponentIdentifierToJSONTyped, } from './ComponentIdentifier'; /** * List of items for the current page * @export * @interface ApiFirewallQuarantinedComponentDto */ export interface ApiFirewallQuarantinedComponentDto { /** * * @type {ComponentIdentifier} * @memberof ApiFirewallQuarantinedComponentDto */ componentIdentifier?: ComponentIdentifier; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ displayName?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ hash?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ matchState?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ pathname?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ policyName?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ quarantineDate?: string; /** * * @type {boolean} * @memberof ApiFirewallQuarantinedComponentDto */ quarantined?: boolean; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ repositoryId?: string; /** * * @type {string} * @memberof ApiFirewallQuarantinedComponentDto */ repositoryName?: string; /** * * @type {number} * @memberof ApiFirewallQuarantinedComponentDto */ threatLevel?: number; } /** * Check if a given object implements the ApiFirewallQuarantinedComponentDto interface. */ export function instanceOfApiFirewallQuarantinedComponentDto(value: object): value is ApiFirewallQuarantinedComponentDto { return true; } export function ApiFirewallQuarantinedComponentDtoFromJSON(json: any): ApiFirewallQuarantinedComponentDto { return ApiFirewallQuarantinedComponentDtoFromJSONTyped(json, false); } export function ApiFirewallQuarantinedComponentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFirewallQuarantinedComponentDto { if (json == null) { return json; } return { 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ComponentIdentifierFromJSON(json['componentIdentifier']), 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'hash': json['hash'] == null ? undefined : json['hash'], 'matchState': json['matchState'] == null ? undefined : json['matchState'], 'pathname': json['pathname'] == null ? undefined : json['pathname'], 'policyName': json['policyName'] == null ? undefined : json['policyName'], 'quarantineDate': json['quarantineDate'] == null ? undefined : json['quarantineDate'], 'quarantined': json['quarantined'] == null ? undefined : json['quarantined'], 'repositoryId': json['repositoryId'] == null ? undefined : json['repositoryId'], 'repositoryName': json['repositoryName'] == null ? undefined : json['repositoryName'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], }; } export function ApiFirewallQuarantinedComponentDtoToJSON(json: any): ApiFirewallQuarantinedComponentDto { return ApiFirewallQuarantinedComponentDtoToJSONTyped(json, false); } export function ApiFirewallQuarantinedComponentDtoToJSONTyped(value?: ApiFirewallQuarantinedComponentDto | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'componentIdentifier': ComponentIdentifierToJSON(value['componentIdentifier']), 'displayName': value['displayName'], 'hash': value['hash'], 'matchState': value['matchState'], 'pathname': value['pathname'], 'policyName': value['policyName'], 'quarantineDate': value['quarantineDate'], 'quarantined': value['quarantined'], 'repositoryId': value['repositoryId'], 'repositoryName': value['repositoryName'], 'threatLevel': value['threatLevel'], }; }