/* 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 { ApiComponentIdentifierDTOV2 } from './ApiComponentIdentifierDTOV2'; import { ApiComponentIdentifierDTOV2FromJSON, ApiComponentIdentifierDTOV2FromJSONTyped, ApiComponentIdentifierDTOV2ToJSON, ApiComponentIdentifierDTOV2ToJSONTyped, } from './ApiComponentIdentifierDTOV2'; /** * * @export * @interface ApiLicenseOverrideDTO */ export interface ApiLicenseOverrideDTO { /** * * @type {string} * @memberof ApiLicenseOverrideDTO */ comment?: string; /** * * @type {ApiComponentIdentifierDTOV2} * @memberof ApiLicenseOverrideDTO */ componentIdentifier?: ApiComponentIdentifierDTOV2; /** * * @type {string} * @memberof ApiLicenseOverrideDTO */ id?: string; /** * * @type {Set} * @memberof ApiLicenseOverrideDTO */ licenseIds?: Set; /** * * @type {string} * @memberof ApiLicenseOverrideDTO */ ownerId?: string; /** * * @type {string} * @memberof ApiLicenseOverrideDTO */ status?: ApiLicenseOverrideDTOStatusEnum; } /** * @export */ export const ApiLicenseOverrideDTOStatusEnum = { Open: 'OPEN', Acknowledged: 'ACKNOWLEDGED', Overridden: 'OVERRIDDEN', Selected: 'SELECTED', Confirmed: 'CONFIRMED' } as const; export type ApiLicenseOverrideDTOStatusEnum = typeof ApiLicenseOverrideDTOStatusEnum[keyof typeof ApiLicenseOverrideDTOStatusEnum]; /** * Check if a given object implements the ApiLicenseOverrideDTO interface. */ export function instanceOfApiLicenseOverrideDTO(value: object): value is ApiLicenseOverrideDTO { return true; } export function ApiLicenseOverrideDTOFromJSON(json: any): ApiLicenseOverrideDTO { return ApiLicenseOverrideDTOFromJSONTyped(json, false); } export function ApiLicenseOverrideDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiLicenseOverrideDTO { if (json == null) { return json; } return { 'comment': json['comment'] == null ? undefined : json['comment'], 'componentIdentifier': json['componentIdentifier'] == null ? undefined : ApiComponentIdentifierDTOV2FromJSON(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 ApiLicenseOverrideDTOToJSON(json: any): ApiLicenseOverrideDTO { return ApiLicenseOverrideDTOToJSONTyped(json, false); } export function ApiLicenseOverrideDTOToJSONTyped(value?: ApiLicenseOverrideDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'comment': value['comment'], 'componentIdentifier': ApiComponentIdentifierDTOV2ToJSON(value['componentIdentifier']), 'id': value['id'], 'licenseIds': value['licenseIds'] == null ? undefined : Array.from(value['licenseIds'] as Set), 'ownerId': value['ownerId'], 'status': value['status'], }; }