/* 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 ApiAutoPolicyWaiverDTO */ export interface ApiAutoPolicyWaiverDTO { /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ autoPolicyWaiverId?: string; /** * * @type {Date} * @memberof ApiAutoPolicyWaiverDTO */ createTime?: Date; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ creatorId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ creatorName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ ownerName?: string; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ ownerType?: string; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverDTO */ pathForward?: boolean; /** * * @type {string} * @memberof ApiAutoPolicyWaiverDTO */ publicId?: string; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverDTO */ reachability?: boolean; /** * * @type {boolean} * @memberof ApiAutoPolicyWaiverDTO */ scopesOperatorAny?: boolean; /** * * @type {number} * @memberof ApiAutoPolicyWaiverDTO */ threatLevel?: number; } /** * Check if a given object implements the ApiAutoPolicyWaiverDTO interface. */ export function instanceOfApiAutoPolicyWaiverDTO(value: object): value is ApiAutoPolicyWaiverDTO { return true; } export function ApiAutoPolicyWaiverDTOFromJSON(json: any): ApiAutoPolicyWaiverDTO { return ApiAutoPolicyWaiverDTOFromJSONTyped(json, false); } export function ApiAutoPolicyWaiverDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAutoPolicyWaiverDTO { if (json == null) { return json; } return { 'autoPolicyWaiverId': json['autoPolicyWaiverId'] == null ? undefined : json['autoPolicyWaiverId'], 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'creatorId': json['creatorId'] == null ? undefined : json['creatorId'], 'creatorName': json['creatorName'] == null ? undefined : json['creatorName'], 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'ownerName': json['ownerName'] == null ? undefined : json['ownerName'], 'ownerType': json['ownerType'] == null ? undefined : json['ownerType'], 'pathForward': json['pathForward'] == null ? undefined : json['pathForward'], 'publicId': json['publicId'] == null ? undefined : json['publicId'], 'reachability': json['reachability'] == null ? undefined : json['reachability'], 'scopesOperatorAny': json['scopesOperatorAny'] == null ? undefined : json['scopesOperatorAny'], 'threatLevel': json['threatLevel'] == null ? undefined : json['threatLevel'], }; } export function ApiAutoPolicyWaiverDTOToJSON(json: any): ApiAutoPolicyWaiverDTO { return ApiAutoPolicyWaiverDTOToJSONTyped(json, false); } export function ApiAutoPolicyWaiverDTOToJSONTyped(value?: ApiAutoPolicyWaiverDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'autoPolicyWaiverId': value['autoPolicyWaiverId'], 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'creatorId': value['creatorId'], 'creatorName': value['creatorName'], 'ownerId': value['ownerId'], 'ownerName': value['ownerName'], 'ownerType': value['ownerType'], 'pathForward': value['pathForward'], 'publicId': value['publicId'], 'reachability': value['reachability'], 'scopesOperatorAny': value['scopesOperatorAny'], 'threatLevel': value['threatLevel'], }; }