/* 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'; /** * * @export * @interface LicenseOverride */ export interface LicenseOverride { /** * * @type {string} * @memberof LicenseOverride */ comment?: string; /** * * @type {ComponentIdentifier} * @memberof LicenseOverride */ componentIdentifier?: ComponentIdentifier; /** * * @type {string} * @memberof LicenseOverride */ id?: string; /** * * @type {Set} * @memberof LicenseOverride */ licenseIds?: Set; /** * * @type {string} * @memberof LicenseOverride */ ownerId?: string; /** * * @type {string} * @memberof LicenseOverride */ status?: LicenseOverrideStatusEnum; } /** * @export */ export const LicenseOverrideStatusEnum = { Open: 'OPEN', Acknowledged: 'ACKNOWLEDGED', Overridden: 'OVERRIDDEN', Selected: 'SELECTED', Confirmed: 'CONFIRMED' } as const; export type LicenseOverrideStatusEnum = typeof LicenseOverrideStatusEnum[keyof typeof LicenseOverrideStatusEnum]; /** * Check if a given object implements the LicenseOverride interface. */ export function instanceOfLicenseOverride(value: object): value is LicenseOverride { return true; } export function LicenseOverrideFromJSON(json: any): LicenseOverride { return LicenseOverrideFromJSONTyped(json, false); } export function LicenseOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseOverride { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ComponentIdentifierFromJSON(json['componentIdentifier']), 'id': json['id'] == null ? undefined : json['id'], 'licenseIds': json['licenseIds'] == null ? undefined : new Set(json['licenseIds']), 'ownerId': json['ownerId'] == null ? undefined : json['ownerId'], 'status': json['status'] == null ? undefined : json['status'], }; } export function LicenseOverrideToJSON(json: any): LicenseOverride { return LicenseOverrideToJSONTyped(json, false); } export function LicenseOverrideToJSONTyped(value?: LicenseOverride | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'componentIdentifier': ComponentIdentifierToJSON(value['componentIdentifier']), 'id': value['id'], 'licenseIds': value['licenseIds'] == null ? undefined : Array.from(value['licenseIds'] as Set), 'ownerId': value['ownerId'], 'status': value['status'], }; }