/* 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'; /** * * @export * @interface ApiAutoPolicyWaiverStatusDTO */ export interface ApiAutoPolicyWaiverStatusDTO { /** * * @type {string} * @memberof ApiAutoPolicyWaiverStatusDTO */ autoPolicyWaiverId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverStatusDTO */ autoPolicyWaiverOwnerId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverStatusDTO */ autoPolicyWaiverOwnerName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverStatusDTO */ autoPolicyWaiverOwnerType?: string; /** * * @type {Date} * @memberof ApiAutoPolicyWaiverStatusDTO */ createTime?: Date; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverStatusDTO */ hasNoPathForward?: boolean; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverStatusDTO */ hasNotReachable?: boolean; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverStatusDTO */ isAutoWaiverEnabled?: boolean; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverStatusDTO */ isInherited?: boolean; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverStatusDTO */ scopesOperatorAny?: boolean; /** * * @type {number} * @memberof ApiAutoPolicyWaiverStatusDTO */ threatLevel?: number; } /** * Check if a given object implements the ApiAutoPolicyWaiverStatusDTO interface. */ export function instanceOfApiAutoPolicyWaiverStatusDTO(value: object): value is ApiAutoPolicyWaiverStatusDTO { return true; } export function ApiAutoPolicyWaiverStatusDTOFromJSON(json: any): ApiAutoPolicyWaiverStatusDTO { return ApiAutoPolicyWaiverStatusDTOFromJSONTyped(json, false); } export function ApiAutoPolicyWaiverStatusDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAutoPolicyWaiverStatusDTO { if (json == null) { return json; } return { 'autoPolicyWaiverId': json['autoPolicyWaiverId'] == null ? undefined : json['autoPolicyWaiverId'], 'autoPolicyWaiverOwnerId': json['autoPolicyWaiverOwnerId'] == null ? undefined : json['autoPolicyWaiverOwnerId'], 'autoPolicyWaiverOwnerName': json['autoPolicyWaiverOwnerName'] == null ? undefined : json['autoPolicyWaiverOwnerName'], 'autoPolicyWaiverOwnerType': json['autoPolicyWaiverOwnerType'] == null ? undefined : json['autoPolicyWaiverOwnerType'], 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'hasNoPathForward': json['hasNoPathForward'] == null ? undefined : json['hasNoPathForward'], 'hasNotReachable': json['hasNotReachable'] == null ? undefined : json['hasNotReachable'], 'isAutoWaiverEnabled': json['isAutoWaiverEnabled'] == null ? undefined : json['isAutoWaiverEnabled'], 'isInherited': json['isInherited'] == null ? undefined : json['isInherited'], 'scopesOperatorAny': json['scopesOperatorAny'] == null ? undefined : json['scopesOperatorAny'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], }; } export function ApiAutoPolicyWaiverStatusDTOToJSON(json: any): ApiAutoPolicyWaiverStatusDTO { return ApiAutoPolicyWaiverStatusDTOToJSONTyped(json, false); } export function ApiAutoPolicyWaiverStatusDTOToJSONTyped(value?: ApiAutoPolicyWaiverStatusDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'autoPolicyWaiverId': value['autoPolicyWaiverId'], 'autoPolicyWaiverOwnerId': value['autoPolicyWaiverOwnerId'], 'autoPolicyWaiverOwnerName': value['autoPolicyWaiverOwnerName'], 'autoPolicyWaiverOwnerType': value['autoPolicyWaiverOwnerType'], 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'hasNoPathForward': value['hasNoPathForward'], 'hasNotReachable': value['hasNotReachable'], 'isAutoWaiverEnabled': value['isAutoWaiverEnabled'], 'isInherited': value['isInherited'], 'scopesOperatorAny': value['scopesOperatorAny'], 'threatLevel': value['threatLevel'], }; }