/* 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 { ApiConstraintFactDTO } from './ApiConstraintFactDTO'; import { ApiConstraintFactDTOFromJSON, ApiConstraintFactDTOFromJSONTyped, ApiConstraintFactDTOToJSON, ApiConstraintFactDTOToJSONTyped, } from './ApiConstraintFactDTO'; import type { ApiStaleEvaluationsDTO } from './ApiStaleEvaluationsDTO'; import { ApiStaleEvaluationsDTOFromJSON, ApiStaleEvaluationsDTOFromJSONTyped, ApiStaleEvaluationsDTOToJSON, ApiStaleEvaluationsDTOToJSONTyped, } from './ApiStaleEvaluationsDTO'; /** * * @export * @interface ApiStaleWaiverDTO */ export interface ApiStaleWaiverDTO { /** * * @type {string} * @memberof ApiStaleWaiverDTO */ comment?: string; /** * * @type {Array} * @memberof ApiStaleWaiverDTO */ constraintFacts?: Array; /** * * @type {Date} * @memberof ApiStaleWaiverDTO */ createTime?: Date; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ creatorId?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ creatorName?: string; /** * * @type {Date} * @memberof ApiStaleWaiverDTO */ expiryTime?: Date; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ policyId?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ policyName?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ policyWaiverReasonId?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ reasonText?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ scopeOwnerId?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ scopeOwnerName?: string; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ scopeOwnerType?: string; /** * * @type {ApiStaleEvaluationsDTO} * @memberof ApiStaleWaiverDTO */ staleEvaluations?: ApiStaleEvaluationsDTO; /** * * @type {string} * @memberof ApiStaleWaiverDTO */ waiverId?: string; } /** * Check if a given object implements the ApiStaleWaiverDTO interface. */ export function instanceOfApiStaleWaiverDTO(value: object): value is ApiStaleWaiverDTO { return true; } export function ApiStaleWaiverDTOFromJSON(json: any): ApiStaleWaiverDTO { return ApiStaleWaiverDTOFromJSONTyped(json, false); } export function ApiStaleWaiverDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiStaleWaiverDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'constraintFacts': json['constraintFacts'] == null ? undefined : ((json['constraintFacts'] as Array).map(ApiConstraintFactDTOFromJSON)), 'createTime': json['createTime'] == null ? undefined : (new Date(json['createTime'])), 'creatorId': json['creatorId'] == null ? undefined : json['creatorId'], 'creatorName': json['creatorName'] == null ? undefined : json['creatorName'], 'expiryTime': json['expiryTime'] == null ? undefined : (new Date(json['expiryTime'])), 'policyId': json['policyId'] == null ? undefined : json['policyId'], 'policyName': json['policyName'] == null ? undefined : json['policyName'], 'policyWaiverReasonId': json['policyWaiverReasonId'] == null ? undefined : json['policyWaiverReasonId'], 'reasonText': json['reasonText'] == null ? undefined : json['reasonText'], 'scopeOwnerId': json['scopeOwnerId'] == null ? undefined : json['scopeOwnerId'], 'scopeOwnerName': json['scopeOwnerName'] == null ? undefined : json['scopeOwnerName'], 'scopeOwnerType': json['scopeOwnerType'] == null ? undefined : json['scopeOwnerType'], 'staleEvaluations': json['staleEvaluations'] == null ? undefined : ApiStaleEvaluationsDTOFromJSON(json['staleEvaluations']), 'waiverId': json['waiverId'] == null ? undefined : json['waiverId'], }; } export function ApiStaleWaiverDTOToJSON(json: any): ApiStaleWaiverDTO { return ApiStaleWaiverDTOToJSONTyped(json, false); } export function ApiStaleWaiverDTOToJSONTyped(value?: ApiStaleWaiverDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'constraintFacts': value['constraintFacts'] == null ? undefined : ((value['constraintFacts'] as Array).map(ApiConstraintFactDTOToJSON)), 'createTime': value['createTime'] == null ? value['createTime'] : value['createTime'].toISOString(), 'creatorId': value['creatorId'], 'creatorName': value['creatorName'], 'expiryTime': value['expiryTime'] == null ? value['expiryTime'] : value['expiryTime'].toISOString(), 'policyId': value['policyId'], 'policyName': value['policyName'], 'policyWaiverReasonId': value['policyWaiverReasonId'], 'reasonText': value['reasonText'], 'scopeOwnerId': value['scopeOwnerId'], 'scopeOwnerName': value['scopeOwnerName'], 'scopeOwnerType': value['scopeOwnerType'], 'staleEvaluations': ApiStaleEvaluationsDTOToJSON(value['staleEvaluations']), 'waiverId': value['waiverId'], }; }