/* 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'; /** * List of items for the current page * @export * @interface PolicyContainerWaiverData */ export interface PolicyContainerWaiverData { /** * * @type {string} * @memberof PolicyContainerWaiverData */ applicationScope?: string; /** * * @type {Date} * @memberof PolicyContainerWaiverData */ createTime?: Date; /** * * @type {Date} * @memberof PolicyContainerWaiverData */ expiryTime?: Date; /** * * @type {number} * @memberof PolicyContainerWaiverData */ maxThreatLevel?: number; /** * * @type {string} * @memberof PolicyContainerWaiverData */ ownerId?: string; /** * * @type {string} * @memberof PolicyContainerWaiverData */ policyWaiverId?: string; /** * * @type {number} * @memberof PolicyContainerWaiverData */ uniqueComponentCount?: number; /** * * @type {number} * @memberof PolicyContainerWaiverData */ uniquePolicyCount?: number; } /** * Check if a given object implements the PolicyContainerWaiverData interface. */ export function instanceOfPolicyContainerWaiverData(value: object): value is PolicyContainerWaiverData { return true; } export function PolicyContainerWaiverDataFromJSON(json: any): PolicyContainerWaiverData { return PolicyContainerWaiverDataFromJSONTyped(json, false); } export function PolicyContainerWaiverDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyContainerWaiverData { if (json == null) { return json; } return { 'applicationScope': json['applicationScope'] == null ? undefined : json['applicationScope'], 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'expiryTime': json['expiryTime'] == null ? undefined : (new Date(json['expiryTime'])), 'maxThreatLevel': json['maxThreatLevel'] == null ? undefined : json['maxThreatLevel'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'policyWaiverId': json['policyWaiverId'] == null ? undefined : json['policyWaiverId'], 'uniqueComponentCount': json['uniqueComponentCount'] == null ? undefined : json['uniqueComponentCount'], 'uniquePolicyCount': json['uniquePolicyCount'] == null ? undefined : json['uniquePolicyCount'], }; } export function PolicyContainerWaiverDataToJSON(json: any): PolicyContainerWaiverData { return PolicyContainerWaiverDataToJSONTyped(json, false); } export function PolicyContainerWaiverDataToJSONTyped(value?: PolicyContainerWaiverData | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationScope': value['applicationScope'], 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'expiryTime': value['expiryTime'] == null ? value['expiryTime'] : value['expiryTime'].toISOString(), 'maxThreatLevel': value['maxThreatLevel'], 'ownerId': value['ownerId'], 'policyWaiverId': value['policyWaiverId'], 'uniqueComponentCount': value['uniqueComponentCount'], 'uniquePolicyCount': value['uniquePolicyCount'], }; }